Fix recent ChangeLog entry.
[gnulib.git] / ChangeLog
1 2011-05-23  Bruno Haible  <bruno@clisp.org>
2
3         idcache: Fix module description.
4         * modules/idcache (Include): Set to "idcache.h".
5
6 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7
8         gnulib-tool: fix portability problem with MacOS sed
9         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10         before the "}".  Problem reported by Leo in
11         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
12         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
13         sed_extract_condition1, sed_extract_condition2.
14
15 2011-05-23  Bruno Haible  <bruno@clisp.org>
16
17         hash: Simplify autoconf macro.
18         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19
20 2011-05-23  Bruno Haible  <bruno@clisp.org>
21
22         getugroups: Fix module description.
23         * modules/getugroups (Include): Set to "getugroups.h".
24
25 2011-05-23  Bruno Haible  <bruno@clisp.org>
26
27         linkat: Simplify autoconf macro.
28         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
29
30 2011-05-23  Bruno Haible  <bruno@clisp.org>
31             Eric Blake  <eblake@redhat.com>
32
33         linkat, renameat: Update dependencies.
34         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
35         * modules/linkat (Depends-on): Likewise. Remove also readlink,
36         symlinkat.
37
38 2011-05-23  Jim Meyering  <meyering@redhat.com>
39
40         maint.mk: more tight_scope improvements
41         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
42         (_gl_TS_headers): Define only in if-0'd block.
43         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
44         sometimes we must *not* use it.  Adjust uses accordingly.
45         (sc_tight_scope): Use much simpler grep-based test to determine
46         whether we skip this rule.
47
48         maint.mk: generalize/improve the tight-scope rule
49         * top/maint.mk: Emit a warning when the test is skipped.
50         (_gl_TS_dir): Add $(srcdir)/ prefix.
51         (_gl_TS_function_match): Simplify, rather than trying
52         to enumerate common types.  Otherwise, it would fail to match an
53         "extern unsigned char const *" declaration in idutils.
54         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
55         a way to support use of that type of macro.
56         (_gl_TS_var_match): Simplify regexp.
57         (_gl_TS_obj_files): New configurable variable.
58         (_gl_TS_headers): Likewise.
59
60 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61
62         verify: fix bug when gnulib <assert.h> is also included
63         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
64         is defined, not if _GL_STATIC_ASSERT_H is not defined.
65         Perhaps there's a better way, but this fixes the immediate problem.
66         Problem reported by Bruno Haible in
67         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
68
69 2011-05-22  Bruno Haible  <bruno@clisp.org>
70
71         xgetcwd: Simplify autoconf macro.
72         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
73
74 2011-05-22  Bruno Haible  <bruno@clisp.org>
75
76         New module 'mktime-internal'.
77         * modules/mktime-internal: New file.
78         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
79         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
80         mktime_internal as a C macro if libc has __mktime_internal.
81         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
82         conditions.
83         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
84
85 2011-05-22  Bruno Haible  <bruno@clisp.org>
86
87         timegm: Correct mktime replacement statements.
88         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
89         defining mktime as a C macro. This completes a 2009-07-28 commit.
90
91 2011-05-22  Bruno Haible  <bruno@clisp.org>
92
93         timegm: Simplify autoconf macro.
94         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
95
96 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
97
98         clock-time: change to LGPLv2+.
99         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
100         BSD-like but we have no mark for that; this is good enough for now.
101
102 2011-05-21  Bruno Haible  <bruno@clisp.org>
103
104         strerror_r: Fix comments.
105         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
106
107 2011-05-21  Bruno Haible  <bruno@clisp.org>
108
109         relocatable-prog-wrapper: Fix possible link error.
110         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
111         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
112         (gl_FUNC_SETENV): ... to here.
113         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
114         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
115
116 2011-05-21  Bruno Haible  <bruno@clisp.org>
117
118         relocatable-prog-wrapper: Assume strerror() exists.
119         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
120         m4/strerror.m4.
121         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
122         * lib/relocwrapper.c: Remove mention of strerror module.
123         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
124         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
125         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
126         C macro.
127
128 2011-05-21  Bruno Haible  <bruno@clisp.org>
129
130         select: Simplify replacement idiom.
131         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
132         Win32 platforms.
133         * lib/sys_select.in.h (select): Simplify accordingly.
134         * modules/select (Depends-on): Likewise.
135
136 2011-05-21  Bruno Haible  <bruno@clisp.org>
137
138         mkdir-p: Simplify autoconf macro.
139         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
140         gl_FUNC_LCHOWN.
141
142 2011-05-21  Eric Blake  <eblake@redhat.com>
143
144         strerror_r: avoid clobbering strerror on cygwin
145         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
146         fall back instead to sys_errlist.
147         * modules/strerror (configure.ac): Add witness.
148         * tests/test-strerror_r.c (main): Enhance test.
149         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
150         * tests/test-perror2.c (main): Free memory before exit.
151
152 2011-05-21  Bruno Haible  <bruno@clisp.org>
153
154         mkdtemp: Use gnulib naming conventions.
155         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
156         * modules/mkdtemp (configure.ac): Update.
157
158 2011-05-20  Eric Blake  <eblake@redhat.com>
159
160         strerror_r: avoid corrupting errno on Solaris
161         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
162         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
163
164         strerror_r: avoid compiler warning
165         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
166
167         strerror_r: simplify AIX code
168         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
169
170         test-perror: avoid spurious failure on FreeBSD
171         * modules/perror-tests (Depends-on): Add strerror, now that
172         strerror_r no longer pulls it in.
173
174 2011-05-20  Bruno Haible  <bruno@clisp.org>
175
176         strerror_r-posix: Remove unused dependencies.
177         * modules/strerror_r-posix (Depends-on): Remove strerror.
178         Reported by Eric Blake.
179
180 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
181
182         intprops: remove assumption about A|B representation
183         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
184         is a valid integer if both A and B are.  Although this is true for
185         all known practical hosts, the C standard doesn't guarantee it,
186         and the code need not assume it.  Also, this change may work around
187         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
188         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
189
190 2011-05-20  Eric Blake  <eblake@redhat.com>
191
192         perror: work around FreeBSD bug
193         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
194         is broken.  Move AC_LIBOBJ...
195         * modules/perror (configure.ac): Here.
196         * doc/posix-functions/perror.texi (perror): Document this.
197         * tests/test-perror2.c (main): Enhance test.
198
199         test-perror: check for strerror interactions
200         * tests/macros.h (STREQ): Add macro.
201         * modules/perror-tests (Files): Add second test.
202         * tests/test-perror2.c (main): New file.
203         * doc/posix-functions/perror.texi (perror): Document glibc bug.
204
205         test-perror: rewrite to use init script
206         * modules/perror-tests (Files): Add init.sh.
207         * tests/test-perror.sh: Use temporary directory.
208
209 2011-05-20  Jim Meyering  <meyering@redhat.com>
210
211         maint: replace misused "a" with "an"
212         * doc/intprops.texi: "a integer"
213         * doc/regex.texi: "a explanation"
214         * lib/alignof.h: "a object"
215         * lib/argmatch.h: "a explanation"
216         * lib/argp-help.c: "a option" and "a OPTION_DOC"
217         * lib/stdint.in.h: "a integer"
218         * lib/userspec.c: "a owner"
219         * doc/gnulib.texi: Fix "a idea", and reword.
220
221 2011-05-19  Jim Meyering  <meyering@redhat.com>
222
223         maint: correct misuse of "a" and "an"
224         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
225         * lib/argp-help.c: "an docum...": s/an/a/
226         * lib/argp-parse.c: "An vector": s/An/A/
227         * lib/execute.c: "an native": s/an/a/
228         * lib/spawn-pipe.c: Likewise.
229         * lib/gc.h: "an Gc_rc": s/an/a/
230         * lib/unigbrk.in.h: "an grapheme": s/an/a/
231         * lib/fts.c: "an stat.st_dev": s/an/a/
232
233 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
234
235         intprops-tests: work around HP-UX 11.23 cc bug with constants
236         * tests/test-intprops.c (VERIFY): New macro.
237         (main): Use it, instead of verify, to work around the compiler bug; see
238         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
239
240         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
241         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
242         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
243         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
244         (_GL_REMAINDER_OVERFLOW): Use it.
245
246         intprops-tests: revert unsigned part of previous change
247         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
248         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
249         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
250         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
251
252 2011-05-19  Bruno Haible  <bruno@clisp.org>
253
254         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
255         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
256         strerror_r() returned without filling the buffer.
257         Reported by Eric Blake.
258
259 2011-05-19  Eric Blake  <eblake@redhat.com>
260
261         strerror_r: guarantee unchanged errno
262         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
263         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
264         failure.
265         * tests/test-strerror_r.c (main): Enhance test.
266
267 2011-05-19  Bruno Haible  <bruno@clisp.org>
268
269         strerror_r: Reorder #if blocks.
270         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
271         for consistency with the previous commit.
272
273 2011-05-19  Bruno Haible  <bruno@clisp.org>
274
275         perror: Avoid clobbering the strerror buffer when possible.
276         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
277         * lib/strerror.c: Include it.
278         * modules/strerror (Files): Add lib/strerror-impl.h.
279         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
280         (my_strerror): New function, defined through lib/strerror-impl.h.
281         (perror): Use it instead of strerror.
282         * modules/perror (Files): Add lib/strerror-impl.h.
283         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
284
285 2011-05-19  Eric Blake  <eblake@redhat.com>
286
287         strerror_r: fix on newer cygwin
288         * lib/strerror_r.c (strerror_r): Cygwin now has
289         __xpg_strerror_r, use it.
290
291 2011-05-19  Bruno Haible  <bruno@clisp.org>
292
293         strerror_r: Avoid clobbering the strerror buffer when possible.
294         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
295         (sys_nerr, sys_errlist): New declarations.
296         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
297         HP-UX, native Win32, IRIX, and 32-bit Solaris.
298         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
299
300 2011-05-19  Bruno Haible  <bruno@clisp.org>
301
302         strerror_r: Fix test failure on mingw.
303         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
304         EXTEND_STRERROR_R.
305         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
306         macros from errno.in.h instead.
307
308 2011-05-19  Eric Blake  <eblake@redhat.com>
309
310         strerror: relax test for Solaris
311         * tests/test-strerror.c (main): Permit Solaris behavior.
312         * tests/test-strerror_r.c (main): Likewise.
313
314         strerror: enforce POSIX ruling on strerror(0)
315         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
316         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
317         * lib/strerror_r.c (rpl_strerror_r): Work around it.
318         * doc/posix-functions/strerror.texi (strerror): Document it.
319         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
320         * tests/test-strerror.c (main): Strengthen test.
321         * tests/test-strerror_r.c (main): Likewise.
322
323 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
324
325         intprop-tests: port to older and more-pedantic compilers
326         * modules/intprops-tests (Files): Add tests/macros.h.
327         * tests/test-intprops.c: Include macros.h.
328         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
329         it's no longer documented to expand to an integer constant expression.
330         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
331         argument is floating point, as it's no longer documented to expand
332         to an integer constant expression in that case.
333         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
334         compiler bugs reported by Bruno Haible.  See
335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
336         (U0, U1): New constants, to work around the same bugs.  Also,
337         in tests, use e.g., "(unsigned int) 39" rather than "39u".
338
339         intprops: work around C compiler bugs
340         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
341         bug in Sun C 5.11 2010/08/13 and other compilers; see
342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
343
344         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
345         * doc/intprops.texi (Integer Type Determination): Fix
346         documentation for TYPE_IS_INTEGER: it returns an constant
347         expression, not an integer constant expression.  Fix doc for
348         TYPE_SIGNED: it returns an integer constant expression only if its
349         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
350         hardly worth documented that way....)
351
352 2011-05-18  Bruno Haible  <bruno@clisp.org>
353
354         strerror_r: Avoid clobbering the strerror buffer when possible.
355         * lib/strerror_r.c (strerror_r): Merge the three implementations.
356         Handle gnulib defined errno values here. When strerror() returns NULL
357         or an empty string, return EINVAL.
358         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
359         gnulib defined errno values here.
360         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
361
362 2011-05-18  Eric Blake  <eblake@redhat.com>
363
364         fnmatch: avoid compiler warning
365         * lib/fnmatch_loop.c (FCT): Use correct type.
366         Reported by Matthias Bolte.
367
368 2011-05-13  Jim Meyering  <meyering@redhat.com>
369
370         maint.mk: three new prohibit_<HDR>_without_use rules
371         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
372         (sc_prohibit_stdio-safer_without_use): Likewise.
373         (sc_prohibit_xfreopen_without_use): Likewise.
374
375 2011-05-17  Jim Meyering  <meyering@redhat.com>
376
377         announce-gen: fail if the NEWS delta is empty
378         If there's nothing noteworthy in NEWS, then either you forgot
379         or you shouldn't be releasing.
380         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
381
382 2011-05-17  Pádraig Brady <P@draigBrady.com>
383
384         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
385         reserved symbols starting with double underscore from the check.
386
387 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
388
389         intprops: add doc
390         * doc/intprops.texi: New file, documenting intprops.
391         * doc/gnulib.texi (Particular Modules): Include it.
392
393         verify: add doc to gnulib manual and fix example
394         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
395         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
396         (Compile-time Assertions): Fix example so it can't overflow.
397
398 2011-05-17  Jim Meyering  <meyering@redhat.com>
399
400         warnings.m4: don't usurp save_CPPFLAGS variable name
401         * m4/warnings.m4: Prefix local temporary variable name with gl_.
402
403         doc: fix typo
404         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
405
406 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
407             Bruno Haible  <bruno@clisp.org>
408
409         doc: Tweak recent change.
410         * README (Portability guidelines): Tweak new text.
411         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
412         Interix 6.1.
413
414 2011-05-16  Eric Blake  <eblake@redhat.com>
415
416         inttypes: avoid autoconf warning
417         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
418         * m4/stdint.m4 (gl_STDINT_H): Likewise.
419
420 2011-05-16  Sam Steingold <sds@gnu.org>
421         and Eric Blake  <eblake@redhat.com>
422
423         vc-list-files: accept multiple directory operands
424         * build-aux/vc-list-files: Iterate over all remaining operands.
425
426 2011-05-16  Bruno Haible  <bruno@clisp.org>
427
428         Fix confusion regarding deprecated modules.
429         * modules/calloc (Status, Notice): Mark module as deprecated, not
430         obsolete.
431         * modules/fnmatch-posix (Status, Notice): Likewise.
432         * modules/getdate (Status, Notice): Likewise.
433         * modules/getopt (Status, Notice): Likewise.
434         * modules/malloc (Status, Notice): Likewise.
435         * modules/pipe (Status, Notice): Likewise.
436         * modules/realloc (Status, Notice): Likewise.
437         * modules/rename-dest-slash (Status, Notice): Likewise.
438         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
439         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
440         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
441         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
442         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
443
444 2011-05-16  Bruno Haible  <bruno@clisp.org>
445
446         doc: List the target platforms.
447         * doc/gnulib-intro.texi (Target Platforms): New section.
448         * doc/gnulib.texi (Introduction): Update menu.
449         * README (Portability guidelines): Refer to the new section. Update
450         statement about oldest supported environment. Remove rationale why
451         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
452         unportable C89 function.
453         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
454         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
455
456 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
457
458         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
459
460 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
461
462         intprops-tests: new module
463         * modules/intprops-tests, tests/test-intprops.c: New files.
464
465         intprops: add safe, portable integer overflow checking
466         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
467         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
468         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
469         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
470         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
471         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
472         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
473         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
474         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
475         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
476         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
477
478 2011-05-12  James Youngman  <jay@gnu.org>
479
480         Add a test for glibc's Bugzilla bug #12378.
481         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
482         doesn't allow the literal matching of a lone "[" (which is
483         required by POSIX).
484         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
485
486 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
487
488         Sync glibc change fixing Bugzilla bug #12378.
489         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
490         beginning and fall back to matching as normal character if the
491         string ends before the matching ']' is found.  This is what POSIX
492         requires.
493
494 2011-05-13  Eric Blake  <eblake@redhat.com>
495
496         getcwd-lgpl: relax test for FreeBSD
497         * doc/posix-functions/getcwd.texi (getcwd): Document portability
498         issue.
499         * tests/test-getcwd-lgpl.c (main): Relax test.
500         Reported by Matthias Bolte.
501
502 2011-05-11  Eric Blake  <eblake@redhat.com>
503
504         test-fflush: silence compiler warning
505         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
506
507 2011-05-11  Bruno Haible  <bruno@clisp.org>
508
509         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
510         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
511         * modules/canonicalize (Depends-on): Add 'nocrash'.
512         * modules/canonicalize-lgpl (Depends-on): Likewise.
513         * doc/posix-functions/realpath.texi: Update platforms list.
514         Reported by Ryan Schmidt <ryandesign@macports.org>.
515
516 2011-05-11  Bruno Haible  <bruno@clisp.org>
517
518         group-member: Declare function in <unistd.h>.
519         * lib/unistd.in.h (group_member): New declaration.
520         * lib/group-member.h: Remove file.
521         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
522         * tests/test-unistd-c++.cc: Check signature of group_member.
523         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
524         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
525         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
526         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
527         HAVE_GROUP_MEMBER.
528         * modules/group-member (Files): Remove lib/group-member.h.
529         (Depends-on): Add unistd. Specify conditions.
530         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
531         (Include): Change to <unistd.h>.
532         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
533         HAVE_GROUP_MEMBER.
534         * NEWS: Mention the change.
535         * lib/euidaccess.c: Don't include group-member.h.
536
537 2011-05-11  Bruno Haible  <bruno@clisp.org>
538
539         group-member: Document module.
540         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
541         module.
542
543 2011-05-11  Bruno Haible  <bruno@clisp.org>
544
545         fclose: Fix mistake earlier today.
546         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
547
548 2011-05-11  Eric Blake  <eblake@redhat.com>
549
550         fclose: preserve fflush errors
551         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
552         Reported by Jim Meyering.
553
554         bootstrap: support a prereq of 'rpcgen -' on RHEL5
555         * build-aux/bootstrap (check_versions): When no specific version
556         is required, merely check that the app produces an exit status
557         that indicates its existence.
558
559         maint.mk: drop redundant check
560         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
561         the same but better.
562
563 2011-05-11  Bruno Haible  <bruno@clisp.org>
564
565         fclose: Fix possible link error.
566         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
567         unregister_shadow_fd. Improve comments.
568         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
569         Eric Blake.
570
571 2011-05-11  Jim Meyering  <meyering@redhat.com>
572
573         maint.mk: improve "can not" detection and generalize rule name
574         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
575         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
576         Use the same technique as in sc_prohibit_doubled_word, so that
577         we recognize "can not" also when the words are separated by a newline.
578         Suggested by Eric Blake.
579         (perl_filename_lineno_text_): Define.  Factored out of...
580         (prohibit_doubled_word_): ...here.  Use the new definition.
581         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
582         (prohibit_undesirable_word_seq_RE_): New overridable variable.
583         (ignore_undesirable_word_sequence_RE_): New overridable variable.
584
585 2011-05-10  Eric Blake  <eblake@redhat.com>
586
587         fclose: avoid double close race when possible
588         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
589         all but WINDOWS_SOCKETS.
590
591 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
592
593         openat: correct new comment
594         * lib/openat-proc.c (openat_proc_name): Correct the comment.
595
596 2011-05-10  Jim Meyering  <meyering@redhat.com>
597
598         openat: add comments
599         * lib/openat-proc.c (openat_proc_name): Add comments,
600         mostly from Eric Blake.
601
602 2011-05-09  Eric Blake  <eblake@redhat.com>
603
604         openat: reduce syscalls in first probe of /proc
605         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
606         be a directory.  Simplify the probe for .. bugs.
607         * modules/openat (Depends-on): Drop same-inode.
608         Reported by Bastien ROUCARIES.
609
610 2011-05-09  Jim Meyering  <meyering@redhat.com>
611
612         maint.mk: change semantics/name of tight_scope variables
613         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
614         Rename variables to align with semantics that make them more useful.
615
616         maint.mk: tweak new rule's name not to impinge
617         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
618         (sc_tight_scope): Use new rule name rather than $@-0.
619
620         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
621         * top/maint.mk (sc_tight_scope): New rule.
622         (sc_tight_scope-0): New rule, ifdef'd out.
623         (_gl_TS_dir): Default.
624         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
625         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
626
627 2011-05-09  Simon Josefsson  <simon@josefsson.org>
628
629         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
630         Haible <bruno@clisp.org>.
631
632 2011-05-08  Bruno Haible  <bruno@clisp.org>
633
634         Comments.
635         * m4/isnanf.m4: Add comment.
636         * m4/isnanl.m4: Likewise.
637
638 2011-05-08  Bruno Haible  <bruno@clisp.org>
639
640         glob: Remove obsolete macro.
641         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
642
643 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
644
645         intprops: Sun C 5.11 supports __typeof__
646         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
647         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
648         which is new.
649         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
650
651         intprops: switch to usual gnulib indenting and naming
652         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
653         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
654
655         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
656
657 2011-05-08  Jim Meyering  <meyering@redhat.com>
658
659         maint.mk: suppress "Entering/Leaving directory" diag in announcement
660         * top/maint.mk (release-prep): Use make's --no-print-directory
661         option when generating the announcement.  This eliminates the
662         pesky "make[2]: Entering/Leaving directory" diagnostics in the
663         generated announcement template.
664
665 2011-05-08  Bruno Haible  <bruno@clisp.org>
666
667         tzset: Fix gettimeofday wrapper on Solaris 2.6.
668         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
669         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
670
671 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
672
673         ignore-value, verify: Omit include files from lib_SOURCES.
674         * modules/ignore-value, modules/verify (Makefile.am):
675         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
676         that leads Automake to duplicate use of am__objects_... variables
677         in Makefile.in.  See
678         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
679
680 2011-05-07  Bruno Haible  <bruno@clisp.org>
681
682         fclose: Simplify autoconf macro.
683         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
684         defined.
685
686 2011-05-07  Bruno Haible  <bruno@clisp.org>
687
688         canonicalize-lgpl: Fix autoconf macro ordering bug.
689         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
690         gl_STDLIB_H_DEFAULTS.
691
692 2011-05-06  Eric Blake  <eblake@redhat.com>
693
694         maintainer-makefile: make sc_po_check easier to tune
695         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
696         to probe for strings, such as an alternate location for gnulib.
697
698         fclose: guarantee behavior on seekable stdin
699         * modules/fclose (Depends-on): Add fflush.
700         * doc/posix-functions/fclose.texi (fclose): Document this.
701         * tests/test-fclose.c (main): Make test for this unconditional.
702
703 2011-05-06  Bruno Haible  <bruno@clisp.org>
704
705         fflush, fpurge: Relicense under LGPLv2+.
706         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
707         * modules/fpurge (License): Likewise.
708         With permission from Eric Blake and Jim Meyering.
709         Suggested by Eric Blake.
710
711 2011-05-06  Karl Berry  <karl@gnu.org>
712
713         * MODULES.html.sh (func_all_modules): remove exit.
714
715 2011-05-06  Jim Meyering  <meyering@redhat.com>
716
717         maint.mk: use info-gnu@ as the default only for a stable release
718         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
719         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
720         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
721         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
722
723 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
724
725         assert-h: new module, which supports C1X-style static_assert
726         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
727         * lib/verify.h: Revamp so that this can be copied into assert.h,
728         while retaining the ability to use it standalone as before.
729         Rename private identifiers so as not to encroach on the
730         standard C namespace, since this is now used by assert.h.
731         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
732         the old verify_true.
733         (_GL_VERIFY_TRUE): New macro, with much of the contents of
734         the old verify_true.  Use _GL_VERIFY_TYPE.
735         (_GL_VERIFY): New macro, with much of the contents of the old verify.
736         (static_assert): New macro, if _GL_STATIC_ASSERT_H
737         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
738         defined when this file is copied into the replacement assert.h.
739         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
740         and _Static_assert is not built in.
741         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
742         defined, and use the new macros mentioned above.
743         * doc/posix-headers/assert.texi: Document this.
744
745 2011-05-05  Bruno Haible  <bruno@clisp.org>
746
747         fclose, fflush: Respect rules for use of AC_LIBOBJ.
748         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
749         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
750         gl_REPLACE_FCLOSE here.
751         * modules/fflush (Depends-on): Remove fclose.
752         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
753         combination with module 'fclose'.
754
755 2011-05-05  Bruno Haible  <bruno@clisp.org>
756
757         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
758         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
759         gl_FUNC_FFLUSH.
760         (gl_FUNC_FFLUSH): Use it.
761         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
762         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
763         gl_REPLACE_FSEEKO here.
764
765 2011-05-05  Bruno Haible  <bruno@clisp.org>
766
767         tzset: Relicense under LGPL.
768         * modules/tzset (License): Change to LGPL.
769         No agreement needed; it's a no-op.
770
771         strtoimax, strtoumax: Relicense under LGPL.
772         * modules/strtoimax (License): Change to LGPL.
773         * modules/strtoumax (License): Likewise.
774         With permission from Jim Meyering, Paul Eggert:
775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
776         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
777
778         getgroups: Relicense under LGPL.
779         * modules/getgroups (License): Change to LGPL.
780         With permission from Jim Meyering, Paul Eggert, Eric Blake:
781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
784
785         nanosleep: Relicense under LGPL.
786         * modules/nanosleep (License): Change to LGPL.
787         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
788         Haible:
789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
792         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
793
794         futimens: Relicense under LGPL.
795         * modules/futimens (License): Change to LGPL.
796         With permission from Eric Blake:
797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
798
799         fflush: Relicense under LGPL.
800         * modules/fflush (License): Change to LGPL.
801         With permission from Eric Blake, Bruno Haible, Jim Meyering:
802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
805
806         tmpfile: Relicense under LGPL.
807         * modules/tmpfile (License): Change to LGPL.
808         With permission from Ben Pfaff:
809         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
810
811         isfinite: Relicense under LGPL.
812         * modules/isfinite (License): Change to LGPL.
813         With permission from Ben Pfaff, Bruno Haible:
814         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
816
817         acosl..tanl: Relicense under LGPL.
818         * modules/acosl (License): Change to LGPL.
819         * modules/asinl (License): Likewise.
820         * modules/atanl (License): Likewise.
821         * modules/cosl (License): Likewise.
822         * modules/expl (License): Likewise.
823         * modules/logl (License): Likewise.
824         * modules/sinl (License): Likewise.
825         * modules/sqrtl (License): Likewise.
826         * modules/tanl (License): Likewise.
827         Source code originally from glibc and Paolo Bonzini. Agreements:
828         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
830
831 2011-05-05  Bruno Haible  <bruno@clisp.org>
832
833         signal: Define sighandler_t.
834         * lib/signal.in.h (sighandler_t): New type.
835         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
836         whether sighandler_t is defined.
837         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
838         * modules/signal (Depends-on): Add extensions.
839         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
840         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
841         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
842
843 2011-05-05  Eric Blake  <eblake@redhat.com>
844
845         maint: remove useless REPLACE_*_H macros
846         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
847         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
848         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
849         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
850         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
851         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
852         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
853         * m4/btowc.m4: Update callers.
854         * m4/dirfd.m4: Likewise.
855         * m4/duplocale.m4: Likewise.
856         * m4/fchdir.m4: Likewise.
857         * m4/fdopendir.m4: Likewise.
858         * m4/inet_ntop.m4: Likewise.
859         * m4/inet_pton.m4: Likewise.
860         * m4/ioctl.m4: Likewise.
861         * m4/mbrlen.m4: Likewise.
862         * m4/mbrtowc.m4: Likewise.
863         * m4/mbsinit.m4: Likewise.
864         * m4/mbsnrtowcs.m4: Likewise.
865         * m4/mbsrtowcs.m4: Likewise.
866         * m4/poll.m4: Likewise.
867         * m4/setlocale.m4: Likewise.
868         * m4/wcrtomb.m4: Likewise.
869         * m4/wcsnrtombs.m4: Likewise.
870         * m4/wcsrtombs.m4: Likewise.
871         * m4/wctob.m4: Likewise.
872         * m4/wcwidth.m4: Likewise.
873         * modules/posix_spawn: Likewise.
874         * modules/posix_spawn_file_actions_addclose: Likewise.
875         * modules/posix_spawn_file_actions_adddup2: Likewise.
876         * modules/posix_spawn_file_actions_addopen: Likewise.
877         * modules/posix_spawn_file_actions_destroy: Likewise.
878         * modules/posix_spawn_file_actions_init: Likewise.
879         * modules/posix_spawnattr_destroy: Likewise.
880         * modules/posix_spawnattr_getflags: Likewise.
881         * modules/posix_spawnattr_getpgroup: Likewise.
882         * modules/posix_spawnattr_getschedparam: Likewise.
883         * modules/posix_spawnattr_getschedpolicy: Likewise.
884         * modules/posix_spawnattr_getsigdefault: Likewise.
885         * modules/posix_spawnattr_getsigmask: Likewise.
886         * modules/posix_spawnattr_init: Likewise.
887         * modules/posix_spawnattr_setflags: Likewise.
888         * modules/posix_spawnattr_setpgroup: Likewise.
889         * modules/posix_spawnattr_setschedparam: Likewise.
890         * modules/posix_spawnattr_setschedpolicy: Likewise.
891         * modules/posix_spawnattr_setsigdefault: Likewise.
892         * modules/posix_spawnattr_setsigmask: Likewise.
893         * modules/posix_spawnp: Likewise.
894
895 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
896
897         Add option to do-release-commit-and-tag to specify branch.
898         * build-aux/do-release-commit-and-tag: Add --branch.
899
900 2011-05-03  Bruno Haible  <bruno@clisp.org>
901
902         Avoid unnecessary compilation units, through conditional dependencies.
903         * modules/accept (Depends-on): Add conditions to the dependencies.
904         * modules/acosl (Depends-on): Likewise.
905         * modules/argz (Depends-on): Likewise.
906         * modules/asinl (Depends-on): Likewise.
907         * modules/atanl (Depends-on): Likewise.
908         * modules/atoll (Depends-on): Likewise.
909         * modules/bind (Depends-on): Likewise.
910         * modules/btowc (Depends-on): Likewise.
911         * modules/canonicalize-lgpl (Depends-on): Likewise.
912         * modules/ceil (Depends-on): Likewise.
913         * modules/ceilf (Depends-on): Likewise.
914         * modules/ceill (Depends-on): Likewise.
915         * modules/chdir-long (Depends-on): Likewise.
916         * modules/chown (Depends-on): Likewise.
917         * modules/close (Depends-on): Likewise.
918         * modules/connect (Depends-on): Likewise.
919         * modules/cosl (Depends-on): Likewise.
920         * modules/dirfd (Depends-on): Likewise.
921         * modules/dprintf (Depends-on): Likewise.
922         * modules/dprintf-posix (Depends-on): Likewise.
923         * modules/error (Depends-on): Likewise.
924         * modules/euidaccess (Depends-on): Likewise.
925         * modules/expl (Depends-on): Likewise.
926         * modules/faccessat (Depends-on): Likewise.
927         * modules/fchdir (Depends-on): Likewise.
928         * modules/fclose (Depends-on): Likewise.
929         * modules/fcntl (Depends-on): Likewise.
930         * modules/fdopendir (Depends-on): Likewise.
931         * modules/fflush (Depends-on): Likewise.
932         * modules/floor (Depends-on): Likewise.
933         * modules/floorf (Depends-on): Likewise.
934         * modules/floorl (Depends-on): Likewise.
935         * modules/fnmatch (Depends-on): Likewise.
936         * modules/fopen (Depends-on): Likewise.
937         * modules/fprintf-posix (Depends-on): Likewise.
938         * modules/frexp (Depends-on): Likewise.
939         * modules/frexp-nolibm (Depends-on): Likewise.
940         * modules/frexpl (Depends-on): Likewise.
941         * modules/frexpl-nolibm (Depends-on): Likewise.
942         * modules/fseek (Depends-on): Likewise.
943         * modules/fsusage (Depends-on): Likewise.
944         * modules/ftell (Depends-on): Likewise.
945         * modules/ftello (Depends-on): Likewise.
946         * modules/futimens (Depends-on): Likewise.
947         * modules/getcwd (Depends-on): Likewise.
948         * modules/getcwd-lgpl (Depends-on): Likewise.
949         * modules/getdelim (Depends-on): Likewise.
950         * modules/getdomainname (Depends-on): Likewise.
951         * modules/getgroups (Depends-on): Likewise.
952         * modules/gethostname (Depends-on): Likewise.
953         * modules/getline (Depends-on): Likewise.
954         * modules/getlogin_r (Depends-on): Likewise.
955         * modules/getopt-posix (Depends-on): Likewise.
956         * modules/getpeername (Depends-on): Likewise.
957         * modules/getsockname (Depends-on): Likewise.
958         * modules/getsockopt (Depends-on): Likewise.
959         * modules/getsubopt (Depends-on): Likewise.
960         * modules/getusershell (Depends-on): Likewise.
961         * modules/glob (Depends-on): Likewise.
962         * modules/grantpt (Depends-on): Likewise.
963         * modules/iconv_open (Depends-on): Likewise.
964         * modules/iconv_open-utf (Depends-on): Likewise.
965         * modules/inet_ntop (Depends-on): Likewise.
966         * modules/inet_pton (Depends-on): Likewise.
967         * modules/ioctl (Depends-on): Likewise.
968         * modules/isapipe (Depends-on): Likewise.
969         * modules/isfinite (Depends-on): Likewise.
970         * modules/isinf (Depends-on): Likewise.
971         * modules/lchown (Depends-on): Likewise.
972         * modules/ldexpl (Depends-on): Likewise.
973         * modules/link (Depends-on): Likewise.
974         * modules/linkat (Depends-on): Likewise.
975         * modules/listen (Depends-on): Likewise.
976         * modules/logl (Depends-on): Likewise.
977         * modules/lstat (Depends-on): Likewise.
978         * modules/mbrlen (Depends-on): Likewise.
979         * modules/mbrtowc (Depends-on): Likewise.
980         * modules/mbsinit (Depends-on): Likewise.
981         * modules/mbsnrtowcs (Depends-on): Likewise.
982         * modules/mbsrtowcs (Depends-on): Likewise.
983         * modules/mbtowc (Depends-on): Likewise.
984         * modules/memcmp (Depends-on): Likewise.
985         * modules/mkdir (Depends-on): Likewise.
986         * modules/mkdtemp (Depends-on): Likewise.
987         * modules/mkfifo (Depends-on): Likewise.
988         * modules/mkfifoat (Depends-on): Likewise.
989         * modules/mknod (Depends-on): Likewise.
990         * modules/mkostemp (Depends-on): Likewise.
991         * modules/mkostemps (Depends-on): Likewise.
992         * modules/mkstemp (Depends-on): Likewise.
993         * modules/mkstemps (Depends-on): Likewise.
994         * modules/mktime (Depends-on): Likewise.
995         * modules/nanosleep (Depends-on): Likewise.
996         * modules/open (Depends-on): Likewise.
997         * modules/openat (Depends-on): Likewise.
998         * modules/perror (Depends-on): Likewise.
999         * modules/poll (Depends-on): Likewise.
1000         * modules/popen (Depends-on): Likewise.
1001         * modules/posix_spawn (Depends-on): Likewise.
1002         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
1003         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1004         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1005         * modules/posix_spawnp (Depends-on): Likewise.
1006         * modules/pread (Depends-on): Likewise.
1007         * modules/printf-posix (Depends-on): Likewise.
1008         * modules/ptsname (Depends-on): Likewise.
1009         * modules/putenv (Depends-on): Likewise.
1010         * modules/pwrite (Depends-on): Likewise.
1011         * modules/readline (Depends-on): Likewise.
1012         * modules/readlink (Depends-on): Likewise.
1013         * modules/readlinkat (Depends-on): Likewise.
1014         * modules/recv (Depends-on): Likewise.
1015         * modules/recvfrom (Depends-on): Likewise.
1016         * modules/regex (Depends-on): Likewise.
1017         * modules/remove (Depends-on): Likewise.
1018         * modules/rename (Depends-on): Likewise.
1019         * modules/renameat (Depends-on): Likewise.
1020         * modules/rmdir (Depends-on): Likewise.
1021         * modules/round (Depends-on): Likewise.
1022         * modules/roundf (Depends-on): Likewise.
1023         * modules/roundl (Depends-on): Likewise.
1024         * modules/rpmatch (Depends-on): Likewise.
1025         * modules/select (Depends-on): Likewise.
1026         * modules/send (Depends-on): Likewise.
1027         * modules/sendto (Depends-on): Likewise.
1028         * modules/setenv (Depends-on): Likewise.
1029         * modules/setlocale (Depends-on): Likewise.
1030         * modules/setsockopt (Depends-on): Likewise.
1031         * modules/shutdown (Depends-on): Likewise.
1032         * modules/sigaction (Depends-on): Likewise.
1033         * modules/signbit (Depends-on): Likewise.
1034         * modules/sigprocmask (Depends-on): Likewise.
1035         * modules/sinl (Depends-on): Likewise.
1036         * modules/sleep (Depends-on): Likewise.
1037         * modules/snprintf (Depends-on): Likewise.
1038         * modules/snprintf-posix (Depends-on): Likewise.
1039         * modules/socket (Depends-on): Likewise.
1040         * modules/sprintf-posix (Depends-on): Likewise.
1041         * modules/sqrtl (Depends-on): Likewise.
1042         * modules/stat (Depends-on): Likewise.
1043         * modules/strchrnul (Depends-on): Likewise.
1044         * modules/strdup-posix (Depends-on): Likewise.
1045         * modules/strerror (Depends-on): Likewise.
1046         * modules/strerror_r-posix (Depends-on): Likewise.
1047         * modules/strndup (Depends-on): Likewise.
1048         * modules/strnlen (Depends-on): Likewise.
1049         * modules/strptime (Depends-on): Likewise.
1050         * modules/strsep (Depends-on): Likewise.
1051         * modules/strsignal (Depends-on): Likewise.
1052         * modules/strstr-simple (Depends-on): Likewise.
1053         * modules/strtod (Depends-on): Likewise.
1054         * modules/strtoimax (Depends-on): Likewise.
1055         * modules/strtok_r (Depends-on): Likewise.
1056         * modules/strtoumax (Depends-on): Likewise.
1057         * modules/symlink (Depends-on): Likewise.
1058         * modules/symlinkat (Depends-on): Likewise.
1059         * modules/tanl (Depends-on): Likewise.
1060         * modules/tcgetsid (Depends-on): Likewise.
1061         * modules/tmpfile (Depends-on): Likewise.
1062         * modules/trunc (Depends-on): Likewise.
1063         * modules/truncf (Depends-on): Likewise.
1064         * modules/truncl (Depends-on): Likewise.
1065         * modules/uname (Depends-on): Likewise.
1066         * modules/unlink (Depends-on): Likewise.
1067         * modules/unlockpt (Depends-on): Likewise.
1068         * modules/unsetenv (Depends-on): Likewise.
1069         * modules/usleep (Depends-on): Likewise.
1070         * modules/utimensat (Depends-on): Likewise.
1071         * modules/vasprintf (Depends-on): Likewise.
1072         * modules/vdprintf (Depends-on): Likewise.
1073         * modules/vdprintf-posix (Depends-on): Likewise.
1074         * modules/vfprintf-posix (Depends-on): Likewise.
1075         * modules/vprintf-posix (Depends-on): Likewise.
1076         * modules/vsnprintf (Depends-on): Likewise.
1077         * modules/vsnprintf-posix (Depends-on): Likewise.
1078         * modules/vsprintf-posix (Depends-on): Likewise.
1079         * modules/wcrtomb (Depends-on): Likewise.
1080         * modules/wcscasecmp (Depends-on): Likewise.
1081         * modules/wcscspn (Depends-on): Likewise.
1082         * modules/wcsdup (Depends-on): Likewise.
1083         * modules/wcsncasecmp (Depends-on): Likewise.
1084         * modules/wcsnrtombs (Depends-on): Likewise.
1085         * modules/wcspbrk (Depends-on): Likewise.
1086         * modules/wcsrtombs (Depends-on): Likewise.
1087         * modules/wcsspn (Depends-on): Likewise.
1088         * modules/wcsstr (Depends-on): Likewise.
1089         * modules/wcstok (Depends-on): Likewise.
1090         * modules/wcswidth (Depends-on): Likewise.
1091         * modules/wctob (Depends-on): Likewise.
1092         * modules/wctomb (Depends-on): Likewise.
1093         * modules/wctype (Depends-on): Likewise.
1094         * modules/wcwidth (Depends-on): Likewise.
1095         * modules/write (Depends-on): Likewise.
1096
1097 2011-05-03  Bruno Haible  <bruno@clisp.org>
1098
1099         Support for conditional dependencies.
1100         * doc/gnulib.texi (Module description): Document the syntax of
1101         conditional dependencies.
1102         * gnulib-tool: New option --conditional-dependencies.
1103         (func_usage): Document it.
1104         (cond_dependencies): New variable.
1105         (func_get_automake_snippet_conditional,
1106         func_get_automake_snippet_unconditional): New functions, extracted from
1107         func_get_automake_snippet.
1108         (func_get_automake_snippet): Use them.
1109         (sed_first_32_chars): New variable.
1110         (func_module_shellfunc_name): New function.
1111         (func_module_shellvar_name): New function.
1112         (func_module_conditional_name): New function.
1113         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
1114         func_cond_module_condition): New functions.
1115         (func_modules_transitive_closure): Add support for conditional
1116         dependencies.
1117         (func_emit_lib_Makefile_am): For a conditional module, enclose the
1118         conditional automake snippet in an automake conditional.
1119         (func_emit_autoconf_snippets): Emit shell functions that contain the
1120         code for conditional modules.
1121         (func_import, func_create_testdir): Update specification.
1122
1123 2011-05-03  Eric Blake  <eblake@redhat.com>
1124
1125         test-getaddrinfo: report error information
1126         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
1127
1128 2011-05-03  Jim Meyering  <meyering@redhat.com>
1129
1130         bootstrap: avoid build failure when $GZIP is set
1131         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
1132         program name.  If defined at all, it is supposed to list gzip options.
1133         Reported by Alan Curry in http://debbugs.gnu.org/8609
1134
1135 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
1136
1137         readme-release: new module with release instructions
1138         * modules/readme-release: New module.
1139         * top/README-release: New file, from coreutils, grep, diffutils.
1140         * MODULES.html.sh (Support for maintaining and releasing): Add it.
1141
1142 2011-05-02  Eric Blake  <eblake@redhat.com>
1143
1144         fflush: also replace fclose when fixing fflush
1145         * modules/fflush (Depends-on): Add fclose.
1146         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
1147         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
1148         memstreams with no backing fd.
1149         * doc/posix-functions/fclose.texi (fclose): Document the use of
1150         fflush module to fix the bug.
1151         * tests/test-fclose.c (main): Relax test when fclose is used in
1152         isolation.
1153
1154         fclose: add some tests
1155         * modules/fclose-tests: New test module.
1156         * tests/test-fclose.c: New file.
1157         * doc/posix-functions/fclose.texi (fclose): Document the bug.
1158
1159         fclose: reduced dependencies
1160         * modules/fclose (Depends-on): Switch from fflush/fseeko to
1161         simpler lseek.
1162         * lib/fclose.c (rpl_fclose): Likewise.
1163         Reported by Simon Josefsson.
1164
1165         exit: drop remaining clients
1166         * modules/argmatch (Depends-on): Replace exit with stdlib.
1167         * modules/copy-file (Depends-on): Likewise.
1168         * modules/execute (Depends-on): Likewise.
1169         * modules/exitfail (Depends-on): Likewise.
1170         * modules/obstack (Depends-on): Likewise.
1171         * modules/pagealign_alloc (Depends-on): Likewise.
1172         * modules/pipe-filter-gi (Depends-on): Likewise.
1173         * modules/pipe-filter-ii (Depends-on): Likewise.
1174         * modules/savewd (Depends-on): Likewise.
1175         * modules/spawn-pipe (Depends-on): Likewise.
1176         * modules/wait-process (Depends-on): Likewise.
1177         * modules/xsetenv (Depends-on): Likewise.
1178         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
1179         * modules/git-merge-changelog (Depends-on): Likewise.
1180         * modules/long-options (Depends-on): Likewise.
1181         * modules/pt_chown (Depends-on): Likewise.
1182         * modules/sysexits (Depends-on): Likewise.
1183
1184         freading: relax license from LGPLv3+ to LGPLv2+
1185         * modules/freading (License): Relax LGPL version.
1186
1187 2011-05-02  Bruno Haible  <bruno@clisp.org>
1188
1189         fchdir: Remove unused dependencies.
1190         * modules/fchdir (Depends-on): Remove include_next.
1191
1192 2011-05-02  Bruno Haible  <bruno@clisp.org>
1193
1194         gnulib-tool: Refactor.
1195         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
1196         from func_emit_autoconf_snippets.
1197         (func_emit_autoconf_snippets): Use it.
1198
1199 2011-05-02  Simon Josefsson  <simon@josefsson.org>
1200
1201         * NEWS: Document removal of 'exit'.
1202         * modules/exit: Remove file.
1203
1204 2011-05-01  Bruno Haible  <bruno@clisp.org>
1205
1206         Update DEPENDENCIES.
1207         * DEPENDENCIES (gettext): Recommend the newest release.
1208         Reported by Simon Josefsson.
1209
1210 2011-05-01  Bruno Haible  <bruno@clisp.org>
1211
1212         gnulib-tool: Reduce code duplication.
1213         * gnulib-tool (func_emit_autoconf_snippets): New function.
1214         (func_import, func_create_testdir): Use it.
1215
1216 2011-04-30  Eric Blake  <eblake@redhat.com>
1217
1218         fclose: don't fail on non-seekable input stream
1219         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
1220         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
1221         since fflush is allowed to fail in that case.
1222
1223 2011-04-30  Bruno Haible  <bruno@clisp.org>
1224
1225         dup3: cleanup
1226         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
1227
1228 2011-04-30  Bruno Haible  <bruno@clisp.org>
1229
1230         netdb: Make it work in C++ mode.
1231         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
1232         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
1233         module.
1234         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
1235         gl_MODULE_INDICATOR_FOR_TESTS.
1236         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
1237         * modules/netdb-c++-tests: New file.
1238         * tests/test-netdb-c++.cc: New file.
1239
1240 2011-04-30  Bruno Haible  <bruno@clisp.org>
1241
1242         New modules 'vfscanf', 'vscanf'.
1243         * modules/vfscanf: New file.
1244         * modules/vscanf: New file.
1245         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
1246         here.
1247         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
1248         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
1249
1250 2011-04-30  Bruno Haible  <bruno@clisp.org>
1251
1252         passfd: Add comments.
1253         * lib/passfd.c: Add comments about platforms.
1254
1255 2011-04-30  Bruno Haible  <bruno@clisp.org>
1256
1257         sys_uio: Make <sys/uio.h> self-contained.
1258         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
1259         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
1260
1261 2011-04-30  Bruno Haible  <bruno@clisp.org>
1262
1263         sys_socket: Ensure 'struct iovec' definition.
1264         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
1265         <sys/socket.h>.
1266         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
1267
1268 2011-04-30  Bruno Haible  <bruno@clisp.org>
1269
1270         sys_uio: Protect definition of 'struct iovec'.
1271         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
1272         it as a C struct.
1273
1274 2011-04-30  Bruno Haible  <bruno@clisp.org>
1275
1276         manywarnings: fix indentation
1277         * m4/manywarnings.m4: Indent by 2 spaces consistently.
1278
1279 2011-04-30  Pádraig Brady <P@draigBrady.com>
1280
1281         manywarnings: add -Wno-missing-field-initializers if needed.
1282         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
1283         option if it's needed to allow initialization with { 0, }
1284
1285 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
1286
1287         announce-gen: cosmetic improvement
1288         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
1289
1290 2011-04-29  Jim Meyering  <meyering@redhat.com>
1291
1292         vc-list-files: indent with spaces, not TABs
1293         * build-aux/vc-list-files: Convert leading TABs to spaces,
1294         to match the style of most other files in gnulib.
1295
1296         announce-gen: indent with spaces, not TABs
1297         * build-aux/announce-gen: Convert all TABs to spaces, to match
1298         the style of most other files in gnulib.
1299
1300 2011-04-29  Eric Blake  <eblake@redhat.com>
1301
1302         quotearg: avoid uninitialized variable use
1303         * lib/quotearg.c (quoting_options_from_style): Initialize
1304         remaining fields, and ensure that custom styles are only used via
1305         quoting_options rather than quoting_style.
1306
1307 2011-04-29  Jim Meyering  <meyering@redhat.com>
1308
1309         maint.mk: remove unused VC-tag variable
1310         * top/maint.mk (VC-tag): Remove unused variable.
1311
1312 2011-04-29  Bruno Haible  <bruno@clisp.org>
1313
1314         netdb: fix gai_strerror replacements
1315         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
1316         * modules/netdb: Substitute it.
1317
1318 2011-04-29  Jim Meyering  <meyering@redhat.com>
1319
1320         test-getcwd.c: avoid new set-but-not-used warning
1321         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
1322         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
1323         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
1324         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
1325
1326         test-hash.c: avoid a new shadowing warning
1327         * tests/test-hash.c (main): Don't shadow "dup".
1328
1329 2011-04-28  Eric Blake  <eblake@redhat.com>
1330
1331         getaddrinfo: fix gai_strerror signature
1332         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
1333         and work around mingw with UNICODE defined.
1334         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
1335         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
1336         * modules/netdb (Makefile.am): Substitute it.
1337         * lib/netdb.in.h (gai_strerror): Declare replacement.
1338         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
1339         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
1340         the fix.
1341
1342         getsockopt: avoid compiler warning
1343         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
1344         Reported by Matthias Bolte.
1345
1346         tests: drop unused link dependency
1347         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
1348         * modules/dirent-safer-tests (Makefile.am): Likewise.
1349         * modules/fdopendir-tests (Makefile.am): Likewise.
1350         * modules/mkfifoat-tests (Makefile.am): Likewise.
1351         * modules/openat-safer-tests (Makefile.am): Likewise.
1352         * modules/openat-tests (Makefile.am): Likewise.
1353         * modules/readlinkat-tests (Makefile.am): Likewise.
1354         * modules/symlinkat-tests (Makefile.am): Likewise.
1355         * modules/linkat-tests (Makefile.am): Likewise.
1356         (Depends-on): Switch to filenamecat-lgpl.
1357         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
1358         LIBINTL.
1359         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
1360         * tests/test-linkat.c (main): Don't require xalloc.
1361
1362         hash, mgetgroups: drop xalloc dependency
1363         * lib/hash.c (includes): Adjust includes.
1364         * lib/mgetgroups.c (includes): Likewise.
1365         (xgetgroups): Move...
1366         * lib/xgetgroups.c: ...to new file.
1367         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
1368         * modules/xgetgroups: New file, split from...
1369         * modules/mgetgroups: ...here.
1370         (Depends-on): Add xalloc-oversized.
1371         * modules/hash (Depends-on): Likewise.
1372         * modules/hash-tests (Depends-on): Drop xalloc.
1373         (test_hash_LDADD): Drop unused library.
1374         * tests/test-hash.c (main): Break xalloc dependency.
1375         (includes): Drop unused include.
1376
1377         xalloc-oversized: new module
1378         * modules/xalloc-oversized: New module.
1379         * modules/xalloc (Depends-on): Add it.
1380         * lib/xalloc.h (xalloc_oversized): Move...
1381         * lib/xalloc-oversized.h: ...into new file.
1382
1383         utimecmp: drop dependency on xmalloc
1384         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
1385         due to memory pressure.
1386         * modules/utimecmp (Depends-on): Drop xalloc.
1387
1388 2011-04-27  Eric Blake  <eblake@redhat.com>
1389
1390         getcwd: fix mingw bugs
1391         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
1392         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
1393         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
1394
1395 2011-04-27  Bruno Haible  <bruno@clisp.org>
1396
1397         mkstemps: Ensure declaration on MacOS X 10.5.
1398         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
1399         * doc/glibc-functions/mkstemps.texi: Document header file problem on
1400         MacOS X.
1401
1402 2011-04-27  Bruno Haible  <bruno@clisp.org>
1403
1404         mkstemp: More documentation.
1405         * doc/posix-functions/mkstemp.texi: Document header file problem on
1406         MacOS X.
1407
1408 2011-04-27  Bruno Haible  <bruno@clisp.org>
1409
1410         mkstemp: Tweak configure message when cross-compiling.
1411         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
1412         result as a guess.
1413
1414 2011-04-27  Bruno Haible  <bruno@clisp.org>
1415
1416         clean-temp: Clarify what it does.
1417         * lib/clean-temp.h: Add more comments.
1418         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
1419         module.
1420         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
1421         * doc/glibc-functions/mkstemps.texi: Likewise.
1422         * doc/glibc-functions/mkostemps.texi: Likewise.
1423
1424 2011-04-27  Eric Blake  <eblake@redhat.com>
1425
1426         fchdir: avoid extra chdir and fix test
1427         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
1428         getcwd-lgpl.
1429         * lib/fchdir.c (get_name): Any absolute name will do; it does not
1430         have to be canonical.
1431         (canonicalize_file_name): Drop unused macro.
1432         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
1433
1434         filenamecat-lgpl: fix licence
1435         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
1436         when it was first created.
1437
1438         linkat, renameat: add missing dependency
1439         * modules/linkat (Depends-on): Require getcwd-lgpl.
1440         * modules/renameat (Depends-on): Likewise.
1441
1442         tests: reduce dependencies
1443         * tests/test-linkat.c (main): Use lighter-weight getcwd.
1444         * tests/test-renameat.c (main): Likewise.
1445         * modules/linkat-tests (Depends-on): Relax dependency.
1446         * modules/renameat-tests (Depends-on): Likewise.
1447         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
1448         dependency explicit.
1449
1450         save-cwd: reduce default dependency
1451         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
1452         * lib/save-cwd.c: Update comments.
1453         * NEWS: Document the semantic change.
1454
1455         getcwd: enhance tests
1456         * tests/test-getcwd-lgpl.c: New file, taken from...
1457         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
1458         repeat long path stress tests from m4 probe.
1459         * modules/getcwd-lgpl-tests: New module.
1460         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
1461         * m4/getcwd-abort-bug.m4: Update comment.
1462         * m4/getcwd-path-max.m4: Likewise.
1463
1464         getcwd-lgpl: new module
1465         * modules/getcwd-lgpl: New module.
1466         * lib/getcwd-lgpl.c: New file.
1467         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1468         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1469         * modules/getcwd (configure.ac): Set C witness.
1470         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
1471
1472         getcwd: tweak comments
1473         * m4/getcwd-abort-bug.m4: Fix comments.
1474         * m4/getcwd-path-max.m4: Likewise.
1475         * m4/getcwd.m4: Likewise.
1476
1477 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1478         and Eric Blake  <eblake@redhat.com>
1479
1480         mkstemp: replace if system version uses wrong permissions
1481         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
1482         read/write mode bits set in file created by mkstemp.
1483         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
1484
1485 2011-04-27  Eric Blake  <eblake@redhat.com>
1486
1487         passfd: avoid compiler warning
1488         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
1489         Reported by Laine Stump.
1490
1491 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
1492
1493         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
1494         required by the NetBSD (and perhaps other 4.4BSD derived) join.
1495
1496 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1497         and Eric Blake  <eblake@redhat.com>
1498
1499         mkstemp: mention clean-temp module
1500         * lib/mkstemp.c: Add comment.
1501         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
1502
1503 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1504
1505         inttypes: also provide default values for 32-bit tests
1506         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
1507         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
1508
1509 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1510
1511         strtoumax: remove dependency on strtoimax
1512         This is like the strtoull change of yesterday.
1513         * modules/strtoumax (Files): Add lib/strtoimax.c.
1514         (Depends-on): Remove strtoimax and add verify.
1515
1516         inttypes-incomplete: new module
1517         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
1518         all but the PRI* and SCN* parts of gl_INTTYPES_H.
1519         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
1520         of gl_INTTYPES_H.
1521         (gl_INTTYPES_H): Rewrite in terms of these new macros.
1522         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
1523         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
1524         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
1525         * modules/strtoumax, modules/xstrtol (Depends-on):
1526         Depend on inttypes-incomplete, not inttypes.
1527         * modules/inttypes-incomplete: New module, containing the contents
1528         of the old modules/inttypes module, except that the Files: section
1529         omits m4/inttypes-pri.m4, and the configure.ac section invokes
1530         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
1531         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
1532         (Depends-on): Depend only on inttypes-incomplete.
1533         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
1534
1535         inttypes: omit now-redundant strtoimax and strtoumax work
1536         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
1537         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
1538
1539         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
1540         This supports apps that need pointers to strtoimax and strtoumax,
1541         and ports to HP-UX 11.00 64.bit, which has macros that expand to
1542         nonexistent functions.  See
1543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
1544         et seq.
1545         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
1546         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
1547         a macro.
1548         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1549
1550 2011-04-25  Simon Josefsson  <simon@josefsson.org>
1551
1552         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
1553
1554 2011-04-25  Bruno Haible  <bruno@clisp.org>
1555
1556         strtol, strtoul: Mark modules as obsolete.
1557         * modules/strtol (Status, Notice): New sections.
1558         * modules/strtoul (Status, Notice): New sections.
1559
1560 2011-04-25  Bruno Haible  <bruno@clisp.org>
1561
1562         strtod: Remove check for strtod, unless supporting old platforms.
1563         * modules/strtod-obsolete: New file.
1564         * m4/strtod-obsolete.m4: New file.
1565         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
1566         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
1567         * modules/strtod (Depends-on): Add strtod-obsolete.
1568         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
1569
1570 2011-04-25  Bruno Haible  <bruno@clisp.org>
1571
1572         strcase: Make module obsolete.
1573         * modules/strcase (Status, Notice): New sections.
1574
1575 2011-04-25  Bruno Haible  <bruno@clisp.org>
1576
1577         dup2: Remove check for dup2, unless supporting old obsolete platforms.
1578         * modules/dup2-obsolete: New file.
1579         * m4/dup2-obsolete.m4: New file.
1580         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
1581         gl_FUNC_DUP2_OBSOLETE is not also defined.
1582         * modules/dup2 (Depends-on): Add dup2-obsolete.
1583         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
1584
1585 2011-04-25  Bruno Haible  <bruno@clisp.org>
1586
1587         strnlen: Avoid memchr related link error on old obsolete platforms.
1588         * modules/memchr-obsolete: New file.
1589         * m4/memchr-obsolete.m4: New file.
1590         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
1591         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
1592         * modules/memchr (Depends-on): Add memchr-obsolete.
1593         * modules/strnlen (Depends-on): Likewise.
1594         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
1595
1596 2011-04-25  Jim Meyering  <meyering@redhat.com>
1597
1598         maint.mk: makefile_at_at_check extend and clean up
1599         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
1600         in addition to */Makefile.am.
1601         Exempt legitimate uses of @VAR@ notation, e.g.,
1602         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
1603         Remove obsolete coreutils-specific comment.
1604         Prompted by discussion here:
1605         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
1606
1607 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
1608
1609         strtoul: remove dependency on strtol
1610         This is so that 'configure' need not check for strtol merely because
1611         the application needs strtoul.
1612         * modules/strtoul (Files): Add lib/strtol.c.
1613         (Depends-on): Remove strtol.
1614
1615         strtoull: remove dependency on strtoul
1616         This is like the strtoll change.
1617         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
1618         (Depends-on): Remove strtoul.
1619
1620         strtoll: remove dependency on strtol
1621         This is so that 'configure' need not check for strtol merely because
1622         the application needs strtoll.
1623         * modules/strtoll (Files): Add lib/strtol.c.
1624         (Depends-on): Remove strtol.
1625
1626 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1627
1628         inttypes: Move some configure check to module 'imaxdiv'.
1629         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
1630         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
1631         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
1632
1633 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1634
1635         inttypes: Move some configure check to module 'imaxabs'.
1636         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
1637         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
1638         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
1639
1640 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1641
1642         inttypes: Remove configure tests that are not needed since 2009-12-31.
1643         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
1644         gl_cv_header_working_inttypes_h.
1645
1646 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1647
1648         * modules/strnlen (Depends-on): Remove memchr.
1649         The strnlen implementation doesn't need the memchr module's fixes; see
1650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
1651
1652         strtol: remove dependency on wchar
1653         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
1654         * modules/strtol (Depends-on): Remove wchar.
1655
1656 2011-04-21  Eric Blake  <eblake@redhat.com>
1657
1658         passfd: fix test regression on Linux
1659         * modules/passfd-tests (configure.ac): Correct socketpair check.
1660
1661         passfd: speed up configure and drop unused code
1662         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
1663         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
1664         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
1665         Instead of probing at configure for unix_scm_rights_bsd44_way,
1666         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
1667         check to a struct member probe.
1668         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
1669         (sendfd, recvfd): Update preprocessor checks.
1670         * modules/passfd (Files): Reflect rename, and drop unused file.
1671         (Depends-on): Drop unused dependency.
1672
1673         passfd: allow compilation on mingw
1674         * modules/sys_socket (Depends-on): Add sys_uio.
1675         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
1676         iovec and a minimal struct msghdr.
1677         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
1678         * tests/test-sys_socket.c (main): Enhance test.
1679         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
1680         guaranteed to provide what we need.
1681         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
1682         * modules/passfd-tests (Depends-on): Add sys_wait.
1683         * tests/test-passfd.c (main): Skip test on mingw, for now.
1684         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
1685         partial 'struct msghdr' implementation.
1686
1687         sys_uio: new module
1688         * modules/sys_uio: New module.
1689         * modules/sys_uio-tests: Likewise.
1690         * lib/sys_uio.in.h: New file.
1691         * m4/sys_uio_h.m4: Likewise.
1692         * tests/test-sys_uio.c: Likewise.
1693         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
1694         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
1695
1696 2011-04-20  Jim Meyering  <meyering@redhat.com>
1697
1698         useless-if-before-free: avoid false-positive
1699         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
1700         disjunct so that it too requires a terminating ";".  Without that,
1701         this script would identify as useless one statement from gcc that
1702         was not:
1703           if (aligned_ptr)
1704             free (((void **) aligned_ptr) [-1]);
1705
1706 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
1707
1708         doc: update users.txt.
1709         * users.txt: Add barcode.
1710
1711 2011-04-19  Bruno Haible  <bruno@clisp.org>
1712
1713         ioctl: Remove link dependency on native Windows.
1714         * lib/fd-hook.h: Renamed from lib/close-hook.h.
1715         (gl_close_fn, gl_ioctl_fn): New types.
1716         (struct fd_hook): Renamed from struct close_hook. Change type of
1717         private_close_fn field. Add private_ioctl_fn field.
1718         (close_hook_fn): Add parameter for primary close method.
1719         (execute_close_hooks, execute_all_close_hooks): Likewise.
1720         (ioctl_hook_fn): New type.
1721         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
1722         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1723         argument.
1724         (unregister_fd_hook): Renamed from unregister_close_hook.
1725         * lib/fd-hook.c: Renamed from lib/close-hook.c.
1726         Don't include <unistd.h>.
1727         (close): Remove undef.
1728         (anchor): Update.
1729         (execute_close_hooks): Add argument for primary close method.
1730         (execute_all_close_hooks): Likewise.
1731         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
1732         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1733         argument. Allow each argument to be NULL.
1734         (unregister_fd_hook): Renamed from unregister_close_hook.
1735         * lib/close.c (rpl_close): Pass 'close' function pointer to
1736         execute_all_close_hooks.
1737         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
1738         (primary_ioctl): New function.
1739         (ioctl): Don't call ioctlsocket here. Instead, call
1740         execute_all_ioctl_hooks.
1741         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
1742         close method.
1743         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
1744         (fd_sockets_hook): Renamed from close_sockets_hook.
1745         (gl_sockets_startup, gl_sockets_cleanup): Update.
1746         * modules/fd-hook: Renamed from modules/close-hook. Update.
1747         * modules/close (Depends-on): Add fd-hook, remove close-hook.
1748         * modules/sockets (Depends-on): Likewise.
1749         * modules/ioctl (Depends-on): Add fd-hook.
1750         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
1751         GNULIB_SOCKET.
1752
1753 2011-04-19  Bruno Haible  <bruno@clisp.org>
1754
1755         Move the support of O_NONBLOCK in open() to the 'open' module.
1756         * modules/nonblocking (Depends-on): Remove 'open'.
1757         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
1758         gl_cv_have_open_O_NONBLOCK.
1759         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
1760         O_NONBLOCK support.
1761         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
1762
1763 2011-04-17  Bruno Haible  <bruno@clisp.org>
1764
1765         pipe2: Simplify code.
1766         * lib/pipe2.c (pipe2): Reduce code duplication.
1767
1768 2011-04-17  Bruno Haible  <bruno@clisp.org>
1769
1770         nonblocking: Add comment.
1771         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
1772
1773 2011-04-17  Bruno Haible  <bruno@clisp.org>
1774
1775         nonblocking: Add tests for sockets.
1776         * tests/test-nonblocking-socket.sh: New file.
1777         * tests/test-nonblocking-socket-main.c: New file.
1778         * tests/test-nonblocking-socket-child.c: New file.
1779         * tests/test-nonblocking-socket.h: New file.
1780         * tests/socket-server.h: New file.
1781         * tests/socket-client.h: New file.
1782         * modules/nonblocking-socket-tests: New file.
1783         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
1784
1785 2011-04-17  Bruno Haible  <bruno@clisp.org>
1786
1787         nonblocking: Add tests for pipes.
1788         * tests/test-nonblocking-pipe.sh: New file.
1789         * tests/test-nonblocking-pipe-main.c: New file.
1790         * tests/test-nonblocking-pipe-child.c: New file.
1791         * tests/test-nonblocking-pipe.h: New file.
1792         * tests/test-nonblocking-writer.h: New file.
1793         * tests/test-nonblocking-reader.h: New file.
1794         * tests/test-nonblocking-misc.h: New file.
1795         * modules/nonblocking-pipe-tests: New file.
1796         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
1797
1798 2011-04-16  Bruno Haible  <bruno@clisp.org>
1799
1800         gettext: Clarify the needed programmer actions.
1801         * modules/gettext (Notice): New field.
1802         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1803
1804 2011-04-16  Bruno Haible  <bruno@clisp.org>
1805
1806         strchrnul: Tweak last commit.
1807         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
1808         bug.
1809         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
1810         as in _GL_FUNCDECL_SYS.
1811         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
1812         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
1813
1814 2011-04-15  Eric Blake  <eblake@redhat.com>
1815
1816         strchrnul: work around cygwin bug
1817         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
1818         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
1819         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
1820         * modules/string (Makefile.am): Substitute it.
1821         * lib/string.in.h (strchrnul): Use it.
1822
1823 2011-04-15  Bruno Haible  <bruno@clisp.org>
1824
1825         Don't require lib/stdio-write.c when only module 'stdio' is used.
1826         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
1827         invocation.
1828         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
1829
1830 2011-04-14  Bruno Haible  <bruno@clisp.org>
1831
1832         Support non-blocking pipe I/O in read() on native Windows.
1833         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
1834         (read): New declaration.
1835         * lib/read.c: New file.
1836         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
1837         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
1838         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
1839         vscanf): New declarations.
1840         * lib/stdio-read.c: New file.
1841         * m4/read.m4: New file.
1842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
1843         REPLACE_READ.
1844         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
1845         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1846         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
1847         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
1848         (gl_STDIO_H_DEFAULTS): Initialize 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/read: New file.
1852         * modules/nonblocking (Files): Add lib/stdio-read.c.
1853         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
1854         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
1855         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1856         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1857         * modules/pread (Depends-on): Add read.
1858         * modules/safe-read (Depends-on): Likewise.
1859         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
1860         gets, scanf, vfscanf, vscanf): Verify signatures.
1861         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
1862         problem with non-blocking pipes.
1863         * doc/posix-functions/fgetc.texi: Likewise.
1864         * doc/posix-functions/fgets.texi: Likewise.
1865         * doc/posix-functions/fread.texi: Likewise.
1866         * doc/posix-functions/fscanf.texi: Likewise.
1867         * doc/posix-functions/getc.texi: Likewise.
1868         * doc/posix-functions/getchar.texi: Likewise.
1869         * doc/posix-functions/gets.texi: Likewise.
1870         * doc/posix-functions/scanf.texi: Likewise.
1871         * doc/posix-functions/vfscanf.texi: Likewise.
1872         * doc/posix-functions/vscanf.texi: Likewise.
1873
1874 2011-04-14  Bruno Haible  <bruno@clisp.org>
1875
1876         Support non-blocking pipe I/O in write() on native Windows.
1877         * lib/write.c (rpl_write): Split a write request that failed merely
1878         because the byte count was larger than the pipe buffer's size.
1879         * doc/posix-functions/write.texi: Mention the problem with large byte
1880         counts.
1881
1882 2011-04-14  Bruno Haible  <bruno@clisp.org>
1883
1884         wchar: Ensure that wchar_t gets defined on uClibc.
1885         * lib/wchar.in.h: On uClibc, include <stddef.h>.
1886         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
1887
1888 2011-04-13  Bruno Haible  <bruno@clisp.org>
1889
1890         safe-write, full-read: Avoid unnecessary compilation units.
1891         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
1892         (Depends-on): Remove safe-read. Add ssize_t.
1893         * modules/full-read (Files): Add lib/full-write.c.
1894         (Depends-on): Add full-write.
1895
1896 2011-04-13  Bruno Haible  <bruno@clisp.org>
1897
1898         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1899         * modules/pwrite (Depends-on): Add 'write'.
1900
1901 2011-04-13  Bruno Haible  <bruno@clisp.org>
1902
1903         Support non-blocking pipe I/O in write() on native Windows.
1904         * lib/unistd.in.h (write): Enable replacement also if
1905         GNULIB_UNISTD_H_NONBLOCKING is 1.
1906         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
1907         (rpl_write): When failing to write on a non-blocking pipe, change
1908         errno from ENOSPC to EAGAIN.
1909         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
1910         putchar, puts, vfprintf, vprintf): Enable replacement also if
1911         GNULIB_STDIO_H_NONBLOCKING is 1.
1912         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
1913         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
1914         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
1915         CALL_WITH_SIGPIPE_EMULATION.
1916         (CALL_WITH_SIGPIPE_EMULATION): Use them.
1917         * m4/nonblocking.m4: New file.
1918         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
1919         for non-blocking I/O support.
1920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1921         GNULIB_UNISTD_H_NONBLOCKING.
1922         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
1923         required for non-blocking I/O support.
1924         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
1925         * modules/nonblocking (Files): Add m4/nonblocking.m4,
1926         lib/stdio-write.c, m4/asm-underscore.m4.
1927         (Depends-on): Add stdio, unistd.
1928         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
1929         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
1930         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
1931         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
1932         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
1933         problem with non-blocking pipes.
1934         * doc/posix-functions/fputc.texi: Likewise.
1935         * doc/posix-functions/fputs.texi: Likewise.
1936         * doc/posix-functions/fwrite.texi: Likewise.
1937         * doc/posix-functions/printf.texi: Likewise.
1938         * doc/posix-functions/putc.texi: Likewise.
1939         * doc/posix-functions/putchar.texi: Likewise.
1940         * doc/posix-functions/puts.texi: Likewise.
1941         * doc/posix-functions/vfprintf.texi: Likewise.
1942         * doc/posix-functions/vprintf.texi: Likewise.
1943         * doc/posix-functions/write.texi: Likewise.
1944
1945 2011-04-10  Jim Meyering  <meyering@redhat.com>
1946
1947         maint.mk: prohibit doubled words
1948         Detect them also when they're separated by a newline.
1949         There are 3 ways to customize it:
1950           - disable the test on a per file basis, as usual with rules using
1951             $(VC_LIST_EXCEPT)
1952           - replace the default doubled-word-selecting regexp (affects all files)
1953           - ignore a particular file-vs-doubled-word match
1954         I nearly used that last one to ignore the "is is" match in
1955         coreutils' NEWS file, since the text was "ls -is is ..."
1956         To do that, I would have added this line to cfg.mk:
1957           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
1958         but it would have ignored any "is is" match in NEWS.
1959         Low probability, but still...
1960         Instead, I changed the text, slightly:
1961           -  ls -is is now consistent with ls -lis in ignoring values returned
1962           +  "ls -is" is now consistent with ls -lis in ignoring values returned
1963         * top/maint.mk (prohibit_double_word_RE_): Provide default.
1964         (prohibit_doubled_word_): Define.
1965         (sc_prohibit_doubled_word): New rule.
1966         (sc_prohibit_the_the): Remove.  Subsumed by the above.
1967
1968 2011-04-10  Jim Meyering  <meyering@redhat.com>
1969
1970         maint: fix doubled-word typo in comment
1971         * m4/gethostname.m4: s/is is/it is/
1972         * m4/getdomainname.m4: Likewise.
1973
1974 2011-04-10  Jim Meyering  <meyering@redhat.com>
1975
1976         maint: remove doubled word: s/it it/it/
1977         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
1978
1979 2011-04-10  Jim Meyering  <meyering@redhat.com>
1980
1981         maint.mk: remove useless semicolon and backslash
1982         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
1983         semicolon and backslash.
1984
1985 2011-04-10  Bruno Haible  <bruno@clisp.org>
1986
1987         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
1988         * modules/stdint-tests (Depends-on): Add wchar.
1989
1990 2011-04-10  Jim Meyering  <meyering@redhat.com>
1991
1992         maint: remove doubled words in comments, e.g., s/a a/a/
1993         * lib/strptime.c (day_of_the_week): s/the the/the/
1994         * tests/test-chown.h (test_chown): s/a a/a/
1995
1996         test-chown.h: correct a cast
1997         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
1998         when the destination is a stat.st_gid.
1999
2000 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
2001
2002         getaddrinfo: Fix test for sa_len member.
2003         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
2004         include <sys/types.h> before <sys/socket.h>.
2005
2006 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
2007
2008         maint: change "can not" to "cannot"
2009         * doc/posix-functions/iconv.texi (iconv): This one crossed line
2010         boundaries.
2011
2012 2011-04-09  Jim Meyering  <meyering@redhat.com>
2013
2014         maint: change "a a" to "a"
2015         * tests/test-lchown.h (test_lchown): s/a a/a/
2016
2017         maint.mk: prohibit \<the the\>
2018         * top/maint.mk (sc_prohibit_the_the): New rule.
2019
2020         maint: fix "the the" in comment
2021         * lib/count-one-bits.h: s/the the/the/
2022
2023         maint: change "can not" to "cannot"
2024         But do not change the occurrences in maintain.texi or in
2025         build-aux/po/Makefile.in.in, which I presume comes from gettext.
2026         * doc/gnulib-tool.texi: s/can not/cannot/
2027         * doc/posix-functions/accept.texi (accept): Likewise.
2028         * doc/posix-functions/socket.texi (socket): Likewise.
2029         * lib/mbrtowc.c: Likewise.
2030
2031         maint.mk: prohibit use of "can not"
2032         * top/maint.mk (sc_prohibit_can_not): New rule.
2033         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
2034
2035 2011-04-09  Bruno Haible  <bruno@clisp.org>
2036
2037         careadlinkat: Guard against misuse of careadlinkatcwd.
2038         * lib/careadlinkat.c: Include <stdlib.h>.
2039         (careadlinkatcwd): Check that the fd argument is as expected.
2040
2041 2011-04-09  Bruno Haible  <bruno@clisp.org>
2042
2043         careadlinkat: Use common coding style.
2044         * lib/careadlinkat.c: Move gnulib includes after system includes.
2045
2046 2011-04-09  Bruno Haible  <bruno@clisp.org>
2047
2048         careadlinkat: Clarify specification.
2049         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
2050         (careadlinkatcwd): Add comment.
2051         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
2052
2053 2011-04-09  Bruno Haible  <bruno@clisp.org>
2054
2055         areadlinkat: Avoid link error on many platforms.
2056         * modules/areadlinkat (Depends-on): Add areadlink.
2057
2058 2011-04-09  Bruno Haible  <bruno@clisp.org>
2059
2060         allocator, careadlinkat: Fix double-inclusion guard.
2061         * lib/allocator.h: Fix double-inclusion guard.
2062         * lib/careadlinkat.h: Likewise.
2063
2064 2011-04-09  Bruno Haible  <bruno@clisp.org>
2065
2066         relocatable-prog-wrapper: Update after module 'areadlink' changed.
2067         * lib/relocwrapper.c: Update dependencies hierarchy.
2068         * build-aux/install-reloc: Update list of files to be compiled.
2069         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
2070         lib/allocator.[hc].
2071
2072 2011-04-08  Eric Blake  <eblake@redhat.com>
2073
2074         strftime: silence gnulib-tool warning
2075         * modules/strftime-tests (Depends-on): Drop automatic dependency.
2076
2077 2011-04-08  Bruno Haible  <bruno@clisp.org>
2078
2079         verify: Fix syntax error with GCC 4.6 in C++ mode.
2080         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
2081         (HAVE_STATIC_ASSERT): New macro.
2082         (verify_true, verify): Use 'static_assert' if it is supported and
2083         '_Static_assert' is not supported.
2084
2085 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2086
2087         allocator: New module.
2088         * modules/allocator, lib/allocator.c: New files.
2089         * lib/allocator.h (stdlib_allocator): New decl.
2090         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
2091         Remove.  Do not include <stdlib.h>.
2092         (careadlinkat): Use stdlib_allocator instead of rolling our own.
2093         * modules/careadlinkat (Files): Remove lib/allocator.h.
2094         (Depends-on): Add allocator.
2095
2096         stdlib: let modules use system malloc, realloc
2097         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
2098         if !_GL_USE_STDLIB_ALLOC.
2099         (malloc, realloc): Limit this change to a smaller scope.
2100
2101         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
2102         (malloc, realloc): Don't #undef; no longer needed.
2103         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2104         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2105         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2106         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2107         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2108         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2109         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2110         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2111
2112         careadlinkat: rename members to avoid problem
2113         * lib/allocator.h (struct allocator): Rename members from
2114         malloc/realloc to allocate/reallocate, to avoid problems if malloc
2115         and realloc are #define'd.  Reported by Eric Blake in
2116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
2117         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
2118
2119 2011-04-08  Eric Blake  <eblake@redhat.com>
2120
2121         nonblocking: reduce dependency
2122         * tests/test-nonblocking.c: Only test sockets when in use.
2123         * modules/nonblocking-tests (Depends-on): Drop socket.
2124         (Makefile.am): Link even if sockets are not present.
2125         * modules/pipe2-tests (Makefile.am): Likewise.
2126         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
2127
2128         pipe2: fix O_NONBLOCK support on mingw
2129         * modules/pipe2 (Depends-on): Add nonblocking.
2130         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
2131         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
2132         * tests/test-nonblocking.c (main): Likewise.
2133         * modules/pipe2-tests (Makefile.am): Avoid link failure.
2134
2135         fcntl-h: fix O_ACCMODE on cygwin
2136         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
2137         * lib/fcntl.in.h (O_ACCMODE): Fix it.
2138
2139         pipe-filter: drop O_NONBLOCK workarounds
2140         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
2141         * modules/pipe-filter-ii (Depends-on): Likewise.
2142         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
2143
2144         nonblocking: provide O_NONBLOCK for mingw
2145         * modules/nonblocking (Depends-on): Add open.
2146         (configure.ac): Set new witness macro.
2147         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
2148         * modules/fcntl-h (Makefile.am): Substitute it.
2149         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
2150         nonblocking module is in use.
2151         * lib/nonblocking.c: Adjust portability test.
2152         * lib/open.c (open): Don't let native open see gnulib flag.
2153         * tests/test-fcntl-h.c (main): Enhance test.
2154         * tests/test-open.h (test_open): Likewise.
2155         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
2156
2157         careadlinkat: fix compilation error on mingw
2158         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
2159         within struct allocator.
2160
2161 2011-04-06  Eric Blake  <eblake@redhat.com>
2162
2163         binary-io: relicense under LGPLv2+
2164         * modules/binary-io (License): Relax to LGPLv2+.
2165         Requested for libvirt, and required by pipe2.
2166
2167 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2168
2169         verify: use _Static_assert if available
2170         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
2171         (verify_true, verify): Use it if available.  This generates better
2172         diagnostics with GCC 4.6.0 and later.
2173
2174 2011-04-05  Bruno Haible  <bruno@clisp.org>
2175
2176         Remove leftover generated .h files after config.status changed.
2177
2178         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
2179         GL_GENERATE_ALLOCA_H.
2180         * modules/alloca-opt (Makefile.am): Remove alloca.h if
2181         GL_GENERATE_ALLOCA_H evaluates to false.
2182
2183         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
2184         GL_GENERATE_ARGZ_H.
2185         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
2186         evaluates to false.
2187
2188         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
2189         GL_GENERATE_BYTESWAP_H.
2190         * modules/byteswap (Makefile.am): Remove byteswap.h if
2191         GL_GENERATE_BYTESWAP_H evaluates to false.
2192
2193         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
2194         GL_GENERATE_ERRNO_H.
2195         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
2196         evaluates to false.
2197
2198         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
2199         GL_GENERATE_FLOAT_H.
2200         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
2201         evaluates to false.
2202
2203         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
2204         GL_GENERATE_FNMATCH_H.
2205         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
2206         GL_GENERATE_FNMATCH_H evaluates to false.
2207
2208         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
2209         GL_GENERATE_GLOB_H.
2210         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
2211         evaluates to false.
2212
2213         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
2214         automake conditional GL_GENERATE_ICONV_H.
2215         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
2216         evaluates to false.
2217
2218         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
2219         GL_GENERATE_NETINET_IN_H.
2220         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
2221         GL_GENERATE_NETINET_IN_H evaluates to false.
2222
2223         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
2224         conditional GL_GENERATE_PTHREAD_H.
2225         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
2226         * modules/pthread (Makefile.am): Remove pthread.h if
2227         GL_GENERATE_PTHREAD_H evaluates to false.
2228
2229         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
2230         GL_GENERATE_SCHED_H.
2231         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
2232         evaluates to false.
2233
2234         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
2235         conditional GL_GENERATE_SELINUX_CONTEXT_H.
2236         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
2237         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
2238
2239         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
2240         GL_GENERATE_STDARG_H.
2241         * modules/stdarg (Makefile.am): Remove stdarg.h if
2242         GL_GENERATE_STDARG_H evaluates to false.
2243
2244         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
2245         GL_GENERATE_STDBOOL_H.
2246         * modules/stdbool (Makefile.am): Remove stdbool.h if
2247         GL_GENERATE_STDBOOL_H evaluates to false.
2248
2249         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
2250         conditional GL_GENERATE_STDDEF_H.
2251         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
2252         * modules/stddef (Makefile.am): Remove stddef.h if
2253         GL_GENERATE_STDDEF_H evaluates to false.
2254
2255         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
2256         GL_GENERATE_STDINT_H.
2257         * modules/stdint (Makefile.am): Remove stdint.h if
2258         GL_GENERATE_STDINT_H evaluates to false.
2259
2260         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
2261         GL_GENERATE_SYSEXITS_H.
2262         * modules/sysexits (Makefile.am): Remove sysexits.h if
2263         GL_GENERATE_SYSEXITS_H evaluates to false.
2264
2265         Reported by Karl Berry and Ralf Wildenhues.
2266
2267 2011-04-05  Bruno Haible  <bruno@clisp.org>
2268
2269         Ensure to rebuild generated .h files when config.status has changed.
2270         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
2271         config.status.
2272         * modules/ctype (Makefile.am): Likewise.
2273         * modules/dirent (Makefile.am): Likewise.
2274         * modules/errno (Makefile.am): Likewise.
2275         * modules/fcntl-h (Makefile.am): Likewise.
2276         * modules/float (Makefile.am): Likewise.
2277         * modules/getopt-posix (Makefile.am): Likewise.
2278         * modules/glob (Makefile.am): Likewise.
2279         * modules/iconv-h (Makefile.am): Likewise.
2280         * modules/inttypes (Makefile.am): Likewise.
2281         * modules/langinfo (Makefile.am): Likewise.
2282         * modules/locale (Makefile.am): Likewise.
2283         * modules/math (Makefile.am): Likewise.
2284         * modules/netdb (Makefile.am): Likewise.
2285         * modules/netinet_in (Makefile.am): Likewise.
2286         * modules/poll-h (Makefile.am): Likewise.
2287         * modules/pthread (Makefile.am): Likewise.
2288         * modules/pty (Makefile.am): Likewise.
2289         * modules/sched (Makefile.am): Likewise.
2290         * modules/search (Makefile.am): Likewise.
2291         * modules/selinux-h (Makefile.am): Likewise.
2292         * modules/signal (Makefile.am): Likewise.
2293         * modules/spawn (Makefile.am): Likewise.
2294         * modules/stdarg (Makefile.am): Likewise.
2295         * modules/stdbool (Makefile.am): Likewise.
2296         * modules/stddef (Makefile.am): Likewise.
2297         * modules/stdint (Makefile.am): Likewise.
2298         * modules/stdio (Makefile.am): Likewise.
2299         * modules/stdlib (Makefile.am): Likewise.
2300         * modules/string (Makefile.am): Likewise.
2301         * modules/strings (Makefile.am): Likewise.
2302         * modules/sys_file (Makefile.am): Likewise.
2303         * modules/sys_ioctl (Makefile.am): Likewise.
2304         * modules/sys_select (Makefile.am): Likewise.
2305         * modules/sys_socket (Makefile.am): Likewise.
2306         * modules/sys_stat (Makefile.am): Likewise.
2307         * modules/sys_time (Makefile.am): Likewise.
2308         * modules/sys_times (Makefile.am): Likewise.
2309         * modules/sys_utsname (Makefile.am): Likewise.
2310         * modules/sys_wait (Makefile.am): Likewise.
2311         * modules/sysexits (Makefile.am): Likewise.
2312         * modules/termios (Makefile.am): Likewise.
2313         * modules/time (Makefile.am): Likewise.
2314         * modules/unistd (Makefile.am): Likewise.
2315         * modules/wchar (Makefile.am): Likewise.
2316         * modules/wctype-h (Makefile.am): Likewise.
2317         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
2318
2319 2011-04-05  Bruno Haible  <bruno@clisp.org>
2320
2321         pipe2: Relicense under LGPLv2+.
2322         * modules/pipe2 (License): Change to LGPLv2+.
2323         Requested by Eric Blake, for libvirt.
2324
2325 2011-04-05  Bruce Korb  <bkorb@gnu.org>
2326
2327         bootstrap: compute gnulib_extra_files after updating build_aux
2328         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
2329         change build_aux or also supply gnulib_extra_files.  Handle correctly.
2330
2331 2011-04-05  Eric Blake  <eblake@redhat.com>
2332
2333         bootstrap: preserve git whitelist item sorting
2334         * build-aux/bootstrap (sort_patterns): New function.
2335         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
2336
2337 2011-04-05  Simon Josefsson  <simon@josefsson.org>
2338
2339         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
2340         sc_space_tab check.
2341
2342 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
2343
2344         areadlink, areadlinkat: rewrite in terms of careadlinkat
2345         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
2346         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
2347         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
2348         (malloc, realloc): Remove #undefs.
2349         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
2350         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
2351         readlink, ssize_t, stdint, unistd.
2352         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
2353         areadlink, stdint.
2354
2355         careadlinkat: new module
2356         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
2357         * modules/careadlinkat: New files, written by me with
2358         a review and feedback from Ben Pfaff in
2359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
2360
2361 2011-04-01  Bruno Haible  <bruno@clisp.org>
2362
2363         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
2364         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
2365         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
2366         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2367         Reported by Bruce Korb <bruce.korb@gmail.com>.
2368
2369 2011-04-01  Bruno Haible  <bruno@clisp.org>
2370
2371         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
2372         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
2373         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
2374         * modules/wcpcpy (Depends-on): Add extensions.
2375         * modules/wcpncpy (Depends-on): Likewise.
2376         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
2377         systems.
2378         * doc/posix-functions/wcpncpy.texi: Likewise.
2379         * doc/posix-functions/wcwidth.texi: Likewise.
2380
2381 2011-03-31  Eric Blake  <eblake@redhat.com>
2382
2383         nonblocking: fix mingw test failures
2384         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
2385         non-blocking flag on regular file.
2386         (get_nonblocking_flag): Set errno on invalid fd.
2387         * tests/test-nonblocking.c (main): Avoid test failure on
2388         directories if fchdir is not active.
2389         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
2390
2391 2011-03-31  Bruno Haible  <bruno@clisp.org>
2392
2393         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
2394         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
2395         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
2396         Reported by Simon Josefsson <simon@josefsson.org>.
2397
2398 2011-03-31  Bruno Haible  <bruno@clisp.org>
2399         and Eric Blake  <eblake@redhat.com>
2400
2401         nonblocking: new module
2402         * modules/nonblocking: New module.
2403         * modules/nonblocking-tests: Likewise.
2404         * lib/nonblocking.h: New file.
2405         * lib/nonblocking.c: Likewise.
2406         * tests/test-nonblocking.c: New test.
2407         * lib/ioctl.c (ioctl) [mingw]: Update comment.
2408
2409 2011-03-30  Bruno Haible  <bruno@clisp.org>
2410
2411         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
2412         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
2413         instead of 'printf' format for GCC >= 4.4.
2414         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
2415         (fprintf, printf, vfprintf, vprintf): Declare with
2416         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
2417         the system's vfprintf() function.
2418         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
2419
2420 2011-03-30  Eric Blake  <eblake@redhat.com>
2421
2422         passfd: fix scoping bug
2423         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
2424         before sendmsg/recvmsg.
2425
2426         passfd: standardize coding conventions
2427         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
2428         can be learned at compile time.
2429         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
2430         ifdefs.
2431         (sendfd, recvfd): Follow gnulib code conventions.
2432
2433         passfd: fix incorrect sendmsg arguments
2434         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
2435         incorrect msg_controllen value.
2436         * modules/passfd-tests (Depends-on): Check for alarm.
2437         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
2438         Reported by Bastien ROUCARIES.
2439
2440 2011-03-30  Bruno Haible  <bruno@clisp.org>
2441
2442         c-strcasestr: Relicense under LGPLv2+.
2443         * modules/c-strcasestr (License): Change to LGPLv2+.
2444         Requested by Eric Blake, for libvirt.
2445
2446 2011-03-30  Simon Josefsson  <simon@josefsson.org>
2447
2448         * users.txt: Add libidn2.  Fix libtasn1 link.
2449
2450 2011-03-30  Jim Meyering  <meyering@redhat.com>
2451
2452         tests: readlink* ("",... fails with EINVAL on newer kernels
2453         readlink and readlinkat have typically failed with ENOENT for
2454         the invalid, empty file name,  "".  However, with the advent
2455         of linux-2.6.39, they fail with EINVAL.
2456         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
2457         when operating on the empty file name.
2458         * tests/test-readlink.h (test_readlink): Likewise.
2459
2460 2011-03-29  Bruno Haible  <bruno@clisp.org>
2461
2462         Relicense some modules under LGPLv2+, for libidn2.
2463         * modules/array-mergesort (License): Change to LGPLv2+.
2464         * modules/c-strcaseeq (License): Likewise.
2465         * modules/striconveh (License): Likewise.
2466         * modules/striconveha (License): Likewise.
2467         * modules/uniconv/base (License): Likewise.
2468         * modules/uniconv/u8-conv-from-enc (License): Likewise.
2469         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
2470         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
2471         * modules/unictype/base (License): Likewise.
2472         * modules/unictype/bidiclass-of (License): Likewise.
2473         * modules/unictype/category-M (License): Likewise.
2474         * modules/unictype/category-none (License): Likewise.
2475         * modules/unictype/category-of (License): Likewise.
2476         * modules/unictype/category-test (License): Likewise.
2477         * modules/unictype/category-test-withtable (License): Likewise.
2478         * modules/unictype/combining-class (License): Likewise.
2479         * modules/unictype/joiningtype-of (License): Likewise.
2480         * modules/unictype/scripts (License): Likewise.
2481         * modules/uninorm/base (License): Likewise.
2482         * modules/uninorm/canonical-decomposition (License): Likewise.
2483         * modules/uninorm/composition (License): Likewise.
2484         * modules/uninorm/decompose-internal (License): Likewise.
2485         * modules/uninorm/decomposition-table (License): Likewise.
2486         * modules/uninorm/nfc (License): Likewise.
2487         * modules/uninorm/nfd (License): Likewise.
2488         * modules/uninorm/u32-normalize (License): Likewise.
2489         * modules/unistr/base (License): Likewise.
2490         * modules/unistr/u32-cpy (License): Likewise.
2491         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
2492         * modules/unistr/u32-to-u8 (License): Likewise.
2493         * modules/unistr/u32-uctomb (License): Likewise.
2494         * modules/unistr/u8-check (License): Likewise.
2495         * modules/unistr/u8-mblen (License): Likewise.
2496         * modules/unistr/u8-mbtouc (License): Likewise.
2497         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
2498         * modules/unistr/u8-mbtoucr (License): Likewise.
2499         * modules/unistr/u8-prev (License): Likewise.
2500         * modules/unistr/u8-strlen (License): Likewise.
2501         * modules/unistr/u8-to-u32 (License): Likewise.
2502         * modules/unistr/u8-uctomb (License): Likewise.
2503         * modules/unitypes (License): Likewise.
2504         Requested by Simon Josefsson.
2505
2506 2011-03-29  Simon Josefsson  <simon@josefsson.org>
2507
2508         lib-symbol-visibility: Add a notice.
2509         * modules/lib-symbol-visibility (Notice): New field.
2510
2511 2011-03-29  Bruno Haible  <bruno@clisp.org>
2512
2513         getaddrinfo: Doc fix.
2514         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
2515         section "fixed in Gnulib".
2516
2517 2011-03-28  Simon Josefsson  <simon@josefsson.org>
2518
2519         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
2520         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
2521
2522 2011-03-26  Bruno Haible  <bruno@clisp.org>
2523
2524         unictype/property-byname: Reduce the number of load-time relocations.
2525         * lib/unictype/pr_byname.c: Include <stdlib.h>.
2526         (UC_PROPERTY_INDEX_*): New enumeration values.
2527         (uc_property_byname): Convert an index from the lookup table to an
2528         uc_property_t.
2529         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
2530         values.
2531
2532 2011-03-26  Bruno Haible  <bruno@clisp.org>
2533
2534         unictype/property-byname: Allow omitted word separators and aliases.
2535         * lib/unictype/pr_byname.gperf: Add property names without word
2536         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
2537         for 'space'.
2538
2539 2011-03-26  Bruno Haible  <bruno@clisp.org>
2540
2541         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
2542         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
2543         also hyphens to space.
2544         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
2545         without spaces.
2546         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
2547
2548 2011-03-26  Bruno Haible  <bruno@clisp.org>
2549
2550         unictype/joiningtype-byname: Recognize long names as well.
2551         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
2552         a long name.
2553         * lib/unictype/joiningtype_byname.c: Include <string.h>,
2554         unictype/joiningtype_byname.h.
2555         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
2556         * lib/unictype/joiningtype_byname.gperf: New file.
2557         * modules/unictype/joiningtype-byname (Files): Add
2558         lib/unictype/joiningtype_byname.gperf.
2559         (Depends-on): Add gperf.
2560         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
2561         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
2562         long names.
2563
2564         Tests for module 'unictype/joiningtype-longname'.
2565         * modules/unictype/joiningtype-longname-tests: New file.
2566         * tests/unictype/test-joiningtype_longname.c: New file.
2567
2568         New module 'unictype/joiningtype-longname'.
2569         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
2570         * lib/unictype/joiningtype_longname.c: New file.
2571         * modules/unictype/joiningtype-longname: New file.
2572         * modules/unictype/joiningtype-all (Depends-on): Add
2573         unictype/joiningtype-longname.
2574
2575 2011-03-26  Bruno Haible  <bruno@clisp.org>
2576
2577         unictype/bidiclass-byname: Recognize long names as well.
2578         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
2579         name.
2580         * lib/unictype/bidi_byname.c: Include <string.h>,
2581         unictype/bidi_byname.h.
2582         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
2583         * lib/unictype/bidi_byname.gperf: New file.
2584         * modules/unictype/bidiclass-byname (Files): Add
2585         lib/unictype/bidi_byname.gperf.
2586         (Depends-on): Add gperf.
2587         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
2588         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
2589         long names.
2590
2591         Tests for module 'unictype/bidiclass-longname'.
2592         * modules/unictype/bidiclass-longname-tests: New file.
2593         * tests/unictype/test-bidi_longname.c: New file.
2594
2595         New module 'unictype/bidiclass-longname'.
2596         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
2597         * lib/unictype/bidi_longname.c: New file.
2598         * modules/unictype/bidiclass-longname: New file.
2599         * modules/unictype/bidiclass-all (Depends-on): Add
2600         unictype/bidiclass-longname.
2601
2602 2011-03-26  Bruno Haible  <bruno@clisp.org>
2603
2604         unictype/bidi*: Rename modules.
2605         * modules/unictype/bidiclass-all: Renamed from
2606         modules/unictype/bidicategory-all.
2607         * modules/unictype/bidiclass-name: Renamed from
2608         modules/unictype/bidiclass-name.
2609         (Description): Update.
2610         * modules/unictype/bidiclass-name-tests: Renamed from
2611         modules/unictype/bidicategory-name-tests.
2612         * modules/unictype/bidiclass-byname: Renamed from
2613         modules/unictype/bidicategory-byname.
2614         (Description): Update.
2615         * modules/unictype/bidiclass-byname-tests: Renamed from
2616         modules/unictype/bidicategory-byname-tests.
2617         * modules/unictype/bidiclass-of: Renamed from
2618         modules/unictype/bidicategory-of.
2619         (Description): Update.
2620         * modules/unictype/bidiclass-of-tests: Renamed from
2621         modules/unictype/bidicategory-of-tests.
2622         * modules/unictype/bidiclass-test: Renamed from
2623         modules/unictype/bidicategory-test.
2624         (Description): Update.
2625         * modules/unictype/bidiclass-test-tests: Renamed from
2626         modules/unictype/bidicategory-test-tests.
2627         * modules/unictype/bidicategory-all: New file, a simple redirection.
2628         * modules/unictype/bidicategory-name: Likewise.
2629         * modules/unictype/bidicategory-byname: Likewise.
2630         * modules/unictype/bidicategory-of: Likewise.
2631         * modules/unictype/bidicategory-test: Likewise.
2632         * modules/unictype/property-bidi-* (Dependencies): Update.
2633         * lib/unictype/bidi_*.c: Update comment.
2634
2635 2011-03-26  Bruno Haible  <bruno@clisp.org>
2636
2637         unictype/bidi*: Rename functions, part 2.
2638         * modules/unictype/bidicategory-name (configure.ac): Update required
2639         libunistring version.
2640         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
2641
2642 2011-03-25  Bruno Haible  <bruno@clisp.org>
2643
2644         New module 'unictype/combining-class-all'.
2645         * modules/unictype/combining-class-all: New file.
2646
2647         Tests for module 'unictype/combining-class-byname'.
2648         * modules/unictype/combining-class-byname-tests: New file.
2649         * tests/unictype/test-combiningclass_byname.c: New file.
2650
2651         New module 'unictype/combining-class-byname'.
2652         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
2653         * lib/unictype/combiningclass_byname.c: New file.
2654         * lib/unictype/combiningclass_byname.gperf: New file.
2655         * modules/unictype/combining-class-byname: New file.
2656
2657         Tests for module 'unictype/combining-class-longname'.
2658         * modules/unictype/combining-class-longname-tests: New file.
2659         * tests/unictype/test-combiningclass_longname.c: New file.
2660
2661         New module 'unictype/combining-class-longname'.
2662         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
2663         * lib/unictype/combiningclass_longname.c: New file.
2664         * modules/unictype/combining-class-longname: New file.
2665
2666         Tests for module 'unictype/combining-class-name'.
2667         * modules/unictype/combining-class-name-tests: New file.
2668         * tests/unictype/test-combiningclass_name.c: New file.
2669
2670         New module 'unictype/combining-class-name'.
2671         * lib/unictype.in.h (uc_combining_class_name): New declaration.
2672         * lib/unictype/combiningclass_name.c: New file.
2673         * modules/unictype/combining-class-name: New file.
2674
2675 2011-03-25  Bruno Haible  <bruno@clisp.org>
2676
2677         unictype/combining-class: Rename source files.
2678         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
2679         of unictype/combining.h.
2680         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
2681         Update.
2682         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
2683         * modules/unictype/combining-class (Description): Fix.
2684         (Files, Makefile.am): Update.
2685         * tests/unictype/test-combiningclass.c: Renamed from
2686         tests/unictype/test-combining.c.
2687         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
2688
2689 2011-03-25  Bruno Haible  <bruno@clisp.org>
2690
2691         unictype: Update list of canonical combining classes.
2692         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
2693
2694 2011-03-25  Bruno Haible  <bruno@clisp.org>
2695
2696         unictype/category-byname: Recognize long names as well.
2697         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
2698         a long name.
2699         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
2700         unictype/categ_byname.h.
2701         (UC_CATEGORY_INDEX_*): New enumeration values.
2702         (uc_general_category_byname): Use uc_general_category_lookup and
2703         convert from index to value.
2704         * lib/unictype/categ_byname.gperf: New file.
2705         * modules/unictype/category-byname (Files): Add
2706         lib/unictype/categ_byname.gperf.
2707         (Depends-on): Add gperf.
2708         (Makefile.am): Add rule for generating unictype/categ_byname.h.
2709         * tests/unictype/test-categ_byname.c (main): Test the recognition of
2710         long names.
2711
2712         Tests for module 'unictype/category-longname'.
2713         * modules/unictype/category-longname-tests: New file.
2714         * tests/unictype/test-categ_longname.c: New file.
2715
2716         New module 'unictype/category-longname'.
2717         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
2718         * lib/unictype/categ_longname.c: New file.
2719         * modules/unictype/category-longname: New file.
2720         * modules/unictype/category-all (Depends-on): Add it.
2721
2722 2011-03-25  Bruno Haible  <bruno@clisp.org>
2723
2724         Tests for module 'unictype/category-LC'.
2725         * modules/unictype/category-LC-tests: New file.
2726         * tests/unictype/test-categ_LC.c: New file, automatically generated.
2727
2728         New module 'unictype/category-LC'.
2729         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
2730         (UC_CATEGORY_LC): New declaration.
2731         (UC_CASED_LETTER): New macro.
2732         * lib/gen-uni-tables.c (is_category_LC): New function.
2733         (output_categories): Also handle category LC.
2734         (UC_CATEGORY_MASK_LC): New enumeration value.
2735         (general_category_byname): Also handle category LC.
2736         * lib/unictype/categ_LC.c: New file.
2737         * lib/unictype/categ_LC.h: New file, automatically generated.
2738         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
2739         category LC.
2740         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
2741         * modules/unictype/category-LC: New file.
2742         * modules/unictype/category-byname (Depends-on): Add
2743         unictype/category-LC.
2744         * modules/unictype/category-all (Depends-on): Likewise.
2745
2746 2011-03-25  Eric Blake  <eblake@redhat.com>
2747
2748         xmalloc: revert yesterday's regression
2749         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
2750         realloc's underlying behavior (allowing allocation of zero-size
2751         objects, especially if malloc-gnu is also in use).
2752
2753 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
2754
2755         maint.mk: add missing version to VC-tag
2756         * top/maint.mk: git tag was missing actual tag name; add it.
2757
2758         valgrind: do leak checking, and exit with code 1 on error (not 0)
2759         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
2760         to VALGRIND.
2761
2762 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
2763
2764         posix-modules: say what it does.
2765         * posix-modules: Add a line to the --help output saying what it does.
2766
2767 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
2768
2769         xmalloc: Do not leak if underlying realloc is C99 compatible.
2770         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
2771         This avoids a leak on C99-based systems.  See
2772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
2773
2774 2011-03-24  Eric Blake  <eblake@redhat.com>
2775
2776         realloc: document portability problem
2777         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
2778         passing 0 size to realloc.
2779
2780 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
2781
2782         doc: update users.txt
2783         * users.txt: Add cvsps, tmpwatch
2784
2785 2011-03-23  Matt Rice  <ratmice@gmail.com>
2786
2787         doc: update users.txt
2788         * users.txt: Add gdb.
2789
2790 2011-03-23  Jim Meyering  <meyering@redhat.com>
2791
2792         doc: update users.txt
2793         Looking through matches up to the following URL (there are still
2794         several more pages), I found several projects that use gnulib:
2795         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
2796         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
2797         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
2798
2799 2011-03-22  Bruno Haible  <bruno@clisp.org>
2800
2801         unictype/bidi*: Rename functions.
2802         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
2803         uc_bidi_class, uc_is_bidi_class): New declarations.
2804         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
2805         uc_bidi_category_byname.
2806         (uc_bidi_category_byname): New function.
2807         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
2808         u_bidi_category_name.
2809         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
2810         (uc_bidi_category_name): New function.
2811         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
2812         uc_bidi_category.
2813         (uc_bidi_category): New function.
2814         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
2815         uc_is_bidi_category. Invoke uc_bidi_class.
2816         (uc_is_bidi_category): New function.
2817         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
2818         instead of uc_bidi_category_byname.
2819         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
2820         instead of uc_bidi_category_name.
2821         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
2822         uc_bidi_category.
2823         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
2824         instead of uc_is_bidi_category.
2825
2826 2011-03-21  Bruno Haible  <bruno@clisp.org>
2827
2828         New module 'unictype/joininggroup-all'.
2829         * modules/unictype/joininggroup-all: New file.
2830
2831         Tests for module 'unictype/joininggroup-of'.
2832         * modules/unictype/joininggroup-of-tests: New file.
2833         * tests/unictype/test-joininggroup_of.c: New file.
2834         * tests/unictype/test-joininggroup_of.h: New file, automatically
2835         generated by gen-uni-tables.
2836
2837         New module 'unictype/joininggroup-of'.
2838         * modules/unictype/joininggroup-of: New file.
2839         * lib/unictype/joininggroup_of.c: New file.
2840         * lib/unictype/joininggroup_of.h: New file, automatically generated by
2841         gen-uni-tables.
2842
2843         Tests for module 'unictype/joininggroup-byname'.
2844         * modules/unictype/joininggroup-byname-tests: New file.
2845         * tests/unictype/test-joininggroup_byname.c: New file.
2846
2847         New module 'unictype/joininggroup-byname'.
2848         * modules/unictype/joininggroup-byname: New file.
2849         * lib/unictype/joininggroup_byname.c: New file.
2850         * lib/unictype/joininggroup_byname.gperf: New file.
2851
2852         Tests for module 'unictype/joininggroup-name'.
2853         * modules/unictype/joininggroup-name-tests: New file.
2854         * tests/unictype/test-joininggroup_name.c: New file.
2855
2856         New module 'unictype/joininggroup-name'.
2857         * modules/unictype/joininggroup-name: New file.
2858         * lib/unictype/joininggroup_name.c: New file.
2859         * lib/unictype/joininggroup_name.h: New file.
2860
2861         New module 'unictype/joiningtype-all'.
2862         * modules/unictype/joiningtype-all: New file.
2863
2864         Tests for module 'unictype/joiningtype-of'.
2865         * modules/unictype/joiningtype-of-tests: New file.
2866         * tests/unictype/test-joiningtype_of.c: New file.
2867         * tests/unictype/test-joiningtype_of.h: New file, automatically
2868         generated by gen-uni-tables.
2869
2870         New module 'unictype/joiningtype-of'.
2871         * modules/unictype/joiningtype-of: New file.
2872         * lib/unictype/joiningtype_of.c: New file.
2873         * lib/unictype/joiningtype_of.h: New file, automatically generated by
2874         gen-uni-tables.
2875
2876         Tests for module 'unictype/joiningtype-byname'.
2877         * modules/unictype/joiningtype-byname-tests: New file.
2878         * tests/unictype/test-joiningtype_byname.c: New file.
2879
2880         New module 'unictype/joiningtype-byname'.
2881         * modules/unictype/joiningtype-byname: New file.
2882         * lib/unictype/joiningtype_byname.c: New file.
2883
2884         Tests for module 'unictype/joiningtype-name'.
2885         * modules/unictype/joiningtype-name-tests: New file.
2886         * tests/unictype/test-joiningtype_name.c: New file.
2887
2888         New module 'unictype/joiningtype-name'.
2889         * modules/unictype/joiningtype-name: New file.
2890         * lib/unictype/joiningtype_name.c: New file.
2891
2892         unictype: Add support for Arabic shaping properties.
2893         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
2894         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
2895         declarations.
2896         (UC_JOINING_GROUP_*): New enumeration values.
2897         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
2898         declarations.
2899         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2900         (unicode_joining_type): New variable.
2901         (UC_JOINING_GROUP_*): New enumeration values.
2902         (unicode_joining_group): New variable.
2903         (fill_arabicshaping, joining_type_as_c_identifier,
2904         output_joining_type_test, output_joining_type,
2905         joining_group_as_c_identifier, output_joining_group_test,
2906         output_joining_group): New functions.
2907         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
2908         fill_arabicshaping and output_joining_type_test, output_joining_type,
2909         output_joining_group_test, output_joining_group.
2910         Reported by Simon Josefsson.
2911
2912 2011-03-21  Jim Meyering  <meyering@redhat.com>
2913
2914         strftime: fix a bug in yesterday's change
2915         * lib/strftime.c (add): Accommodate width's initial value of -1.
2916         Otherwise, nstrftime would copy uninitialized data into
2917         the result buffer.
2918
2919 2011-03-21  Jim Meyering  <meyering@redhat.com>
2920
2921         tests: add strftime-tests module
2922         * tests/test-strftime.c: New file.
2923         * modules/strftime-tests: New module.
2924
2925 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2926
2927         strftime: don't assume a byte count fits in 'int'
2928         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
2929         found this problem by static analysis, using gcc -Wstrict-overflow
2930         (GCC 4.5.2, x86-64).  This reported an optimization that depended
2931         on an integer overflow having undefined behavior, but it turns out
2932         that the argument is a size, which might not fit in 'int' anyway,
2933
2934 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2935
2936         stdio: don't require ignore_value around fwrite
2937
2938         This patch works around libc bug 11959
2939         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
2940         Without this patch, applications must often write
2941         ignore_value (fwrite (...)) even though the ignore_value is
2942         not helpful here.  It's common to write many objects, using
2943         fwrite/printf/etc., and then use ferror to detect output error.
2944
2945         I considered making this patch optional, but decided against it,
2946         because libc is obviously being inconsistent here: there is no
2947         reason libc should insist that user code must inspect fwrite
2948         return's value without also insisting that it inspect printf's,
2949         putchar's, etc.  If user code wants to have a strict style where
2950         all these functions' values are checked (so that ferror need not
2951         be checked), we could add support for that style in a new gnulib
2952         module, but in the meantime it's better to be consistent and to
2953         support common usage.
2954
2955         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
2956         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
2957         that we are compiling in checking mode, and if not C++, and
2958         if not already wrapping fwrite for some other reason.
2959         (fwrite): #define to rpl_fwrite if the latter is defined.
2960
2961 2011-03-20  Bruno Haible  <bruno@clisp.org>
2962
2963         verror: Fix compilation error introduced on 2011-02-13.
2964         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
2965         instead of __attribute__.
2966         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2967
2968 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2969             Bruno Haible  <bruno@clisp.org>
2970
2971         socklen: do not depend on sys_socket
2972         While trying to modify Emacs to use gnulib's socklen module,
2973         I discovered a circular dependency: socklen depends on sys_socket
2974         and vice versa.  Emacs can use socklen, but it does not need
2975         sys_socket because it has its own substitute for sys/socket.h.
2976         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
2977         gl_TYPE_SOCKLEN_T.
2978         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
2979         gl_PREREQ_SYS_H_SOCKET.
2980         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
2981         gl_PREREQ_SYS_H_SOCKET.
2982         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
2983         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
2984         * modules/socklen (Depends-on): Do not depend on sys_socket.
2985         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
2986
2987 2011-03-20  Jim Meyering  <meyering@redhat.com>
2988
2989         maint.mk: sort file names *after* new transformation
2990         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
2991         prefix would have led to an unwarranted failure in GNU parted.
2992         Sort after that transformation.
2993
2994 2011-03-19  Jim Meyering  <meyering@redhat.com>
2995
2996         maint.mk: fix po-file syntax-check rule
2997         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
2998         Patch by Bruno Haible.
2999
3000 2011-03-19  Bruno Haible  <bruno@clisp.org>
3001
3002         socklen: Update comment.
3003         * m4/socklen.m4: Update comment about platforms.
3004
3005 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3006             Bruno Haible  <bruno@clisp.org>
3007
3008         inet_ntop, inet_pton: Simplify.
3009         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
3010         documented to provide socklen_t and we already depend on sys_socket.
3011         * modules/inet_pton (Depends-on): Likewise.
3012         * lib/arpa_inet.in.h: Adjust comment.
3013
3014 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3015             Bruno Haible  <bruno@clisp.org>
3016
3017         netdb: Simplify.
3018         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
3019         documented to provide socklen_t and we already depend on sys_socket.
3020         * lib/netdb.in.h: Adjust comment.
3021
3022 2011-03-19  Bruno Haible  <bruno@clisp.org>
3023
3024         sys_socket, netdb: Document problem with socklen_t.
3025         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
3026         platforms.
3027         * doc/posix-headers/netdb.texi: Likewise.
3028
3029 2011-03-18  Eric Blake  <eblake@redhat.com>
3030
3031         maint.mk: let po check work in VPATH build
3032         * top/maint.mk (po_file): Allow cfg.mk override.
3033         (sc_po_check): Allow VPATH use.
3034         Reported by Jiri Denemark.
3035
3036 2011-03-16  Jim Meyering  <meyering@redhat.com>
3037
3038         maint.mk: allow fine-grained syntax-check exclusion via Make variables
3039         Before, you would have had to create one .x-sc_ file per rule in order
3040         to exempt offending files.  Now, you may instead use a Make variable --
3041         usually defined in cfg.mk -- whose name identifies the affected rule.
3042         * top/maint.mk (_sc_excl): Define.
3043         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
3044         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
3045
3046 2011-03-13  Bruno Haible  <bruno@clisp.org>
3047
3048         ignore-value tests: Avoid warnings.
3049         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
3050         empty for gcc < 3.4.
3051
3052 2011-03-13  Bruno Haible  <bruno@clisp.org>
3053
3054         passfd: Fix link error on Solaris.
3055         * modules/passfd (Description): Correct.
3056         (Depends-on): Add socketlib.
3057         (Link): New section.
3058         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
3059
3060 2011-03-13  Bruno Haible  <bruno@clisp.org>
3061
3062         passfd: Fix link error on AIX 5.2.
3063         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
3064
3065 2011-03-13  Bruno Haible  <bruno@clisp.org>
3066
3067         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
3068         * lib/sys_socket.in.h: Include <stddef.h>.
3069         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
3070         CMSG_FIRSTHDR. Remove unused variable.
3071
3072 2011-03-13  Bruno Haible  <bruno@clisp.org>
3073
3074         passfd: Fix compilation error on OpenBSD.
3075         * lib/passfd.c: Include <sys/uio.h>.
3076
3077 2011-03-13  Bruno Haible  <bruno@clisp.org>
3078
3079         passfd test: Fix warnings.
3080         * tests/test-passfd.c: Include <sys/wait.h>.
3081         (main): Fix typo.
3082
3083 2011-03-13  Bruno Haible  <bruno@clisp.org>
3084
3085         passfd module, part 4, tweaks.
3086         * tests/test-passfd.c: Reorder includes.
3087         (main): Fix perror and printf calls.
3088
3089 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3090
3091         passfd module, part 4.
3092         * modules/passfd-tests: New file.
3093         * tests/test-passfd.c: New file.
3094
3095 2011-03-13  Jim Meyering  <meyering@redhat.com>
3096
3097         Makefile: rely on GNU make; derive syntax-check rule names
3098         Rather than requiring that each sc_ rule be listed as a dependent
3099         of "check", use features of GNU make to derive the list.
3100         * Makefile (syntax-check-rules): Define.
3101         (check): Depend on the new variable, not the hard-coded list.
3102
3103 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
3104             Bruno Haible  <bruno@clisp.org>
3105
3106         passfd module, part 3.
3107         * lib/passfd.h (recvfd): Add a flags argument.
3108         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
3109         (recvfd): Add a flags argument.
3110         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
3111         exists.
3112         * modules/passfd (Depends-on): Add cloexec.
3113         Suggested by Eric Blake.
3114
3115 2011-03-13  Bruno Haible  <bruno@clisp.org>
3116
3117         passfd module, part 2, tweaks.
3118         * modules/passfd (Files): Reorder.
3119         (Depends-on): Remove errno.
3120         (Include): Remove <sys/socket.h>, <sys/un.h>.
3121         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
3122         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
3123         specification header. Include <sys/socket.h> always. Don't include
3124         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
3125         (sendfd): Clarify that it sets errno when it fails.
3126         (recvfd): Fix specification.
3127
3128 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3129
3130         passfd module, part 2.
3131         * modules/passfd: New file.
3132         * lib/passfd.h: New file.
3133         * lib/passfd.c: New file.
3134
3135 2011-03-12  Bruno Haible  <bruno@clisp.org>
3136
3137         wcswidth, mbswidth: Avoid integer overflow.
3138         * lib/wcswidth.c: Include <limits.h>.
3139         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
3140         * lib/mbswidth.c: Include <limits.h>.
3141         (mbsnwidth): Avoid 'int' overflow.
3142         Reported by Jim Meyering.
3143
3144 2011-03-12  Bruno Haible  <bruno@clisp.org>
3145
3146         futimens, utimensat: Avoid endless recursion on Solaris 10.
3147         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
3148         Solaris.
3149         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
3150         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
3151
3152 2011-03-11  Jim Meyering  <meyering@redhat.com>
3153
3154         maint.mk: relax a regexp to accommodate other formatting styles
3155         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
3156         between "ngettext" and the following "(".
3157
3158 2011-03-11  Pádraig Brady <P@draigBrady.com>
3159
3160         maint.mk: suppress a false positive warning
3161         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
3162         diagnostics are marked with ngettext.
3163
3164 2011-03-10  Eric Blake  <eblake@redhat.com>
3165
3166         wchar: add explicit dependencies, for Tru64
3167         * modules/mbmemcasecoll (Depends-on): Add wchar.
3168         * modules/mbtowc (Depends-on): Likewise.
3169         * modules/vasnprintf (Depends-on): Likewise.
3170         * modules/unistdio/u-printf-args (Depends-on): Likewise.
3171         * modules/wctomb (Depends-on): Likewise.
3172         Reported by Peter O'Gorman.
3173
3174 2011-03-08  Bruno Haible  <bruno@clisp.org>
3175
3176         passfd module, part 1, tweaks.
3177         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
3178         Improve indentation. Improve AC_MSG_CHECKING messages.
3179         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
3180         gl_SOCKET_FAMILIES.
3181
3182 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3183
3184         passfd module, part 1.
3185         * m4/afunix.m4: New file.
3186         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
3187         sockets.
3188
3189 2011-03-08  Bruno Haible  <bruno@clisp.org>
3190
3191         regex-quote: New API.
3192         * lib/regex-quote.h: Include <stdbool.h>.
3193         (struct regex_quote_spec): New type.
3194         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3195         New declarations.
3196         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3197         'const struct regex_quote_spec *' argument.
3198         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
3199         (pcre_special): New constant.
3200         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3201         New functions.
3202         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3203         'const struct regex_quote_spec *' argument.
3204         * modules/regex-quote (Depends-on): Add stdbool.
3205         * tests/test-regex-quote.c (check): Update for new API. Add test for
3206         anchored results.
3207         * NEWS: Mention the API change.
3208         Reported by Reuben Thomas and Eric Blake.
3209
3210 2011-03-06  Bruno Haible  <bruno@clisp.org>
3211
3212         regex-quote: Fix creation of POSIX extended regular expressions.
3213         * lib/regex-quote.c (ere_special): Add grouping and alternation
3214         operators.
3215
3216 2011-03-05  Bruno Haible  <bruno@clisp.org>
3217
3218         doc: Improve doc regarding autopoint vs. gnulib.
3219         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
3220         disable autopoint while running autoreconf.
3221         Suggested by Ralf Wildenhues.
3222
3223 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3224
3225         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
3226         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
3227
3228 2011-03-03  Bruce Korb  <bkorb@gnu.org>
3229
3230         parse-duration: remove xalloc.h dependency
3231         * lib/parse-duration.c (parse_period): handle NULL return from
3232         strdup instead of calling xstrdup().
3233         * modules/parse-duration: remove "xalloc" dependency
3234
3235 2011-03-03  Matthew Booth  <mbooth@redhat.com>
3236
3237         bootstrap: honor m4_base when running aclocal
3238         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
3239
3240 2011-03-02  Jim Meyering  <meyering@redhat.com>
3241
3242         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
3243         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
3244         on request from Matt Booth.
3245
3246 2011-03-01  Eric Blake  <eblake@redhat.com>
3247
3248         test-link: work on Hurd
3249         * tests/test-link.h (test_link): Hurd rejects linking directories
3250         with EISDIR instead of the POSIX-mandated EPERM.
3251
3252 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
3253
3254         stdio: simplify by moving files to printf-posix, sigpipe
3255         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
3256         since this symbol is needed only if printf is replaced.
3257         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
3258         Require gl_ASM_SYMBOL_PREFIX.
3259         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
3260         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
3261         (Depends-on): Add 'raise'.
3262         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
3263         * modules/stdio (Files): Remove lib/stdio-write.c,
3264         m4/asm-underscore.m4.
3265         (Depends-on): Remove 'raise'.
3266
3267         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
3268         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
3269         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
3270         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
3271
3272 2011-02-28  Bruno Haible  <bruno@clisp.org>
3273
3274         localcharset: Assume ANSI C behaviour of free().
3275         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
3276         calling free().
3277         Suggested by Simon Josefsson <simon@josefsson.org>.
3278
3279 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
3280             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
3281             Bruno Haible  <bruno@clisp.org>  (tiny change)
3282
3283         On Cygwin, use /proc file system instead of win32 API.
3284         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
3285         Win32 file names.
3286         (DllMain): Simplify by removing Cygwin specific code.
3287         (find_shared_library_fullname): Use Linux specific implementation also
3288         for Cygwin.
3289         (get_shared_library_fullname): Update accordingly.
3290         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
3291         Win32 file names.
3292         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
3293         Cygwin specific code.
3294
3295 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
3296             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
3297
3298         Fix OpenMP flag detection for various Fortran compilers.
3299         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
3300         OpenMP-conditional compilation construct, to force compile
3301         failure with missing OpenMP flag.
3302         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
3303
3304 2011-02-25  Eric Blake  <eblake@redhat.com>
3305
3306         strstr: expand test coverage
3307         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
3308         compilation.
3309         * tests/test-memmem.c (main): Duplicate tests.
3310         * tests/test-strcasestr.c (main): Likewise.
3311         * tests/test-c-strcasestr.c (main): Likewise.
3312
3313 2011-02-25  Jim Meyering  <meyering@redhat.com>
3314
3315         maint.mk: detect missing-NL-at-EOF, too
3316         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
3317         it also detects when a file lacks a newline at EOF.
3318         (require_exactly_one_NL_at_EOF_): Renamed from
3319         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
3320         since people may well have .x-sc_... file names tied to the
3321         existing name.  Suggested by Eric Blake.
3322
3323 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
3324
3325         dirname: move m4/dos.m4 functionality into lib/dosname.h
3326
3327         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
3328         extracts symbols from it, puts them into config.h; but it's much
3329         easier to use the symbols directly.  filename.h already does this,
3330         but it disagrees with dos.m4 in some respects.  This patch
3331         introduces a different include file dosname.h that packages up
3332         dos.m4, and then later we can work on merging filename.h and
3333         dosname.h.  Applications that need only the easy-to-configure
3334         symbols should consider including dosname.h rather than dirname.h.
3335         * NEWS: Mention incompatible changes.
3336         * m4/dos.m4: Remove.
3337         * lib/dosname.h, modules/dosname: New files.
3338         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
3339         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
3340         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
3341         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
3342         Include dosname.h, not dirname.h.
3343         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
3344         Include dosname.h, for definitions of symbols like ISSLASH
3345         that used to be in config.h.
3346         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
3347         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3348         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3349         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3350         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
3351         * modules/rmdir (Files): Likewise.
3352         * modules/stat (Files): Likewise.
3353         * modules/unlink (Files): Likewise.
3354         * modules/dirname-lgpl (Depends-on): Add dosname.
3355         * modules/lstat (Depends-on): Likewise.
3356         * modules/openat (Depends-on): Likewise.
3357         * modules/rmdir (Depends-on): Likewise.
3358         * modules/savewd (Depends-on): Likewise.
3359         * modules/stat (Depends-on): Likewise.
3360         * modules/unlink (Depends-on): Likewise.
3361         * modules/openat (Depends-on): Remove dirname-lgpl.
3362         * modules/savewd (Depends-on): Likewise.
3363         * tests/test-dirname.c: Do not use removed symbols like
3364         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
3365         the remaining symbols, e.g., ISSLASH ('\\').
3366
3367 2011-02-25  Eric Blake  <eblake@redhat.com>
3368
3369         strstr: revert patches that introduced bug and pessimization
3370         * lib/str-two-way.h: Add another reference.
3371         (two_way_short_needle, two_way_long_needle): Revert changes from
3372         2011-02-24; they pessimize search speed.
3373         (critical_factorization): Partially revert changes from
3374         2010-06-22; they violate the requirement that the left half of the
3375         needle be smaller than the period of the needle.
3376
3377 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3378
3379         filenamecat: remove unnecessary dependency on dirname-lgpl
3380         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
3381         is no direct dependency, just an indirect one via filenamecat-lgpl.
3382
3383         remove: remove unnecessary use of m4/dos.m4
3384         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
3385         * modules/remove (FILES): Remove m4/dos.m4.
3386
3387         * lib/openat-proc.c: Don't include dirname.h; not needed.
3388
3389         backupfile: remove unnecessary use of m4/dos.m4
3390         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
3391         of its symbols are used by the backupfile code.  backupfile.c does
3392         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
3393         for the rare case of programs that want all their backup file
3394         names to live within 8+3 limits, and dos.m4 doesn't address that.
3395         * modules/backupfile (Files): Remove m4/dos.m4.
3396
3397 2011-02-24  Jim Meyering  <meyering@redhat.com>
3398
3399         strstr: fix a bug whereby strstr would mistakenly return NULL
3400         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
3401         in period calculation.
3402         (two_way_long_needle): Likewise.
3403         The original problem was reported by Mike Stump in
3404         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
3405         Ralf Wildenhues provided the short needle and haystack.
3406         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
3407         Add a more involved test to trigger the bug in two_way_long_needle.
3408
3409 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3410
3411         gnulib-tool: remove use of bold display in help screen
3412         * gnulib-tool (func_usage): Do not use bold display anymore in the
3413         help screen.  That was just meant to be a temporary emphasis for a
3414         backward-incompatible change.
3415
3416 2011-02-23  Bruno Haible  <bruno@clisp.org>
3417
3418         Fix misindentation of preprocessor directives.
3419         * lib/argp-namefrob.h: Reindent preprocessor directives.
3420         * lib/getopt_int.h (struct _getopt_data): Likewise.
3421         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
3422         * lib/vasnprintf.c (decode_long_double): Likewise.
3423         * tests/test-argmatch.c: Insert blank lines, for clarity.
3424         * tests/test-exclude.c: Likewise.
3425
3426 2011-02-22  Bruno Haible  <bruno@clisp.org>
3427
3428         ioctl: Fix for MacOS X in 64-bit mode.
3429         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
3430         value.
3431         Suggested by Eric Blake.
3432         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
3433
3434 2011-02-22  Jim Meyering  <meyering@redhat.com>
3435
3436         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
3437         * Makefile (sc_cpp_indent_check): Don't limit the check to files
3438         in lib/.
3439
3440 2011-02-22  Eric Blake  <eblake@redhat.com>
3441
3442         maint: avoid any CDPATH issue
3443         * Makefile (sc_cpp_indent_check): Anchor cd argument.
3444
3445         maint: adjust cpp indentation for my modules, as well
3446         * Makefile (sc_cpp_indent_check): Add my name.
3447         * lib/fbufmode.c: Filter through cppi.
3448         * lib/fpurge.c: Likewise.
3449         * lib/freadable.c: Likewise.
3450         * lib/freading.c: Likewise.
3451         * lib/fwritable.c: Likewise.
3452         * lib/fwriting.c: Likewise.
3453         * lib/sigaction.c: Likewise.
3454
3455 2011-02-22  Jim Meyering  <meyering@redhat.com>
3456
3457         maint: adjust cpp indentation to reflect nesting depth
3458         I.e., in a block of code that begins with an unnested "#if",
3459         put one space between the "#" in column 1 and following token.
3460         For example,
3461         -#include <sys/vfs.h>
3462         +# include <sys/vfs.h>
3463         Do this only in .c files that are part of a module I maintain.
3464         * lib/linkat.c: Filter through cppi.
3465         * lib/nanosleep.c: Likewise.
3466         * lib/openat.c: Likewise.
3467         * lib/openat-die.c: Likewise.
3468         * lib/dup3.c: Likewise.
3469         * lib/fchownat.c: Likewise.
3470         * lib/flock.c: Likewise.
3471         * lib/fsync.c: Likewise.
3472         * lib/fts.c: Likewise.
3473         * lib/getpass.c: Likewise.
3474         * lib/gettimeofday.c: Likewise.
3475         * lib/userspec.c: Likewise.
3476         * Makefile (sc_cpp_indent_check): New rule, to check this.
3477
3478 2011-02-22  Bruno Haible  <bruno@clisp.org>
3479
3480         New module 'wctomb'.
3481         * lib/stdlib.in.h (wctomb): New declaration.
3482         * lib/wctomb.c: New file.
3483         * lib/wctomb-impl.h: New file.
3484         * m4/wctomb.m4: New file.
3485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
3486         REPLACE_WCTOMB.
3487         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
3488         REPLACE_WCTOMB.
3489         * modules/wctomb: New file.
3490         * tests/test-stdlib-c++.cc: Test signature of wctomb.
3491         * doc/posix-functions/wctomb.texi: Mention the new module.
3492         * modules/wctob (Depends-on): Add wctomb.
3493
3494 2011-02-22  Bruno Haible  <bruno@clisp.org>
3495
3496         New module 'mbtowc'.
3497         * lib/stdlib.in.h (mbtowc): New declaration.
3498         * lib/mbtowc.c: New file.
3499         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
3500         * m4/mbtowc.m4: New file.
3501         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
3502         REPLACE_MBTOWC.
3503         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
3504         REPLACE_MBTOWC.
3505         * modules/mbtowc: New file.
3506         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
3507         * doc/posix-functions/mbtowc.texi: Mention the new module.
3508         * modules/btowc (Depends-on): Add mbtowc.
3509
3510 2011-02-22  Bruno Haible  <bruno@clisp.org>
3511
3512         wcrtomb: Add more tests for native Windows platforms.
3513         * tests/test-wcrtomb-w32-1.sh: New file.
3514         * tests/test-wcrtomb-w32-2.sh: New file.
3515         * tests/test-wcrtomb-w32-3.sh: New file.
3516         * tests/test-wcrtomb-w32-4.sh: New file.
3517         * tests/test-wcrtomb-w32-5.sh: New file.
3518         * tests/test-wcrtomb-w32.c: New file.
3519         * modules/wcrtomb-tests (Files): Add them.
3520         (Makefile.am): Arrange to run these tests.
3521         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
3522         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
3523
3524 2011-02-20  Bruno Haible  <bruno@clisp.org>
3525
3526         wcrtomb: Enhance test.
3527         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
3528
3529 2011-02-20  Bruno Haible  <bruno@clisp.org>
3530
3531         mbrtowc: Tiny optimization.
3532         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
3533
3534 2011-02-20  Jim Meyering  <meyering@redhat.com>
3535
3536         test-exclude.c: remove unmatched #endif
3537         * tests/test-exclude.c: Remove stray #endif, left over from
3538         the change of a week ago.
3539
3540 2011-02-19  Jim Meyering  <meyering@redhat.com>
3541
3542         git-version-gen: skip "-dirty" check when appropriate
3543         * build-aux/git-version-gen: Don't run any git commands when the
3544         version string comes from .tarball-version.  Prior to this, we
3545         would run git update-index --refresh even from a just-unpacked
3546         tarball directory, and that could affect a .git/ directory in a
3547         parent of the build directory.  Reported by Mike Frysinger.
3548
3549 2011-02-19  Bruno Haible  <bruno@clisp.org>
3550
3551         unictype/property-byname: Reduce the size of the 'data' segment.
3552         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
3553
3554 2011-02-19  Bruno Haible  <bruno@clisp.org>
3555
3556         unictype/scripts: Reduce the size of the 'data' segment.
3557         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
3558         '%pic'.
3559         * lib/unictype/scripts_byname.gperf: Regenerated.
3560
3561 2011-02-19  Bruno Haible  <bruno@clisp.org>
3562
3563         stdint: Update documentation.
3564         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
3565
3566 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
3567
3568         stdint: omit redundant check for wchar.h
3569         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
3570         always tests whether wchar.h exists, so remove the now-redundant test.
3571
3572 2011-02-18  Bruno Haible  <bruno@clisp.org>
3573
3574         stdint: Cut dependency to module 'wchar'.
3575         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
3576         include the necessary prerequisites.
3577         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
3578         * modules/stdint (Depends-on): Remove wchar.
3579         (Makefile.am): Substitute HAVE_WCHAR_H.
3580         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
3581
3582 2011-02-18  Eric Blake  <eblake@redhat.com>
3583
3584         longlong: skip, rather than fail, on cross-compilation
3585         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
3586         when cross-compiling; regression from 2011-02-16.
3587
3588 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3589
3590         * NEWS: Mention 2011-02-08 change to stdlib.
3591
3592 2011-02-17  Bruno Haible  <bruno@clisp.org>
3593
3594         getloadavg: Add comments about platforms.
3595         * m4/getloadavg.m4: Add comment.
3596         * lib/getloadavg.c: Likewise.
3597
3598 2011-02-17  Bruno Haible  <bruno@clisp.org>
3599
3600         getloadavg: Fix link error on Solaris 2.6.
3601         * modules/getloadavg (Link): New section.
3602         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
3603         linking test-getloadavg.
3604         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
3605         getloadavg.
3606
3607 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3608
3609         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
3610         It was 'int', but this doesn't match the IRIX 6.5 manual.
3611         Suggested by Bruno Haible in
3612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
3613
3614 2011-02-17  Bruno Haible  <bruno@clisp.org>
3615
3616         havelib: Fix comments.
3617         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
3618         change.
3619
3620 2011-02-17  Bruno Haible  <bruno@clisp.org>
3621
3622         havelib: Update config.rpath.
3623         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
3624
3625 2011-02-17  Bruno Haible  <bruno@clisp.org>
3626
3627         getloadavg test: Add some plausibility checks.
3628         * tests/test-getloadavg.c (check_avg): Print a warning when the value
3629         is improbable.
3630
3631 2011-02-16  Eric Blake  <eblake@redhat.com>
3632
3633         maintainer-makefile: make syntax-check a no-op from tarballs
3634         * top/maint.mk (no-vc-detected): New rule.
3635         (local-checks-available): Use it to avoid hanging if someone tries
3636         'make syntax-check' from a tarball.  Also append to any non-syntax
3637         checks already defined in cfg.mk.
3638
3639 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3640
3641         longlong: tune, particularly for common case of c99
3642
3643         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
3644         or running anything if c99, or if unsigned long long int does not
3645         work.  In either case, we know the answer without further tests.
3646         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
3647         it at most once, and use its results for both long long int and
3648         unsigned long long int.  This is more likely to be efficient in
3649         the common case where the program wants to check for both long
3650         long int and unsigned long long int.
3651         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
3652         since the answer is already known.
3653
3654 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
3655
3656         getloadavg: set errno
3657         * lib/getloadavg.c: Set errno when returning -1.  If no other
3658         error number looks appropriate, set it to ENOSYS if the getloadavg
3659         looks like it can't possibly ever work, ENOTSUP otherwise.
3660         Suggested by Bruno Haible in
3661         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
3662
3663         getloadavg: trim unused parts and speed up 'configure'
3664         * NEWS: Document this.
3665         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
3666         always compiled if getloadavg is absent.
3667         Move test code to ...
3668         * tests/test-getloadavg.c: New file, containing previous
3669         contents of test from lib/getloadavg.c.  It also contains
3670         suggestions by Bruno Haible in
3671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
3672         * modules/getloadavg-tests: New file.
3673         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
3674         Do tests in the same order as they're needed for getloadavg.c.
3675         Omit setgid-related tests that generate symbols KMEM_GROUP,
3676         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
3677         Do only the tests that are needed to see whether the system has
3678         getloadavg, moving the other tests into ...
3679         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
3680         NLIST_NAME_UNION; nobody should be using it.  Do not define
3681         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
3682         relevant, as the user of this module shouldn't care how getloadavg
3683         is implemented.
3684
3685         getloadavg: omit unused var
3686         * lib/getloadavg.c (getloadavg): Omit unused local variable.
3687
3688 2011-02-15  Jim Meyering  <meyering@redhat.com>
3689
3690         doc: update users.txt
3691         * users.txt: Update iwhd's URL.
3692
3693 2011-02-13  Bruno Haible  <bruno@clisp.org>
3694
3695         Consistent macro naming for macros that use GCC __attribute__.
3696         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
3697         _ATTRIBUTE_NONNULL_.
3698         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
3699         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
3700         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
3701         ATTRIBUTE_DEPRECATED.
3702         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
3703         ATTRIBUTE_NORETURN.
3704         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3705         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3706         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3707         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3708         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
3709         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
3710         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
3711         ATTRIBUTE_SENTINEL.
3712         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
3713         ATTRIBUTE_RETURN_CHECK.
3714         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
3715         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
3716         ATTRIBUTE_NORETURN.
3717         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
3718         Reported by Paul Eggert.
3719
3720 2011-02-13  Bruno Haible  <bruno@clisp.org>
3721
3722         Don't interfere with a program's definition of __attribute__.
3723         * lib/argp.h (__attribute__): Remove definition.
3724         (_GL_ATTRIBUTE_FORMAT): New macro.
3725         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
3726         * lib/argp-fmtstream.h (__attribute__): Remove definition.
3727         (_GL_ATTRIBUTE_FORMAT): New macro.
3728         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
3729         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
3730         GCC 3 or newer.
3731         * lib/error.h (__attribute__): Remove definition.
3732         (_GL_ATTRIBUTE_FORMAT): New macro.
3733         (error, error_at_line): Use it.
3734         * lib/hash.h (__attribute__): Remove definition.
3735         (ATTRIBUTE_WUR): Update definition. Define always.
3736         * lib/openat.h (__attribute__): Remove definition.
3737         (ATTRIBUTE_NORETURN): Update definition. Define always.
3738         * lib/sigpipe-die.h (__attribute__): Remove definition.
3739         (ATTRIBUTE_NORETURN): Update definition. Define always.
3740         * lib/vasnprintf.h (__attribute__): Remove definition.
3741         (_GL_ATTRIBUTE_FORMAT): New macro.
3742         (asnprintf, vasnprintf): Use it.
3743         * lib/xalloc.h (__attribute__): Remove definition.
3744         (ATTRIBUTE_NORETURN): Update definition. Define always.
3745         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
3746         * lib/xmemdup0.h (__attribute__): Remove definition.
3747         (ATTRIBUTE_NORETURN): Update definition. Define always.
3748         * lib/xprintf.h (__attribute__): Remove definition.
3749         (_GL_ATTRIBUTE_FORMAT): New macro.
3750         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
3751         * lib/xstrtol.h (__attribute__): Remove definition.
3752         (ATTRIBUTE_NORETURN): Update definition. Define always.
3753         * lib/xvasprintf.h (__attribute__): Remove definition.
3754         (_GL_ATTRIBUTE_FORMAT): New macro.
3755         (xasprintf, xvasprintf): Use it.
3756         * tests/test-argmatch.c (__attribute__): Remove definition.
3757         (ATTRIBUTE_NORETURN): Update definition. Define always.
3758         * tests/test-exclude.c (__attribute__): Remove definition.
3759         (ATTRIBUTE_NORETURN): Update definition. Define always.
3760         Reported by Paul Eggert.
3761
3762 2011-02-13  Bruno Haible  <bruno@clisp.org>
3763
3764         mbrtowc: Add more tests for native Windows platforms.
3765         * tests/test-mbrtowc-w32-1.sh: New file.
3766         * tests/test-mbrtowc-w32-2.sh: New file.
3767         * tests/test-mbrtowc-w32-3.sh: New file.
3768         * tests/test-mbrtowc-w32-4.sh: New file.
3769         * tests/test-mbrtowc-w32-5.sh: New file.
3770         * tests/test-mbrtowc-w32.c: New file.
3771         * modules/mbrtowc-tests (Files): Add them.
3772         (Makefile.am): Arrange to run these tests.
3773         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
3774         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
3775
3776 2011-02-13  Bruno Haible  <bruno@clisp.org>
3777
3778         mbrtowc: Work around native Windows bug.
3779         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
3780         guess when no suitable locale for testing was found.
3781         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
3782
3783 2011-02-13  Bruno Haible  <bruno@clisp.org>
3784
3785         mbsinit: Work around mingw bug.
3786         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
3787         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
3788         Windows.
3789         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
3790
3791 2011-02-13  Bruno Haible  <bruno@clisp.org>
3792
3793         mbsinit: Don't crash for a NULL argument.
3794         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
3795         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
3796
3797 2011-02-13  Bruno Haible  <bruno@clisp.org>
3798
3799         Don't interfere with a program's definition of __attribute__.
3800         * lib/stdio.in.h (__attribute__): Remove definition.
3801         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
3802         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
3803         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
3804         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
3805         * lib/string.in.h (__attribute__): Remove definition.
3806         Reported by Paul Eggert.
3807
3808 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3809
3810         stdlib: don't get in the way of non-GCC __attribute__
3811         See thread starting at
3812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
3813         Revert previous stdlib change, installing the following instead:
3814         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
3815         to get in the way of a non-GCC compiler that supports __attribute__.
3816         (_GL_ATTRIBUTE_RETURN): New macro.
3817         (_Exit): Use it instead of __attribute__.
3818
3819 2011-02-12  Bruno Haible  <bruno@clisp.org>
3820
3821         quotearg test: Avoid test failure on mingw.
3822         * tests/test-quotearg.sh: Convert the locale identifier from native
3823         Windows syntax to Unix syntax.
3824
3825 2011-02-12  Bruno Haible  <bruno@clisp.org>
3826
3827         setlocale: Prefer gnulib's override over libintl's override.
3828         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
3829         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
3830         GNULIB_defined_setlocale is set.
3831
3832 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3833
3834         stdlib: support non-GCC __attribute__
3835
3836         Fix a serious and tricky problem encountered when attempting to
3837         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
3838         5.5, but it crashed due to memory corruption on Solaris 10 with
3839         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
3840         bits that are otherwise zero.  This tagging is optional inside
3841         Emacs but is preferred and is used when __attribute__ ((__aligned
3842         (8))) works, as it does with both recent-enough GCC and with Sun C
3843         5.11.  However, Sun C 5.11 is not GCC and does not #define
3844         __GNUC__ and __GNUC_MINOR__.
3845
3846         When I added the getloadavg module to Emacs, it brought in
3847         stdlib.in.h, which contained this fragment:
3848
3849            #ifndef __attribute__
3850            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
3851            #  define __attribute__(Spec)   /* empty */
3852            # endif
3853            #endif
3854
3855         When files that include <stdlib.h> were compiled with Sun C 5.11,
3856         the above code disabled __attribute__ ((__aligned (8))), which
3857         caused variables to not be properly aligned, which eventually led
3858         to the pointer corruption mentioned above.  (This was a bit hard
3859         to diagnose, unfortunately.)
3860
3861         Several "#define __attribute__(X) /* empty */" code snippets need
3862         to be eradicated from Gnulib to work with non-GCC compilers that
3863         support __attribute__.  The Autoconf way to do this is to test for
3864         each kind of attribute that we want support for, and selectively
3865         enable that in source code.
3866
3867         Fix this problem just for stdlib.h, by adding a test for the
3868         __noreturn__ attribute, and change stdlib.in.h to use that test
3869         when needed.  This technique can be easily generalized to the
3870         other *.in.h files and attributes, and a similar technique can be
3871         used for *.h and *.c files.  This patch is enough to solve the
3872         problem for Emacs + getloadavg, and I thought I'd publish it for
3873         feedback before undertaking further, similar fixes in other
3874         modules.
3875
3876         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
3877         because it's not needed for stdlib.h.  It merely substitutes the
3878         value directly into stdlib.h.  We may well need to #define it, or
3879         similar symbols, for other modules, but it's nice to also have an
3880         option to not #define it for applications like Emacs that do not
3881         need it.
3882
3883         * lib/stdlib.in.h (__attribute__): Do not #define.
3884         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
3885         be defined only if the _Exit module is also used.
3886         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
3887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
3888         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
3889         platforms.
3890         * modules/_Exit (Files): Add m4/attribute.m4.
3891         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
3892         * m4/attribute.m4: New file.
3893
3894 2011-02-12  Bruno Haible  <bruno@clisp.org>
3895
3896         wcsrtombs: Work around bug on native Windows.
3897         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
3898         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3899         instead of len.
3900         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3901
3902 2011-02-12  Bruno Haible  <bruno@clisp.org>
3903
3904         mbsrtowcs: Work around bug on native Windows.
3905         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
3906         against mingw bug.
3907         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
3908
3909 2011-02-12  Bruno Haible  <bruno@clisp.org>
3910
3911         Avoid setlocale bugs in tests.
3912         * modules/btowc (Dependencies): Add setlocale.
3913         * modules/c-strcase (Dependencies): Likewise.
3914         * modules/mbmemcasecmp (Dependencies): Likewise.
3915         * modules/mbmemcasecoll (Dependencies): Likewise.
3916         * modules/mbrtowc (Dependencies): Likewise.
3917         * modules/mbscasecmp (Dependencies): Likewise.
3918         * modules/mbscasestr (Dependencies): Likewise.
3919         * modules/mbschr (Dependencies): Likewise.
3920         * modules/mbscspn (Dependencies): Likewise.
3921         * modules/mbsinit (Dependencies): Likewise.
3922         * modules/mbsncasecmp (Dependencies): Likewise.
3923         * modules/mbsnrtowcs (Dependencies): Likewise.
3924         * modules/mbspbrk (Dependencies): Likewise.
3925         * modules/mbspcasecmp (Dependencies): Likewise.
3926         * modules/mbsrchr (Dependencies): Likewise.
3927         * modules/mbsrtowcs (Dependencies): Likewise.
3928         * modules/mbsspn (Dependencies): Likewise.
3929         * modules/mbsstr (Dependencies): Likewise.
3930         * modules/nl_langinfo (Dependencies): Likewise.
3931         * modules/quotearg (Dependencies): Likewise.
3932         * modules/unicase/locale-language (Dependencies): Likewise.
3933         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
3934         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
3935         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
3936         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
3937         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
3938         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
3939         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
3940         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
3941         * modules/vasnprintf-posix (Dependencies): Likewise.
3942         * modules/wcrtomb (Dependencies): Likewise.
3943         * modules/wcsnrtombs (Dependencies): Likewise.
3944         * modules/wcsrtombs (Dependencies): Likewise.
3945
3946 2011-02-12  Bruno Haible  <bruno@clisp.org>
3947
3948         setlocale: Workaround native Windows bug.
3949         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
3950         succeeds but sets LC_CTYPE to "C", report a failure.
3951         * tests/test-setlocale2.sh: New file.
3952         * tests/test-setlocale2.c: New file.
3953         * modules/setlocale-tests (Files): Add the new files.
3954         (Makefile.am): Enable test-setlocale2.sh test.
3955         * doc/posix-functions/setlocale.texi: Mention workaround.
3956
3957 2011-02-11  Bruno Haible  <bruno@clisp.org>
3958
3959         Tests for module 'setlocale'.
3960         * modules/setlocale-tests: New file.
3961         * tests/test-setlocale1.sh: New file.
3962         * tests/test-setlocale1.c: New file.
3963
3964         New module 'setlocale'.
3965         * lib/locale.in.h (setlocale): New declaration.
3966         * lib/setlocale.c: New file, based on
3967         gettext/gettext-runtime/intl/setlocale.c.
3968         * m4/setlocale.m4: New file.
3969         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
3970         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
3971         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
3972         REPLACE_SETLOCALE.
3973         * modules/setlocale: New file.
3974         * tests/test-locale-c++.cc: Test the declaration of setlocale.
3975         * doc/posix-functions/setlocale.texi: Mention the new module.
3976
3977 2011-02-11  Bruno Haible  <bruno@clisp.org>
3978
3979         Prepare for locale dependent tests on mingw.
3980         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
3981         because it has the wrong locale encoding.
3982         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
3983         French_France.1252 instead of "fr".
3984         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
3985         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
3986         because it has the wrong locale encoding.
3987         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
3988         native Windows, try Turkish_Turkey.65001.
3989         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
3990         Chinese_China.54936.
3991
3992         Prepare for locale dependent tests on mingw.
3993         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
3994         differently.
3995         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3996         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3997         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3998         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3999
4000 2011-02-11  Eric Blake  <eblake@redhat.com>
4001
4002         strptime: avoid compiler warnings
4003         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
4004         compiler warnings about dead code.
4005         Reported by Daniel P. Berrange.
4006
4007 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
4008
4009         doc: update users.txt
4010         * users.txt: Add rcs.
4011
4012 2011-02-10  John W. Eaton  <jwe@gnu.org>
4013
4014         doc: update users.txt
4015         * users.txt: Add octave.
4016
4017 2011-02-10  Jim Meyering  <meyering@redhat.com>
4018
4019         doc: update users.txt
4020         * users.txt: Add iwhd.
4021
4022 2011-02-09  Bruno Haible  <bruno@clisp.org>
4023
4024         gnulib-tool: Make copyright notice adjustment more robust.
4025         * gnulib-tool (func_import): In sed_transform_main_lib_file,
4026         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
4027         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
4028         License".
4029         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
4030
4031 2011-02-06  Bruno Haible  <bruno@clisp.org>
4032
4033         New module 'towctrans'.
4034         * modules/towctrans: New file.
4035         * lib/wctype.in.h (towctrans): New declaration.
4036         * lib/towctrans.c: New file.
4037         * lib/towctrans-impl.h: New file.
4038         * m4/towctrans.m4: New file.
4039         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
4040         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
4041         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
4042         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
4043         * doc/posix-functions/towctrans.texi: Mention the new module.
4044
4045 2011-02-06  Bruno Haible  <bruno@clisp.org>
4046
4047         New module 'wctrans'.
4048         * modules/wctrans: New file.
4049         * lib/wctype.in.h (wctrans): New declaration.
4050         * lib/wctrans.c: New file.
4051         * lib/wctrans-impl.h: New file.
4052         * m4/wctrans.m4: New file.
4053         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
4054         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
4055         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
4056         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
4057         * doc/posix-functions/wctrans.texi: Mention the new module.
4058
4059 2011-02-06  Bruno Haible  <bruno@clisp.org>
4060
4061         New module 'iswctype'.
4062         * modules/iswctype: New file.
4063         * lib/wctype.in.h (iswctype): New declaration.
4064         * lib/iswctype.c: New file.
4065         * lib/iswctype-impl.h: New file.
4066         * m4/iswctype.m4: New file.
4067         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
4068         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
4069         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
4070         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
4071         * doc/posix-functions/iswctype.texi: Mention the new module and the
4072         HP-UX 11.00 problem.
4073
4074 2011-02-06  Bruno Haible  <bruno@clisp.org>
4075
4076         New module 'wctype'.
4077         * modules/wctype: Change to represent the wctype() substitute.
4078         * lib/wctype.in.h (wctype): New declaration.
4079         * lib/wctype.c: New file.
4080         * lib/wctype-impl.h: New file.
4081         * m4/wctype.m4: New file.
4082         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
4083         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
4084         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
4085         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
4086         * doc/posix-functions/wctype.texi: Mention the new module and the
4087         HP-UX 11.00 problem.
4088
4089 2011-02-06  Bruno Haible  <bruno@clisp.org>
4090
4091         wctype-h: Ensure wctype_t and wctrans_t are defined.
4092         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
4093         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4094         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4095         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
4096         HAVE_WCTRANS_T.
4097         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
4098
4099 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4100
4101         flock: fix license typo
4102
4103         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
4104         omitted.
4105
4106 2011-02-08  Bruno Haible  <bruno@clisp.org>
4107
4108         Split large sed scripts, for HP-UX sed.
4109         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
4110         to avoid HP-UX limit of 99 commands, in the near future.
4111         * modules/stdlib (Makefile.am): Likewise.
4112         * modules/unistd (Makefile.am): Likewise.
4113         * modules/wchar (Makefile.am): Likewise.
4114         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4115         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
4116         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
4117
4118 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4119             Bruno Haible  <bruno@clisp.org>
4120
4121         stdlib: improve random_r modularization
4122         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
4123         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
4124         you also need the random_r module to get this material right.
4125         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
4126         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
4127         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
4128
4129 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4130
4131         stdlib: don't depend on stdint
4132         * lib/stdlib.in.h: Don't include <stdint.h> merely because
4133         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
4134         be independent of whether stdint.h is needed.
4135         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
4136         here, instead of ...
4137         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
4138         struct random_data should be using the random_r module, not just
4139         the stdlib module (which wouldn't make sense: what package needs
4140         just struct random_data without also needing random_r?).
4141         * modules/stdlib (Depends-on): Remove stdint.
4142
4143         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
4144         See the thread rooted at
4145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
4146         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
4147         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
4148         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
4149         __VMS)); previously it was always included (via fcntl--.h).
4150         (getloadavg): Do not use c_strtod.  Instead, approximate it by
4151         hand; this is good enough for load averages.  Also, do not use
4152         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
4153         flags directly if available and don't bother otherwise.  (Packages
4154         that need the extra reliability should use the modules that define
4155         these flags on older platforms that lack them.)
4156         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
4157         fcntl-safer.
4158
4159 2011-02-08  Jim Meyering  <meyering@redhat.com>
4160
4161         di-set.h, ino-map.h: add multiple-inclusion guard
4162         Technically, the guard is required only for ino-map.h, due to its
4163         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
4164         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
4165         * lib/ino-map.h: Likewise.
4166
4167 2011-02-06  Bruno Haible  <bruno@clisp.org>
4168
4169         iswblank: Ensure declaration on glibc systems.
4170         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
4171         * modules/iswblank (Dependencies): Add 'extensions'.
4172         * doc/posix-functions/iswblank.texi: Document the glibc problem.
4173
4174 2011-02-06  Bruno Haible  <bruno@clisp.org>
4175
4176         New module 'iswblank'.
4177         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
4178         * modules/iswblank: New file.
4179         * modules/wctype-h (Files): Remove lib/iswblank.c.
4180         (Makefile.am): Substitute GNULIB_ISWBLANK.
4181         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
4182         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
4183         (gl_WCTYPE_H_DEFAULTS): New macro.
4184         (gl_WCTYPE_H): Require it. Remove iswblank related code.
4185         * modules/iswblank-tests: New file.
4186         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
4187         * tests/test-wctype-h.c (main): Remove iswblank tests.
4188         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
4189         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
4190         of 'wctype-h'.
4191         * NEWS: Mention the change.
4192         * modules/mbchar (Depends-on): Add iswblank.
4193
4194 2011-02-08  Bruno Haible  <bruno@clisp.org>
4195
4196         di-set tests: Refactor.
4197         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
4198         unnecessary includes.
4199         (ASSERT): Remove macro.
4200         (main): Make C90 compliant by avoiding variable declaration after
4201         statement.
4202         * modules/di-set-tests (Files): Add tests/macros.h.
4203
4204 2011-02-08  Bruno Haible  <bruno@clisp.org>
4205
4206         ino-map tests: Refactor.
4207         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
4208         unnecessary includes.
4209         (ASSERT): Remove macro.
4210         (main): Make C90 compliant by avoiding variable declaration after
4211         statement.
4212         * modules/ino-map-tests (Files): Add tests/macros.h.
4213
4214 2011-02-08  Jim Meyering  <meyering@redhat.com>
4215
4216         di-set: add "const" to a cast
4217         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
4218         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
4219
4220 2011-02-06  Bruno Haible  <bruno@clisp.org>
4221
4222         Rename module 'wctype' to 'wctype-h'.
4223         * modules/wctype-h: Renamed from modules/wctype.
4224         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
4225         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
4226         (Files, Depends-on, Makefile.am): Update.
4227         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
4228         (Files, Makefile.am): Update.
4229         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
4230         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
4231         * doc/posix-headers/wctype.texi: Update.
4232         * doc/posix-functions/iswalnum.texi: Update.
4233         * doc/posix-functions/iswalpha.texi: Update.
4234         * doc/posix-functions/iswblank.texi: Update.
4235         * doc/posix-functions/iswcntrl.texi: Update.
4236         * doc/posix-functions/iswdigit.texi: Update.
4237         * doc/posix-functions/iswgraph.texi: Update.
4238         * doc/posix-functions/iswlower.texi: Update.
4239         * doc/posix-functions/iswprint.texi: Update.
4240         * doc/posix-functions/iswpunct.texi: Update.
4241         * doc/posix-functions/iswspace.texi: Update.
4242         * doc/posix-functions/iswupper.texi: Update.
4243         * doc/posix-functions/iswxdigit.texi: Update.
4244         * doc/posix-functions/towlower.texi: Update.
4245         * doc/posix-functions/towupper.texi: Update.
4246         * NEWS: Mention the change.
4247         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
4248         * modules/mbchar (Dependencies): Likewise.
4249         * modules/mbswidth (Dependencies): Likewise.
4250         * modules/quotearg (Dependencies): Likewise.
4251         * modules/regex (Dependencies): Likewise.
4252         * modules/wcscasecmp (Dependencies): Likewise.
4253         * modules/wcsncasecmp (Dependencies): Likewise.
4254         * modules/wcwidth (Dependencies): Likewise.
4255
4256 2011-02-06  Bruno Haible  <bruno@clisp.org>
4257
4258         New module 'wcswidth'.
4259         * modules/wcswidth: New file.
4260         * lib/wchar.in.h (wcswidth): New declaration.
4261         * lib/wcswidth.c: New file.
4262         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
4263         * m4/wcswidth.m4: New file.
4264         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
4265         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
4266         REPLACE_WCSWIDTH.
4267         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
4268         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
4269         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
4270         * doc/posix-functions/wcswidth.texi: Mention the new module.
4271
4272 2011-02-06  Bruno Haible  <bruno@clisp.org>
4273
4274         New module 'wcstok'.
4275         * modules/wcstok: New file.
4276         * lib/wchar.in.h (wcstok): New declaration.
4277         * lib/wcstok.c: New file.
4278         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
4279         * m4/wcstok.m4: New file.
4280         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
4281         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
4282         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
4283         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
4284         * doc/posix-functions/wcstok.texi: Mention the new module.
4285
4286 2011-02-06  Bruno Haible  <bruno@clisp.org>
4287
4288         New module 'wcsstr'.
4289         * modules/wcsstr: New file.
4290         * lib/wchar.in.h (wcsstr): New declaration.
4291         * lib/wcsstr.c: New file.
4292         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
4293         * m4/wcsstr.m4: New file.
4294         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
4295         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
4296         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
4297         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
4298         * doc/posix-functions/wcsstr.texi: Mention the new module.
4299
4300 2011-02-06  Bruno Haible  <bruno@clisp.org>
4301
4302         New module 'wcspbrk'.
4303         * modules/wcspbrk: New file.
4304         * lib/wchar.in.h (wcspbrk): New declaration.
4305         * lib/wcspbrk.c: New file.
4306         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
4307         * m4/wcspbrk.m4: New file.
4308         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
4309         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
4310         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
4311         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
4312         * doc/posix-functions/wcspbrk.texi: Mention the new module.
4313
4314 2011-02-06  Bruno Haible  <bruno@clisp.org>
4315
4316         New module 'wcsspn'.
4317         * modules/wcsspn: New file.
4318         * lib/wchar.in.h (wcsspn): New declaration.
4319         * lib/wcsspn.c: New file.
4320         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
4321         * m4/wcsspn.m4: New file.
4322         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
4323         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
4324         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
4325         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
4326         * doc/posix-functions/wcsspn.texi: Mention the new module.
4327
4328 2011-02-06  Bruno Haible  <bruno@clisp.org>
4329
4330         New module 'wcscspn'.
4331         * modules/wcscspn: New file.
4332         * lib/wchar.in.h (wcscspn): New declaration.
4333         * lib/wcscspn.c: New file.
4334         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
4335         * m4/wcscspn.m4: New file.
4336         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
4337         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
4338         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
4339         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
4340         * doc/posix-functions/wcscspn.texi: Mention the new module.
4341
4342 2011-02-06  Bruno Haible  <bruno@clisp.org>
4343
4344         New module 'wcsrchr'.
4345         * modules/wcsrchr: New file.
4346         * lib/wchar.in.h (wcsrchr): New declaration.
4347         * lib/wcsrchr.c: New file.
4348         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
4349         * m4/wcsrchr.m4: New file.
4350         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
4351         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
4352         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
4353         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
4354         * doc/posix-functions/wcsrchr.texi: Mention the new module.
4355
4356 2011-02-06  Bruno Haible  <bruno@clisp.org>
4357
4358         New module 'wcschr'.
4359         * modules/wcschr: New file.
4360         * lib/wchar.in.h (wcschr): New declaration.
4361         * lib/wcschr.c: New file.
4362         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
4363         * m4/wcschr.m4: New file.
4364         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
4365         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
4366         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
4367         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
4368         * doc/posix-functions/wcschr.texi: Mention the new module.
4369
4370 2011-02-06  Bruno Haible  <bruno@clisp.org>
4371
4372         New module 'wcsdup'.
4373         * modules/wcsdup: New file.
4374         * lib/wchar.in.h (wcsdup): New declaration.
4375         * lib/wcsdup.c: New file.
4376         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
4377         * m4/wcsdup.m4: New file.
4378         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
4379         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
4380         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
4381         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
4382         * doc/posix-functions/wcsdup.texi: Mention the new module.
4383
4384 2011-02-06  Bruno Haible  <bruno@clisp.org>
4385
4386         New module 'wcsxfrm'.
4387         * modules/wcsxfrm: New file.
4388         * lib/wchar.in.h (wcsxfrm): New declaration.
4389         * lib/wcsxfrm.c: New file.
4390         * lib/wcsxfrm-impl.h: New file.
4391         * m4/wcsxfrm.m4: New file.
4392         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
4393         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
4394         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
4395         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
4396         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
4397
4398 2011-02-06  Bruno Haible  <bruno@clisp.org>
4399
4400         New module 'wcscoll'.
4401         * modules/wcscoll: New file.
4402         * lib/wchar.in.h (wcscoll): New declaration.
4403         * lib/wcscoll.c: New file.
4404         * lib/wcscoll-impl.h: New file.
4405         * m4/wcscoll.m4: New file.
4406         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
4407         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
4408         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
4409         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
4410         * doc/posix-functions/wcscoll.texi: Mention the new module.
4411
4412 2011-02-06  Bruno Haible  <bruno@clisp.org>
4413
4414         New module 'wcsncasecmp'.
4415         * modules/wcsncasecmp: New file.
4416         * lib/wchar.in.h (wcsncasecmp): New declaration.
4417         * lib/wcsncasecmp.c: New file.
4418         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
4419         * m4/wcsncasecmp.m4: New file.
4420         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
4421         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
4422         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
4423         HAVE_WCSNCASECMP.
4424         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
4425         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
4426
4427 2011-02-06  Bruno Haible  <bruno@clisp.org>
4428
4429         New module 'wcscasecmp'.
4430         * modules/wcscasecmp: New file.
4431         * lib/wchar.in.h (wcscasecmp): New declaration.
4432         * lib/wcscasecmp.c: New file.
4433         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
4434         * m4/wcscasecmp.m4: New file.
4435         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
4436         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
4437         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
4438         HAVE_WCSCASECMP.
4439         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
4440         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
4441
4442 2011-02-05  Bruno Haible  <bruno@clisp.org>
4443
4444         New module 'wcsncmp'.
4445         * modules/wcsncmp: New file.
4446         * lib/wchar.in.h (wcsncmp): New declaration.
4447         * lib/wcsncmp.c: New file.
4448         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
4449         * m4/wcsncmp.m4: New file.
4450         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
4451         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
4452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
4453         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
4454         * doc/posix-functions/wcsncmp.texi: Mention the new module.
4455
4456 2011-02-05  Bruno Haible  <bruno@clisp.org>
4457
4458         New module 'wcscmp'.
4459         * modules/wcscmp: New file.
4460         * lib/wchar.in.h (wcscmp): New declaration.
4461         * lib/wcscmp.c: New file.
4462         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
4463         * m4/wcscmp.m4: New file.
4464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
4465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
4466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
4467         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
4468         * doc/posix-functions/wcscmp.texi: Mention the new module.
4469
4470 2011-02-05  Bruno Haible  <bruno@clisp.org>
4471
4472         New module 'wcsncat'.
4473         * modules/wcsncat: New file.
4474         * lib/wchar.in.h (wcsncat): New declaration.
4475         * lib/wcsncat.c: New file.
4476         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
4477         * m4/wcsncat.m4: New file.
4478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
4479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
4480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
4481         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
4482         * doc/posix-functions/wcsncat.texi: Mention the new module.
4483
4484 2011-02-05  Bruno Haible  <bruno@clisp.org>
4485
4486         New module 'wcscat'.
4487         * modules/wcscat: New file.
4488         * lib/wchar.in.h (wcscat): New declaration.
4489         * lib/wcscat.c: New file.
4490         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
4491         * m4/wcscat.m4: New file.
4492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
4493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
4494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
4495         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
4496         * doc/posix-functions/wcscat.texi: Mention the new module.
4497
4498 2011-02-05  Bruno Haible  <bruno@clisp.org>
4499
4500         New module 'wcpncpy'.
4501         * modules/wcpncpy: New file.
4502         * lib/wchar.in.h (wcpncpy): New declaration.
4503         * lib/wcpncpy.c: New file.
4504         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
4505         * m4/wcpncpy.m4: New file.
4506         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
4507         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
4508         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
4509         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
4510         * doc/posix-functions/wcpncpy.texi: Mention the new module.
4511
4512 2011-02-05  Bruno Haible  <bruno@clisp.org>
4513
4514         New module 'wcsncpy'.
4515         * modules/wcsncpy: New file.
4516         * lib/wchar.in.h (wcsncpy): New declaration.
4517         * lib/wcsncpy.c: New file.
4518         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
4519         * m4/wcsncpy.m4: New file.
4520         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
4521         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
4522         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
4523         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
4524         * doc/posix-functions/wcsncpy.texi: Mention the new module.
4525
4526 2011-02-05  Bruno Haible  <bruno@clisp.org>
4527
4528         New module 'wcpcpy'.
4529         * modules/wcpcpy: New file.
4530         * lib/wchar.in.h (wcpcpy): New declaration.
4531         * lib/wcpcpy.c: New file.
4532         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
4533         * m4/wcpcpy.m4: New file.
4534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
4535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
4536         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
4537         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
4538         * doc/posix-functions/wcpcpy.texi: Mention the new module.
4539
4540 2011-02-05  Bruno Haible  <bruno@clisp.org>
4541
4542         New module 'wcscpy'.
4543         * modules/wcscpy: New file.
4544         * lib/wchar.in.h (wcscpy): New declaration.
4545         * lib/wcscpy.c: New file.
4546         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
4547         * m4/wcscpy.m4: New file.
4548         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
4549         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
4550         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
4551         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
4552         * doc/posix-functions/wcscpy.texi: Mention the new module.
4553
4554 2011-02-05  Bruno Haible  <bruno@clisp.org>
4555
4556         New module 'wcsnlen'.
4557         * modules/wcsnlen: New file.
4558         * lib/wchar.in.h (wcsnlen): New declaration.
4559         * lib/wcsnlen.c: New file.
4560         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
4561         * m4/wcsnlen.m4: New file.
4562         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
4563         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
4564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
4565         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
4566         * doc/posix-functions/wcsnlen.texi: Mention the new module.
4567
4568 2011-02-05  Bruno Haible  <bruno@clisp.org>
4569
4570         New module 'wcslen'.
4571         * modules/wcslen: New file.
4572         * lib/wchar.in.h (wcslen): New declaration.
4573         * lib/wcslen.c: New file.
4574         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
4575         * m4/wcslen.m4: New file.
4576         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
4577         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
4578         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
4579         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
4580         * doc/posix-functions/wcslen.texi: Mention the new module.
4581
4582 2011-02-05  Bruno Haible  <bruno@clisp.org>
4583
4584         New module 'wmemset'.
4585         * modules/wmemset: New file.
4586         * lib/wchar.in.h (wmemset): New declaration.
4587         * lib/wmemset.c: New file.
4588         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
4589         * m4/wmemset.m4: New file.
4590         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
4591         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
4592         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
4593         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
4594         * doc/posix-functions/wmemset.texi: Mention the new module.
4595
4596 2011-02-05  Bruno Haible  <bruno@clisp.org>
4597
4598         New module 'wmemmove'.
4599         * modules/wmemmove: New file.
4600         * lib/wchar.in.h (wmemmove): New declaration.
4601         * lib/wmemmove.c: New file.
4602         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
4603         * m4/wmemmove.m4: New file.
4604         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
4605         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
4606         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
4607         HAVE_WMEMMOVE.
4608         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
4609         * doc/posix-functions/wmemmove.texi: Mention the new module.
4610
4611 2011-02-05  Bruno Haible  <bruno@clisp.org>
4612
4613         New module 'wmemcpy'.
4614         * modules/wmemcpy: New file.
4615         * lib/wchar.in.h (wmemcpy): New declaration.
4616         * lib/wmemcpy.c: New file.
4617         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
4618         * m4/wmemcpy.m4: New file.
4619         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
4620         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
4621         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
4622         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
4623         * doc/posix-functions/wmemcpy.texi: Mention the new module.
4624
4625 2011-02-05  Bruno Haible  <bruno@clisp.org>
4626
4627         New module 'wmemcmp'.
4628         * modules/wmemcmp: New file.
4629         * lib/wchar.in.h (wmemcmp): New declaration.
4630         * lib/wmemcmp.c: New file.
4631         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
4632         * m4/wmemcmp.m4: New file.
4633         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
4634         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
4635         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
4636         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
4637         * doc/posix-functions/wmemcmp.texi: Mention the new module.
4638
4639 2011-02-07  Jim Meyering  <meyering@redhat.com>
4640
4641         di-set, ino-map: new modules, from coreutils
4642         * lib/di-set.c: New file.
4643         * lib/di-set.h: Likewise.
4644         * lib/ino-map.c: Likewise.
4645         * lib/ino-map.h: Likewise.
4646         * modules/di-set: Likewise.
4647         * modules/di-set-tests: Likewise.
4648         * modules/ino-map: Likewise.
4649         * modules/ino-map-tests: Likewise.
4650         * tests/test-di-set.c: Likewise.
4651         * tests/test-ino-map.c: Likewise.
4652
4653 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
4654
4655         getloadavg: merge minor changes from Emacs
4656
4657         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
4658         (getloadavg): Use memset, not bzero.
4659
4660         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
4661         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4662         clash (bug#86).
4663
4664 2010-11-14  Bruno Haible  <bruno@clisp.org>
4665
4666         Allow multiple gnulib generated replacements to coexist.
4667         * lib/getopt.in.h (struct option): Avoid identical redefinition.
4668         * lib/inttypes.in.h (imaxdiv_t): Likewise.
4669         * lib/langinfo.in.h (nl_item): Likewise.
4670         * lib/math.in.h (_NaN, NAN): Likewise.
4671         * lib/netdb.in.h (struct addrinfo): Likewise.
4672         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
4673         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
4674         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
4675         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
4676         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
4677         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
4678         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
4679         pthread_mutexattr_init, pthread_mutexattr_settype,
4680         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
4681         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
4682         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
4683         pthread_spin_trylock, pthread_spin_unlock): Likewise.
4684         * lib/sched.in.h (struct sched_param): Likewise.
4685         * lib/se-selinux.in.h (security_class_t, security_context_t,
4686         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
4687         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
4688         lsetfilecon, fsetfilecon, security_check_context,
4689         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
4690         Likewise.
4691         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
4692         Likewise.
4693         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
4694         _gl_function_taking_int_returning_void_t, union sigval,
4695         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
4696         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
4697         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4698         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
4699         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
4700         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
4701         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
4702         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
4703         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
4704         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
4705         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
4706         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
4707         socklen_t, rpl_fd_isset): Likewise.
4708         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
4709         * lib/sys_time.in.h (struct timeval): Likewise.
4710         * lib/sys_times.in.h (struct tms): Likewise.
4711         * lib/sys_utsname.in.h (struct utsname):
4712         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
4713         * lib/unistd.in.h (getpagesize): Likewise.
4714         * lib/wchar.in.h (mbstate_t): Likewise.
4715         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4716         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
4717         towlower, towupper): Likewise.
4718         Reported by Sam Steingold <sds@gnu.org>.
4719
4720 2011-02-05  Eric Blake  <eblake@redhat.com>
4721
4722         unsetenv: work around Haiku issues
4723         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
4724         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
4725
4726 2010-12-30  Bruce Korb  <bkorb@gnu.org>
4727
4728         libposix: avoid calling error() within libposix
4729         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
4730         is defined.
4731
4732 2011-02-05  Eric Blake  <eblake@redhat.com>
4733
4734         strerror_r-posix: port to cygwin
4735         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
4736         implementation.
4737         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
4738         * tests/test-strerror_r.c (main): Fix test.
4739         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4740         issue.
4741
4742 2011-02-05  Bruno Haible  <bruno@clisp.org>
4743
4744         New module 'wmemchr'.
4745         * modules/wmemchr: New file.
4746         * lib/wchar.in.h (wmemchr): New declaration.
4747         * lib/wmemchr.c: New file.
4748         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
4749         * m4/wmemchr.m4: New file.
4750         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
4751         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
4752         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
4753         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
4754         * doc/posix-functions/wmemchr.texi: Mention the new module.
4755
4756 2011-02-04  Eric Blake  <eblake@redhat.com>
4757
4758         fdopendir: detect FreeBSD bug
4759         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
4760         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
4761
4762 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4763
4764         stdbool: do not define HAVE_STDBOOL_H
4765         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
4766         AC_HEADER_STDBOOL.  All uses changed.  Do not define
4767         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
4768         imported from the latest Autoconf git.  It was motivated by Emacs,
4769         which uses gnulib but does not need HAVE_STDBOOL_H.
4770
4771 2011-02-04  Bruno Haible  <bruno@clisp.org>
4772
4773         wcsnrtombs: Prepare for new module wwcsnrtombs.
4774         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
4775         * lib/wcsnrtombs.c: Include it.
4776         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
4777
4778         wcsrtombs: Prepare for new module wwcsrtombs.
4779         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
4780         * lib/wcsrtombs.c: Include it.
4781         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
4782
4783         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
4784         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
4785         * lib/mbsnrtowcs.c: Include it.
4786         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
4787
4788         mbsrtowcs: Prepare for new module mbsrtowwcs.
4789         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
4790         * lib/mbsrtowcs.c: Include it.
4791         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
4792
4793 2011-02-04  Bruno Haible  <bruno@clisp.org>
4794
4795         vasnprintf: Reduce use of malloc for small format strings.
4796         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
4797         (arguments): Add room for the first 7 arguments.
4798         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
4799         (char_directives, u8_directives, u16_directives, u32_directives): Add
4800         room for the first 7 directives.
4801         * lib/printf-parse.c: Include <string.h>.
4802         (PRINTF_PARSE): Change memory handling code so that it uses the first
4803         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
4804         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
4805         Reported by Pádraig Brady <P@draigbrady.com>.
4806
4807 2011-01-31  Eric Blake  <eblake@redhat.com>
4808
4809         dup2: work around Haiku bug
4810         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
4811         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
4812         * doc/posix-functions/dup2.texi (dup2): Document the bug.
4813         * tests/test-dup2.c (main): Enhance test.
4814
4815 2011-01-31  Simon Josefsson  <simon@josefsson.org>
4816
4817         doc: off_t is not available in eglibc 2.11.2 stdio.h.
4818         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
4819         declared by eglibc 2.11.2.
4820         * lib/stdio.in.h: Likewise.
4821
4822 2011-01-31  Eric Blake  <eblake@redhat.com>
4823
4824         ignore-value: add missing test dependency
4825         * tests/test-ignore-value.c: Revert previous change; stdio.h
4826         provides off_t.
4827         * modules/ignore-value-tests (Depends-on): Add missing dependency.
4828
4829 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4830
4831         mktime: clarify long_int width checking
4832         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
4833         the top level, to make it clearer that the assumption about
4834         long_int width is being checked.  See
4835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
4836
4837 2011-01-30  Simon Josefsson  <simon@josefsson.org>
4838
4839         ignore-value: Fix self-test.
4840         * tests/test-ignore-value.c: Include sys/types.h for off_t.
4841
4842 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4843
4844         TYPE_MAXIMUM: avoid theoretically undefined behavior
4845         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
4846         negative number, which the C Standard says has undefined behavior.
4847         In practice this is not a problem, but might as well do it by the book.
4848         Reported by Rich Felker and Eric Blake; see
4849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
4850         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
4851         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4853         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
4854         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4855         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
4856
4857         mktime: #undef mktime before #defining it
4858         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
4859
4860         mktime: systematically normalize tm_isdst comparisons
4861         * lib/mktime.c (isdst_differ): New function.
4862         (__mktime_internal): Use it systematically for all isdst comparisons.
4863         This completes the fix for libc BZ #6723, and removes the need for
4864         normalizing tm_isdst.  See
4865         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
4866         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
4867
4868         mktime: fix some integer overflow issues and sidestep the rest
4869
4870         This was prompted by a bug report by Benjamin Lindner for MinGW
4871         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
4872         His bug is due to signed integer overflow (0 - INT_MIN), and I
4873         I scanned through mktime.c looking for other integer overflow
4874         problems, fixing all the bugs I found.
4875
4876         Although the C Standard says the resulting code is still not safe
4877         in the presence of integer overflow, in practice it should be good
4878         enough for all real-world two's-complement implementations, except
4879         for debugging environments that deliberately trap on integer
4880         overflow (e.g., gcc -ftrapv).
4881
4882         * lib/mktime.c (WRAPV): New macro.
4883         (SHR): Also check that long_int and time_t shift right in the
4884         usual way, before using the fast-but-unportable method.
4885         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
4886         used.  The code already assumed two's complement, so there's
4887         no need to test for alternatives.  All uses removed.
4888         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
4889         the C standard.  Problem reported by Rich Felker in
4890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
4891         (twos_complement_arithmetic): Also check long_int and time_t.
4892         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
4893         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
4894         (__mktime_internal): Avoid integer overflow with unary subtraction
4895         in two instances where -1 - X is an adequate replacement for -X,
4896         since the calculations are approximate.
4897
4898 2011-01-29  Eric Blake  <eblake@redhat.com>
4899
4900         mktime: avoid infinite loop
4901         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4902         type; behavior is still undefined but portable to all known targets.
4903         Reported by Rich Felker.
4904
4905 2011-01-29  Simon Josefsson  <simon@josefsson.org>
4906
4907         rename, unlink, same-inode: Relicense.
4908         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
4909         * modules/unlink (License): Likewise.
4910         * modules/same-inode (License): Likewise.
4911
4912 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4913
4914         mktime: avoid problems on NetBSD 5 / i386
4915         * lib/mktime.c (long_int): New type.  This works around a problem
4916         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
4917         but time_t is 64 bits, and where I expect the existing code is
4918         wrong in some cases.
4919         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
4920         (ydhms_diff): Bring back the compile-time check for wide-enough
4921         year and yday.
4922
4923         mktime: fix misspelling in comment
4924         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
4925         This merges all recent glibc changes of importance.
4926
4927 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4928
4929         move-if-change: cope with concurrent mv of identical file.
4930         * build-aux/move-if-change (CMPPROG): Accept environment
4931         variable as an override for `cmp'.
4932         (usage): Document CMPPROG.
4933         Adjust comparison to drop stdout.  Cope with failure of mv if
4934         the target file exists and is identical to the source, for
4935         parallel builds.
4936         Report from H.J. Lu against binutils in PR binutils/12283.
4937
4938 2011-01-28  Bruce Korb  <bkorb@gnu.org>
4939
4940         * users.txt: Mention sharutils.
4941
4942 2011-01-28  Simon Josefsson  <simon@josefsson.org>
4943
4944         * users.txt: Mention OATH Toolkit.
4945
4946 2011-01-27  Bruno Haible  <bruno@clisp.org>
4947
4948         Prepare for supporting FreeBSD 10.
4949         * build-aux/config.libpath: Remove handling of freebsd1*.
4950
4951 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
4952
4953         Prepare for supporting FreeBSD 10.
4954         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
4955         match FreeBSD 10.0.
4956
4957 2011-01-27  Bruno Haible  <bruno@clisp.org>
4958
4959         vma-iter, get-rusage-as: Add OpenBSD support.
4960         * modules/vma-iter (configure.ac): Test for mquery.
4961         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
4962         * lib/vma-iter.c: Include <sys/mman.h>.
4963         (vma_iterate): Add an implementation based on mquery().
4964         * lib/resource-ext.h (get_rusage_as): Update comments.
4965         * lib/get-rusage-as.c: Likewise.
4966         * lib/get-rusage-data.c: Likewise.
4967
4968 2011-01-26  Karl Berry  <karl@gnu.org>
4969
4970         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
4971         variables to make it easier to override the makeinfo program used.
4972
4973 2011-01-26  Eric Blake  <eblake@redhat.com>
4974
4975         fcntl: work around Haiku F_DUPFD bugs
4976         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
4977         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
4978         cloexec bit on duplication.
4979         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
4980
4981 2011-01-26  Bruno Haible  <bruno@clisp.org>
4982
4983         Enable memory leak tests on AIX.
4984         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
4985         * tests/test-fprintf-posix3.c (main): Likewise.
4986
4987 2011-01-26  Bruno Haible  <bruno@clisp.org>
4988
4989         Tests for module 'get-rusage-data'.
4990         * modules/get-rusage-data-tests: New file.
4991         * tests/test-get-rusage-data.c: New file.
4992
4993         New module 'get-rusage-data'.
4994         * lib/resource-ext.h (get_rusage_data): New declaration.
4995         * lib/get-rusage-data.c: New file.
4996         * modules/get-rusage-data: New file.
4997
4998 2011-01-25  Bruno Haible  <bruno@clisp.org>
4999
5000         get-rusage-as: Allow for easier testing.
5001         * lib/resource-ext.h (get_rusage_as): Add comment.
5002         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
5003         (main): New function for interactive testing.
5004
5005 2011-01-25  Bruno Haible  <bruno@clisp.org>
5006
5007         vma-iter: Treat Haiku like BeOS.
5008         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
5009         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
5010
5011 2011-01-25  Eric Blake  <eblake@redhat.com>
5012
5013         c-stack: fix regression on cygwin when libsigsegv is present
5014         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
5015
5016 2011-01-24  Bruno Haible  <bruno@clisp.org>
5017
5018         vma-iter: Avoid empty intervals.
5019         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
5020         on an empty interval.
5021
5022 2011-01-24  Jim Meyering  <meyering@redhat.com>
5023
5024         u64: remove unnecessary #include
5025         * lib/u64.h: Don't include <stddef.h>.  It was not used.
5026
5027 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5028
5029         Allow the user to avoid the HAVE_RAW_DECL_* macros.
5030         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
5031
5032 2011-01-23  Bruno Haible  <bruno@clisp.org>
5033
5034         New module 'vma-iter'.
5035         * lib/vma-iter.h: New file.
5036         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
5037         * modules/vma-iter: New file.
5038         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
5039         for get_rusage_as_via_iterator.
5040         (vma_iterate_callback): New function.
5041         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
5042         * modules/get-rusage-as (Depends-on): Add vma-iter.
5043
5044 2011-01-23  Bruno Haible  <bruno@clisp.org>
5045
5046         uninorm: Tweak includes.
5047         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
5048         Reported by Jim Meyering.
5049
5050 2011-01-23  Bruno Haible  <bruno@clisp.org>
5051
5052         get-rusage-as: Improve on NetBSD.
5053         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
5054         /proc, like on FreeBSD.
5055
5056 2011-01-23  Jim Meyering  <meyering@redhat.com>
5057
5058         xreadlink.h: remove unnecessary #include
5059         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
5060
5061         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
5062         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
5063
5064 2011-01-23  Bruno Haible  <bruno@clisp.org>
5065
5066         get-rusage-as: Fix bug.
5067         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
5068         original limit when aborting the first loop.
5069
5070 2011-01-23  Bruno Haible  <bruno@clisp.org>
5071
5072         wctype: Ensure valid C syntax.
5073         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
5074         unconditionally, instead of gl_NEXT_HEADERS conditionally.
5075
5076 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5077
5078         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
5079         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
5080         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
5081         as they are needed only for configure's test case.
5082         This removes two unnecessary symbols from config.h.
5083
5084         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
5085         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
5086         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
5087         AC_CHECK_HEADERS_ONCE on a header that we also invoke
5088         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
5089         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
5090         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
5091         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5092         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5093         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5094         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5095         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5096         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5097         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5098         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5099         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5100         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5101         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5102
5103 2011-01-21  Eric Blake  <eblake@redhat.com>
5104
5105         maintainer-makefile: work with older git for submodule check
5106         * top/maint.mk (public-submodule-commit): Rewrite to avoid
5107         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
5108         Reported by Matthias Bolte.
5109
5110         bootstrap: minor portability fixes
5111         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
5112         (usage): Omit leading capital and trailing . on help phrases, per
5113         GNU Coding Standards.
5114         (check_versions, top level): Prefix messages with script name.
5115
5116 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
5117
5118         bootstrap: support --no-git option
5119         * build-aux/bootstrap: Add --no-git option, to be used when
5120         --gnulib-srcdir points to the exact desired checkout.
5121
5122 2011-01-21  Eric Blake  <eblake@redhat.com>
5123
5124         strerror_r-posix: work with glibc 2.13
5125         * lib/strerror_r.c (strerror_r): Fix return type.
5126
5127 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5128             Bruno Haible  <bruno@clisp.org>
5129
5130         uN_strstr: New unit tests.
5131         * modules/unistr/u8-strstr-tests: New file.
5132         * modules/unistr/u16-strstr-tests: New file.
5133         * modules/unistr/u32-strstr-tests: New file.
5134         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
5135         * tests/unistr/test-u8-strstr.c: New file.
5136         * tests/unistr/test-u16-strstr.c: New file.
5137         * tests/unistr/test-u32-strstr.c: New file.
5138
5139 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5140             Bruno Haible  <bruno@clisp.org>
5141
5142         Make uN_strstr functions O(n) worst-case.
5143         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
5144         16-bit and 32-bit unit cases, use the unibyte algorithm from
5145         lib/mbsstr.c.
5146         * lib/unistr/u8-strstr.c: Include <string.h>.
5147         (UNIT_IS_UINT8_T): New macro.
5148         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
5149         (U_STRLEN, U_STRNLEN): New macros.
5150         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
5151         (U_STRLEN, U_STRNLEN): New macros.
5152         * modules/unistr/u8-strstr (Depends-on): Add strstr.
5153         (configure.ac): Update required libunistring version.
5154         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
5155         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
5156         malloca.
5157         (configure.ac): Update required libunistring version.
5158         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
5159         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
5160         malloca.
5161         (configure.ac): Update required libunistring version.
5162
5163 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5164             Bruno Haible  <bruno@clisp.org>
5165
5166         Prepare for faster uN_strstr functions.
5167         * lib/str-kmp.h: Support definable UNITs.
5168         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
5169         needle_len argument.
5170         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
5171         * lib/mbscasestr.c (mbscasestr): Likewise.
5172
5173 2011-01-21  Pádraig Brady <P@draigBrady.com>
5174
5175         malloca-tests: make faster by unsetting MALLOC_PERTURB_
5176         * tests/test-malloca.c (main): Unset the environment variable
5177         to greatly speed up the test.
5178         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
5179         * modules/malloca-tests: Depend on unsetenv.
5180
5181 2011-01-21  Pádraig Brady <P@draigBrady.com>
5182
5183         ignore-value: remove stdint dependency
5184         * lib/ignore-value.h: Remove <stdint.h>
5185         * modules/ignore-value: Remove stdint dependency.
5186
5187 2011-01-21  Jim Meyering  <meyering@redhat.com>
5188
5189         maint.mk: adjust variable name to be consistent with other gl_ vars
5190         * top/maint.mk (gl_public_submodule_commit): Rename the variable
5191         to be lower case.
5192
5193 2011-01-20  Jim Meyering  <meyering@redhat.com>
5194
5195         maint.mk: make "check" depend on public-submodule-commit by default
5196         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
5197
5198 2011-01-20  Bruno Haible  <bruno@clisp.org>
5199
5200         mbfile, mbiter: Complete change from 2008-12-21.
5201         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
5202         * m4/mbiter.m4 (gl_MBITER): Likewise.
5203
5204 2011-01-20  Jim Meyering  <meyering@redhat.com>
5205
5206         init.sh: insert space between each function name and "()"
5207         * tests/init.sh: Make it a little easier to see that a function's
5208         name is "warn_", and not "warn" when looking at the first part of
5209         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
5210
5211 2011-01-20  Jim Meyering  <meyering@redhat.com>
5212
5213         mountlist: clean up code formatting
5214         * lib/mountlist.c (read_file_system_list): Split a long line,
5215         correct bracing style, use NULL in place of "(struct statfs *)0",
5216         don't parenthesize return value, add spaces around "=" and after
5217         ";-in-for-stmt".
5218
5219 2011-01-14  Markus Duft <mduft@gentoo.org>
5220
5221         mountlist: add support for Interix
5222         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
5223         Apply statvfs to all entries of /dev/fs.
5224         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
5225         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
5226
5227 2011-01-20  Jim Meyering  <meyering@redhat.com>
5228
5229         maint.mk: improve the public-submodule-commit rule
5230         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
5231         to suppress printing of its commands... unless V=1.
5232         Add git submodule's --quiet option to suppress printing of e.g.,
5233         "Entering gnulib" output.
5234         "cd" into $(srcdir) before running git submodule.
5235
5236 2011-01-20  Bruno Haible  <bruno@clisp.org>
5237
5238         include_next: Fix bug introduced on 2011-01-18.
5239         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
5240         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
5241         ac_cv_header_... variable if the second argument is not 'check'.
5242         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
5243         gl_NEXT_HEADERS_INTERNAL.
5244
5245 2011-01-20  Bruno Haible  <bruno@clisp.org>
5246
5247         Allow the user to avoid the GNULIB_TEST_* macros.
5248         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
5249         Suggested by Paul Eggert.
5250
5251 2011-01-14  Jim Meyering  <meyering@redhat.com>
5252
5253         bootstrap: avoid failure when there is no .gitmodules file
5254         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
5255         has been assigned to, even when its value is the empty string.
5256         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
5257         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
5258         Reported by John W. Eaton <jwe@gnu.org>.
5259
5260 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
5261
5262         assume <ctype.h>, ..., <time.h> exist
5263         For years gnulib has been assuming the existence of the headers
5264         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
5265         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
5266         them, since they don't appear to be needed.
5267         * README (Portability guidelines): Document this.
5268         * lib/flock.c: Assume <fcntl.h> exists.
5269         * lib/regex_internal.h: Assume <locale.h> exists.
5270         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
5271         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
5272         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
5273         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
5274         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
5275         * m4/regex.m4 (gl_REGEX): Likewise.
5276         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
5277         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
5278         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
5279         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
5280         * tests/test-argp.c: Likewise.
5281         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
5282
5283         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
5284         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
5285         AA_APPLE_UNIVERSAL_BUILD.  See
5286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
5287         * NEWS: Document this.
5288
5289 2011-01-19  Eric Blake  <eblake@redhat.com>
5290
5291         c-stack: assume stack overflow if SA_SIGINFO unsupported
5292         * lib/c-stack.c (SIGACTION_WORKS): Rename...
5293         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
5294         sigaction will work.
5295         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
5296         behavior match Linux.
5297         * tests/test-c-stack.c (main): Prefer NULL for pointers.
5298
5299         stdbool-tests: accomodate Haiku
5300         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
5301
5302         binary-io: fix O_TEXT on Haiku
5303         * modules/binary-io (Depends-on): Add fcntl-h.
5304         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
5305         than blindly undefining O_TEXT.
5306         Reported by Scott McCreary.
5307
5308 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5309
5310         include_next: do not check for standard headers like stddef.h
5311
5312         I found this problem when modifying Emacs to use gnulib.
5313         I noticed that it added HAVE_STDDEF_H to config.h, even though
5314         gnulib always assumes <stddef.h> exists as per README and this
5315         symbol is unnecessary.
5316         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
5317         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
5318         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
5319         faster for headers like stddef.h that are known to exist.
5320         (gl_CHECK_NEXT_HEADERS): Use it.
5321         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
5322         rather than gl_CHECK_NEXT_HEADERS.
5323         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
5324         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
5325
5326 2011-01-18  Eric Blake  <eblake@redhat.com>
5327
5328         ansi-c++-opt: skip C++ dependency style if C++ is unused
5329         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
5330         tests when we know C++ compilation is not desired.
5331         Reported by Scott McCreary.
5332
5333 2011-01-18  Bruno Haible  <bruno@clisp.org>
5334
5335         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
5336         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
5337         (main): Perform test also when getrlimit and setrlimit don't exist or
5338         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
5339         limiting the address space size using setrlimit, compare the address
5340         space size before and after the the test.
5341         * tests/test-dprintf-posix2.c: Likewise.
5342         * tests/test-fprintf-posix3.sh: Update skip messages.
5343         * tests/test-dprintf-posix2.sh: Likewise.
5344         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
5345         * modules/dprintf-posix-tests (Depends-on): Likewise.
5346         Reported by Bruce Korb <bkorb@gnu.org> and
5347         Gary V. Vaughan <gary@gnu.org>.
5348
5349 2011-01-18  Bruno Haible  <bruno@clisp.org>
5350
5351         get-rusage-as: Improvement for Cygwin.
5352         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
5353         areas that are merely reserved.
5354
5355 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5356
5357         strftime: remove dependencies on multibyte modules
5358
5359         strftime depended on mbrlen, mbsinit, and wchar, but these modules
5360         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
5361         only if __osf__ is defined, and I suspect OSF doesn't need these
5362         other modules.  If my guess is wrong, we'll need to come up with a
5363         variant of strftime that doesn't need the multibyte modules.
5364
5365         I discovered this problem when attempting modify Emacs to use the
5366         strftime module.  With the previous gnulib, this caused Emacs to
5367         need 31 new files, ranging from lib/config.charset to
5368         m4/wint_t.m4.  This was overkill and I expect would be offputting
5369         to the Emacs maintainers.  After this change, only 6 new files are
5370         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
5371         stdbool.m4, and tm_gmtoff.m4.
5372
5373         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
5374         Suggested by Bruno Haible in
5375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
5376         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
5377         and do not check for wchar.h.
5378         * modules/strftime (Files): Remove m4/mbstate_t.m4.
5379         (Depends-on): Remove mbrlen, mbsinit, wchar.
5380
5381 2011-01-18  Bruno Haible  <bruno@clisp.org>
5382
5383         Tests for module 'get-rusage-as'.
5384         * modules/get-rusage-as-tests: New file.
5385         * tests/test-get-rusage-as.c: New file.
5386
5387         New module 'get-rusage-as'.
5388         * modules/get-rusage-as: New file.
5389         * lib/resource-ext.h: New file.
5390         * lib/get-rusage-as.c: New file.
5391
5392 2011-01-17  Eric Blake  <eblake@redhat.com>
5393
5394         sigaction: relax license from LGPLv3+ to LGPLv2+
5395         * modules/sigaction (License): Relax to LGPLv2+.
5396
5397 2011-01-14  Bruno Haible  <bruno@clisp.org>
5398
5399         filemode: Make function declarations usable in C++ mode.
5400         * lib/filemode.h: Enclose function declarations in extern "C" block.
5401         Reported by John W. Eaton <jwe@gnu.org>.
5402
5403 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
5404
5405         save-cwd: no longer include "xgetcwd.h"
5406         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
5407         This avoids a compilation failure in projects that use save-cwd
5408         without also using the xgetcwd module.
5409
5410 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5411
5412         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
5413         This is so that a program like Emacs, which needs only dtoastr,
5414         does not have to bother with distributing and compiling ftoastr
5415         and ldtoastr.
5416         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
5417         * modules/dtoastr, modules/ldtoastr: New files.
5418         * modules/ftoastr: Now works just for 'float'.
5419         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
5420         (Makefile.am): Remove ftoastr.h (not needed and no effect),
5421         dtoastr.c, ldtoastr.c.
5422
5423 2011-01-11  Jim Meyering  <meyering@redhat.com>
5424
5425         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
5426         There is no need to work around the lack of the fchdir function,
5427         since gnulib can now provide a replacement when required.
5428         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
5429         * modules/save-cwd (Depends-on): Add fchdir.
5430
5431 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5432
5433         openat, save-cwd: avoid xmalloc
5434
5435         This removes a direct (but undocumented) dependency of openat on
5436         xalloc, along with an indirect dependency via save-cwd.  It also
5437         removes a dependency of save-cwd on xgetcwd, and thereby
5438         indirectly on xalloc.  This change causes the openat substitute
5439         to fall back on save_cwd when memory is tight, and for save_cwd to
5440         fail instead of dying when memory is tight, but that's good enough.
5441         Problem and initial idea for fix reported by Bastien Roucaries in
5442         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
5443
5444         * lib/openat-proc.c: Include stdlib.h (for malloc), not
5445         xalloc.h (for xmalloc).
5446         (openat_proc_name): Use malloc, not xmalloc.
5447         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
5448         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
5449
5450         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
5451         This avoids heap allocation for file names whose lengths are in
5452         the range 512..1023, with the upper bound increasing to at most
5453         4031 depending on the platform's PATH_MAX.  (We do not want
5454         pathmax.h here as it might supply a non-constant PATH_MAX.)
5455         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
5456         Perhaps they should be moved to malloca.h?
5457         (OPENAT_BUFFER_SIZE): Use them.
5458
5459 2011-01-10  Bruno Haible  <bruno@clisp.org>
5460
5461         doc: Update users.txt.
5462         * users.txt: Add recutils.
5463
5464 2011-01-09  Karl Berry  <karl@gnu.org>
5465
5466         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
5467
5468         * doc/configmake.texi: New file.
5469         * doc/gnulib.texi: Include it.
5470         * modules/configmake: Move documentation from here.
5471
5472 2011-01-09  Bruno Haible  <bruno@clisp.org>
5473
5474         Update to Unicode 6.0.0.
5475         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
5476         (get_lbp): Update for Unicode 6.0.0.
5477         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
5478         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
5479         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
5480         U+11001, U+11038..U+11046. Remove U+06DE.
5481         (uc_width): Fix bounds of planes.
5482         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5483         lib/uniwidth/width.c.
5484         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
5485         trailing whitespace removed.
5486         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
5487         without comments, but with the original copyright notice.
5488         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
5489         * lib/unicase/ignorable.h: Likewise.
5490         * lib/unicase/tocasefold.h: Likewise.
5491         * lib/unicase/tolower.h: Likewise.
5492         * lib/unicase/totitle.h: Likewise.
5493         * lib/unicase/toupper.h: Likewise.
5494         * lib/unictype/bidi_of.h: Likewise.
5495         * lib/unictype/blocks.h: Likewise.
5496         * lib/unictype/categ_C.h: Likewise.
5497         * lib/unictype/categ_Cn.h: Likewise.
5498         * lib/unictype/categ_L.h: Likewise.
5499         * lib/unictype/categ_Ll.h: Likewise.
5500         * lib/unictype/categ_Lm.h: Likewise.
5501         * lib/unictype/categ_Lo.h: Likewise.
5502         * lib/unictype/categ_Lu.h: Likewise.
5503         * lib/unictype/categ_M.h: Likewise.
5504         * lib/unictype/categ_Mc.h: Likewise.
5505         * lib/unictype/categ_Me.h: Likewise.
5506         * lib/unictype/categ_Mn.h: Likewise.
5507         * lib/unictype/categ_N.h: Likewise.
5508         * lib/unictype/categ_Nd.h: Likewise.
5509         * lib/unictype/categ_No.h: Likewise.
5510         * lib/unictype/categ_P.h: Likewise.
5511         * lib/unictype/categ_Po.h: Likewise.
5512         * lib/unictype/categ_S.h: Likewise.
5513         * lib/unictype/categ_Sc.h: Likewise.
5514         * lib/unictype/categ_Sk.h: Likewise.
5515         * lib/unictype/categ_Sm.h: Likewise.
5516         * lib/unictype/categ_So.h: Likewise.
5517         * lib/unictype/categ_of.h: Likewise.
5518         * lib/unictype/combining.h: Likewise.
5519         * lib/unictype/ctype_alnum.h: Likewise.
5520         * lib/unictype/ctype_alpha.h: Likewise.
5521         * lib/unictype/ctype_graph.h: Likewise.
5522         * lib/unictype/ctype_lower.h: Likewise.
5523         * lib/unictype/ctype_print.h: Likewise.
5524         * lib/unictype/ctype_punct.h: Likewise.
5525         * lib/unictype/ctype_upper.h: Likewise.
5526         * lib/unictype/decdigit.h: Likewise.
5527         * lib/unictype/digit.h: Likewise.
5528         * lib/unictype/numeric.h: Likewise.
5529         * lib/unictype/pr_alphabetic.h: Likewise.
5530         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5531         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5532         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5533         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5534         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5535         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5536         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5537         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5538         * lib/unictype/pr_case_ignorable.h: Likewise.
5539         * lib/unictype/pr_cased.h: Likewise.
5540         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
5541         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
5542         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
5543         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
5544         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
5545         * lib/unictype/pr_combining.h: Likewise.
5546         * lib/unictype/pr_composite.h: Likewise.
5547         * lib/unictype/pr_currency_symbol.h: Likewise.
5548         * lib/unictype/pr_decimal_digit.h: Likewise.
5549         * lib/unictype/pr_deprecated.h: Likewise.
5550         * lib/unictype/pr_format_control.h: Likewise.
5551         * lib/unictype/pr_grapheme_base.h: Likewise.
5552         * lib/unictype/pr_grapheme_extend.h: Likewise.
5553         * lib/unictype/pr_grapheme_link.h: Likewise.
5554         * lib/unictype/pr_id_continue.h: Likewise.
5555         * lib/unictype/pr_id_start.h: Likewise.
5556         * lib/unictype/pr_ideographic.h: Likewise.
5557         * lib/unictype/pr_lowercase.h: Likewise.
5558         * lib/unictype/pr_math.h: Likewise.
5559         * lib/unictype/pr_numeric.h: Likewise.
5560         * lib/unictype/pr_other_alphabetic.h: Likewise.
5561         * lib/unictype/pr_other_id_continue.h: Likewise.
5562         * lib/unictype/pr_other_math.h: Likewise.
5563         * lib/unictype/pr_punctuation.h: Likewise.
5564         * lib/unictype/pr_sentence_terminal.h: Likewise.
5565         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5566         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5567         * lib/unictype/pr_unified_ideograph.h: Likewise.
5568         * lib/unictype/pr_uppercase.h: Likewise.
5569         * lib/unictype/pr_xid_continue.h: Likewise.
5570         * lib/unictype/pr_xid_start.h: Likewise.
5571         * lib/unictype/scripts.h: Likewise.
5572         * lib/unictype/scripts_byname.gperf: Likewise.
5573         * lib/unictype/sy_java_ident.h: Likewise.
5574         * lib/unigbrk/gbrkprop.h: Likewise.
5575         * lib/unilbrk/lbrkprop1.h: Likewise.
5576         * lib/unilbrk/lbrkprop2.h: Likewise.
5577         * lib/uninorm/decomposition-table2.h: Likewise.
5578         * lib/uniwbrk/wbrkprop.h: Likewise.
5579         * tests/unicase/test-cased.c: Likewise.
5580         * tests/unicase/test-ignorable.c: Likewise.
5581         * tests/unicase/test-uc_tolower.c: Likewise.
5582         * tests/unicase/test-uc_totitle.c: Likewise.
5583         * tests/unicase/test-uc_toupper.c: Likewise.
5584         * tests/unictype/test-categ_C.c: Likewise.
5585         * tests/unictype/test-categ_Cn.c: Likewise.
5586         * tests/unictype/test-categ_L.c: Likewise.
5587         * tests/unictype/test-categ_Ll.c: Likewise.
5588         * tests/unictype/test-categ_Lm.c: Likewise.
5589         * tests/unictype/test-categ_Lo.c: Likewise.
5590         * tests/unictype/test-categ_Lu.c: Likewise.
5591         * tests/unictype/test-categ_M.c: Likewise.
5592         * tests/unictype/test-categ_Mc.c: Likewise.
5593         * tests/unictype/test-categ_Me.c: Likewise.
5594         * tests/unictype/test-categ_Mn.c: Likewise.
5595         * tests/unictype/test-categ_N.c: Likewise.
5596         * tests/unictype/test-categ_Nd.c: Likewise.
5597         * tests/unictype/test-categ_No.c: Likewise.
5598         * tests/unictype/test-categ_P.c: Likewise.
5599         * tests/unictype/test-categ_Po.c: Likewise.
5600         * tests/unictype/test-categ_S.c: Likewise.
5601         * tests/unictype/test-categ_Sc.c: Likewise.
5602         * tests/unictype/test-categ_Sk.c: Likewise.
5603         * tests/unictype/test-categ_Sm.c: Likewise.
5604         * tests/unictype/test-categ_So.c: Likewise.
5605         * tests/unictype/test-ctype_alnum.c: Likewise.
5606         * tests/unictype/test-ctype_alpha.c: Likewise.
5607         * tests/unictype/test-ctype_graph.c: Likewise.
5608         * tests/unictype/test-ctype_lower.c: Likewise.
5609         * tests/unictype/test-ctype_print.c: Likewise.
5610         * tests/unictype/test-ctype_punct.c: Likewise.
5611         * tests/unictype/test-ctype_upper.c: Likewise.
5612         * tests/unictype/test-decdigit.h: Likewise.
5613         * tests/unictype/test-digit.h: Likewise.
5614         * tests/unictype/test-numeric.h: Likewise.
5615         * tests/unictype/test-pr_alphabetic.c: Likewise.
5616         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5617         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
5618         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
5619         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5620         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5621         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5622         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5623         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5624         * tests/unictype/test-pr_case_ignorable.c: Likewise.
5625         * tests/unictype/test-pr_cased.c: Likewise.
5626         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
5627         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
5628         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
5629         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
5630         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
5631         * tests/unictype/test-pr_combining.c: Likewise.
5632         * tests/unictype/test-pr_composite.c: Likewise.
5633         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5634         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5635         * tests/unictype/test-pr_deprecated.c: Likewise.
5636         * tests/unictype/test-pr_format_control.c: Likewise.
5637         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5638         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5639         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5640         * tests/unictype/test-pr_id_continue.c: Likewise.
5641         * tests/unictype/test-pr_id_start.c: Likewise.
5642         * tests/unictype/test-pr_ideographic.c: Likewise.
5643         * tests/unictype/test-pr_lowercase.c: Likewise.
5644         * tests/unictype/test-pr_math.c: Likewise.
5645         * tests/unictype/test-pr_numeric.c: Likewise.
5646         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5647         * tests/unictype/test-pr_other_id_continue.c: Likewise.
5648         * tests/unictype/test-pr_other_math.c: Likewise.
5649         * tests/unictype/test-pr_punctuation.c: Likewise.
5650         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5651         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5652         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5653         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5654         * tests/unictype/test-pr_uppercase.c: Likewise.
5655         * tests/unictype/test-pr_xid_continue.c: Likewise.
5656         * tests/unictype/test-pr_xid_start.c: Likewise.
5657         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5658         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5659         changes.
5660         * lib/unictype/categ_Cc.h: Likewise.
5661         * lib/unictype/categ_Cf.h: Likewise.
5662         * lib/unictype/categ_Co.h: Likewise.
5663         * lib/unictype/categ_Cs.h: Likewise.
5664         * lib/unictype/categ_Lt.h: Likewise.
5665         * lib/unictype/categ_Nl.h: Likewise.
5666         * lib/unictype/categ_Pc.h: Likewise.
5667         * lib/unictype/categ_Pd.h: Likewise.
5668         * lib/unictype/categ_Pe.h: Likewise.
5669         * lib/unictype/categ_Pf.h: Likewise.
5670         * lib/unictype/categ_Pi.h: Likewise.
5671         * lib/unictype/categ_Ps.h: Likewise.
5672         * lib/unictype/categ_Z.h: Likewise.
5673         * lib/unictype/categ_Zl.h: Likewise.
5674         * lib/unictype/categ_Zp.h: Likewise.
5675         * lib/unictype/categ_Zs.h: Likewise.
5676         * lib/unictype/ctype_blank.h: Likewise.
5677         * lib/unictype/ctype_cntrl.h: Likewise.
5678         * lib/unictype/ctype_digit.h: Likewise.
5679         * lib/unictype/ctype_space.h: Likewise.
5680         * lib/unictype/ctype_xdigit.h: Likewise.
5681         * lib/unictype/mirror.h: Likewise.
5682         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5683         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5684         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5685         * lib/unictype/pr_bidi_control.h: Likewise.
5686         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5687         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5688         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5689         * lib/unictype/pr_bidi_pdf.h: Likewise.
5690         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5691         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5692         * lib/unictype/pr_dash.h: Likewise.
5693         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5694         * lib/unictype/pr_diacritic.h: Likewise.
5695         * lib/unictype/pr_extender.h: Likewise.
5696         * lib/unictype/pr_hex_digit.h: Likewise.
5697         * lib/unictype/pr_hyphen.h: Likewise.
5698         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5699         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5700         * lib/unictype/pr_ignorable_control.h: Likewise.
5701         * lib/unictype/pr_iso_control.h: Likewise.
5702         * lib/unictype/pr_join_control.h: Likewise.
5703         * lib/unictype/pr_left_of_pair.h: Likewise.
5704         * lib/unictype/pr_line_separator.h: Likewise.
5705         * lib/unictype/pr_logical_order_exception.h: Likewise.
5706         * lib/unictype/pr_non_break.h: Likewise.
5707         * lib/unictype/pr_not_a_character.h: Likewise.
5708         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5709         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5710         * lib/unictype/pr_other_id_start.h: Likewise.
5711         * lib/unictype/pr_other_lowercase.h: Likewise.
5712         * lib/unictype/pr_other_uppercase.h: Likewise.
5713         * lib/unictype/pr_paired_punctuation.h: Likewise.
5714         * lib/unictype/pr_paragraph_separator.h: Likewise.
5715         * lib/unictype/pr_pattern_syntax.h: Likewise.
5716         * lib/unictype/pr_pattern_white_space.h: Likewise.
5717         * lib/unictype/pr_private_use.h: Likewise.
5718         * lib/unictype/pr_quotation_mark.h: Likewise.
5719         * lib/unictype/pr_radical.h: Likewise.
5720         * lib/unictype/pr_soft_dotted.h: Likewise.
5721         * lib/unictype/pr_space.h: Likewise.
5722         * lib/unictype/pr_titlecase.h: Likewise.
5723         * lib/unictype/pr_variation_selector.h: Likewise.
5724         * lib/unictype/pr_white_space.h: Likewise.
5725         * lib/unictype/pr_zero_width.h: Likewise.
5726         * lib/unictype/sy_c_ident.h: Likewise.
5727         * lib/unictype/sy_c_whitespace.h: Likewise.
5728         * lib/unictype/sy_java_whitespace.h: Likewise.
5729         * lib/uninorm/composition-table.gperf: Likewise.
5730         * lib/uninorm/decomposition-table1.h: Likewise.
5731         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
5732         LB8.
5733         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5734         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5735         * modules/unictype/*: Bump version number of expected libunistring
5736         version.
5737
5738 2011-01-09  Bruno Haible  <bruno@clisp.org>
5739
5740         Update to Unicode 5.2.0.
5741         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
5742         trailing whitespace removed.
5743
5744 2011-01-09  Bruno Haible  <bruno@clisp.org>
5745
5746         New Unicode character properties, from Unicode 5.2.0.
5747         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
5748         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
5749         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
5750         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
5751         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
5752         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
5753         uc_is_property_cased, uc_is_property_case_ignorable,
5754         uc_is_property_changes_when_lowercased,
5755         uc_is_property_changes_when_uppercased,
5756         uc_is_property_changes_when_titlecased,
5757         uc_is_property_changes_when_casefolded,
5758         uc_is_property_changes_when_casemapped): New declarations.
5759         * lib/unictype/pr_byname.gperf: Add the new properties.
5760         * modules/unictype/property-byname (Depends-on): Depend on the new
5761         properties modules.
5762         * modules/unictype/property-all (Depends-on): Likewise.
5763         * MODULES.html.sh (Unicode string functions): Add
5764         unictype/property-case-ignorable, unictype/property-cased,
5765         unictype/property-changes-when-casefolded,
5766         unictype/property-changes-when-casemapped,
5767         unictype/property-changes-when-lowercased,
5768         unictype/property-changes-when-titlecased,
5769         unictype/property-changes-when-uppercased.
5770
5771         New module 'unictype/property-changes-when-casemapped'.
5772         * modules/unictype/property-changes-when-casemapped: New file.
5773         * lib/unictype/pr_changes_when_casemapped.c: New file.
5774         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
5775         generated by gen-uni-tables.
5776         * modules/unictype/property-changes-when-casemapped-tests: New file.
5777         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
5778         automatically generated by gen-uni-tables.
5779
5780         New module 'unictype/property-changes-when-casefolded'.
5781         * modules/unictype/property-changes-when-casefolded: New file.
5782         * lib/unictype/pr_changes_when_casefolded.c: New file.
5783         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
5784         generated by gen-uni-tables.
5785         * modules/unictype/property-changes-when-casefolded-tests: New file.
5786         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
5787         automatically generated by gen-uni-tables.
5788
5789         New module 'unictype/property-changes-when-titlecased'.
5790         * modules/unictype/property-changes-when-titlecased: New file.
5791         * lib/unictype/pr_changes_when_titlecased.c: New file.
5792         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
5793         generated by gen-uni-tables.
5794         * modules/unictype/property-changes-when-titlecased-tests: New file.
5795         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
5796         automatically generated by gen-uni-tables.
5797
5798         New module 'unictype/property-changes-when-uppercased'.
5799         * modules/unictype/property-changes-when-uppercased: New file.
5800         * lib/unictype/pr_changes_when_uppercased.c: New file.
5801         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
5802         generated by gen-uni-tables.
5803         * modules/unictype/property-changes-when-uppercased-tests: New file.
5804         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
5805         automatically generated by gen-uni-tables.
5806
5807         New module 'unictype/property-changes-when-lowercased'.
5808         * modules/unictype/property-changes-when-lowercased: New file.
5809         * lib/unictype/pr_changes_when_lowercased.c: New file.
5810         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
5811         generated by gen-uni-tables.
5812         * modules/unictype/property-changes-when-lowercased-tests: New file.
5813         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
5814         automatically generated by gen-uni-tables.
5815
5816         New module 'unictype/property-case-ignorable'.
5817         * modules/unictype/property-case-ignorable: New file.
5818         * lib/unictype/pr_case_ignorable.c: New file.
5819         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
5820         by gen-uni-tables.
5821         * modules/unictype/property-case-ignorable-tests: New file.
5822         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
5823         generated by gen-uni-tables.
5824
5825         New module 'unictype/property-cased'.
5826         * modules/unictype/property-cased: New file.
5827         * lib/unictype/pr_cased.c: New file.
5828         * lib/unictype/pr_cased.h: New file, automatically generated by
5829         gen-uni-tables.
5830         * modules/unictype/property-cased-tests: New file.
5831         * tests/unictype/test-pr_cased.c: New file, automatically generated by
5832         gen-uni-tables.
5833
5834 2011-01-09  Bruno Haible  <bruno@clisp.org>
5835
5836         Update to Unicode 5.2.0.
5837         * lib/gen-uni-tables.c (output_predicate, output_category,
5838         output_combclass, output_bidi_category, output_decimal_digit_test,
5839         output_decimal_digit, output_digit_test, output_digit,
5840         output_numeric_test, output_numeric, output_mirror, output_scripts,
5841         output_scripts_byname, output_blocks, output_ident_category): Fix
5842         comment header.
5843         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
5844         get_wbp.
5845         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
5846         items.
5847         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
5848         Changes_When_Lowercased, Changes_When_Uppercased,
5849         Changes_When_Titlecased, Changes_When_Casefolded,
5850         Changes_When_Casemapped.
5851         (is_property_alphabetic, is_property_default_ignorable_code_point):
5852         Update for Unicode 5.2.0.
5853         (is_property_cased, is_property_case_ignorable,
5854         is_property_changes_when_lowercased,
5855         is_property_changes_when_uppercased,
5856         is_property_changes_when_titlecased,
5857         is_property_changes_when_casefolded,
5858         is_property_changes_when_casemapped): New functions.
5859         (output_properties): Output also the properties cased, case_ignorable,
5860         changes_when_lowercased, changes_when_uppercased,
5861         changes_when_titlecased, changes_when_casefolded,
5862         changes_when_casemapped.
5863         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
5864         Unicode TR#11 revision 17 -> 19.
5865         (LBP_CP): New enumeration value.
5866         (LBP_*): Adjust values accordingly.
5867         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5868         TR#14 revision 22 -> 24.
5869         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
5870         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
5871         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5872         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
5873         is_WBP_MIDLETTER.
5874         (output_composition_tables): Allow for 24 bits instead of 16 bits in
5875         the code1 and code2 of each composition rule.
5876         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
5877         * lib/unicase/ignorable.h: Likewise.
5878         * lib/unicase/tocasefold.h: Likewise.
5879         * lib/unicase/tolower.h: Likewise.
5880         * lib/unicase/totitle.h: Likewise.
5881         * lib/unicase/toupper.h: Likewise.
5882         * lib/unictype/bidi_of.h: Likewise.
5883         * lib/unictype/blocks.h: Likewise.
5884         * lib/unictype/categ_C.h: Likewise.
5885         * lib/unictype/categ_Cf.h: Likewise.
5886         * lib/unictype/categ_Cn.h: Likewise.
5887         * lib/unictype/categ_L.h: Likewise.
5888         * lib/unictype/categ_Ll.h: Likewise.
5889         * lib/unictype/categ_Lm.h: Likewise.
5890         * lib/unictype/categ_Lo.h: Likewise.
5891         * lib/unictype/categ_Lu.h: Likewise.
5892         * lib/unictype/categ_M.h: Likewise.
5893         * lib/unictype/categ_Mc.h: Likewise.
5894         * lib/unictype/categ_Mn.h: Likewise.
5895         * lib/unictype/categ_N.h: Likewise.
5896         * lib/unictype/categ_Nd.h: Likewise.
5897         * lib/unictype/categ_Nl.h: Likewise.
5898         * lib/unictype/categ_No.h: Likewise.
5899         * lib/unictype/categ_P.h: Likewise.
5900         * lib/unictype/categ_Pd.h: Likewise.
5901         * lib/unictype/categ_Po.h: Likewise.
5902         * lib/unictype/categ_S.h: Likewise.
5903         * lib/unictype/categ_Sc.h: Likewise.
5904         * lib/unictype/categ_So.h: Likewise.
5905         * lib/unictype/categ_of.h: Likewise.
5906         * lib/unictype/combining.h: Likewise.
5907         * lib/unictype/ctype_alnum.h: Likewise.
5908         * lib/unictype/ctype_alpha.h: Likewise.
5909         * lib/unictype/ctype_graph.h: Likewise.
5910         * lib/unictype/ctype_lower.h: Likewise.
5911         * lib/unictype/ctype_print.h: Likewise.
5912         * lib/unictype/ctype_punct.h: Likewise.
5913         * lib/unictype/ctype_upper.h: Likewise.
5914         * lib/unictype/decdigit.h: Likewise.
5915         * lib/unictype/digit.h: Likewise.
5916         * lib/unictype/numeric.h: Likewise.
5917         * lib/unictype/pr_alphabetic.h: Likewise.
5918         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5919         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5920         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5921         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5922         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5923         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5924         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5925         * lib/unictype/pr_combining.h: Likewise.
5926         * lib/unictype/pr_composite.h: Likewise.
5927         * lib/unictype/pr_currency_symbol.h: Likewise.
5928         * lib/unictype/pr_dash.h: Likewise.
5929         * lib/unictype/pr_decimal_digit.h: Likewise.
5930         * lib/unictype/pr_deprecated.h: Likewise.
5931         * lib/unictype/pr_diacritic.h: Likewise.
5932         * lib/unictype/pr_extender.h: Likewise.
5933         * lib/unictype/pr_grapheme_base.h: Likewise.
5934         * lib/unictype/pr_grapheme_extend.h: Likewise.
5935         * lib/unictype/pr_grapheme_link.h: Likewise.
5936         * lib/unictype/pr_id_continue.h: Likewise.
5937         * lib/unictype/pr_id_start.h: Likewise.
5938         * lib/unictype/pr_ideographic.h: Likewise.
5939         * lib/unictype/pr_ignorable_control.h: Likewise.
5940         * lib/unictype/pr_logical_order_exception.h: Likewise.
5941         * lib/unictype/pr_lowercase.h: Likewise.
5942         * lib/unictype/pr_numeric.h: Likewise.
5943         * lib/unictype/pr_other_alphabetic.h: Likewise.
5944         * lib/unictype/pr_punctuation.h: Likewise.
5945         * lib/unictype/pr_sentence_terminal.h: Likewise.
5946         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5947         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5948         * lib/unictype/pr_unified_ideograph.h: Likewise.
5949         * lib/unictype/pr_uppercase.h: Likewise.
5950         * lib/unictype/pr_xid_continue.h: Likewise.
5951         * lib/unictype/pr_xid_start.h: Likewise.
5952         * lib/unictype/pr_zero_width.h: Likewise.
5953         * lib/unictype/scripts.h: Likewise.
5954         * lib/unictype/scripts_byname.gperf: Likewise.
5955         * lib/unictype/sy_java_ident.h: Likewise.
5956         * lib/unigbrk/gbrkprop.h: Likewise.
5957         * lib/unilbrk/lbrkprop1.h: Likewise.
5958         * lib/unilbrk/lbrkprop2.h: Likewise.
5959         * lib/unilbrk/lbrktables.h: Likewise.
5960         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
5961         LBP_CP. Implement rule LB30.
5962         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
5963         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
5964         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
5965         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
5966         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
5967         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
5968         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
5969         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
5970         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
5971         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
5972         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
5973         bits instead of 16 bits in the code1 and code2 of each composition
5974         rule.
5975         (uc_composition): Update for Unicode 5.2.0.
5976         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
5977         * lib/uninorm/decomposition-table2.h: Likewise.
5978         * lib/uniwbrk/wbrkprop.h: Likewise.
5979         * tests/unicase/test-cased.c: Likewise.
5980         * tests/unicase/test-ignorable.c: Likewise.
5981         * tests/unicase/test-uc_tolower.c: Likewise.
5982         * tests/unicase/test-uc_totitle.c: Likewise.
5983         * tests/unicase/test-uc_toupper.c: Likewise.
5984         * tests/unictype/test-categ_C.c: Likewise.
5985         * tests/unictype/test-categ_Cf.c: Likewise.
5986         * tests/unictype/test-categ_Cn.c: Likewise.
5987         * tests/unictype/test-categ_L.c: Likewise.
5988         * tests/unictype/test-categ_Ll.c: Likewise.
5989         * tests/unictype/test-categ_Lm.c: Likewise.
5990         * tests/unictype/test-categ_Lo.c: Likewise.
5991         * tests/unictype/test-categ_Lu.c: Likewise.
5992         * tests/unictype/test-categ_M.c: Likewise.
5993         * tests/unictype/test-categ_Mc.c: Likewise.
5994         * tests/unictype/test-categ_Mn.c: Likewise.
5995         * tests/unictype/test-categ_N.c: Likewise.
5996         * tests/unictype/test-categ_Nd.c: Likewise.
5997         * tests/unictype/test-categ_Nl.c: Likewise.
5998         * tests/unictype/test-categ_No.c: Likewise.
5999         * tests/unictype/test-categ_P.c: Likewise.
6000         * tests/unictype/test-categ_Pd.c: Likewise.
6001         * tests/unictype/test-categ_Po.c: Likewise.
6002         * tests/unictype/test-categ_S.c: Likewise.
6003         * tests/unictype/test-categ_Sc.c: Likewise.
6004         * tests/unictype/test-categ_So.c: Likewise.
6005         * tests/unictype/test-ctype_alnum.c: Likewise.
6006         * tests/unictype/test-ctype_alpha.c: Likewise.
6007         * tests/unictype/test-ctype_graph.c: Likewise.
6008         * tests/unictype/test-ctype_lower.c: Likewise.
6009         * tests/unictype/test-ctype_print.c: Likewise.
6010         * tests/unictype/test-ctype_punct.c: Likewise.
6011         * tests/unictype/test-ctype_upper.c: Likewise.
6012         * tests/unictype/test-decdigit.h: Likewise.
6013         * tests/unictype/test-digit.h: Likewise.
6014         * tests/unictype/test-numeric.h: Likewise.
6015         * tests/unictype/test-pr_alphabetic.c: Likewise.
6016         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6017         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6018         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6019         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6020         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6021         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6022         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6023         * tests/unictype/test-pr_combining.c: Likewise.
6024         * tests/unictype/test-pr_composite.c: Likewise.
6025         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6026         * tests/unictype/test-pr_dash.c: Likewise.
6027         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6028         * tests/unictype/test-pr_deprecated.c: Likewise.
6029         * tests/unictype/test-pr_diacritic.c: Likewise.
6030         * tests/unictype/test-pr_extender.c: Likewise.
6031         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6032         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6033         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6034         * tests/unictype/test-pr_id_continue.c: Likewise.
6035         * tests/unictype/test-pr_id_start.c: Likewise.
6036         * tests/unictype/test-pr_ideographic.c: Likewise.
6037         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6038         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6039         * tests/unictype/test-pr_lowercase.c: Likewise.
6040         * tests/unictype/test-pr_numeric.c: Likewise.
6041         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6042         * tests/unictype/test-pr_punctuation.c: Likewise.
6043         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6044         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6045         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6046         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6047         * tests/unictype/test-pr_uppercase.c: Likewise.
6048         * tests/unictype/test-pr_xid_continue.c: Likewise.
6049         * tests/unictype/test-pr_xid_start.c: Likewise.
6050         * tests/unictype/test-pr_zero_width.c: Likewise.
6051         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6052         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
6053         changed behaviour: line breaking is now disallowed between a letter
6054         or '=' and '('.
6055         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6056         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6057         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
6058         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
6059         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6060         lib/uniwidth/width.c.
6061         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
6062         without comments, but with the original copyright notice.
6063         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6064         changes.
6065         * lib/unictype/categ_Cc.h: Likewise.
6066         * lib/unictype/categ_Co.h: Likewise.
6067         * lib/unictype/categ_Cs.h: Likewise.
6068         * lib/unictype/categ_Lt.h: Likewise.
6069         * lib/unictype/categ_Me.h: Likewise.
6070         * lib/unictype/categ_Pc.h: Likewise.
6071         * lib/unictype/categ_Pe.h: Likewise.
6072         * lib/unictype/categ_Pf.h: Likewise.
6073         * lib/unictype/categ_Pi.h: Likewise.
6074         * lib/unictype/categ_Ps.h: Likewise.
6075         * lib/unictype/categ_Sk.h: Likewise.
6076         * lib/unictype/categ_Sm.h: Likewise.
6077         * lib/unictype/categ_Z.h: Likewise.
6078         * lib/unictype/categ_Zl.h: Likewise.
6079         * lib/unictype/categ_Zp.h: Likewise.
6080         * lib/unictype/categ_Zs.h: Likewise.
6081         * lib/unictype/ctype_blank.h: Likewise.
6082         * lib/unictype/ctype_cntrl.h: Likewise.
6083         * lib/unictype/ctype_digit.h: Likewise.
6084         * lib/unictype/ctype_space.h: Likewise.
6085         * lib/unictype/ctype_xdigit.h: Likewise.
6086         * lib/unictype/mirror.h: Likewise.
6087         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6088         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6089         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6090         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6091         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6092         * lib/unictype/pr_bidi_control.h: Likewise.
6093         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6094         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6095         * lib/unictype/pr_bidi_pdf.h: Likewise.
6096         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6097         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6098         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6099         * lib/unictype/pr_format_control.h: Likewise.
6100         * lib/unictype/pr_hex_digit.h: Likewise.
6101         * lib/unictype/pr_hyphen.h: Likewise.
6102         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6103         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6104         * lib/unictype/pr_iso_control.h: Likewise.
6105         * lib/unictype/pr_join_control.h: Likewise.
6106         * lib/unictype/pr_left_of_pair.h: Likewise.
6107         * lib/unictype/pr_line_separator.h: Likewise.
6108         * lib/unictype/pr_math.h: Likewise.
6109         * lib/unictype/pr_non_break.h: Likewise.
6110         * lib/unictype/pr_not_a_character.h: Likewise.
6111         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6112         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6113         * lib/unictype/pr_other_id_continue.h: Likewise.
6114         * lib/unictype/pr_other_id_start.h: Likewise.
6115         * lib/unictype/pr_other_lowercase.h: Likewise.
6116         * lib/unictype/pr_other_math.h: Likewise.
6117         * lib/unictype/pr_other_uppercase.h: Likewise.
6118         * lib/unictype/pr_paired_punctuation.h: Likewise.
6119         * lib/unictype/pr_paragraph_separator.h: Likewise.
6120         * lib/unictype/pr_pattern_syntax.h: Likewise.
6121         * lib/unictype/pr_pattern_white_space.h: Likewise.
6122         * lib/unictype/pr_private_use.h: Likewise.
6123         * lib/unictype/pr_quotation_mark.h: Likewise.
6124         * lib/unictype/pr_radical.h: Likewise.
6125         * lib/unictype/pr_soft_dotted.h: Likewise.
6126         * lib/unictype/pr_space.h: Likewise.
6127         * lib/unictype/pr_titlecase.h: Likewise.
6128         * lib/unictype/pr_variation_selector.h: Likewise.
6129         * lib/unictype/pr_white_space.h: Likewise.
6130         * lib/unictype/sy_c_ident.h: Likewise.
6131         * lib/unictype/sy_c_whitespace.h: Likewise.
6132         * lib/unictype/sy_java_whitespace.h: Likewise.
6133         * modules/uni*/*: Bump version number of expected libunistring version.
6134         Reported by Simon Josefsson.
6135
6136 2011-01-09  Karl Heuer  <kwzh@gnu.org>
6137
6138         useless-if-before-free: fix typo in --help and make the internal,
6139         automatic version date update process work once again.
6140         --help output contained a NUL character instead of the
6141         backslash-zero that was intended.  Also, the "must lie within
6142         the first 8 lines" line is on line 9, and hence not getting
6143         automatically updated.
6144         * build-aux/useless-if-before-free: Fix the former by adding a
6145         backslash, and the latter by condensing the three lines of what-it-does
6146         to a single line, leaving one line of slack for the future.
6147
6148 2011-01-09  Bruno Haible  <bruno@clisp.org>
6149
6150         uniwidth/width: Fix width of U+1D173..U+1D17A.
6151         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
6152         symbolic_width, output_width_property_test): New functions.
6153         (main): Invoke output_nonspacing_property, output_width_property_test.
6154         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
6155         U+1D173..U+1D17A.
6156         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
6157         1.
6158         * modules/uniwidth/*: Bump version number of expected libunistring
6159         version.
6160         * modules/unilbrk/*: Likewise.
6161
6162 2011-01-08  Bruno Haible  <bruno@clisp.org>
6163
6164         uninorm tests: Preserve copyright of Unicode data file.
6165         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
6166         Mention modifications.
6167
6168 2011-01-08  Bruno Haible  <bruno@clisp.org>
6169
6170         gen-uni-tables: Prepare for Unicode 5.2.0.
6171         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
6172         (debug_output_lbp, output_lbp): Update.
6173
6174 2011-01-08  Bruno Haible  <bruno@clisp.org>
6175
6176         unilbrk: Clarify gen-uni-tables.c code.
6177         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
6178         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
6179         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
6180
6181 2011-01-07  Bruno Haible  <bruno@clisp.org>
6182
6183         strtod: Restore errno when successfully parsing Infinity or NaN.
6184         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
6185         restore the original errno.
6186
6187 2011-01-07  Bruno Haible  <bruno@clisp.org>
6188
6189         remove test: Avoid failure on HP-UX 11.
6190         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
6191
6192 2011-01-07  Bruno Haible  <bruno@clisp.org>
6193
6194         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
6195         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
6196         error code.
6197
6198 2011-01-07  Pádraig Brady <P@draigBrady.com>
6199
6200         ignore-value: fixup comments, and add Eric Blake
6201         as an author since he rewrote the macros.
6202         * lib/ignore-value.h (ignore_value):  State that
6203         we now support aggregates.  Also specify exactly
6204         when the GCC warn_unused_result feature was added.
6205
6206 2011-01-06  Eric Blake  <eblake@redhat.com>
6207
6208         ignore-value: support aggregate types
6209         * lib/ignore-value.h (ignore_value): Provide separate gcc
6210         definition.
6211         * modules/ignore-value-tests: New test module.
6212         * tests/test-ignore-value.c: New test.
6213
6214         maint.mk: improve sc_prohibit_strcmp regex
6215         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
6216         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
6217         definition of STRNEQ.
6218
6219         signal: work around Haiku issue with SIGBUS
6220         * lib/siglist.h: Add comment.
6221         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
6222         strsignal's favoring of SIGSEGV.
6223         * tests/test-signal.c (main): Avoid test failure.
6224         * doc/posix-headers/signal.texi (signal.h): Document the issue.
6225         Reported by Scott McCreary.
6226
6227         maint.mk: add pre-release check to ensure submodule commits are public
6228         * top/maint.mk (public-submodule-commit): New rule.
6229         (submodule-checks): New variable.
6230         (alpha beta stable): Depend on the variable.
6231
6232 2011-01-05  Pádraig Brady <P@draigBrady.com>
6233         and Jim Meyering  <meyering@redhat.com>
6234
6235         ignore-value: make ignore_value more generic; deprecate ignore_ptr
6236         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
6237         (ATTRIBUTE_DEPRECATED): Define.
6238         (_ignore_case): New function.
6239         (ignore_value): New macro, to replace the old function.
6240         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
6241         * modules/ignore-value (Depends-on): Add stdint.
6242
6243 2011-01-04  Eric Blake  <eblake@redhat.com>
6244
6245         doc: regenerate INSTALL
6246         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
6247         @firstparagraphindent support, now that autoconf dropped it.
6248         (INSTALL_PRELUDE): Reinstate old macro.
6249         * doc/install.texi: Resync from autoconf.
6250         * doc/INSTALL: Reflect recent autoconf update.
6251         * doc/INSTALL.ISO: Likewise.
6252         * doc/INSTALL.UTF-8: Likewise.
6253         Reported by Karl Berry.
6254
6255 2011-01-04  Bruce Korb  <address@hidden>
6256
6257         git-version-gen: avoid a sub-shell
6258         * build-aux/git-version-gen: Redirect stderr in `...` via
6259         "exec 2>...", rather than via an added sub-shell.
6260
6261 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
6262
6263         git-version-gen: use (...) rather than sh -c '...'
6264         * build-aux/git-version-gen: Rather than hard-coding a shell's name
6265         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
6266
6267 2011-01-03  Jim Meyering  <meyering@redhat.com>
6268
6269         git-version-gen: convert leading TABs to spaces
6270         * build-aux/git-version-gen: Expand leading TABs.
6271
6272         git-version-gen: handle failed "git rev-list"
6273         * build-aux/git-version-gen: Rather than leaking a "fatal" error
6274         from git and proceeding as if it had succeeded but printed no SHA1
6275         checksums, suppress the diagnostic and handle the failure.
6276         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
6277
6278         git-version-gen: include command name in one more diagnostic
6279         * build-aux/git-version-gen: When the required .tarball-version file
6280         was missing or unreadable, you might see the diagnostic from "cat",
6281         but no trace of the name of the invoking script.  Now, you still see
6282         the diagnostic from cat, but also get one from "git-version-gen: ".
6283         Inspired by a patch from Bruce Korb.
6284
6285         update-copyright: adjust test to match changed code
6286         * tests/test-update-copyright.sh: Change test's expected output
6287         to match new actual output.
6288
6289 2011-01-02  Bruno Haible  <bruno@clisp.org>
6290
6291         getlogin_r: Avoid test failure on HP-UX 11.
6292         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
6293         ERANGE when the second argument is zero.
6294         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
6295         portability problem.
6296
6297 2011-01-02  Bruce Korb  <bkorb@gnu.org>
6298
6299         * build-aux/update-copyright: doc Simon's changes
6300
6301 2011-01-02  Simon Josefsson  <simon@josefsson.org>
6302
6303         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
6304         environment variable.
6305
6306 2011-01-02  Bruno Haible  <bruno@clisp.org>
6307
6308         unigbrk: Avoid gcc warnings.
6309         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
6310         unused variable.
6311         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
6312         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
6313         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
6314         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
6315         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
6316         Change type of first argument to 'const char *'.
6317         (main): Remove unused variable.
6318         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
6319         type of first argument to 'const char *'.
6320         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
6321         Likewise.
6322         (main): Change type of variable 's'.
6323         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
6324         to 'int'.
6325
6326 2011-01-02  Bruno Haible  <bruno@clisp.org>
6327
6328         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
6329         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
6330         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
6331         bug.
6332         * lib/pwrite.c: Undo 2010-12-31 patch.
6333         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
6334
6335 2011-01-02  Bruno Haible  <bruno@clisp.org>
6336
6337         pread: Fix test whether it works.
6338         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
6339
6340 2011-01-02  Bruno Haible  <bruno@clisp.org>
6341
6342         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
6343         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
6344         ends in "6". Don't require a specific month name. Try also the locale
6345         names found on HP-UX 11 and Solaris 7.
6346
6347 2011-01-02  Bruno Haible  <bruno@clisp.org>
6348
6349         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
6350         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
6351         C linkage.
6352         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
6353
6354 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6355
6356         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
6357         for consistency, since the "cluster" term is not used elsewhere.
6358         * lib/unigbrk.in.h: Update name.
6359         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
6360         * lib/unigbrk/u16-grapheme-next.c: Update name.
6361         * lib/unigbrk/u16-grapheme-prev.c: Update name.
6362         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
6363         * lib/unigbrk/u32-grapheme-next.c: Update name.
6364         * lib/unigbrk/u32-grapheme-prev.c: Update name.
6365         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
6366         * lib/unigbrk/u8-grapheme-next.c: Update name.
6367         * lib/unigbrk/u8-grapheme-prev.c: Update name.
6368         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
6369         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
6370         Suggested by Bruno Haible.
6371
6372 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6373
6374         Remove module 'u8-grapheme-len' as too redundant with
6375         'u8-grapheme-next'.
6376         * modules/unigbrk/u8-grapheme-len: Delete file.
6377         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
6378         * lib/unigbrk.in.h: Remove prototype for deleted function.
6379         * lib/unigbrk/u8-grapheme-len.c: Delete file.
6380         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
6381
6382         Remove module 'u16-grapheme-len' as too redundant with
6383         'u16-grapheme-next'.
6384         * modules/unigbrk/u16-grapheme-len: Delete file.
6385         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
6386         * lib/unigbrk.in.h: Remove prototype for deleted function.
6387         * lib/unigbrk/u16-grapheme-len.c: Delete file.
6388         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
6389
6390         Remove module 'u32-grapheme-len' as too redundant with
6391         'u32-grapheme-next'.
6392         * modules/unigbrk/u32-grapheme-len: Delete file.
6393         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
6394         * lib/unigbrk.in.h: Remove prototype for deleted function.
6395         * lib/unigbrk/u32-grapheme-len.c: Delete file.
6396         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
6397
6398         Suggested by Bruno Haible.
6399
6400 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6401
6402         * unigbrk.in.h: Fix typo: "ben" => "been".
6403         Reported by Bruno Haible.
6404
6405 2011-01-01  Jim Meyering  <meyering@redhat.com>
6406
6407         maint: update almost all copyright ranges to include 2011
6408         Run the new "make update-copyright" rule.
6409
6410 2011-01-01  Jim Meyering  <meyering@redhat.com>
6411
6412         maint: update-copyright: exempt doc/INSTALL*
6413         * Makefile (update-copyright): Also exclude doc/INSTALL*,
6414         since they are generated.  Suggested by Bruno Haible.
6415
6416 2011-01-01  Jim Meyering  <meyering@redhat.com>
6417
6418         maint: refine the update-copyright rule
6419         * Makefile (update-copyright): Also exclude any file that includes
6420         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
6421         code that merely generates the comment.
6422
6423 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6424
6425         New module 'u8-grapheme-len'.
6426         * modules/unigbrk/u8-grapheme-len: New file.
6427         * modules/unigbrk/u8-grapheme-len-tests: New file.
6428         * lib/unigbrk.in.h: Add prototype for new function.
6429         * lib/unigbrk/u8-grapheme-len.c: New file.
6430         * tests/unigbrk/test-u8-grapheme-len.c: New file.
6431
6432         New module 'u16-grapheme-len'.
6433         * modules/unigbrk/u16-grapheme-len: New file.
6434         * modules/unigbrk/u16-grapheme-len-tests: New file.
6435         * lib/unigbrk.in.h: Add prototype for new function.
6436         * lib/unigbrk/u16-grapheme-len.c: New file.
6437         * tests/unigbrk/test-u16-grapheme-len.c: New file.
6438
6439         New module 'u32-grapheme-len'.
6440         * modules/unigbrk/u32-grapheme-len: New file.
6441         * modules/unigbrk/u32-grapheme-len-tests: New file.
6442         * lib/unigbrk.in.h: Add prototype for new function.
6443         * lib/unigbrk/u32-grapheme-len.c: New file.
6444         * tests/unigbrk/test-u32-grapheme-len.c: New file.
6445
6446         New module 'u8-grapheme-next'.
6447         * modules/unigbrk/u8-grapheme-next: New file.
6448         * modules/unigbrk/u8-grapheme-next-tests: New file.
6449         * lib/unigbrk.in.h: Add prototype for new function.
6450         * lib/unigbrk/u8-grapheme-next.c: New file.
6451         * tests/unigbrk/test-u8-grapheme-next.c: New file.
6452
6453         New module 'u16-grapheme-next'.
6454         * modules/unigbrk/u16-grapheme-next: New file.
6455         * modules/unigbrk/u16-grapheme-next-tests: New file.
6456         * lib/unigbrk.in.h: Add prototype for new function.
6457         * lib/unigbrk/u16-grapheme-next.c: New file.
6458         * tests/unigbrk/test-u16-grapheme-next.c: New file.
6459
6460         New module 'u32-grapheme-next'.
6461         * modules/unigbrk/u32-grapheme-next: New file.
6462         * modules/unigbrk/u32-grapheme-next-tests: New file.
6463         * lib/unigbrk.in.h: Add prototype for new function.
6464         * lib/unigbrk/u32-grapheme-next.c: New file.
6465         * tests/unigbrk/test-u32-grapheme-next.c: New file.
6466
6467         New module 'u8-grapheme-prev'.
6468         * modules/unigbrk/u8-grapheme-prev: New file.
6469         * modules/unigbrk/u8-grapheme-prev-tests: New file.
6470         * lib/unigbrk.in.h: Add prototype for new function.
6471         * lib/unigbrk/u8-grapheme-prev.c: New file.
6472         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
6473
6474         New module 'u16-grapheme-prev'.
6475         * modules/unigbrk/u16-grapheme-prev: New file.
6476         * modules/unigbrk/u16-grapheme-prev-tests: New file.
6477         * lib/unigbrk.in.h: Add prototype for new function.
6478         * lib/unigbrk/u16-grapheme-prev.c: New file.
6479         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
6480
6481         New module 'u32-grapheme-prev'.
6482         * modules/unigbrk/u32-grapheme-prev: New file.
6483         * modules/unigbrk/u32-grapheme-prev-tests: New file.
6484         * lib/unigbrk.in.h: Add prototype for new function.
6485         * lib/unigbrk/u32-grapheme-prev.c: New file.
6486         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
6487
6488         New module 'u8-grapheme-breaks'.
6489         * modules/unigbrk/u8-grapheme-breaks: New file.
6490         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
6491         * lib/unigbrk.in.h: Add prototype for new function.
6492         * lib/unigbrk/u8-grapheme-breaks.c: New file.
6493         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
6494
6495         New module 'u16-grapheme-breaks'.
6496         * modules/unigbrk/u16-grapheme-breaks: New file.
6497         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
6498         * lib/unigbrk.in.h: Add prototype for new function.
6499         * lib/unigbrk/u16-grapheme-breaks.c: New file.
6500         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
6501
6502         New module 'u32-grapheme-breaks'.
6503         * modules/unigbrk/u32-grapheme-breaks: New file.
6504         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
6505         * lib/unigbrk.in.h: Add prototype for new function.
6506         * lib/unigbrk/u32-grapheme-breaks.c: New file.
6507         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
6508
6509         New module 'ulc-grapheme-breaks'.
6510         * modules/unigbrk/ulc-grapheme-breaks: New file.
6511         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
6512         * m4/locale-ar.m4: New file.
6513         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
6514         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
6515         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
6516
6517 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6518
6519         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
6520         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
6521         modified how this file was generated before I initially submitted
6522         the module, but failed to regenerate it.  This meant that several
6523         of the level2 entries were wrong.
6524         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
6525         Remove the division-by-2 that is folded into the table now that
6526         gbrkprop.h has been regenerated properly.  Now -1 entries are
6527         handled correctly.
6528
6529         New module 'unigbrk/uc-gbrk-prop-tests'.
6530         * modules/unigbrk/uc-gbrk-prop-tests: New file.
6531         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
6532         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
6533         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
6534
6535 2011-01-01  Bruno Haible  <bruno@clisp.org>
6536
6537         Avoid use of hexadecimal escapes.
6538         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
6539         instead of hexadecimal escapes.
6540
6541 2011-01-01  Jim Meyering  <meyering@redhat.com>
6542
6543         maint: new rule to update copyright year ranges
6544         * Makefile (update-copyright): New rule.
6545
6546         maint: indent with TABs in Makefile
6547         * Makefile: Expand leading sequences of spaces to TABs
6548
6549         version-etc: update the copyright year it reports
6550         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
6551
6552 2010-12-31  Bruno Haible  <bruno@clisp.org>
6553
6554         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
6555         * lib/isfinite.c (zerof, zerod, zerol): New variables.
6556         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
6557         zero.
6558
6559 2010-12-31  Bruno Haible  <bruno@clisp.org>
6560
6561         pwrite: Work around HP-UX 11.11 bug.
6562         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
6563         works and set REPLACE_PWRITE if not.
6564         * lib/pwrite.c (pwrite): Add an implementation that uses the system
6565         function.
6566         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
6567
6568 2010-12-31  Bruno Haible  <bruno@clisp.org>
6569
6570         pread: Work around HP-UX 11 bugs.
6571         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
6572         and set REPLACE_PREAD if not.
6573         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
6574
6575 2010-12-31  Eric Blake  <eblake@redhat.com>
6576
6577         nl_langinfo: fix YESEXPR on Irix 6.5
6578         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
6579         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
6580         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
6581         it.
6582
6583 2010-12-31  Bruno Haible  <bruno@clisp.org>
6584
6585         iconv: Document HP-UX 11 bug.
6586         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
6587
6588 2010-12-31  Bruno Haible  <bruno@clisp.org>
6589
6590         ldexpl: Fix link error on HP-UX 11.
6591         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
6592         LDEXPL_LIBM, using $ISNANL_LIBM.
6593
6594 2010-12-31  Eric Blake  <eblake@redhat.com>
6595
6596         ftello: avoid compilation failure with SunStudio c89
6597         * lib/ftello.c (ftello): Use lseek, not llseek.
6598
6599         tests: avoid failing coreutils tests on cygwin
6600         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
6601         (create_exe_shims_): Return 0 when skipping.
6602
6603 2010-12-31  Bruno Haible  <bruno@clisp.org>
6604
6605         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
6606         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
6607
6608 2010-12-31  Bruno Haible  <bruno@clisp.org>
6609
6610         waitpid: Fix link error in C++ mode.
6611         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
6612
6613 2010-12-31  Bruno Haible  <bruno@clisp.org>
6614
6615         isnan: Use GCC built-ins when possible.
6616         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
6617         __builtin_isnan.
6618         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
6619         (isnan): Define using GCC built-ins for GCC >= 4.0.
6620
6621 2010-12-31  Bruno Haible  <bruno@clisp.org>
6622
6623         isnand: Fix mistake.
6624         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
6625         __builtin_isnand.
6626
6627 2010-12-31  Bruno Haible  <bruno@clisp.org>
6628
6629         open: Avoid C++ error on HP-UX 11.
6630         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
6631
6632 2010-12-31  Bruno Haible  <bruno@clisp.org>
6633
6634         time_r: Add missing declarations on HP-UX 11.
6635         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
6636         instead of HAVE_LOCALTIME_R.
6637         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
6638         HAVE_LOCALTIME_R always.
6639         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
6640         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
6641         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
6642         HAVE_LOCALTIME_R.
6643         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
6644         * doc/posix-functions/localtime_r.texi: Likewise.
6645
6646 2010-12-29  Eric Blake  <eblake@redhat.com>
6647
6648         mountlist: tweak previous commit
6649         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
6650         Reported by Paul Eggert.
6651
6652         mountlist: fix local drive detection on cygwin
6653         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
6654         that works for cygwin.
6655
6656 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6657
6658         ftoastr, snprintf: ftoastr + snprintf module
6659         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
6660         since the snprintf module now should be good enough here.
6661         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
6662         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
6663         and gl_MODULE_INDICATOR([snprintf]), but the former enables
6664         GNULIB_SNPRINTF only for the test directory, and the latter
6665         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
6666         seems to suffice by itself.
6667
6668 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
6669
6670         alloca: one step towards thread-safety
6671         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
6672         need for a static variable.  All callers changed.  This does not
6673         make the alloca replacement thread-safe, but it's one step.
6674
6675         tests: minor indenting change
6676         * tests/init.sh: Sync from coreutils housekeeping patch
6677         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
6678         to keep lines within 80 columns.
6679
6680 2010-12-28  Jim Meyering  <meyering@redhat.com>
6681
6682         regex: don't infloop on persistent failing calloc
6683         * lib/regexec.c (build_trtable): Return failure indication upon
6684         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
6685         In glibc, this was fixed for version 2.13:
6686         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
6687
6688 2010-12-28  Bruno Haible  <bruno@clisp.org>
6689             Paul Eggert <eggert@cs.ucla.edu>
6690
6691         linkat: Make implementation robust against system behaviour variations.
6692         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
6693         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
6694         way, and to -2 if it needs a generic runtime test.
6695         * lib/linkat.c (solaris_optimized_link_immediate,
6696         solaris_optimized_link_follow): New functions.
6697         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
6698         (check_same_link): Use it.
6699
6700 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
6701
6702         New module 'unigbrk/base'.
6703         * modules/unigbrk/base: New file.
6704         * lib/unigbrk.in.h: New file.
6705
6706         New module 'unigbrk/uc-gbrk-prop'.
6707         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
6708         * modules/unigbrk/uc-gbrk-prop: New file.
6709         * lib/unigbrk/gbrkprop.h: New file.
6710         * lib/unigbrk/uc-gbrk-prop.c: New file.
6711
6712         New module 'unigbrk/uc-is-grapheme-break'.
6713         * modules/unigbrk/uc-is-grapheme-break: New file.
6714         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
6715         * lib/unigbrk/uc-is-grapheme-break.c: New file.
6716         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
6717         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
6718         * tests/unigbrk/GraphemeBreakTest.txt: New file.
6719
6720         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
6721
6722 2010-12-27  Bruno Haible  <bruno@clisp.org>
6723
6724         linkat test: Avoid failure on Solaris 11 2010-11.
6725         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
6726
6727 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6728
6729         utimens: work around glibc rounding bug on more platforms
6730         * lib/utimens.c (fdutimens): Work around rounding bug even if
6731         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
6732         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
6733
6734 2010-12-27  Bruno Haible  <bruno@clisp.org>
6735
6736         select tests: Improve comments.
6737         * tests/test-select.c (do_select): Add comments.
6738
6739 2010-12-27  Bruno Haible  <bruno@clisp.org>
6740
6741         select tests: Safer way of handling timeout.
6742         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
6743         at every invocation.
6744
6745 2010-12-27  Bruno Haible  <bruno@clisp.org>
6746
6747         select tests: Use 'bool' where appropriate.
6748         * tests/test-select.c (connect_to_socket): Change argument type to
6749         'bool'.
6750
6751 2010-12-27  Bruno Haible  <bruno@clisp.org>
6752
6753         select tests: Use existing modules.
6754         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
6755         (configure.ac): Don't test for unistd.h.
6756         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
6757         declared in <unistd.h>.
6758
6759 2010-12-27  Bruno Haible  <bruno@clisp.org>
6760
6761         mbrtowc: Work around a Solaris 7 bug.
6762         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
6763         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
6764         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
6765         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
6766         MBRTOWC_NULL_ARG1_BUG.
6767         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
6768         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
6769         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
6770         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
6771
6772 2010-12-27  Jim Meyering  <meyering@redhat.com>
6773
6774         read-file.c: tweak syntax
6775         * lib/read-file.c (fread_file): Remove space after "*" in function
6776         definitions.
6777
6778 2010-12-27  Bruno Haible  <bruno@clisp.org>
6779
6780         times test: Avoid gcc warnings on OSF/1.
6781         * tests/test-times.c (main): Cast printf arguments from clock_t to
6782         'long int'.
6783
6784 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6785
6786         utimens: work around glibc rounding bug on older Linux kernels
6787         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
6788         on Linux with a glibc whose utimes might not work, then work
6789         around a longstanding glibc bug involving rounding rather than
6790         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
6791         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6792
6793 2010-12-26  Bruno Haible  <bruno@clisp.org>
6794
6795         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
6796         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
6797         _GL_CXXALIAS_SYS.
6798         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6799
6800 2010-12-26  Bruno Haible  <bruno@clisp.org>
6801
6802         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
6803         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
6804         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6805         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
6806         looking for the declaration.
6807         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6808         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
6809         problem.
6810         * doc/posix-functions/inet_pton.texi: Likewise.
6811
6812 2010-12-26  Bruno Haible  <bruno@clisp.org>
6813
6814         arpa_inet: Use the common idioms with C++ support.
6815         * lib/arpa_inet.in.h: Include c++defs.h.
6816         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
6817         support.
6818         * modules/arpa_inet (Depends-on): Add c++defs.
6819         (Makefile.am): Substitute the contents of c++defs.h.
6820         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
6821         * modules/arpa_inet-c++-tests: New file.
6822         * tests/test-arpa_inet-c++.cc: New file.
6823
6824 2010-12-25  Bruno Haible  <bruno@clisp.org>
6825
6826         Fix more C++ link errors on Solaris 8.
6827         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
6828         $(LIB_EACCESS).
6829         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
6830         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
6831         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
6832         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
6833         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
6834
6835 2010-12-25  Bruno Haible  <bruno@clisp.org>
6836
6837         printf-posix: Fix link error when a non-GCC compiler is used.
6838         * lib/stdio.in.h (printf): When not using GCC, override printf
6839         correctly.
6840         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6841
6842 2010-12-25  Bruno Haible  <bruno@clisp.org>
6843
6844         strerror_r-posix: Update doc.
6845         * doc/posix-functions/strerror_r.texi: Update doc about the return
6846         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
6847
6848 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6849
6850         utimens: simplify the logic of the previous change
6851         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
6852         This should not affect whether the test succeeds or fails.
6853
6854         utimens: configure better on hosts with NFS clock skew
6855         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
6856         uses the clock of the local host.  It might use the clock of the
6857         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
6858         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6859
6860 2010-12-25  Bruno Haible  <bruno@clisp.org>
6861
6862         ptsname test: Avoid failure on Solaris.
6863         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
6864         open a pseudo-terminal; don't use BSD-style ptys.
6865         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
6866
6867 2010-12-25  Bruno Haible  <bruno@clisp.org>
6868
6869         ptsname: Avoid ERANGE failure on some systems.
6870         * lib/ptsname.c (buffer): Increase size.
6871
6872 2010-12-25  Bruno Haible  <bruno@clisp.org>
6873
6874         rename, renameat: Avoid test failures at NFS mounted locations.
6875         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
6876         so that subsequent mkdir calls succeed.
6877
6878 2010-12-25  Bruno Haible  <bruno@clisp.org>
6879
6880         iswblank: Fix C++ link error on Solaris 8.
6881         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
6882         _GL_FUNCDECL_SYS.
6883
6884 2010-12-25  Bruno Haible  <bruno@clisp.org>
6885
6886         unistd: Fix C++ link error on Solaris 8.
6887         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
6888
6889 2010-12-25  Bruno Haible  <bruno@clisp.org>
6890
6891         readlink doc: Mention an old glibc bug.
6892         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
6893
6894 2010-12-25  Bruno Haible  <bruno@clisp.org>
6895
6896         fcntl-h: Fix for use of C++ on glibc systems.
6897         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6898         also on glibc systems in C++ mode.
6899         Reported by Gary V. Vaughan <gary@gnu.org>.
6900
6901 2010-12-25  Bruno Haible  <bruno@clisp.org>
6902
6903         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6904         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
6905
6906 2010-12-25  Bruno Haible  <bruno@clisp.org>
6907
6908         truncl-ieee: Make it work on OSF/1 5.1 with cc.
6909         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
6910         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
6911         test whether truncl works according to ISO C 99 with IEC 60559.
6912         * m4/truncl-ieee.m4: New file.
6913         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
6914         m4/signbit.m4.
6915         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
6916
6917 2010-12-25  Bruno Haible  <bruno@clisp.org>
6918
6919         ceill-ieee: Make it work on OSF/1 5.1 with cc.
6920         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
6921         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6922         test whether ceill works according to ISO C 99 with IEC 60559.
6923         * m4/ceill-ieee.m4: New file.
6924         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
6925         m4/signbit.m4.
6926         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
6927
6928 2010-12-25  Bruno Haible  <bruno@clisp.org>
6929
6930         Ensure all prerequisites of <wchar.h> are included.
6931         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
6932         before <wchar.h>.
6933         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6934         gl_MBRLEN_NUL_RETVAL): Likewise.
6935         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6936         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
6937         AC_FUNC_MBRTOWC): Likewise.
6938         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6939         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6940         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6941         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6942         Likewise.
6943         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6944         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
6945         (gl_WCHAR_H): Improve comments.
6946         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6947
6948 2010-12-25  Bruno Haible  <bruno@clisp.org>
6949
6950         strtok_r: Fix C syntax error in autoconf macro.
6951         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
6952         characters in test program.
6953
6954 2010-12-24  Bruno Haible  <bruno@clisp.org>
6955
6956         ceil, trunc, round: Fix gcc warnings.
6957         * lib/ceil.c (MIN): Undefine before redefining.
6958         * lib/trunc.c (MIN): Likewise.
6959         * lib/round.c (MIN): Likewise.
6960         Include <math.h> first.
6961
6962 2010-12-24  Bruno Haible  <bruno@clisp.org>
6963
6964         select tests: Avoid failures on OSF/1 5.1.
6965         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
6966         failure of closing the last socket; it may fail with ECONNRESET.
6967
6968 2010-12-24  Eric Blake  <eblake@redhat.com>
6969
6970         stdint: avoid HP-UX 10.20 preprocessor bug
6971         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
6972         than #if.
6973         * tests/test-floor2.c (main): Likewise.
6974         Reported by Peter O'Gorman.
6975
6976         pipe: make obsoletion transition easier
6977         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
6978         * modules/pipe (Files): Include revived file.
6979         (Include): Drop reference, to mirror getdate's behavior.
6980
6981 2010-12-24  Bruno Haible  <bruno@clisp.org>
6982
6983         sys_socket: Hide mismatch of declarations on NonStop Kernel.
6984         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
6985         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6986         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6987
6988 2010-12-24  Bruno Haible  <bruno@clisp.org>
6989
6990         gethostname: Ensure declaration on NonStop Kernel.
6991         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
6992         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6993
6994 2010-12-24  Bruno Haible  <bruno@clisp.org>
6995
6996         sys_select: Ensure all necessary types on NonStop Kernel.
6997         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
6998         include <sys/time.h>.
6999         * doc/posix-headers/sys_select.texi: Mention that it's missing on
7000         NonStop Kernel.
7001         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7002
7003 2010-12-24  Bruno Haible  <bruno@clisp.org>
7004
7005         sys_select: Remove unneeded include.
7006         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
7007         have <sys/select.h>.
7008
7009 2010-12-24  Bruno Haible  <bruno@clisp.org>
7010
7011         gethostname: Provide a fallback for HOST_NAME_MAX.
7012         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
7013         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
7014         instead.
7015         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7016
7017 2010-12-24  Bruno Haible  <bruno@clisp.org>
7018
7019         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
7020         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
7021         (SA_RESTART): Likewise.
7022         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7023
7024 2010-12-24  Bruno Haible  <bruno@clisp.org>
7025
7026         signal: Define NSIG.
7027         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
7028         * tests/test-signal.c (nsig): New variable.
7029         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7030
7031 2010-12-24  Bruno Haible  <bruno@clisp.org>
7032
7033         rename, renameat: Avoid test failures on OSF/1 5.1.
7034         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
7035         alternative error codes.
7036         * tests/test-renameat.c (main): Likewise.
7037
7038 2010-12-24  Bruno Haible  <bruno@clisp.org>
7039
7040         *printf: Detect large precisions bug on Solaris 10/SPARC.
7041         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
7042         by Paul Eggert.
7043         * tests/test-snprintf-posix.h (test_function): Add this test code here
7044         too.
7045         * tests/test-sprintf-posix.h (test_function): Likewise.
7046         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7047         * tests/test-vasprintf-posix.c (test_function): Likewise.
7048         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
7049         around by gnulib.
7050         * doc/posix-functions/printf.texi: Likewise.
7051         * doc/posix-functions/snprintf.texi: Likewise.
7052         * doc/posix-functions/sprintf.texi: Likewise.
7053         * doc/posix-functions/vfprintf.texi: Likewise.
7054         * doc/posix-functions/vprintf.texi: Likewise.
7055         * doc/posix-functions/vsnprintf.texi: Likewise.
7056         * doc/posix-functions/vsprintf.texi: Likewise.
7057         * doc/posix-functions/dprintf.texi: Undo last commit.
7058         * doc/posix-functions/vdprintf.texi: Likewise.
7059
7060 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7061
7062         tests: port test-fdutimensat.c to Solaris 8
7063         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
7064         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
7065         On Solaris 8, it fails with errno == ENOSYS, because there is no
7066         futimens (so it can't use the fd), and there is no lutimens (so it
7067         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
7068
7069         vsnprintf: make more consistent with snprintf; doc fixes
7070
7071         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
7072         the byte count return problem was promoted from the snprintf-posix
7073         to the snprintf module.
7074         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7075         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
7076         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
7077         * tests/test-snprintf.c (main): Check the byte count returned.
7078         * tests/test-vsnprintf.c (main): Likewise.
7079
7080 2010-12-23  Eric Blake  <eblake@redhat.com>
7081
7082         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
7083         * modules/sigpipe (License): Relax license.
7084
7085 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7086
7087         doc: document Solaris printf bug with large float precisions
7088         * doc/posix-functions/dprintf.texi (dprintf):
7089         * doc/posix-functions/fprintf.texi (fprintf):
7090         * doc/posix-functions/printf.texi (printf):
7091         * doc/posix-functions/snprintf.texi (snprintf):
7092         * doc/posix-functions/sprintf.texi (sprintf):
7093         * doc/posix-functions/vdprintf.texi (vdprintf):
7094         * doc/posix-functions/vfprintf.texi (vfprintf):
7095         * doc/posix-functions/vprintf.texi (vprintf):
7096         * doc/posix-functions/vsnprintf.texi (vsnprintf):
7097         * doc/posix-functions/vsprintf.texi (vsprintf):
7098         Mention that these functions mishandle large floating point
7099         precisions on Solaris 10.  The same bug is also present in Solaris
7100         8, and I assume earlier.  This causes "cd gnulib-tests; make
7101         check" to fail on Solaris 8 (and I assume, later) when building
7102         the latest coreutils, in test-vasprintf-posix's call to
7103         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
7104         the wide flavors (e.g., wprintf) so this patch just updates the
7105         documentation for the narrow ones.
7106
7107         test-posixtm.c: add two tests
7108         * tests/test-posixtm.c: Add two tests, to highlight the
7109         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
7110         around this bug; this is merely to document it.
7111
7112 2010-12-22  Bruno Haible  <bruno@clisp.org>
7113
7114         getlogin_r: Work around portability problem on OSF/1.
7115         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
7116         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
7117         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
7118         test for a truncated result.
7119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
7120         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
7121         * modules/getlogin_r (Depends-on): Add memchr.
7122         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
7123
7124 2010-12-22  Bruno Haible  <bruno@clisp.org>
7125
7126         ptsname: Avoid test failure on OSF/1 5.1.
7127         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
7128         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
7129         (same_slave): New function.
7130         (main): Use it to compare ptsname's result with the expected file name.
7131
7132 2010-12-22  Bruno Haible  <bruno@clisp.org>
7133
7134         Port extended stdio modules to HP NonStop Kernel.
7135         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
7136         macros.
7137         * lib/fbufmode.c: Update comments.
7138         * lib/fflush.c: Likewise.
7139         * lib/fpurge.c: Likewise.
7140         * lib/freadable.c: Likewise.
7141         * lib/freadahead.c: Likewise.
7142         * lib/freading.c: Likewise.
7143         * lib/freadptr.c: Likewise.
7144         * lib/freadseek.c: Likewise.
7145         * lib/fseeko.c: Likewise.
7146         * lib/fseterr.c: Likewise.
7147         * lib/fwritable.c: Likewise.
7148         * lib/fwriting.c: Likewise.
7149         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7150
7151 2010-12-22  Bruno Haible  <bruno@clisp.org>
7152
7153         ttyname_r: Work around bug on OSF/1 5.1.
7154         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
7155         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
7156         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
7157         present.
7158         * lib/ttyname_r.c (ttyname_r): Update comments.
7159
7160 2010-12-22  Bruno Haible  <bruno@clisp.org>
7161
7162         round: Implement result sign according to IEEE 754.
7163         * lib/round.c (MIN, MINUS_ZERO): New macros.
7164         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
7165         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
7166         * tests/test-round-ieee.c (main): Likewise.
7167         * tests/test-roundl-ieee.c (main): Likewise.
7168
7169         trunc: Implement result sign according to IEEE 754.
7170         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
7171         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
7172         * tests/test-trunc2.c: Include minus-zero.h.
7173         (MINUS_ZERO): New macro.
7174         (trunc_reference): Keep in sync with lib/trunc.c.
7175         * tests/test-truncf2.c: Include minus-zero.h.
7176         (MINUS_ZERO): New macro.
7177         (truncf_reference): Keep in sync with lib/trunc.c.
7178         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
7179         * tests/test-trunc-ieee.c (main): Likewise.
7180         * tests/test-truncl-ieee.c (main): Likewise.
7181
7182         ceil: Implement result sign according to IEEE 754.
7183         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
7184         (FUNC): Return -0.0 for -1 < x < 0.
7185         * tests/test-ceil2.c: Include minus-zero.h.
7186         (MINUS_ZERO): New macro.
7187         (ceil_reference): Keep in sync with lib/ceil.c.
7188         * tests/test-ceilf2.c: Include minus-zero.h.
7189         (MINUS_ZERO): New macro.
7190         (ceilf_reference): Keep in sync with lib/ceil.c.
7191         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
7192         * tests/test-ceil-ieee.c (main): Likewise.
7193         * tests/test-ceill-ieee.c (main): Likewise.
7194
7195         floor: Implement result sign according to IEEE 754.
7196         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
7197         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
7198         * tests/test-floorf2.c (floorf_reference): Likewise.
7199         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
7200         * tests/test-floor-ieee.c (main): Likewise.
7201         * tests/test-floorl-ieee.c (main): Likewise.
7202
7203 2010-12-22  Bruno Haible  <bruno@clisp.org>
7204
7205         getaddrinfo: Update doc.
7206         * doc/posix-functions/gai_strerror.texi: Return type is also different
7207         on AIX and HP-UX.
7208
7209 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7210
7211         getaddrinfo, inet_ntop: Update doc for Solaris.
7212         * doc/posix-functions/gai_strerror.texi: Return type is also an
7213         issue on Solaris 9 and earlier.
7214         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
7215         on Solaris 10 and earlier.
7216
7217 2010-12-21  Bruno Haible  <bruno@clisp.org>
7218
7219         New module 'roundl-ieee'.
7220         * modules/roundl-ieee: New file.
7221         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
7222         test whether roundl works according to ISO C 99 with IEC 60559.
7223         * m4/roundl-ieee.m4: New file.
7224         * modules/roundl-ieee-tests: New file.
7225         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
7226         * tests/test-roundl.c (main): Remove signbit tests.
7227         * modules/roundl-tests (Depends-on): Remove signbit.
7228         * doc/posix-functions/roundl.texi: Mention the new module.
7229
7230 2010-12-21  Bruno Haible  <bruno@clisp.org>
7231
7232         New module 'truncl-ieee'.
7233         * modules/truncl-ieee: New file.
7234         * modules/truncl-ieee-tests: New file.
7235         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
7236         * tests/test-truncl.c (main): Remove signbit tests.
7237         * modules/truncl-tests (Depends-on): Remove signbit.
7238         * doc/posix-functions/truncl.texi: Mention the new module.
7239
7240 2010-12-21  Bruno Haible  <bruno@clisp.org>
7241
7242         New module 'ceill-ieee'.
7243         * modules/ceill-ieee: New file.
7244         * modules/ceill-ieee-tests: New file.
7245         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
7246         * tests/test-ceill.c (main): Remove signbit tests.
7247         * modules/ceill-tests (Depends-on): Remove signbit.
7248         * doc/posix-functions/ceill.texi: Mention the new module.
7249
7250 2010-12-21  Bruno Haible  <bruno@clisp.org>
7251
7252         New module 'floorl-ieee'.
7253         * modules/floorl-ieee: New file.
7254         * modules/floorl-ieee-tests: New file.
7255         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
7256         * tests/test-floorl.c (main): Remove signbit tests.
7257         * modules/floorl-tests (Depends-on): Remove signbit.
7258         * doc/posix-functions/floorl.texi: Mention the new module.
7259
7260 2010-12-21  Bruno Haible  <bruno@clisp.org>
7261
7262         New module 'round-ieee'.
7263         * modules/round-ieee: New file.
7264         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
7265         whether round works according to ISO C 99 with IEC 60559.
7266         * m4/round-ieee.m4: New file.
7267         * modules/round-ieee-tests: New file.
7268         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
7269         * tests/test-round1.c (main): Remove signbit tests.
7270         * modules/round-tests (Depends-on): Remove 'signbit'.
7271         * doc/posix-functions/round.texi: Mention the new module.
7272
7273 2010-12-21  Bruno Haible  <bruno@clisp.org>
7274
7275         New module 'trunc-ieee'.
7276         * modules/trunc-ieee: New file.
7277         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
7278         whether trunc works according to ISO C 99 with IEC 60559.
7279         * m4/trunc-ieee.m4: New file.
7280         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
7281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
7282         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
7283         * modules/trunc-ieee-tests: New file.
7284         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
7285         * tests/test-trunc1.c (main): Remove signbit tests.
7286         * modules/trunc-tests (Depends-on): Remove 'signbit'.
7287         * doc/posix-functions/trunc.texi: Mention the new module.
7288
7289 2010-12-21  Bruno Haible  <bruno@clisp.org>
7290
7291         New module 'ceil-ieee'.
7292         * modules/ceil-ieee: New file.
7293         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
7294         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
7295         ISO C 99 with IEC 60559.
7296         * m4/ceil-ieee.m4: New file.
7297         * modules/ceil (Files): Add lib/ceil.c.
7298         (Depends-on): Add 'float'.
7299         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7300         * lib/math.in.h (ceil): New declaration.
7301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
7302         REPLACE_CEIL.
7303         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
7304         * modules/ceil-ieee-tests: New file.
7305         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
7306         * tests/test-math-c++.cc: Check the signature of 'ceil'.
7307         * doc/posix-functions/ceil.texi: Mention the new module.
7308
7309 2010-12-21  Bruno Haible  <bruno@clisp.org>
7310
7311         New module 'floor-ieee'.
7312         * modules/floor-ieee: New file.
7313         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
7314         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
7315         ISO C 99 with IEC 60559.
7316         * m4/floor-ieee.m4: New file.
7317         * modules/floor (Files): Add lib/floor.c.
7318         (Depends-on): Add 'float'.
7319         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7320         * lib/math.in.h (floor): New declaration.
7321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
7322         REPLACE_FLOOR.
7323         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
7324         * modules/floor-ieee-tests: New file.
7325         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
7326         * tests/test-math-c++.cc: Check the signature of 'floor'.
7327         * doc/posix-functions/floor.texi: Mention the new module.
7328
7329 2010-12-21  Bruno Haible  <bruno@clisp.org>
7330
7331         New module 'roundf-ieee'.
7332         * modules/roundf-ieee: New file.
7333         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
7334         test whether roundf works according to ISO C 99 with IEC 60559.
7335         * m4/roundf-ieee.m4: New file.
7336         * modules/roundf-ieee-tests: New file.
7337         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
7338         * tests/test-roundf1.c (main): Remove signbit tests.
7339         * modules/roundf-tests (Depends-on): Remove 'signbit'.
7340         * doc/posix-functions/roundf.texi: Mention the new module.
7341
7342 2010-12-21  Bruno Haible  <bruno@clisp.org>
7343
7344         New module 'truncf-ieee'.
7345         * modules/truncf-ieee: New file.
7346         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
7347         test whether truncf works according to ISO C 99 with IEC 60559.
7348         * m4/truncf-ieee.m4: New file.
7349         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
7350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
7351         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
7352         * modules/truncf-ieee-tests: New file.
7353         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
7354         * tests/test-truncf1.c (main): Remove signbit tests.
7355         * modules/truncf-tests (Depends-on): Remove 'signbit'.
7356         * doc/posix-functions/truncf.texi: Mention the new module.
7357
7358 2010-12-21  Bruno Haible  <bruno@clisp.org>
7359
7360         New module 'ceilf-ieee'.
7361         * modules/ceilf-ieee: New file.
7362         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
7363         test whether ceilf works according to ISO C 99 with IEC 60559.
7364         * m4/ceilf-ieee.m4: New file.
7365         * modules/ceilf-ieee-tests: New file.
7366         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
7367         * tests/test-ceilf1.c (main): Remove signbit tests.
7368         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
7369         * doc/posix-functions/ceilf.texi: Mention the new module.
7370
7371 2010-12-21  Bruno Haible  <bruno@clisp.org>
7372
7373         New module 'floorf-ieee'.
7374         * modules/floorf-ieee: New file.
7375         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
7376         test whether floorf works according to ISO C 99 with IEC 60559.
7377         * m4/floorf-ieee.m4: New file.
7378         * modules/floorf-ieee-tests: New file.
7379         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
7380         * tests/test-floorf1.c (main): Remove signbit tests.
7381         * modules/floorf-tests (Depends-on): Remove 'signbit'.
7382         * doc/posix-functions/floorf.texi: Mention the new module.
7383
7384 2010-12-21  Bruno Haible  <bruno@clisp.org>
7385
7386         Support for minus zero in autoconf macros.
7387         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
7388         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
7389         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
7390         * tests/minus-zero.h: Update comments.
7391
7392 2010-12-21  Bruno Haible  <bruno@clisp.org>
7393
7394         Tests for module 'ceil'.
7395         * modules/ceil-tests: New file.
7396         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
7397         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
7398
7399 2010-12-21  Bruno Haible  <bruno@clisp.org>
7400
7401         Tests for module 'floor'.
7402         * modules/floor-tests: New file.
7403         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
7404         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
7405
7406 2010-12-21  Bruno Haible  <bruno@clisp.org>
7407
7408         math: Fix indentation.
7409         * lib/math.in.h (floorf): Fix indentation.
7410
7411 2010-12-21  Bruno Haible  <bruno@clisp.org>
7412
7413         Fix cross-compilation guesses on Solaris.
7414         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
7415         not match "solaris2.10".
7416         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7417         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
7418         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
7419
7420 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
7421
7422         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
7423         This fixes a problem observed with the latest coreutils snapshot
7424         that caused a test to fail on Solaris 8.  src/csplit.c's call
7425         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
7426         earlier, instead of returning the number of bytes that would have
7427         been generated; this causes csplit to incorrectly report memory
7428         exhaustion.
7429         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
7430         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
7431         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
7432         comments to match.
7433         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
7434         Fix typo in matching older versions of Solaris: "solaris2.10"
7435         is matched by the shell pattern "solaris2.[0-9]*".  This matters
7436         only for guessing while cross-compiling.
7437         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
7438
7439 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
7440
7441         ftoastr: fix comment again
7442         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7443         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
7444         Also, simplify example a bit by using flags = 0.
7445
7446 2010-12-20  Bruno Haible  <bruno@clisp.org>
7447
7448         round*, trunc*: Update documentation regarding glibc.
7449         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
7450         * doc/posix-functions/round.texi: Likewise.
7451         * doc/posix-functions/roundl.texi: Likewise.
7452         * doc/posix-functions/truncf.texi: Likewise.
7453         * doc/posix-functions/trunc.texi: Likewise.
7454         * doc/posix-functions/truncl.texi: Likewise.
7455
7456 2010-12-20  Bruno Haible  <bruno@clisp.org>
7457
7458         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
7459         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
7460         * doc/posix-functions/round.texi: Likewise.
7461         * doc/posix-functions/roundl.texi: Likewise.
7462
7463 2010-12-20  Bruno Haible  <bruno@clisp.org>
7464
7465         ttyname_r: Add missing declaration on HP-UX 11.
7466         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
7467         HAVE_TTYNAME_R.
7468         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
7469         declared. Set HAVE_TTYNAME_R always.
7470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7471         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
7472         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
7473         HAVE_TTYNAME_R.
7474         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
7475
7476 2010-12-20  Bruno Haible  <bruno@clisp.org>
7477
7478         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
7479         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
7480         * doc/posix-functions/getlogin_r.texi: Likewise.
7481         * tests/test-getlogin.c: Include <errno.h>.
7482         (main): Avoid test failure on HP-UX 11.11.
7483         * tests/test-getlogin_r.c (main): Likewise.
7484
7485 2010-12-20  Bruno Haible  <bruno@clisp.org>
7486
7487         getlogin_r: Add missing declaration on HP-UX 11.
7488         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
7489         declared also when it exists as a function.
7490         * doc/posix-functions/getlogin_r.texi: Document this workaround.
7491
7492 2010-12-20  Bruno Haible  <bruno@clisp.org>
7493
7494         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
7495         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
7496         through wcrtomb.
7497
7498 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7499
7500         ftoastr: fix comment
7501         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7502         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
7503
7504 2010-12-19  Bruno Haible  <bruno@clisp.org>
7505
7506         isnan: Ensure it is a macro.
7507         * lib/math.in.h (isnan): Define as a macro if not already a macro.
7508         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
7509         Solaris.
7510
7511 2010-12-19  Bruno Haible  <bruno@clisp.org>
7512
7513         ldexpl test: Fix link error on OSF/1 5.1.
7514         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
7515
7516 2010-12-19  Bruno Haible  <bruno@clisp.org>
7517
7518         wctype: Make it work in C++ mode on OSF/1 5.1.
7519         * lib/wctype.in.h (iswblank): Declare but not define here.
7520         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
7521         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
7522         * modules/wctype (Files): Add lib/iswblank.c.
7523
7524 2010-12-19  Bruno Haible  <bruno@clisp.org>
7525
7526         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
7527         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
7528         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
7529
7530 2010-12-19  Bruno Haible  <bruno@clisp.org>
7531
7532         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
7533         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
7534         _POSIX_PII_SOCKET.
7535         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
7536         * doc/posix-functions/recvfrom.texi: Likewise.
7537         * doc/posix-functions/send.texi: Likewise.
7538         * doc/posix-functions/sendto.texi: Likewise.
7539
7540 2010-12-19  Bruno Haible  <bruno@clisp.org>
7541
7542         tcgetsid: Add missing declaration on OSF/1 5.1.
7543         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
7544         HAVE_TCGETSID.
7545         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
7546         Don't set HAVE_TCGETSID.
7547         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
7548         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
7549         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
7550         HAVE_TCGETSID.
7551         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
7552
7553 2010-12-19  Bruno Haible  <bruno@clisp.org>
7554
7555         stdio: Fix problem with popen() declaration on OSF/1 5.1.
7556         * lib/stdio.in.h: During the include_next statement, let recursive
7557         includes of this file include only the system header file.
7558
7559 2010-12-19  Bruno Haible  <bruno@clisp.org>
7560
7561         iconv_open: Fix regression from 2010-12-04.
7562         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
7563         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
7564
7565 2010-12-19  Bruno Haible  <bruno@clisp.org>
7566
7567         stdbool test: Avoid a gcc warning.
7568         * tests/test-stdbool.c (main): Fail if e1 is false.
7569         Reported by Jim Meyering.
7570
7571 2010-12-19  Jim Meyering  <meyering@redhat.com>
7572
7573         setenv: restore to working order
7574         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
7575         mistakenly removed.
7576         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
7577         HAVE_SETENV.
7578         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
7579         HAVE_SETENV.
7580
7581 2010-12-19  Bruno Haible  <bruno@clisp.org>
7582
7583         Document some different function declarations on OSF/1 5.1.
7584         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
7585         * doc/posix-functions/inet_ntop.texi: Likewise.
7586         * doc/posix-functions/gethostname.texi: Likewise.
7587         * lib/unistd.in.h (gethostname): Update comment.
7588
7589 2010-12-19  Bruno Haible  <bruno@clisp.org>
7590
7591         doc: Mention vasprintf-posix module.
7592         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
7593         the 'vasprintf-posix' module.
7594         * doc/glibc-functions/vasprintf.texi: Likewise.
7595
7596 2010-12-19  Bruno Haible  <bruno@clisp.org>
7597
7598         unsetenv: Add missing declaration on OSF/1 5.1.
7599         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
7600         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
7601         Don't set HAVE_UNSETENV. In the test program, set _BSD.
7602         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
7603         not HAVE_UNSETENV.
7604         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
7605         HAVE_UNSETENV.
7606         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
7607
7608 2010-12-19  Bruno Haible  <bruno@clisp.org>
7609
7610         setenv: Add missing declaration on OSF/1 5.1.
7611         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
7612         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
7613         declared. Don't set HAVE_SETENV.
7614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
7615         not HAVE_SETENV.
7616         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
7617         HAVE_SETENV.
7618         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
7619
7620 2010-12-19  Bruno Haible  <bruno@clisp.org>
7621
7622         nl_langinfo tests: Avoid gcc warning.
7623         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
7624
7625 2010-12-19  Bruno Haible  <bruno@clisp.org>
7626
7627         mknod: Avoid error in C++ mode on OSF/1 with GCC.
7628         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
7629         _GL_CXXALIAS_SYS.
7630
7631 2010-12-19  Bruno Haible  <bruno@clisp.org>
7632
7633         stdbool: Relax test.
7634         * tests/test-stdbool.c (e): Don't require that casts from a variable's
7635         address to 'bool' work in static initializer, for compilers other than
7636         GCC.
7637
7638 2010-12-19  Bruno Haible  <bruno@clisp.org>
7639
7640         ftello: Add missing declaration on OSF/1 5.1.
7641         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
7642         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
7643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
7644         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
7645         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
7646
7647 2010-12-19  Bruno Haible  <bruno@clisp.org>
7648
7649         fseeko: Add missing declaration on OSF/1 5.1.
7650         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
7651         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
7652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
7653         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
7654         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
7655
7656 2010-12-19  Bruno Haible  <bruno@clisp.org>
7657
7658         fchdir: Add missing declaration on OSF/1 5.1.
7659         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
7660         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
7661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
7662         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
7663         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
7664
7665 2010-12-19  Bruno Haible  <bruno@clisp.org>
7666
7667         relocatable-prog-wrapper: Separate from relocatable-prog.
7668         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
7669         uninstall-relocwrapper rule here.
7670         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
7671         Reported by Ian Beckwith <ianb@erislabs.net>.
7672
7673 2010-12-19  Bruno Haible  <bruno@clisp.org>
7674
7675         unistr/u8-mbsnlen: Add missing dependency.
7676         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
7677         Reported by Ian Beckwith <ianb@erislabs.net>.
7678
7679 2010-12-19  Bruno Haible  <bruno@clisp.org>
7680
7681         iconv: Make it possible again to use this module without 'iconv-h'.
7682         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
7683         if it is not defined.
7684         Reported by Ian Beckwith <ianb@erislabs.net>.
7685
7686 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7687
7688         acl: port to Solaris 8 when copying from tmpfs to ufs
7689         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
7690         error number.  Problem observed on Solaris 8 with latest
7691         coreutils, with "mv A B", where A is on a tmpfs file system and B
7692         is on a ufs file system.  This caused coreutils' mv/part-symlink
7693         test to fail.
7694
7695         tests: set fail=0 at start
7696         * tests/init.sh (setup_): Move fail=0 initialization here ...
7697         (mktempd_): ... from here, so that tests can rely on fail being
7698         set to 0 initially.  This fixes a problem in coreutils; see:
7699         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
7700
7701 2010-12-18  Bruno Haible  <bruno@clisp.org>
7702
7703         memmem-simple: Stylistic changes.
7704         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
7705         Fix preprocessor directive indentation.
7706
7707 2010-12-15  Pádraig Brady <P@draigBrady.com>
7708
7709         memmem, memmem-simple: reorganize and expand empty needle check
7710         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
7711         functional checks to memmem-simple so that one has a fully functional
7712         memmem by using just this module.
7713         Restrict the performance only check to the memmem module.
7714         Also expand the empty needle check to ensure the correct
7715         pointer is returned, not just a non NULL pointer.
7716         * doc/glibc-functions/memmem.texi: Rearrange the portability
7717         documentation to correlate with the rearranged checks.
7718         Clarify exactly how the memmem and memmem-simple modules
7719         relate to each other.
7720
7721 2010-12-15  Pádraig Brady <P@draigBrady.com>
7722             Bruno Haible  <bruno@clisp.org>
7723
7724         Improve cross-compilation guesses for uClibc.
7725         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
7726         that uClibc does not have the glibc bug.
7727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
7728         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
7729
7730 2010-12-14  Eric Blake  <eblake@redhat.com>
7731
7732         configmake: provide fallbacks for oldest supported autotools
7733         * m4/configmake.m4: New file.
7734         * modules/configmake (Files): Ship it.
7735         (configure.ac): Use it to guarantee fallbacks.
7736
7737 2010-12-13  Pádraig Brady <P@draigBrady.com>
7738
7739         read-file: Improve handling of large files
7740         * lib/read-file.c (fread_file): Minimize realloc()s
7741         for regular files, and better manage sizes around SIZE_MAX.
7742
7743 2010-12-13  Eric Blake  <eblake@redhat.com>
7744
7745         cloexec, fcntl: relax license
7746         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
7747         consent from all contributors.
7748         * modules/fcntl (License): Likewise.
7749
7750 2010-12-10  Bruno Haible  <bruno@clisp.org>
7751
7752         Tests for module 'pipe-posix'.
7753         * modules/pipe-posix-tests: New file.
7754         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
7755
7756 2010-12-10  Bruno Haible  <bruno@clisp.org>
7757
7758         pipe-posix: Make it work in C++ mode.
7759         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
7760         (pipe): Use common idiom, not a macro definition.
7761         * lib/pipe.c: New file.
7762         * m4/pipe.m4: New file.
7763         * modules/pipe-posix (Description): Enhance.
7764         (Files): Add lib/pipe.c, m4/pipe.m4.
7765         (configure.ac): Invoke gl_FUNC_PIPE.
7766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
7767         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
7768         * tests/test-unistd-c++.cc: Check the signature of pipe.
7769
7770 2010-12-10  Bruno Haible  <bruno@clisp.org>
7771
7772         Rename module 'pipe' to 'spawn-pipe'.
7773         * modules/spawn-pipe: New file, renamed from modules/pipe.
7774         (Files, configure.ac, Makefile.am): Update.
7775         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
7776         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
7777         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
7778         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
7779         "spawn-pipe.h" instead of "pipe.h".
7780         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
7781         to gl_SPAWN_PIPE.
7782         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
7783         (Files, Makefile.am): Update.
7784         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
7785         Update.
7786         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
7787         Include "spawn-pipe.h" instead of "pipe.h".
7788         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
7789         * lib/javacomp.c: Likewise.
7790         * lib/javaversion.c: Likewise.
7791         * lib/pipe-filter-gi.c: Likewise.
7792         * lib/pipe-filter-ii.c: Likewise.
7793         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
7794         * modules/javacomp (Depends-on): Likewise.
7795         * modules/javaversion (Depends-on): Likewise.
7796         * modules/pipe-filter-gi (Depends-on): Likewise.
7797         * modules/pipe-filter-ii (Depends-on): Likewise.
7798         * MODULES.html.sh (Executing programs): Update.
7799         * NEWS: Mention the change.
7800
7801 2010-12-10  Eric Blake  <eblake@redhat.com>
7802
7803         pipe-posix: new module
7804         * modules/pipe-posix: New file.
7805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
7806         (gl_UNISTD_H): Check for declaration.
7807         * modules/unistd (Makefile.am): Substitute it.
7808         * lib/unistd.in.h (pipe): Provide it for mingw.
7809         * doc/posix-functions/pipe.texi (pipe): Update documentation.
7810         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
7811
7812 2010-12-07  Bruno Haible  <bruno@clisp.org>
7813
7814         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
7815         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
7816         u8_strcmp_gnu.
7817         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
7818
7819 2010-12-06  Bruno Haible  <bruno@clisp.org>
7820
7821         Update internal documentation.
7822         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
7823
7824 2010-12-04  Bruno Haible  <bruno@clisp.org>
7825
7826         Put more information about failed tests into the test return codes.
7827         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
7828         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
7829         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7830         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7831         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7832         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7833         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7834         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7835         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
7836         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7837         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
7838         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7839         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7840         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7841         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
7842         returns a bit mask.
7843         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
7844         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7845         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
7846         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
7847         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7848         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7849         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7850         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7851         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7852         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7853         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7854         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7855         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7856         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7857         * m4/link.m4 (gl_FUNC_LINK): Likewise.
7858         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7859         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
7860         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
7861         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7862         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
7863         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7864         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7865         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
7866         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7867         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7868         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7869         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
7870         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7871         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7872         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
7873         gl_PRINTF_PRECISION): Likewise.
7874         * m4/regex.m4 (gl_REGEX): Likewise.
7875         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7876         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7877         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
7878         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7879         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7880         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7881         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7882         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
7883         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7884         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7885         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7886         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7887         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7888         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7889         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7890         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7891         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7892         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7893         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7894         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
7895         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
7896         enumerated value.
7897         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
7898
7899 2010-12-04  Bruno Haible  <bruno@clisp.org>
7900
7901         Update for Solaris 11 2010-11.
7902         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7903         Express, released in November 2010.
7904
7905 2010-12-04  Bruno Haible  <bruno@clisp.org>
7906
7907         nproc: Relax license.
7908         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
7909         and Paul Eggert.
7910         Requested by Ludovic Courtès <ludo@gnu.org>.
7911
7912 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7913
7914         utimecmp: fine-grained src to nearby coarse-grained dest
7915
7916         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
7917         and the source is on a file system with higher-resolution time
7918         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
7919         not work, and the time stamps are close together, the algorithm to
7920         determine the exact resolution from the read-back mtime was buggy:
7921         it had a "!=" where it should have had an "==".  This bug has been
7922         in the code ever since it was introduced to gnulib.
7923         Problem reported by Dan Jacobson in
7924         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
7925
7926 2010-11-30  Bruno Haible  <bruno@clisp.org>
7927
7928         strerror_r-posix: Fix autoconf test.
7929         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
7930
7931 2010-11-28  Bruno Haible  <bruno@clisp.org>
7932             Paul Eggert  <eggert@cs.ucla.edu>
7933
7934         Tests for module 'getdomainname'.
7935         * modules/getdomainname-tests: New file.
7936         * tests/test-getdomainname.c: New file, based on
7937         tests/test-gethostname.c.
7938
7939 2010-11-28  Bruno Haible  <bruno@clisp.org>
7940             Paul Eggert  <eggert@cs.ucla.edu>
7941
7942         getdomainname: Use the system function when possible.
7943         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
7944         (getdomainname): Replace if needed. Provide the declaration if it is
7945         missing. Don't use _GL_CXXALIAS_SYS_CAST.
7946         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
7947         (getdomainname): When the system has getdomainname, call the system
7948         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
7949         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
7950         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
7951         found in libnsl. Look for the declaration also in <netdb.h>. Replace
7952         the function if its second argument is of type 'int' or if it is found
7953         in libnsl.
7954         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
7955         <sys/systeminfo.h> and sysinfo().
7956         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
7957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7958         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
7959         HAVE_GETDOMAINNAME.
7960         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
7961         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
7962         * doc/glibc-functions/getdomainname.texi: Document the problems with
7963         the getdomainname declaration.
7964
7965 2010-11-28  Bruno Haible  <bruno@clisp.org>
7966
7967         sys_socket: Ensure ss_family field on AIX.
7968         * lib/sys_socket.in.h (ss_family): New macro definition.
7969         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
7970         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
7971         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7972         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7973         * modules/sys_socket (Makefile.am): Substitute
7974         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7975         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
7976
7977 2010-11-27  Bruno Haible  <bruno@clisp.org>
7978
7979         readline: Improve configure output.
7980         * m4/readline.m4 (gl_FUNC_READLINE): Make the
7981         "checking for readline..." result understandable.
7982
7983 2010-11-27  Bruno Haible  <bruno@clisp.org>
7984
7985         *printf-posix: Detect a bug on Solaris 10/x86.
7986         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
7987         for floating-point output.
7988         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
7989         directive.
7990         * tests/test-snprintf-posix.h (test_function): Likewise.
7991         * tests/test-sprintf-posix.h (test_function): Likewise.
7992         * tests/test-vasprintf-posix.c (test_function): Likewise.
7993         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
7994         * doc/posix-functions/printf.texi: Likewise.
7995         * doc/posix-functions/snprintf.texi: Likewise.
7996         * doc/posix-functions/sprintf.texi: Likewise.
7997         * doc/posix-functions/vfprintf.texi: Likewise.
7998         * doc/posix-functions/vprintf.texi: Likewise.
7999         * doc/posix-functions/vsnprintf.texi: Likewise.
8000         * doc/posix-functions/vsprintf.texi: Likewise.
8001         * doc/glibc-functions/obstack_printf.texi: Likewise.
8002         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8003
8004 2010-11-27  Bruno Haible  <bruno@clisp.org>
8005
8006         Fix link error when module libunistring-optional is in use.
8007         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
8008         * modules/striconveha-tests (Makefile.am): Likewise.
8009
8010 2010-11-27  Bruno Haible  <bruno@clisp.org>
8011
8012         regex: Mention link dependencies.
8013         * modules/regex (Link): New section.
8014         * modules/rpmatch (Link): Likewise.
8015         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
8016
8017 2010-11-27  Bruno Haible  <bruno@clisp.org>
8018
8019         ftoastr: Fix compilation error on Solaris.
8020         * lib/ftoastr.c: Include <config.h>.
8021
8022 2010-11-27  Bruno Haible  <bruno@clisp.org>
8023
8024         getloadavg: Update documentation.
8025         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
8026
8027 2010-11-27  Bruno Haible  <bruno@clisp.org>
8028
8029         sys_socket: Fix test whether the functions are declared.
8030         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
8031         not <sys/select.h>.
8032
8033 2010-11-27  Bruno Haible  <bruno@clisp.org>
8034
8035         getpass: Make sure to get system declaration on some platforms.
8036         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
8037         gl_USE_SYSTEM_EXTENSIONS.
8038         * modules/getpass (Depends-on): Add extensions.
8039
8040 2010-11-26  Bruno Haible  <bruno@clisp.org>
8041
8042         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
8043         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
8044         'iconv' module is present.
8045         (ICONV_CONST): New macro.
8046         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
8047         ICONV_CONST.
8048         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
8049         set ICONV_CONST.
8050         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
8051         here.
8052         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
8053         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
8054         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
8055         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
8056         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
8057         present.
8058
8059 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8060
8061         ftoastr: comment fix
8062         * lib/ftoastr.c: "little" -> "little or no" in comment
8063
8064 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
8065
8066         stdint: port to GCC 4.3 + OSX + Octave
8067         On this platform, stdint.h is buggy and defines int64_t to long
8068         long int.  The replacement defined it to long int, causing
8069         problems with C++ style name mangling.  Instead, trust the system
8070         definition if INT64_MAX is defined, and likewise for the unsigned
8071         variant.   Problem reported by Jarno Rajahalme in
8072         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
8073         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
8074         and don't mess with int64_t and INT64_MAX in this case.
8075         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
8076
8077 2010-11-24  Bruno Haible  <bruno@clisp.org>
8078
8079         doc: Corrections regarding MacOS X 10.4 and 10.5.
8080         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
8081         MacOS X.
8082         Reported by Simon Josefsson.
8083
8084 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
8085
8086         Uninstall ".bin" files installed by relocwrapper.
8087         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
8088         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
8089         unless it is already there.
8090
8091 2010-11-21  Bruno Haible  <bruno@clisp.org>
8092
8093         Update for NetBSD 5.0.
8094         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8095         NetBSD; the test fails on NetBSD 5.0.
8096         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8097         about NetBSD.
8098
8099 2010-11-21  Bruno Haible  <bruno@clisp.org>
8100
8101         Update for HP-UX 11.23 and HP-UX 11.31.
8102         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
8103         HP-UX.
8104
8105 2010-11-21  Bruno Haible  <bruno@clisp.org>
8106
8107         Update for MacOS X 10.5.
8108         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8109         MacOS X; the test fails on MacOS X 10.5.8.
8110         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8111         about MacOS X.
8112
8113 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
8114
8115         bootstrap: add bootstrap_sync option.
8116         See discussion at
8117         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
8118         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
8119         * build-aux/bootstrap: Accept --bootstrap-sync to update
8120         bootstrap if it is not identical to the local gnulib's
8121         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
8122         enable this by default.  Accept --no-bootstrap-sync to disable
8123         it.
8124
8125 2010-11-20  Bruno Haible  <bruno@clisp.org>
8126
8127         Ensure that <features.h> is included before __GLIBC__ is tested.
8128         * lib/printf-parse.h: Include <features.h>.
8129         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
8130         Reported by Mike Frysinger <vapier@gentoo.org>.
8131
8132         Ensure that <features.h> is included before __GLIBC__ is tested.
8133         * lib/wchar.in.h: Include <features.h>.
8134         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
8135         * modules/wchar (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         * lib/arpa_inet.in.h: Include <features.h>.
8140         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
8141         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
8142         Reported by Mike Frysinger <vapier@gentoo.org>.
8143
8144         Ensure that <features.h> is included before __GLIBC__ is tested.
8145         * build-aux/link-warning.h: Include <features.h>.
8146         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
8147         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
8148         Reported by Mike Frysinger <vapier@gentoo.org>.
8149
8150         Ensure that <features.h> is included before __GLIBC__ is tested.
8151         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
8152         Reported by Mike Frysinger <vapier@gentoo.org>.
8153
8154 2010-11-20  Bruno Haible  <bruno@clisp.org>
8155
8156         memmem: Fix autoconf test.
8157         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
8158
8159 2010-11-20  Bruno Haible  <bruno@clisp.org>
8160
8161         Port to uClibc.
8162         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
8163         * lib/fcntl.in.h: Likewise.
8164         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
8165         * lib/mbrtowc.c (mbrtowc): Likewise.
8166         * lib/relocatable.c (find_shared_library_fullname): Likewise.
8167         * lib/strerror_r.c: Likewise.
8168         * lib/unistr/u8-strnlen.c: Likewise.
8169         * lib/vasnprintf.c (decimal_point_char): Likewise.
8170         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8171         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8172         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8173         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8174         * tests/test-sigaction.c (handler, main): Likewise.
8175         * lib/freading.h: Treat uClibc like a non-glibc platform.
8176         * lib/freading.c: Likewise.
8177         * lib/gettext.h: Likewise.
8178         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
8179         Likewise.
8180         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
8181         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8182         * lib/propername.c (proper_name_utf8): Likewise.
8183         * lib/spawn.in.h: Likewise.
8184         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
8185         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
8186         mem_cd_iconveh_internal): Likewise.
8187         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
8188         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8189         strstr, strcasestr): Likewise.
8190         * lib/unicodeio.c (unicode_to_mb): Likewise.
8191         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
8192         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
8193         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
8194         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
8195         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
8196         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
8197         * lib/unistr/u8-stpncpy.c: Likewise.
8198         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8199         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
8200         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8201         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8202         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8203         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
8204         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
8205         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
8206         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8207         Likewise.
8208         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8209         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8210         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8211         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8212         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8213         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8214         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8215         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8216         * tests/test-getopt.h (OPTIND_MIN): Likewise.
8217         * tests/test-striconveha.c (main): Likewise.
8218         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8219         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
8220         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
8221         * doc/posix-functions/getline.texi: Likewise.
8222         Reported by Mike Frysinger <vapier@gentoo.org>.
8223
8224 2010-11-20  Bruno Haible  <bruno@clisp.org>
8225
8226         nproc: Fix condition.
8227         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
8228         HAVE_PTHREAD_AFFINITY_NP.
8229
8230 2010-11-20  Bruno Haible  <bruno@clisp.org>
8231
8232         Fix a comment.
8233         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
8234
8235 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8236
8237         ftoastr: don't assume snprintf
8238         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
8239         Implement a subset of snprintf here, by using sprintf safely.
8240         * modules/ftoastr (Depends-on): Remove snprintf.
8241
8242 2010-11-19  Jim Meyering  <meyering@redhat.com>
8243
8244         test-rename.h: fix compilation failure
8245         * tests/test-rename.h (test_rename): Add omitted "}".
8246
8247 2010-11-17  Jim Meyering  <meyering@redhat.com>
8248
8249         maint.mk: add a URL discussing the no-@acronym policy
8250         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
8251
8252 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8253
8254         ftoastr: depend on snprintf, improve comments
8255         * lib/ftoastr.c: Also mention Loitsch's draft.
8256         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
8257         needed in the current implementation, but it might simplify
8258         speeding up the code later.
8259         * modules/ftoastr: Depend on snprintf; this improves portability.
8260         Suggested by Bruno Haible in the same email.
8261
8262         ftoastr: port to hosts lacking strtof and strtold
8263         Problem reported by Bruno Haible in
8264         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
8265         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
8266         environment and strtold (and presumably strtof) are not available.
8267         * modules/ftoastr (Files): Add m4/c-strtod.m4.
8268         (configure.ac): Require gl_C99_STRTOLD.
8269
8270 2010-11-18  Bruno Haible  <bruno@clisp.org>
8271
8272         c-strtold: Avoid link error on AIX 7.
8273         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
8274         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
8275         (gl_C_STRTOLD): Test whether strtold_l exists.
8276         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8277
8278 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8279
8280         intprops: new macro INT_BITS_STRLEN_BOUND
8281         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
8282         ftoastr.h.  This exposes an internal of intprops.h that was formerly
8283         not exposed.  Also, it uses a slightly tighter bound than before;
8284         though this makes no practical difference, we might as well be as
8285         tight as we easily can.
8286
8287         ftoastr: new module, for lossless conversion of floats to short strings
8288         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
8289         * modules/ftoastr: New files.
8290
8291 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8292
8293         bootstrap: port to Solaris sed
8294         * build-aux/bootstrap (get_version): Port to Solaris sed.
8295         See Ralf Wildenhues's note in
8296         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
8297
8298 2010-11-14  Jim Meyering  <meyering@redhat.com>
8299
8300         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
8301         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
8302         and move definition closer to sole use.
8303
8304 2010-11-13  Jim Meyering  <meyering@redhat.com>
8305
8306         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
8307         Now we require at least autoconf-2.59, which means the work-around
8308         is no longer needed.
8309         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
8310         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8311         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8312         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
8313         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8314
8315 2010-11-13  Bruno Haible  <bruno@clisp.org>
8316
8317         rename, renameat: Avoid test failures at NFS mounted locations.
8318         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
8319         functions.
8320         (test_rename): Use assert_nonexistent.
8321         * tests/test-rename.c: Include <dirent.h>.
8322         * tests/test-renameat.c: Likewise.
8323         Reported by Gary V. Vaughan <gary@gnu.org>.
8324
8325         rename, renameat: Document Linux bug with NFS
8326         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
8327         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
8328         * doc/posix-functions/renameat.texi: Likewise.
8329         Suggested by Eric Blake.
8330
8331 2010-11-13  Bruno Haible  <bruno@clisp.org>
8332
8333         rename test: Add comments.
8334         * tests/test-rename.h (test_rename): Add structure and comments.
8335
8336 2010-11-13  Eric Blake  <eblake@redhat.com>
8337
8338         maintainer-makefile: cover a few more files
8339         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
8340         scripts generated within C files, for libvirt.
8341
8342 2010-11-13  Bruno Haible  <bruno@clisp.org>
8343
8344         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
8345         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
8346         character, return the number of bytes that belong together, not always
8347         1.
8348         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8349         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8350         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8351         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
8352         number of bytes of an invalid character.
8353         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
8354         (main): Invoke it.
8355         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
8356         results.
8357         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
8358         malformed byte sequences.
8359         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
8360         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
8361         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
8362         Reported by Ben Pfaff and Paolo Bonzini.
8363
8364 2010-11-13  Bruno Haible  <bruno@clisp.org>
8365
8366         openat: Work around glibc bug with fchownat() and empty file names.
8367         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
8368         (gl_FUNC_FCHOWNAT): Invoke it.
8369         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
8370         * doc/posix-functions/fchownat.texi: Document the glibc bug.
8371         Reported by Gary V. Vaughan <gary@gnu.org>.
8372
8373 2010-11-13  Bruno Haible  <bruno@clisp.org>
8374
8375         openat: Ensure autoconf macro ordering.
8376         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
8377         gl_USE_SYSTEM_EXTENSIONS.
8378         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
8379
8380 2010-11-13  Bruno Haible  <bruno@clisp.org>
8381
8382         Update comments.
8383         * lib/unistr/u8-check.c: Update file name in comments.
8384         * lib/unistr/u8-mblen.c: Likewise.
8385         * lib/unistr/u8-prev.c: Likewise.
8386         * lib/unistr/u8-strmblen.c: Likewise.
8387         * lib/unistr/u8-strmbtouc.c: Likewise.
8388
8389 2010-11-13  Jim Meyering  <meyering@redhat.com>
8390
8391         tests: avoid test failure on Solaris 10 due to lack of PATH export
8392         * tests/test-update-copyright.sh: Don't forget to export PATH.
8393
8394         init.sh: ensure that IFS is defined, just in case...
8395         * tests/init.sh (setup_): Ensure that IFS is defined,
8396         so that saving and restoring it works as expected.  This
8397         appears to be useful at least for an old version of dash
8398         from a long time ago (RH 6).  See here for details:
8399         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
8400
8401         maint.mk: tighten "test a == b" check
8402         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
8403         test to files that contain something like #!/bin/sh.
8404         Without this, coreutils would get two false positives in
8405         the comments of C source files.
8406
8407 2010-11-12  Eric Blake  <eblake@redhat.com>
8408
8409         bootstrap: fix typo in previous attempt
8410         * build-aux/bootstrap (buildreq): Correct the grouping.
8411         Reported by Paul Eggert.
8412
8413         maintainer-makefile: prohibit test x == x
8414         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
8415         Based on a report by Matthias Bolte.
8416
8417         bootstrap: allow FreeBSD gzip
8418         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
8419         which has no '.' and goes to stderr.
8420         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
8421         Reported by Matthias Bolte.
8422
8423         maintainer-makefile: check for i18n setup
8424         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
8425         will likely work.
8426
8427 2010-11-12  Bruno Haible  <bruno@clisp.org>
8428
8429         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
8430         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
8431         * lib/nanosleep.c (nanosleep): Likewise.
8432
8433 2010-11-11  Bruno Haible  <bruno@clisp.org>
8434
8435         fcntl-h: Fix for use of C++ on glibc systems.
8436         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8437         also on glibc systems in C++ mode.
8438         Reported by Gary V. Vaughan <gary@gnu.org>.
8439
8440 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8441
8442         mknod: avoid false failure with dash
8443         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
8444
8445 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
8446
8447         unlink: Fix "is it should" typo in diagnostic.
8448         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
8449         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
8450
8451 2010-11-11  Bruno Haible  <bruno@clisp.org>
8452
8453         Tests for module 'strerror_r-posix'.
8454         * modules/strerror_r-posix-tests: New file.
8455         * tests/test-strerror_r.c: New file.
8456         * tests/test-string-c++.cc: Check the signature of strerror_r.
8457
8458         New module 'strerror_r-posix'.
8459         * lib/string.in.h (strerror_r): New declaration.
8460         * lib/strerror_r.c: New file.
8461         * m4/strerror_r.m4: New file.
8462         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
8463         of strerror_r.
8464         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
8465         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8466         * modules/strerror_r-posix: New file.
8467         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
8468         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8469         * doc/posix-functions/strerror_r.texi: Mention the new module and the
8470         portability problems.
8471
8472 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
8473
8474         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
8475         line is also considered for output. Quoted function name in shell
8476         command, so temporary files for functions like MyClass::operator()
8477         are removed correctly without errors.
8478
8479 2010-11-09  Bruno Haible  <bruno@clisp.org>
8480
8481         * doc/posix-functions/strerror.texi: List more failing platforms.
8482
8483         * doc/posix-functions/strerror.texi: Add a comment.
8484
8485 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8486
8487         fdopendir: fix bug on MacOS X when low on file descriptors
8488
8489         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
8490         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
8491         All callers changed.
8492         (fdopendir): Invoke save_cwd at the top level, not after using
8493         multiple dup() calls to use up file descriptors.  Then retry
8494         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
8495         less than the maximum number of open file descriptors, because
8496         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
8497         on Mac OS X 10.6.4 for tar 1.24
8498         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
8499         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
8500         and for tar 1.25
8501         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
8502
8503 2010-11-07  Bruno Haible  <bruno@clisp.org>
8504
8505         vasnprintf: Support I flag on glibc systems.
8506         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
8507         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
8508         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
8509         snprintf function.
8510         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
8511         glibc systems.
8512         * tests/test-vasnprintf-posix3.c: New file.
8513         * modules/vasnprintf-posix-tests (Files): Add it.
8514         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
8515
8516 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8517
8518         [html] Fix copy/paste bug: Use unique name for compiler warnings.
8519         * MODULES.html.sh: For compiler warnings, use name
8520         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
8521
8522 2010-11-05  Eric Blake  <eblake@redhat.com>
8523
8524         ceil, floor: avoid spurious failure with icc
8525         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
8526         [denormals-as-zero] when optimizing without -mieee-fp option.
8527         * tests/test-floorf2.c (floorf_reference): Likewise.
8528         * tests/test-ceilf1.c (dummy): New function.
8529         (main): Use it to outsmart icc's optimization.
8530         * tests/test-floorf1.c (dummy, main): Likewise.
8531
8532         tests: require working signbit
8533         * modules/ceilf-tests (Depends-on): Add signbit.
8534         * modules/ceill-tests (Depends-on): Likewise.
8535         * modules/floorf-tests (Depends-on): Likewise.
8536         * modules/floorl-tests (Depends-on): Likewise.
8537         * modules/round-tests (Depends-on): Likewise.
8538         * modules/roundf-tests (Depends-on): Likewise.
8539         * modules/roundl-tests (Depends-on): Likewise.
8540         * modules/trunc-tests (Depends-on): Likewise.
8541         * modules/truncf-tests (Depends-on): Likewise.
8542         * modules/truncl-tests (Depends-on): Likewise.
8543
8544         strtod: work around icc bug
8545         * lib/strtod.c (minus_zero): Define to working value.
8546         (strtod): Use it to avoid icc bug.
8547
8548         copysign: enhance tests
8549         * modules/copysign-tests (Files): Add minus-zero.h.
8550         * tests/test-copysign.c (main): Also test zeros.
8551
8552 2010-11-04  Eric Blake  <eblake@redhat.com>
8553
8554         ceil, floor, round, trunc: enhance tests of -0
8555         * tests/test-ceilf1.c (main): Ensure correct sign of result.
8556         * tests/test-ceill.c (main): Likewise.
8557         * tests/test-floorf1.c (main): Likewise.
8558         * tests/test-floorl.c (main): Likewise.
8559         * tests/test-round1.c (main): Likewise.
8560         * tests/test-roundf1.c (main): Likewise.
8561         * tests/test-roundl.c (main): Likewise.
8562         * tests/test-trunc1.c (main): Likewise.
8563         * tests/test-truncf1.c (main): Likewise.
8564         * tests/test-truncl.c (main): Likewise.
8565
8566 2010-11-04  Eric Blake  <eblake@redhat.com>
8567
8568         frexp, tests: work around ICC bug with -zero
8569         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
8570         works with more compilers.
8571         * tests/minus-zero.h: New file.
8572         * modules/ceilf-tests (Files): Include it.
8573         * modules/ceill-tests (Files): Likewise.
8574         * modules/floorf-tests (Files): Likewise.
8575         * modules/floorl-tests (Files): Likewise.
8576         * modules/frexp-nolibm-tests (Files): Likewise.
8577         * modules/frexp-tests (Files): Likewise.
8578         * modules/frexpl-nolibm-tests (Files): Likewise.
8579         * modules/frexpl-tests (Files): Likewise.
8580         * modules/isnan-tests (Files): Likewise.
8581         * modules/isnand-nolibm-tests (Files): Likewise.
8582         * modules/isnand-tests (Files): Likewise.
8583         * modules/isnanf-nolibm-tests (Files): Likewise.
8584         * modules/isnanf-tests (Files): Likewise.
8585         * modules/isnanl-nolibm-tests (Files): Likewise.
8586         * modules/isnanl-tests (Files): Likewise.
8587         * modules/round-tests (Files): Likewise.
8588         * modules/roundf-tests (Files): Likewise.
8589         * modules/roundl-tests (Files): Likewise.
8590         * modules/ldexpl-tests (Files): Likewise.
8591         * modules/signbit-tests (Files): Likewise.
8592         * modules/snprintf-posix-tests (Files): Likewise.
8593         * modules/sprintf-posix-tests (Files): Likewise.
8594         * modules/strtod-tests (Files): Likewise.
8595         * modules/trunc-tests (Files): Likewise.
8596         * modules/truncf-tests (Files): Likewise.
8597         * modules/truncl-tests (Files): Likewise.
8598         * modules/vsnprintf-posix-tests (Files): Likewise.
8599         * modules/vsprintf-posix-tests (Files): Likewise.
8600         * modules/vasnprintf-posix-tests (Files): Likewise.
8601         * modules/vasprintf-posix-tests (Files): Likewise.
8602         * tests/test-ceilf1.c (main): Use it.
8603         * tests/test-ceill.c (main): Likewise.
8604         * tests/test-floorf1.c (main): Likewise.
8605         * tests/test-floorl.c (main): Likewise.
8606         * tests/test-frexp.c (main): Likewise.
8607         * tests/test-frexpl.c (main): Likewise.
8608         * tests/test-isnan.c (main): Likewise.
8609         * tests/test-isnand.h (main): Likewise.
8610         * tests/test-isnanf.h (main): Likewise.
8611         * tests/test-isnanl.h (main): Likewise.
8612         * tests/test-ldexpl.c (main): Likewise.
8613         * tests/test-round.c (main): Likewise.
8614         * tests/test-roundf.c (main): Likewise.
8615         * tests/test-roundl.c (main): Likewise.
8616         * tests/test-signbit.c (test_signbitf, test_signbitd)
8617         (test_signbitl): Likewise.
8618         * tests/test-snprintf-posix.h (test_function): Likewise.
8619         * tests/test-sprintf-posix.h (test_function): Likewise.
8620         * tests/test-strtod.c (main): Likewise.
8621         * tests/test-trunc1.c (main): Likewise.
8622         * tests/test-truncf1.c (main): Likewise.
8623         * tests/test-truncl.c (main): Likewise.
8624
8625         isnanl: work around icc bug
8626         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
8627
8628 2010-11-03  Eric Blake  <eblake@redhat.com>
8629
8630         tests: fix compiler warnings
8631         * tests/test-getopt.h (test_getopt): Fix condition.
8632         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8633         * tests/test-pipe2.c (main): Likewise.
8634         * tests/test-quotearg-simple.c (main): Avoid icc warning.
8635
8636         utimens: fix broken m4 test
8637         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
8638
8639 2010-10-28  Bruno Haible  <bruno@clisp.org>
8640
8641         posix_spawn*, getdtablesize: Relax license.
8642         * modules/posix_spawn (License): Change to LGPLv2+.
8643         * modules/posix_spawnp (License): Likewise.
8644         * modules/posix_spawn-internal (License): Likewise.
8645         * modules/posix_spawnattr_init (License): Likewise.
8646         * modules/posix_spawnattr_getflags (License): Likewise.
8647         * modules/posix_spawnattr_setflags (License): Likewise.
8648         * modules/posix_spawnattr_getpgroup (License): Likewise.
8649         * modules/posix_spawnattr_setpgroup (License): Likewise.
8650         * modules/posix_spawnattr_getschedparam (License): Likewise.
8651         * modules/posix_spawnattr_setschedparam (License): Likewise.
8652         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
8653         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
8654         * modules/posix_spawnattr_getsigdefault (License): Likewise.
8655         * modules/posix_spawnattr_setsigdefault (License): Likewise.
8656         * modules/posix_spawnattr_getsigmask (License): Likewise.
8657         * modules/posix_spawnattr_setsigmask (License): Likewise.
8658         * modules/posix_spawnattr_destroy (License): Likewise.
8659         * modules/posix_spawn_file_actions_init (License): Likewise.
8660         * modules/posix_spawn_file_actions_addclose (License): Likewise.
8661         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
8662         * modules/posix_spawn_file_actions_addopen (License): Likewise.
8663         * modules/posix_spawn_file_actions_destroy (License): Likewise.
8664         * modules/getdtablesize (License): Likewise.
8665         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
8666
8667 2010-10-26  Bruno Haible  <bruno@clisp.org>
8668
8669         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
8670         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
8671         Cygwin and mingw.
8672         Suggested by Eric Blake.
8673
8674 2010-10-26  Bruno Haible  <bruno@clisp.org>
8675
8676         stdio: Work around compilation error due to renameat() on Solaris 10.
8677         * lib/stdio.in.h: Include <unistd.h> on Solaris.
8678         * lib/renameat.c: Don't include <unistd.h> here.
8679         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
8680         Reported by Paul Eggert and Eric Blake.
8681
8682 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8683
8684         renameat: port to Solaris 10, which declares renameat in unistd.h
8685
8686         * lib/renameat.c: Include unistd.h before stdio.h, because
8687         Solaris 10 declares renameat in unistd.h.  Problem encountered
8688         when building GNU tar 1.24 on Solaris 10.
8689
8690 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8691
8692         fdopendir: fix C89 compilation
8693         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
8694         compilers.
8695
8696 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8697
8698         inttostr: simplify by removing unnecessary redundancy
8699         * lib/anytostr.c: Don't include verify.h.
8700         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
8701         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
8702         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
8703         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
8704         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
8705         Likewise.
8706         * modules/inttostr (Depends-on): Remove 'verify'.
8707
8708 2010-10-23  Bruno Haible  <bruno@clisp.org>
8709
8710         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
8711         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
8712         Reported by Eric Blake.
8713
8714 2010-10-23  Bruno Haible  <bruno@clisp.org>
8715
8716         Tests: Fix LOCALE_JA on MirBSD 10.
8717         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
8718         to an UTF-8 locale.
8719         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
8720         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8721         Reported by Eric Blake.
8722
8723 2010-10-21  Bruno Haible  <bruno@clisp.org>
8724
8725         nl_langinfo test: Avoid test failure on NetBSD 5.
8726         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
8727         Reported by Eric Blake.
8728
8729 2010-10-21  Eric Blake  <eblake@redhat.com>
8730
8731         c-stack: work around libsigsegv 2.8 bug
8732         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
8733         overflow on at least PowerPC64.
8734
8735 2010-10-17  Bruno Haible  <bruno@clisp.org>
8736
8737         userspec: Drop redundant file.
8738         * modules/userspec (Files): Remove lib/inttostr.h.
8739
8740 2010-10-17  Bruno Haible  <bruno@clisp.org>
8741
8742         nl_langinfo tests: Silence some warnings.
8743         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
8744         Reported by Jim Meyering.
8745
8746 2010-10-17  Bruno Haible  <bruno@clisp.org>
8747
8748         Make use of GCC's attribute __alloc_size__.
8749         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
8750         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
8751         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
8752         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
8753         __alloc_size__.
8754         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
8755         Suggested by Jim Meyering.
8756
8757 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
8758
8759         bootstrap: anchor .gitignore entries.
8760         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
8761         with...
8762         (insert_vc_ignore): ... this new function, which prepends `/' to
8763         all .gitignore entries before passing them to
8764         insert_sorted_if_absent.
8765
8766 2010-10-16  Bruno Haible  <bruno@clisp.org>
8767
8768         nextafter: Fix configure check.
8769         * modules/nextafter (configure.ac): Correct expected prototype.
8770
8771 2010-10-16  Bruno Haible  <bruno@clisp.org>
8772
8773         termios: Update documentation.
8774         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
8775
8776 2010-10-16  Bruno Haible  <bruno@clisp.org>
8777
8778         tests: Make them compile with TinyCC.
8779         * tests/test-strstr.c (main): Remove parentheses around array
8780         initializer.
8781
8782 2010-10-15  Eric Blake  <eblake@redhat.com>
8783
8784         ignore-value: make header idempotent
8785         * lib/ignore-value.h: Add double-inclusion guards.
8786         Reported by Stefan Berger.
8787
8788 2010-10-15  Jim Meyering  <meyering@redhat.com>
8789
8790         GNUmakefile: handle "stable" target, not "major"
8791         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
8792         lists in maint.mk and announce-gen.  Without this, "make stable"
8793         would fail to ensure that $(VERSION) is up to date.
8794
8795 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
8796
8797         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
8798         & co.
8799
8800 2010-10-14  Bruno Haible  <bruno@clisp.org>
8801
8802         vasnprintf: Don't set errno to 0.
8803         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
8804         block that sets it to 0.
8805         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
8806
8807 2010-10-14  Bruno Haible  <bruno@clisp.org>
8808
8809         socketlib: Fix.
8810         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
8811         gl_PREREQ_SYS_H_WINSOCK2.
8812         Reported by Ian Beckwith <ianb@erislabs.net>.
8813
8814 2010-10-13  Jim Meyering  <meyering@redhat.com>
8815
8816         test-select-stdin.c: avoid warn_unused_result warnings
8817         * tests/test-select-stdin.c: Include "macros.h".
8818         ASSERT that read and fflush succeed.
8819
8820 2010-10-13  Jim Meyering  <meyering@redhat.com>
8821
8822         git-version-gen: do require git-VC'd files in cwd
8823         * build-aux/git-version-gen: Reject a git version string
8824         if there are no commits associated with the current directory.
8825         This avoids an unlikely false-positive (unrelated dir whose parent
8826         repository also contains a tag matching v*), as pointed out
8827         by Giuseppe Scrivano in
8828         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
8829
8830 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8831
8832         argv-iter: omit nonconforming declaration
8833         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
8834         enum arg_iter_err declaration, which doesn't conform to C99.
8835         Solaris 10 cc warns about this.
8836
8837 2010-10-13  Eric Blake  <eblake@redhat.com>
8838
8839         termios: fix compilation on mingw
8840         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
8841         (gl_TERMIOS_H): Adjust it on mingw.
8842         * modules/termios (Makefile.am): Substitute new key.
8843         * lib/termios.in.h (includes): Make include_next conditional.
8844         * doc/posix-headers/termios.texi (termios.h): Update
8845         documentation.
8846         Reported by Daniel P. Berrange.
8847
8848 2010-10-13  Jim Meyering  <meyering@redhat.com>
8849
8850         git-version-gen: don't require that .git/ be in the current dir
8851         * build-aux/git-version-gen: Adjust this script so that it works
8852         when run from any working directory beneath the top-level .git/-
8853         containing directory.  Inspired by a patch from Giuseppe Scrivano,
8854         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
8855
8856         test-select: avoid warn_unused_result warnings
8857         * tests/test-select.c: Include "macros.h".
8858         ASSERT that each call to read, write, and pipe succeeds.
8859         While not technically required, also check each "close".
8860         * modules/select-tests (Files): Add tests/macros.h.
8861
8862         test-symlinkat: remove declaration of unused local
8863         * tests/test-symlinkat.c (main): Remove unused local, "buf".
8864
8865         test-inttostr: avoid shadowing warnings
8866         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
8867         and use malloc rather than the stack for the same reason as
8868         mentioned in the comment justifying the other allocation.
8869
8870 2010-10-11  Bruno Haible  <bruno@clisp.org>
8871
8872         stdlib: Allow multiple gnulib generated replacements to coexist.
8873         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
8874         Reported by Sam Steingold <sds@gnu.org>.
8875
8876 2010-10-11  Jim Meyering  <meyering@redhat.com>
8877
8878         fix a documentation typo
8879         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
8880
8881 2010-10-11  Eric Blake  <eblake@redhat.com>
8882
8883         futimens: work around Solaris 11 bug
8884         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
8885         * tests/test-futimens.h (test_futimens): Enhance, rather than
8886         weaken test.
8887         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8888
8889 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8890
8891         Indentation.
8892         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
8893         higher-level operators more to the left.
8894
8895 2010-10-11  Jim Meyering  <meyering@redhat.com>
8896
8897         test-futimens: avoid unwarranted test failure on Solaris 5.11
8898         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8899         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8900         because it tries to dereference the NULL name argument.
8901
8902 2010-10-11  Bruno Haible  <bruno@clisp.org>
8903
8904         Indentation.
8905         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
8906         indentation.
8907
8908 2010-10-11  Jim Meyering  <meyering@redhat.com>
8909
8910         spawn.in.h: make indentation consistent with parentheses
8911         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
8912         Make indentation consistent with parentheses.
8913
8914 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
8915
8916         Fix mismatched parens in previous commit
8917         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
8918         parens.
8919
8920 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8921
8922         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
8923
8924         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
8925         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
8926         * lib/malloca.c: Include "verify.h".
8927         (verify1): Remove, replacing with a verify call.
8928         * lib/relocwrapper.c (verify1): Likewise.
8929         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
8930         Likewise.
8931         * modules/malloca (Depends-on): Add 'verify'.
8932         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
8933         * modules/vasnprintf (Depends-on): Add 'verify'.
8934         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8935         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8936         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8937         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8938         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8939         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8940         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8941
8942         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
8943
8944         Formerly the style was sometimes 2*X - 1, because the C standard
8945         was wrongly thought to disallow ?: in integral constant expressions.
8946         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
8947         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
8948         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8949         * lib/stdint.in.h (_verify_intmax_size): Likewise.
8950         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
8951         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
8952         verify that time_t cannot be floating.
8953
8954 2010-10-08  Eric Blake  <eblake@redhat.com>
8955
8956         time: enforce recent POSIX ruling that time_t is integral
8957         * lib/time.in.h (__time_t_must_be_integral): Detect any
8958         problematic systems, allowing the rest of gnulib to assume POSIX.
8959
8960 2010-10-08  Jim Meyering  <meyering@redhat.com>
8961
8962         fdopendir: fix a bug on systems lacking openat and /proc support
8963         OpenBSD 4.7 is one such system.  The most noticeable effect was
8964         failure of any application making nontrivial use of fts: rm, du,
8965         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
8966           ./rm: traversal failed: `a': Bad file descriptor
8967         Debugging that, you see that even though FD 6 was closed just
8968         prior to the opendir call in fd_clone_opendir, its resulting
8969         dir->dd_fd was 8, rather than the expected value of 6:
8970
8971         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
8972         93                close (fd);
8973         (gdb) n
8974         94                dir = fd_clone_opendir (dupfd);
8975         (gdb) n
8976         95                saved_errno = errno;
8977         (gdb) p dir->dd_fd
8978         $11 = 8
8979
8980         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
8981         The problem is that on OpenBSD, fd_clone_opendir has to resort
8982         to using the old-style save/restore CWD mechanism, due to its
8983         lack of openat/proc support, and *that* would steal the FD (6)
8984         that opendir was supposed to use.
8985
8986         The fix is to squirrel away the desired FD so that save_cwd uses a
8987         different one, and then free the dest FD right before calling opendir.
8988         That guarantees opendir will use the required file descriptor.
8989
8990         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
8991
8992 2010-10-08  Bruno Haible  <bruno@clisp.org>
8993
8994         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
8995         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
8996
8997 2010-10-08  Bruno Haible  <bruno@clisp.org>
8998
8999         nanosleep: Make replacement POSIX compliant.
9000         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
9001         is out of range.
9002         Reported by Jim Meyering.
9003
9004 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9005
9006         bootstrap: add hook for altering gnulib.mk, for Bison
9007         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
9008         the Bison bootstrapping process can rewrite file names and variables
9009         in this file before later parts of 'bootstrap' use the file.
9010         Bison wants to include lib/gnulib.mk from the top-level makefile,
9011         so it needs the file names in this file to be relative to the top
9012         level, not relative to lib; plus it needs variable names to be
9013         rewritten.
9014         (slurp): Use the new function.
9015
9016         bootstrap: reformat for readability
9017         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
9018
9019 2010-10-08  Eric Blake  <eblake@redhat.com>
9020
9021         docs: update cygwin progress
9022         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
9023         1.7.7.
9024         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
9025         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
9026         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
9027         * doc/posix-functions/carg.texi (carg): Likewise.
9028         * doc/posix-functions/cargf.texi (cargf): Likewise.
9029         * doc/posix-functions/casin.texi (casin): Likewise.
9030         * doc/posix-functions/casinf.texi (casinf): Likewise.
9031         * doc/posix-functions/casinh.texi (casinh): Likewise.
9032         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
9033         * doc/posix-functions/catan.texi (catan): Likewise.
9034         * doc/posix-functions/catanf.texi (catanf): Likewise.
9035         * doc/posix-functions/catanh.texi (catanh): Likewise.
9036         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
9037         * doc/posix-functions/ccos.texi (ccos): Likewise.
9038         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
9039         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
9040         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
9041         * doc/posix-functions/cexp.texi (cexp): Likewise.
9042         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
9043         * doc/posix-functions/cimag.texi (cimag): Likewise.
9044         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
9045         * doc/posix-functions/clog.texi (clog): Likewise.
9046         * doc/posix-functions/clogf.texi (clogf): Likewise.
9047         * doc/posix-functions/conj.texi (conj): Likewise.
9048         * doc/posix-functions/conjf.texi (conjf): Likewise.
9049         * doc/posix-functions/cpow.texi (cpow): Likewise.
9050         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
9051         * doc/posix-functions/cproj.texi (cproj): Likewise.
9052         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
9053         * doc/posix-functions/creal.texi (creal): Likewise.
9054         * doc/posix-functions/crealf.texi (crealf): Likewise.
9055         * doc/posix-functions/csin.texi (csin): Likewise.
9056         * doc/posix-functions/csinf.texi (csinf): Likewise.
9057         * doc/posix-functions/csinh.texi (csinh): Likewise.
9058         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
9059         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
9060         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
9061         * doc/posix-functions/ctan.texi (ctan): Likewise.
9062         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
9063         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
9064         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
9065         * doc/posix-headers/complex.texi (complex.h): Likewise.
9066
9067 2010-10-07  Jim Meyering  <meyering@redhat.com>
9068
9069         parse-datetime: avoid compilation failure on OpenBSD 4.7
9070         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
9071         This works around a compilation failure on OpenBSD 4.7:
9072         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
9073
9074 2010-10-07  Eric Blake  <eblake@redhat.com>
9075
9076         docs: update cygwin progress
9077         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
9078         1.7.6.
9079         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9080         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
9081         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
9082         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
9083         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
9084         Likewise.
9085         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
9086         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
9087         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
9088         Likewise.
9089         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
9090         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
9091         Likewise.
9092         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
9093         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
9094         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
9095         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
9096         Likewise.
9097         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
9098         Likewise.
9099         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
9100
9101         docs: update parse-datetime history
9102         * doc/parse-datetime.texi (Authors of parse_datetime): Better
9103         documentation of this function's history and alternatives.
9104
9105         cygwin: use more robust version check
9106         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
9107         exclude an eventual cygwin 1.9.1.
9108         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9109         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9110         (gl_FUNC_STRCASESTR): Likewise.
9111         Reported by Bruno Haible.
9112
9113 2010-10-06  Bruno Haible  <bruno@clisp.org>
9114
9115         string, sys_select: Avoid #including large headers unless necessary.
9116         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
9117         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
9118         OSF/1, BeOS, Haiku.
9119         Reported by Jim Meyering.
9120
9121 2010-10-05  Eric Blake  <eblake@redhat.com>
9122
9123         memmem, strstr, strcasestr: fix bug with long periodic needle
9124         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
9125         periodic needle having false positive.
9126         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
9127         and cygwin 1.7.7.
9128         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
9129         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9130         (gl_FUNC_STRCASESTR): Likewise.
9131         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9132         * tests/test-memmem.c (main): Expose the bug.
9133         * tests/test-strcasestr.c (main): Likewise.
9134         * tests/test-strstr.c (main): Likewise.
9135         * tests/test-c-strcasestr.c (main): Likewise.
9136         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
9137         * doc/posix-functions/strstr.texi (strstr): Likewise.
9138         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9139         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
9140
9141 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9142
9143         parse-datetime: do some more renaming
9144         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
9145         parse_datetime, not get_date.  Mention the renaming.
9146         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
9147         in comments.
9148         * m4/bison.m4: Likewise.
9149
9150 2010-10-05  Eric Blake  <eblake@redhat.com>
9151
9152         parse-datetime: better name than get_date
9153         * NEWS: Reword the deprecation notice.
9154         * modules/get_date: Rename to modules/parse-datetime.
9155         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
9156         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
9157         * lib/get_date.y: Rename to lib/parse-datetime.y.
9158         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
9159         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
9160         * doc/getdate.texi: Provide fallback wrapper.
9161         * lib/getdate.h: Move guts, and wrap...
9162         * lib/parse-datetime.h: ...new file.
9163         * lib/parse-datetime.y (get_date): Rename...
9164         (parse_datetime): ...to this.
9165         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
9166         (gl_PARSE_DATETIME): ...to this.
9167         * doc/posix-functions/getdate.texi (get_date): Provide fallback
9168         documentation.
9169         * modules/getdate (Files): Provide fallback docs and header.
9170         (Notice, Depends-on): Update references.
9171         * tests/test-parse-datetime.c: Likewise.
9172         * DEPENDENCIES: Likewise.
9173         * MODULES.html.sh (Date and time <time.h>): Likewise.
9174         * doc/parse-datetime.texi (Date input formats)
9175         (Authors of parse_datetime): Likewise.
9176         * modules/parse-datetime (Files, configure.ac, Makefile.am)
9177         (Include): Likewise.
9178         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
9179         * gnulib-tool: Likewise.
9180         * m4/bison.m4 (gl_BISON): Likewise.
9181         Suggested by Bruno Haible.
9182
9183 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9184
9185         more ports to Solaris tr, which needs [] around ranges
9186         * gnulib-tool: Solaris tr needs [] around ranges.
9187         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9188         * tests/test-pipe-filter-gi1.c (main): Likewise.
9189         * tests/test-pipe-filter-ii1.c (main): Likewise.
9190
9191 2010-10-05  Eric Blake  <eblake@redhat.com>
9192
9193         bootstrap: fix Solaris regression
9194         * build-aux/bootstrap (check_versions): Solaris tr still needs []
9195         around ranges.
9196         Reported by Pádraig Brady.
9197
9198         bootstrap: work with pkg-config
9199         * build-aux/bootstrap (check_versions): Also transliterate - in
9200         prerequisite name.
9201         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
9202         prerequisites that were already found, to avoid confusion.
9203         Reported by Justin Clift.
9204
9205         faccessat: remove unused wrappers
9206         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
9207         presence of these wrappers dragged in -lgen on Solaris.
9208         Reported by Clemens Brogi; fix suggested by Paul Eggert.
9209
9210 2010-10-05  Jim Meyering  <meyering@redhat.com>
9211
9212         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
9213         * Makefile (sc_pragma_columns): New syntax-check rule.
9214
9215 2010-10-04  Bruno Haible  <bruno@clisp.org>
9216
9217         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
9218         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
9219         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
9220         Reported by Bruce Korb and Eric Blake.
9221
9222 2010-10-04  Bruno Haible  <bruno@clisp.org>
9223
9224         threadlib: Make option --with-libpth-prefix work.
9225         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
9226         use $LIBPTH, not just -lpth.
9227
9228 2010-10-04  Bruno Haible  <bruno@clisp.org>
9229
9230         Avoid line length limitation from HP NonStop system header files.
9231         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
9232         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
9233         * lib/ctype.in.h: Likewise.
9234         * lib/dirent.in.h: Likewise.
9235         * lib/errno.in.h: Likewise.
9236         * lib/fcntl.in.h: Likewise.
9237         * lib/float.in.h: Likewise.
9238         * lib/getopt.in.h: Likewise.
9239         * lib/iconv.in.h: Likewise.
9240         * lib/inttypes.in.h: Likewise.
9241         * lib/langinfo.in.h: Likewise.
9242         * lib/locale.in.h: Likewise.
9243         * lib/math.in.h: Likewise.
9244         * lib/netdb.in.h: Likewise.
9245         * lib/netinet_in.in.h: Likewise.
9246         * lib/poll.in.h: Likewise.
9247         * lib/pthread.in.h: Likewise.
9248         * lib/pty.in.h: Likewise.
9249         * lib/sched.in.h: Likewise.
9250         * lib/se-selinux.in.h: Likewise.
9251         * lib/search.in.h: Likewise.
9252         * lib/signal.in.h: Likewise.
9253         * lib/spawn.in.h: Likewise.
9254         * lib/stdarg.in.h: Likewise.
9255         * lib/stddef.in.h: Likewise.
9256         * lib/stdint.in.h: Likewise.
9257         * lib/stdio.in.h: Likewise.
9258         * lib/stdlib.in.h: Likewise.
9259         * lib/string.in.h: Likewise.
9260         * lib/strings.in.h: Likewise.
9261         * lib/sys_file.in.h: Likewise.
9262         * lib/sys_ioctl.in.h: Likewise.
9263         * lib/sys_select.in.h: Likewise.
9264         * lib/sys_socket.in.h: Likewise.
9265         * lib/sys_stat.in.h: Likewise.
9266         * lib/sys_time.in.h: Likewise.
9267         * lib/sys_times.in.h: Likewise.
9268         * lib/sys_utsname.in.h: Likewise.
9269         * lib/sys_wait.in.h: Likewise.
9270         * lib/sysexits.in.h: Likewise.
9271         * lib/termios.in.h: Likewise.
9272         * lib/time.in.h: Likewise.
9273         * lib/unistd.in.h: Likewise.
9274         * lib/wchar.in.h: Likewise.
9275         * lib/wctype.in.h: Likewise.
9276         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
9277         * modules/ctype (Makefile.am): Likewise.
9278         * modules/dirent (Makefile.am): Likewise.
9279         * modules/errno (Makefile.am): Likewise.
9280         * modules/fcntl-h (Makefile.am): Likewise.
9281         * modules/float (Makefile.am): Likewise.
9282         * modules/getopt-posix (Makefile.am): Likewise.
9283         * modules/iconv-h (Makefile.am): Likewise.
9284         * modules/inttypes (Makefile.am): Likewise.
9285         * modules/langinfo (Makefile.am): Likewise.
9286         * modules/locale (Makefile.am): Likewise.
9287         * modules/math (Makefile.am): Likewise.
9288         * modules/netdb (Makefile.am): Likewise.
9289         * modules/netinet_in (Makefile.am): Likewise.
9290         * modules/poll-h (Makefile.am): Likewise.
9291         * modules/pthread (Makefile.am): Likewise.
9292         * modules/pty (Makefile.am): Likewise.
9293         * modules/sched (Makefile.am): Likewise.
9294         * modules/search (Makefile.am): Likewise.
9295         * modules/selinux-h (Makefile.am): Likewise.
9296         * modules/signal (Makefile.am): Likewise.
9297         * modules/spawn (Makefile.am): Likewise.
9298         * modules/stdarg (Makefile.am): Likewise.
9299         * modules/stddef (Makefile.am): Likewise.
9300         * modules/stdint (Makefile.am): Likewise.
9301         * modules/stdio (Makefile.am): Likewise.
9302         * modules/stdlib (Makefile.am): Likewise.
9303         * modules/string (Makefile.am): Likewise.
9304         * modules/strings (Makefile.am): Likewise.
9305         * modules/sys_file (Makefile.am): Likewise.
9306         * modules/sys_ioctl (Makefile.am): Likewise.
9307         * modules/sys_select (Makefile.am): Likewise.
9308         * modules/sys_socket (Makefile.am): Likewise.
9309         * modules/sys_stat (Makefile.am): Likewise.
9310         * modules/sys_time (Makefile.am): Likewise.
9311         * modules/sys_times (Makefile.am): Likewise.
9312         * modules/sys_utsname (Makefile.am): Likewise.
9313         * modules/sys_wait (Makefile.am): Likewise.
9314         * modules/sysexits (Makefile.am): Likewise.
9315         * modules/termios (Makefile.am): Likewise.
9316         * modules/time (Makefile.am): Likewise.
9317         * modules/unistd (Makefile.am): Likewise.
9318         * modules/wchar (Makefile.am): Likewise.
9319         * modules/wctype (Makefile.am): Likewise.
9320
9321 2010-10-04  Bruno Haible  <bruno@clisp.org>
9322
9323         read-file tests: Avoid a test failure on NonStop Kernel.
9324         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
9325         a regular file.
9326         Reported by Joachim Schmitz <schmitz@hp.com>.
9327
9328 2010-10-03  Bruno Haible  <bruno@clisp.org>
9329
9330         gnulib-tool: Fixes for --create-testdir with --libtool.
9331         * gnulib-tool (func_get_automake_snippet): Don't augment
9332         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
9333         an executable.
9334         (func_create_testdir): Handle module 'alloca' like func_import.
9335         Reported by Bruce Korb <bruce.korb@gmail.com>.
9336
9337 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
9338
9339         Avoid some lines longer than 80 characters.
9340         * lib/stdint.in.h: Break long comment lines.
9341         * lib/math.in.h: Likewise.
9342         (_GL_NUM_UINT_WORDS): New macro, for readability.
9343         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
9344         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
9345         * lib/stdlib.in.h: Likewise.
9346         * lib/spawn.in.h: Likewise.
9347         * lib/sys_socket.in.h: Update an URL.
9348         * lib/sys_stat.in.h: Break long line.
9349
9350 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
9351
9352         Improve pmccabe2html.
9353         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
9354         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
9355         when the sources change. Remove the line in the HTML about "Used
9356         ranges" (which implied that there might be other unused ranges),
9357         rename "Resume" to "Summary" (easier to understand for more users).
9358         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
9359         styles, and some unnecessary blank lines.
9360
9361 2010-10-03  Bruno Haible  <bruno@clisp.org>
9362             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9363
9364         acl: Add support for ACLs on NonStop Kernel.
9365         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
9366         Check whether the function aclsort() exists.
9367         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
9368         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
9369         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9370         (acl_nontrivial [HAVE_ACLSORT]: New function.
9371         (file_has_acl): Implement for NonStop Kernel.
9372         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9373         (qset_acl): Implement for NonStop Kernel.
9374         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
9375         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9376         (main): Implement for NonStop Kernel.
9377         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
9378         Kernel. Handle this flavor.
9379         * tests/test-set-mode-acl.sh: Likewise.
9380         * tests/test-copy-acl.sh: Likewise.
9381         * tests/test-copy-file.sh: Likewise.
9382
9383 2010-10-03  Bruno Haible  <bruno@clisp.org>
9384
9385         Info about ACLs on NonStop Kernel.
9386         * doc/acl-resources.txt: Add info about NonStop Kernel.
9387         References by Joachim Schmitz <schmitz@hp.com>.
9388
9389 2010-10-02  Bruno Haible  <bruno@clisp.org>
9390
9391         Define missing EDQUOT on NonStop Kernel.
9392         * lib/errno.in.h (EDQUOT): Assign a value if missing.
9393         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
9394         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
9395         missing.
9396         * doc/posix-headers/errno.texi: Mention the NSK bug.
9397         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
9398         Reported by Joachim Schmitz <schmitz@hp.com>.
9399
9400 2010-10-02  Bruno Haible  <bruno@clisp.org>
9401
9402         Update doc for POSIX:2008.
9403         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
9404         Update URL of POSIX specification.
9405
9406 2010-10-02  Bruno Haible  <bruno@clisp.org>
9407
9408         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
9409         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
9410         from gnulib, not from Automake.
9411
9412 2010-10-02  Bruno Haible  <bruno@clisp.org>
9413
9414         New module 'system-posix'.
9415         * modules/system-posix: New file.
9416         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
9417         module is present.
9418         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9419         GNULIB_SYSTEM_POSIX.
9420         * modules/stdlib (Depends-on): Remove sys_wait.
9421         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
9422         * doc/posix-functions/system.texi: Mention the new module.
9423         * doc/posix-headers/stdlib.texi: Likewise.
9424         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
9425         define test_sys_wait_macros to a no-op.
9426         Reported by Sam Steingold <sds@gnu.org>.
9427
9428 2010-09-30  Bruno Haible  <bruno@clisp.org>
9429
9430         More renaming from 'getdate' to 'get_date'.
9431         * doc/get_date.texi: Renamed from doc/getdate.texi.
9432         * modules/get_date (Files): Update.
9433         * MODULES.html.sh (Date and time <time.h>): Update.
9434         * DEPENDENCIES: Update.
9435         * gnulib-tool: Update comment.
9436         * m4/bison.m4 (gl_BISON): Likewise.
9437         * m4/get_date.m4 (gl_GET_DATE): Likewise.
9438
9439 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
9440
9441         bootstrap: support ACLOCAL_FLAGS during aclocal
9442         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
9443         can add additional -I dir for third-party .m4 files.
9444
9445 2010-09-30  Eric Blake  <eblake@redhat.com>
9446
9447         bootstrap: use glibtoolize on MacOS
9448         * build-aux/bootstrap (check_versions): Convert libtool into
9449         libtoolize.
9450         (tool search): Move libtool check earlier, and look for
9451         glibtoolize for MacOS.
9452         (gnulib_tool_options): Auto-add --libtool when appropriate.
9453         Reported by Justin Clift.
9454
9455         poll: fix typo that broke test on MacOS
9456         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
9457         Reported by Justin Clift.
9458
9459         getdate: rename to get_date
9460         Note: getdate.h is not renamed, to minimize client impact.
9461         * modules/getdate: Mark obsolete.  Move old contents...
9462         * modules/get_date: ...to new module name.
9463         * modules/getdate-tests: Move...
9464         * modules/get_date-tests: ...here.
9465         * m4/getdate.m4: Move...
9466         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
9467         * lib/getdate.y: Move...
9468         * lib/get_date.y: ...here.
9469         * tests/test-getdate.c: Move...
9470         * tests/test-get_date.c: ...here.
9471         * doc/posix-functions/getdate.texi (getdate): Update name.
9472         * NEWS: Mention the change.
9473
9474 2010-09-29  Bruno Haible  <bruno@clisp.org>
9475
9476         Separate the module 'waitpid' from the module 'sys_wait'.
9477         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
9478         present.
9479         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
9480         gl_MODULE_INDICATOR_FOR_TESTS.
9481         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
9482         * modules/sys_wait (Depends-on): Remove waitpid.
9483         (Makefile.am): Substitute GNULIB_WAITPID.
9484         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
9485         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
9486         signature only if the 'waitpid' module is present.
9487         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
9488         * NEWS: Mention the change.
9489         * modules/grantpt (Depends-on): Add waitpid.
9490         * modules/wait-process (Depends-on): Likewise.
9491
9492 2010-09-29  Bruno Haible  <bruno@clisp.org>
9493
9494         More tests for module 'sys_wait'.
9495         * modules/sys_wait-c++-tests: New file.
9496         * tests/test-sys_wait-c++.cc: New file.
9497         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
9498         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9499
9500 2010-09-29  Bruno Haible  <bruno@clisp.org>
9501
9502         New module 'waitpid'.
9503         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
9504         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
9505         Don't include <process.h>.
9506         (waitpid): Declare only, using modern idiom.
9507         * m4/waitpid.m4: New file.
9508         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
9509         * modules/waitpid: New file.
9510         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
9511         (Makefile.am): Update.
9512         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9513
9514 2010-09-28  Bruno Haible  <bruno@clisp.org>
9515
9516         poll: Assume ANSI C.
9517         * lib/poll.c (poll): Use an ANSI C declaration.
9518
9519 2010-09-28  Bruno Haible  <bruno@clisp.org>
9520
9521         poll-h: Create poll.h on all platforms.
9522         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
9523         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
9524         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
9525         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
9526         (gl_REPLACE_POLL_H): Don't set POLL_H.
9527         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
9528         * modules/poll-h (Depends-on): Add include_next.
9529         (Makefile.am): Create poll.h unconditionally. Substitute also
9530         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
9531
9532 2010-09-28  Bruno Haible  <bruno@clisp.org>
9533
9534         Tests for module 'poll-h'.
9535         * modules/poll-h-c++-tests: New file.
9536         * tests/test-poll-h-c++.cc: New file.
9537
9538         Tests for module 'poll-h'.
9539         * modules/poll-h-tests: New file.
9540         * tests/test-poll-h.c: New file.
9541
9542 2010-09-28  Bruno Haible  <bruno@clisp.org>
9543
9544         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
9545         * modules/poll-h (Depends-on): Add 'extensions'.
9546
9547 2010-09-28  Bruno Haible  <bruno@clisp.org>
9548
9549         New module 'poll-h'.
9550         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
9551         (poll): Use modern idiom.
9552         * modules/poll-h: New file.
9553         * modules/poll (Files): Remove lib/poll.in.h.
9554         (Depends-on): Add poll-h.
9555         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
9556         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
9557         * m4/poll_h.m4: New file.
9558         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
9559         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
9560         and invoke gl_REPLACE_POLL_H.
9561         * lib/poll.c: Use common idiom.
9562         * tests/test-poll.c: Likewise.
9563         * doc/posix-headers/poll.texi: Mention the poll-h module.
9564         Suggested by Eric Blake.
9565
9566 2010-09-26  Bruno Haible  <bruno@clisp.org>
9567
9568         sys_wait: Implement WSTOPSIG.
9569         * lib/sys_wait.in.h (WSTOPSIG): New macro.
9570         Reported by Simon Josefsson.
9571
9572 2010-09-26  Simon Josefsson  <simon@josefsson.org>
9573
9574         stdlib, sys_wait: Avoid compilation error on mingw.
9575         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
9576
9577 2010-09-26  Bruno Haible  <bruno@clisp.org>
9578
9579         stdlib tests: Avoid code duplication.
9580         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
9581         * modules/sys_wait-tests (Files): Likewise.
9582         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
9583         * tests/test-stdlib.c: Include test-sys_wait.h.
9584         (main): Invoke test_sys_wait_macros.
9585         * tests/test-sys_wait.c: Include test-sys_wait.h.
9586         (main): Invoke test_sys_wait_macros.
9587
9588 2010-09-25  Simon Josefsson  <simon@josefsson.org>
9589
9590         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
9591         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
9592         sure Windows sockets are working before calling getaddrinfo.
9593         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
9594         * doc/gnulib.texi (Windows sockets): Fix typo.
9595
9596 2010-09-25  Bruno Haible  <bruno@clisp.org>
9597
9598         Tests for module 'regex-quote'.
9599         * modules/regex-quote-tests: New file.
9600         * tests/test-regex-quote.c: New file.
9601
9602         New module 'regex-quote'.
9603         * lib/regex-quote.h: New file.
9604         * lib/regex-quote.c: New file.
9605         * modules/regex-quote: New file.
9606         Suggested by Reuben Thomas <rrt@sc3d.org>.
9607
9608 2010-09-24  Bruno Haible  <bruno@clisp.org>
9609
9610         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
9611         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
9612
9613 2010-09-23  Bruno Haible  <bruno@clisp.org>
9614
9615         setenv: Relax license.
9616         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
9617         Blake.
9618         Requested by Eric Blake.
9619
9620 2010-09-22  Bruno Haible  <bruno@clisp.org>
9621
9622         termios: Relax license.
9623         * modules/termios (License): Change to LGPLv2+.
9624         Requested by Eric Blake.
9625
9626 2010-09-22  Bruno Haible  <bruno@clisp.org>
9627
9628         threadlib: Allow the package to change the default to 'no'.
9629         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
9630         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
9631         Reported by Paul Eggert.
9632
9633 2010-09-22  Pádraig Brady  <P@draigbrady.com>
9634             Bruno Haible  <bruno@clisp.org>
9635
9636         Fix endless loop in mbmemcasecoll.
9637         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
9638         byte.
9639         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
9640
9641 2010-09-22  Bruno Haible  <bruno@clisp.org>
9642
9643         Tests for module 'memcoll'.
9644         * modules/memcoll-tests: New file.
9645         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
9646
9647         memcoll, xmemcoll: Clarify size vs. length.
9648         * modules/memcoll.c (memcoll0): Clarify specification.
9649         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
9650         passed to collate_error.
9651
9652 2010-09-22  Bruno Haible  <bruno@clisp.org>
9653
9654         Tests for module 'memcasecmp'.
9655         * modules/memcasecmp-tests: New file.
9656         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
9657
9658 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9659
9660         * lib/pthread.in.h: Add split double-inclusion guard, and include
9661         system <pthread.h> if there is one.  Use @@-style as in other
9662         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
9663         pthread.h doesn't.
9664         (pthread_mutexattr_destroy, pthread_mutexattr_init):
9665         (pthread_mutexattr_settype, pthread_mutex_trylock):
9666         New static inline functions, if there's no system <pthread.h>.
9667         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
9668         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
9669         Approximate with mutexes if the system lacks spinlocks, as in
9670         MacOS.
9671         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
9672         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
9673         @@-style.  Check for spinlocks separately.
9674         (gl_PTHREAD_DEFAULTS): New macro.
9675         * modules/pthread: Redo to use a more typical style for in.h files.
9676
9677 2010-09-21  Eric Blake  <eblake@redhat.com>
9678
9679         net_if: enhance tests
9680         * tests/test-net_if.c (main): Move signature checks earlier.
9681         Print failures to stderr.
9682         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
9683         Document the bug that we do not yet fix.
9684
9685 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9686
9687         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
9688         about gnulib, not GSS.
9689
9690 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9691
9692         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
9693         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
9694         for Emacs.
9695         * build-aux/pmccabe2html: Make Makefile.am example code more
9696         cut-and-paste friendly.
9697
9698 2010-09-21  Simon Josefsson  <simon@josefsson.org>
9699
9700         * tests/test-net_if.c: New file.
9701         * modules/net_if-tests: New file.
9702
9703 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
9704
9705         pthread: add pthread_spin_destroy
9706         * lib/pthread.in.h (pthread_spin_destroy): New function.
9707
9708 2010-09-19  Bruno Haible  <bruno@clisp.org>
9709
9710         gnulib-tool: Fix --help output.
9711         * gnulib-tool (func_usage): Fix help message.
9712         Reported by Reuben Thomas <rrt@sc3d.org>.
9713
9714 2010-09-18  Jim Meyering  <meyering@redhat.com>
9715
9716         maint.mk: avoid unexpanded \n in two diagnostics
9717         * top/maint.mk (sc_prohibit_always_true_header_tests):
9718         Don't use a literal \n in a halt=... assignment.  It would not be
9719         expanded, and the two \n bytes would appear in the diagnostic output
9720         rather than the desired newline.  Use halt=$$(printf ... instead.
9721         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9722
9723 2010-09-18  Bruno Haible  <bruno@clisp.org>
9724
9725         netinet_in: Doc tweak.
9726         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
9727         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9728
9729 2010-09-18  Jim Meyering  <meyering@redhat.com>
9730
9731         init.sh: correct an outdated comment
9732         * tests/init.sh (create_exe_shims_):  s/function/alias/
9733
9734         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
9735         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
9736         a file named "*.exe" is removed between the glob expansion and the
9737         processing of that oddly named file.
9738
9739 2010-09-17  Eric Blake  <eblake@redhat.com>
9740
9741         mirbsd: add some more support
9742         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
9743         in BSD family.
9744         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
9745         devices as OpenBSD.
9746         * m4/host-os.m4 (mirbsd): Add MirBSD.
9747
9748         tests: fix unportable assumption on sys/wait.h
9749         * tests/test-sys_wait.c (main): Relax test.
9750         * tests/test-stdlib.c (main): Likewise.
9751
9752         init.sh: accomodate directory with no .exes
9753         * tests/init.sh: Accomodate directory containing only scripts.
9754
9755         tests: avoid compiler warning
9756         * tests/test-stdlib.c (main): Use the variable.
9757
9758         fdutimens, fdutimensat: update signature, again
9759         * lib/utimens.h (gl_futimens): Delete, and move signature...
9760         (fdutimens): ...here.
9761         (fdutimensat): Rearrange signature.
9762         (lutimensat): Rename variable for clarity.
9763         * lib/fdutimensat.c (fdutimensat): Update signature.
9764         * lib/utimens.c (fdutimens): Likewise.
9765         (gl_futimens): Delete.
9766         (utimens, lutimens): Update callers.
9767         * lib/futimens.c (futimens): Likewise.
9768         * tests/test-fdutimensat.c: Likewise.
9769         * tests/test-utimens.c: Likewise.
9770         * tests/test-futimens.h: Update comment.
9771         * NEWS: Mention this.
9772         Suggested by Paul Eggert.
9773
9774 2010-09-17  Bruno Haible  <bruno@clisp.org>
9775
9776         Take over the maintenance of some older macros from Autoconf.
9777         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
9778         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
9779         GNU Autoconf.
9780         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
9781         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
9782
9783 2010-09-17  Eric Blake  <eblake@redhat.com>
9784
9785         fdutimensat: drop atflag validation
9786         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
9787         with valid fd, to close a race scenario where futimens is
9788         unsupported and FILE was replaced by a symlink.
9789         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
9790         accordingly.
9791         Suggested by Paul Eggert.
9792
9793 2010-09-16  Bruno Haible  <bruno@clisp.org>
9794
9795         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
9796         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
9797
9798 2010-09-16  Bruno Haible  <bruno@clisp.org>
9799
9800         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
9801         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
9802         login_tty exists.
9803         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9804
9805 2010-09-16  Bruno Haible  <bruno@clisp.org>
9806
9807         login_tty: Make the replacement code work on BSD systems.
9808         * lib/login_tty.c: Include <sys/ioctl.h>.
9809         (login_tty): Use ioctl TIOCSCTTY when available.
9810         * modules/login_tty (Depends-on): Add sys_ioctl.
9811         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9812
9813 2010-09-16  Bruno Haible  <bruno@clisp.org>
9814
9815         login_tty: Stricter unit test.
9816         * modules/login_tty-tests (Depends-on): Add tcgetsid.
9817         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
9818         and tcgetsid() after login_tty.
9819         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9820
9821 2010-09-16  Bruno Haible  <bruno@clisp.org>
9822
9823         New module 'tcgetsid'.
9824         * lib/tcgetsid.c: New file.
9825         * m4/tcgetsid.m4: New file.
9826         * modules/tcgetsid: New file.
9827         * modules/termios (Depends-on): Add c++defs, warn-on-use.
9828         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
9829         GNULIB_TCGETSID, HAVE_TCGETSID.
9830         * lib/termios.in.h: Include <sys/types.h>.
9831         (tcgetsid): New declaration.
9832         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
9833         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
9834         * doc/posix-functions/tcgetsid.texi: Mention the new module.
9835         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
9836
9837 2010-09-16  Bruno Haible  <bruno@clisp.org>
9838
9839         Tests for module 'termios'.
9840         * modules/termios-c++-tests: New file.
9841         * modules/termios-tests: New file.
9842         * tests/test-termios-c++.cc: New file.
9843         * tests/test-termios.c: New file.
9844
9845         New module 'termios'.
9846         * modules/termios: New file.
9847         * lib/termios.in.h: New file.
9848         * m4/termios_h.m4: New file.
9849         * doc/posix-headers/termios.texi: Mention the new module.
9850
9851 2010-09-16  Eric Blake  <eblake@redhat.com>
9852
9853         fdutimensat: add an atflag parameter
9854         * lib/fdutimensat.c (fdutimensat): Add new parameter.
9855         * lib/utimens.h (fdutimensat): Update prototype.
9856         * tests/test-fdutimensat.c: Adjust test to match.
9857         * NEWS: Document the change.
9858         Suggested by Paul Eggert.
9859
9860 2010-09-16  Bruno Haible  <bruno@clisp.org>
9861
9862         Fix typos in comments.
9863         * lib/striconveh.h: Fix typo in comment.
9864         * lib/login_tty.c (login_tty): Likewise.
9865
9866 2010-09-15  Bruno Haible  <bruno@clisp.org>
9867
9868         stdlib: clarify MirBSD WEXITSTATUS bug
9869         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
9870         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9871
9872 2010-09-15  Eric Blake  <eblake@redhat.com>
9873
9874         stdlib: work around MirBSD WEXITSTATUS bug
9875         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
9876         * modules/stdlib (Depends-on): Add sys_wait.
9877         * tests/test-sys_wait.c (main): Enhance test.
9878         * tests/test-stdlib.c (main): Likewise.
9879         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
9880
9881         docs: mention MacOS issue with WEXITSTATUS(constant)
9882         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
9883         issue.
9884         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9885
9886         strnlen: add tests
9887         * modules/strnlen-tests: New file.
9888         * tests/test-strnlen.c: Likewise.
9889
9890 2010-09-14  Bruno Haible  <bruno@clisp.org>
9891
9892         unistr/base: Avoid link errors when module 'libunistring' is also used.
9893         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
9894         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
9895         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
9896         Declare also when HAVE_LIBUNISTRING is set.
9897         Reported by Pádraig Brady <P@draigbrady.com>.
9898
9899 2010-09-14  Eric Blake  <eblake@redhat.com>
9900
9901         test-rawmemchr: make more robust
9902         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9903         (Depends-on, configure.ac): Add needed prerequisites to use it.
9904         * modules/memchr-tests (Files, Depends-on, configure.ac):
9905         Likewise, to avoid implicit reliance on memchr module prereqs.
9906         * tests/test-memchr.c (main): Ensure proper masking.
9907         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
9908         reads.
9909
9910         memchr: detect glibc Alpha bug
9911         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
9912         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
9913         Alpha.
9914         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
9915         * tests/test-memchr.c (main): Enhance test.
9916         Reported by Nelson H. F. Beebe.
9917
9918 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9919
9920         fts, getcwd, glob: audit for dirfd returning -1
9921         * lib/fts.c (opendir): Remove #define; no longer used.
9922         (opendirat): New arg PDIR_FD.  All callers changed.
9923         (fts_build, _opendir2): Use new opendirat to avoid the need for
9924         dirfd, or for checking whether dirfd returns a negative value.
9925         Don't use opendir; always use openat followed by fdopendir.
9926         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
9927         it.
9928         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
9929         returns -1 here.
9930         * modules/fts (Depends-on): Remove dirfd.
9931         * modules/getcwd (Depends-on): Likewise.
9932
9933 2010-09-13  Eric Blake  <eblake@redhat.com>
9934
9935         float: fix broken MirBSD header
9936         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
9937         * doc/posix-headers/float.texi (float.h): Document it.
9938
9939 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9940
9941         fts: use O_NOFOLLOW to avoid race condition when opening a directory
9942         * lib/fts.c (opendirat): New arg extra_flags.
9943         (__opendir2): Use it to avoid following symlinks when opening
9944         a directory, if symlinks are not supposed to be followed.  See
9945         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
9946
9947         fdopendir: preserve argument fd before returning
9948         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
9949         (fdopendir_with_dup, fd_clone_opendir): New static functions.
9950         (fdopendir): Use them, arranging for FD to be open to the same
9951         directory that it was when it started.  (It might be temporarily
9952         closed while fdopendir is running, so this not thread- or
9953         signal-safe.)  Be careful to do the right thing even when file
9954         descriptors are scarce and dup fails with errno == EMFILE.  See
9955         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
9956
9957 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
9958
9959         regex: Pass the system regex if its only problem is 32-bit regoff_t.
9960         * NEWS: Document change.
9961         * m4/regex.m4: Disable test for regoff_t size.
9962
9963 2010-09-13  Jim Meyering  <meyering@redhat.com>
9964
9965         fts: don't operate on an invalid file descriptor after failed dup
9966         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
9967         negative file descriptor.
9968
9969 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9970
9971         savedir: add streamsavedir, deprecate fdsavedir
9972         * NEWS: Mention deprecation of fdsavedir.
9973         * lib/savedir.c (streamsavedir): New extern function, whose name
9974         ends in "savedir" to be consistent with the others.  This differs
9975         from savedirstream in that it doesn't close its argument.  The
9976         next version of GNU tar will use this instead of fdsavedir, to
9977         avoid some race conditions and conserve file descriptors.
9978         (savedirstream): Reimplement as a wrapper around streamsavedir.
9979         (fdsavedir): Add a comment deprecating this function.  As far as
9980         I know, only GNU tar used it, and GNU tar doesn't need it any more.
9981         * lib/savedir.h (streamsavedir): New decl.
9982         (fdsavedir): Add a comment deprecating this.
9983
9984 2010-09-10  Bruno Haible  <bruno@clisp.org>
9985
9986         langinfo: Fix last commit.
9987         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
9988         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
9989         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9990
9991 2010-09-10  Bruno Haible  <bruno@clisp.org>
9992
9993         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
9994         * lib/progreloc.c (O_EXEC): Define fallback.
9995
9996 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9997
9998         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
9999         * NEWS: Document recent changes to fcntl-h.
10000         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
10001         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
10002         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
10003         Similarly for O_SEARCH; this last was already true, but not documented.
10004         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
10005         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
10006         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
10007         Likewise.
10008         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
10009         is zero, not whether it is defined.
10010         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
10011         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
10012         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
10013
10014 2010-09-10  Bruno Haible  <bruno@clisp.org>
10015
10016         langinfo, nl_langinfo: Fix for IRIX 5.3.
10017         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
10018         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
10019         HAVE_LANGINFO_YESEXPR.
10020         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
10021         HAVE_LANGINFO_YESEXPR.
10022         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
10023         HAVE_LANGINFO_T_FMT_AMPM is 0.
10024         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
10025         HAVE_LANGINFO_YESEXPR is 0.
10026         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
10027         NOEXPR.
10028         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
10029         * doc/posix-functions/nl_langinfo.texi: Likewise.
10030         Reported by Eric Blake.
10031
10032 2010-09-10  Bruno Haible  <bruno@clisp.org>
10033
10034         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
10035         * doc/glibc-functions/login_tty.texi: Mention the include file problem
10036         on FreeBSD 8.0 and OpenBSD 4.6.
10037         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
10038         * m4/pty_h.m4 (gl_PTY_H): Likewise.
10039         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
10040         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
10041         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
10042         ac_includes_default.
10043         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10044
10045 2010-09-09  Eric Blake  <eblake@redhat.com>
10046
10047         strsignal: work around NetBSD bug
10048         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
10049         * lib/string.in.h (includes): Likewise.
10050         * doc/posix-functions/strsignal.texi (strsignal): Document the
10051         bug.
10052         Reported by Nelson H. F. Beebe.
10053
10054         gnulib-tool: work with NetBSD /bin/sh
10055         * gnulib-tool (func_cache_var, func_cache_lookup_module)
10056         (func_get_description, func_get_comment, func_get_status)
10057         (func_get_notice, func_get_applicability, func_get_filelist)
10058         (func_get_dependencies, func_get_autoconf_early_snippet)
10059         (func_get_autoconf_snippet, func_get_automake_snippet)
10060         (func_get_include_directive, func_get_link_directive)
10061         (func_get_license, func_get_maintainer, func_import): Avoid
10062         shell syntax errors from parsing syntax extensions.
10063
10064 2010-09-09  Bruno Haible  <bruno@clisp.org>
10065
10066         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10067         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
10068         a reliable way to determine whether the 'alias' command works.
10069
10070 2010-09-08  Jim Meyering  <meyering@redhat.com>
10071
10072         init.sh: penalize a set-x-impaired shell; don't disqualify it
10073         * tests/init.sh: Too many shells corrupt application stderr when
10074         you set -x, so we can't afford to disqualify them, since at least
10075         on Irix-6.5, that would disqualify all bourne shells.
10076         Instead, use a two-pass approach.
10077         On the first pass, try to find a shell that meets the stricter
10078         condition that set -x does not corrupt stderr.
10079         If no shell meets the stricter condition, retest each candidate
10080         shell, but without that extra condition.  Finally, when
10081         VERBOSE=yes is requested and set -x might cause trouble, simply
10082         issue a warning and refrain from enabling debug output.
10083
10084 2010-09-08  Eric Blake  <eblake@redhat.com>
10085
10086         unsetenv: fix OpenBSD bug
10087         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
10088         * doc/posix-functions/unsetenv.texi (unsetenv): Update
10089         documentation.
10090         Reported by Jim Meyering.
10091
10092         strtod: work around IRIX 6.5 bug
10093         * lib/strtod.c (strtod): Reparse number on shorter string if
10094         exponent parse was invalid.
10095         * tests/test-strtod.c (main): Add check for "0x1p 2".
10096         Reported by Tom G. Christensen.
10097
10098         getopt: optimize previous patch
10099         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
10100         empty variable.  Speed up awk script.
10101         Reported by Paolo Bonzini.
10102
10103 2010-09-08  Jim Meyering  <meyering@redhat.com>
10104
10105         test.sh: disqualify shells for which set -x corrupts stderr
10106         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
10107         and OpenBSD 4.7.  They make it so with "set -x", environment settings
10108         appear in stderr output.  For example, this command:
10109             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
10110         prints "P=1" on those two systems:
10111
10112 2010-09-08  Bruno Haible  <bruno@clisp.org>
10113
10114         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10115         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
10116         commands, because some shells ignore redirections when there is an
10117         error in the command lookup.
10118         Reported by Eric Blake.
10119
10120 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
10121
10122         * lib/regex.h: Fix a mention of `regex_compile' (should be
10123         `re_compile_pattern').
10124         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
10125         (re_set_registers): Correct name of parameter in comment.
10126
10127         * doc/regex.texi: Add documentation for missing syntax flags.
10128         Remove commented-out documentation of defunct syntax option
10129         RE_NO_EMPTY_ALTS.
10130         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
10131         Add documentation of re_set_registers.
10132         Document trick to re-use a pattern buffer by setting fastmap manually.
10133         Update documentation of struct re_pattern_buffer per public members.
10134         Uncomment documentation of equivalence class operators and
10135         collating symbol operators, since they are now implemented,
10136         Explain leftmost-longest matching in relation to alternatives.
10137         Tidy documentation of substring matching.
10138         Remove POSIX documentation, which is done better in
10139         glibc, and refer the reader there. Keep BSD API documentation, as
10140         that is not readily available elsewhere.
10141
10142 2010-09-07  Eric Blake  <eblake@redhat.com>
10143
10144         getopt: handle POSIXLY_CORRECT set but not exported
10145         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
10146         export state of POSIXLY_CORRECT, due to bash set -o posix.
10147         Reported by Dustin J. Mitchell.
10148
10149 2010-09-05  Bruno Haible  <bruno@clisp.org>
10150
10151         gnulib-tool: Highlight the changed options.
10152         * gnulib-tool (func_usage): Display the --import, --add-import,
10153         --remove-import explanations in bold font.
10154
10155 2010-09-06  Karl Berry  <karl@gnu.org>
10156
10157         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
10158
10159 2010-09-05  Bruno Haible  <bruno@clisp.org>
10160
10161         uniwidth/width: Update comment.
10162         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
10163         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
10164
10165 2010-09-05  Bruno Haible  <bruno@clisp.org>
10166
10167         isinf, isnan: Relax license.
10168         * modules/isinf (License): Change from GPL to LGPL, with consent from
10169         Ben Pfaff.
10170         * modules/isnan (License): Likewise.
10171         Requested by Ludovic Courtès.
10172
10173 2010-09-04  Bruno Haible  <bruno@clisp.org>
10174
10175         gnulib-tool: Help migration from --import to --add-import or --update.
10176         * gnulib-tool: Emit a verbose error message when --import is used
10177         without any module name.
10178
10179 2010-09-04  Bruno Haible  <bruno@clisp.org>
10180
10181         Update doc about gnulib-tool.
10182         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
10183         'gnulib-tool --update' in more detail.
10184         Reported by Eric Blake.
10185
10186 2010-09-04  Bruno Haible  <bruno@clisp.org>
10187
10188         gnulib-tool: Change --import. New options --add/remove-import.
10189         * gnulib-tool: New options --add-import, --remove-import.
10190         (func_usage): Document them.
10191         (have_associative): Define always.
10192         (func_import): In import mode, don't merge the specified settings with
10193         the cached settings. Implement remove-import mode.
10194         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
10195         Explain when to use them versus --import.
10196         (Simple update): Use --add-import instead of --import.
10197         * NEWS: Mention the change.
10198
10199 2010-09-04  Bruno Haible  <bruno@clisp.org>
10200
10201         * doc/gnulib-tool.texi (Initial import): Update paragraph about
10202         separate gnulib.mk.
10203
10204 2010-09-04  Bruno Haible  <bruno@clisp.org>
10205
10206         gnulib-tool: Don't talk about CVS any more.
10207         * gnulib-tool (func_usage, func_import): Write "version control"
10208         instead of CVS.
10209
10210 2010-09-04  Jim Meyering  <meyering@redhat.com>
10211
10212         maint.mk: avoid obscure sc_copyright_check failure in coreutils
10213         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
10214         false positives (whose names may be ill-chosen) when searching
10215         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
10216         would cause a false-positive.
10217
10218         avoid coreutils "make distcheck" failure
10219         Coreutils tests with an absolute build directory name that contains
10220         a space.  Not quoting this directory name caused a failure.
10221         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
10222         * tests/test-vc-list-files-cvs.sh: Likewise.
10223
10224 2010-09-04  Bruno Haible  <bruno@clisp.org>
10225
10226         gnulib-tool: Avoid error when run in a package without Makefile.am.
10227         * gnulib-tool: When collecting the m4dirs in a package that does not
10228         have a Makefile.am, eliminate those directories that contain no
10229         gnulib-cache.m4. Fix expression that counts these directories.
10230
10231 2010-09-04  Bruno Haible  <bruno@clisp.org>
10232
10233         update-copyright test: Improve output when perl is missing or too old.
10234         * tests/test-update-copyright.sh: Move test of Perl version down after
10235         the test whether Perl exists. Provide an explanation relating Perl's
10236         error message to Automake's SKIP: message.
10237
10238 2010-09-04  Bruno Haible  <bruno@clisp.org>
10239
10240         Don't augment PATH in TESTS_ENVIRONMENT.
10241         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
10242         set abs_aux_dir instead of augmenting PATH.
10243         * modules/vc-list-files-tests (Makefile.am): Likewise.
10244         * tests/test-update-copyright.sh: Augment PATH here.
10245         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
10246         path_prepend_.
10247         * tests/test-vc-list-files-git.sh: Likewise.
10248
10249 2010-09-04  Jim Meyering  <meyering@redhat.com>
10250
10251         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
10252         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
10253
10254 2010-09-04  Bruno Haible  <bruno@clisp.org>
10255
10256         strdup: Fix compilation error in C++ mode.
10257         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
10258         the macro.
10259
10260 2010-09-04  Bruno Haible  <bruno@clisp.org>
10261
10262         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
10263         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
10264         macro into a function.
10265         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10266
10267 2010-09-04  Bruno Haible  <bruno@clisp.org>
10268
10269         Set PATH_SEPARATOR the same way autoconf does.
10270         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
10271         the value of PATH_SEPARATOR the same way autoconf-generated configure
10272         scripts do.
10273         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
10274         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
10275
10276 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10277
10278         Set PATH_SEPARATOR the same way autoconf does.
10279         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
10280         the same way autoconf-generated configure scripts do.
10281         * posix-modules: Likewise.
10282
10283 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10284
10285         hash: fix safe_hasher const typo
10286         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
10287         const; otherwise, there is a type error later.
10288
10289 2010-09-02  Jim Meyering  <meyering@redhat.com>
10290
10291         test-update-copyright.sh: require perl 5.8.0
10292         * tests/test-update-copyright.sh: Require 5.8.0,
10293         which Tom G. Christensen has confirmed is adequate,
10294         while 5.6.1 is not.
10295
10296 2010-09-02  Eric Blake  <eblake@redhat.com>
10297
10298         tests: init.sh improvements for re-exec'ing with zsh
10299         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
10300         -vx through shell re-exec.
10301         Reported by Tom G. Christensen.
10302
10303         wctype: fix typo in previous commit
10304         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
10305         Reported by Ludovic Courtès.
10306
10307 2010-09-02  Jim Meyering  <meyering@redhat.com>
10308
10309         test-update-copyright.sh: skip test if Perl is too old
10310         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
10311         Reported by Tom G. Christensen.
10312
10313 2010-09-02  Bruno Haible  <bruno@clisp.org>
10314
10315         wctype: Avoid compilation error on IRIX 6.5.30.
10316         * lib/wctype.in.h (iswblank): Declare with a replacement if
10317         REPLACE_ISWBLANK is set.
10318         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
10319         declared. Set REPLACE_ISWBLANK.
10320         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
10321         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
10322         * doc/posix-headers/wctype.texi: Likewise.
10323         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10324
10325 2010-09-01  Bruno Haible  <bruno@clisp.org>
10326
10327         New module 'socketlib'.
10328         * modules/socketlib: New file.
10329         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
10330         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
10331         * modules/sockets (Depends-on): Add socketlib.
10332         Suggested by Sam Steingold <sds@gnu.org>.
10333
10334 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10335
10336         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
10337
10338         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
10339         when one needs search access to a directory but not read access.
10340         On systems where it is available, it works in some cases where
10341         O_RDONLY does not, namely on directories that are searchable but
10342         not readable, and which need only to be searchable.  If O_SEARCH
10343         is not available, fall back to the traditional method of using
10344         O_RDONLY.
10345
10346         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
10347         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
10348         when opening a directory that needs only to be searchable.
10349         * lib/chdir-safer.c (chdir_no_follow): Likewise.
10350         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
10351         * lib/openat-proc.c (openat_proc_name): Likewise.
10352         * lib/openat.c (openat_needs_fchdir): Likewise.
10353         * lib/save-cwd.c (save_cwd): Likewise.
10354         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
10355
10356 2010-08-28  Bruno Haible  <bruno@clisp.org>
10357
10358         New module 'host-cpu-c-abi'.
10359         * modules/host-cpu-c-abi: New file.
10360         * m4/host-cpu-c-abi.m4: New file, based on part of
10361         clisp/src/m4/general.m4.
10362         Requested by Sam Steingold <sds@gnu.org>.
10363
10364 2010-08-31  Eric Blake  <eblake@redhat.com>
10365         and Jim Meyering  <meyering@redhat.com>
10366
10367         hash: factor, and guard against misbehaving hasher function
10368         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
10369         of table->hasher's return value.  Also protect against a hash value
10370         so large that adding it to table->bucket results in a NULL pointer.
10371         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
10372         Use it in place of open-coded check-and-abort.
10373
10374 2010-08-30  Bruno Haible  <bruno@clisp.org>
10375
10376         hash: silence spurious clang warning
10377         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
10378         Reported by Eric Blake.
10379
10380 2010-08-30  Eric Blake  <eblake@redhat.com>
10381
10382         strstr, memmem, strcasestr: avoid leaked shell message
10383         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
10384         FreeBSD.
10385         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10386         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10387
10388         tests: silence clang warning
10389         * tests/test-malloca.c (do_allocation): Avoid dead store.
10390
10391 2010-08-29  Bruno Haible  <bruno@clisp.org>
10392
10393         gettext: Fix recent mistake.
10394         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
10395
10396 2010-08-29  Bruno Haible  <bruno@clisp.org>
10397
10398         selinux-h: Offer a --without-selinux option.
10399         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
10400         --without-selinux was specified, skip all tests and define
10401         HAVE_SELINUX_SELINUX_H to 0.
10402         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
10403         set LIB_SELINUX to empty.
10404         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
10405         gl_LIBSELINUX. If --without-selinux was specified, replace
10406         selinux/context.h.
10407         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
10408
10409 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10410             Bruno Haible  <bruno@clisp.org>
10411
10412         Make the module 'realloc-gnu' work again on AIX and OSF/1.
10413         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
10414         of HAVE_REALLOC.
10415         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
10416         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
10417         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
10418         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10419
10420 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10421             Bruno Haible  <bruno@clisp.org>
10422
10423         Make the module 'calloc-gnu' work again on AIX and OSF/1.
10424         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
10425         HAVE_CALLOC.
10426         * lib/xmalloc.c: Update accordingly.
10427         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
10428         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
10429         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
10430
10431 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10432             Bruno Haible  <bruno@clisp.org>
10433
10434         Make the module 'malloc-gnu' work again on AIX and OSF/1.
10435         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
10436         HAVE_MALLOC.
10437         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
10438         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
10439         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10440
10441 2010-08-29  Bruno Haible  <bruno@clisp.org>
10442
10443         Update modules list.
10444         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
10445         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
10446         (String handling <string.h>): Add astrxfrm.
10447         (File system functions): Add readlinkat.
10448
10449 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10450
10451         Tests for module 'realloc-gnu'.
10452         * modules/realloc-gnu-tests: New file.
10453         * tests/test-realloc-gnu.c: New file.
10454
10455         Tests for module 'calloc-gnu'.
10456         * modules/calloc-gnu-tests: New file.
10457         * tests/test-calloc-gnu.c: New file.
10458
10459         Tests for module 'malloc-gnu'.
10460         * modules/malloc-gnu-tests: New file.
10461         * tests/test-malloc-gnu.c: New file.
10462
10463 2010-08-28  Bruno Haible  <bruno@clisp.org>
10464
10465         Rename module 'realloc' -> 'realloc-gnu'.
10466         * modules/realloc-gnu: New file, copied from modules/realloc.
10467         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
10468         obsolete.
10469         * modules/mgetgroups (Depends-on): Update.
10470         * doc/posix-functions/realloc.texi: Update.
10471         * NEWS: Mention the change.
10472
10473         Rename module 'calloc' -> 'calloc-gnu'.
10474         * modules/calloc-gnu: New file, copied from modules/calloc.
10475         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
10476         obsolete.
10477         * doc/posix-functions/calloc.texi: Update.
10478         * NEWS: Mention the change.
10479
10480         Rename module 'malloc' -> 'malloc-gnu'.
10481         * modules/malloc-gnu: New file, copied from modules/malloc.
10482         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
10483         obsolete.
10484         * modules/argp (Depends-on): Update.
10485         * modules/regex (Depends-on): Update.
10486         * doc/posix-functions/malloc.texi: Update.
10487         * NEWS: Mention the change.
10488
10489 2010-08-28  Eric Blake  <eblake@redhat.com>
10490
10491         pread, pwrite: add missing dependency
10492         * modules/pread (Depends-on): Add extensions.
10493         * modules/pwrite (Depends-on): Likewise.
10494
10495 2010-08-28  Bruno Haible  <bruno@clisp.org>
10496
10497         unistr/u*-strchr: Fix tests dependencies.
10498         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
10499         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
10500         Reported by Ian Beckwith <ianb@erislabs.net>.
10501
10502 2010-08-28  Bruno Haible  <bruno@clisp.org>
10503
10504         read-file: Don't occupy too much unused memory.
10505         * lib/read-file.c (fread_file): Shrink the buffer at the end.
10506
10507 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
10508             Eric Blake  <eblake@redhat.com>
10509             Bruno Haible  <bruno@clisp.org>
10510
10511         read-file: Avoid memory reallocations with regular files.
10512         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
10513         (fread_file): With regular files, use the remaining length as the
10514         initial buffer size.  Check against overflow.
10515         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
10516         sys_stat.
10517
10518 2010-08-28  Bruno Haible  <bruno@clisp.org>
10519
10520         ftello: Relax license.
10521         * modules/ftello (License): Relax to LGPLv2+.
10522         Reported by Eric Blake.
10523
10524 2010-08-28  Bruno Haible  <bruno@clisp.org>
10525
10526         Avoid relocwrapper link errors due to gnulib replacement functions.
10527         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
10528         function.
10529         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10530
10531 2010-08-28  Bruno Haible  <bruno@clisp.org>
10532
10533         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
10534         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
10535         defined.
10536         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
10537         Suggested by Eric Blake.
10538
10539 2010-08-28  Bruno Haible  <bruno@clisp.org>
10540
10541         sys_socket, netdb: Ensure socklen_t gets defined.
10542         * modules/sys_socket (Depends-on): Add socklen.
10543         * modules/netdb (Depends-on): Likewise.
10544         * modules/getaddrinfo (Depends-on): Remove socklen.
10545         * modules/getsockopt (Depends-on): Likewise.
10546         * modules/setsockopt (Depends-on): Likewise.
10547         * tests/test-sys_socket.c: Check that socklen_t is defined.
10548         * tests/test-netdb.c: Likewise.
10549         * m4/socklen.m4: Update comments.
10550         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10551
10552 2010-08-27  Eric Blake  <eblake@redhat.com>
10553
10554         login_tty: add missing dependency
10555         * modules/login_tty (Depends-on): Add pty.
10556
10557 2010-08-26  Eric Blake  <eblake@redhat.com>
10558
10559         lib-symbol-versions: fix m4 quoting
10560         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
10561         format for AC_LINK_IFELSE.
10562
10563         glob: fix compile test
10564         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
10565
10566         btowc: fix missing file
10567         * modules/btowc (Files): Also ship locale-fr.m4.
10568
10569         lseek: fix link test
10570         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
10571         AC_LINK_IFELSE.
10572
10573         include_next: silence autoconf 2.68 warning
10574         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
10575         AC_COMPILE_IFELSE as special.
10576         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
10577         autoconf < 2.68.
10578
10579         acl: fix compilation test
10580         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
10581         AC_COMPILE_IFELSE.
10582
10583 2010-08-26  Bruno Haible  <bruno@clisp.org>
10584
10585         Modernize AC_TRY_RUN invocations.
10586         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
10587         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10588         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
10589         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
10590         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
10591         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10592         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10593         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10594         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10595         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10596         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10597         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10598         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10599         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10600         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10601         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10602         gl_MBRLEN_NUL_RETVAL): Likewise.
10603         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10604         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10605         Likewise.
10606         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10607         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10608         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10609         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10610         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
10611         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
10612         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
10613         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10614         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
10615         Likewise.
10616         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
10617         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
10618         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10619         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10620         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10621         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10622         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10623         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
10624         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10625         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10626
10627 2010-08-26  Bruno Haible  <bruno@clisp.org>
10628
10629         Modernize AC_TRY_LINK invocations.
10630         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
10631         AC_TRY_LINK.
10632         * m4/argp.m4 (gl_ARGP): Likewise.
10633         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10634         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10635         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10636         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10637         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10638         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
10639         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10640         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10641         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10642         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
10643         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10644         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
10645         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
10646         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10647         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
10648         * m4/hostent.m4 (gl_HOSTENT): Likewise.
10649         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10650         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
10651         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
10652         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
10653         Likewise.
10654         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
10655         Likewise.
10656         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
10657         Likewise.
10658         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
10659         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
10660         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
10661         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10662         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10663         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10664         * m4/servent.m4 (gl_SERVENT): Likewise.
10665         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10666         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10667         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10668         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10669         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10670         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10671         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10672         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10673         * modules/tsearch-tests (configure.ac): Likewise.
10674
10675 2010-08-26  Bruno Haible  <bruno@clisp.org>
10676
10677         Modernize AC_TRY_COMPILE invocations.
10678         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
10679         AC_TRY_COMPILE.
10680         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
10681         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
10682         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
10683         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
10684         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
10685         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
10686         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10687         * m4/lock.m4 (gl_LOCK): Likewise.
10688         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
10689         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10690         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
10691         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
10692         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
10693         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
10694         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
10695         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
10696         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
10697         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
10698         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
10699         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
10700         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
10701         extraneous semicolon.
10702
10703 2010-08-26  Jim Meyering  <meyering@redhat.com>
10704
10705         stat-time: relax license LGPL
10706         * modules/stat-time (License): Change from GPL to LGPL,
10707         with consent from all contributors, for use in libguile.
10708         Requested by Ludovic Courtès.
10709
10710 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
10711
10712         poll: return immediately on POLLHUP.
10713         * lib/poll.c (poll): Always set timeout before wait_timeout is
10714         computed.
10715
10716 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10717
10718         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
10719         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
10720         rmdir ("dir/.//"), unlinkat.
10721
10722 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10723
10724         stdbool: avoid spurious failure with modern xlc
10725         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10726
10727 2010-08-24  Bruno Haible  <bruno@clisp.org>
10728
10729         getloadavg: simplify code
10730         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
10731         gl_have_func. Update comments.
10732
10733 2010-08-24  Eric Blake  <eblake@redhat.com>
10734
10735         getloadavg: don't define SVR4 on cygwin
10736         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
10737         only define SVR4 when -lkvm is required.
10738         Reported by Yaakov Selkowitz.
10739
10740 2010-08-24  Bruno Haible  <bruno@clisp.org>
10741
10742         priv-set: fix comment
10743         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
10744
10745 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10746
10747         priv-set: fix comments
10748         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
10749         to match code, as suggested by David Bartley in:
10750         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
10751
10752 2010-08-23  Eric Blake  <eblake@redhat.com>
10753
10754         stdbool: avoid rejecting clang
10755         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10756         * tests/test-stdbool.c: Enable more tests if using the system
10757         <stdbool.h> instead of the gnulib replacement.
10758         (main): Move xlc bug test to a runtime test for all compilers.
10759         Reported by Anders Kaseorg.
10760
10761         argz: fix shell quoting issue
10762         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
10763         Reported by Charles Wilson.
10764
10765 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
10766             Erik Faye-Lund <kusmabite@gmail.com>
10767
10768         poll, select: handle ERROR_BROKEN_PIPE.
10769         * lib/poll.c (win32_compute_revents): Return POLLHUP when
10770         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10771         * lib/select.c (win32_compute_revents): Do not mark a pipe
10772         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10773
10774 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
10775
10776         fts: allow compilation with C++
10777         * lib/fts_.h: Specify extern "C" linkage with C++.
10778
10779 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10780
10781         Fix gnulib-tool sed script de-commentation for AIX sed.
10782         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
10783         sed.
10784
10785 2010-08-17  Eric Blake  <eblake@redhat.com>
10786
10787         test-stddef: test for (some) offsetof bugs
10788         * tests/test-stddef.c: Enhance test to ensure correct type of
10789         offsetof.
10790         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
10791         that we are not fixing at this time.
10792
10793 2010-08-15  Bruno Haible  <bruno@clisp.org>
10794
10795         stpncpy: Allow stpncpy to be defined as a macro.
10796         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
10797         if it's already correctly declared.
10798         * lib/string.in.h (stpncpy): Undefine before redefining.
10799         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
10800
10801 2010-08-14  Bruno Haible  <bruno@clisp.org>
10802
10803         Rename module 'memxfrm' to 'amemxfrm'.
10804         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
10805         (amemxfrm): Renamed from memxfrm.
10806         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
10807         (amemxfrm): Renamed from memxfrm.
10808         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
10809         * NEWS: Mention the change.
10810         * MODULES.html.sh (String handling <string.h>): Update.
10811         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
10812         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
10813         * lib/unicase/u16-casexfrm.c: Likewise.
10814         * lib/unicase/u32-casexfrm.c: Likewise.
10815         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
10816         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
10817         * lib/uninorm/u16-normxfrm.c: Likewise.
10818         * lib/uninorm/u32-normxfrm.c: Likewise.
10819         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
10820         memxfrm.
10821         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
10822         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
10823         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
10824         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
10825         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
10826         Suggested by Paul Eggert.
10827
10828 2010-08-14  Bruno Haible  <bruno@clisp.org>
10829
10830         Tests for module 'astrxfrm'.
10831         * modules/astrxfrm-tests: New file.
10832         * tests/test-astrxfrm.c: New file.
10833
10834         New module 'astrxfrm'.
10835         * lib/astrxfrm.h: New file.
10836         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
10837         * modules/astrxfrm: New file.
10838
10839 2010-08-14  Reuben Thomas <rrt@sc3d.org>
10840
10841         regex: Tweak doc.
10842         * doc/regex.texi (Overview): Don't mention regex.c.
10843         (GNU Regular Expression Compiling): Likewise.
10844         (Match-end-of-line Operator): Mention 'not_eol'.
10845
10846 2010-08-14  Brian Gough  <bjg@gnu.org>
10847             Bruno Haible  <bruno@clisp.org>
10848
10849         git-merge-changelog: add doc relating to use with bzr and hg.
10850         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
10851
10852 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
10853
10854         pthread: fix pthread.h creation for srcdir != builddir
10855         * modules/pthread (Makefile.am): Fix the rule to work also in a
10856         non-srcdir build.
10857
10858 2010-08-13  Karl Berry  <karl@gnu.org>
10859
10860         * doc/regex.texi (Predefined Syntaxes): @smallexample.
10861         * doc/posix-*/*: force line break before @url of POSIX
10862         specifications.
10863         Suggested by Werner Lemberg.
10864
10865 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10866
10867         strtod: fix const diagnostic
10868         * lib/strtod.c (strtod): Don't assign const char * to char *,
10869         as this elicits a warning from GCC when warnings are enabled.
10870
10871 2010-08-10  Pádraig Brady <P@draigbrady.com>
10872         and Eric Blake  <eblake@redhat.com>
10873
10874         copy-acl: ignore ENOTSUP on HP-UX
10875         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
10876         so that it is available for HP-UX.
10877         * lib/copy-acl.c (qcopy_acl): Use it.
10878         Reported by Patrick M. Callahan.
10879
10880 2010-08-10  Eric Blake  <eblake@redhat.com>
10881
10882         open, chown: relax license
10883         * modules/open (License): Change to LGPLv2+, with consent by all
10884         authors, for use in augeas.
10885         * modules/chown (License): Likewise.
10886         * modules/lchown (Likewise): Likewise.
10887         Requested by Adam Stokes.
10888
10889 2010-08-09  Karl Berry  <karl@gnu.org>
10890
10891         * build-aux/ar-lib: new file, import from Automake.
10892         * config/srclist.txt: autocheck for updates.
10893
10894 2010-08-09  Eric Blake  <eblake@redhat.com>
10895
10896         readlinkat: adjust client modules
10897         * modules/areadlinkat (Depends-on): Use readlinkat, not
10898         symlinkat.
10899         * modules/areadlinkat-with-size (Depends-on): Likewise.
10900
10901         mknod: be more vocal about danger of running tests as root
10902         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10903         root, since that is just asking for problems.
10904         Suggested by Bruno Haible, based on a report by Rainer Tammer.
10905
10906         readlinkat: split into its own module
10907         * modules/symlinkat: Split readlinkat...
10908         * modules/readlinkat: ...into separate module.
10909         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
10910         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
10911         * lib/symlinkat.c (readlinkat): Move...
10912         * lib/readlinkat.c: ...into new file.
10913         * modules/symlinkat-tests: Split readlinkat test...
10914         * modules/readlinkat-tests: ...into separate module.
10915         * tests/test-symlinkat.c: Split...
10916         * tests/test-readlinkat.c: ...into new file.
10917         * NEWS: Document the split.
10918         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10919         * lib/unistd.in.h (readlinkat): Likewise.
10920         Suggested by Bruno Haible.
10921
10922 2010-08-08  Bruno Haible  <bruno@clisp.org>
10923
10924         memxfrm: Speed up.
10925         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
10926         that usually only one call to strxfrm is necessary for each string
10927         part.
10928         Reported by Paul Eggert <eggert@cs.ucla.edu>.
10929
10930 2010-08-07  Karl Berry  <karl@gnu.org>
10931
10932         * doc/posix-headers/limits.texi,
10933         * doc/posix-functions/malloc.texi,
10934         * doc/posix-functions/strsignal.texi: missing @item.
10935         * doc/ld-version-script.texi: spurious leading i.
10936         * doc/regex.texi (Interval Operators): no commas inside @var.
10937
10938 2010-08-01  Bruno Haible  <bruno@clisp.org>
10939
10940         Integrate the regex documentation.
10941         * doc/gnulib.texi: Define 'cn' index.
10942         (Regular expressions): New a chapter that includes regex.texi and
10943         regexprops-generic.texi.
10944         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
10945         syntax.
10946
10947         Whitespace cleanup.
10948         * doc/regex.texi: Remove trailing spaces.
10949
10950         Add regex documentation.
10951         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
10952         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
10953         Written by Kathy A. Hargreaves and Karl Berry.
10954
10955 2010-08-01  Bruno Haible  <bruno@clisp.org>
10956
10957         link: Update documentation.
10958         * doc/posix-functions/link.texi: Update regarding Solaris.
10959
10960 2010-07-31  Bruno Haible  <bruno@clisp.org>
10961
10962         Update modules list.
10963         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
10964         (String handling <string.h>): Add memcmp2, memxfrm.
10965         (Container data structures): Add xlist, xsublist, xoset.
10966         (Core language properties): Add alignof, unused-parameter.
10967         (Process control, Numeric conversion functions <stdlib.h>): Renamed
10968         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
10969         (Unibyte characters <ctype.h>): New section.
10970         (String handling <string.h>): New section.
10971         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
10972         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
10973         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
10974         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
10975         tan, tanh, tanl, y0, y1, yn.
10976         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
10977         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
10978         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
10979         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
10980         unlockpt, vdprintf, vdprintf-posix.
10981         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
10982         (File system functions): Add concat-filename, sys_file, sys_ioctl,
10983         xconcat-filename.
10984         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
10985         getdtablesize, pipe2, pipe2-safer.
10986         (Security): New section.
10987         (Networking functions): Add accept4.
10988         (Signal handling): Add sigpipe.
10989         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
10990         mbmemcasecoll.
10991         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
10992         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
10993         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
10994         pipe-filter-ii.
10995         (Misc): Add argp-version-etc, login_tty, parse-duration.
10996
10997 2010-07-31  Bruno Haible  <bruno@clisp.org>
10998
10999         Improve doc in MODULES.html.
11000         * modules/linkat (Description): Add the word "function".
11001         * modules/mkfifo (Description): Likewise.
11002         * modules/mknod (Description): Likewise.
11003         * modules/remove (Description): Likewise.
11004         * modules/renameat (Description): Likewise.
11005         * modules/stat (Description): Likewise.
11006         * modules/symlink (Description): Likewise.
11007         * modules/unlink (Description): Likewise.
11008
11009 2010-07-31  Bruno Haible  <bruno@clisp.org>
11010
11011         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
11012         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
11013         option --enable/disable-c++ instead of --enable/disable-cxx.
11014         * NEWS: Mention the change.
11015
11016 2010-07-31  Bruno Haible  <bruno@clisp.org>
11017
11018         readlink, areadlink: Relax test a bit.
11019         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
11020         alternative to ENOTDIR.
11021         * tests/test-areadlink.h (test_areadlink): Likewise.
11022         Reported by Rainer Tammer.
11023
11024 2010-07-31  Bruno Haible  <bruno@clisp.org>
11025
11026         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
11027         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
11028         character, perform the search using U_STRCHR.
11029         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
11030         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
11031         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
11032         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
11033         Suggested by Paolo Bonzini.
11034
11035 2010-07-31  Bruno Haible  <bruno@clisp.org>
11036
11037         unistr/u*-strstr: Fix dependencies.
11038         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
11039         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
11040         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
11041
11042 2010-07-31  Bruno Haible  <bruno@clisp.org>
11043
11044         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
11045         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
11046         the beginning of the loop.
11047         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
11048         cases in 'switch' statement.
11049
11050         unistr/u8-strchr: Fix several bugs.
11051         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
11052         the string. When not found, return NULL, not a pointer near the end.
11053
11054         More tests for unistr/u8-strchr.
11055         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
11056         that the function does not read past the first occurrence of the byte
11057         being searched.
11058         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
11059         * tests/unistr/test-u16-strchr.c (main): New function.
11060         * tests/unistr/test-u32-strchr.c (main): New function.
11061
11062 2010-07-31  Bruno Haible  <bruno@clisp.org>
11063
11064         posix-modules: Ignore backup files of documentation files.
11065         * posix-modules: grep only through files named *.texi.
11066
11067 2010-07-31  Bruno Haible  <bruno@clisp.org>
11068
11069         symlinkat: Fix documentation.
11070         * doc/posix-functions/readlinkat.texi: Fix module name.
11071
11072 2010-07-31  Bruno Haible  <bruno@clisp.org>
11073
11074         fchownat: Replace also when chown has the trailing slash bug.
11075         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
11076         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
11077         introduced on 2010-04-10.
11078         Reported by Rainer Tammer.
11079
11080 2010-07-31  Bruno Haible  <bruno@clisp.org>
11081
11082         linkat: Work around AIX 7.1 bug.
11083         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
11084         whether linkat handles trailing slash correctly. If not, replace linkat
11085         and define LINKAT_TRAILING_SLASH_BUG.
11086         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
11087         check whether (fd1,file1) points to a directory if file1 or file2 ends
11088         in a slash. Code taken from lib/link.c.
11089         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
11090         Reported by Rainer Tammer.
11091
11092 2010-07-31  Bruno Haible  <bruno@clisp.org>
11093
11094         Correctly determine whether pow is available in libc on AIX 7 with xlc.
11095         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
11096         This disables an xlc optimization that was causing wrong test results.
11097         Reported by Rainer Tammer.
11098
11099 2010-07-31  Bruno Haible  <bruno@clisp.org>
11100
11101         iconv: Work around AIX 6.1..7.1 bug.
11102         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
11103         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
11104         cross-compiling, guess no on all versions of AIX.
11105         Reported by Rainer Tammer.
11106
11107 2010-07-31  Bruno Haible  <bruno@clisp.org>
11108
11109         readlink: Relax test a bit.
11110         * tests/test-readlink.h (test_readlink): Allow different errno value
11111         when readlink is called with a file name that ends in / and refers to
11112         a file.
11113         Suggested by Eric Blake.
11114         Reported by Rainer Tammer.
11115
11116 2010-07-31  Bruno Haible  <bruno@clisp.org>
11117
11118         copysign: Does not require -lm on glibc systems.
11119         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
11120         gl_COMMON_DOUBLE_MATHFUNC.
11121         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
11122
11123 2010-07-31  Bruno Haible  <bruno@clisp.org>
11124
11125         duplocale: Work around AIX 7.1 bug.
11126         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
11127         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
11128         * lib/duplocale.c (rpl_duplocale): Update comment.
11129         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
11130         Reported by Rainer Tammer.
11131
11132 2010-07-30  Bruno Haible  <bruno@clisp.org>
11133
11134         dirfd: Avoid link error on AIX 7.1.
11135         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
11136         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
11137         exist, set REPLACE_DIRFD.
11138         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
11139         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
11140         * doc/posix-functions/dirfd.texi: Update.
11141         Reported by Rainer Tammer.
11142
11143 2010-07-30  Eric Blake  <eblake@redhat.com>
11144
11145         strtod: next round of AIX fixes
11146         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
11147         exponent.
11148         * tests/test-strtod.c (main): Enhance tests.
11149         * doc/posix-functions/strtod.texi (strtod): Document next bug.
11150         Reported by Rainer Tammer.
11151
11152         futimens: fix configure check
11153         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
11154         Reported by Bruno Haible.
11155
11156 2010-07-30  Bruno Haible  <bruno@clisp.org>
11157
11158         getline: Update regarding AIX.
11159         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
11160         Reported by Rainer Tammer.
11161
11162 2010-07-30  Bruno Haible  <bruno@clisp.org>
11163
11164         wcwidth: Drop replacement on AIX 7.
11165         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
11166         AIX 7.
11167         Reported by Rainer Tammer.
11168
11169 2010-07-30  Bruno Haible  <bruno@clisp.org>
11170
11171         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
11172         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
11173         a 'char *'.
11174         Reported by Rainer Tammer.
11175
11176 2010-07-30  Bruno Haible  <bruno@clisp.org>
11177
11178         unlink: Update regarding AIX.
11179         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
11180         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
11181         Reported by Rainer Tammer.
11182
11183 2010-07-30  Bruno Haible  <bruno@clisp.org>
11184
11185         symlink: Update regarding AIX.
11186         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
11187         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
11188         Reported by Rainer Tammer.
11189
11190 2010-07-30  Bruno Haible  <bruno@clisp.org>
11191
11192         strndup: Update regarding AIX.
11193         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
11194         AIX 7.
11195         Reported by Rainer Tammer.
11196
11197 2010-07-30  Bruno Haible  <bruno@clisp.org>
11198
11199         stat: Update regarding AIX.
11200         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
11201         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
11202         Reported by Rainer Tammer.
11203
11204 2010-07-30  Bruno Haible  <bruno@clisp.org>
11205
11206         truncl: Fix autoconf test.
11207         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
11208         whether truncl works.
11209         Reported by Rainer Tammer.
11210
11211 2010-07-30  Bruno Haible  <bruno@clisp.org>
11212
11213         round: Update regarding AIX.
11214         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
11215         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
11216         Reported by Rainer Tammer.
11217
11218 2010-07-30  Bruno Haible  <bruno@clisp.org>
11219
11220         rename: Update regarding AIX.
11221         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
11222         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
11223         Reported by Rainer Tammer.
11224
11225 2010-07-30  Bruno Haible  <bruno@clisp.org>
11226
11227         printf.m4: Update regarding AIX.
11228         * m4/printf.m4: Update comments regarding AIX.
11229         Reported by Rainer Tammer.
11230
11231 2010-07-30  Bruno Haible  <bruno@clisp.org>
11232
11233         iconv: Update regarding AIX.
11234         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
11235         AIX 7.
11236         Reported by Rainer Tammer.
11237
11238 2010-07-30  Bruno Haible  <bruno@clisp.org>
11239
11240         getopt: Update regarding AIX.
11241         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
11242         no on AIX.
11243         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
11244         Reported by Rainer Tammer.
11245
11246 2010-07-30  Bruno Haible  <bruno@clisp.org>
11247
11248         ldexpl; Update regarding AIX.
11249         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
11250         on AIX 7.
11251         Reported by Rainer Tammer.
11252
11253 2010-07-30  Bruno Haible  <bruno@clisp.org>
11254
11255         frexpl: Update regarding AIX.
11256         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
11257         on AIX 7.
11258         Reported by Rainer Tammer.
11259
11260 2010-07-30  Bruno Haible  <bruno@clisp.org>
11261
11262         open, fopen: Update regarding AIX.
11263         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
11264         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11265         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
11266         * doc/posix-functions/fopen.texi: Likewise.
11267         Reported by Rainer Tammer.
11268
11269 2010-07-30  Bruno Haible  <bruno@clisp.org>
11270
11271         chown: Update doc regarding AIX.
11272         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
11273         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
11274         Reported by Rainer Tammer.
11275
11276 2010-07-30  Eric Blake  <eblake@redhat.com>
11277
11278         strtod: fix bug in replacement function on AIX
11279         * lib/strtod.c (strtod): Special case broken "0x" parse in
11280         underlying strtod.
11281         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
11282         * doc/posix-functions/strtod.texi (strtod): Likewise.
11283         Reported by Rainer Tammer.
11284
11285 2010-07-30  Bruno Haible  <bruno@clisp.org>
11286
11287         mbrlen: Fix cross-compilation guess for AIX.
11288         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
11289         guess. Leftover from 2008-12-22.
11290
11291 2010-07-30  Bruno Haible  <bruno@clisp.org>
11292
11293         mbrtowc: Fix cross-compilation guess for AIX.
11294         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
11295         guess. Leftover from 2008-12-21.
11296
11297 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
11298
11299         init.sh: work around trap limitation of some shells
11300         * tests/init.sh (setup_): Move exit trap outside of shell function.
11301
11302 2010-07-29  Eric Blake  <eblake@redhat.com>
11303
11304         strtod: aid debugging
11305         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
11306         understanding why strtod is rejected.
11307
11308 2010-07-28  Bruno Haible  <bruno@clisp.org>
11309
11310         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
11311         * lib/unistr/u8-chr.c: Include <string.h>.
11312         * tests/unistr/test-u8-chr.c: Likewise.
11313         * tests/unistr/test-u16-chr.c: Likewise.
11314         * tests/unistr/test-u32-chr.c: Likewise.
11315         * tests/unistr/test-u8-strchr.c: Likewise.
11316         * tests/unistr/test-u16-strchr.c: Likewise.
11317         * tests/unistr/test-u32-strchr.c: Likewise.
11318         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
11319         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
11320         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
11321         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
11322
11323 2010-07-28  Bruno Haible  <bruno@clisp.org>
11324
11325         Use spaces for indentation, not tabs.
11326         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
11327
11328 2010-07-27  Bruno Haible  <bruno@clisp.org>
11329
11330         mbspcasecmp: Fix function specification.
11331         * lib/string.in.h (mbspcasecmp): Fix specification comment.
11332         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
11333         Reported by Eric Blake <eblake@redhat.com>.
11334
11335 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
11336
11337         timespec: use cast and not conditional, as truncation isn't possible
11338         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
11339         instead of a conditional.  Comment about the situation in more detail.
11340         This undoes most of the 2009-10-29 patch.
11341
11342 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
11343
11344         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
11345         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
11346         * lib/unistr/u8-strchr.c: Likewise.
11347         * modules/unistr/u8-chr: Depend on memchr.
11348
11349         unistr/u*-strchr: add tests
11350         * modules/unistr/u8-strchr-tests: New file.
11351         * modules/unistr/u16-strchr-tests: New file.
11352         * modules/unistr/u32-strchr-tests: New file.
11353         * tests/unistr/test-strchr.h: New file.
11354         * tests/unistr/test-u8-strchr.c: New file.
11355         * tests/unistr/test-u16-strchr.c: New file.
11356         * tests/unistr/test-u32-strchr.c: New file.
11357
11358         unistr/u*-chr: test multibyte sequences more
11359         * tests/unistr/test-chr.h: Do complete testing of the characters in the
11360         test vector.
11361         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
11362         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
11363         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
11364
11365         unistr/u*-chr: test multibyte sequences
11366         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
11367
11368         unistr/u*-chr: prepare for multibyte tests
11369         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
11370         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
11371         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
11372         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
11373         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
11374         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
11375
11376 2010-07-18  Bruno Haible  <bruno@clisp.org>
11377
11378         unistr/u8-strchr: Optimize non-ASCII argument case.
11379         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
11380         because the first byte often matches anyway.
11381         Reported by Pádraig Brady <P@draigbrady.com>.
11382
11383 2010-07-15  Karl Berry  <karl@gnu.org>
11384
11385         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
11386
11387 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
11388
11389         getcwd: on Solaris, work better if ancestors are inaccessible
11390         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
11391         buffer and size, try again with a large buffer.  This works better
11392         on Solaris, since its getcwd succeeds even if the path to the root
11393         is inaccessible, and this is helpful in common cases such as .zfs
11394         hidden directories.  Problem reported by J Chapman Flack in
11395         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
11396         Use system getcwd if it's declared, not merely if it's partly
11397         working; use the partly-working test only to avoid needless effort
11398         if the system getcwd fails.
11399         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
11400         comment that was already obsolete and is now even more obsolete.
11401         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
11402         now might call strdup.
11403
11404 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
11405
11406         pthread: Add enough so that coreutils/src/sort.c compiles.
11407         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
11408         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
11409         gnulib. Include <sched.h> and <time.h>, as per POSIX.
11410         Include <sys/types.h>, in case it defines pthread_t.
11411         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
11412         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
11413         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
11414         (pthread_rwlockattr_t, pthread_spinlock_t):
11415         New typedefs, if HAVE_PTHREAD_T is not defined.
11416         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
11417         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
11418         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
11419         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
11420         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
11421         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
11422         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
11423         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
11424         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
11425         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
11426         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
11427         New macros.
11428         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
11429         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
11430         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
11431         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
11432         (pthread_spin_unlock): New dummy functions.
11433         (pthread_create): Return EAGAIN; don't set errno.
11434         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
11435         require AC_C_INLINE.
11436         * modules/pthread (Depends-on): Add sched, time.
11437         (pthread.h): Use AM_V_GEN.
11438
11439 2010-07-13  Bruno Haible  <bruno@clisp.org>
11440
11441         striconveh: Don't malloc memory if the result buffer is sufficient.
11442         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
11443         buffer if its size is sufficient.
11444         Reported by Ludovic Courtès <ludo@gnu.org>.
11445
11446 2010-07-13  Bruno Haible  <bruno@clisp.org>
11447
11448         strtod: Add safety check.
11449         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
11450
11451 2010-07-12  Bruno Haible  <bruno@clisp.org>
11452
11453         Unify tests that set gl_cv_func_ldexpl_no_libm.
11454         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
11455         gl_FUNC_LDEXPL.
11456         (gl_FUNC_LDEXPL): Invoke it.
11457         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11458
11459 2010-07-12  Bruno Haible  <bruno@clisp.org>
11460
11461         Unify tests that set gl_cv_func_ldexp_no_libm.
11462         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
11463         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
11464         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
11465         (configure.ac): Simply invoke gl_FUNC_LDEXP.
11466         * modules/strtod (Files): Add m4/ldexp.m4.
11467
11468 2010-07-12  Bruno Haible  <bruno@clisp.org>
11469
11470         Unify tests that set gl_cv_func_frexpl_no_libm.
11471         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
11472         gl_FUNC_FREXPL_NO_LIBM.
11473         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
11474         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11475
11476 2010-07-12  Bruno Haible  <bruno@clisp.org>
11477
11478         Unify tests that set gl_cv_func_frexp_no_libm.
11479         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
11480         gl_FUNC_FREXP_NO_LIBM.
11481         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
11482         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11483
11484 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11485
11486         memcoll: clarify sizes versus lengths, document better, and tweak perf
11487         * lib/memcoll.c (strcoll_loop, memcoll0):
11488         Improve quality of descriptive comments.  Name variables
11489         consistently as to whether they are lengths (which do not include
11490         terminating null) versus sizes (which do).
11491         * lib/xmemcoll.c (xmemcoll0): Likewise.
11492         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
11493         returned when s1size == 0; this is easier to compile and saves
11494         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
11495
11496 2010-07-12  Bruno Haible  <bruno@clisp.org>
11497
11498         Tests for module '_Exit'.
11499         * modules/_Exit-tests: New file.
11500         * tests/test-_Exit.sh: New file.
11501         * tests/test-_Exit.c: New file.
11502
11503         New module '_Exit'.
11504         * lib/stdlib.in.h (__attribute__): New macro.
11505         (_Exit): New declaration.
11506         * lib/_Exit.c: New file.
11507         * m4/_Exit.m4: New file.
11508         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
11509         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
11510         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
11511         * modules/_Exit: New file.
11512         * tests/test-stdlib-c++.cc (_Exit): Check signature.
11513         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
11514
11515 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11516
11517         strtod: make it more-accurate typically, and don't require libm
11518         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
11519         Include limits.h.  Don't include string.h.
11520         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
11521         (locale_isspace): New function, so that no casts are needed to
11522         check whether *s is a space.
11523         (ldexp): Provide an unused dummy if not available.
11524         (scale_radix_exp, parse_number, underlying_strtod): New functions.
11525         (strtod): Use them.  This implementation prefers to use the
11526         underlying strtod if available, falling back on our own code
11527         only to fix known bugs.  This is more likely to produce an
11528         accurate result.  Also, it avoids the use of libm functions.
11529         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
11530         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
11531         was absent, but it caused a test failure with coreutils.
11532         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
11533         with libm.
11534         * modules/strtod (Makefile.am, Link): libm is no longer needed.
11535         * modules/strtod-tests (Makefile.am): Likewise.
11536
11537 2010-07-11  Pádraig Brady  <P@draigBrady.com>
11538             Bruno Haible  <bruno@clisp.org>
11539
11540         unistr/u8-strchr: Optimize ASCII argument case.
11541         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
11542
11543 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11544
11545         (x)memcoll: minor tweaks
11546         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
11547         is after the type that it qualifies.
11548         (memcoll0): Likewise.
11549         * lib/memcoll.h (memcoll0): Likewise.
11550         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
11551         * lib/xmemcoll.h (xmemcoll0): Likewise.
11552         * lib/memcoll.c (memcoll0): Correct the comment.  This function
11553         differs from memcoll in that the NUL byte is part of the argument.
11554         Omit the abort-checks, as performance is a real issue here.  Plus,
11555         the checks were wrong anyway (an off-by-one error).  Omit local
11556         variable 'diff', as it's a bit clearer that way.
11557         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
11558         no longer needed.
11559
11560 2010-07-08  Chen Guo <chenguo4@yahoo.com>
11561
11562         (x)memcoll: speedup when input is known to be NUL delimited
11563         * lib/memcoll.c: Include stdlib.
11564         (memcoll0): New function.
11565         (strcoll_loop): New function, refactored for use in both memcoll
11566         and memcoll0.
11567         * lib/memcoll.h (memcoll0): Add prototype.
11568         * lib/xmemcoll.c (xmemcoll0): New function.
11569         (collate_error): New function, refactored for use in both xmemcoll
11570         and xmemcoll0.
11571         * lib/xmemcoll.h (xmemcoll0): Add prototype.
11572         * m4/memcoll.m4: add inline invocation.
11573
11574 2010-07-06  Pádraig Brady  <P@draigBrady.com>
11575
11576         * build-aux/bootstrap: Remove any local translations
11577         from the translation project synchronization directory,
11578         so that local only translations are not distributed.
11579
11580 2010-07-04  Bruno Haible  <bruno@clisp.org>
11581
11582         fsusage: Clarify which code applies to which platforms.
11583         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
11584         platform.
11585         * lib/fsusage.c (get_fs_usage): Likewise.
11586
11587 2010-07-04  Bruno Haible  <bruno@clisp.org>
11588
11589         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
11590         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
11591         Reported by Martin Lambers <marlam@marlam.de>.
11592
11593 2010-07-04  Jim Meyering  <meyering@redhat.com>
11594
11595         hash: once again explicitly disallow insertion of NULL
11596         * lib/hash.c (hash_insert0): Reinstate just-removed test:
11597         inserting a NULL pointer cannot work with these functions.
11598         Add a comment with details.
11599         This reverts part of the 2010-07-01 commit, 5bef1a35
11600         "hash: extend module to deal with non-pointer keys".
11601
11602 2010-07-01  Bruno Haible  <bruno@clisp.org>
11603
11604         stdbool: Update doc.
11605         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
11606         Info from Christian Weisgerber <naddy@mips.inka.de>.
11607
11608 2010-07-01  Jim Meyering  <meyering@redhat.com>
11609
11610         hash: extend module to deal with non-pointer keys
11611         * lib/hash.c (hash_insert0): New interface, much like hash_insert
11612         but that allows insertion of non-pointer entries.
11613         Do not disallow an ENTRY value of NULL.
11614         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
11615         * lib/hash.h (hash_insert0): Declare.
11616
11617 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11618
11619         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
11620         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
11621         not present (i.e. with autoconf 2.59 and when using gettextize, not
11622         gnulib), require AC_GNU_SOURCE instead.
11623
11624 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
11625
11626         idpriv-drop: Fix tests.
11627         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
11628         not to the test-idpriv-droptemp program.
11629
11630 2010-06-29  Bruno Haible  <bruno@clisp.org>
11631
11632         string: Fix syntax error with g++ 2.96.
11633         * lib/string.in.h (__pure__): Remove definition.
11634         (_GL_ATTRIBUTE_PURE): New macro.
11635         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
11636         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
11637         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11638
11639 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
11640
11641         unitypes: Fix bug introduced on 2010-05-18.
11642         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
11643
11644 2010-06-22  Eric Blake  <eblake@redhat.com>
11645
11646         memmem: slight optimization
11647         * lib/str-two-way.h (critical_factorization): Update comments.
11648         Reduce work during factorization phase.
11649         Reported by Carlos Bueno <carlos@bueno.org>.
11650
11651 2010-06-21  Bruno Haible  <bruno@clisp.org>
11652
11653         Fix HAVE_CALLOC_POSIX misnomer.
11654         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
11655         !HAVE_CALLOC_POSIX.
11656         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
11657         HAVE_CALLOC_POSIX.
11658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
11659         instead of HAVE_CALLOC_POSIX.
11660         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
11661         HAVE_CALLOC_POSIX.
11662
11663         Use modern idiom for calloc() replacement.
11664         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
11665         AC_FUNC_CALLOC.
11666         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
11667         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
11668         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11669         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
11670         (gl_REPLACE_CALLOC): New macro.
11671
11672 2010-06-21  Bruno Haible  <bruno@clisp.org>
11673
11674         Fix HAVE_REALLOC_POSIX misnomer.
11675         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
11676         !HAVE_REALLOC_POSIX.
11677         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
11678         HAVE_REALLOC_POSIX.
11679         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
11680         instead of HAVE_REALLOC_POSIX.
11681         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
11682         HAVE_REALLOC_POSIX.
11683
11684         Use modern idiom for realloc() replacement.
11685         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
11686         AC_FUNC_REALLOC.
11687         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
11688         Autoconf's AC_FUNC_REALLOC.
11689         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11690         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
11691         (gl_REPLACE_REALLOC): New macro.
11692         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11693
11694 2010-06-21  Bruno Haible  <bruno@clisp.org>
11695
11696         Fix HAVE_MALLOC_POSIX misnomer.
11697         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
11698         !HAVE_MALLOC_POSIX.
11699         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
11700         HAVE_MALLOC_POSIX.
11701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
11702         instead of HAVE_MALLOC_POSIX.
11703         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
11704         HAVE_MALLOC_POSIX.
11705
11706         Use modern idiom for malloc() replacement.
11707         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
11708         AC_FUNC_MALLOC.
11709         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
11710         Autoconf's AC_FUNC_MALLOC.
11711         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11712         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
11713         (gl_REPLACE_MALLOC): New macro.
11714         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11715
11716 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
11717
11718         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
11719         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
11720         This macro takes 3 arguments, not 4.
11721
11722 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
11723
11724         ipv6: fix detection under mingw
11725         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
11726         in6_addr.
11727
11728 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
11729
11730         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
11731         that strtod() works when cross-compiling to a glibc version known
11732         to work.
11733
11734 2010-06-15  Bruno Haible  <bruno@clisp.org>
11735
11736         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
11737
11738 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
11739
11740         select: Correct timeout.
11741         * lib/select.c (rpl_select): Compute wait_timeout correctly.
11742
11743 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11744
11745         git-version-gen: init shell var to avoid env var influence
11746         * build-aux/git-version-gen (v): Init shell var to empty.
11747
11748 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
11749
11750         priv-set: Don't assume that priv.h exists merely because getppriv does.
11751         See Jan Andersen's bug report about AIX 5L in
11752         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
11753         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
11754         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
11755         * lib/priv-set.h: Likewise.
11756         * tests/test-priv-set.c: Likewise.
11757
11758 2010-06-13  Bruno Haible  <bruno@clisp.org>
11759
11760         relocatable: Make it easier to test whether to install wrappers.
11761         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
11762         RELOCATABLE_VIA_WRAPPER.
11763
11764 2010-06-13  Bruno Haible  <bruno@clisp.org>
11765
11766         gnulib-tool: Display specified modules and dependencies differently.
11767         * gnulib-tool (func_show_module_list): New function.
11768         (func_import, func_create_testdir): Invoke it.
11769         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11770
11771 2010-06-13  Bruno Haible  <bruno@clisp.org>
11772
11773         gnulib-tool: Align code of func_import and func_create_testdir.
11774         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
11775         specified_modules.
11776
11777 2010-06-12  Jim Meyering  <meyering@redhat.com>
11778
11779         test-inttostr: avoid spurious failure on Solaris 9
11780         * tests/test-inttostr.c (main): Skip the test when snprintf fails
11781         to accept "%ju".  Reported by Bruno Haible.
11782
11783 2010-06-11  Jim Meyering  <meyering@redhat.com>
11784
11785         test-sys_socket: mark variables as used more readably
11786         * tests/test-sys_socket.c (main): Mark otherwise unused variables
11787         as "used" explicitly via (void) statement casts.  This is more
11788         readable than using them in an artificial return expression.
11789         Suggestion from Bruno Haible.
11790
11791 2010-06-11  Bruno Haible  <bruno@clisp.org>
11792
11793         Avoid some more warnings from "gcc -Wwrite-strings".
11794         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
11795         to 'const char *'.
11796         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
11797         * tests/test-c-strcasestr.c (main): Likewise.
11798         * tests/test-mbscasestr1.c (main): Likewise.
11799         * tests/test-mbscasestr2.c (main): Likewise.
11800         * tests/test-memmem.c (main): Likewise.
11801         * tests/test-strstr.c (main): Likewise.
11802         * tests/test-strcasestr.c (main): Likewise.
11803
11804 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11805
11806         init.sh: change framework_failure_ to fail with status 99, not 1
11807         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
11808         automake's parallel-tests rule that this is an unexpected failure,
11809         even if the test is listed in XFAIL_TESTS.
11810
11811 2010-06-11  Jim Meyering  <meyering@redhat.com>
11812
11813         test-inttostr: avoid warnings about 4-6KB literal strings
11814         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
11815         Include "macros.h", for its definition of ASSERT.
11816         (CK): s/assert/ASSERT/
11817         * modules/inttostr-tests (Files): Add macros.h.
11818
11819         init.sh: don't use $ME_ or skip_ before they are defined
11820         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
11821         their first uses.  Also hoist their companions: warn_, fail_,
11822         framework_failure_, $stderr_fileno.  Prompted by a patch from
11823         Stefano Lattarini.
11824
11825         test-sys_socket: avoid set-but-not-used warnings from gcc
11826         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
11827         avoid warning about set-but-not-used variables.
11828
11829         test-xvasprintf: avoid 'const' discard warnings
11830         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
11831         "const" when assigning from literal strings.
11832         (test_xasprintf): Add "void" in function argument list to placate
11833         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
11834
11835         tests: avoid compilation warnings in argmatch and exclude tests...
11836         in packages that define ARGMATCH_DIE_DECL, like coreutils.
11837         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
11838         Since it always exits, declare with the "noreturn" attribute.
11839         * tests/test-argmatch.c: Likewise.
11840
11841         tests: avoid 'const' discard warnings in mbsstr tests
11842         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
11843         * tests/test-mbsstr2.c (main): Likewise.
11844
11845         test-verify: avoid warning from gcc's -Wmissing-declarations
11846         * tests/test-verify.c (function): Declare to be static.
11847
11848         test-inttostr.c: include <string.h> for use of strcmp
11849         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
11850
11851         test-linkat: avoid failed assertion on "other" architectures
11852         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
11853         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
11854         sparc: https://bugs.launchpad.net/bugs/591968
11855
11856 2010-06-11  Jim Meyering  <meyering@redhat.com>
11857
11858         printf.m4: avoid autoconf's "Expanded Before Required" warning
11859         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
11860         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
11861         autoconf warning.
11862
11863 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
11864
11865         Replacement header templates are now named with ".in", not "_".
11866         * doc/gnulib-intro.texi: Correct.
11867
11868 2010-06-10  Jim Meyering  <meyering@redhat.com>
11869
11870         inttostr-tests: depend on snprintf, not snprintf-posix
11871         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
11872         snprintf-posix, to avoid this aclocal failure:
11873           missing file gnulib-tests/vasnprintf.c
11874           configure.ac:45: error: expected source file, required through \
11875           AC_LIBSOURCES, not found
11876
11877 2010-06-10  Jim Meyering  <meyering@redhat.com>
11878
11879         inttostr: add a new function, inttostr, and tests
11880         The namesake function was not available.  The existence of the
11881         template file, inttostr.c makes its addition nontrivial.
11882         * lib/anytostr.c: Rename from inttostr.c.
11883         (anytostr): Rename from inttostr.
11884         * lib/inttostr.c: New file.
11885         * modules/inttostr (Files): Add anytostr.c.
11886         (Makefile.am): Set lib_SOURCES instead of ...
11887         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
11888         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
11889         * lib/offtostr.c: Likewise.
11890         * lib/uinttostr.c: Likewise.
11891         * lib/umaxtostr.c: Likewise.
11892         * modules/inttostr-tests: New file.
11893         * tests/test-inttostr.c: New file.  Test these functions.
11894
11895 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
11896             Bruno Haible  <bruno@clisp.org>
11897
11898         Add "Extending Gnulib" chapter to manual.
11899         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11900         chapter.
11901         (Extending Gnulib): New chapter.
11902         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11903         chapter.
11904
11905 2010-06-09  Bruno Haible  <bruno@clisp.org>
11906
11907         Avoid relocwrapper link errors due to gnulib replacement functions.
11908         * lib/areadlink.c: Use the system's malloc, realloc functions.
11909         (areadlink): Set errno to ENOMEM explicitly.
11910         * modules/areadlink (Depends-on): Remove malloc-posix.
11911         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11912
11913 2010-06-09  Bruno Haible  <bruno@clisp.org>
11914
11915         Avoid relocwrapper link errors due to gnulib replacement functions.
11916         * lib/canonicalize-lgpl.c: Use the system's malloc function.
11917         * lib/malloca.c: Likewise.
11918         * lib/relocatable.c: Likewise.
11919         * lib/progreloc.c: Use the system's malloc, sprintf functions.
11920         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
11921         * lib/setenv.c: Use the system's malloc, realloc functions.
11922         * lib/strerror.c: Use the system's sprintf function.
11923         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11924
11925 2010-06-04  Bruno Haible  <bruno@clisp.org>
11926
11927         Prefer documented low-level autoconf macro names.
11928         * m4/lib-link.m4: Use m4_translit instead of translit.
11929         * m4/environ.m4: Likewise.
11930         * m4/mathfunc.m4: Likewise.
11931         * m4/onceonly.m4: Likewise.
11932         * m4/stdint.m4: Likewise.
11933         Suggested by Eric Blake.
11934
11935 2010-06-04  Martin Lambers  <marlam@marlam.de>
11936             Bruno Haible  <bruno@clisp.org>
11937
11938         havelib: Allow library names with '+' characters.
11939         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11940         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
11941
11942 2010-06-09  Bruno Haible  <bruno@clisp.org>
11943
11944         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
11945         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
11946         realloc failed.
11947
11948 2010-06-08  Peter Simons  <simons@cryp.to>
11949
11950         maint.mk: make the news-check rule more configurable
11951         * top/maint.mk (news-check-lines-spec): New variable.
11952         (news-check): Use "sed -n 1,10p" in place of "head".
11953
11954 2010-06-07  Jim Meyering  <meyering@redhat.com>
11955
11956         do-release-commit-and-tag: fix typo in --help
11957         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
11958
11959         regex: avoid new dead-code warning with gcc-4.6.0
11960         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
11961         if-block containing a while-loop.  It's been unused for at least
11962         5 years.
11963
11964 2010-06-05  Bruno Haible  <bruno@clisp.org>
11965
11966         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
11967         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
11968
11969 2010-06-04  Bruno Haible  <bruno@clisp.org>
11970
11971         Update to GNU gettext 0.18.1.
11972         * modules/gettext (configure.ac): Require gettext infrastructure from
11973         version 0.18.1.
11974
11975 2010-06-03  Bruno Haible  <bruno@clisp.org>
11976
11977         Don't use AC_LIBOBJ with file names in subdirectories.
11978         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
11979         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
11980         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
11981         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
11982         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
11983         gl_LIBUNISTRING_LIBSOURCE.
11984         (Makefile.am): Augment lib_SOURCES here, conditionally.
11985         * NEWS: Drop requirement for Automake option 'subdir-objects'.
11986
11987 2010-06-03  Bruno Haible  <bruno@clisp.org>
11988
11989         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
11990         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
11991         expansion does not end with a newline.
11992         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
11993         unnecessary newline.
11994
11995 2010-06-03  Bruno Haible  <bruno@clisp.org>
11996
11997         Reduce dependencies.
11998         * tests/test-quotearg.h: New file, extracted from
11999         tests/test-quotearg.c.
12000         * tests/test-quotearg-simple.c: New file, extracted from
12001         tests/test-quotearg.c.
12002         * tests/test-quotearg.c: Don't include <ctype.h>.
12003         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
12004         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
12005         use_quote_double_quotes, use_quotearg_colon): Moved to
12006         tests/test-quotearg.h.
12007         (results_g, flag_results, custom_quotes, custom_results): Moved
12008         to tests/test-quotearg-simple.c.
12009         (main): Moved the part that does not depend on gettext to
12010         tests/test-quotearg-simple.c. Return 77 if the test cannot be
12011         performed.
12012         * modules/quotearg-simple: New file.
12013         * modules/quotearg-simple-tests: New file.
12014         * modules/quotearg (Depends-on): Add quotearg-simple.
12015         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
12016         (Files): Add tests/test-quotearg.h.
12017         Reported by Paolo Bonzini.
12018
12019 2010-06-03  Bruno Haible  <bruno@clisp.org>
12020
12021         Reduce dependencies.
12022         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
12023
12024 2010-06-03  Bruno Haible  <bruno@clisp.org>
12025
12026         time: Undefine more broken macros.
12027         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
12028         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
12029         Reported by Eric Blake.
12030
12031 2010-06-03  Bruno Haible  <bruno@clisp.org>
12032
12033         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
12034         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
12035         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
12036         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
12037         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
12038         Reported by Ludovic Courtès <ludo@gnu.org>.
12039
12040 2010-06-02  Eric Blake  <eblake@redhat.com>
12041
12042         time: work with mingw + pthreads-win32 library
12043         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
12044         if timespec is defined only in pthread.h.
12045         * modules/time (Makefile.am): Substitute it.
12046         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
12047         <pthread.h>, when needed.
12048         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
12049         from the library.
12050
12051 2010-05-31  Bruno Haible  <bruno@clisp.org>
12052
12053         Avoid expanding two macros in the wrong order.
12054         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
12055         gl_LIBUNISTRING if it is defined.
12056         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
12057         autoconf >= 2.64.
12058         Reported by Ludovic Courtès <ludo@gnu.org>.
12059
12060 2010-05-27  Jim Meyering  <meyering@redhat.com>
12061
12062         maint.mk: also prohibit "#undef" of always-defined symbols
12063         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
12064         Allow more than one space before the symbol name.
12065         (sc_prohibit_always-defined_macros): Use grep's -E, now that
12066         the regexp uses alternation.
12067
12068 2010-05-26  Eric Blake  <eblake@redhat.com>
12069
12070         maint.mk: avoid echo -e
12071         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
12072         Convert all uses of echo -* to printf.
12073         Reported by Matthias Bolte.
12074
12075 2010-05-25  Bruno Haible  <bruno@clisp.org>
12076
12077         Update to GNU gettext 0.18, part 2.
12078         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
12079         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
12080
12081 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12082
12083         Add missing include in test-pwrite.c.
12084         * tests/test-pwrite.c: Include string.h, for strcmp.
12085
12086 2010-05-24  Bruno Haible  <bruno@clisp.org>
12087
12088         * NEWS: Mention requirement for Automake option 'subdir-objects'.
12089
12090 2010-05-24  Bruno Haible  <bruno@clisp.org>
12091
12092         Don't use conversion with transliteration in u{8,16,32}_strcoll.
12093         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
12094         iconveh_error argument.
12095         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
12096         U_STRCONV_TO_LOCALE.
12097         * lib/unistr/u16-strcoll.c: Likewise.
12098         * lib/unistr/u32-strcoll.c: Likewise.
12099         * modules/unistr/u8-strcoll (Depends-on): Add
12100         uniconv/u8-strconv-to-enc, localcharset. Remove
12101         uniconv/u8-strconv-to-locale.
12102         (configure.ac): Bump version number.
12103         * modules/unistr/u16-strcoll (Depends-on): Add
12104         uniconv/u16-strconv-to-enc, localcharset. Remove
12105         uniconv/u16-strconv-to-locale.
12106         (configure.ac): Bump version number.
12107         * modules/unistr/u32-strcoll (Depends-on): Add
12108         uniconv/u32-strconv-to-enc, localcharset. Remove
12109         uniconv/u32-strconv-to-locale.
12110         (configure.ac): Bump version number.
12111
12112 2010-05-24  Bruno Haible  <bruno@clisp.org>
12113
12114         Avoid a test failure on NetBSD 5.0.
12115         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
12116         an iconv() bug.
12117
12118 2010-05-24  Bruno Haible  <bruno@clisp.org>
12119
12120         Adjust #include directive style.
12121         * modules/regex (Includes): Recommend to write <regex.h>.
12122
12123 2010-05-24  Bruno Haible  <bruno@clisp.org>
12124
12125         regex: Don't require alloca.
12126         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
12127         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
12128         only inside if (0).
12129
12130 2010-05-23  Jim Meyering  <meyering@redhat.com>
12131
12132         test-renameat.c: include <sys/stat.h>
12133         * tests/test-renameat.c: Include <sys/stat.h>; required for
12134         definition of S_IS* macros.
12135
12136 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
12137
12138         Update maintainer documentation for 'relocatable-prog' module.
12139         * doc/relocatable-maint.texi: Update.
12140         Comments by Bruno Haible.
12141
12142 2010-05-23  Bruno Haible  <bruno@clisp.org>
12143
12144         git-merge-changelog: Enable --split-merged-entry by default.
12145         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
12146         (usage): Don't mention this option any more.
12147         Reported by Ralf Wildenhues.
12148
12149 2010-05-23  Jim Meyering  <meyering@redhat.com>
12150
12151         test-pwrite: do not leave behind a test file named "out"
12152         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
12153         The trivial-looking use of init.sh is really necessary.
12154         It ensures that the temporary file, "out", is created in
12155         a temporary directory, and removed upon termination.
12156         * tests/test-pwrite.sh: Re-add file.
12157         * modules/pwrite-tests: Reference it.
12158
12159 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12160
12161         Fix output redirection buglet in init.sh.
12162         * tests/init.sh: Fix redirection of stderr.
12163
12164 2010-05-20  Simon Josefsson  <simon@josefsson.org>
12165
12166         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
12167
12168 2010-05-17  Simon Josefsson  <simon@josefsson.org>
12169
12170         * modules/valgrind-tests: New file.
12171         * m4/valgrind-tests.m4: New file.
12172         * doc/valgrind-tests.texi: New file.
12173         * doc/gnulib.texi (Running self-tests under valgrind): New
12174         section.
12175
12176 2010-05-19  Bruno Haible  <bruno@clisp.org>
12177
12178         Clean up dead code in recent commit.
12179         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
12180         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
12181         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
12182         Suggested by Paolo Bonzini.
12183
12184 2010-05-19  Bruno Haible  <bruno@clisp.org>
12185
12186         Avoid valgrind error reports from libunistring.
12187         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
12188         * modules/libunistring (Files): Add it.
12189         * modules/libunistring-optional (Files): Likewise.
12190
12191 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
12192             Bruno Haible  <bruno@clisp.org>
12193
12194         New module 'libunistring-optional'.
12195         * modules/libunistring-optional: New file.
12196         * m4/libunistring-base.m4: New file.
12197         * m4/libunistring-optional.m4: New file.
12198         * lib/unicase.in.h: Renamed from lib/unicase.h.
12199         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
12200         * lib/unictype.in.h: Renamed from lib/unictype.h.
12201         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
12202         * lib/uniname.in.h: Renamed from lib/uniname.h.
12203         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
12204         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
12205         * lib/unistr.in.h: Renamed from lib/unistr.h.
12206         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
12207         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
12208         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
12209         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
12210         gl_LIBUNISTRING. If the library was found, determine the installed
12211         version and set LIBUNISTRING_VERSION.
12212         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
12213         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
12214         handle a configuration option --with-included-libunistring.
12215         * modules/libunistring (Files): Add m4/absolute-header.m4.
12216         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
12217         Add m4/libunistring-base.m4.
12218         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12219         (Makefile.am): Build unicase.h from unicase.in.h.
12220         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
12221         Add m4/libunistring-base.m4.
12222         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12223         (Makefile.am): Build uniconv.h from uniconv.in.h.
12224         * modules/unictype/base (Files): Use unictype.in.h instead of
12225         unictype.h. Add m4/libunistring-base.m4.
12226         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12227         (Makefile.am): Build unictype.h from unictype.in.h.
12228         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
12229         Add m4/libunistring-base.m4.
12230         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12231         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
12232         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
12233         Add m4/libunistring-base.m4.
12234         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12235         (Makefile.am): Build uniname.h from uniname.in.h.
12236         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
12237         Add m4/libunistring-base.m4.
12238         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12239         (Makefile.am): Build uninorm.h from uninorm.in.h.
12240         * modules/unistdio/base (Files): Use unistdio.in.h instead of
12241         unistdio.h. Add m4/libunistring-base.m4.
12242         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12243         (Makefile.am): Build unistdio.h from unistdio.in.h.
12244         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
12245         Add m4/libunistring-base.m4.
12246         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12247         (Makefile.am): Build unistr.h from unistr.in.h.
12248         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
12249         Add m4/libunistring-base.m4.
12250         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12251         (Makefile.am): Build unitypes.h from unitypes.in.h.
12252         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
12253         Add m4/libunistring-base.m4.
12254         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12255         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
12256         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
12257         uniwidth.h. Add m4/libunistring-base.m4.
12258         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12259         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
12260         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
12261         instead of augmenting lib_SOURCES.
12262         * modules/unicase/empty-suffix-context: Likewise.
12263         * modules/unicase/locale-language: Likewise.
12264         * modules/unicase/tolower: Likewise.
12265         * modules/unicase/totitle: Likewise.
12266         * modules/unicase/toupper: Likewise.
12267         * modules/unicase/u8-casecmp: Likewise.
12268         * modules/unicase/u8-casecoll: Likewise.
12269         * modules/unicase/u8-casefold: Likewise.
12270         * modules/unicase/u8-casexfrm: Likewise.
12271         * modules/unicase/u8-ct-casefold: Likewise.
12272         * modules/unicase/u8-ct-tolower: Likewise.
12273         * modules/unicase/u8-ct-totitle: Likewise.
12274         * modules/unicase/u8-ct-toupper: Likewise.
12275         * modules/unicase/u8-is-cased: Likewise.
12276         * modules/unicase/u8-is-casefolded: Likewise.
12277         * modules/unicase/u8-is-lowercase: Likewise.
12278         * modules/unicase/u8-is-titlecase: Likewise.
12279         * modules/unicase/u8-is-uppercase: Likewise.
12280         * modules/unicase/u8-prefix-context: Likewise.
12281         * modules/unicase/u8-suffix-context: Likewise.
12282         * modules/unicase/u8-tolower: Likewise.
12283         * modules/unicase/u8-totitle: Likewise.
12284         * modules/unicase/u8-toupper: Likewise.
12285         * modules/unicase/u16-casecmp: Likewise.
12286         * modules/unicase/u16-casecoll: Likewise.
12287         * modules/unicase/u16-casefold: Likewise.
12288         * modules/unicase/u16-casexfrm: Likewise.
12289         * modules/unicase/u16-ct-casefold: Likewise.
12290         * modules/unicase/u16-ct-tolower: Likewise.
12291         * modules/unicase/u16-ct-totitle: Likewise.
12292         * modules/unicase/u16-ct-toupper: Likewise.
12293         * modules/unicase/u16-is-cased: Likewise.
12294         * modules/unicase/u16-is-casefolded: Likewise.
12295         * modules/unicase/u16-is-lowercase: Likewise.
12296         * modules/unicase/u16-is-titlecase: Likewise.
12297         * modules/unicase/u16-is-uppercase: Likewise.
12298         * modules/unicase/u16-prefix-context: Likewise.
12299         * modules/unicase/u16-suffix-context: Likewise.
12300         * modules/unicase/u16-tolower: Likewise.
12301         * modules/unicase/u16-totitle: Likewise.
12302         * modules/unicase/u16-toupper: Likewise.
12303         * modules/unicase/u32-casecmp: Likewise.
12304         * modules/unicase/u32-casecoll: Likewise.
12305         * modules/unicase/u32-casefold: Likewise.
12306         * modules/unicase/u32-casexfrm: Likewise.
12307         * modules/unicase/u32-ct-casefold: Likewise.
12308         * modules/unicase/u32-ct-tolower: Likewise.
12309         * modules/unicase/u32-ct-totitle: Likewise.
12310         * modules/unicase/u32-ct-toupper: Likewise.
12311         * modules/unicase/u32-is-cased: Likewise.
12312         * modules/unicase/u32-is-casefolded: Likewise.
12313         * modules/unicase/u32-is-lowercase: Likewise.
12314         * modules/unicase/u32-is-titlecase: Likewise.
12315         * modules/unicase/u32-is-uppercase: Likewise.
12316         * modules/unicase/u32-prefix-context: Likewise.
12317         * modules/unicase/u32-suffix-context: Likewise.
12318         * modules/unicase/u32-tolower: Likewise.
12319         * modules/unicase/u32-totitle: Likewise.
12320         * modules/unicase/u32-toupper: Likewise.
12321         * modules/unicase/ulc-casecmp: Likewise.
12322         * modules/unicase/ulc-casecoll: Likewise.
12323         * modules/unicase/ulc-casexfrm: Likewise.
12324         * modules/uniconv/u8-conv-from-enc: Likewise.
12325         * modules/uniconv/u8-conv-to-enc: Likewise.
12326         * modules/uniconv/u8-strconv-from-enc: Likewise.
12327         * modules/uniconv/u8-strconv-from-locale: Likewise.
12328         * modules/uniconv/u8-strconv-to-enc: Likewise.
12329         * modules/uniconv/u8-strconv-to-locale: Likewise.
12330         * modules/uniconv/u16-conv-from-enc: Likewise.
12331         * modules/uniconv/u16-conv-to-enc: Likewise.
12332         * modules/uniconv/u16-strconv-from-enc: Likewise.
12333         * modules/uniconv/u16-strconv-from-locale: Likewise.
12334         * modules/uniconv/u16-strconv-to-enc: Likewise.
12335         * modules/uniconv/u16-strconv-to-locale: Likewise.
12336         * modules/uniconv/u32-conv-from-enc: Likewise.
12337         * modules/uniconv/u32-conv-to-enc: Likewise.
12338         * modules/uniconv/u32-strconv-from-enc: Likewise.
12339         * modules/uniconv/u32-strconv-from-locale: Likewise.
12340         * modules/uniconv/u32-strconv-to-enc: Likewise.
12341         * modules/uniconv/u32-strconv-to-locale: Likewise.
12342         * modules/unictype/bidicategory-byname: Likewise.
12343         * modules/unictype/bidicategory-name: Likewise.
12344         * modules/unictype/bidicategory-of: Likewise.
12345         * modules/unictype/bidicategory-test: Likewise.
12346         * modules/unictype/block-list: Likewise.
12347         * modules/unictype/block-test: Likewise.
12348         * modules/unictype/category-C: Likewise.
12349         * modules/unictype/category-Cc: Likewise.
12350         * modules/unictype/category-Cf: Likewise.
12351         * modules/unictype/category-Cn: Likewise.
12352         * modules/unictype/category-Co: Likewise.
12353         * modules/unictype/category-Cs: Likewise.
12354         * modules/unictype/category-L: Likewise.
12355         * modules/unictype/category-Ll: Likewise.
12356         * modules/unictype/category-Lm: Likewise.
12357         * modules/unictype/category-Lo: Likewise.
12358         * modules/unictype/category-Lt: Likewise.
12359         * modules/unictype/category-Lu: Likewise.
12360         * modules/unictype/category-M: Likewise.
12361         * modules/unictype/category-Mc: Likewise.
12362         * modules/unictype/category-Me: Likewise.
12363         * modules/unictype/category-Mn: Likewise.
12364         * modules/unictype/category-N: Likewise.
12365         * modules/unictype/category-Nd: Likewise.
12366         * modules/unictype/category-Nl: Likewise.
12367         * modules/unictype/category-No: Likewise.
12368         * modules/unictype/category-P: Likewise.
12369         * modules/unictype/category-Pc: Likewise.
12370         * modules/unictype/category-Pd: Likewise.
12371         * modules/unictype/category-Pe: Likewise.
12372         * modules/unictype/category-Pf: Likewise.
12373         * modules/unictype/category-Pi: Likewise.
12374         * modules/unictype/category-Po: Likewise.
12375         * modules/unictype/category-Ps: Likewise.
12376         * modules/unictype/category-S: Likewise.
12377         * modules/unictype/category-Sc: Likewise.
12378         * modules/unictype/category-Sk: Likewise.
12379         * modules/unictype/category-Sm: Likewise.
12380         * modules/unictype/category-So: Likewise.
12381         * modules/unictype/category-Z: Likewise.
12382         * modules/unictype/category-Zl: Likewise.
12383         * modules/unictype/category-Zp: Likewise.
12384         * modules/unictype/category-Zs: Likewise.
12385         * modules/unictype/category-and: Likewise.
12386         * modules/unictype/category-and-not: Likewise.
12387         * modules/unictype/category-byname: Likewise.
12388         * modules/unictype/category-name: Likewise.
12389         * modules/unictype/category-none: Likewise.
12390         * modules/unictype/category-of: Likewise.
12391         * modules/unictype/category-or: Likewise.
12392         * modules/unictype/category-test: Likewise.
12393         * modules/unictype/combining-class: Likewise.
12394         * modules/unictype/ctype-alnum: Likewise.
12395         * modules/unictype/ctype-alpha: Likewise.
12396         * modules/unictype/ctype-blank: Likewise.
12397         * modules/unictype/ctype-cntrl: Likewise.
12398         * modules/unictype/ctype-digit: Likewise.
12399         * modules/unictype/ctype-graph: Likewise.
12400         * modules/unictype/ctype-lower: Likewise.
12401         * modules/unictype/ctype-print: Likewise.
12402         * modules/unictype/ctype-punct: Likewise.
12403         * modules/unictype/ctype-space: Likewise.
12404         * modules/unictype/ctype-upper: Likewise.
12405         * modules/unictype/ctype-xdigit: Likewise.
12406         * modules/unictype/decimal-digit: Likewise.
12407         * modules/unictype/digit: Likewise.
12408         * modules/unictype/mirror: Likewise.
12409         * modules/unictype/numeric: Likewise.
12410         * modules/unictype/property-alphabetic: Likewise.
12411         * modules/unictype/property-ascii-hex-digit: Likewise.
12412         * modules/unictype/property-bidi-arabic-digit: Likewise.
12413         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
12414         * modules/unictype/property-bidi-block-separator: Likewise.
12415         * modules/unictype/property-bidi-boundary-neutral: Likewise.
12416         * modules/unictype/property-bidi-common-separator: Likewise.
12417         * modules/unictype/property-bidi-control: Likewise.
12418         * modules/unictype/property-bidi-embedding-or-override: Likewise.
12419         * modules/unictype/property-bidi-eur-num-separator: Likewise.
12420         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
12421         * modules/unictype/property-bidi-european-digit: Likewise.
12422         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
12423         * modules/unictype/property-bidi-left-to-right: Likewise.
12424         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
12425         * modules/unictype/property-bidi-other-neutral: Likewise.
12426         * modules/unictype/property-bidi-pdf: Likewise.
12427         * modules/unictype/property-bidi-segment-separator: Likewise.
12428         * modules/unictype/property-bidi-whitespace: Likewise.
12429         * modules/unictype/property-byname: Likewise.
12430         * modules/unictype/property-combining: Likewise.
12431         * modules/unictype/property-composite: Likewise.
12432         * modules/unictype/property-currency-symbol: Likewise.
12433         * modules/unictype/property-dash: Likewise.
12434         * modules/unictype/property-decimal-digit: Likewise.
12435         * modules/unictype/property-default-ignorable-code-point: Likewise.
12436         * modules/unictype/property-deprecated: Likewise.
12437         * modules/unictype/property-diacritic: Likewise.
12438         * modules/unictype/property-extender: Likewise.
12439         * modules/unictype/property-format-control: Likewise.
12440         * modules/unictype/property-grapheme-base: Likewise.
12441         * modules/unictype/property-grapheme-extend: Likewise.
12442         * modules/unictype/property-grapheme-link: Likewise.
12443         * modules/unictype/property-hex-digit: Likewise.
12444         * modules/unictype/property-hyphen: Likewise.
12445         * modules/unictype/property-id-continue: Likewise.
12446         * modules/unictype/property-id-start: Likewise.
12447         * modules/unictype/property-ideographic: Likewise.
12448         * modules/unictype/property-ids-binary-operator: Likewise.
12449         * modules/unictype/property-ids-trinary-operator: Likewise.
12450         * modules/unictype/property-ignorable-control: Likewise.
12451         * modules/unictype/property-iso-control: Likewise.
12452         * modules/unictype/property-join-control: Likewise.
12453         * modules/unictype/property-left-of-pair: Likewise.
12454         * modules/unictype/property-line-separator: Likewise.
12455         * modules/unictype/property-logical-order-exception: Likewise.
12456         * modules/unictype/property-lowercase: Likewise.
12457         * modules/unictype/property-math: Likewise.
12458         * modules/unictype/property-non-break: Likewise.
12459         * modules/unictype/property-not-a-character: Likewise.
12460         * modules/unictype/property-numeric: Likewise.
12461         * modules/unictype/property-other-alphabetic: Likewise.
12462         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
12463         * modules/unictype/property-other-grapheme-extend: Likewise.
12464         * modules/unictype/property-other-id-continue: Likewise.
12465         * modules/unictype/property-other-id-start: Likewise.
12466         * modules/unictype/property-other-lowercase: Likewise.
12467         * modules/unictype/property-other-math: Likewise.
12468         * modules/unictype/property-other-uppercase: Likewise.
12469         * modules/unictype/property-paired-punctuation: Likewise.
12470         * modules/unictype/property-paragraph-separator: Likewise.
12471         * modules/unictype/property-pattern-syntax: Likewise.
12472         * modules/unictype/property-pattern-white-space: Likewise.
12473         * modules/unictype/property-private-use: Likewise.
12474         * modules/unictype/property-punctuation: Likewise.
12475         * modules/unictype/property-quotation-mark: Likewise.
12476         * modules/unictype/property-radical: Likewise.
12477         * modules/unictype/property-sentence-terminal: Likewise.
12478         * modules/unictype/property-soft-dotted: Likewise.
12479         * modules/unictype/property-space: Likewise.
12480         * modules/unictype/property-terminal-punctuation: Likewise.
12481         * modules/unictype/property-test: Likewise.
12482         * modules/unictype/property-titlecase: Likewise.
12483         * modules/unictype/property-unassigned-code-value: Likewise.
12484         * modules/unictype/property-unified-ideograph: Likewise.
12485         * modules/unictype/property-uppercase: Likewise.
12486         * modules/unictype/property-variation-selector: Likewise.
12487         * modules/unictype/property-white-space: Likewise.
12488         * modules/unictype/property-xid-continue: Likewise.
12489         * modules/unictype/property-xid-start: Likewise.
12490         * modules/unictype/property-zero-width: Likewise.
12491         * modules/unictype/scripts: Likewise.
12492         * modules/unictype/syntax-c-ident: Likewise.
12493         * modules/unictype/syntax-c-whitespace: Likewise.
12494         * modules/unictype/syntax-java-ident: Likewise.
12495         * modules/unictype/syntax-java-whitespace: Likewise.
12496         * modules/unilbrk/u8-possible-linebreaks: Likewise.
12497         * modules/unilbrk/u8-width-linebreaks: Likewise.
12498         * modules/unilbrk/u16-possible-linebreaks: Likewise.
12499         * modules/unilbrk/u16-width-linebreaks: Likewise.
12500         * modules/unilbrk/u32-possible-linebreaks: Likewise.
12501         * modules/unilbrk/u32-width-linebreaks: Likewise.
12502         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
12503         * modules/unilbrk/ulc-width-linebreaks: Likewise.
12504         * modules/uniname/uniname: Likewise.
12505         * modules/uninorm/canonical-decomposition: Likewise.
12506         * modules/uninorm/composition: Likewise.
12507         * modules/uninorm/decomposing-form: Likewise.
12508         * modules/uninorm/decomposition: Likewise.
12509         * modules/uninorm/filter: Likewise.
12510         * modules/uninorm/nfc: Likewise.
12511         * modules/uninorm/nfd: Likewise.
12512         * modules/uninorm/nfkc: Likewise.
12513         * modules/uninorm/nfkd: Likewise.
12514         * modules/uninorm/u8-normalize: Likewise.
12515         * modules/uninorm/u8-normcmp: Likewise.
12516         * modules/uninorm/u8-normcoll: Likewise.
12517         * modules/uninorm/u8-normxfrm: Likewise.
12518         * modules/uninorm/u16-normalize: Likewise.
12519         * modules/uninorm/u16-normcmp: Likewise.
12520         * modules/uninorm/u16-normcoll: Likewise.
12521         * modules/uninorm/u16-normxfrm: Likewise.
12522         * modules/uninorm/u32-normalize: Likewise.
12523         * modules/uninorm/u32-normcmp: Likewise.
12524         * modules/uninorm/u32-normcoll: Likewise.
12525         * modules/uninorm/u32-normxfrm: Likewise.
12526         * modules/unistdio/u8-asnprintf: Likewise.
12527         * modules/unistdio/u8-asprintf: Likewise.
12528         * modules/unistdio/u8-snprintf: Likewise.
12529         * modules/unistdio/u8-sprintf: Likewise.
12530         * modules/unistdio/u8-u8-asnprintf: Likewise.
12531         * modules/unistdio/u8-u8-asprintf: Likewise.
12532         * modules/unistdio/u8-u8-snprintf: Likewise.
12533         * modules/unistdio/u8-u8-sprintf: Likewise.
12534         * modules/unistdio/u8-u8-vasnprintf: Likewise.
12535         * modules/unistdio/u8-u8-vasprintf: Likewise.
12536         * modules/unistdio/u8-u8-vsnprintf: Likewise.
12537         * modules/unistdio/u8-u8-vsprintf: Likewise.
12538         * modules/unistdio/u8-vasnprintf: Likewise.
12539         * modules/unistdio/u8-vasprintf: Likewise.
12540         * modules/unistdio/u8-vsnprintf: Likewise.
12541         * modules/unistdio/u8-vsprintf: Likewise.
12542         * modules/unistdio/u16-asnprintf: Likewise.
12543         * modules/unistdio/u16-asprintf: Likewise.
12544         * modules/unistdio/u16-snprintf: Likewise.
12545         * modules/unistdio/u16-sprintf: Likewise.
12546         * modules/unistdio/u16-u16-asnprintf: Likewise.
12547         * modules/unistdio/u16-u16-asprintf: Likewise.
12548         * modules/unistdio/u16-u16-snprintf: Likewise.
12549         * modules/unistdio/u16-u16-sprintf: Likewise.
12550         * modules/unistdio/u16-u16-vasnprintf: Likewise.
12551         * modules/unistdio/u16-u16-vasprintf: Likewise.
12552         * modules/unistdio/u16-u16-vsnprintf: Likewise.
12553         * modules/unistdio/u16-u16-vsprintf: Likewise.
12554         * modules/unistdio/u16-vasnprintf: Likewise.
12555         * modules/unistdio/u16-vasprintf: Likewise.
12556         * modules/unistdio/u16-vsnprintf: Likewise.
12557         * modules/unistdio/u16-vsprintf: Likewise.
12558         * modules/unistdio/u32-asnprintf: Likewise.
12559         * modules/unistdio/u32-asprintf: Likewise.
12560         * modules/unistdio/u32-snprintf: Likewise.
12561         * modules/unistdio/u32-sprintf: Likewise.
12562         * modules/unistdio/u32-u32-asnprintf: Likewise.
12563         * modules/unistdio/u32-u32-asprintf: Likewise.
12564         * modules/unistdio/u32-u32-snprintf: Likewise.
12565         * modules/unistdio/u32-u32-sprintf: Likewise.
12566         * modules/unistdio/u32-u32-vasnprintf: Likewise.
12567         * modules/unistdio/u32-u32-vasprintf: Likewise.
12568         * modules/unistdio/u32-u32-vsnprintf: Likewise.
12569         * modules/unistdio/u32-u32-vsprintf: Likewise.
12570         * modules/unistdio/u32-vasnprintf: Likewise.
12571         * modules/unistdio/u32-vasprintf: Likewise.
12572         * modules/unistdio/u32-vsnprintf: Likewise.
12573         * modules/unistdio/u32-vsprintf: Likewise.
12574         * modules/unistdio/ulc-asnprintf: Likewise.
12575         * modules/unistdio/ulc-asprintf: Likewise.
12576         * modules/unistdio/ulc-fprintf: Likewise.
12577         * modules/unistdio/ulc-snprintf: Likewise.
12578         * modules/unistdio/ulc-sprintf: Likewise.
12579         * modules/unistdio/ulc-vasnprintf: Likewise.
12580         * modules/unistdio/ulc-vasprintf: Likewise.
12581         * modules/unistdio/ulc-vfprintf: Likewise.
12582         * modules/unistdio/ulc-vsnprintf: Likewise.
12583         * modules/unistdio/ulc-vsprintf: Likewise.
12584         * modules/unistr/u8-check: Likewise.
12585         * modules/unistr/u8-chr: Likewise.
12586         * modules/unistr/u8-cmp: Likewise.
12587         * modules/unistr/u8-cmp2: Likewise.
12588         * modules/unistr/u8-cpy: Likewise.
12589         * modules/unistr/u8-cpy-alloc: Likewise.
12590         * modules/unistr/u8-endswith: Likewise.
12591         * modules/unistr/u8-mblen: Likewise.
12592         * modules/unistr/u8-mbsnlen: Likewise.
12593         * modules/unistr/u8-mbtouc: Likewise.
12594         * modules/unistr/u8-mbtouc-unsafe: Likewise.
12595         * modules/unistr/u8-mbtoucr: Likewise.
12596         * modules/unistr/u8-move: Likewise.
12597         * modules/unistr/u8-next: Likewise.
12598         * modules/unistr/u8-prev: Likewise.
12599         * modules/unistr/u8-set: Likewise.
12600         * modules/unistr/u8-startswith: Likewise.
12601         * modules/unistr/u8-stpcpy: Likewise.
12602         * modules/unistr/u8-stpncpy: Likewise.
12603         * modules/unistr/u8-strcat: Likewise.
12604         * modules/unistr/u8-strchr: Likewise.
12605         * modules/unistr/u8-strcmp: Likewise.
12606         * modules/unistr/u8-strcoll: Likewise.
12607         * modules/unistr/u8-strcpy: Likewise.
12608         * modules/unistr/u8-strcspn: Likewise.
12609         * modules/unistr/u8-strdup: Likewise.
12610         * modules/unistr/u8-strlen: Likewise.
12611         * modules/unistr/u8-strmblen: Likewise.
12612         * modules/unistr/u8-strmbtouc: Likewise.
12613         * modules/unistr/u8-strncat: Likewise.
12614         * modules/unistr/u8-strncmp: Likewise.
12615         * modules/unistr/u8-strncpy: Likewise.
12616         * modules/unistr/u8-strnlen: Likewise.
12617         * modules/unistr/u8-strpbrk: Likewise.
12618         * modules/unistr/u8-strrchr: Likewise.
12619         * modules/unistr/u8-strspn: Likewise.
12620         * modules/unistr/u8-strstr: Likewise.
12621         * modules/unistr/u8-strtok: Likewise.
12622         * modules/unistr/u8-to-u16: Likewise.
12623         * modules/unistr/u8-to-u32: Likewise.
12624         * modules/unistr/u8-uctomb: Likewise.
12625         * modules/unistr/u16-check: Likewise.
12626         * modules/unistr/u16-chr: Likewise.
12627         * modules/unistr/u16-cmp: Likewise.
12628         * modules/unistr/u16-cmp2: Likewise.
12629         * modules/unistr/u16-cpy: Likewise.
12630         * modules/unistr/u16-cpy-alloc: Likewise.
12631         * modules/unistr/u16-endswith: Likewise.
12632         * modules/unistr/u16-mblen: Likewise.
12633         * modules/unistr/u16-mbsnlen: Likewise.
12634         * modules/unistr/u16-mbtouc: Likewise.
12635         * modules/unistr/u16-mbtouc-unsafe: Likewise.
12636         * modules/unistr/u16-mbtoucr: Likewise.
12637         * modules/unistr/u16-move: Likewise.
12638         * modules/unistr/u16-next: Likewise.
12639         * modules/unistr/u16-prev: Likewise.
12640         * modules/unistr/u16-set: Likewise.
12641         * modules/unistr/u16-startswith: Likewise.
12642         * modules/unistr/u16-stpcpy: Likewise.
12643         * modules/unistr/u16-stpncpy: Likewise.
12644         * modules/unistr/u16-strcat: Likewise.
12645         * modules/unistr/u16-strchr: Likewise.
12646         * modules/unistr/u16-strcmp: Likewise.
12647         * modules/unistr/u16-strcoll: Likewise.
12648         * modules/unistr/u16-strcpy: Likewise.
12649         * modules/unistr/u16-strcspn: Likewise.
12650         * modules/unistr/u16-strdup: Likewise.
12651         * modules/unistr/u16-strlen: Likewise.
12652         * modules/unistr/u16-strmblen: Likewise.
12653         * modules/unistr/u16-strmbtouc: Likewise.
12654         * modules/unistr/u16-strncat: Likewise.
12655         * modules/unistr/u16-strncmp: Likewise.
12656         * modules/unistr/u16-strncpy: Likewise.
12657         * modules/unistr/u16-strnlen: Likewise.
12658         * modules/unistr/u16-strpbrk: Likewise.
12659         * modules/unistr/u16-strrchr: Likewise.
12660         * modules/unistr/u16-strspn: Likewise.
12661         * modules/unistr/u16-strstr: Likewise.
12662         * modules/unistr/u16-strtok: Likewise.
12663         * modules/unistr/u16-to-u32: Likewise.
12664         * modules/unistr/u16-to-u8: Likewise.
12665         * modules/unistr/u16-uctomb: Likewise.
12666         * modules/unistr/u32-check: Likewise.
12667         * modules/unistr/u32-chr: Likewise.
12668         * modules/unistr/u32-cmp: Likewise.
12669         * modules/unistr/u32-cmp2: Likewise.
12670         * modules/unistr/u32-cpy: Likewise.
12671         * modules/unistr/u32-cpy-alloc: Likewise.
12672         * modules/unistr/u32-endswith: Likewise.
12673         * modules/unistr/u32-mblen: Likewise.
12674         * modules/unistr/u32-mbsnlen: Likewise.
12675         * modules/unistr/u32-mbtouc: Likewise.
12676         * modules/unistr/u32-mbtouc-unsafe: Likewise.
12677         * modules/unistr/u32-mbtoucr: Likewise.
12678         * modules/unistr/u32-move: Likewise.
12679         * modules/unistr/u32-next: Likewise.
12680         * modules/unistr/u32-prev: Likewise.
12681         * modules/unistr/u32-set: Likewise.
12682         * modules/unistr/u32-startswith: Likewise.
12683         * modules/unistr/u32-stpcpy: Likewise.
12684         * modules/unistr/u32-stpncpy: Likewise.
12685         * modules/unistr/u32-strcat: Likewise.
12686         * modules/unistr/u32-strchr: Likewise.
12687         * modules/unistr/u32-strcmp: Likewise.
12688         * modules/unistr/u32-strcoll: Likewise.
12689         * modules/unistr/u32-strcpy: Likewise.
12690         * modules/unistr/u32-strcspn: Likewise.
12691         * modules/unistr/u32-strdup: Likewise.
12692         * modules/unistr/u32-strlen: Likewise.
12693         * modules/unistr/u32-strmblen: Likewise.
12694         * modules/unistr/u32-strmbtouc: Likewise.
12695         * modules/unistr/u32-strncat: Likewise.
12696         * modules/unistr/u32-strncmp: Likewise.
12697         * modules/unistr/u32-strncpy: Likewise.
12698         * modules/unistr/u32-strnlen: Likewise.
12699         * modules/unistr/u32-strpbrk: Likewise.
12700         * modules/unistr/u32-strrchr: Likewise.
12701         * modules/unistr/u32-strspn: Likewise.
12702         * modules/unistr/u32-strstr: Likewise.
12703         * modules/unistr/u32-strtok: Likewise.
12704         * modules/unistr/u32-to-u16: Likewise.
12705         * modules/unistr/u32-to-u8: Likewise.
12706         * modules/unistr/u32-uctomb: Likewise.
12707         * modules/uniwbrk/u8-wordbreaks: Likewise.
12708         * modules/uniwbrk/u16-wordbreaks: Likewise.
12709         * modules/uniwbrk/u32-wordbreaks: Likewise.
12710         * modules/uniwbrk/ulc-wordbreaks: Likewise.
12711         * modules/uniwbrk/wordbreak-property: Likewise.
12712         * modules/uniwidth/u8-strwidth: Likewise.
12713         * modules/uniwidth/u8-width: Likewise.
12714         * modules/uniwidth/u16-strwidth: Likewise.
12715         * modules/uniwidth/u16-width: Likewise.
12716         * modules/uniwidth/u32-strwidth: Likewise.
12717         * modules/uniwidth/u32-width: Likewise.
12718         * modules/uniwidth/width: Likewise.
12719         * modules/unicase/cased-tests (Makefile.am): Link all test programs
12720         with $(LIBUNISTRING).
12721         * modules/unicase/ignorable-tests: Likewise.
12722         * modules/unicase/locale-language-tests: Likewise.
12723         * modules/unicase/tolower-tests: Likewise.
12724         * modules/unicase/totitle-tests: Likewise.
12725         * modules/unicase/toupper-tests: Likewise.
12726         * modules/unicase/u8-casecmp-tests: Likewise.
12727         * modules/unicase/u8-casecoll-tests: Likewise.
12728         * modules/unicase/u8-casefold-tests: Likewise.
12729         * modules/unicase/u8-is-cased-tests: Likewise.
12730         * modules/unicase/u8-is-casefolded-tests: Likewise.
12731         * modules/unicase/u8-is-lowercase-tests: Likewise.
12732         * modules/unicase/u8-is-titlecase-tests: Likewise.
12733         * modules/unicase/u8-is-uppercase-tests: Likewise.
12734         * modules/unicase/u8-tolower-tests: Likewise.
12735         * modules/unicase/u8-totitle-tests: Likewise.
12736         * modules/unicase/u8-toupper-tests: Likewise.
12737         * modules/unicase/u16-casecmp-tests: Likewise.
12738         * modules/unicase/u16-casecoll-tests: Likewise.
12739         * modules/unicase/u16-casefold-tests: Likewise.
12740         * modules/unicase/u16-is-cased-tests: Likewise.
12741         * modules/unicase/u16-is-casefolded-tests: Likewise.
12742         * modules/unicase/u16-is-lowercase-tests: Likewise.
12743         * modules/unicase/u16-is-titlecase-tests: Likewise.
12744         * modules/unicase/u16-is-uppercase-tests: Likewise.
12745         * modules/unicase/u16-tolower-tests: Likewise.
12746         * modules/unicase/u16-totitle-tests: Likewise.
12747         * modules/unicase/u16-toupper-tests: Likewise.
12748         * modules/unicase/u32-casecmp-tests: Likewise.
12749         * modules/unicase/u32-casecoll-tests: Likewise.
12750         * modules/unicase/u32-casefold-tests: Likewise.
12751         * modules/unicase/u32-is-cased-tests: Likewise.
12752         * modules/unicase/u32-is-casefolded-tests: Likewise.
12753         * modules/unicase/u32-is-lowercase-tests: Likewise.
12754         * modules/unicase/u32-is-titlecase-tests: Likewise.
12755         * modules/unicase/u32-is-uppercase-tests: Likewise.
12756         * modules/unicase/u32-tolower-tests: Likewise.
12757         * modules/unicase/u32-totitle-tests: Likewise.
12758         * modules/unicase/u32-toupper-tests: Likewise.
12759         * modules/unicase/ulc-casecmp-tests: Likewise.
12760         * modules/unicase/ulc-casecoll-tests: Likewise.
12761         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
12762         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
12763         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
12764         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
12765         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
12766         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
12767         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
12768         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
12769         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
12770         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
12771         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
12772         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
12773         * modules/unictype/bidicategory-byname-tests: Likewise.
12774         * modules/unictype/bidicategory-name-tests: Likewise.
12775         * modules/unictype/bidicategory-of-tests: Likewise.
12776         * modules/unictype/bidicategory-test-tests: Likewise.
12777         * modules/unictype/block-list-tests: Likewise.
12778         * modules/unictype/block-of-tests: Likewise.
12779         * modules/unictype/block-test-tests: Likewise.
12780         * modules/unictype/category-C-tests: Likewise.
12781         * modules/unictype/category-Cc-tests: Likewise.
12782         * modules/unictype/category-Cf-tests: Likewise.
12783         * modules/unictype/category-Cn-tests: Likewise.
12784         * modules/unictype/category-Co-tests: Likewise.
12785         * modules/unictype/category-Cs-tests: Likewise.
12786         * modules/unictype/category-L-tests: Likewise.
12787         * modules/unictype/category-Ll-tests: Likewise.
12788         * modules/unictype/category-Lm-tests: Likewise.
12789         * modules/unictype/category-Lo-tests: Likewise.
12790         * modules/unictype/category-Lt-tests: Likewise.
12791         * modules/unictype/category-Lu-tests: Likewise.
12792         * modules/unictype/category-M-tests: Likewise.
12793         * modules/unictype/category-Mc-tests: Likewise.
12794         * modules/unictype/category-Me-tests: Likewise.
12795         * modules/unictype/category-Mn-tests: Likewise.
12796         * modules/unictype/category-N-tests: Likewise.
12797         * modules/unictype/category-Nd-tests: Likewise.
12798         * modules/unictype/category-Nl-tests: Likewise.
12799         * modules/unictype/category-No-tests: Likewise.
12800         * modules/unictype/category-P-tests: Likewise.
12801         * modules/unictype/category-Pc-tests: Likewise.
12802         * modules/unictype/category-Pd-tests: Likewise.
12803         * modules/unictype/category-Pe-tests: Likewise.
12804         * modules/unictype/category-Pf-tests: Likewise.
12805         * modules/unictype/category-Pi-tests: Likewise.
12806         * modules/unictype/category-Po-tests: Likewise.
12807         * modules/unictype/category-Ps-tests: Likewise.
12808         * modules/unictype/category-S-tests: Likewise.
12809         * modules/unictype/category-Sc-tests: Likewise.
12810         * modules/unictype/category-Sk-tests: Likewise.
12811         * modules/unictype/category-Sm-tests: Likewise.
12812         * modules/unictype/category-So-tests: Likewise.
12813         * modules/unictype/category-Z-tests: Likewise.
12814         * modules/unictype/category-Zl-tests: Likewise.
12815         * modules/unictype/category-Zp-tests: Likewise.
12816         * modules/unictype/category-Zs-tests: Likewise.
12817         * modules/unictype/category-and-not-tests: Likewise.
12818         * modules/unictype/category-and-tests: Likewise.
12819         * modules/unictype/category-byname-tests: Likewise.
12820         * modules/unictype/category-name-tests: Likewise.
12821         * modules/unictype/category-none-tests: Likewise.
12822         * modules/unictype/category-of-tests: Likewise.
12823         * modules/unictype/category-or-tests: Likewise.
12824         * modules/unictype/category-test-withtable-tests: Likewise.
12825         * modules/unictype/combining-class-tests: Likewise.
12826         * modules/unictype/ctype-alnum-tests: Likewise.
12827         * modules/unictype/ctype-alpha-tests: Likewise.
12828         * modules/unictype/ctype-blank-tests: Likewise.
12829         * modules/unictype/ctype-cntrl-tests: Likewise.
12830         * modules/unictype/ctype-digit-tests: Likewise.
12831         * modules/unictype/ctype-graph-tests: Likewise.
12832         * modules/unictype/ctype-lower-tests: Likewise.
12833         * modules/unictype/ctype-print-tests: Likewise.
12834         * modules/unictype/ctype-punct-tests: Likewise.
12835         * modules/unictype/ctype-space-tests: Likewise.
12836         * modules/unictype/ctype-upper-tests: Likewise.
12837         * modules/unictype/ctype-xdigit-tests: Likewise.
12838         * modules/unictype/decimal-digit-tests: Likewise.
12839         * modules/unictype/digit-tests: Likewise.
12840         * modules/unictype/mirror-tests: Likewise.
12841         * modules/unictype/numeric-tests: Likewise.
12842         * modules/unictype/property-alphabetic-tests: Likewise.
12843         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
12844         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
12845         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
12846         * modules/unictype/property-bidi-block-separator-tests: Likewise.
12847         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
12848         * modules/unictype/property-bidi-common-separator-tests: Likewise.
12849         * modules/unictype/property-bidi-control-tests: Likewise.
12850         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
12851         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
12852         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
12853         * modules/unictype/property-bidi-european-digit-tests: Likewise.
12854         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
12855         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
12856         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
12857         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
12858         * modules/unictype/property-bidi-pdf-tests: Likewise.
12859         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
12860         * modules/unictype/property-bidi-whitespace-tests: Likewise.
12861         * modules/unictype/property-byname-tests: Likewise.
12862         * modules/unictype/property-combining-tests: Likewise.
12863         * modules/unictype/property-composite-tests: Likewise.
12864         * modules/unictype/property-currency-symbol-tests: Likewise.
12865         * modules/unictype/property-dash-tests: Likewise.
12866         * modules/unictype/property-decimal-digit-tests: Likewise.
12867         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
12868         * modules/unictype/property-deprecated-tests: Likewise.
12869         * modules/unictype/property-diacritic-tests: Likewise.
12870         * modules/unictype/property-extender-tests: Likewise.
12871         * modules/unictype/property-format-control-tests: Likewise.
12872         * modules/unictype/property-grapheme-base-tests: Likewise.
12873         * modules/unictype/property-grapheme-extend-tests: Likewise.
12874         * modules/unictype/property-grapheme-link-tests: Likewise.
12875         * modules/unictype/property-hex-digit-tests: Likewise.
12876         * modules/unictype/property-hyphen-tests: Likewise.
12877         * modules/unictype/property-id-continue-tests: Likewise.
12878         * modules/unictype/property-id-start-tests: Likewise.
12879         * modules/unictype/property-ideographic-tests: Likewise.
12880         * modules/unictype/property-ids-binary-operator-tests: Likewise.
12881         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
12882         * modules/unictype/property-ignorable-control-tests: Likewise.
12883         * modules/unictype/property-iso-control-tests: Likewise.
12884         * modules/unictype/property-join-control-tests: Likewise.
12885         * modules/unictype/property-left-of-pair-tests: Likewise.
12886         * modules/unictype/property-line-separator-tests: Likewise.
12887         * modules/unictype/property-logical-order-exception-tests: Likewise.
12888         * modules/unictype/property-lowercase-tests: Likewise.
12889         * modules/unictype/property-math-tests: Likewise.
12890         * modules/unictype/property-non-break-tests: Likewise.
12891         * modules/unictype/property-not-a-character-tests: Likewise.
12892         * modules/unictype/property-numeric-tests: Likewise.
12893         * modules/unictype/property-other-alphabetic-tests: Likewise.
12894         * modules/unictype/property-other-default-ignorable-code-point-tests:
12895         Likewise.
12896         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
12897         * modules/unictype/property-other-id-continue-tests: Likewise.
12898         * modules/unictype/property-other-id-start-tests: Likewise.
12899         * modules/unictype/property-other-lowercase-tests: Likewise.
12900         * modules/unictype/property-other-math-tests: Likewise.
12901         * modules/unictype/property-other-uppercase-tests: Likewise.
12902         * modules/unictype/property-paired-punctuation-tests: Likewise.
12903         * modules/unictype/property-paragraph-separator-tests: Likewise.
12904         * modules/unictype/property-pattern-syntax-tests: Likewise.
12905         * modules/unictype/property-pattern-white-space-tests: Likewise.
12906         * modules/unictype/property-private-use-tests: Likewise.
12907         * modules/unictype/property-punctuation-tests: Likewise.
12908         * modules/unictype/property-quotation-mark-tests: Likewise.
12909         * modules/unictype/property-radical-tests: Likewise.
12910         * modules/unictype/property-sentence-terminal-tests: Likewise.
12911         * modules/unictype/property-soft-dotted-tests: Likewise.
12912         * modules/unictype/property-space-tests: Likewise.
12913         * modules/unictype/property-terminal-punctuation-tests: Likewise.
12914         * modules/unictype/property-test-tests: Likewise.
12915         * modules/unictype/property-titlecase-tests: Likewise.
12916         * modules/unictype/property-unassigned-code-value-tests: Likewise.
12917         * modules/unictype/property-unified-ideograph-tests: Likewise.
12918         * modules/unictype/property-uppercase-tests: Likewise.
12919         * modules/unictype/property-variation-selector-tests: Likewise.
12920         * modules/unictype/property-white-space-tests: Likewise.
12921         * modules/unictype/property-xid-continue-tests: Likewise.
12922         * modules/unictype/property-xid-start-tests: Likewise.
12923         * modules/unictype/property-zero-width-tests: Likewise.
12924         * modules/unictype/scripts-tests: Likewise.
12925         * modules/unictype/syntax-c-ident-tests: Likewise.
12926         * modules/unictype/syntax-c-whitespace-tests: Likewise.
12927         * modules/unictype/syntax-java-ident-tests: Likewise.
12928         * modules/unictype/syntax-java-whitespace-tests: Likewise.
12929         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
12930         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
12931         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
12932         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
12933         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
12934         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
12935         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
12936         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
12937         * modules/uniname/uniname-tests: Likewise.
12938         * modules/uninorm/canonical-decomposition-tests: Likewise.
12939         * modules/uninorm/compat-decomposition-tests: Likewise.
12940         * modules/uninorm/composition-tests: Likewise.
12941         * modules/uninorm/decomposing-form-tests: Likewise.
12942         * modules/uninorm/decomposition-tests: Likewise.
12943         * modules/uninorm/filter-tests: Likewise.
12944         * modules/uninorm/nfc-tests: Likewise.
12945         * modules/uninorm/nfd-tests: Likewise.
12946         * modules/uninorm/nfkc-tests: Likewise.
12947         * modules/uninorm/nfkd-tests: Likewise.
12948         * modules/uninorm/u8-normcmp-tests: Likewise.
12949         * modules/uninorm/u8-normcoll-tests: Likewise.
12950         * modules/uninorm/u16-normcmp-tests: Likewise.
12951         * modules/uninorm/u16-normcoll-tests: Likewise.
12952         * modules/uninorm/u32-normcmp-tests: Likewise.
12953         * modules/uninorm/u32-normcoll-tests: Likewise.
12954         * modules/unistdio/u8-asnprintf-tests: Likewise.
12955         * modules/unistdio/u8-vasnprintf-tests: Likewise.
12956         * modules/unistdio/u8-vasprintf-tests: Likewise.
12957         * modules/unistdio/u8-vsnprintf-tests: Likewise.
12958         * modules/unistdio/u8-vsprintf-tests: Likewise.
12959         * modules/unistdio/u16-asnprintf-tests: Likewise.
12960         * modules/unistdio/u16-vasnprintf-tests: Likewise.
12961         * modules/unistdio/u16-vasprintf-tests: Likewise.
12962         * modules/unistdio/u16-vsnprintf-tests: Likewise.
12963         * modules/unistdio/u16-vsprintf-tests: Likewise.
12964         * modules/unistdio/u32-asnprintf-tests: Likewise.
12965         * modules/unistdio/u32-vasnprintf-tests: Likewise.
12966         * modules/unistdio/u32-vasprintf-tests: Likewise.
12967         * modules/unistdio/u32-vsnprintf-tests: Likewise.
12968         * modules/unistdio/u32-vsprintf-tests: Likewise.
12969         * modules/unistdio/ulc-asnprintf-tests: Likewise.
12970         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
12971         * modules/unistdio/ulc-vasprintf-tests: Likewise.
12972         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
12973         * modules/unistdio/ulc-vsprintf-tests: Likewise.
12974         * modules/unistr/u8-check-tests: Likewise.
12975         * modules/unistr/u8-chr-tests: Likewise.
12976         * modules/unistr/u8-cmp-tests: Likewise.
12977         * modules/unistr/u8-cmp2-tests: Likewise.
12978         * modules/unistr/u8-cpy-alloc-tests: Likewise.
12979         * modules/unistr/u8-cpy-tests: Likewise.
12980         * modules/unistr/u8-mblen-tests: Likewise.
12981         * modules/unistr/u8-mbsnlen-tests: Likewise.
12982         * modules/unistr/u8-mbtouc-tests: Likewise.
12983         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
12984         * modules/unistr/u8-mbtoucr-tests: Likewise.
12985         * modules/unistr/u8-move-tests: Likewise.
12986         * modules/unistr/u8-next-tests: Likewise.
12987         * modules/unistr/u8-prev-tests: Likewise.
12988         * modules/unistr/u8-set-tests: Likewise.
12989         * modules/unistr/u8-stpcpy-tests: Likewise.
12990         * modules/unistr/u8-stpncpy-tests: Likewise.
12991         * modules/unistr/u8-strcat-tests: Likewise.
12992         * modules/unistr/u8-strcmp-tests: Likewise.
12993         * modules/unistr/u8-strcoll-tests: Likewise.
12994         * modules/unistr/u8-strcpy-tests: Likewise.
12995         * modules/unistr/u8-strdup-tests: Likewise.
12996         * modules/unistr/u8-strlen-tests: Likewise.
12997         * modules/unistr/u8-strmblen-tests: Likewise.
12998         * modules/unistr/u8-strmbtouc-tests: Likewise.
12999         * modules/unistr/u8-strncat-tests: Likewise.
13000         * modules/unistr/u8-strncmp-tests: Likewise.
13001         * modules/unistr/u8-strncpy-tests: Likewise.
13002         * modules/unistr/u8-strnlen-tests: Likewise.
13003         * modules/unistr/u8-to-u16-tests: Likewise.
13004         * modules/unistr/u8-to-u32-tests: Likewise.
13005         * modules/unistr/u8-uctomb-tests: Likewise.
13006         * modules/unistr/u16-check-tests: Likewise.
13007         * modules/unistr/u16-chr-tests: Likewise.
13008         * modules/unistr/u16-cmp-tests: Likewise.
13009         * modules/unistr/u16-cmp2-tests: Likewise.
13010         * modules/unistr/u16-cpy-alloc-tests: Likewise.
13011         * modules/unistr/u16-cpy-tests: Likewise.
13012         * modules/unistr/u16-mblen-tests: Likewise.
13013         * modules/unistr/u16-mbsnlen-tests: Likewise.
13014         * modules/unistr/u16-mbtouc-tests: Likewise.
13015         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
13016         * modules/unistr/u16-mbtoucr-tests: Likewise.
13017         * modules/unistr/u16-move-tests: Likewise.
13018         * modules/unistr/u16-next-tests: Likewise.
13019         * modules/unistr/u16-prev-tests: Likewise.
13020         * modules/unistr/u16-set-tests: Likewise.
13021         * modules/unistr/u16-stpcpy-tests: Likewise.
13022         * modules/unistr/u16-stpncpy-tests: Likewise.
13023         * modules/unistr/u16-strcat-tests: Likewise.
13024         * modules/unistr/u16-strcmp-tests: Likewise.
13025         * modules/unistr/u16-strcoll-tests: Likewise.
13026         * modules/unistr/u16-strcpy-tests: Likewise.
13027         * modules/unistr/u16-strdup-tests: Likewise.
13028         * modules/unistr/u16-strlen-tests: Likewise.
13029         * modules/unistr/u16-strmblen-tests: Likewise.
13030         * modules/unistr/u16-strmbtouc-tests: Likewise.
13031         * modules/unistr/u16-strncat-tests: Likewise.
13032         * modules/unistr/u16-strncmp-tests: Likewise.
13033         * modules/unistr/u16-strncpy-tests: Likewise.
13034         * modules/unistr/u16-strnlen-tests: Likewise.
13035         * modules/unistr/u16-to-u32-tests: Likewise.
13036         * modules/unistr/u16-to-u8-tests: Likewise.
13037         * modules/unistr/u16-uctomb-tests: Likewise.
13038         * modules/unistr/u32-check-tests: Likewise.
13039         * modules/unistr/u32-chr-tests: Likewise.
13040         * modules/unistr/u32-cmp-tests: Likewise.
13041         * modules/unistr/u32-cmp2-tests: Likewise.
13042         * modules/unistr/u32-cpy-alloc-tests: Likewise.
13043         * modules/unistr/u32-cpy-tests: Likewise.
13044         * modules/unistr/u32-mblen-tests: Likewise.
13045         * modules/unistr/u32-mbsnlen-tests: Likewise.
13046         * modules/unistr/u32-mbtouc-tests: Likewise.
13047         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
13048         * modules/unistr/u32-mbtoucr-tests: Likewise.
13049         * modules/unistr/u32-move-tests: Likewise.
13050         * modules/unistr/u32-next-tests: Likewise.
13051         * modules/unistr/u32-prev-tests: Likewise.
13052         * modules/unistr/u32-set-tests: Likewise.
13053         * modules/unistr/u32-stpcpy-tests: Likewise.
13054         * modules/unistr/u32-stpncpy-tests: Likewise.
13055         * modules/unistr/u32-strcat-tests: Likewise.
13056         * modules/unistr/u32-strcmp-tests: Likewise.
13057         * modules/unistr/u32-strcoll-tests: Likewise.
13058         * modules/unistr/u32-strcpy-tests: Likewise.
13059         * modules/unistr/u32-strdup-tests: Likewise.
13060         * modules/unistr/u32-strlen-tests: Likewise.
13061         * modules/unistr/u32-strmblen-tests: Likewise.
13062         * modules/unistr/u32-strmbtouc-tests: Likewise.
13063         * modules/unistr/u32-strncat-tests: Likewise.
13064         * modules/unistr/u32-strncmp-tests: Likewise.
13065         * modules/unistr/u32-strncpy-tests: Likewise.
13066         * modules/unistr/u32-strnlen-tests: Likewise.
13067         * modules/unistr/u32-to-u16-tests: Likewise.
13068         * modules/unistr/u32-to-u8-tests: Likewise.
13069         * modules/unistr/u32-uctomb-tests: Likewise.
13070         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
13071         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
13072         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
13073         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
13074         * modules/uniwidth/u8-strwidth-tests: Likewise.
13075         * modules/uniwidth/u8-width-tests: Likewise.
13076         * modules/uniwidth/u16-strwidth-tests: Likewise.
13077         * modules/uniwidth/u16-width-tests: Likewise.
13078         * modules/uniwidth/u32-strwidth-tests: Likewise.
13079         * modules/uniwidth/u32-width-tests: Likewise.
13080         * modules/uniwidth/width-tests: Likewise.
13081
13082 2010-05-18  Richard Jones  <rjones@redhat.com>
13083
13084         doc: users.txt: list hivex
13085         * users.txt: Add hivex.
13086
13087 2010-05-18  Richard Jones  <rjones@redhat.com>
13088
13089         doc: users.txt: list febootstrap
13090         * users.txt: Add febootstrap.
13091
13092 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
13093
13094         bootstrap: fix an error when gnulib is not used as a git submodule
13095         * build-aux/bootstrap (gnulib_path): If its length is zero then
13096         assign "gnulib" to it.
13097         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
13098
13099 2010-05-16  Bruno Haible  <bruno@clisp.org>
13100
13101         Avoid autoconf warnings about AM_ICONV.
13102         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
13103         2.64.
13104
13105 2010-05-16  Bruno Haible  <bruno@clisp.org>
13106
13107         absolute-header: Make the macro usable in more situations.
13108         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
13109         from gl_ABSOLUTE_HEADER.
13110         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
13111
13112 2010-05-16  James Youngman  <jay@gnu.org>
13113
13114         doc: update users.txt
13115         * users.txt: Add CSSC.
13116
13117 2010-05-16  Jim Meyering  <meyering@redhat.com>
13118
13119         init.sh: fix an error in the previous change; add more comments
13120         * tests/init.sh: Compare exit code in loop against 9, not 2.
13121         Patch by Bruno Haible.
13122         Make the two tests more similar by adding an empty "then" clause.
13123         Add comments.
13124
13125         init.sh: avoid unnecessary shell re-exec
13126         * tests/init.sh: Improve the re-exec-required check to first test the
13127         current shell.  If it passes the test, do not search for a shell that
13128         does pass, and do not re-exec.  This test is particularly contorted to
13129         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
13130         of $(...) evokes a syntax error and causes immediate shell exit with
13131         status 2.  Bruno Haible reported that the re-exec made it impossible
13132         to single-step through any init.sh-using script.
13133
13134 2010-05-16  Bruno Haible  <bruno@clisp.org>
13135
13136         Fix collision between gnulib's and libintl's printf replacements.
13137         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
13138         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
13139         (printf): When using GNU C, map the __printf__ function to rpl_printf
13140         via __asm__. When not using GNU C, define rpl_printf instead of
13141         __printf__.
13142         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
13143         commit.
13144         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
13145         commit.
13146         * m4/asm-underscore.m4: New file.
13147         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
13148         * modules/stdio (Files): Add m4/asm-underscore.m4.
13149         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
13150         Reported by Ben Pfaff.
13151
13152 2010-05-16  Bruno Haible  <bruno@clisp.org>
13153
13154         verify: Avoid skipping the test on openSUSE 11.0.
13155         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
13156
13157 2010-05-13  Bruno Haible  <bruno@clisp.org>
13158
13159         Avoid useless warnings from G++.
13160         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
13161         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
13162         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13163
13164 2010-05-11  Jim Meyering  <meyering@redhat.com>
13165
13166         maint.mk: tweak preceding change
13167         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
13168         regexps tighter by anchoring at EOL, and make the new group "shy"
13169         for slightly decreased overhead.
13170
13171 2010-05-11  Eric Blake  <eblake@redhat.com>
13172
13173         maint.mk: gnulib doesn't guarantee NSIG
13174         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
13175
13176 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13177
13178         test-pwrite.c: Remove unused variable declaration.
13179         * tests/test-pwrite.c (main): Remove read_buf declaration.
13180
13181         Remove useless test-pwrite.sh file.
13182         * tests/test-pwrite.sh: Delete file.
13183         * modules/pwrite-tests: Remove references.
13184         Reported by Bruno Haible.
13185
13186 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13187
13188         init.sh: fix a typo
13189         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
13190
13191 2010-05-10  Jim Meyering  <meyering@redhat.com>
13192
13193         maint.mk: avoid using a temporary file in the always-defined-macros check
13194         * top/maint.mk (.re-defmac): Remove rule.
13195         (gl_trap_): Remove definition.
13196         (sc_prohibit_always-defined_macros): Rewrite not to create and
13197         depend on a temporary file.  Instead, depend on GNU grep's ability
13198         to read a list of regular expressions from stdin when given "-f -".
13199
13200 2010-05-09  Bruno Haible  <bruno@clisp.org>
13201
13202         Update to GNU gettext 0.18, part 1.
13203         * m4/gettext.m4: Update to GNU gettext 0.18.
13204         * m4/intl.m4: Likewise.
13205         * m4/po.m4: Likewise.
13206         * modules/gettext (Files): Add m4/fcntl-o.m4.
13207         (configure.ac): Require gettext infrastructure from version 0.18.
13208
13209 2010-05-09  Jim Meyering  <meyering@redhat.com>
13210
13211         init.sh: enable MALLOC_PERTURB_
13212         * tests/init.sh: Enable glibc's malloc-perturbing option.
13213
13214         maint.mk: improve sc_cross_check_PATH_usage_in_tests
13215         With my recent change in init.sh from the two-line form:
13216             -#   : ${srcdir=.}
13217             -#   . "$srcdir/init.sh"; path_prepend_ .
13218             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
13219         I noticed that using the one-line form would cause this test
13220         to fail with a false-positive, or to stop working altogether,
13221         depending on whether help-version changed or all the tests did.
13222         * top/maint.mk (_hv_regex): Remove this definition.
13223         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
13224         (_hv_regex_strong): Use a stronger regex to check for conformance.
13225         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
13226         Give a separate diagnostic for lack of conforming use.
13227
13228         maint.mk: prohibit definition of symbols defined by gnulib
13229         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
13230         definition of symbols defined by gnulib.
13231
13232 2010-05-09  Bruno Haible  <bruno@clisp.org>
13233
13234         acl: Avoid test failure on Cygwin-hosted mingw.
13235         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
13236
13237 2010-05-09  Bruno Haible  <bruno@clisp.org>
13238
13239         error: Use system's fcntl function.
13240         * lib/error.c (fcntl): Undefine.
13241
13242 2010-05-09  Jim Meyering  <meyering@redhat.com>
13243
13244         verify: adjust formatting to be more consistent
13245         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
13246         argument-list '('s, and after one comma.
13247
13248 2010-05-09  Bruno Haible  <bruno@clisp.org>
13249
13250         error: More reliable output on mingw.
13251         * lib/error.c: Include <windows.h>.
13252         (is_open): New function.
13253         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
13254         defined.
13255
13256 2010-05-09  Bruno Haible  <bruno@clisp.org>
13257
13258         vasnprintf: Fix syntax errors in libintl build on mingw.
13259         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
13260         pad_ourselves and prec_ourselves after use.
13261
13262 2010-05-08  Bruno Haible  <bruno@clisp.org>
13263
13264         * lib/config.charset: Update comments for Cygwin 1.7.
13265         * lib/localcharset.c: Likewise.
13266
13267 2010-05-07  Jim Meyering  <meyering@redhat.com>
13268
13269         init.sh: improve comments
13270         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
13271         . "${srcdir=.}/init.sh"; path_prepend_ .
13272         Add a note about path_prepend_ and the alternative of using
13273         TESTS_ENVIRONMENT.
13274
13275 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
13276
13277         exclude: Unescape hashed patterns in wildcard mode.
13278         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
13279         to the hash list.
13280         * tests/test-exclude8.sh: New test case.
13281         * modules/exclude-tests: Add new test.
13282
13283 2010-05-05  Eric Blake  <eblake@redhat.com>
13284
13285         verify: automate tests
13286         * modules/verify-tests: New module.
13287         * tests/test-verify.sh: New file.
13288         * tests/test-verify.c: Guard each negative test with a unique id.
13289         Also avoid warning about unused left hand of comma expressions.
13290
13291 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13292
13293         Further improvements to verify.h, suggested by Eric Blake.
13294         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
13295         the GL_* versions, to avoid collision with OpenGL.
13296         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
13297         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
13298         than testing merely whether it's defined.
13299
13300         Modify verify.h to pacify gcc -Wredundant_decls.
13301         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
13302         These use the prefix "GL_" since they're likely to be useful elsewhere.
13303         We may need to break them out into a different .h file.
13304         (__COUNTER__): Define to 0 if the compiler doesn't support it.
13305         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
13306         of verify_function__.
13307
13308 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13309
13310         Tests for module pwrite.
13311         * modules/pwrite-tests: New file.
13312         * tests/test-pwrite.sh: New file.
13313         * tests/test-pwrite.c: New file.
13314
13315         New module pwrite.
13316         * lib/unistd.in.h (pwrite): New declaration.
13317         * lib/pwrite.c: New file, from glibc with modifications.
13318         * m4/pwrite.m4: New file.
13319         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
13320         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
13321         REPLACE_PWRITE.
13322         * modules/pwrite: New file.
13323         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
13324         REPLACE_PWRITE.
13325         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
13326         * doc/posix-functions/pwrite.texi: Mention the new module.
13327
13328 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13329
13330         pread: Update documentation.
13331         * doc/posix-functions/pread.texi: Mention the 'pread' module.
13332
13333 2010-05-04  Eric Blake  <eblake@redhat.com>
13334
13335         docs: update cygwin progress
13336         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
13337         this bug.
13338         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
13339         Added in cygwin 1.7.2.
13340         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
13341         Likewise.
13342         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
13343         Likewise.
13344         * doc/glibc-functions/dup3.texi (dup3): Likewise.
13345         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13346         * doc/glibc-functions/accept4.texi (accept4): Likewise.
13347         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
13348         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
13349         Mention nproc module.
13350         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
13351         bug in cygwin 1.7.5 addition.
13352         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
13353         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
13354         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
13355         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
13356         1.7.5.
13357         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
13358         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
13359         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
13360         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
13361         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
13362         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
13363         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
13364         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
13365         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
13366         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
13367         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
13368         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
13369         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
13370         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
13371         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
13372         Likewise.
13373         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
13374         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
13375         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
13376         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
13377         Likewise.
13378         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
13379         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
13380         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
13381         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
13382         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
13383         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
13384         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
13385         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
13386         Likewise.
13387         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
13388         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
13389         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
13390         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
13391         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
13392         Likewise.
13393         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
13394         Likewise.
13395         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
13396         Likewise.
13397         * doc/glibc-functions/xdrrec_endofrecord.texi
13398         (xdrrec_endofrecord): Likewise.
13399         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
13400         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
13401         Likewise.
13402         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
13403         Likewise.
13404
13405 2010-05-04  Jim Meyering  <meyering@redhat.com>
13406
13407         gendocs.sh: make its "-s FILE" option more useful
13408         * build-aux/gendocs.sh: When honoring the -s FILE option, update
13409         $PACKAGE to reflect the probably-different basename of "FILE".
13410
13411 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13412
13413         bootstrap: don't ignore download_po_files failure
13414         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
13415         failure.
13416
13417 2010-05-03  Jim Meyering  <meyering@redhat.com>
13418
13419         maint.mk: allow to pass options to gendocs.sh
13420         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
13421         (gendocs_options_): New overridable variable.
13422
13423         gnu-web-doc-update: don't ignore configure or build failure
13424         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
13425
13426         announce-gen: backslash-escape '@'s in --help output
13427         * build-aux/announce-gen: Fix syntax errors.
13428
13429         maint.mk, announce-gen: allow project-specific announcement mail headers
13430         * top/maint.mk (translation_project_): Define default.
13431         (announcement_Cc_, announcement_mail_headers_): Likewise.
13432         (announcement): Invoke announce-gen with new --mail-headers option.
13433         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
13434
13435         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
13436         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
13437         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
13438         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
13439         line in the "err2" output file when running "make check" in verbose
13440         mode (i.e., with set -x enabled).
13441
13442 2010-05-03  Bruno Haible  <bruno@clisp.org>
13443
13444         wctob: Fix for weird platforms.
13445         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
13446         argument value.
13447
13448 2010-05-03  Jim Meyering  <meyering@redhat.com>
13449
13450         maint.mk: prohibit unwarranted use of <strings.h>
13451         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
13452         strings.h in a file that does not also use strcasecmp, strncasecmp,
13453         ffs or ffsll.
13454
13455         maint.mk: remove obsolete comments
13456         * top/maint.mk: Remove stale, commented-out rules.
13457
13458 2010-05-02  Bruno Haible  <bruno@clisp.org>
13459
13460         wcwidth: Declare also when it's aliased.
13461         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
13462         macro.
13463
13464 2010-05-02  Bruno Haible  <bruno@clisp.org>
13465
13466         Fix regression from 2010-04-25.
13467         * gnulib-tool (func_modules_transitive_closure): Check the status of
13468         all modules, not only of the tests that are of the form foo-tests where
13469         foo is a module.
13470
13471 2010-05-02  Bruno Haible  <bruno@clisp.org>
13472
13473         wctob: Work around nasty Cygwin 1.7.2 bug.
13474         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
13475         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
13476
13477 2010-05-01  Bruno Haible  <bruno@clisp.org>
13478
13479         fpurge: Sharper test.
13480         * tests/test-fpurge.c (main): Add one more ftell check.
13481         * modules/fpurge-tests (Depends-on): Add ftell.
13482         Suggested by Eric Blake.
13483
13484 2010-05-01  Bruno Haible  <bruno@clisp.org>
13485
13486         ftello: Another test.
13487         * tests/test-ftello3.c: New file.
13488         * modules/ftello-tests (Files): Add it.
13489         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13490         MOSTLYCLEANFILES.
13491
13492         ftell: Another test.
13493         * tests/test-ftell3.c: New file.
13494         * modules/ftell-tests (Files): Add it.
13495         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13496         MOSTLYCLEANFILES.
13497
13498 2010-05-01  Bruno Haible  <bruno@clisp.org>
13499
13500         ftell, ftello: Work around Solaris bug.
13501         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
13502         * lib/ftello.c: Include stdio-impl.h.
13503         (ftello): On Solaris, when _IOWRT is set, compute the result without
13504         looking at _IOREAD.
13505         * modules/ftello (Files): Add lib/stdio-impl.h.
13506         * doc/posix-functions/ftell.texi: Mention Solaris bug.
13507         * doc/posix-functions/ftello.texi: Likewise.
13508         Reported by Eric Blake.
13509
13510 2010-05-01  Bruno Haible  <bruno@clisp.org>
13511
13512         freading: Adapt to special meaning of _IOREAD flag on Solaris.
13513         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
13514         the _IOWRT flag is also set.
13515
13516 2010-05-01  Bruno Haible  <bruno@clisp.org>
13517
13518         Fix doc about a HP-UX stdio bug.
13519         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
13520         * doc/posix-functions/ftello.texi: Likewise.
13521
13522 2010-05-01  Bruno Haible  <bruno@clisp.org>
13523
13524         lseek test: Fix failure on Solaris.
13525         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
13526         output.
13527
13528 2010-04-30  Jim Meyering  <meyering@redhat.com>
13529
13530         bootstrap: don't ignore failure to generate po*/Makevars
13531         * build-aux/bootstrap (with_gettext): Don't ignore failure
13532         to create po/Makevars or runtime-po/Makevars.
13533
13534 2010-04-29  Eric Blake  <eblake@redhat.com>
13535
13536         headers: relax license to LGPLv2+
13537         * modules/fcntl-h (License): Relax license.
13538         * modules/getopt-posix (License): Likewise.
13539         * modules/locale (License): Likewise.
13540         * modules/math (License): Likewise.
13541         * modules/pty (License): Likewise.
13542         * modules/sched (License): Likewise.
13543         * modules/search (License): Likewise.
13544         * modules/spawn (License): Likewise.
13545         * modules/stdarg (License): Likewise.
13546         * modules/sysexits (License): Likewise.
13547
13548 2010-04-29  Jim Meyering  <meyering@redhat.com>
13549
13550         inttypes: relax license to LGPLv2+
13551         * modules/inttypes (License): Relax license.
13552
13553 2010-04-29  Simon Josefsson  <simon@josefsson.org>
13554
13555         * top/maint.mk (indent): Run twice to produce idempotent results.
13556
13557 2010-04-28  Bruno Haible  <bruno@clisp.org>
13558
13559         getdate: Generate getdate.c in the source directory.
13560         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
13561         MOSTLYCLEANFILES.
13562         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
13563
13564 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
13565
13566         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
13567         is not declared as a const *; avoid warnings in that case.
13568
13569 2010-04-28  Eric Blake  <eblake@redhat.com>
13570
13571         canonicalize-lgpl: avoid compiler warning
13572         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
13573         declaration' / 'extraneous semicolon' warning with some compilers.
13574         Reported by Andreas Gruenbacher.
13575
13576 2010-04-28  Jim Meyering  <meyering@redhat.com>
13577
13578         init.sh: ensure a more reliable exit status when exiting via trap
13579         * tests/init.sh (setup_): Don't rely on $? in signal handler.
13580         Inspired by patches from Dmitry V. Levin.
13581         Also trap on signal 3 (SIGQUIT).
13582
13583 2010-04-27  Bruno Haible  <bruno@clisp.org>
13584
13585         Update doc about utimes().
13586         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
13587         'utimens' module.
13588         Reported by Andreas Gruenbacher <agruen@suse.de>.
13589
13590 2010-04-27  Eric Blake  <eblake@redhat.com>
13591
13592         full-read, full-write: relax license
13593         * modules/full-read (License): Drop to LGPLv2+.
13594         * modules/full-write (License): Likewise.
13595         * modules/safe-read (License): Likewise.
13596         * modules/safe-write (License): Likewise.
13597
13598         pthread: mention library for linking
13599         * modules/pthread (Link): Mention $(LIB_PTHREAD).
13600
13601 2010-04-27  Jim Meyering  <meyering@redhat.com>
13602
13603         maint.mk: fix a bug introduced in last change
13604         * top/maint.mk (gl_assured_headers_): Now that all names are on
13605         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
13606         is not anchored to end of word, it should be adequate.
13607
13608         maint.mk: avoid side-effect in latest syntax-check
13609         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
13610         to run commands via $(shell...), and hence to incur cost only when
13611         the new rule is actually run.
13612
13613         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
13614         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
13615         and use that to create a regexp used to detect all #if HAVE_..._H uses.
13616         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
13617         (gl_assured_headers_, az_, AZ_): Define.
13618         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
13619
13620 2010-04-26  Jim Meyering  <jim@meyering.net>
13621             Bruno Haible  <bruno@clisp.org>
13622
13623         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
13624         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
13625         Prompted by an exchange with Gilles Espinasse.
13626
13627 2010-04-26  Jim Meyering  <meyering@redhat.com>
13628
13629         git-version-gen: aesthetic tweak
13630         * build-aux/git-version-gen: Use "$nl" rather than a literal,
13631         so that the command remains on a single line.
13632
13633 2010-04-26  Eric Blake  <eblake@redhat.com>
13634
13635         git-version-gen: allow use on EBCDIC hosts
13636         * build-aux/git-version-gen (dirty): Use literal rather than tying
13637         ourselves to ascii.
13638         Reported by Steve Goetze.
13639
13640 2010-04-25  Bruno Haible  <bruno@clisp.org>
13641
13642         netdb: Add support for GNULIB_POSIXCHECK.
13643         * lib/netdb.in.h: Include warn-on-use.h.
13644         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
13645         functions are used when GNULIB_POSIXCHECK is defined and the
13646         getaddrinfo module is not in use.
13647         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
13648         freeaddrinfo, gai_strerror, getnameinfo are declared.
13649         * modules/netdb (Depends-on): Add warn-on-use.
13650         (Makefile.am): Include warn-on-use.h in netdb.h.
13651
13652 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
13653
13654         build: avoid "make check" failure without .git/ directory
13655         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
13656         there is no .git/ directory.
13657
13658 2010-04-25  Bruno Haible  <bruno@clisp.org>
13659
13660         ptsname: Fix misuse of ttyname_r.
13661         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
13662         of errno.
13663
13664 2010-04-25  Bruno Haible  <bruno@clisp.org>
13665
13666         ttyname_r: Make it work on Solaris 10.
13667         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
13668         if the system function has the POSIX declaration. Test whether the
13669         function fails if the buffer is less than 128 bytes large.
13670         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
13671         system's ttyname_r function. Provide a reasonably large buffer.
13672         * modules/ttyname_r (Depends-on): Add extensions.
13673         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
13674
13675 2010-04-25  Bruno Haible  <bruno@clisp.org>
13676
13677         Use the 'extensions' module for some more functions on Solaris.
13678         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
13679         module.
13680         * doc/posix-functions/ctime_r.texi: Likewise.
13681         * doc/posix-functions/getgrgid_r.texi: Likewise.
13682         * doc/posix-functions/getgrnam_r.texi: Likewise.
13683         * doc/posix-functions/getpwnam_r.texi: Likewise.
13684         * doc/posix-functions/getpwuid_r.texi: Likewise.
13685         * doc/posix-functions/readdir_r.texi: Likewise.
13686         * doc/posix-functions/sigwait.texi: Likewise.
13687         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
13688         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
13689
13690 2010-04-25  Bruno Haible  <bruno@clisp.org>
13691
13692         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
13693         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
13694         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
13695         * lib/ttyname_r.c: Include <limits.h>.
13696         (ttyname_r): Define using the system's ttyname_r function, if it exists
13697         and not on Solaris.
13698         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
13699         set.
13700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
13701         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
13702         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
13703         Reported by Simon Josefsson.
13704
13705 2010-04-25  Bruno Haible  <bruno@clisp.org>
13706
13707         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
13708         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
13709         * doc/posix-functions/ctime_r.texi: Likewise.
13710         * doc/posix-functions/getgrgid_r.texi: Likewise.
13711         * doc/posix-functions/getgrnam_r.texi: Likewise.
13712         * doc/posix-functions/getlogin_r.texi: Likewise.
13713         * doc/posix-functions/getpwnam_r.texi: Likewise.
13714         * doc/posix-functions/getpwuid_r.texi: Likewise.
13715         * doc/posix-functions/readdir_r.texi: Likewise.
13716         * doc/posix-functions/sigwait.texi: Likewise.
13717         * doc/posix-functions/ttyname_r.texi: Likewise.
13718         Reported by Simon Josefsson.
13719
13720 2010-04-25  Bruno Haible  <bruno@clisp.org>
13721
13722         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
13723         * gnulib-tool (func_usage): Document that --with-*-tests options apply
13724         also to --create-testdir.
13725         (func_acceptable): Don't consider the status of *-tests modules here.
13726         (func_modules_transitive_closure): Consider it here, before including a
13727         test module.
13728         (func_import, func_create_testdir): Set inc_all_direct_tests,
13729         inc_all_indirect_tests.
13730         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
13731         --create-testdir and --create-megatestdir.
13732
13733 2010-04-25  Bruno Haible  <bruno@clisp.org>
13734
13735         gnulib-tool: Add --without-*-tests options.
13736         * gnulib-tool (func_usage): Document the --without-*-tests options.
13737         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
13738         excl_unportable_tests): New variables.
13739         Fail if they are specified with --import or --update.
13740         (func_acceptable): Respect the excl_*_tests variables.
13741         (func_import): Set the excl_*_tests variables to empty.
13742
13743 2010-04-25  Simon Josefsson  <simon@josefsson.org>
13744             Bruno Haible  <bruno@clisp.org>
13745
13746         Work around a MacOS X 10.4 bug with openpty.
13747         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
13748         * tests/test-openpty.c (main): Close the master side explicitly.
13749
13750 2010-04-25  Bruno Haible  <bruno@clisp.org>
13751
13752         strnlen: Fix a C++ test error on MacOS X and Solaris.
13753         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
13754         the function is not declared.
13755         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
13756         Simon Josefsson.
13757
13758 2010-04-24  Bruno Haible  <bruno@clisp.org>
13759
13760         Avoid a gcc warning.
13761         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
13762         of correct type for %08lx directive.
13763         Reported by Eric Blake.
13764
13765 2010-04-24  Bruno Haible  <bruno@clisp.org>
13766
13767         vasnprintf: Correct errno value in case of out-of-memory.
13768         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
13769         or sprintf. Use the errno value from SNPRINTF or sprintf.
13770         Reported by Ian Beckwith <ianb@erislabs.net>.
13771
13772 2010-04-24  Bruno Haible  <bruno@clisp.org>
13773
13774         ansi-c++-opt: Find correct compiler when cross-compiling.
13775         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
13776         AC_CHECK_PROGS.
13777         Reported by Simon Josefsson.
13778
13779 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
13780
13781         vc-list-files: Add support for subversion
13782         * build-aux/vc-list-files: Use "svn list" to generate the list of
13783         files controlled by subversion.
13784
13785 2010-04-23  Jim Meyering  <meyering@redhat.com>
13786
13787         vc-list-files tests: convert to use init.sh
13788         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
13789         path_prepend_.
13790         Use Exit, not exit.
13791         Use skip_ rather than open coding it.
13792         Remove trap set-up and compare definitions.
13793         * tests/test-vc-list-files-git.sh: Likewise.
13794         * modules/vc-list-files-tests (Files): Add tests/init.sh.
13795
13796 2010-04-22  Simon Josefsson  <simon@josefsson.org>
13797
13798         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
13799         backup files.
13800
13801 2010-04-21  Simon Josefsson  <simon@josefsson.org>
13802
13803         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
13804
13805 2010-04-20  Eric Blake  <eblake@redhat.com>
13806
13807         tests: be robust to ignored SIGPIPE
13808         * tests/test-select-in.sh: Consume all output.
13809         * tests/test-lseek.sh: Check correct exit status, while avoiding
13810         EPIPE.
13811
13812 2010-04-20  Simon Josefsson  <simon@josefsson.org>
13813             Bruno Haible  <bruno@clisp.org>
13814
13815         visibility: Don't use -fvisibility if it leads to a warning.
13816         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
13817         yes, don't pretend that visibility works if it leads to a warning.
13818         Reported by Mike Gran <spk121@yahoo.com>.
13819
13820 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
13821
13822         * build-aux/bootstrap: Use "git -h" for testing for supported options
13823         instead of "git --help".  The short-form option only shows a summary,
13824         and doesn't layout the full man page.  Grep for the full option name
13825         in the summary, too.
13826
13827 2010-04-19  Bruno Haible  <bruno@clisp.org>
13828
13829         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
13830         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
13831         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
13832         mention of RELOCATABLE_STRIP.
13833         Reported by Sylvain Beucler <beuc@beuc.net>.
13834
13835 2010-04-19  Bruno Haible  <bruno@clisp.org>
13836
13837         * lib/diffseq.h: Fix typo in comment.
13838         Reported by Eric Blake.
13839
13840 2010-04-19  Bruno Haible  <bruno@clisp.org>
13841
13842         ioctl: Move autoconf macro to a .m4 file.
13843         * m4/ioctl.m4: New file, extracted from modules/ioctl.
13844         * modules/ioctl (Files): Add it.
13845         (configure.ac): Simply invoke gl_FUNC_IOCTL.
13846         Reported by Ian Beckwith <ianb@erislabs.net>.
13847
13848 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
13849             Bruno Haible  <bruno@clisp.org>
13850
13851         diffseq: Accommodate use-case with abstract arrays.
13852         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
13853         is not defined.
13854         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
13855         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
13856
13857 2010-04-18  Bruno Haible  <bruno@clisp.org>
13858
13859         * doc/posix-headers/stdbool.texi: More precise wording.
13860
13861 2010-04-17  Jim Meyering  <meyering@redhat.com>
13862
13863         maint.mk: use gnu-style indentation in an embedded perl script
13864         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
13865         Rename variable: s/two/last_two_bytes/
13866
13867 2010-04-16  Eric Blake  <eblake@redhat.com>
13868
13869         test-stdbool: skip test that fails with Solaris CC
13870         * tests/test-stdbool.c (f): Skip test that causes compilation
13871         error under buggy C++ compiler.
13872         * lib/stdbool.in.h: Document the limitation.
13873         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
13874
13875         setenv: allow compilation with C++
13876         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
13877         register keyword.
13878
13879         stdint: allow test to pass with C++
13880         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
13881
13882         getopt: allow compilation with C++
13883         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
13884         struct.
13885         * lib/getopt.c (_getopt_internal_r): Use correct type.
13886         Reported by Dagobert Michelson, via Joel E. Denny.
13887
13888 2010-04-16  Bruno Haible  <bruno@clisp.org>
13889
13890         Override netdb.h always.
13891         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
13892         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
13893         Reported by Ludovic Courtès <ludo@gnu.org>.
13894
13895 2010-04-15  Bruno Haible  <bruno@clisp.org>
13896
13897         openpty: Fix mistake from 2010-03-21.
13898         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13899         Reported by Simon Josefsson.
13900
13901 2010-04-15  Eric Blake  <eblake@redhat.com>
13902
13903         test-forkpty: fix expected signature
13904         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
13905         Reported by Simon Josefsson.
13906
13907 2010-04-15  Jim Meyering  <meyering@redhat.com>
13908
13909         maint.mk: texinfo_suffix_re_: correct the default regexp
13910         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
13911
13912         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
13913         make it configurable via texinfo_suffix_re_.
13914
13915 2010-04-14  Eric Blake  <eblake@redhat.com>
13916
13917         strtok_r: relax license to LGPLv2+
13918         * modules/strtok_r (License): Relax license.
13919         Reported by Matthias Bolte.
13920
13921 2010-04-14  Simon Josefsson  <simon@josefsson.org>
13922
13923         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
13924         version 1.4.4 by default instead of requiring the libgcrypt
13925         version used during build.  This makes it possible to use the
13926         application with older but still binary compatible libgcrypt
13927         versions.
13928
13929 2010-04-13  Eric Blake  <eblake@redhat.com>
13930
13931         getopt-gnu: match recent glibc fixes and posix ruling
13932         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
13933         '+' handling, when requesting extensions.
13934         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
13935         'W;' handling.
13936         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
13937         * doc/posix-functions/getopt.texi (getopt): Document this.
13938         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13939         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13940         Likewise.
13941
13942         getopt: merge bug fixes from glibc
13943         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
13944         diagnostics.  Honor '+:' correctly.  Reject ';'.
13945
13946         getopt-posix: detect MacOS bug
13947         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
13948         optind when missing a required argument.
13949         * doc/posix-functions/getopt.texi (getopt): Document the bug.
13950         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13951         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13952         Likewise.
13953
13954         getopt-posix: avoid spurious failure on Solaris
13955         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
13956         an indicator that setting optind=1 is sufficient for reset.
13957
13958         getopt-posix: avoid spurious failure on FreeBSD
13959         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
13960         in POSIX mode, since the m4 test uses it.
13961
13962         gnulib-tool: silence warning on BSD sh
13963         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
13964
13965 2010-04-13  Jim Meyering  <meyering@redhat.com>
13966
13967         doc: users.txt: GNU patch now uses gnulib
13968         * users.txt: Add patch.
13969
13970 2010-04-12  Jim Meyering  <meyering@redhat.com>
13971
13972         maint.mk: generate more concise timing data for syntax-check rules
13973         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
13974         " done" from each line that reports a syntax-check test duration.
13975
13976 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
13977
13978         git-version-gen: use "git update-index..." rather than "git status"
13979         * build-aux/git-version-gen: Use git update-index --refresh, not
13980         "git status".  With some versions of git, "git status" would fail
13981         to update the index and result in an unwarranted "-dirty" suffix.
13982
13983 2010-04-11  Jim Meyering  <meyering@redhat.com>
13984
13985         openat: correct formatting (no semantic change)
13986         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
13987         Suggested by Bruno Haible.
13988
13989 2010-04-11  Bruno Haible  <bruno@clisp.org>
13990
13991         Stricter declaration checking in testdirs.
13992         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13993         If for_tests is true, augment AM_CPPFLAGS to define
13994         GNULIB_STRICT_CHECKING.
13995         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
13996         GNULIB_STRICT_CHECKING is defined, verify that the function is
13997         declared.
13998
13999 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
14000             Bruno Haible  <bruno@clisp.org>
14001
14002         libunistring: Improve configure output.
14003         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
14004         Don't say "consider installing GNU libunistring" when checking again
14005         with libiconv.
14006
14007 2010-04-11  Bruno Haible  <bruno@clisp.org>
14008
14009         libunistring: Correct value of $LTLIBUNISTRING.
14010         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
14011         correct the value of $LTLIBUNISTRING.
14012
14013 2010-04-11  Bruno Haible  <bruno@clisp.org>
14014
14015         havelib: Add static libraries to LIBS in the right order.
14016         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
14017         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
14018
14019 2010-04-11  Bruno Haible  <bruno@clisp.org>
14020
14021         libunistring: Detect libunistring also when it depends on libiconv.
14022         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
14023         the second AC_LIB_HAVE_LINKFLAGS invocation.
14024
14025 2010-04-11  James Youngman  <jay@gnu.org>
14026
14027         close-stream: declare local scalars to be "const"
14028         * lib/close-stream.c (close_stream): Make boolean variables const
14029         to document the fact that we set but do not change them.
14030
14031 2010-04-11  Bruno Haible  <bruno@clisp.org>
14032
14033         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
14034
14035 2010-04-11  Jim Meyering  <meyering@redhat.com>
14036
14037         maint.mk: don't include dist-check.mk
14038         * top/maint.mk: Remove bogus include directive.
14039
14040         maint.mk: improve empty-line-at-EOF check
14041         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
14042         solution, rather than tail+Perl-based one.  The latter would read
14043         a few kilobytes from the end of each file, and did not handle empty
14044         files properly.
14045
14046         maint.mk: print the elapsed time for each syntax-check rule
14047         * top/maint.mk (sc_m_rules_): Save start time in a file.
14048         (sc_z_rules_): New rules: remove temp file and print elapsed time.
14049         (local-check): Interpose the .z rules
14050
14051 2010-04-11  Jim Meyering  <meyering@redhat.com>
14052
14053         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
14054         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
14055         empty file with one that ends in an empty line.
14056
14057 2010-04-10  Bruno Haible  <bruno@clisp.org>
14058
14059         mkdir: Make it work on mingw64.
14060         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
14061         * lib/mkdir.c: Update comment.
14062         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
14063
14064 2010-04-10  Bruno Haible  <bruno@clisp.org>
14065
14066         Don't override improved macro from newer autoconf.
14067         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
14068         autoconf >= 2.62.
14069         Reported by Joel E. Denny <jdenny@clemson.edu>.
14070
14071 2010-04-10  Jim Meyering  <meyering@redhat.com>
14072
14073         maint.mk: new syntax-check rule: prohibit empty lines at end of file
14074         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
14075
14076         maint.mk: correct a diagnostic
14077         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
14078         in diagnostic; now use $prohibit.
14079
14080 2010-04-10  Bruno Haible  <address@hidden>
14081
14082         fchownat: Fix a C++ test error on Solaris 8.
14083         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
14084         the function does not exist.
14085
14086 2010-04-10  Bruno Haible  <bruno@clisp.org>
14087
14088         vasnprintf: Add more tests.
14089         * tests/test-vasnprintf-posix.c: Include <errno.h>.
14090         (test_function): Test converting an invalid wide string.
14091
14092         vasnprintf: Correct handling of unconvertible wide string arguments.
14093         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
14094         VASNPRINTF.
14095         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
14096         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
14097         smaller than the expected maximum need for the directive. Set errno to
14098         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
14099         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
14100         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
14101         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
14102         * modules/vasnprintf (Files): Add m4/printf.m4.
14103         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14104
14105 2010-04-10  Bruno Haible  <bruno@clisp.org>
14106
14107         vasnprintf: Fix crash in %ls directive.
14108         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
14109         string is passed as argument to %ls, with no precision and no width.
14110         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14111
14112 2010-04-10  Bruno Haible  <bruno@clisp.org>
14113
14114         vasnprintf: Fix multiple test failures on mingw.
14115         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
14116         _snprintf, or snwprintf, not _snwprintf.
14117
14118 2010-04-10  Bruno Haible  <bruno@clisp.org>
14119
14120         write: Fix a C++ test error on mingw.
14121         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
14122
14123 2010-04-10  Bruno Haible  <bruno@clisp.org>
14124
14125         vasnprintf test: Reduce code duplication.
14126         * tests/test-vasnprintf.c (test_function): New function, extracted from
14127         test_vasnprintf.
14128         (test_vasnprintf, test_asnprintf): Invoke it.
14129
14130 2010-04-10  Bruno Haible  <bruno@clisp.org>
14131
14132         strnlen: Fix warning in C++ mode on MacOS X.
14133         * lib/string.in.h (strnlen): Use the modern idiom.
14134         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
14135         defining strnlen as a macro already in <config.h>.
14136         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14137         REPLACE_STRNLEN.
14138         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
14139         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14140
14141 2010-04-08  James Youngman  <jay@gnu.org>
14142
14143         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
14144         the example.
14145
14146 2010-04-09  Jim Meyering  <meyering@redhat.com>
14147
14148         maint.mk: print better diagnostic when there is no $(_hv_file)
14149         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
14150         announce that when $(_hv_file) (aka help-version) does not exist.
14151
14152         init.sh: run tr in the "C" locale to avoid multibyte interpretation
14153         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
14154         not try to interpret its random input bytes.  Jarno Rajahalme reported
14155         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
14156         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
14157         (mktempd_): Likewise, just in case.
14158
14159         ftruncate: add two years to projected module removal date: 2012
14160         * m4/ftruncate.m4: Adjust comments.
14161
14162         ftruncate: mark module as obsolete; even MinGW provides it, now
14163         * modules/ftruncate (Status): Obsolete.
14164         (Notice): Say that.
14165         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
14166         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
14167
14168 2010-04-08  Bruno Haible  <bruno@clisp.org>
14169
14170         Fix side effects from tests-related modules.
14171         * modules/dprintf-posix (Comment): New section.
14172         * modules/fprintf-posix (Comment): Likewise.
14173         * modules/obstack-printf-posix (Comment): Likewise.
14174         * modules/printf-posix (Comment): Likewise.
14175         * modules/snprintf-posix (Comment): Likewise.
14176         * modules/sprintf-posix (Comment): Likewise.
14177         * modules/vasnprintf-posix (Comment): Likewise.
14178         * modules/vasprintf-posix (Comment): Likewise.
14179         * modules/vdprintf-posix (Comment): Likewise.
14180         * modules/vfprintf-posix (Comment): Likewise.
14181         * modules/vprintf-posix (Comment): Likewise.
14182         * modules/vsnprintf-posix (Comment): Likewise.
14183         * modules/vsprintf-posix (Comment): Likewise.
14184         * modules/xprintf-posix (Comment): Likewise.
14185         * modules/xvasprintf-posix (Comment): Likewise.
14186         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
14187         * modules/floorf-tests (Depends-on): Likewise.
14188         * modules/round-tests (Depends-on): Likewise.
14189         * modules/roundf-tests (Depends-on): Likewise.
14190         * modules/trunc-tests (Depends-on): Likewise.
14191         * modules/truncf-tests (Depends-on): Likewise.
14192         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
14193         'fprintf-posix' module is not present.
14194         * tests/test-floorf2.c (check): Likewise.
14195         * tests/test-trunc2.c (check): Likewise.
14196         * tests/test-truncf2.c (check): Likewise.
14197         * tests/test-round2.c (equal): Likewise.
14198         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14199
14200 2010-04-07  Karl Berry  <karl@gnu.org>
14201
14202         * config/srclist.txt,
14203         * config/srclistvars.sh,
14204         * config/srclist-update: doc fixes.
14205
14206 2010-04-07  Jim Meyering  <meyering@redhat.com>
14207
14208         maint.mk: add a PATH crosschecking syntax-check rule
14209         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
14210         Useful if you use a test like the one in help-version (coreutils,
14211         diffutils, grep, gzip) that ensures $(VERSION) matches what is
14212         printed by prog --version.
14213
14214 2010-04-06  Bruno Haible  <bruno@clisp.org>
14215
14216         Fix link error on mingw.
14217         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
14218         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
14219
14220 2010-04-06  Bruno Haible  <bruno@clisp.org>
14221
14222         Assume rmdir exists.
14223         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
14224
14225 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
14226
14227         doc: update users.txt
14228         * users.txt: Add gcal.
14229
14230 2010-04-06  Jim Meyering  <meyering@redhat.com>
14231
14232         init.sh: simply unset TMPDIR rather than risking env -i
14233         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
14234         although it probably works fine on all Unix-based systems, some
14235         systems (Cygwin?) cannot tolerate a totally cleared environment.
14236         Suggestion from Eric Blake.
14237
14238 2010-04-06  Jim Meyering  <meyering@redhat.com>
14239
14240         init.sh: portability fix: use env's POSIX-specified -i option not -u
14241         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
14242         than unportable env -u.  Solaris 5.11's env lacks support for -u.
14243
14244 2010-04-05  Bruno Haible  <bruno@clisp.org>
14245
14246         btowc: Work around Cygwin 1.7.2 bug.
14247         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
14248         does not map NUL to 0.
14249         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
14250
14251 2010-04-05  Bruno Haible  <bruno@clisp.org>
14252
14253         Make the multithread modules work on Cygwin 1.7.2.
14254         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
14255         imported symbols can be declared weak, so that it returns "no" on
14256         Cygwin 1.7.2.
14257
14258 2010-04-05  Bruno Haible  <bruno@clisp.org>
14259
14260         Use the module 'strncat'.
14261         * modules/unistr/u8-strncat (Depends-on): Add strncat.
14262
14263         Tests for module 'strncat'.
14264         * modules/strncat-tests: New file.
14265         * tests/test-strncat.c: New file.
14266
14267         New module 'strncat'.
14268         * lib/string.in.h (strncat): New declaration.
14269         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
14270         * m4/strncat.m4: New file, based on m4/memchr.m4.
14271         * modules/strncat: New file.
14272         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
14273         is declared.
14274         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
14275         REPLACE_STRNCAT.
14276         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
14277         REPLACE_STRNCAT.
14278         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
14279         module.
14280         * tests/test-string-c++.cc: Check signature of strncat.
14281
14282 2010-04-05  Jim Meyering  <meyering@redhat.com>
14283
14284         xstrtoumax-tests: convert to use init.sh
14285         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
14286         * tests/test-xstrtoumax.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         xstrtoimax-tests: convert to use init.sh
14291         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
14292         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14293         Use Exit, not exit.
14294         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14295
14296 2010-04-05  Bruno Haible  <bruno@clisp.org>
14297
14298         sys_socket: Avoid #define replacements in C++ mode.
14299         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
14300         warning to the function if possible, rather than #defining the symbol
14301         to a dysfunctional alias.
14302
14303 2010-04-05  Bruno Haible  <bruno@clisp.org>
14304
14305         fseeko: Fix C++ test error on mingw.
14306         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
14307         gl_FUNC_FSEEKO.
14308         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
14309         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
14310         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
14311         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
14312
14313 2010-04-05  Bruno Haible  <bruno@clisp.org>
14314
14315         duplocale: Improve test output.
14316         * tests/test-duplocale.c (main): Print reason for skipped test.
14317
14318 2010-04-05  Bruno Haible  <bruno@clisp.org>
14319
14320         Assume rmdir exists.
14321         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
14322         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
14323
14324 2010-04-05  Bruno Haible  <bruno@clisp.org>
14325
14326         Fix link error on Solaris 8 with cc.
14327         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
14328
14329 2010-04-05  Bruno Haible  <bruno@clisp.org>
14330
14331         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14332         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
14333
14334 2010-04-05  Bruno Haible  <bruno@clisp.org>
14335
14336         vasprintf: Update documentation.
14337         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
14338
14339 2010-04-05  Bruno Haible  <bruno@clisp.org>
14340
14341         ptsname: Improve test.
14342         * tests/test-ptsname.c (main): Also try the various master names of BSD
14343         systems.
14344
14345 2010-04-05  Bruno Haible  <bruno@clisp.org>
14346
14347         memchr: Avoid a possible C++ test error.
14348         * lib/string.in.h (memchr): Provide declaration if function is missing.
14349         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
14350         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
14351         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
14352         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
14353
14354 2010-04-05  Bruno Haible  <bruno@clisp.org>
14355
14356         strtok_r: Improve idiom.
14357         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
14358         AC_LIBOBJ is used.
14359
14360 2010-04-05  Bruno Haible  <bruno@clisp.org>
14361
14362         strdup: Improve idiom.
14363         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
14364         AC_LIBOBJ is used.
14365         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
14366         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
14367         when AC_LIBOBJ is used.
14368
14369 2010-04-05  Bruno Haible  <bruno@clisp.org>
14370
14371         mbsinit, mbrtowc, wcrtomb: Improve idioms.
14372         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
14373         don't set REPLACE_MBSINIT to 1.
14374         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
14375         don't set REPLACE_MBRTOWC to 1.
14376         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
14377         exist, don't set REPLACE_MBSRTOWCS to 1.
14378         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
14379         exist, don't set REPLACE_MBSNRTOWCS to 1.
14380         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
14381         don't set REPLACE_WCRTOMB to 1.
14382         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
14383         exist, don't set REPLACE_WCSRTOMBS to 1.
14384         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
14385         exist, don't set REPLACE_WCSNRTOMBS to 1.
14386
14387 2010-04-05  Bruno Haible  <bruno@clisp.org>
14388
14389         ldexpl: Improve idiom.
14390         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
14391         make sure to set HAVE_DECL_LDEXPL to 0.
14392
14393 2010-04-05  Jim Meyering  <meyering@redhat.com>
14394
14395         xstrtol-tests: convert to use init.sh
14396         * modules/xstrtol-tests (Files): Add tests/init.sh.
14397         * tests/test-xstrtol.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         atexit-tests: convert to use init.sh
14402         * modules/atexit-tests (Files): Add tests/init.sh.
14403         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14404         Use Exit, not exit.
14405         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14406
14407         init.sh: fix typo
14408         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
14409
14410         init.sh: make it easier for a test script to write to the tty, ...
14411         when using automake's parallel-tests mode.
14412         * tests/init.sh (stderr_fileno_): Define overridable variable.
14413         (warn_): New function, to use it.
14414         (fail_, skip_, framework_failure_): Use warn_.
14415
14416 2010-04-04  Bruno Haible  <bruno@clisp.org>
14417
14418         btowc: Avoid warning.
14419         * lib/btowc.c: Include <stdlib.h>.
14420         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
14421
14422 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14423             Bruno Haible  <bruno@clisp.org>
14424
14425         wchar: Port to NetBSD 1.5.
14426         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
14427         * lib/wctype.in.h (WEOF): Likewise.
14428
14429 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14430             Bruno Haible  <bruno@clisp.org>
14431
14432         Port extended stdio to NetBSD 1.5.
14433         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
14434         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
14435         older.
14436
14437 2010-04-04  Bruno Haible  <bruno@clisp.org>
14438
14439         string: Remove unused substitution.
14440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14441         HAVE_DECL_STRERROR.
14442         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
14443
14444 2010-04-04  Bruno Haible  <bruno@clisp.org>
14445
14446         strtod: Avoid a possible C++ test error.
14447         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
14448         set REPLACE_STRTOD.
14449
14450 2010-04-04  Bruno Haible  <bruno@clisp.org>
14451
14452         strerror: Update documentation.
14453         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
14454
14455 2010-04-04  Bruno Haible  <bruno@clisp.org>
14456
14457         stdio: Fix some C++ test errors on Solaris 8 with GCC.
14458         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
14459         _GL_CXXALIAS_SYS_CAST.
14460
14461 2010-04-04  Bruno Haible  <bruno@clisp.org>
14462
14463         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14464         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
14465         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
14466         REPLACE_FREXPL to 1.
14467         * doc/posix-functions/frexpl.texi: Update documentation.
14468
14469 2010-04-04  Bruno Haible  <bruno@clisp.org>
14470
14471         math: Fix some C++ test errors on Solaris 8 and Cygwin.
14472         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
14473
14474 2010-04-04  Bruno Haible  <bruno@clisp.org>
14475
14476         Implement nanosleep for native Windows.
14477         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
14478
14479 2010-04-04  Bruno Haible  <bruno@clisp.org>
14480
14481         math: Fix some C++ test errors on Solaris 8.
14482         * lib/math.in.h (truncf, trunc): Use simpler idiom.
14483
14484 2010-04-04  Bruno Haible  <bruno@clisp.org>
14485
14486         math: Fix some C++ test errors on Cygwin.
14487         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
14488         truncl): Provide declaration if the system does not have it.
14489         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
14490         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
14491         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
14492         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
14493         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
14494         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
14495         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
14496         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
14497         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
14498         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
14499         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
14500         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
14501         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
14502         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
14503         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
14504         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
14505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
14506         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14507         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14508         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
14509         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14510         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14511
14512 2010-04-04  Bruno Haible  <bruno@clisp.org>
14513
14514         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
14515         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14516         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14517         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14518         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14519         * m4/isinf.m4 (gl_ISINF): Likewise.
14520         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14521
14522 2010-04-04  Bruno Haible  <bruno@clisp.org>
14523
14524         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
14525         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14526
14527 2010-04-04  Bruno Haible  <bruno@clisp.org>
14528
14529         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
14530         * modules/tmpfile (configure.ac): Update.
14531
14532         tmpfile: Fix C++ test error on mingw.
14533         * lib/stdio.in.h (tmpfile): New declaration.
14534         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
14535         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
14536         * modules/tmpfile (Depends-on): Add stdio.
14537         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14538         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
14539         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
14540         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
14541         REPLACE_TMPFILE.
14542         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
14543
14544 2010-04-04  Bruno Haible  <bruno@clisp.org>
14545
14546         ioctl: Fix C++ test error on mingw.
14547         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
14548         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
14549         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
14550
14551 2010-04-03  Bruno Haible  <bruno@clisp.org>
14552
14553         wcwidth: Fix C++ test error on mingw.
14554         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
14555         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
14556         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
14557
14558 2010-04-03  Bruno Haible  <bruno@clisp.org>
14559
14560         nanosleep: Fix C++ test error on mingw.
14561         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
14562         * lib/time.in.h (nanosleep): Use modern idiom.
14563         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
14564         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
14565         REPLACE_NANOSLEEP to 1.
14566         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
14567         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
14568
14569 2010-04-03  Bruno Haible  <bruno@clisp.org>
14570
14571         strptime: Fix C++ test error on mingw.
14572         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
14573         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
14574         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
14575         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
14576         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
14577         not REPLACE_STRPTIME.
14578         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
14579         REPLACE_STRPTIME.
14580
14581 2010-04-03  Bruno Haible  <bruno@clisp.org>
14582
14583         timegm: Fix C++ test error on mingw.
14584         * lib/time.in.h (timegm): Use modern idiom.
14585         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
14586         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
14587         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
14588         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
14589
14590 2010-04-03  Bruno Haible  <bruno@clisp.org>
14591
14592         timegm: Assume declaration if function exists.
14593         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
14594         if it exists. Don't clobber ac_cv_func_timegm.
14595
14596 2010-04-03  Bruno Haible  <bruno@clisp.org>
14597
14598         time_r: Fix C++ test error on mingw.
14599         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
14600         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
14601         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
14602         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
14603         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
14604
14605 2010-04-03  Bruno Haible  <bruno@clisp.org>
14606
14607         time_r: Minor updates.
14608         * modules/time_r (Description): Mention the provided functions.
14609         * lib/time_r.c: Don't include <string.h>.
14610         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
14611         * doc/posix-functions/localtime_r.texi: Likewise.
14612
14613 2010-04-03  Bruno Haible  <bruno@clisp.org>
14614
14615         time: Fix regression introduced on 2010-03-08.
14616         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
14617         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
14618
14619 2010-04-03  Jim Meyering  <meyering@redhat.com>
14620
14621         maint.mk: don't silently disable project-specific syntax-check rules
14622         * top/maint.mk (_prohibit_regexp): Define, to help people realize
14623         that they need to convert their project-specific syntax-check rules
14624         to use the new _sc_search_regexp.
14625
14626 2010-04-03  Bruno Haible  <bruno@clisp.org>
14627
14628         fchdir: Fix regression introduced on 2010-03-08.
14629         * lib/unistd.in.h (fchdir): Fix declaration.
14630         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
14631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
14632         REPLACE_FCHDIR.
14633         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
14634         REPLACE_FCHDIR.
14635
14636 2010-04-03  Bruno Haible  <bruno@clisp.org>
14637
14638         getpagesize: Fix C++ test error on mingw.
14639         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
14640         system does not declare the function.
14641         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
14642         declared.
14643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14644         HAVE_DECL_GETPAGESIZE.
14645         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
14646
14647 2010-04-03  Bruno Haible  <bruno@clisp.org>
14648
14649         stdio: Make C++ tests work on mingw.
14650         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
14651         does not declare the function.
14652
14653 2010-04-03  Bruno Haible  <bruno@clisp.org>
14654
14655         ftello: Fix C++ test error on mingw.
14656         * lib/stdio.in.h (ftello): Use modern idiom.
14657         * lib/ftello.c (ftello): Renamed from rpl_ftello.
14658         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
14659         is missing and that it needs to be replaced.
14660         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
14661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
14662         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
14663
14664 2010-04-03  Bruno Haible  <bruno@clisp.org>
14665
14666         fseeko: Fix C++ test error on mingw.
14667         * lib/stdio.in.h (fseeko): Use modern idiom.
14668         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
14669         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
14670         is missing and that it needs to be replaced.
14671         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
14672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
14673         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
14674
14675 2010-04-03  Bruno Haible  <bruno@clisp.org>
14676
14677         mkstemp: Fix C++ test error on mingw.
14678         * lib/stdlib.in.h (mkstemp): Use modern idiom.
14679         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
14680         function is missing and that it needs to be replaced.
14681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
14682         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
14683
14684 2010-04-03  Bruno Haible  <bruno@clisp.org>
14685
14686         stpncpy: Fix C++ test error on mingw.
14687         * lib/string.in.h (stpncpy): Use modern idiom.
14688         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
14689         function is missing and that it needs to be replaced.
14690         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14691         REPLACE_STPNCPY.
14692         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
14693
14694 2010-04-03  Bruno Haible  <bruno@clisp.org>
14695
14696         sys_stat: Fix C++ test error on mingw.
14697         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
14698         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
14699
14700 2010-04-03  Bruno Haible  <bruno@clisp.org>
14701
14702         pty: Update doc.
14703         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
14704
14705 2010-04-03  Bruno Haible  <bruno@clisp.org>
14706
14707         unistd: Fix C++ test error on mingw.
14708         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
14709
14710 2010-04-03  Bruno Haible  <bruno@clisp.org>
14711
14712         Update doc regarding mingw.
14713         * doc/glibc-functions/openpty.texi: Update regarding mingw.
14714         * doc/glibc-functions/login_tty.texi: Likewise.
14715         * doc/glibc-functions/forkpty.texi: Likewise.
14716
14717 2010-04-03  Bruno Haible  <bruno@clisp.org>
14718
14719         stdlib: Avoid compilation failure of c-strtold on mingw.
14720         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
14721
14722 2010-04-03  Bruno Haible  <bruno@clisp.org>
14723
14724         locale: Make C++ tests work on Cygwin and mingw.
14725         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
14726         cannot provide the function.
14727         Reported by Simon Josefsson.
14728
14729 2010-04-03  Bruno Haible  <bruno@clisp.org>
14730
14731         localename: Port to MacOS X 10.6.
14732         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
14733         memory layout of the locales in MacOS X 10.6 as well.
14734         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
14735
14736 2010-04-02  Bruno Haible  <bruno@clisp.org>
14737
14738         gnulib-tool: Ensure that long-running tests are executed last.
14739         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
14740         running tests after the one for the other tests.
14741
14742 2010-04-02  Bruno Haible  <bruno@clisp.org>
14743
14744         gnulib-tool: Ensure the tests in the main directory are executed first.
14745         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
14746         start with the current directory.
14747
14748 2010-04-02  Bruno Haible  <bruno@clisp.org>
14749
14750         Tests for module 'havelib', moved here from GNU gettext.
14751         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
14752         modifications.
14753         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
14754         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
14755         with modifications.
14756         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
14757         modifications.
14758         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
14759         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
14760         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
14761         with modifications.
14762         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
14763         with modifications.
14764         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
14765         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
14766         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
14767         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
14768         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
14769         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
14770         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
14771         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
14772         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
14773         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
14774         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
14775         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
14776         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
14777         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
14778         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
14779         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
14780         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
14781         with modifications.
14782         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
14783         with modifications.
14784         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
14785         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
14786         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
14787         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
14788         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
14789         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
14790         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
14791         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
14792         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
14793         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
14794         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
14795         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
14796         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
14797         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
14798         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
14799         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
14800         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
14801         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
14802         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
14803         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
14804         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
14805         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
14806         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
14807         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
14808         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
14809         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
14810         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
14811         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
14812         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
14813         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
14814         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
14815         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
14816         * tests/havelib/rpathx/rpathx.c: New file, from
14817         gettext/autoconf-lib-link.
14818         * tests/havelib/rpathx/Makefile.am: New file, from
14819         gettext/autoconf-lib-link.
14820         * tests/havelib/rpathx/configure.ac: New file, from
14821         gettext/autoconf-lib-link with modifications.
14822         * tests/havelib/rpathy/rpathy.c: New file, from
14823         gettext/autoconf-lib-link.
14824         * tests/havelib/rpathy/Makefile.am: New file, from
14825         gettext/autoconf-lib-link.
14826         * tests/havelib/rpathy/configure.ac: New file, from
14827         gettext/autoconf-lib-link with modifications.
14828         * tests/havelib/rpathz/rpathz.c: New file, from
14829         gettext/autoconf-lib-link.
14830         * tests/havelib/rpathz/Makefile.am: New file, from
14831         gettext/autoconf-lib-link.
14832         * tests/havelib/rpathz/configure.ac: New file, from
14833         gettext/autoconf-lib-link with modifications.
14834         * tests/havelib/rpathlx/usex.c: New file, from
14835         gettext/autoconf-lib-link.
14836         * tests/havelib/rpathlx/Makefile.am: New file, from
14837         gettext/autoconf-lib-link.
14838         * tests/havelib/rpathlx/configure.ac: New file, from
14839         gettext/autoconf-lib-link with modifications.
14840         * tests/havelib/rpathly/usey.c: New file, from
14841         gettext/autoconf-lib-link.
14842         * tests/havelib/rpathly/Makefile.am: New file, from
14843         gettext/autoconf-lib-link.
14844         * tests/havelib/rpathly/configure.ac: New file, from
14845         gettext/autoconf-lib-link with modifications.
14846         * tests/havelib/rpathlz/usez.c: New file, from
14847         gettext/autoconf-lib-link.
14848         * tests/havelib/rpathlz/Makefile.am: New file, from
14849         gettext/autoconf-lib-link.
14850         * tests/havelib/rpathlz/configure.ac: New file, from
14851         gettext/autoconf-lib-link with modifications.
14852         * tests/havelib/rpathlyx/usey.c: New file, from
14853         gettext/autoconf-lib-link.
14854         * tests/havelib/rpathlyx/Makefile.am: New file, from
14855         gettext/autoconf-lib-link.
14856         * tests/havelib/rpathlyx/configure.ac: New file, from
14857         gettext/autoconf-lib-link with modifications.
14858         * tests/havelib/rpathlzyx/usez.c: New file, from
14859         gettext/autoconf-lib-link.
14860         * tests/havelib/rpathlzyx/Makefile.am: New file, from
14861         gettext/autoconf-lib-link.
14862         * tests/havelib/rpathlzyx/configure.ac: New file, from
14863         gettext/autoconf-lib-link with modifications.
14864         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
14865         with modifications.
14866
14867 2010-04-02  Bruno Haible  <bruno@clisp.org>
14868
14869         gnulib-tool: Create distributed built sources also for the tests.
14870         * gnulib-tool (func_create_testdir): Also generate distributed built
14871         sources in the tests directory.
14872
14873 2010-04-02  Bruno Haible  <bruno@clisp.org>
14874
14875         gnulib-tool: Obey user's environment variables.
14876         * gnulib-tool (func_create_testdir): When creating built sources,
14877         respect the environment variables for autoconf, automake, etc. given by
14878         the user.
14879
14880 2010-04-02  Bruno Haible  <bruno@clisp.org>
14881
14882         gnulib-tool: Provide the value of --m4-base to modules.
14883         * gnulib-tool (func_import, func_create_testdir): Emit a definition
14884         of gl_m4_base.
14885
14886 2010-04-02  Eric Blake  <eblake@redhat.com>
14887
14888         maint.mk: fix some fallout
14889         * NEWS: Document the incompatible change, and its effect on cfg.mk.
14890         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
14891
14892 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14893
14894         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
14895         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
14896         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
14897         (sc_cast_of_x_alloc_return_value): Likewise.
14898         (sc_cast_of_alloca_return_value): Likewise.
14899         (sc_space_tab): Likewise.
14900         (sc_prohibit_atoi_atof): Likewise.
14901         (sc_prohibit_magic_number_exit): Likewise.
14902         (sc_error_exit_success): Likewise.
14903         (sc_file_system): Likewise.
14904         (sc_prohibit_have_config_h): Likewise.
14905         (sc_require_config_h): Likewise.
14906         (sc_prohibit_HAVE_MBRTOWC): Likewise.
14907         (sc_obsolete_symbols): Likewise.
14908         (sc_changelog): Likewise.
14909         (sc_program_name): Likewise.
14910         (sc_the_the): Likewise.
14911         (sc_trailing_blank): Likewise.
14912         (sc_two_space_separator_in_usage): Likewise.
14913         (sc_useless_cpp_parens): Likewise.
14914         (sc_GPL_version): Likewise.
14915         (sc_GFDL_version): Likewise.
14916         (sc_texinfo_acronym): Likewise.
14917         (sc_prohibit_cvs_keyword): Likewise.
14918         (sc_prohibit_stat_st_blocks): Likewise.
14919         (sc_prohibit_S_IS_definition): Likewise.
14920         (sc_redundant_const): Likewise.
14921         (sc_makefile_TAB_only_indentation): Likewise.
14922         (sc_m4_quote_check): Likewise.
14923         (sc_makefile_path_separator_check): Likewise.
14924         (sc_copyright_check): Likewise.
14925         (sc_Wundef_boolean): Likewise.
14926         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14927
14928         maint.mk: match 0 or more whitespace-before-function-call '('
14929         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
14930         that have zero or two-and-more spaces between the function name
14931         and the open parenthesis.
14932         (sc_error_message_warn_fatal): Likewise.
14933         (sc_error_message_uppercase): Likewise.
14934         (sc_error_message_period): Likewise.
14935
14936 2010-03-31  Eric Blake  <eblake@redhat.com>
14937
14938         maint.mk: check for [ as well as test
14939         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
14940         Based on a libvirt report by Matthias Bolte.
14941
14942         gnumakefile: don't squelch _version output
14943         * top/GNUmakefile (_version): Create one-shot dependency rather
14944         than using $(shell) when version must be regenerated.
14945         (_autoreconf): Run verbosely, by default.
14946
14947         sys_time: avoid compiler warnings
14948         * lib/sys_time.in.h (includes): Ensure gcc pragma is
14949         unconditional, fixing regression from 2010-03-29.
14950         Reported by Simon Josefsson.
14951
14952 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14953
14954         maint.mk: s/_header_without_use/_sc_header_without_use/
14955         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
14956         (sc_prohibit_assert_without_use): Use the new name.
14957         (sc_prohibit_close_stream_without_use): Likewise.
14958         (sc_prohibit_getopt_without_use): Likewise.
14959         (sc_prohibit_quotearg_without_use): Likewise.
14960         (sc_prohibit_quote_without_use): Likewise.
14961         (sc_prohibit_long_options_without_use): Likewise.
14962         (sc_prohibit_inttostr_without_use): Likewise.
14963         (sc_prohibit_ignore_value_without_use): Likewise.
14964         (sc_prohibit_error_without_use): Likewise.
14965         (sc_prohibit_xalloc_without_use): Likewise.
14966         (sc_prohibit_hash_without_use): Likewise.
14967         (sc_prohibit_hash_pjw_without_use): Likewise.
14968         (sc_prohibit_safe_read_without_use): Likewise.
14969         (sc_prohibit_argmatch_without_use): Likewise.
14970         (sc_prohibit_canonicalize_without_use): Likewise.
14971         (sc_prohibit_root_dev_ino_without_use): Likewise.
14972         (sc_prohibit_openat_without_use): Likewise.
14973         (sc_prohibit_c_ctype_without_use): Likewise.
14974         (sc_prohibit_signal_without_use): Likewise.
14975         (sc_prohibit_intprops_without_use): Likewise.
14976
14977 2010-03-30  Eric Blake  <eblake@redhat.com>
14978
14979         maint: improve module indicators
14980         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
14981         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
14982         columns, and avoid extra macro expansion.
14983
14984         fdopendir: work around FreeBSD bug
14985         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14986         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
14987         * modules/dirent (Makefile.am): Substitute it.
14988         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
14989         declaration.
14990         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
14991         fix.
14992         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14993
14994 2010-03-29  Bruno Haible  <bruno@clisp.org>
14995
14996         Emit #pragma system_header after the inclusion guard, not before.
14997         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
14998         guard that spans the entire file, not before. This enables an
14999         optimization in GCC's preprocessor.
15000         * lib/ctype.in.h: Likewise.
15001         * lib/dirent.in.h: Likewise.
15002         * lib/errno.in.h: Likewise.
15003         * lib/float.in.h: Likewise.
15004         * lib/getopt.in.h: Likewise.
15005         * lib/iconv.in.h: Likewise.
15006         * lib/langinfo.in.h: Likewise.
15007         * lib/locale.in.h: Likewise.
15008         * lib/math.in.h: Likewise.
15009         * lib/netdb.in.h: Likewise.
15010         * lib/netinet_in.in.h: Likewise.
15011         * lib/pty.in.h: Likewise.
15012         * lib/sched.in.h: Likewise.
15013         * lib/se-selinux.in.h: Likewise.
15014         * lib/search.in.h: Likewise.
15015         * lib/spawn.in.h: Likewise.
15016         * lib/stdarg.in.h: Likewise.
15017         * lib/stdint.in.h: Likewise.
15018         * lib/string.in.h: Likewise.
15019         * lib/strings.in.h: Likewise.
15020         * lib/sys_file.in.h: Likewise.
15021         * lib/sys_ioctl.in.h: Likewise.
15022         * lib/sys_time.in.h: Likewise.
15023         * lib/sys_times.in.h: Likewise.
15024         * lib/sys_utsname.in.h: Likewise.
15025         * lib/sys_wait.in.h: Likewise.
15026         * lib/sysexits.in.h: Likewise.
15027         * lib/wctype.in.h: Likewise.
15028
15029 2010-03-28  James Youngman  <jay@gnu.org>
15030
15031         save-cwd: don't leak a file descriptor when the caller execs.
15032         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
15033         saved file descriptor.
15034         * modules/save-cwd (Depends-on): Depend on cloexec.
15035
15036 2010-03-29  Bruno Haible  <bruno@clisp.org>
15037
15038         Remove vestiges of fts-lgpl module.
15039         * lib/fts_.h: Assume GNULIB_FTS is 1.
15040         * lib/fts.c: Likewise.
15041         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15042
15043 2010-03-28  Bruno Haible  <bruno@clisp.org>
15044
15045         Fix definition of tests witness macro.
15046         * gnulib-tool (func_import): Fix definition of witness macro.
15047
15048 2010-03-28  Bruno Haible  <bruno@clisp.org>
15049
15050         Fix ioctl's protoype on glibc systems.
15051         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
15052         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
15053         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
15054         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
15055         signature. If not, arrange to replace the ioctl function.
15056         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15057         REPLACE_IOCTL.
15058         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
15059         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
15060         Reported by Ludovic Courtès <ludo@gnu.org>.
15061
15062 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
15063
15064         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
15065         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
15066         made it so grep -r --include=GLOB* ... did not work.
15067
15068 2010-03-26  Jim Meyering  <meyering@redhat.com>
15069             Eric Blake  <eblake@redhat.com>
15070
15071         maint.mk: prohibit use of test's -o and -a operators
15072         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
15073
15074 2010-03-28  Bruno Haible  <bruno@clisp.org>
15075
15076         Remove unused GNULIB_XYZ macro definitions.
15077         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
15078         invocation.
15079
15080 2010-03-28  Bruno Haible  <bruno@clisp.org>
15081
15082         Mark privileged tests modules.
15083         * modules/idpriv-drop-tests (Status): New section.
15084         * modules/idpriv-droptemp-tests (Status): New section.
15085
15086 2010-03-28  Bruno Haible  <bruno@clisp.org>
15087
15088         Split C++ tests into separate tests modules.
15089         * modules/dirent-c++-tests: New file, extracted from
15090         modules/dirent-tests.
15091         * modules/dirent-tests: Depend on it.
15092         * modules/fcntl-h-c++-tests: New file, extracted from
15093         modules/fcntl-h-tests.
15094         * modules/fcntl-h-tests: Depend on it.
15095         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
15096         * modules/glob-tests: Depend on it.
15097         * modules/iconv-h-c++-tests: New file, extracted from
15098         modules/iconv-h-tests.
15099         * modules/iconv-h-tests: Depend on it.
15100         * modules/langinfo-c++-tests: New file, extracted from
15101         modules/langinfo-tests.
15102         * modules/langinfo-tests: Depend on it.
15103         * modules/locale-c++-tests: New file, extracted from
15104         modules/locale-tests.
15105         * modules/locale-tests: Depend on it.
15106         * modules/math-c++-tests: New file, extracted from modules/math-tests.
15107         * modules/math-tests: Depend on it.
15108         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
15109         * modules/pty-tests: Depend on it.
15110         * modules/search-c++-tests: New file, extracted from
15111         modules/search-tests.
15112         * modules/search-tests: Depend on it.
15113         * modules/signal-c++-tests: New file, extracted from
15114         modules/signal-tests.
15115         * modules/signal-tests: Depend on it.
15116         * modules/spawn-c++-tests: New file, extracted from
15117         modules/spawn-tests.
15118         * modules/spawn-tests: Depend on it.
15119         * modules/stdio-c++-tests: New file, extracted from
15120         modules/stdio-tests.
15121         * modules/stdio-tests: Depend on it.
15122         * modules/stdlib-c++-tests: New file, extracted from
15123         modules/stdlib-tests.
15124         * modules/stdlib-tests: Depend on it.
15125         * modules/string-c++-tests: New file, extracted from
15126         modules/string-tests.
15127         * modules/string-tests: Depend on it.
15128         * modules/sys_ioctl-c++-tests: New file, extracted from
15129         modules/sys_ioctl-tests.
15130         * modules/sys_ioctl-tests: Depend on it.
15131         * modules/sys_select-c++-tests: New file, extracted from
15132         modules/sys_select-tests.
15133         * modules/sys_select-tests: Depend on it.
15134         * modules/sys_socket-c++-tests: New file, extracted from
15135         modules/sys_socket-tests.
15136         * modules/sys_socket-tests: Depend on it.
15137         * modules/sys_stat-c++-tests: New file, extracted from
15138         modules/sys_stat-tests.
15139         * modules/sys_stat-tests: Depend on it.
15140         * modules/sys_time-c++-tests: New file, extracted from
15141         modules/sys_time-tests.
15142         * modules/sys_time-tests: Depend on it.
15143         * modules/time-c++-tests: New file, extracted from modules/time-tests.
15144         * modules/time-tests: Depend on it.
15145         * modules/unistd-c++-tests: New file, extracted from
15146         modules/unistd-tests.
15147         * modules/unistd-tests: Depend on it.
15148         * modules/wchar-c++-tests: New file, extracted from
15149         modules/wchar-tests.
15150         * modules/wchar-tests: Depend on it.
15151         * modules/wctype-c++-tests: New file, extracted from
15152         modules/wctype-tests.
15153         * modules/wctype-tests: Depend on it.
15154         Reported by Simon Josefsson.
15155
15156 2010-03-28  Bruno Haible  <bruno@clisp.org>
15157
15158         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
15159         * gnulib-tool (func_exists_module): New function, extracted from
15160         func_verify_module.
15161         (func_verify_module): Use it.
15162         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
15163         'foo' only if 'foo' exists.
15164         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
15165         module.
15166
15167 2010-03-28  Bruno Haible  <bruno@clisp.org>
15168
15169         gnulib-tool: Add support for special categories of tests.
15170         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
15171         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
15172         (func_usage): Document them.
15173         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
15174         inc_unportable_tests, inc_all_tests): New variables.
15175         (func_acceptable): Consider these variables.
15176         (func_modules_transitive_closure): Make it work when the 'Status' field
15177         consists of multiple words.
15178         (func_import): Store and restore the values of inc_cxx_tests,
15179         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
15180         inc_all_tests in gnulib-comp.m4.
15181         (func_create_testdir): Set inc_all_tests to true.
15182         * doc/gnulib.texi (Extra tests modules): New section.
15183         Suggested by Jim Meyering.
15184
15185 2010-03-28  Bruno Haible  <bruno@clisp.org>
15186
15187         ansi-c++-opt: Allow turning off the C++ build by default.
15188         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
15189         gl_CXX_CHOICE_DEFAULT_NO is defined.
15190         Requested by Eric Blake.
15191
15192 2010-03-28  Bruno Haible  <bruno@clisp.org>
15193
15194         unistd: Avoid #define replacements in C++ mode.
15195         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15196         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15197         setsockopt, shutdown, select): In C++, attach a warning to the function
15198         if possible, rather than #defining the symbol to a dysfunctional alias.
15199         Reported by John W. Eaton <jwe@gnu.org>.
15200
15201 2010-03-28  Bruno Haible  <bruno@clisp.org>
15202
15203         Fix link errors on mingw.
15204         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
15205         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
15206         $(LIBSOCKET).
15207         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
15208         $(LIBSOCKET).
15209
15210 2010-03-28  Bruno Haible  <bruno@clisp.org>
15211             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15212
15213         lib-ignore: Determine different options for different compilers.
15214         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
15215         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
15216         Add comments.
15217         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
15218         * NEWS: Mention the change.
15219
15220 2010-03-27  Bruno Haible  <bruno@clisp.org>
15221
15222         Remove unused GNULIB_XYZ macro definitions.
15223         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15224         * modules/fseek (configure.ac): Likewise.
15225         * modules/ioctl (configure.ac): Likewise.
15226         * modules/open (configure.ac): Likewise.
15227         * modules/stdlib-safer (configure.ac): Likewise.
15228
15229 2010-03-27  Bruno Haible  <bruno@clisp.org>
15230
15231         Add a remark about certain modules.
15232         * modules/malloc (Comment): New section.
15233         * modules/realloc (Comment): Likewise.
15234         * modules/sigpipe (Comment): Likewise.
15235
15236 2010-03-27  Bruno Haible  <bruno@clisp.org>
15237
15238         Resolve conflict between the two kinds of module indicators.
15239         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
15240         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
15241         * modules/canonicalize (configure.ac): Invoke
15242         gl_MODULE_INDICATOR_FOR_TESTS.
15243         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
15244         GNULIB_XYZ.
15245         * tests/test-dirent-c++.cc: Likewise.
15246         * tests/test-dirent-safer.c: Likewise.
15247         * tests/test-dup2.c: Likewise.
15248         * tests/test-fchdir.c: Likewise.
15249         * tests/test-fcntl-h-c++.cc: Likewise.
15250         * tests/test-getopt.c: Likewise.
15251         * tests/test-getopt.h: Likewise.
15252         * tests/test-langinfo-c++.cc: Likewise.
15253         * tests/test-locale-c++.cc: Likewise.
15254         * tests/test-math-c++.cc: Likewise.
15255         * tests/test-pty-c++.cc: Likewise.
15256         * tests/test-search-c++.cc: Likewise.
15257         * tests/test-signal-c++.cc: Likewise.
15258         * tests/test-spawn-c++.cc: Likewise.
15259         * tests/test-stdio-c++.cc: Likewise.
15260         * tests/test-stdlib-c++.cc: Likewise.
15261         * tests/test-string-c++.cc: Likewise.
15262         * tests/test-sys_ioctl-c++.cc: Likewise.
15263         * tests/test-sys_select-c++.cc: Likewise.
15264         * tests/test-sys_socket-c++.cc: Likewise.
15265         * tests/test-sys_stat-c++.cc: Likewise.
15266         * tests/test-sys_time-c++.cc: Likewise.
15267         * tests/test-time-c++.cc: Likewise.
15268         * tests/test-unistd-c++.cc: Likewise.
15269         * tests/test-wchar-c++.cc: Likewise.
15270         * tests/uninorm/test-u8-nfc.c: Likewise.
15271         * tests/uninorm/test-u8-nfd.c: Likewise.
15272         * tests/uninorm/test-u8-nfkc.c: Likewise.
15273         * tests/uninorm/test-u8-nfkd.c: Likewise.
15274         * tests/uninorm/test-u16-nfc.c: Likewise.
15275         * tests/uninorm/test-u16-nfd.c: Likewise.
15276         * tests/uninorm/test-u16-nfkc.c: Likewise.
15277         * tests/uninorm/test-u16-nfkd.c: Likewise.
15278         * tests/uninorm/test-u32-nfc.c: Likewise.
15279         * tests/uninorm/test-u32-nfc-big.c: Likewise.
15280         * tests/uninorm/test-u32-nfd.c: Likewise.
15281         * tests/uninorm/test-u32-nfd-big.c: Likewise.
15282         * tests/uninorm/test-u32-nfkc.c: Likewise.
15283         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
15284         * tests/uninorm/test-u32-nfkd.c: Likewise.
15285         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
15286         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15287
15288 2010-03-27  Bruno Haible  <bruno@clisp.org>
15289
15290         Distinguish two kinds of module indicators.
15291         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
15292         gl_MODULE_INDICATOR.
15293         (gl_MODULE_INDICATOR): New macro.
15294         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15295         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
15296         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15297         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15298         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15299         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15300         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15301         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15302         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15303         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15304         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15305         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15306         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15307         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15308         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15309         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15310         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15311         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15312         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15313         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15314         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15315         * modules/cloexec (configure.ac): Likewise.
15316         * modules/getopt-gnu (configure.ac): Likewise.
15317         * modules/uninorm/u8-normalize (configure.ac): Likewise.
15318         * modules/uninorm/u16-normalize (configure.ac): Likewise.
15319         * modules/uninorm/u32-normalize (configure.ac): Likewise.
15320         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
15321
15322 2010-03-27  Bruno Haible  <bruno@clisp.org>
15323
15324         New module description field 'Comment'.
15325         * gnulib-tool: New option --extract-comment.
15326         (func_usage): Document it.
15327         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
15328         (func_get_comment): New function.
15329         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
15330
15331 2010-03-27  Bruno Haible  <bruno@clisp.org>
15332
15333         Addendum to 2010-02-07 commit.
15334         * gnulib-tool (func_usage): Document --extract-applicability option.
15335
15336 2010-03-27  Bruno Haible  <bruno@clisp.org>
15337
15338         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
15339         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
15340         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
15341         rather than link errors.
15342
15343 2010-03-27  Bruno Haible  <bruno@clisp.org>
15344
15345         Avoid side effects from tests-related modules on the compilation of lib.
15346         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
15347         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
15348         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
15349         parameter. Emit into AM_CPPFLAGS a definition of the designated C
15350         macro.
15351         (func_import): Define a witness macro. Assign it a value that depends
15352         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
15353         tests-related modules.
15354         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
15355         Reported by Jim Meyering.
15356
15357 2010-03-27  Bruno Haible  <bruno@clisp.org>
15358
15359         Factorize common .m4 code.
15360         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
15361         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
15362         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
15363         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
15364         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15365         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
15366         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
15367         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15368         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15369         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15370         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
15371         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15372         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15373         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15374         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15375         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
15376         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15377         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15378         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15379         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
15380         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
15381         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15382         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15383         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15384         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15385         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15386         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
15387         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
15388         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
15389         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15390         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15391         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15392
15393 2010-03-27  Bruno Haible  <bruno@clisp.org>
15394
15395         Fix a compilation error on Cygwin with g++ >= 4.3.
15396         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
15397         if it is undefined or if we alias it to chmod.
15398         (lstat): Don't warn about the use of this function if it is undefined
15399         or if we alias it to stat.
15400         Reported by Simon Josefsson.
15401
15402 2010-03-27  Bruno Haible  <bruno@clisp.org>
15403
15404         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
15405         * modules/getlogin (configure.ac): Update.
15406
15407         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
15408         * modules/getlogin_r (configure.ac): Update.
15409
15410         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
15411         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
15412         * modules/inet_ntop (configure.ac): Update.
15413
15414         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
15415         * modules/inet_pton (configure.ac): Update.
15416
15417         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
15418         * modules/mbslen (configure.ac): Update.
15419
15420         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
15421         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
15422         * modules/forkpty (configure.ac): Update.
15423         * modules/openpty (configure.ac): Update.
15424
15425 2010-03-26  Simon Josefsson  <simon@josefsson.org>
15426
15427         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
15428         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
15429
15430 2010-03-25  Eric Blake  <eblake@redhat.com>
15431
15432         maint: use pragma consistently across replacement headers
15433         * lib/ctype.in.h (system_header): Hoist for consistent placement.
15434         * lib/dirent.in.h (system_header): Likewise.
15435         * lib/errno.in.h (system_header): Likewise.
15436         * lib/float.in.h (system_header): Likewise.
15437         * lib/getopt.in.h (system_header): Likewise.
15438         * lib/iconv.in.h (system_header): Likewise.
15439         * lib/inttypes.in.h (system_header): Likewise.
15440         * lib/langinfo.in.h (system_header): Likewise.
15441         * lib/locale.in.h (system_header): Likewise.
15442         * lib/math.in.h (system_header): Likewise.
15443         * lib/netdb.in.h (system_header): Likewise.
15444         * lib/netinet_in.in.h (system_header): Likewise.
15445         * lib/pty.in.h (system_header): Likewise.
15446         * lib/sched.in.h (system_header): Likewise.
15447         * lib/se-selinux.in.h (system_header): Likewise.
15448         * lib/search.in.h (system_header): Likewise.
15449         * lib/spawn.in.h (system_header): Likewise.
15450         * lib/stdarg.in.h (system_header): Likewise.
15451         * lib/stdint.in.h (system_header): Likewise.
15452         * lib/string.in.h (system_header): Likewise.
15453         * lib/strings.in.h (system_header): Likewise.
15454         * lib/sys_file.in.h (system_header): Likewise.
15455         * lib/sys_ioctl.in.h (system_header): Likewise.
15456         * lib/sys_socket.in.h (system_header): Likewise.
15457         * lib/sys_times.in.h (system_header): Likewise.
15458         * lib/sys_utsname.in.h (system_header): Likewise.
15459         * lib/sys_wait.in.h (system_header): Likewise.
15460         * lib/sysexits.in.h (system_header): Likewise.
15461         * lib/unistd.in.h (system_header): Likewise.
15462         * lib/wctype.in.h (system_header): Likewise.
15463
15464         arpa/inet: fix mingw compilation warning
15465         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
15466         Reported by Matthew Bolte.
15467
15468 2010-03-25  Bruno Haible  <bruno@clisp.org>
15469
15470         Avoid collision between gnulib wrapper and libintl wrapper.
15471         * lib/printf.c (printf): Don't define if a printf wrapper is already
15472         defined in intl/printf.c.
15473         Reported by Michel Boaventura <michel@michelboaventura.com>.
15474
15475 2010-03-25  Bruno Haible  <bruno@clisp.org>
15476
15477         Use ANSI C.
15478         * lib/readutmp.h (getutent): Provide ANSI C prototype.
15479
15480 2010-03-25  Bruno Haible  <bruno@clisp.org>
15481
15482         Minor formatting changes.
15483         * lib/acosl.c: Insert space before function argument list.
15484         * lib/argz.c: Likewise.
15485         * lib/asinl.c: Likewise.
15486         * lib/expl.c: Likewise.
15487         * lib/gen-uni-tables.c: Likewise.
15488         * lib/gettext.h: Likewise.
15489         * lib/glthread/lock.h: Likewise.
15490         * lib/tanl.c: Likewise.
15491         * lib/uniname/uniname.c: Likewise.
15492         * tests/test-idpriv-drop.c: Likewise.
15493         * tests/test-idpriv-droptemp.c: Likewise.
15494         * tests/test-lock.c: Likewise.
15495         * tests/test-tls.c: Likewise.
15496         * lib/argp-help.c: Insert space before function-like macro argument
15497         list.
15498         * lib/memcmp.c: Likewise.
15499         * tests/test-base64.c: Likewise.
15500         * lib/localename.c: Insert space before sizeof's argument list.
15501         * lib/safe-alloc.h: Likewise.
15502         * lib/file-set.h: Insert space before macro argument list.
15503         * tests/test-argp.c: Likewise.
15504         * lib/argp-namefrob.h: Insert space before function parameter list.
15505         * lib/getaddrinfo.c: Likewise.
15506         * lib/netdb.in.h: Likewise.
15507         * lib/parse-duration.h: Likewise.
15508         * lib/parse-duration.c: Likewise.
15509         * lib/poll.c: Likewise.
15510         * lib/select.c: Likewise.
15511         * lib/trim.h: Likewise.
15512         * tests/test-usleep.c: Likewise.
15513         * lib/ldexpl.c: Insert space before function parameter list and before
15514         function argument list.
15515         * lib/logl.c: Likewise.
15516         * lib/sqrtl.c: Likewise.
15517         * lib/trim.c: Likewise.
15518         * lib/cosl.c: Use GNU style indentation. Insert space before function
15519         argument list.
15520         * lib/sinl.c: Likewise.
15521         * lib/tsearch.c: Insert space after 'for'.
15522         Reported by Jim Meyering.
15523
15524 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
15525
15526         * maint.mk (sc_Wundef_boolean): Check for the presence of the
15527         config header before grepping, as it's not present before
15528         autoreconf/configure are run.  Reported by Simon Josefsson.
15529
15530 2010-03-23  Bruno Haible  <bruno@clisp.org>
15531
15532         pt_chown: Make it work with automake < 1.11.
15533         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
15534         Reported by Simon Josefsson.
15535
15536 2010-03-23  Bruno Haible  <bruno@clisp.org>
15537
15538         pt_chown: Don't depend on GPLed modules.
15539         * lib/pt_chown.c: Don't include idpriv.h.
15540         (main): Don't drop privileges.
15541         * modules/pt_chown (Depends-on): Remove idpriv-drop.
15542         Reported by Simon Josefsson.
15543
15544 2010-03-24  Simon Josefsson  <simon@josefsson.org>
15545
15546         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
15547         suggestions from karl@freefriends.org (Karl Berry).
15548
15549 2010-03-22  Eric Blake  <eblake@redhat.com>
15550
15551         gethostname: further tweaks
15552         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
15553         are overriding gethostname.
15554         Suggested by Bruno Haible.
15555
15556 2010-03-21  Bruno Haible  <bruno@clisp.org>
15557
15558         Fix comments.
15559         * lib/forkpty.c (rpl_forkpty): Fix comment.
15560         * lib/openpty.c (rpl_openpty): Likewise.
15561         Reported by Eric Blake.
15562
15563 2010-03-22  Eric Blake  <eblake@redhat.com>
15564
15565         gethostname: fix build on mingw
15566         * lib/unistd.in.h (includes): Work around fact that mingw
15567         <winsock2.h> re-includes <unistd.h>, by avoiding any
15568         redeclarations if we are being included by <winsock2.h>.
15569         Reported by Matthias Bolte.
15570
15571 2010-03-21  Bruno Haible  <bruno@clisp.org>
15572
15573         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15574         * lib/forkpty.c (forkpty): New replacement function, from glibc with
15575         modifications.
15576         * lib/pty.in.h (forkpty): Update declaration. Add comments.
15577         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
15578         provide the replacement.
15579         * modules/forkpty (Depends-on): Add openpty, login_tty.
15580         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
15581         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
15582         * doc/glibc-functions/forkpty.texi: More supported platforms.
15583         * config/srclist.txt: Add forkpty.c (commented).
15584
15585 2010-03-21  Bruno Haible  <bruno@clisp.org>
15586
15587         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
15588         (Makefile.am): Verify that PTY_LIB is defined.
15589
15590         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
15591
15592 2010-03-21  Bruno Haible  <bruno@clisp.org>
15593
15594         Tests for module 'login_tty'.
15595         * modules/login_tty-tests: New file.
15596         * tests/test-login_tty.c: New file.
15597
15598         New module 'login_tty'.
15599         * lib/login_tty.c: New file.
15600         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
15601         * modules/login_tty: New file.
15602         * doc/glibc-functions/login_tty.texi: Mention the new module.
15603
15604 2010-03-21  Bruno Haible  <bruno@clisp.org>
15605
15606         login_tty: Documentation.
15607         * doc/glibc-functions/login_tty.texi: New file.
15608         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
15609
15610 2010-03-21  Bruno Haible  <bruno@clisp.org>
15611
15612         pty: Consistent macro naming.
15613         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
15614         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
15615         * modules/pty (configure.ac): Update.
15616
15617 2010-03-21  Bruno Haible  <bruno@clisp.org>
15618
15619         Tests for openpty: Make stricter.
15620         * tests/test-openpty.c (main): Add test of canonical processing and
15621         erase.
15622         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
15623
15624         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15625         * lib/openpty.c (openpty): New replacement function.
15626         * lib/pty.in.h: Include <termios.h>.
15627         (openpty): Update declaration. Add comments.
15628         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
15629         is not declared, arrange to provide the replacement. Check for _getpty
15630         and posix_openpt.
15631         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
15632         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
15633         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
15634         * modules/pty-tests (test_pty_c___LDADD): New variable.
15635         * doc/glibc-functions/openpty.texi: More supported platforms.
15636
15637 2010-03-21  Bruno Haible  <bruno@clisp.org>
15638
15639         setenv: Tweaks.
15640         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
15641         the test program.
15642         * doc/posix-functions/setenv.texi: Update platforms list.
15643
15644 2010-03-21  Bruno Haible  <bruno@clisp.org>
15645
15646         New module 'unlockpt'.
15647         * lib/unlockpt.c: New file, from glibc with modifications.
15648         * m4/unlockpt.m4: New file.
15649         * modules/unlockpt: New file.
15650         * lib/stdlib.in.h (unlockpt): New declaration.
15651         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
15652         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
15653         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
15654         HAVE_UNLOCKPT.
15655         * doc/posix-functions/unlockpt.texi: Mention the new module.
15656         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
15657         * config/srclist.txt: Add unlockpt.c (commented).
15658
15659 2010-03-21  Jim Meyering  <meyering@redhat.com>
15660
15661         maint.mk: prohibit inclusion of "intprops.h" without use
15662         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
15663
15664 2010-03-21  Bruno Haible  <bruno@clisp.org>
15665
15666         New module 'grantpt'.
15667         * lib/grantpt.c: New file, from glibc with modifications.
15668         * m4/grantpt.m4: New file.
15669         * modules/grantpt: New file.
15670         * lib/stdlib.in.h (grantpt): New declaration.
15671         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
15672         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
15673         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
15674         HAVE_GRANTPT.
15675         * doc/posix-functions/grantpt.texi: Mention the new module.
15676         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
15677         * config/srclist.txt: Add grantpt.c (commented).
15678
15679 2010-03-21  Bruno Haible  <bruno@clisp.org>
15680
15681         New module 'pt_chown'.
15682         * lib/pt_chown.c: New file, from glibc with modifications.
15683         * lib/pty-private.h: New file, from glibc with modifications.
15684         * modules/pt_chown: New file.
15685         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
15686
15687 2010-03-21  Bruno Haible  <bruno@clisp.org>
15688
15689         Tests for module 'ptsname'.
15690         * modules/ptsname-tests: New file.
15691         * tests/test-ptsname.c: New file.
15692
15693         New module 'ptsname'.
15694         * lib/ptsname.c: New file, from glibc with modifications.
15695         * m4/ptsname.m4: New file.
15696         * modules/ptsname: New file.
15697         * lib/stdlib.in.h (ptsname): New declaration.
15698         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
15699         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
15700         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
15701         HAVE_PTSNAME.
15702         * doc/posix-functions/ptsname.texi: Mention the new module.
15703         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
15704         * config/srclist.txt: Add ptsname.c (commented).
15705
15706 2010-03-21  Bruno Haible  <bruno@clisp.org>
15707
15708         Tests for module 'ttyname_r'.
15709         * modules/ttyname_r-tests: New file.
15710         * tests/test-ttyname_r.c: New file.
15711
15712         New module 'ttyname_r'.
15713         * lib/ttyname_r.c: New file.
15714         * m4/ttyname_r.m4: New file.
15715         * modules/ttyname_r: New file.
15716         * lib/unistd.in.h (ttyname_r): New declaration.
15717         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
15718         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
15719         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
15720         HAVE_TTYNAME_R.
15721         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
15722         * doc/posix-functions/ttyname_r.texi: Mention the new module.
15723
15724 2010-03-20  Bruno Haible  <bruno@clisp.org>
15725
15726         signal: Undefine macro definitions in C++ mode.
15727         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
15728         sigfillset): Undefine macro definitions from the system header in C++
15729         mode.
15730         Reported by John W. Eaton <jwe@gnu.org>.
15731
15732 2010-03-20  Bruno Haible  <bruno@clisp.org>
15733
15734         Ensure no #include statements inside extern "C" { ... }.
15735         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
15736         contain #include statements.
15737         * lib/time.in.h: Likewise.
15738
15739 2010-03-20  Bruno Haible  <bruno@clisp.org>
15740
15741         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
15742         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
15743         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
15744         Reported by John W. Eaton <jwe@gnu.org>.
15745
15746 2010-03-20  Bruno Haible  <bruno@clisp.org>
15747
15748         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
15749         Reported by Jim Meyering.
15750
15751 2010-03-20  Bruno Haible  <bruno@clisp.org>
15752
15753         pipe: Set errno upon failure.
15754         * lib/pipe.h: Specify that when -1 is returned, errno is set.
15755         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
15756         errno value in error message.
15757
15758 2010-03-20  Bruno Haible  <bruno@clisp.org>
15759             Jim Meyering  <meyering@redhat.com>
15760
15761         lchown: Avoid "unused variable" warning.
15762         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
15763
15764 2010-03-20  Bruno Haible  <bruno@clisp.org>
15765
15766         Work around unlink() bug on MacOS X 10.5.6.
15767         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
15768         attempting to unlink a parent directory.
15769         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
15770         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
15771         activate for the replacement function.
15772         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
15773
15774 2010-03-20  Bruno Haible  <bruno@clisp.org>
15775
15776         Fix link errors on Solaris 8.
15777         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
15778         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
15779
15780 2010-03-19  Jim Meyering  <meyering@redhat.com>
15781
15782         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
15783         The _LIBC implementation of build_range_exp correctly honors the
15784         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
15785         However, the non-_LIBC implementation would ignore that syntax-bit
15786         flag and return REG_ERANGE unconditionally.
15787         This change makes it honor that flag.
15788         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
15789         Make two pointer parameters "const".
15790         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
15791         (parse_bracket_exp): Update caller.
15792
15793         regex.m4: correct the reversed range endpoint ([b-a]) test
15794         * m4/regex.m4: When requiring that [b-a] evoke failure,
15795         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
15796         test pass once again for x86-based systems.
15797
15798 2010-03-19  Bruno Haible  <bruno@clisp.org>
15799
15800         scandir: Fix link error on Solaris 8.
15801         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
15802         macros.
15803
15804 2010-03-19  Bruno Haible  <bruno@clisp.org>
15805
15806         getusershell: Fix documentation.
15807         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
15808         module.
15809         * doc/glibc-functions/setusershell.texi: Likewise.
15810
15811         getusershell: Provide declaration, missing on Solaris 9.
15812         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
15813         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
15814         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
15815         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
15816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15817         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
15818         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
15819         HAVE_GETUSERSHELL.
15820         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
15821
15822 2010-03-19  Bruno Haible  <bruno@clisp.org>
15823
15824         wctype: Provide iswblank function.
15825         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
15826         exists and is fine.
15827         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
15828         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
15829         * tests/test-wctype.c (main): Re-enable the iswblank tests.
15830         * doc/posix-functions/iswblank.texi: Update.
15831
15832 2010-03-19  Bruno Haible  <bruno@clisp.org>
15833
15834         Tests of module 'pty' in C++ mode.
15835         * modules/pty-tests: New file.
15836         * tests/test-pty-c++.cc: New file.
15837         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15838
15839 2010-03-19  Eric Blake  <eblake@redhat.com>
15840
15841         logb: fix documentation
15842         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
15843         1.5 declaration bug.
15844
15845         forkpty, openpty: prefer glibc's const-safe prototype
15846         * lib/forkpty.c (rpl_forkpty): New file.
15847         * lib/openpty.c (rpl_openpty): Likewise.
15848         * modules/forkpty (Files): Distribute it.
15849         * modules/openpty (Files): Likewise.
15850         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
15851         check...
15852         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
15853         replacement for for non-const BSD signature.
15854         * modules/pty (Makefile.am): Substitute witnesses.
15855         * lib/pty.in.h (forkpty, openpty): Declare replacements.
15856         * tests/test-forkpty.c: Update signature check.
15857         * tests/test-openpty.c: Likewise.
15858         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
15859         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15860
15861         forkpty, openpty: split functions into new modules
15862         * modules/pty (Makefile.am): Substitute new witnesses.
15863         (Libraries): Move library detection...
15864         * modules/forkpty: ...into new module.
15865         * modules/openpty: Another new module.
15866         * modules/pty-tests: Rename and split...
15867         * modules/forkpty-tests: ...to this...
15868         * modules/openpty-tests: ...and this.
15869         * tests/test-pty.c: Rename and split...
15870         * tests/test-forkpty.c: ...to this...
15871         * tests/test-openpty.c: ...and this.
15872         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
15873         (gl_PTY): Split library searching...
15874         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
15875         (gl_FORKPTY, gl_OPENPTY): New macros.
15876         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
15877         * NEWS: Mention the split.
15878         * MODULES.html.sh (Misc): Document the modules.
15879         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
15880         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15881
15882         pty: improve replacement header
15883         * lib/pty.in.h: New file.
15884         * modules/pty (Files): Ship it.
15885         (Makefile.am): Always build replacement.
15886         * m4/pty.m4: Rename...
15887         * m4/pty_h.m4: ...to this.
15888         (gl_PTY): Modernize setting of witness macros; update check of
15889         forkpty to take proper advantage of cache.
15890         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
15891
15892         getopt: avoid compiler warning
15893         * lib/getopt.c (attribute_hidden): Remove unused macro.
15894
15895 2010-03-18  Bruno Haible  <bruno@clisp.org>
15896
15897         Fix link errors on Solaris 8.
15898         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15899         * modules/search-tests (test_search_c___LDADD): Likewise.
15900         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15901         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15902         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15903         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15904         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
15905         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
15906         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
15907
15908 2010-03-18  Bruno Haible  <bruno@clisp.org>
15909
15910         Fix bug introduced on 2010-03-14.
15911         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
15912         (gl_SPAWN_H): Require it.
15913         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
15914         Reported by Simon Josefsson.
15915
15916 2010-03-18  Bruno Haible  <bruno@clisp.org>
15917
15918         Fix typo introduced on 2009-12-31.
15919         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
15920         posix_spawn_file_actions_adddup2.
15921
15922 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
15923         and Eric Blake  <eblake@redhat.com>
15924
15925         test-vc-list-files-git: make more robust
15926         * tests/test-vc-list-files-git.sh: Unset problematic environment
15927         variables.  Chain commands together.
15928
15929 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
15930
15931         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
15932         `AC_CHECK_DECL' invocation.
15933
15934 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
15935
15936         * lib/inttostr.c (inttostr): Make sure the invocation of verify
15937         appears before executable statements. Suggested by Petr Sumbera
15938         <Petr.Sumbera@Sun.COM>.
15939
15940 2010-03-14  Bruno Haible  <bruno@clisp.org>
15941
15942         * tests/test-flock.c (test_exclusive): Comment out a test that causes
15943         portability problems. Instead use a simpler test.
15944         (main): Check that invalid arguments are rejected only on Linux.
15945
15946 2010-03-14  Bruno Haible  <bruno@clisp.org>
15947
15948         Fix bug introduced on 2009-12-31.
15949         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15950         gl_PREREQ_SYS_H_WINSOCK2 always.
15951         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
15952         SYS_SOCKET_H variable.
15953         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
15954         Update comments.
15955         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
15956         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15957         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15958         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15959         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15960
15961 2010-03-14  Bruno Haible  <bruno@clisp.org>
15962
15963         Fix values returned by sinl, cosl.
15964         * lib/trigl.h: Add specification comments.
15965         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
15966         that combines the values from the precomputed table with the values of
15967         the Chebyshev polynomials.
15968
15969 2010-03-14  Bruno Haible  <bruno@clisp.org>
15970
15971         Fix compilation error when modules 'posix_spawn[p]' are not used.
15972         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
15973         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
15974
15975 2010-03-14  Bruno Haible  <bruno@clisp.org>
15976
15977         Fix compilation error on mingw when module 'time_r' is not used.
15978         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
15979         is 1.
15980         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
15981         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15982         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
15983         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
15984
15985 2010-03-14  Bruno Haible  <bruno@clisp.org>
15986
15987         Fix compilation error with Sun C.
15988         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
15989         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
15990         instead of GCC specific ULONG_LONG_MAX.
15991         * lib/xstrtoll.c: Likewise.
15992         * lib/xstrtoull.c: Likewise.
15993
15994 2010-03-13  Bruno Haible  <bruno@clisp.org>
15995
15996         Allow the user to disable C++ code and tests.
15997         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
15998         (gl_PROG_ANSI_CXX): Require it.
15999
16000 2010-03-13  Bruno Haible  <bruno@clisp.org>
16001
16002         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
16003         cases.
16004
16005 2010-03-13  Bruno Haible  <bruno@clisp.org>
16006
16007         Test that gnulib does not break the standard C++ headers.
16008         * tests/test-locale-c++2.cc: New file.
16009         * modules/locale-tests (Files): Add it.
16010         (Makefile.am): Compile it for test-locale-c++.
16011         * tests/test-math-c++2.cc: New file.
16012         * modules/math-tests (Files): Add it.
16013         (Makefile.am): Compile it for test-math-c++.
16014         * tests/test-signal-c++2.cc: New file.
16015         * modules/signal-tests (Files): Add it.
16016         (Makefile.am): Compile it for test-signal-c++.
16017         * tests/test-stdio-c++2.cc: New file.
16018         * modules/stdio-tests (Files): Add it.
16019         (Makefile.am): Compile it for test-stdio-c++.
16020         * tests/test-stdlib-c++2.cc: New file.
16021         * modules/stdlib-tests (Files): Add it.
16022         (Makefile.am): Compile it for test-stdlib-c++.
16023         * tests/test-string-c++2.cc: New file.
16024         * modules/string-tests (Files): Add it.
16025         (Makefile.am): Compile it for test-string-c++.
16026         * tests/test-time-c++2.cc: New file.
16027         * modules/time-tests (Files): Add it.
16028         (Makefile.am): Compile it for test-time-c++.
16029         Reported by John W. Eaton <jwe@gnu.org>.
16030
16031 2010-03-13  Bruno Haible  <bruno@clisp.org>
16032
16033         * gnulib-tool (func_usage): Clarify which options are available for
16034         --create-testdir and --create-megatestdir.
16035
16036 2010-03-13  Bruno Haible  <bruno@clisp.org>
16037
16038         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
16039         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
16040         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
16041         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16042         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
16043         when appropriate.
16044         Reported by Jim Meyering.
16045
16046 2010-03-12  Simon Josefsson  <simon@josefsson.org>
16047
16048         * gnulib-tool (func_import): Explain origin of code.
16049
16050 2010-03-12  Bruno Haible  <bruno@clisp.org>
16051
16052         Fix problem with automake's definition of CXXLINK.
16053         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
16054         Reported by Simon Josefsson and Ludovic Courtès.
16055
16056 2010-03-12  Bruno Haible  <bruno@clisp.org>
16057
16058         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
16059         stable releases.
16060
16061 2010-03-11  Bruno Haible  <bruno@clisp.org>
16062
16063         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
16064         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
16065         whether the system provides one variant or multiple variants of the
16066         function.
16067         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
16068         C++ compilers.
16069         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
16070         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
16071         Reported by Jim Meyering.
16072
16073 2010-03-09  Simon Josefsson  <simon@josefsson.org>
16074
16075         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
16076
16077 2010-03-08  Bruno Haible  <bruno@clisp.org>
16078
16079         gnulib-tool: Add support for --libtool in --create-testdir.
16080         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
16081         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
16082
16083 2010-03-08  Eric Blake  <eblake@redhat.com>
16084
16085         gnulib-tool.texi: mention possibility of git submodule
16086         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
16087         submodules.
16088         * doc/.gitignore: Ignore another generated file.
16089
16090 2010-03-08  Karl Berry  <karl@gnu.org>
16091
16092         * doc/gnulib-tool.texi (VCS Issues): Mention third option
16093         of committing gnulib files while skipping others.
16094
16095 2010-03-07  Bruno Haible  <bruno@clisp.org>
16096
16097         Tests of module 'wctype' in C++ mode.
16098         * tests/test-wctype-c++.cc: New file.
16099         * modules/wctype-tests (Files): Add it and tests/signature.h.
16100         (Depends-on): Add ansi-c++-opt.
16101         (Makefile.am): Arrange to compile and run test-wctype-c++.
16102
16103         Tests of module 'wchar' in C++ mode.
16104         * tests/test-wchar-c++.cc: New file.
16105         * modules/wchar-tests (Files): Add it and tests/signature.h.
16106         (Depends-on): Add ansi-c++-opt.
16107         (Makefile.am): Arrange to compile and run test-wchar-c++.
16108         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
16109         gl_MODULE_INDICATOR.
16110
16111         Tests of module 'unistd' in C++ mode.
16112         * tests/test-unistd-c++.cc: New file.
16113         * modules/unistd-tests (Files): Add it and tests/signature.h.
16114         (Depends-on): Add ansi-c++-opt.
16115         (Makefile.am): Arrange to compile and run test-unistd-c++.
16116         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
16117         gl_MODULE_INDICATOR.
16118
16119         Tests of module 'time' in C++ mode.
16120         * tests/test-time-c++.cc: New file.
16121         * modules/time-tests (Files): Add it and tests/signature.h.
16122         (Depends-on): Add ansi-c++-opt.
16123         (Makefile.am): Arrange to compile and run test-time-c++.
16124         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16125
16126         Tests of module 'sys_time' in C++ mode.
16127         * tests/test-sys_time-c++.cc: New file.
16128         * modules/sys_time-tests (Files): Add it and tests/signature.h.
16129         (Depends-on): Add ansi-c++-opt.
16130         (Makefile.am): Arrange to compile and run test-sys_time-c++.
16131         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
16132         gl_MODULE_INDICATOR.
16133
16134         Tests of module 'sys_stat' in C++ mode.
16135         * tests/test-sys_stat-c++.cc: New file.
16136         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
16137         (Depends-on): Add ansi-c++-opt.
16138         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
16139         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
16140         gl_MODULE_INDICATOR.
16141
16142         Tests of module 'sys_socket' in C++ mode.
16143         * tests/test-sys_socket-c++.cc: New file.
16144         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
16145         (Depends-on): Add ansi-c++-opt.
16146         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
16147         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
16148         gl_MODULE_INDICATOR.
16149
16150         Tests of module 'sys_select' in C++ mode.
16151         * tests/test-sys_select-c++.cc: New file.
16152         * modules/sys_select-tests (Files): Add it and tests/signature.h.
16153         (Depends-on): Add ansi-c++-opt.
16154         (Makefile.am): Arrange to compile and run test-sys_select-c++.
16155         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
16156         gl_MODULE_INDICATOR.
16157
16158         Tests of module 'sys_ioctl' in C++ mode.
16159         * tests/test-sys_ioctl-c++.cc: New file.
16160         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
16161         (Depends-on): Add ansi-c++-opt.
16162         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
16163         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
16164         gl_MODULE_INDICATOR.
16165
16166         Tests of module 'string' in C++ mode.
16167         * tests/test-string-c++.cc: New file.
16168         * modules/string-tests (Files): Add it and tests/signature.h.
16169         (Depends-on): Add ansi-c++-opt.
16170         (Makefile.am): Arrange to compile and run test-string-c++.
16171         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
16172         gl_MODULE_INDICATOR.
16173
16174         Tests of module 'stdlib' in C++ mode.
16175         * tests/test-stdlib-c++.cc: New file.
16176         * modules/stdlib-tests (Files): Add it and tests/signature.h.
16177         (Depends-on): Add ansi-c++-opt.
16178         (Makefile.am): Arrange to compile and run test-stdlib-c++.
16179         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
16180         gl_MODULE_INDICATOR.
16181
16182         Tests of module 'stdio' in C++ mode.
16183         * tests/test-stdio-c++.cc: New file.
16184         * modules/stdio-tests (Files): Add it and tests/signature.h.
16185         (Depends-on): Add ansi-c++-opt.
16186         (Makefile.am): Arrange to compile and run test-stdio-c++.
16187         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
16188         gl_MODULE_INDICATOR.
16189
16190         Tests of module 'spawn' in C++ mode.
16191         * tests/test-spawn-c++.cc: New file.
16192         * modules/spawn-tests (Files): Add it and tests/signature.h.
16193         (Depends-on): Add ansi-c++-opt.
16194         (Makefile.am): Arrange to compile and run test-spawn-c++.
16195         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
16196         gl_MODULE_INDICATOR.
16197
16198         Tests of module 'signal' in C++ mode.
16199         * tests/test-signal-c++.cc: New file.
16200         * modules/signal-tests (Files): Add it and tests/signature.h.
16201         (Depends-on): Add ansi-c++-opt.
16202         (Makefile.am): Arrange to compile and run test-signal-c++.
16203         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
16204         gl_MODULE_INDICATOR.
16205
16206         Tests of module 'search' in C++ mode.
16207         * tests/test-search-c++.cc: New file.
16208         * modules/search-tests (Files): Add it and tests/signature.h.
16209         (Depends-on): Add ansi-c++-opt.
16210         (Makefile.am): Arrange to compile and run test-search-c++.
16211         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
16212         gl_MODULE_INDICATOR.
16213
16214         Tests of module 'math' in C++ mode.
16215         * tests/test-math-c++.cc: New file.
16216         * modules/math-tests (Files): Add it and tests/signature.h.
16217         (Depends-on): Add ansi-c++-opt.
16218         (Makefile.am): Arrange to compile and run test-math-c++.
16219         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16220
16221         Tests of module 'locale' in C++ mode.
16222         * tests/test-locale-c++.cc: New file.
16223         * modules/locale-tests (Files): Add it and tests/signature.h.
16224         (Depends-on): Add ansi-c++-opt.
16225         (Makefile.am): Arrange to compile and run test-locale-c++.
16226         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
16227         gl_MODULE_INDICATOR.
16228
16229         Tests of module 'langinfo' in C++ mode.
16230         * tests/test-langinfo-c++.cc: New file.
16231         * modules/langinfo-tests (Files): Add it and tests/signature.h.
16232         (Depends-on): Add ansi-c++-opt.
16233         (Makefile.am): Arrange to compile and run test-langinfo-c++.
16234         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
16235         gl_MODULE_INDICATOR.
16236
16237         Tests of module 'iconv-h' in C++ mode.
16238         * tests/test-iconv-h-c++.cc: New file.
16239         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
16240         (Depends-on): Add ansi-c++-opt.
16241         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
16242
16243         Tests of module 'glob' in C++ mode.
16244         * tests/test-glob-c++.cc: New file.
16245         * modules/glob-tests (Files): Add it.
16246         (Depends-on): Add ansi-c++-opt.
16247         (Makefile.am): Arrange to compile and run test-glob-c++.
16248
16249         Tests of module 'fcntl-h' in C++ mode.
16250         * tests/test-fcntl-h-c++.cc: New file.
16251         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
16252         (Depends-on): Add ansi-c++-opt.
16253         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
16254         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
16255         gl_MODULE_INDICATOR.
16256
16257         Tests of module 'dirent' in C++ mode.
16258         * tests/test-dirent-c++.cc: New file.
16259         * modules/dirent-tests (Files): Add it and tests/signature.h.
16260         (Depends-on): Add ansi-c++-opt.
16261         (Makefile.am): Arrange to compile and run test-dirent-c++.
16262         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16263         gl_MODULE_INDICATOR.
16264
16265         New module 'ansi-c++-opt'.
16266         * modules/ansi-c++-opt: New file.
16267         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
16268
16269         Document C++ namespace mode.
16270         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
16271
16272         wctype: Avoid #define replacements in C++ mode.
16273         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
16274         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
16275         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
16276         In C++, define a namespaced alias symbol.
16277         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
16278         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
16279         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
16280         rule.
16281
16282         wchar: Avoid #define replacements in C++ mode.
16283         * lib/wchar.in.h: Include c++defs.h.
16284         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
16285         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
16286         symbol.
16287         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
16288         * modules/wchar (Depends-on): Add c++defs.
16289         (Makefile.am): Update wchar.h rule.
16290
16291         unistd: Avoid #define replacements in C++ mode.
16292         * lib/unistd.in.h: Include c++defs.h.
16293         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
16294         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
16295         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
16296         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
16297         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
16298         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
16299         symbol.
16300         (environ): Update.
16301         * modules/unistd (Depends-on): Add c++defs.
16302         (Makefile.am): Update unistd.h rule.
16303
16304         time: Avoid #define replacements in C++ mode.
16305         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
16306         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
16307         define a namespaced alias symbol.
16308         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
16309         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
16310         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
16311         * modules/time (Depends-on): Add c++defs, warn-on-use.
16312         (Makefile.am): Update time.h rule.
16313         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16314         * modules/nanosleep (configure.ac): Likewise.
16315         * modules/strptime (configure.ac): Likewise.
16316         * modules/timegm (configure.ac): Likewise.
16317
16318         sys_time: Avoid #define replacements in C++ mode.
16319         * lib/sys_time.in.h: Include c++defs.h.
16320         (gettimeofday): In C++, define a namespaced alias symbol.
16321         * modules/sys_time (Depends-on): Add c++defs.
16322         (Makefile.am): Update sys/time.h rule.
16323
16324         sys_stat: Avoid #define replacements in C++ mode.
16325         * lib/sys_stat.in.h: Include c++defs.h.
16326         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
16327         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
16328         namespaced alias symbol.
16329         In C++, define a namespaced alias symbol.
16330         * modules/sys_stat (Depends-on): Add c++defs.
16331         (Makefile.am): Update sys/stat.h rule.
16332
16333         sys_socket: Avoid #define replacements in C++ mode.
16334         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
16335         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
16336         definitions also when the system has a <sys/socket.h>.
16337         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16338         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
16339         In C++, define a namespaced alias symbol.
16340         * modules/sys_socket (Depends-on): Add c++defs.
16341         (Makefile.am): Update sys/socket.h rule.
16342
16343         sys_select: Avoid #define replacements in C++ mode.
16344         * lib/sys_select.in.h: Include c++defs.h. Enable the function
16345         definitions also when the system has a <sys/select.h>.
16346         (select): In C++, define a namespaced alias symbol.
16347         * modules/sys_select (Depends-on): Add c++defs.
16348         (Makefile.am): Update sys/select.h rule.
16349
16350         sys_ioctl: Avoid #define replacements in C++ mode.
16351         * lib/sys_ioctl.in.h: Include c++defs.h.
16352         (ioctl): In C++, define a namespaced alias symbol.
16353         * modules/sys_ioctl (Depends-on): Add c++defs.
16354         (Makefile.am): Update sys/ioctl.h rule.
16355
16356         string: Avoid #define replacements in C++ mode.
16357         * lib/string.in.h: Include c++defs.h.
16358         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
16359         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16360         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16361         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
16362         strsignal, strverscmp): In C++, define a namespaced alias symbol.
16363         * modules/string (Depends-on): Add c++defs.
16364         (Makefile.am): Update string.h rule.
16365
16366         stdlib: Avoid #define replacements in C++ mode.
16367         * lib/stdlib.in.h: Include c++defs.h.
16368         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
16369         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
16370         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
16371         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
16372         symbol.
16373         * modules/stdlib (Depends-on): Add c++defs.
16374         (Makefile.am): Update stdlib.h rule.
16375
16376         stdio: Avoid #define replacements in C++ mode.
16377         * lib/stdio.in.h: Include c++defs.h.
16378         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
16379         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
16380         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
16381         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
16382         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
16383         namespaced alias symbol.
16384         * modules/stdio (Depends-on): Add c++defs.
16385         (Makefile.am): Update stdio.h rule.
16386
16387         spawn: Avoid #define replacements in C++ mode.
16388         * lib/spawn.in.h: Include c++defs.h.
16389         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16390         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16391         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16392         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16393         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16394         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16395         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16396         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16397         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16398         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16399         In C++, define a namespaced alias symbol.
16400         * modules/spawn (Depends-on): Add c++defs.
16401         (Makefile.am): Update spawn.h rule.
16402
16403         signal: Avoid #define replacements in C++ mode.
16404         * lib/signal.in.h: Include c++defs.h.
16405         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16406         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
16407         namespaced alias symbol.
16408         * modules/signal (Depends-on): Add c++defs.
16409         (Makefile.am): Update signal.h rule.
16410
16411         search: Avoid #define replacements in C++ mode.
16412         * lib/search.in.h: Include c++defs.h.
16413         (_gl_search_compar_fn, _gl_search_action_fn): New types.
16414         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
16415         symbol.
16416         * modules/search (Depends-on): Add c++defs.
16417         (Makefile.am): Update search.h rule.
16418
16419         math: Avoid #define replacements in C++ mode.
16420         * lib/math.in.h: Include c++defs.h.
16421         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
16422         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
16423         trunc, truncl): In C++, define a namespaced alias symbol.
16424         * modules/math (Depends-on): Add c++defs.
16425         (Makefile.am): Update math.h rule.
16426
16427         locale: Avoid #define replacements in C++ mode.
16428         * lib/locale.in.h: Include c++defs.h.
16429         (duplocale): In C++, define a namespaced alias symbol.
16430         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
16431         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
16432         * modules/locale (Depends-on): Add c++defs.
16433         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
16434
16435         langinfo: Avoid #define replacements in C++ mode.
16436         * lib/langinfo.in.h: Include c++defs.h.
16437         (nl_langinfo): In C++, define a namespaced alias symbol.
16438         * modules/langinfo (Depends-on): Add c++defs.
16439         (Makefile.am): Update langinfo.h rule.
16440
16441         iconv-h: Avoid #define replacements in C++ mode.
16442         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
16443         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
16444         symbol.
16445         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
16446         whenever iconv is present.
16447         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
16448         (Makefile.am): Update iconv.h rule.
16449
16450         glob: Avoid #define replacements in C++ mode.
16451         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
16452         (_gl_glob_errfunc_fn): New type.
16453         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
16454         symbol.
16455         * modules/glob (Depends-on): Add c++defs, warn-on-use.
16456         (Makefile.am): Update glob.h rule.
16457
16458         fcntl-h: Avoid #define replacements in C++ mode.
16459         * lib/fcntl.in.h: Include c++defs.h.
16460         (fcntl, open, openat): In C++, define a namespaced alias symbol.
16461         * modules/fcntl-h (Depends-on): Add c++defs.
16462         (Makefile.am): Update fcntl.h rule.
16463
16464         dirent: Avoid #define replacements in C++ mode.
16465         * lib/dirent.in.h: Include c++defs.h.
16466         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
16467         namespaced alias symbol.
16468         (dirfd): Update declaration.
16469         * modules/dirent (Depends-on): Add c++defs.
16470         (Makefile.am): Update dirent.h rule.
16471
16472         ctype: Make it usable in C++ code.
16473         * lib/ctype.in.h: Include c++defs.h.
16474         (isblank): Declare as extern "C".
16475         * modules/ctype (Depends-on): Add c++defs.
16476         (Makefile.am): Update ctype.h rule.
16477
16478         New module 'c++defs'.
16479         * modules/c++defs: New file.
16480         * build-aux/c++defs.h: New file.
16481         Reported by John W. Eaton <jwe@gnu.org>.
16482
16483 2010-03-07  Bruno Haible  <bruno@clisp.org>
16484
16485         logb: Provide missing declaration for Cygwin.
16486         * lib/math.in.h (logb): New declaration.
16487         * m4/logb.m4: New file.
16488         * modules/logb (Files): Add m4/logb.m4.
16489         (Depends-on): Add math.
16490         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
16491         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
16492         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
16493         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
16494         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
16495
16496 2010-03-07  Bruno Haible  <bruno@clisp.org>
16497
16498         Fix test-cond link error.
16499         * tests/test-cond.c: Include <stdio.h>.
16500
16501 2010-03-07  Bruno Haible  <bruno@clisp.org>
16502
16503         Fix test-dirent-safer link error.
16504         * modules/dirent-safer-tests (Makefile.am): Define
16505         test_dirent_safer_LDADD.
16506
16507 2010-03-07  Bruno Haible  <bruno@clisp.org>
16508
16509         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
16510         among default module list.
16511
16512 2010-03-07  Bruno Haible  <bruno@clisp.org>
16513
16514         Fix link error on platforms with GNU libiconv.
16515         * modules/unistr/u8-strcoll-tests (Makefile): Define
16516         test_u8_strcoll_LDADD.
16517         * modules/unistr/u16-strcoll-tests (Makefile): Define
16518         test_u16_strcoll_LDADD.
16519         * modules/unistr/u32-strcoll-tests (Makefile): Define
16520         test_u32_strcoll_LDADD.
16521
16522 2010-03-07  Bruno Haible  <bruno@clisp.org>
16523
16524         Use POSIX declarations for socket functions.
16525         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
16526         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
16527         rpl_sendto): Change declaration to match POSIX.
16528         * lib/connect.c (rpl_connect): Likewise.
16529         * lib/accept.c (rpl_accept): Likewise.
16530         * lib/bind.c (rpl_bind): Likewise.
16531         * lib/getpeername.c (rpl_getpeername): Likewise.
16532         * lib/getsockname.c (rpl_getsockname): Likewise.
16533         * lib/recv.c (rpl_recv): Likewise.
16534         * lib/send.c (rpl_send): Likewise.
16535         * lib/recvfrom.c (rpl_recvfrom): Likewise.
16536         * lib/sendto.c (rpl_sendto): Likewise.
16537
16538 2010-03-06  Bruno Haible  <bruno@clisp.org>
16539
16540         Clarify access, euidaccess, faccessat.
16541         * doc/posix-functions/faccessat.texi: Mention security problem under
16542         "Other problems", not "Portability problems".
16543         * doc/posix-functions/access.texi: Likewise. Mention a related security
16544         problem.
16545         * doc/glibc-functions/euidaccess.texi: Mention security problems.
16546         * lib/euidaccess.c: Add comments about platforms.
16547         * lib/unistd.in.h (access, euidaccess): Add warnings.
16548
16549 2010-03-07  Bruno Haible  <bruno@clisp.org>
16550
16551         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
16552         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
16553         (POSIX_SPAWN_SETSCHEDULER): Likewise.
16554         (POSIX_SPAWN_USEVFORK): Define in a way that works when
16555         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16556         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
16557         declare when POSIX_SPAWN_SETSCHEDULER is zero.
16558         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
16559         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
16560         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
16561         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
16562         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
16563         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
16564         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
16565         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
16566         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
16567         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
16568         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
16569         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
16570         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
16571         Likewise.
16572         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
16573         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
16574         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
16575         Likewise.
16576         * tests/test-spawn.c (main): Make it work when
16577         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16578
16579 2010-03-07  Bruno Haible  <bruno@clisp.org>
16580
16581         Fix incorrect Makefile.am generation in German locale.
16582         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16583         Execute sed command with character range in C locale.
16584
16585 2010-03-06  Bruno Haible  <bruno@clisp.org>
16586
16587         Tests for module 'iconv-h'.
16588         * modules/iconv-h-tests: New file.
16589         * tests/test-iconv-h.c: New file.
16590
16591         New module 'iconv-h'.
16592         * modules/iconv-h: New file.
16593         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
16594         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
16595         (configure.ac): Remove gl_ICONV_H.
16596         (Makefile.am): Remove rule for iconv.h.
16597
16598 2010-03-06  Bruno Haible  <bruno@clisp.org>
16599
16600         More consistent naming of *.m4 files.
16601         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
16602         * modules/wctype (Files): Update.
16603
16604         More consistent naming of *.m4 files.
16605         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
16606         * modules/wchar (Files): Update.
16607
16608 2010-03-06  Jim Meyering  <meyering@redhat.com>
16609
16610         euidaccess: relax license to LGPLv2+
16611         * modules/euidaccess (License): Relax to LGPLv2+.
16612
16613 2010-03-06  Bruno Haible  <bruno@clisp.org>
16614
16615         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
16616         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
16617         (Makefile.am): Augment lib_SOURCES instead.
16618
16619 2010-03-04  Jim Meyering  <meyering@redhat.com>
16620
16621         utime: remove obsolete module
16622         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
16623         unnecessary for years, and has been marked as obsolete for 10 months.
16624         * modules/utime: Remove file.
16625         * lib/utime.c: Remove file.
16626         * m4/utime.m4: Remove file.
16627         * m4/utimes-null.m4: Remove file.
16628         * doc/posix-functions/utime.texi (utime): Remove reference to
16629         the module.  Move the sole "fixed by gnulib" item into the
16630         "problems not fixed by Gnulib" list.
16631         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
16632
16633 2010-03-05  Simon Josefsson  <simon@josefsson.org>
16634
16635         * modules/exit (License): Relax license to LGPLv2+.
16636         (Status): Mark as obsolete.
16637         * NEWS: Mention deprecated 'exit' module.
16638         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
16639         of now obsolete 'exit'.
16640
16641 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16642
16643         fts-lgpl: remove unused module
16644         * modules/fts-lgpl: Remove.
16645         * MODULES.html.sh (func_all_modules): Adjust.
16646         * check-module (find_included_lib_files): Adjust.
16647         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
16648
16649 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
16650
16651         copy-acl: enhance Solaris ACL error handling
16652         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
16653         * lib/set-mode-acl.c (qset_acl): Likewise.
16654
16655 2010-03-02  Bruno Haible  <bruno@clisp.org>
16656
16657         spawn: Don't override the system defined values on FreeBSD 8.
16658         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
16659         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
16660         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
16661         if HAVE_POSIX_SPAWN is 1.
16662         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
16663
16664 2010-03-01  Bruno Haible  <bruno@clisp.org>
16665
16666         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
16667         regarding Automake.
16668
16669 2010-02-25  Bruno Haible  <bruno@clisp.org>
16670
16671         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
16672         * gnulib-tool: Define 'echo' as a function only before the ksh alias
16673         setting, not afterwards.
16674         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
16675
16676 2010-02-24  Eric Blake  <eblake@redhat.com>
16677
16678         bootstrap, git-version-gen: use timestamp
16679         * build-aux/git-version-gen (scriptversion): Force UTC.
16680         * build-aux/bootstrap (scriptversion): New variable.
16681
16682         bootstrap: allow older git
16683         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
16684         older than 1.6.4.  Requested by the libvirt project.
16685
16686 2010-02-23  Eric Blake  <eblake@redhat.com>
16687
16688         warn-on-use: work with old autoconf
16689         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
16690         AS_VAR semantics of autoconf 2.60.
16691         Reported by Bruno Haible.
16692
16693         bootstrap: improve some comments
16694         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
16695         clarification comments.
16696
16697         gettimeofday: provide correct function
16698         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
16699         when replacement is declared, otherwise provide gettimeofday.
16700         Reported by Michael Goffioul.
16701
16702 2010-02-23  Jim Meyering  <meyering@redhat.com>
16703
16704         lib-ignore: relax license to "unlimited", not LGPLv2+
16705         * modules/lib-ignore (License): Relax to "unlimited".
16706
16707 2010-02-23  Jim Meyering  <meyering@redhat.com>
16708
16709         lib-ignore: relax license to LGPLv2+
16710         * modules/lib-ignore (License): Relax to LGPLv2+.
16711
16712 2010-02-22  Eric Blake  <eblake@redhat.com>
16713
16714         lseek: avoid bash 3.2 broken pipe bug
16715         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
16716         warning from bash 3.2.
16717         Reported by Ben Pfaff, with analysis from Bruno Haible.
16718
16719         bootstrap: support non-FSF copyright holder
16720         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
16721         bootstrap.conf override of COPYRIGHT_HOLDER.
16722         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
16723
16724         bootstrap: interoperate with gettext 0.14.1
16725         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
16726
16727         bootstrap: allow for alternate submodule location
16728         * build-aux/bootstrap (gnulib_path): New variable; use instead of
16729         hardcoding submodule location.
16730         (gnulib_mk): Allow direct use of Makefile.am.
16731
16732         bootstrap: use GNULIB_SRCDIR to reduce disk usage
16733         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
16734         rather than reconfiguring where the submodule points.
16735
16736         gettimeofday: restore support for platforms that lack function
16737         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
16738         replacement if function is missing.
16739         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
16740         * modules/sys_time (Makefile.am): Substitute it.
16741         * lib/sys_time.in.h (gettimeofday): Check it.
16742         Reported by Michael Goffioul.
16743
16744 2010-02-21  Bruno Haible  <bruno@clisp.org>
16745
16746         * lib/stdio.in.h (obstack_printf): Fix typo.
16747
16748 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
16749
16750         vc-list-files: use bzr ls's -R option
16751         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
16752         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
16753
16754 2010-02-21  Jim Meyering  <meyering@redhat.com>
16755
16756         init.sh: fix EXEEXT shims to work also for names like test-prog
16757         * tests/init.sh: Re-exec a better shell, when needed.
16758         If the current shell lacks support for posix $(...), an init.sh-using
16759         test will now try to find a shell that supports that.  If EXEEXT is
16760         nonempty, we also require support for hyphen-in-alias-name and shell
16761         substitutions like ${var#glob}.  Failure to find such a shell results
16762         in a skipped test.
16763
16764 2010-02-21  Bruno Haible  <bruno@clisp.org>
16765
16766         Really work around around "broken pipe" error message from bash 3.2.
16767         * gnulib-tool (func_reset_sigpipe): Remove function.
16768         (echo): In bash 3.2, define to a function that uses printf.
16769         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
16770
16771 2010-02-20  Bruno Haible  <bruno@clisp.org>
16772
16773         Restore support for automake 1.9.6 with autoconf 2.61.
16774         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
16775         Reported by James Youngman <jay@gnu.org>.
16776
16777 2010-02-20  Bruno Haible  <bruno@clisp.org>
16778
16779         Improve *printf warning condition.
16780         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
16781         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
16782         and the function is overridden due to SIGPIPE emulation.
16783
16784 2010-02-20  Bruno Haible  <bruno@clisp.org>
16785
16786         * lib/stdio.in.h: Tweak comments.
16787
16788 2010-02-19  Bruno Haible  <bruno@clisp.org>
16789
16790         Make it easier to find modules. New gnulib-tool option '--find'.
16791         * gnulib-tool: New option --find.
16792         (func_usage): Document it.
16793         (func_sanitize_modulelist): New function, extracted from
16794         func_all_modules.
16795         (func_all_modules): Invoke it.
16796         * doc/gnulib-tool.texi (Which modules?): New node.
16797
16798 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
16799
16800         * lib/sys_select.in.h: Provide select replacement even if
16801         sys/select.h exists on a system, for Interix.
16802
16803 2010-02-18  Jim Meyering  <meyering@redhat.com>
16804
16805         init.sh: don't use $(...) just yet
16806         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
16807         to accommodate e.g., Solaris' /bin/sh.
16808
16809 2010-02-17  Bruno Haible  <bruno@clisp.org>
16810
16811         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
16812         Reported by Ludovic Courtès <ludo@gnu.org>.
16813
16814 2010-02-16  Simon Josefsson  <simon@josefsson.org>
16815
16816         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
16817         linking with -lintl.
16818
16819 2010-02-17  Simon Josefsson  <simon@josefsson.org>
16820
16821         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
16822         if not provided by the system's netdb.h.  Reported by
16823         ludo@gnu.org (Ludovic Courtès).
16824
16825 2010-02-15  Jim Meyering  <meyering@redhat.com>
16826
16827         init.sh: improve portability and efficiency
16828         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
16829         "dummy" in a for loop.
16830         Use '!', not '^' to select the complement of a character set used
16831         in a "case" statement.
16832         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
16833         Suggestions from Eric Blake.
16834
16835         init.sh: automatically accommodate programs with the .exe suffix
16836         Automatically arrange for an invocation of "prog" to execute the
16837         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
16838         may use the simpler "prog", yet still work when built on a system
16839         that requires specifying the added suffix.
16840         Do this by constructing a function named "prog" that invokes
16841         "prog.exe" for each .exe file in selected directories.
16842         * tests/init.sh (find_exe_basenames_): New function.
16843         (create_exe_shim_functions_): New function.
16844         (path_prepend_): Use it.
16845
16846         maint.mk: mark syntax-check sc_*.m rules as .PHONY
16847         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
16848         "make -t syntax-check" doesn't create a ton of sc_*.m files.
16849
16850 2010-02-14  Jim Meyering  <meyering@redhat.com>
16851
16852         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
16853         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
16854         (sc_prohibit_hash_pjw_without_use): New rule.
16855
16856         maint.mk: allow the default upload destination dir to be overridden
16857         * top/maint.mk (upload_dest_dir_): Define with a default that
16858         preserves the status quo.
16859         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
16860         Reported by Peter Simons.
16861
16862         maint.mk: prohibit inclusion of "hash.h" without_use
16863         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
16864
16865 2010-02-10  Jim Meyering  <meyering@redhat.com>
16866
16867         maint.mk: prohibit inclusion of "ignore-value.h" without_use
16868         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
16869
16870 2010-02-09  Eric Blake  <ebb9@byu.net>
16871         and Bruno Haible  <bruno@clisp.org>
16872
16873         obstack-printf-posix: ensure declaration
16874         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
16875         extracted from gl_FUNC_OBSTACK_PRINTF.
16876         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
16877         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16878         Likewise.
16879         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
16880         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
16881         0.
16882
16883 2010-02-08  Bruno Haible  <bruno@clisp.org>
16884
16885         gnulib-tool: Fix typo in 2010-02-07 commit.
16886         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
16887         Reported by Eric Blake.
16888
16889 2010-02-07  Bruno Haible  <bruno@clisp.org>
16890
16891         gnulib-tool: Fix up caching patches.
16892         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
16893         option --no-cache. Use associative arrays when supported by the shell.
16894         (sed_comments): New variable.
16895         (modcache): Renamed from do_cache.
16896         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
16897         abbreviate unnecessarily.
16898         (have_associative): New variable.
16899         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16900         way also for ksh and zsh.
16901         (func_init_sed_convert_to_cache_statements): New function, extracted
16902         from func_cache_lookup_module. Add support for associative arrays.
16903         Don't set the c_MODULE_cached variable here. Ignore all lines before
16904         the first field header. Remove only the final newline, not all trailing
16905         newlines. Support empty fields correctly. Limit the use of 'eval' to
16906         assignments.
16907         (func_get_description, func_get_status, func_get_notice,
16908         func_get_applicability, func_get_filelist, func_get_dependencies,
16909         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
16910         func_get_automake_snippet, func_get_include_directive,
16911         func_get_link_directive, func_get_license, func_get_maintainer):
16912         Update documentation. List the unoptimized code first. Add support for
16913         associative arrays. Limit the use of 'eval' to assignments.
16914         (func_get_applicability): Undo stylistic pessimisations.
16915         (func_get_automake_snippet, func_get_include_directive): Reduce code
16916         duplication.
16917         (func_modules_transitive_closure, func_modules_add_dummy,
16918         func_modules_notice, func_modules_to_filelist, func_add_file,
16919         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
16920         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
16921         func_create_testdir, func_create_megatestdir): Update documentation.
16922
16923 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16924
16925         * gnulib-tool (func_cache_lookup_module): Store the module name
16926         belonging to the cache variable; error out if two different
16927         module names map to the same cache variable name.
16928
16929 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16930
16931         gnulib-tool: Make caching optional.
16932         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
16933         Update matching short versions of --no-changelog.
16934         (func_usage): Update.
16935         (sed_extract_cache_prog): Renamed from ...
16936         (sed_extract_prog): ... this; revert to old extraction script.
16937         (func_get_description, func_get_status)
16938         (func_get_notice, func_get_applicability, func_get_filelist)
16939         (func_get_dependencies, func_get_autoconf_early_snippet)
16940         (func_get_autoconf_snippet, func_get_automake_snippet)
16941         (func_get_include_directive, func_get_link_directive)
16942         (func_get_license, func_get_maintainer): If $do_cache is false,
16943         use old, non-caching extraction scripts.
16944         Suggestion by Bruno Haible.
16945
16946 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16947
16948         gnulib-tool: cache module metainformation.
16949         * gnulib-tool (sed_extract_prog): Match newline before each
16950         header, and rewrite header to a shell variable suffix.
16951         (func_cache_var, func_cache_lookup_module): New functions,
16952         to turn a module name into a cache variable prefix, and to
16953         look up and cache module metainformation.
16954         (func_get_description, func_get_status)
16955         (func_get_notice, func_get_applicability, func_get_filelist)
16956         (func_get_dependencies, func_get_autoconf_early_snippet)
16957         (func_get_autoconf_snippet, func_get_automake_snippet)
16958         (func_get_include_directive, func_get_link_directive)
16959         (func_get_license, func_get_maintainer): Use
16960         func_cache_lookup_module.
16961
16962 2010-02-07  Bruno Haible  <bruno@clisp.org>
16963
16964         fnctl: Fix missing dependency.
16965         * modules/fcntl (Depends-on): Add getdtablesize.
16966         Reported by John W. Eaton <jwe@gnu.org>.
16967
16968 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16969
16970         Argp: fix recognition of short alias options.
16971
16972         * lib/argp-parse.c (convert_options): Fix improper use of
16973         `|' between character values.
16974         * tests/test-argp.c (group1_option): New alias option
16975         --read (-r).
16976         (group1_parser): Special handling for 'r'.
16977         (test15): New test case.
16978         (test_fun): Add test15.
16979         * tests/test-argp-2.sh: Update expected --help and --usage
16980         outputs.
16981
16982 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16983
16984         * tests/test-argp.c: Fix indentation.
16985
16986 2010-02-04  Eric Blake  <ebb9@byu.net>
16987
16988         gettimeofday: expose type of second argument
16989         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
16990         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
16991         * tests/test-gettimeofday.c: Use it to silence warning.
16992         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
16993         the issue.
16994
16995 2010-02-03  Jim Meyering  <meyering@redhat.com>
16996
16997         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
16998         * lib/regcomp.c (TYPE_SIGNED): Define.
16999         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
17000
17001         regcomp.c: avoid a new -Wshadow warning
17002         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
17003
17004 2010-02-01  Jim Meyering  <meyering@redhat.com>
17005
17006         removing useless parentheses in cpp #define directives
17007         For motivation, see commit c0221df4, "define STREQ(a,b)
17008         consistently, removing useless parentheses"
17009         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
17010         * lib/mountlist.c (MNT_IGNORE): Likewise.
17011         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
17012
17013 2010-02-01  Eric Blake  <ebb9@byu.net>
17014
17015         sys_time: use link-warning
17016         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
17017         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
17018         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
17019         * modules/sys_time (Depends-on): Add warn-on-use.
17020         (Makefile.am): Always build replacement.
17021         (configure.ac): Update substitutions.
17022         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
17023         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
17024         bother with SYS_TIME_H.
17025         * modules/gettimeofday (configure.ac): Declare indicator.
17026         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
17027         in use.
17028
17029         closein-tests: silence compiler warning
17030         * tests/test-closein.c (main): Ignore fread result.
17031         * modules/closein-tests (Depends-on): Add ignore-value.
17032
17033         tests: silence warning about system return
17034         * tests/test-areadlink-with-size.c (main): Ignore system result.
17035         * tests/test-areadlink.c (main): Likewise.
17036         * tests/test-areadlinkat-with-size.c (main): Likewise.
17037         * tests/test-areadlinkat.c (main): Likewise.
17038         * tests/test-canonicalize-lgpl.c (main): Likewise.
17039         * tests/test-canonicalize.c (main): Likewise.
17040         * tests/test-chown.c (main): Likewise.
17041         * tests/test-fchownat.c (main): Likewise.
17042         * tests/test-fdutimensat.c (main): Likewise.
17043         * tests/test-fstatat.c (main): Likewise.
17044         * tests/test-futimens.c (main): Likewise.
17045         * tests/test-lchown.c (main): Likewise.
17046         * tests/test-link.c (main): Likewise.
17047         * tests/test-linkat.c (main): Likewise.
17048         * tests/test-lstat.c (main): Likewise.
17049         * tests/test-mkdir.c (main): Likewise.
17050         * tests/test-mkdirat.c (main): Likewise.
17051         * tests/test-mkfifo.c (main): Likewise.
17052         * tests/test-mkfifoat.c (main): Likewise.
17053         * tests/test-mknod.c (main): Likewise.
17054         * tests/test-readlink.c (main): Likewise.
17055         * tests/test-remove.c (main): Likewise.
17056         * tests/test-rename.c (main): Likewise.
17057         * tests/test-renameat.c (main): Likewise.
17058         * tests/test-rmdir.c (main): Likewise.
17059         * tests/test-symlink.c (main): Likewise.
17060         * tests/test-symlinkat.c (main): Likewise.
17061         * tests/test-unlink.c (main): Likewise.
17062         * tests/test-unlinkat.c (main): Likewise.
17063         * tests/test-utimens.c (main): Likewise.
17064         * tests/test-utimensat.c (main): Likewise.
17065         * modules/areadlink-tests (Depends-on): Add ignore-value.
17066         * modules/areadlink-with-size-tests (Depends-on): Likewise.
17067         * modules/areadlinkat-tests (Depends-on): Likewise.
17068         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
17069         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17070         * modules/canonicalize-tests (Depends-on): Likewise.
17071         * modules/chown-tests (Depends-on): Likewise.
17072         * modules/fdutimensat-tests (Depends-on): Likewise.
17073         * modules/futimens-tests (Depends-on): Likewise.
17074         * modules/lchown-tests (Depends-on): Likewise.
17075         * modules/link-tests (Depends-on): Likewise.
17076         * modules/linkat-tests (Depends-on): Likewise.
17077         * modules/lstat-tests (Depends-on): Likewise.
17078         * modules/mkdir-tests (Depends-on): Likewise.
17079         * modules/mkfifo-tests (Depends-on): Likewise.
17080         * modules/mkfifoat-tests (Depends-on): Likewise.
17081         * modules/mknod-tests (Depends-on): Likewise.
17082         * modules/openat-tests (Depends-on): Likewise.
17083         * modules/readlink-tests (Depends-on): Likewise.
17084         * modules/remove-tests (Depends-on): Likewise.
17085         * modules/rename-tests (Depends-on): Likewise.
17086         * modules/renameat-tests (Depends-on): Likewise.
17087         * modules/rmdir-tests (Depends-on): Likewise.
17088         * modules/symlink-tests (Depends-on): Likewise.
17089         * modules/symlinkat-tests (Depends-on): Likewise.
17090         * modules/unlink-tests (Depends-on): Likewise.
17091         * modules/utimens-tests (Depends-on): Likewise.
17092         * modules/utimensat-tests (Depends-on): Likewise.
17093
17094 2010-01-31  Bruno Haible  <bruno@clisp.org>
17095
17096         Perform the same test for many <math.h> functions.
17097         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
17098         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
17099         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
17100         of gl_MATHFUNC.
17101         * modules/acos (configure.ac): Likewise.
17102         * modules/asin (configure.ac): Likewise.
17103         * modules/atan (configure.ac): Likewise.
17104         * modules/atan2 (configure.ac): Likewise.
17105         * modules/cbrt (configure.ac): Likewise.
17106         * modules/copysign (configure.ac): Likewise.
17107         * modules/cos (configure.ac): Likewise.
17108         * modules/cosh (configure.ac): Likewise.
17109         * modules/erf (configure.ac): Likewise.
17110         * modules/erfc (configure.ac): Likewise.
17111         * modules/exp (configure.ac): Likewise.
17112         * modules/fmod (configure.ac): Likewise.
17113         * modules/hypot (configure.ac): Likewise.
17114         * modules/j0 (configure.ac): Likewise.
17115         * modules/j1 (configure.ac): Likewise.
17116         * modules/jn (configure.ac): Likewise.
17117         * modules/lgamma (configure.ac): Likewise.
17118         * modules/log (configure.ac): Likewise.
17119         * modules/log10 (configure.ac): Likewise.
17120         * modules/log1p (configure.ac): Likewise.
17121         * modules/pow (configure.ac): Likewise.
17122         * modules/remainder (configure.ac): Likewise.
17123         * modules/sin (configure.ac): Likewise.
17124         * modules/sinh (configure.ac): Likewise.
17125         * modules/tan (configure.ac): Likewise.
17126         * modules/tanh (configure.ac): Likewise.
17127         * modules/y0 (configure.ac): Likewise.
17128         * modules/y1 (configure.ac): Likewise.
17129         * modules/yn (configure.ac): Likewise.
17130         Suggested by Paolo Bonzini.
17131
17132 2010-01-31  Bruno Haible  <bruno@clisp.org>
17133
17134         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
17135
17136 2010-01-31  Bruno Haible  <bruno@clisp.org>
17137
17138         Work around getdelim() bug on FreeBSD 8.0.
17139         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
17140         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
17141         not work.
17142         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
17143         is 1.
17144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
17145         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
17146         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
17147         a non-zero size.
17148         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
17149
17150 2010-01-31  Bruno Haible  <bruno@clisp.org>
17151
17152         Work around getline() bug on FreeBSD 8.0.
17153         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
17154         and a non-zero size.
17155         * tests/test-getline.c (main): Likewise.
17156         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
17157         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
17158
17159 2010-01-28  Eric Blake  <ebb9@byu.net>
17160
17161         regex: fix build failure
17162         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
17163         platforms.
17164
17165 2010-01-28  Jim Meyering  <meyering@redhat.com>
17166
17167         regex: do not ignore memory allocation failure
17168         * lib/regex_internal.c (create_cd_newstate): Detect
17169         re_node_set_init_copy failure.   Extracted from glibc commit
17170         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17171
17172         regex: sync more white-space changes from libc
17173         * lib/regex_internal.c: White-space only changes.
17174         * lib/regexec.c: Likewise.
17175
17176         regex: add many uses of __attribute_warn_unused_result__
17177         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
17178         * lib/regexec.c: Likewise.
17179         Extracted from a messy glibc commit.
17180
17181         regcomp.c: spelling and merge-artifact from glibc
17182         * lib/regcomp.c: Merge remainder of glibc's
17183         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17184
17185         regcomp.c: sync white-space changes from glibc
17186         * lib/regcomp.c: Merge to accommodate white space
17187         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17188
17189         regcomp.c: do not ignore internal return values
17190         * lib/regcomp.c: Do not ignore internal return values.
17191         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
17192         but without its white-space changes and spelling fixes.
17193
17194         regex_internal.h: define __attribute_warn_unused_result__
17195         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
17196
17197         maint: add a syntax-check rule to check for vulnerable Makefile.in
17198         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
17199
17200 2010-01-27  Jim Meyering  <meyering@redhat.com>
17201
17202         ncftpput-ftp: clean up spaces
17203         * build-aux/ncftpput-ftp: Make Copyright line consistent.
17204         Remove trailing blanks.
17205
17206 2010-01-27  Simon Josefsson  <simon@josefsson.org>
17207
17208         * build-aux/git-version-gen: Fix copyright statement.
17209         * build-aux/gnupload: Likewise.
17210         * tests/test-arcfour.c: Likewise.
17211         * tests/test-arctwo.c: Likewise.
17212         * tests/test-count-one-bits.c: Likewise.
17213         * tests/test-crc.c: Likewise.
17214         * tests/test-des.c: Likewise.
17215         * tests/test-gc-arcfour.c: Likewise.
17216         * tests/test-gc-arctwo.c: Likewise.
17217         * tests/test-gc-des.c: Likewise.
17218         * tests/test-gc-hmac-md5.c: Likewise.
17219         * tests/test-gc-hmac-sha1.c: Likewise.
17220         * tests/test-gc-md2.c: Likewise.
17221         * tests/test-gc-md4.c: Likewise.
17222         * tests/test-gc-md5.c: Likewise.
17223         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17224         * tests/test-gc-rijndael.c: Likewise.
17225         * tests/test-gc-sha1.c: Likewise.
17226         * tests/test-gc.c: Likewise.
17227         * tests/test-gethostname.c: Likewise.
17228         * tests/test-gettimeofday.c: Likewise.
17229         * tests/test-hash.c: Likewise.
17230         * tests/test-hmac-md5.c: Likewise.
17231         * tests/test-hmac-sha1.c: Likewise.
17232         * tests/test-md2.c: Likewise.
17233         * tests/test-md4.c: Likewise.
17234         * tests/test-md5.c: Likewise.
17235         * tests/test-memchr.c: Likewise.
17236         * tests/test-memchr2.c: Likewise.
17237         * tests/test-memcmp.c: Likewise.
17238         * tests/test-memmem.c: Likewise.
17239         * tests/test-memrchr.c: Likewise.
17240         * tests/test-rawmemchr.c: Likewise.
17241         * tests/test-read-file.c: Likewise.
17242         * tests/test-rijndael.c: Likewise.
17243         * tests/test-sockets.c: Likewise.
17244         * tests/test-strchrnul.c: Likewise.
17245         * tests/test-strstr.c: Likewise.
17246         * tests/test-strtod.c: Likewise.
17247         * build-aux/ncftpput-ftp: Likewise.
17248
17249 2010-01-26  Eric Blake  <ebb9@byu.net>
17250
17251         ignore-value: update recommended header name
17252         * modules/ignore-value (Include): Only use <> for headers that
17253         exist in glibc.
17254
17255 2010-01-26  Jim Meyering  <meyering@redhat.com>
17256
17257         test-userspec.c: avoid compiler warnings
17258         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
17259         and "initialization discards qualifiers..." warnings.
17260         Put the first "uid" in its own scope, and make char* members "const".
17261
17262 2010-01-25  Bruno Haible  <bruno@clisp.org>
17263
17264         gnulib-tool: Make warning diagnostics consistent.
17265         * gnulib-tool (func_warning): New function.
17266         Use it everywhere where gnulib-tool produces output to stderr and it is
17267         not a fatal error.
17268
17269 2010-01-25  Bruno Haible  <bruno@clisp.org>
17270
17271         Fix test dependencies.
17272         * modules/xstrtol-tests (Depends-on): Add inttypes.
17273         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
17274
17275 2010-01-25 Pádraig Brady <P@draigBrady.com>
17276
17277         syntax-check: detect incorrect boolean macro values in config.h
17278         * modules/maintainer-makefile (configure.ac): Parameterize the location
17279         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
17280         The logic is from Eric Blake and the location indicated by Jim Meyering.
17281         Note the more natural CONFIG_HEADER name is prohibited by automake
17282         for backwards compatibility reasons.
17283         * top/maint.mk (sc_Wundef_boolean): New rule.
17284
17285 2010-01-25  Jim Meyering  <meyering@redhat.com>
17286
17287         bootstrap: detect MacOS 10.6's shasum, too
17288         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
17289         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
17290
17291 2010-01-23  Jim Meyering  <meyering@redhat.com>
17292
17293         xstrtoll: new module
17294         * modules/xstrtoll: New file.
17295         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
17296         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
17297         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
17298         ./configure fails if you use this module and lack "long long".
17299         * modules/xstrtoll-tests: New module.
17300         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
17301         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
17302         new init.sh-based test framework.
17303
17304 2010-01-24  Bruno Haible  <bruno@clisp.org>
17305
17306         Tests for module 'yn'.
17307         * modules/yn-tests: New file.
17308         * tests/test-yn.c: New file.
17309
17310         Tests for module 'y1'.
17311         * modules/y1-tests: New file.
17312         * tests/test-y1.c: New file.
17313
17314         Tests for module 'y0'.
17315         * modules/y0-tests: New file.
17316         * tests/test-y0.c: New file.
17317
17318         Tests for module 'tanh'.
17319         * modules/tanh-tests: New file.
17320         * tests/test-tanh.c: New file.
17321
17322         Tests for module 'tan'.
17323         * modules/tan-tests: New file.
17324         * tests/test-tan.c: New file.
17325
17326         Tests for module 'sqrt'.
17327         * modules/sqrt-tests: New file.
17328         * tests/test-sqrt.c: New file.
17329
17330         Tests for module 'sinh'.
17331         * modules/sinh-tests: New file.
17332         * tests/test-sinh.c: New file.
17333
17334         Tests for module 'sin'.
17335         * modules/sin-tests: New file.
17336         * tests/test-sin.c: New file.
17337
17338         Tests for module 'rint'.
17339         * modules/rint-tests: New file.
17340         * tests/test-rint.c: New file.
17341
17342         Tests for module 'remainder'.
17343         * modules/remainder-tests: New file.
17344         * tests/test-remainder.c: New file.
17345
17346         Tests for module 'pow'.
17347         * modules/pow-tests: New file.
17348         * tests/test-pow.c: New file.
17349
17350         Tests for module 'nextafter'.
17351         * modules/nextafter-tests: New file.
17352         * tests/test-nextafter.c: New file.
17353
17354         Tests for module 'modf'.
17355         * modules/modf-tests: New file.
17356         * tests/test-modf.c: New file.
17357
17358         Tests for module 'logb'.
17359         * modules/logb-tests: New file.
17360         * tests/test-logb.c: New file.
17361
17362         Tests for module 'log1p'.
17363         * modules/log1p-tests: New file.
17364         * tests/test-log1p.c: New file.
17365
17366         Tests for module 'log10'.
17367         * modules/log10-tests: New file.
17368         * tests/test-log10.c: New file.
17369
17370         Tests for module 'log'.
17371         * modules/log-tests: New file.
17372         * tests/test-log.c: New file.
17373
17374         Tests for module 'lgamma'.
17375         * modules/lgamma-tests: New file.
17376         * tests/test-lgamma.c: New file.
17377
17378         Tests for module 'ldexp'.
17379         * modules/ldexp-tests: New file.
17380         * tests/test-ldexp.c: New file.
17381
17382         Tests for module 'jn'.
17383         * modules/jn-tests: New file.
17384         * tests/test-jn.c: New file.
17385
17386         Tests for module 'j1'.
17387         * modules/j1-tests: New file.
17388         * tests/test-j1.c: New file.
17389
17390         Tests for module 'j0'.
17391         * modules/j0-tests: New file.
17392         * tests/test-j0.c: New file.
17393
17394         Tests for module 'hypot'.
17395         * modules/hypot-tests: New file.
17396         * tests/test-hypot.c: New file.
17397
17398         Tests for module 'fmod'.
17399         * modules/fmod-tests: New file.
17400         * tests/test-fmod.c: New file.
17401
17402         Tests for module 'fabs'.
17403         * modules/fabs-tests: New file.
17404         * tests/test-fabs.c: New file.
17405
17406         Tests for module 'exp'.
17407         * modules/exp-tests: New file.
17408         * tests/test-exp.c: New file.
17409
17410         Tests for module 'erfc'.
17411         * modules/erfc-tests: New file.
17412         * tests/test-erfc.c: New file.
17413
17414         Tests for module 'erf'.
17415         * modules/erf-tests: New file.
17416         * tests/test-erf.c: New file.
17417
17418         Tests for module 'cosh'.
17419         * modules/cosh-tests: New file.
17420         * tests/test-cosh.c: New file.
17421
17422         Tests for module 'cos'.
17423         * modules/cos-tests: New file.
17424         * tests/test-cos.c: New file.
17425
17426         Tests for module 'copysign'.
17427         * modules/copysign-tests: New file.
17428         * tests/test-copysign.c: New file.
17429
17430         Tests for module 'cbrt'.
17431         * modules/cbrt-tests: New file.
17432         * tests/test-cbrt.c: New file.
17433
17434         Tests for module 'atan2'.
17435         * modules/atan2-tests: New file.
17436         * tests/test-atan2.c: New file.
17437
17438         Tests for module 'atan'.
17439         * modules/atan-tests: New file.
17440         * tests/test-atan.c: New file.
17441
17442         Tests for module 'asin'.
17443         * modules/asin-tests: New file.
17444         * tests/test-asin.c: New file.
17445
17446         Tests for module 'acos'.
17447         * modules/acos-tests: New file.
17448         * tests/test-acos.c: New file.
17449
17450 2010-01-24  Bruno Haible  <bruno@clisp.org>
17451
17452         Fix tests for common <math.h> functions.
17453         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
17454         code snippet that references the function pointer, rather than merely
17455         calling the function. Substitute the FUNC_LIBM variable.
17456         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
17457         * modules/acos (configure.ac): Likewise.
17458         * modules/asin (configure.ac): Likewise.
17459         * modules/atan (configure.ac): Likewise.
17460         * modules/atan2 (configure.ac): Likewise.
17461         * modules/cbrt (configure.ac): Likewise.
17462         * modules/copysign (configure.ac): Likewise.
17463         * modules/cos (configure.ac): Likewise.
17464         * modules/cosh (configure.ac): Likewise.
17465         * modules/erf (configure.ac): Likewise.
17466         * modules/erfc (configure.ac): Likewise.
17467         * modules/exp (configure.ac): Likewise.
17468         * modules/fabs (configure.ac): Likewise.
17469         * modules/fmod (configure.ac): Likewise.
17470         * modules/hypot (configure.ac): Likewise.
17471         * modules/j0 (configure.ac): Likewise.
17472         * modules/j1 (configure.ac): Likewise.
17473         * modules/jn (configure.ac): Likewise.
17474         * modules/ldexp (configure.ac): Likewise.
17475         * modules/lgamma (configure.ac): Likewise.
17476         * modules/log (configure.ac): Likewise.
17477         * modules/log10 (configure.ac): Likewise.
17478         * modules/log1p (configure.ac): Likewise.
17479         * modules/logb (configure.ac): Likewise.
17480         * modules/modf (configure.ac): Likewise.
17481         * modules/nextafter (configure.ac): Likewise.
17482         * modules/pow (configure.ac): Likewise.
17483         * modules/remainder (configure.ac): Likewise.
17484         * modules/rint (configure.ac): Likewise.
17485         * modules/sin (configure.ac): Likewise.
17486         * modules/sinh (configure.ac): Likewise.
17487         * modules/tan (configure.ac): Likewise.
17488         * modules/tanh (configure.ac): Likewise.
17489         * modules/y0 (configure.ac): Likewise.
17490         * modules/y1 (configure.ac): Likewise.
17491         * modules/yn (configure.ac): Likewise.
17492
17493 2010-01-24  Bruno Haible  <bruno@clisp.org>
17494
17495         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
17496         * tests/test-acosl.c (x): New variable.
17497         (main): Store argument in x and fetch it from x.
17498         * tests/test-asinl.c (x): New variable.
17499         (main): Store argument in x and fetch it from x.
17500         * tests/test-atanl.c (x): New variable.
17501         (main): Store argument in x and fetch it from x.
17502         * tests/test-cosl.c (x): New variable.
17503         (main): Store argument in x and fetch it from x.
17504         * tests/test-expl.c (x): New variable.
17505         (main): Store argument in x and fetch it from x.
17506         * tests/test-logl.c (x): New variable.
17507         (main): Store argument in x and fetch it from x.
17508         * tests/test-sinl.c (x): New variable.
17509         (main): Store argument in x and fetch it from x.
17510         * tests/test-sqrtl.c (x): New variable.
17511         (main): Store argument in x and fetch it from x.
17512         * tests/test-tanl.c (x): New variable.
17513         (main): Store argument in x and fetch it from x.
17514
17515 2010-01-24  Bruno Haible  <bruno@clisp.org>
17516
17517         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
17518         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
17519         assignments to the initial TESTS_ENVIRONMENT.
17520         * doc/gnulib.texi (Unit test modules): Document it.
17521         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
17522         TESTS_ENVIRONMENT.
17523         * modules/btowc-tests (Makefile.am): Likewise.
17524         * modules/c-stack-tests (Makefile.am): Likewise.
17525         * modules/c-strcase-tests (Makefile.am): Likewise.
17526         * modules/copy-file-tests (Makefile.am): Likewise.
17527         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
17528         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
17529         * modules/mbrtowc-tests (Makefile.am): Likewise.
17530         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17531         * modules/mbscasestr-tests (Makefile.am): Likewise.
17532         * modules/mbschr-tests (Makefile.am): Likewise.
17533         * modules/mbscspn-tests (Makefile.am): Likewise.
17534         * modules/mbsinit-tests (Makefile.am): Likewise.
17535         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17536         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
17537         * modules/mbspbrk-tests (Makefile.am): Likewise.
17538         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17539         * modules/mbsrchr-tests (Makefile.am): Likewise.
17540         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
17541         * modules/mbsspn-tests (Makefile.am): Likewise.
17542         * modules/mbsstr-tests (Makefile.am): Likewise.
17543         * modules/nl_langinfo-tests (Makefile.am): Likewise.
17544         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
17545         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17546         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17547         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17548         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17549         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
17550         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17551         * modules/wcrtomb-tests (Makefile.am): Likewise.
17552         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
17553         * modules/wcsrtombs-tests (Makefile.am): Likewise.
17554         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
17555         assignments from TESTS_ENVIRONMENT.
17556         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
17557         augmentation.
17558         * modules/argp-version-etc-tests (Makefile.am): Likewise.
17559         * modules/atexit-tests (Makefile.am): Likewise.
17560         * modules/binary-io-tests (Makefile.am): Likewise.
17561         * modules/closein-tests (Makefile.am): Likewise.
17562         * modules/dprintf-posix-tests (Makefile.am): Likewise.
17563         * modules/exclude-tests (Makefile.am): Likewise.
17564         * modules/fflush-tests (Makefile.am): Likewise.
17565         * modules/fpending-tests (Makefile.am): Likewise.
17566         * modules/fprintf-posix-tests (Makefile.am): Likewise.
17567         * modules/freadahead-tests (Makefile.am): Likewise.
17568         * modules/freadptr-tests (Makefile.am): Likewise.
17569         * modules/freadseek-tests (Makefile.am): Likewise.
17570         * modules/fseek-tests (Makefile.am): Likewise.
17571         * modules/fseeko-tests (Makefile.am): Likewise.
17572         * modules/ftell-tests (Makefile.am): Likewise.
17573         * modules/ftello-tests (Makefile.am): Likewise.
17574         * modules/idpriv-drop-tests (Makefile.am): Likewise.
17575         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
17576         * modules/lseek-tests (Makefile.am): Likewise.
17577         * modules/parse-duration-tests (Makefile.am): Likewise.
17578         * modules/perror-tests (Makefile.am): Likewise.
17579         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
17580         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
17581         * modules/pipe-tests (Makefile.am): Likewise.
17582         * modules/pread-tests (Makefile.am): Likewise.
17583         * modules/printf-posix-tests (Makefile.am): Likewise.
17584         * modules/select-tests (Makefile.am): Likewise.
17585         * modules/sigpipe-tests (Makefile.am): Likewise.
17586         * modules/tsearch-tests (Makefile.am): Likewise.
17587         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
17588         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
17589         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17590         * modules/uniwidth/width-tests (Makefile.am): Likewise.
17591         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
17592         * modules/version-etc-tests (Makefile.am): Likewise.
17593         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17594         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17595         * modules/xalloc-die-tests (Makefile.am): Likewise.
17596         * modules/xprintf-posix-tests (Makefile.am): Likewise.
17597         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17598         * modules/xstrtol-tests (Makefile.am): Likewise.
17599         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17600         * modules/yesno-tests (Makefile.am): Likewise.
17601         Suggested by Jim Meyering.
17602
17603 2010-01-24  Bruno Haible  <bruno@clisp.org>
17604
17605         More documentation.
17606         * doc/gnulib.texi (Writing modules): New chapter.
17607         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
17608         the new chapter.
17609
17610 2010-01-24  Jim Meyering  <meyering@redhat.com>
17611
17612         maint.mk: do not prepend "./" after filtering
17613         * top/maint.mk (_prepend_srcdir_prefix): New variable
17614         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
17615         "./" when $(srcdir) is ".".
17616
17617         define STREQ(a,b) consistently, removing useless parentheses
17618         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
17619         since the only risk is that "a" or "b" contains an unparenthesized
17620         comma, but if either did that, STREQ would have 3 or more arguments.
17621         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
17622         * lib/fts.c (STREQ): Remove unnecessary parentheses.
17623         * lib/hash-triple.c (STREQ): Likewise.
17624         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
17625         * lib/getugroups.c (STREQ): Likewise.
17626
17627 2010-01-23  Jim Meyering  <meyering@redhat.com>
17628
17629         maint.mk: fix syntax-check in a non-srcdir build directory
17630         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
17631         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
17632
17633 2010-01-22  Jim Meyering  <meyering@redhat.com>
17634
17635         userspec: add unit tests
17636         * tests/test-userspec.c: New file.
17637         * modules/userspec-tests: Likewise.
17638
17639 2010-01-21  Jim Meyering  <meyering@redhat.com>
17640
17641         maint.mk: handle source file names containing "." robustly
17642         * top/maint.mk (_dot_escaped_srcdir): Define.
17643         (VC_LIST): Use it in LHS of sed substitution.
17644
17645 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
17646
17647         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
17648         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
17649         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
17650         from a non-srcdir build.
17651
17652 2010-01-20  Eric Blake  <ebb9@byu.net>
17653
17654         warn-on-use: use instead of link-warning
17655         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
17656         * modules/unistd (Depends-on, Makefile.am): Likewise.
17657         * modules/arpa_inet (Depends-on): Replace link-warning with
17658         warn-on-use.
17659         (Makefile.am): Update rules accordingly.
17660         * modules/ctype (Depends-on, Makefile.am): Likewise.
17661         * modules/dirent (Depends-on, Makefile.am): Likewise.
17662         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
17663         * modules/inttypes (Depends-on, Makefile.am): Likewise.
17664         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17665         * modules/locale (Depends-on, Makefile.am): Likewise.
17666         * modules/math (Depends-on, Makefile.am): Likewise.
17667         * modules/search (Depends-on, Makefile.am): Likewise.
17668         * modules/signal (Depends-on, Makefile.am): Likewise.
17669         * modules/spawn (Depends-on, Makefile.am): Likewise.
17670         * modules/stdlib (Depends-on, Makefile.am): Likewise.
17671         * modules/string (Depends-on, Makefile.am): Likewise.
17672         * modules/strings (Depends-on, Makefile.am): Likewise.
17673         * modules/sys_file (Depends-on, Makefile.am): Likewise.
17674         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
17675         * modules/sys_select (Depends-on, Makefile.am): Likewise.
17676         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
17677         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
17678         * modules/sys_times (Depends-on, Makefile.am): Likewise.
17679         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17680         * modules/wchar (Depends-on, Makefile.am): Likewise.
17681         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
17682         should be poisoned.
17683         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
17684         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
17685         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
17686         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17687         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17688         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17689         * m4/math_h.m4 (gl_MATH_H): Likewise.
17690         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17691         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
17692         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17693         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
17694         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
17695         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
17696         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
17697         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
17698         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17699         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17700         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17701         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
17702         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17703         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17704         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17705         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17706         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
17707         GL_LINK_WARNING.
17708         * lib/ctype.in.h: Likewise.
17709         * lib/dirent.in.h: Likewise.
17710         * lib/fcntl.in.h: Likewise.
17711         * lib/inttypes.in.h: Likewise.
17712         * lib/langinfo.in.h: Likewise.
17713         * lib/locale.in.h: Likewise.
17714         * lib/math.in.h: Likewise.
17715         * lib/search.in.h: Likewise.
17716         * lib/signal.in.h: Likewise.
17717         * lib/spawn.in.h: Likewise.
17718         * lib/stdio.in.h: Likewise.
17719         * lib/stdlib.in.h: Likewise.
17720         * lib/string.in.h: Likewise.
17721         * lib/strings.in.h: Likewise.
17722         * lib/sys_file.in.h: Likewise.
17723         * lib/sys_ioctl.in.h: Likewise.
17724         * lib/sys_select.in.h: Likewise.
17725         * lib/sys_socket.in.h: Likewise.
17726         * lib/sys_stat.in.h: Likewise.
17727         * lib/sys_times.in.h: Likewise.
17728         * lib/sys_utsname.in.h: Likewise.
17729         * lib/unistd.in.h: Likewise.
17730         * lib/wchar.in.h: Likewise.
17731
17732 2010-01-20  Bruno Haible  <bruno@clisp.org>
17733
17734         Avoid duplicate -lm.
17735         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
17736         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
17737         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
17738         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
17739         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
17740         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
17741         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
17742         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
17743         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
17744         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
17745         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
17746         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17747         Reported by Paolo Bonzini.
17748
17749 2010-01-19  Bruno Haible  <bruno@clisp.org>
17750
17751         langinfo, nl_langinfo: Relicense under LGPLv2+.
17752         * modules/langinfo (License): Change to LGPLv2+.
17753         * modules/nl_langinfo (License): Likewise.
17754         Patch by David Lutterkort <lutter@redhat.com>.
17755
17756 2010-01-19  Bruno Haible  <bruno@clisp.org>
17757
17758         Avoid compilation error with cc on OSF/1 5.1.
17759         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
17760         statement, not before.
17761         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17762
17763 2010-01-18  Bruno Haible  <bruno@clisp.org>
17764
17765         Avoid a link error due to the __printf__ symbol.
17766         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
17767         and 2.6.x.
17768         (__format__, __printf__): Remove definitions.
17769         * lib/argp-fmtstream.h: Likewise.
17770         * lib/argp.h: Likewise.
17771         * lib/error.h: Likewise.
17772         * lib/vasnprintf.h: Likewise.
17773         * lib/xprintf.h: Likewise.
17774         * lib/xvasprintf.h: Likewise.
17775         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17776
17777 2010-01-18  Bruno Haible  <bruno@clisp.org>
17778
17779         Tests for module 'tanl'.
17780         * modules/tanl-tests: New file.
17781         * tests/test-tanl.c: New file.
17782
17783         Tests for module 'sqrtl'.
17784         * modules/sqrtl-tests: New file.
17785         * tests/test-sqrtl.c: New file.
17786
17787         Tests for module 'sinl'.
17788         * modules/sinl-tests: New file.
17789         * tests/test-sinl.c: New file.
17790
17791         Tests for module 'logl'.
17792         * modules/logl-tests: New file.
17793         * tests/test-logl.c: New file.
17794
17795         Tests for module 'expl'.
17796         * modules/expl-tests: New file.
17797         * tests/test-expl.c: New file.
17798
17799         Tests for module 'cosl'.
17800         * modules/cosl-tests: New file.
17801         * tests/test-cosl.c: New file.
17802
17803         Tests for module 'atanl'.
17804         * modules/atanl-tests: New file.
17805         * tests/test-atanl.c: New file.
17806
17807         Tests for module 'asinl'.
17808         * modules/asinl-tests: New file.
17809         * tests/test-asinl.c: New file.
17810
17811         Tests for module 'acosl'.
17812         * modules/acosl-tests: New file.
17813         * tests/test-acosl.c: New file.
17814
17815         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17816         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
17817         tanl): Use the standard gnulib idiom.
17818         * lib/cosl.c: Don't include trigl.c and sincosl.c.
17819         * lib/sinl.c: Likewise.
17820         * lib/tanl.c: Don't include trigl.c.
17821         (kernel_tanl): Make static.
17822         * lib/sincosl.c: Include trigl.h first.
17823         * lib/trigl.c: Likewise.
17824         * m4/acosl.m4: New file.
17825         * m4/asinl.m4: New file.
17826         * m4/atanl.m4: New file.
17827         * m4/cosl.m4: New file.
17828         * m4/expl.m4: New file.
17829         * m4/logl.m4: New file.
17830         * m4/sinl.m4: New file.
17831         * m4/sqrtl.m4: New file.
17832         * m4/tanl.m4: New file.
17833         * m4/mathl.m4: Remove file.
17834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
17835         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17836         Don't initialize GNULIB_MATHL.
17837         * modules/acosl: New file.
17838         * modules/asinl: New file.
17839         * modules/atanl: New file.
17840         * modules/cosl: New file.
17841         * modules/expl: New file.
17842         * modules/logl: New file.
17843         * modules/sinl: New file.
17844         * modules/sqrtl: New file.
17845         * modules/tanl: New file.
17846         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
17847         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
17848         substitute GNULIB_MATHL.
17849         * modules/mathl: Rewritten.
17850         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
17851         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
17852         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
17853         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
17854         * doc/posix-functions/expl.texi: Mention the 'expl' module.
17855         * doc/posix-functions/logl.texi: Mention the 'logl' module.
17856         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
17857         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
17858         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
17859
17860 2010-01-18  Bruno Haible  <bruno@clisp.org>
17861
17862         sqrt: Make gl_FUNC_SQRT requirable.
17863         * m4/sqrt.m4: New file.
17864         * modules/sqrt (Files): Add it.
17865         (configure.ac): Invoke gl_FUNC_SQRT.
17866
17867 2010-01-18  Bruno Haible  <bruno@clisp.org>
17868
17869         New modules for common <math.h> functions.
17870         * m4/mathfunc.m4: New file.
17871         * modules/acos: New file.
17872         * modules/asin: New file.
17873         * modules/atan: New file.
17874         * modules/atan2: New file.
17875         * modules/cbrt: New file.
17876         * modules/copysign: New file.
17877         * modules/cos: New file.
17878         * modules/cosh: New file.
17879         * modules/erf: New file.
17880         * modules/erfc: New file.
17881         * modules/exp: New file.
17882         * modules/fabs: New file.
17883         * modules/fmod: New file.
17884         * modules/hypot: New file.
17885         * modules/j0: New file.
17886         * modules/j1: New file.
17887         * modules/jn: New file.
17888         * modules/ldexp: New file.
17889         * modules/lgamma: New file.
17890         * modules/log: New file.
17891         * modules/log10: New file.
17892         * modules/log1p: New file.
17893         * modules/logb: New file.
17894         * modules/modf: New file.
17895         * modules/nextafter: New file.
17896         * modules/pow: New file.
17897         * modules/remainder: New file.
17898         * modules/rint: New file.
17899         * modules/sin: New file.
17900         * modules/sinh: New file.
17901         * modules/sqrt: New file.
17902         * modules/tan: New file.
17903         * modules/tanh: New file.
17904         * modules/y0: New file.
17905         * modules/y1: New file.
17906         * modules/yn: New file.
17907         * doc/posix-functions/acos.texi: Mention the 'acos' module.
17908         * doc/posix-functions/asin.texi: Mention the 'asin' module.
17909         * doc/posix-functions/atan.texi: Mention the 'atan' module.
17910         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
17911         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
17912         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
17913         * doc/posix-functions/cos.texi: Mention the 'cos' module.
17914         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
17915         * doc/posix-functions/erf.texi: Mention the 'erf' module.
17916         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
17917         * doc/posix-functions/exp.texi: Mention the 'exp' module.
17918         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
17919         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
17920         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
17921         * doc/posix-functions/j0.texi: Mention the 'j0' module.
17922         * doc/posix-functions/j1.texi: Mention the 'j1' module.
17923         * doc/posix-functions/jn.texi: Mention the 'jn' module.
17924         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
17925         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
17926         * doc/posix-functions/log.texi: Mention the 'log' module.
17927         * doc/posix-functions/log10.texi: Mention the 'log10' module.
17928         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
17929         * doc/posix-functions/logb.texi: Mention the 'logb' module.
17930         * doc/posix-functions/modf.texi: Mention the 'modf' module.
17931         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
17932         * doc/posix-functions/pow.texi: Mention the 'pow' module.
17933         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
17934         * doc/posix-functions/rint.texi: Mention the 'rint' module.
17935         * doc/posix-functions/sin.texi: Mention the 'sin' module.
17936         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
17937         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
17938         * doc/posix-functions/tan.texi: Mention the 'tan' module.
17939         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
17940         * doc/posix-functions/y0.texi: Mention the 'y0' module.
17941         * doc/posix-functions/y1.texi: Mention the 'y1' module.
17942         * doc/posix-functions/yn.texi: Mention the 'yn' module.
17943
17944 2010-01-18  Jim Meyering  <meyering@redhat.com>
17945
17946         ignore-value: relax license to LGPLv2+
17947         * modules/ignore-value (License): Relax to LGPLv2+.
17948
17949         getdate: don't leak when TZ contains two or more '"'s
17950         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
17951         double quote in TZ after the first one.
17952
17953         readtokens: do not leak internal token_lengths buffer
17954         * lib/readtokens.c (readtokens): Free the local, lengths,
17955         when the supplied "token_lengths" parameter is NULL.
17956
17957 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17958
17959         Fix a couple of missing LIBTHREAD link failures on AIX.
17960         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
17961         $(LIBTHREAD).
17962         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
17963
17964         Link test-poll against INET_PTON_LIB.
17965         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
17966         for inet_pton on Solaris 10.
17967
17968 2010-01-17  Bruno Haible  <bruno@clisp.org>
17969
17970         unistdio/*-sprintf: Fix typo in module description.
17971         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
17972         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
17973         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
17974         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
17975         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
17976         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
17977         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
17978         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17979
17980 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17981
17982         gnulib-tool: fix filelist for AIX, HP-UX ksh.
17983         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
17984         variables in shell case patterns, for AIX and HP-UX ksh.
17985
17986         Split large sed scripts, for HP-UX sed.
17987         * modules/stdio: Split sed scripts around 50 sed commands,
17988         to avoid HP-UX limit of 99 commands, in the near future.
17989         * modules/string: Likewise.
17990         * modules/unistd: Likewise.
17991
17992         gnulib-tool: avoid writing in the current directory.
17993         * gnulib-tool (func_emit_lib_Makefile_am)
17994         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
17995         not in the current directory, so concurrent gnulib-tool
17996         instances do not interfere.
17997
17998 2010-01-16  Jim Meyering  <meyering@redhat.com>
17999
18000         doc: update users.txt
18001         * users.txt: Add grep.
18002         (diffutils, gzip): Update URLs.
18003
18004 2010-01-12  Bruno Haible  <bruno@clisp.org>
18005
18006         posix_spawn: Avoid test failure on Cygwin.
18007         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
18008         characters.
18009         Reported by Simon Josefsson.
18010
18011 2010-01-12  Bruno Haible  <bruno@clisp.org>
18012
18013         * tests/test-cond.c (main): When skipping the test, show the reason.
18014
18015 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18016
18017         * lib/striconv.c (str_cd_iconv): Avoid if before free.
18018
18019 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18020
18021         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
18022         VC_LIST_ALWAYS_EXCLUDE_REGEX.
18023
18024 2010-01-12  Eric Blake  <ebb9@byu.net>
18025
18026         build: guarantee AS_VAR_IF
18027         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
18028         (gl_AS_VAR_IF): Move...
18029         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
18030         Reported by Simon Josefsson.
18031
18032 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18033
18034         * lib/stdio.in.h: Fix typo.
18035
18036 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18037
18038         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
18039         libgpg-error.
18040
18041 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18042
18043         * tests/test-xalloc-die.sh: Use $EXEEXT.
18044
18045 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18046             Bruno Haible  <bruno@clisp.org>
18047
18048         getlogin, getlogin_r: Avoid test failure.
18049         * tests/test-getlogin.c: Include <stdio.h>.
18050         (main): Skip the test when the function fails because stdin is not a
18051         tty.
18052         * tests/test-getlogin_r.c: Include <stdio.h>.
18053         (main): Skip the test when the function fails because stdin is not a
18054         tty.
18055
18056 2010-01-11  Eric Blake  <ebb9@byu.net>
18057
18058         tests: avoid more large file warnings
18059         * tests/test-fflush.c: Avoid warning about ftell use.
18060         * tests/test-fseek.c: Avoid warning about fseek use.
18061
18062 2010-01-10  Bruno Haible  <bruno@clisp.org>
18063
18064         nproc: Work better on Linux when /proc and /sys are not mounted.
18065         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
18066         as lower bound when, on glibc/Linux systems,
18067         sysconf (_SC_NPROCESSORS_CONF) returns 1.
18068         Suggested by Pádraig Brady <P@draigbrady.com>.
18069         Reported by Dmitry V. Levin <ldv@altlinux.org>.
18070
18071         nproc: Refactor.
18072         * lib/nproc.c (num_processors_via_affinity_mask): New function,
18073         extracted from num_processors.
18074         (num_processors): Call it.
18075
18076 2010-01-11  Jim Meyering  <meyering@redhat.com>
18077
18078         utimecmp: avoid new warning from upcoming gcc-4.5.0
18079         * lib/utimecmp.c (BILLION): Define using #define rather than an
18080         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
18081
18082 2010-01-11  Eric Blake  <ebb9@byu.net>
18083
18084         math: add portability warnings for classification macros
18085         * modules/math (Depends-on): Add warn-on-use.
18086         (Makefile.am): Provide new substitutions.
18087         * m4/math_h.m4 (gl_MATH_H): Require inline.
18088         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
18089         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
18090         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
18091         implement warnings.
18092
18093         unistd: warn on use of environ without module
18094         * modules/unistd (Depends-on): Add warn-on-use.
18095         (Makefile.am): Provide new substitutions.
18096         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
18097         * lib/unistd.in.h (environ): Wrap with a warning helper function.
18098
18099         stdio: warn on suspicious uses
18100         * modules/stdio (Depends-on): Add warn-on-use.
18101         (Makefile.am): Provide new substitutions.
18102         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
18103         fseeko.
18104         * lib/stdio.in.h (gets): Always warn on use.
18105         (fseek, ftell): Adjust when warnings are issued, and honor
18106         _GL_NO_LARGE_FILES as a way to silence the warning.
18107         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
18108         any warning about large file offsets.
18109         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
18110         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
18111         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
18112         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
18113         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
18114         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
18115         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
18116         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
18117
18118         warn-on-use: new module
18119         * modules/warn-on-use: New file.
18120         * build-aux/warn-on-use.h: Likewise.
18121         * m4/warn-on-use.m4: Likewise.
18122         * MODULES.html.sh (Support for building): Mention it.
18123
18124 2010-01-10  Bruno Haible  <bruno@clisp.org>
18125
18126         Tests for module 'unistr/u32-strdup'.
18127         * modules/unistr/u32-strdup-tests: New file.
18128         * tests/unistr/test-u32-strdup.c: New file.
18129
18130         Tests for module 'unistr/u16-strdup'.
18131         * modules/unistr/u16-strdup-tests: New file.
18132         * tests/unistr/test-u16-strdup.c: New file.
18133
18134         Tests for module 'unistr/u8-strdup'.
18135         * modules/unistr/u8-strdup-tests: New file.
18136         * tests/unistr/test-u8-strdup.c: New file.
18137         * tests/unistr/test-strdup.h: New file.
18138
18139         Tests for module 'unistr/u32-strncmp'.
18140         * modules/unistr/u32-strncmp-tests: New file.
18141         * tests/unistr/test-u32-strncmp.c: New file.
18142
18143         Tests for module 'unistr/u16-strncmp'.
18144         * modules/unistr/u16-strncmp-tests: New file.
18145         * tests/unistr/test-u16-strncmp.c: New file.
18146
18147         Tests for module 'unistr/u8-strncmp'.
18148         * modules/unistr/u8-strncmp-tests: New file.
18149         * tests/unistr/test-u8-strncmp.c: New file.
18150         * tests/unistr/test-strncmp.h: New file.
18151
18152         Tests for module 'unistr/u32-strcoll'.
18153         * modules/unistr/u32-strcoll-tests: New file.
18154         * tests/unistr/test-u32-strcoll.c: New file.
18155
18156         Tests for module 'unistr/u16-strcoll'.
18157         * modules/unistr/u16-strcoll-tests: New file.
18158         * tests/unistr/test-u16-strcoll.c: New file.
18159
18160         Tests for module 'unistr/u8-strcoll'.
18161         * modules/unistr/u8-strcoll-tests: New file.
18162         * tests/unistr/test-u8-strcoll.c: New file.
18163
18164         Tests for module 'unistr/u32-strcmp'.
18165         * modules/unistr/u32-strcmp-tests: New file.
18166         * tests/unistr/test-u32-strcmp.c: New file.
18167         * tests/unistr/test-u32-strcmp.h: New file.
18168
18169         Tests for module 'unistr/u16-strcmp'.
18170         * modules/unistr/u16-strcmp-tests: New file.
18171         * tests/unistr/test-u16-strcmp.c: New file.
18172         * tests/unistr/test-u16-strcmp.h: New file.
18173
18174         Tests for module 'unistr/u8-strcmp'.
18175         * modules/unistr/u8-strcmp-tests: New file.
18176         * tests/unistr/test-u8-strcmp.c: New file.
18177         * tests/unistr/test-u8-strcmp.h: New file.
18178         * tests/unistr/test-strcmp.h: New file.
18179
18180         Tests for module 'unistr/u32-strncat'.
18181         * modules/unistr/u32-strncat-tests: New file.
18182         * tests/unistr/test-u32-strncat.c: New file.
18183
18184         Tests for module 'unistr/u16-strncat'.
18185         * modules/unistr/u16-strncat-tests: New file.
18186         * tests/unistr/test-u16-strncat.c: New file.
18187
18188         Tests for module 'unistr/u8-strncat'.
18189         * modules/unistr/u8-strncat-tests: New file.
18190         * tests/unistr/test-u8-strncat.c: New file.
18191         * tests/unistr/test-strncat.h: New file.
18192
18193         Tests for module 'unistr/u32-strcat'.
18194         * modules/unistr/u32-strcat-tests: New file.
18195         * tests/unistr/test-u32-strcat.c: New file.
18196
18197         Tests for module 'unistr/u16-strcat'.
18198         * modules/unistr/u16-strcat-tests: New file.
18199         * tests/unistr/test-u16-strcat.c: New file.
18200
18201         Tests for module 'unistr/u8-strcat'.
18202         * modules/unistr/u8-strcat-tests: New file.
18203         * tests/unistr/test-u8-strcat.c: New file.
18204         * tests/unistr/test-strcat.h: New file.
18205
18206         Tests for module 'unistr/u32-stpncpy'.
18207         * modules/unistr/u32-stpncpy-tests: New file.
18208         * tests/unistr/test-u32-stpncpy.c: New file.
18209
18210         Tests for module 'unistr/u16-stpncpy'.
18211         * modules/unistr/u16-stpncpy-tests: New file.
18212         * tests/unistr/test-u16-stpncpy.c: New file.
18213
18214         Tests for module 'unistr/u8-stpncpy'.
18215         * modules/unistr/u8-stpncpy-tests: New file.
18216         * tests/unistr/test-u8-stpncpy.c: New file.
18217         * tests/unistr/test-stpncpy.h: New file.
18218
18219         Tests for module 'unistr/u32-strncpy'.
18220         * modules/unistr/u32-strncpy-tests: New file.
18221         * tests/unistr/test-u32-strncpy.c: New file.
18222
18223         Tests for module 'unistr/u16-strncpy'.
18224         * modules/unistr/u16-strncpy-tests: New file.
18225         * tests/unistr/test-u16-strncpy.c: New file.
18226
18227         Tests for module 'unistr/u8-strncpy'.
18228         * modules/unistr/u8-strncpy-tests: New file.
18229         * tests/unistr/test-u8-strncpy.c: New file.
18230         * tests/unistr/test-strncpy.h: New file.
18231
18232         Tests for module 'unistr/u32-stpcpy'.
18233         * modules/unistr/u32-stpcpy-tests: New file.
18234         * tests/unistr/test-u32-stpcpy.c: New file.
18235
18236         Tests for module 'unistr/u16-stpcpy'.
18237         * modules/unistr/u16-stpcpy-tests: New file.
18238         * tests/unistr/test-u16-stpcpy.c: New file.
18239
18240         Tests for module 'unistr/u8-stpcpy'.
18241         * modules/unistr/u8-stpcpy-tests: New file.
18242         * tests/unistr/test-u8-stpcpy.c: New file.
18243         * tests/unistr/test-stpcpy.h: New file.
18244
18245         Tests for module 'unistr/u32-strcpy'.
18246         * modules/unistr/u32-strcpy-tests: New file.
18247         * tests/unistr/test-u32-strcpy.c: New file.
18248
18249         Tests for module 'unistr/u16-strcpy'.
18250         * modules/unistr/u16-strcpy-tests: New file.
18251         * tests/unistr/test-u16-strcpy.c: New file.
18252
18253         Tests for module 'unistr/u8-strcpy'.
18254         * modules/unistr/u8-strcpy-tests: New file.
18255         * tests/unistr/test-u8-strcpy.c: New file.
18256         * tests/unistr/test-strcpy.h: New file.
18257
18258         Tests for module 'unistr/u32-strnlen'.
18259         * modules/unistr/u32-strnlen-tests: New file.
18260         * tests/unistr/test-u32-strnlen.c: New file.
18261
18262         Tests for module 'unistr/u16-strnlen'.
18263         * modules/unistr/u16-strnlen-tests: New file.
18264         * tests/unistr/test-u16-strnlen.c: New file.
18265
18266         Tests for module 'unistr/u8-strnlen'.
18267         * modules/unistr/u8-strnlen-tests: New file.
18268         * tests/unistr/test-u8-strnlen.c: New file.
18269         * tests/unistr/test-strnlen.h: New file.
18270
18271         Tests for module 'unistr/u32-strlen'.
18272         * modules/unistr/u32-strlen-tests: New file.
18273         * tests/unistr/test-u32-strlen.c: New file.
18274
18275         Tests for module 'unistr/u16-strlen'.
18276         * modules/unistr/u16-strlen-tests: New file.
18277         * tests/unistr/test-u16-strlen.c: New file.
18278
18279         Tests for module 'unistr/u8-strlen'.
18280         * modules/unistr/u8-strlen-tests: New file.
18281         * tests/unistr/test-u8-strlen.c: New file.
18282
18283         Tests for module 'unistr/u32-prev'.
18284         * modules/unistr/u32-prev-tests: New file.
18285         * tests/unistr/test-u32-prev.c: New file.
18286
18287         Tests for module 'unistr/u16-prev'.
18288         * modules/unistr/u16-prev-tests: New file.
18289         * tests/unistr/test-u16-prev.c: New file.
18290
18291         Tests for module 'unistr/u8-prev'.
18292         * modules/unistr/u8-prev-tests: New file.
18293         * tests/unistr/test-u8-prev.c: New file.
18294
18295         Tests for module 'unistr/u32-next'.
18296         * modules/unistr/u32-next-tests: New file.
18297         * tests/unistr/test-u32-next.c: New file.
18298
18299         Tests for module 'unistr/u16-next'.
18300         * modules/unistr/u16-next-tests: New file.
18301         * tests/unistr/test-u16-next.c: New file.
18302
18303         Tests for module 'unistr/u8-next'.
18304         * modules/unistr/u8-next-tests: New file.
18305         * tests/unistr/test-u8-next.c: New file.
18306
18307         Tests for module 'unistr/u32-strmbtouc'.
18308         * modules/unistr/u32-strmbtouc-tests: New file.
18309         * tests/unistr/test-u32-strmbtouc.c: New file.
18310
18311         Tests for module 'unistr/u16-strmbtouc'.
18312         * modules/unistr/u16-strmbtouc-tests: New file.
18313         * tests/unistr/test-u16-strmbtouc.c: New file.
18314
18315         Tests for module 'unistr/u8-strmbtouc'.
18316         * modules/unistr/u8-strmbtouc-tests: New file.
18317         * tests/unistr/test-u8-strmbtouc.c: New file.
18318
18319         Tests for module 'unistr/u32-strmblen'.
18320         * modules/unistr/u32-strmblen-tests: New file.
18321         * tests/unistr/test-u32-strmblen.c: New file.
18322
18323         Tests for module 'unistr/u16-strmblen'.
18324         * modules/unistr/u16-strmblen-tests: New file.
18325         * tests/unistr/test-u16-strmblen.c: New file.
18326
18327         Tests for module 'unistr/u8-strmblen'.
18328         * modules/unistr/u8-strmblen-tests: New file.
18329         * tests/unistr/test-u8-strmblen.c: New file.
18330
18331         Tests for module 'unistr/u32-cpy-alloc'.
18332         * modules/unistr/u32-cpy-alloc-tests: New file.
18333         * tests/unistr/test-u32-cpy-alloc.c: New file.
18334
18335         Tests for module 'unistr/u16-cpy-alloc'.
18336         * modules/unistr/u16-cpy-alloc-tests: New file.
18337         * tests/unistr/test-u16-cpy-alloc.c: New file.
18338
18339         Tests for module 'unistr/u8-cpy-alloc'.
18340         * modules/unistr/u8-cpy-alloc-tests: New file.
18341         * tests/unistr/test-u8-cpy-alloc.c: New file.
18342         * tests/unistr/test-cpy-alloc.h: New file.
18343
18344         Tests for module 'unistr/u32-mbsnlen'.
18345         * modules/unistr/u32-mbsnlen-tests: New file.
18346         * tests/unistr/test-u32-mbsnlen.c: New file.
18347
18348         Tests for module 'unistr/u16-mbsnlen'.
18349         * modules/unistr/u16-mbsnlen-tests: New file.
18350         * tests/unistr/test-u16-mbsnlen.c: New file.
18351
18352         Tests for module 'unistr/u8-mbsnlen'.
18353         * modules/unistr/u8-mbsnlen-tests: New file.
18354         * tests/unistr/test-u8-mbsnlen.c: New file.
18355
18356         Tests for module 'unistr/u32-chr'.
18357         * modules/unistr/u32-chr-tests: New file.
18358         * tests/unistr/test-u32-chr.c: New file.
18359
18360         Tests for module 'unistr/u16-chr'.
18361         * modules/unistr/u16-chr-tests: New file.
18362         * tests/unistr/test-u16-chr.c: New file.
18363
18364         Tests for module 'unistr/u8-chr'.
18365         * modules/unistr/u8-chr-tests: New file.
18366         * tests/unistr/test-u8-chr.c: New file.
18367         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
18368
18369         Tests for module 'unistr/u32-cmp2'.
18370         * modules/unistr/u32-cmp2-tests: New file.
18371         * tests/unistr/test-u32-cmp2.c: New file.
18372
18373         Tests for module 'unistr/u16-cmp2'.
18374         * modules/unistr/u16-cmp2-tests: New file.
18375         * tests/unistr/test-u16-cmp2.c: New file.
18376
18377         Tests for module 'unistr/u8-cmp2'.
18378         * modules/unistr/u8-cmp2-tests: New file.
18379         * tests/unistr/test-u8-cmp2.c: New file.
18380         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
18381
18382         Tests for module 'unistr/u32-cmp'.
18383         * modules/unistr/u32-cmp-tests: New file.
18384         * tests/unistr/test-u32-cmp.c: New file.
18385
18386         Tests for module 'unistr/u16-cmp'.
18387         * modules/unistr/u16-cmp-tests: New file.
18388         * tests/unistr/test-u16-cmp.c: New file.
18389
18390         Tests for module 'unistr/u8-cmp'.
18391         * modules/unistr/u8-cmp-tests: New file.
18392         * tests/unistr/test-u8-cmp.c: New file.
18393         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
18394
18395         Tests for module 'unistr/u32-set'.
18396         * modules/unistr/u32-set-tests: New file.
18397         * tests/unistr/test-u32-set.c: New file.
18398
18399         Tests for module 'unistr/u16-set'.
18400         * modules/unistr/u16-set-tests: New file.
18401         * tests/unistr/test-u16-set.c: New file.
18402
18403         Tests for module 'unistr/u8-set'.
18404         * modules/unistr/u8-set-tests: New file.
18405         * tests/unistr/test-u8-set.c: New file.
18406         * tests/unistr/test-set.h: New file.
18407
18408         Tests for module 'unistr/u32-move'.
18409         * modules/unistr/u32-move-tests: New file.
18410         * tests/unistr/test-u32-move.c: New file.
18411
18412         Tests for module 'unistr/u16-move'.
18413         * modules/unistr/u16-move-tests: New file.
18414         * tests/unistr/test-u16-move.c: New file.
18415
18416         Tests for module 'unistr/u8-move'.
18417         * modules/unistr/u8-move-tests: New file.
18418         * tests/unistr/test-u8-move.c: New file.
18419         * tests/unistr/test-move.h: New file.
18420
18421         Tests for module 'unistr/u32-cpy'.
18422         * modules/unistr/u32-cpy-tests: New file.
18423         * tests/unistr/test-u32-cpy.c: New file.
18424
18425         Tests for module 'unistr/u16-cpy'.
18426         * modules/unistr/u16-cpy-tests: New file.
18427         * tests/unistr/test-u16-cpy.c: New file.
18428
18429         Tests for module 'unistr/u8-cpy'.
18430         * modules/unistr/u8-cpy-tests: New file.
18431         * tests/unistr/test-u8-cpy.c: New file.
18432         * tests/unistr/test-cpy.h: New file.
18433
18434 2010-01-09  Bruno Haible  <bruno@clisp.org>
18435
18436         Tests for module 'unistr/u32-uctomb'.
18437         * modules/unistr/u32-uctomb-tests: New file.
18438         * tests/unistr/test-u32-uctomb.c: New file.
18439
18440         Tests for module 'unistr/u16-uctomb'.
18441         * modules/unistr/u16-uctomb-tests: New file.
18442         * tests/unistr/test-u16-uctomb.c: New file.
18443
18444         Tests for module 'unistr/u8-uctomb'.
18445         * modules/unistr/u8-uctomb-tests: New file.
18446         * tests/unistr/test-u8-uctomb.c: New file.
18447
18448         Tests for module 'unistr/u32-mbtoucr'.
18449         * modules/unistr/u32-mbtoucr-tests: New file.
18450         * tests/unistr/test-u32-mbtoucr.c: New file.
18451
18452         Tests for module 'unistr/u16-mbtoucr'.
18453         * modules/unistr/u16-mbtoucr-tests: New file.
18454         * tests/unistr/test-u16-mbtoucr.c: New file.
18455
18456         Tests for module 'unistr/u8-mbtoucr'.
18457         * modules/unistr/u8-mbtoucr-tests: New file.
18458         * tests/unistr/test-u8-mbtoucr.c: New file.
18459
18460         Tests for module 'unistr/u32-mbtouc'.
18461         * modules/unistr/u32-mbtouc-tests: New file.
18462         * tests/unistr/test-u32-mbtouc.c: New file.
18463
18464         Tests for module 'unistr/u16-mbtouc'.
18465         * modules/unistr/u16-mbtouc-tests: New file.
18466         * tests/unistr/test-u16-mbtouc.c: New file.
18467
18468         Tests for module 'unistr/u8-mbtouc'.
18469         * modules/unistr/u8-mbtouc-tests: New file.
18470         * tests/unistr/test-u8-mbtouc.c: New file.
18471
18472         Tests for module 'unistr/u32-mbtouc-unsafe'.
18473         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
18474         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
18475         * tests/unistr/test-u32-mbtouc.h: New file.
18476
18477         Tests for module 'unistr/u16-mbtouc-unsafe'.
18478         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
18479         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
18480         * tests/unistr/test-u16-mbtouc.h: New file.
18481
18482         Tests for module 'unistr/u8-mbtouc-unsafe'.
18483         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
18484         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
18485         * tests/unistr/test-u8-mbtouc.h: New file.
18486
18487         Tests for module 'unistr/u32-mblen'.
18488         * modules/unistr/u32-mblen-tests: New file.
18489         * tests/unistr/test-u32-mblen.c: New file.
18490
18491         Tests for module 'unistr/u16-mblen'.
18492         * modules/unistr/u16-mblen-tests: New file.
18493         * tests/unistr/test-u16-mblen.c: New file.
18494
18495         Tests for module 'unistr/u8-mblen'.
18496         * modules/unistr/u8-mblen-tests: New file.
18497         * tests/unistr/test-u8-mblen.c: New file.
18498
18499         Tests for module 'unistr/u32-to-u16'.
18500         * modules/unistr/u32-to-u16-tests: New file.
18501         * tests/unistr/test-u32-to-u16.c: New file.
18502
18503         Tests for module 'unistr/u32-to-u8'.
18504         * modules/unistr/u32-to-u8-tests: New file.
18505         * tests/unistr/test-u32-to-u8.c: New file.
18506
18507         Tests for module 'unistr/u16-to-u32'.
18508         * modules/unistr/u16-to-u32-tests: New file.
18509         * tests/unistr/test-u16-to-u32.c: New file.
18510
18511         Tests for module 'unistr/u16-to-u8'.
18512         * modules/unistr/u16-to-u8-tests: New file.
18513         * tests/unistr/test-u16-to-u8.c: New file.
18514
18515         Tests for module 'unistr/u8-to-u32'.
18516         * modules/unistr/u8-to-u32-tests: New file.
18517         * tests/unistr/test-u8-to-u32.c: New file.
18518
18519         Tests for module 'unistr/u8-to-u16'.
18520         * modules/unistr/u8-to-u16-tests: New file.
18521         * tests/unistr/test-u8-to-u16.c: New file.
18522
18523         Tests for module 'unistr/u32-check'.
18524         * modules/unistr/u32-check-tests: New file.
18525         * tests/unistr/test-u32-check.c: New file.
18526
18527         Tests for module 'unistr/u16-check'.
18528         * modules/unistr/u16-check-tests: New file.
18529         * tests/unistr/test-u16-check.c: New file.
18530
18531         Tests for module 'unistr/u8-check'.
18532         * modules/unistr/u8-check-tests: New file.
18533         * tests/unistr/test-u8-check.c: New file.
18534
18535         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
18536         (category_equals): New function.
18537         (main): Add more tests.
18538         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
18539
18540         * tests/unictype/test-bidi_byname.c (main): Add more tests.
18541
18542 2010-01-10  Bruno Haible  <bruno@clisp.org>
18543
18544         unistr/u*-strcoll: Try harder to distinguish different strings.
18545         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
18546         compare s1 and s2 to see if they are different.
18547
18548 2010-01-10  Bruno Haible  <bruno@clisp.org>
18549
18550         unistr/u*-stpncpy: Fix the return value.
18551         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
18552         description of the return value consistent with stpncpy in glibc.
18553         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
18554         written non-NUL unit.
18555
18556 2010-01-10  Bruno Haible  <bruno@clisp.org>
18557
18558         unistr/u*-next: Add missing dependencies.
18559         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
18560         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
18561         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
18562
18563 2010-01-10  Bruno Haible  <bruno@clisp.org>
18564
18565         unistr/u8-mbsnlen: Fix return value for incomplete character.
18566         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
18567         u8_mblen.
18568         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
18569         Remove unistr/u8-mblen.
18570         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
18571         u16_mblen.
18572         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
18573         Remove unistr/u16-mblen.
18574
18575 2010-01-10  Bruno Haible  <bruno@clisp.org>
18576
18577         wchar: Fix compilation error when <wchar.h> is used from coreutils.
18578         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
18579         Reported by Brian Gough <bjg@gnu.org> and
18580         Chris Clayton <chris2553@googlemail.com> via
18581         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
18582
18583 2010-01-09  Bruno Haible  <bruno@clisp.org>
18584
18585         unistr/u16-to-u32: Reject invalid input.
18586         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
18587         u16_mbtouc.
18588         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
18589         Remove unistr/u16-mbtouc.
18590
18591         unistr/u16-to-u8: Reject invalid input.
18592         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
18593         u16_mbtouc.
18594         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
18595         Remove unistr/u16-mbtouc.
18596
18597         unistr/u8-to-u32: Reject invalid input.
18598         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
18599         u8_mbtouc.
18600         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
18601         Remove unistr/u8-mbtouc.
18602
18603         unistr/u8-to-u16: Reject invalid input.
18604         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
18605         u8_mbtouc.
18606         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
18607         Remove unistr/u8-mbtouc.
18608
18609 2010-01-09  Bruno Haible  <bruno@clisp.org>
18610
18611         Tests for module 'getlogin'.
18612         * modules/getlogin-tests: New file.
18613         * tests/test-getlogin.c: New file.
18614
18615         New module 'getlogin'.
18616         * lib/unistd.in.h (getlogin): New declaration.
18617         * lib/getlogin.c: New file.
18618         * m4/getlogin.m4: New file.
18619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
18620         HAVE_GETLOGIN.
18621         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
18622         HAVE_GETLOGIN.
18623         * modules/getlogin: New file.
18624         * doc/posix-functions/getlogin.texi: Mention the new module.
18625         Reported by John W. Eaton <jwe@gnu.org>.
18626
18627 2010-01-09  Bruno Haible  <bruno@clisp.org>
18628
18629         getlogin_r: Support for native Windows.
18630         * lib/getlogin_r.c: Include <windows.h>
18631         (getlogin_r): Implement for native Windows.
18632         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
18633         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
18634         via John W. Eaton <jwe@gnu.org>.
18635
18636 2010-01-09  Bruno Haible  <bruno@clisp.org>
18637
18638         getlogin_r: Small fixes.
18639         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
18640         succeeds.
18641         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
18642         before testing whether getlogin_r is declared. No need to set
18643         HAVE_DECL_GETLOGIN_R to 1.
18644         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
18645
18646 2010-01-09  Bruno Haible  <bruno@clisp.org>
18647
18648         * lib/unistd.in.h (getlogin_r): Add comment.
18649
18650 2010-01-09  Bruno Haible  <bruno@clisp.org>
18651
18652         Tests for module 'getlogin_r'.
18653         * modules/getlogin_r-tests: New file.
18654         * tests/test-getlogin_r.c: New file.
18655
18656 2010-01-09  Jim Meyering  <meyering@redhat.com>
18657
18658         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
18659         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
18660         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
18661
18662 2010-01-08  Simon Josefsson  <simon@josefsson.org>
18663
18664         * lib/dup2.c (rpl_dup2): Improve comment.
18665
18666 2010-01-08  Eric Blake  <ebb9@byu.net>
18667
18668         maint.mk: allow packages to add makefile @@ exceptions
18669         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
18670         (sc_makefile_check): Rename...
18671         (sc_makefile_at_at_check): ...to this, and use hook.
18672
18673         dup2: work around mingw bug
18674         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
18675         Reported by Simon Josefsson.
18676
18677 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
18678
18679         glob: Fix C++ compilation.
18680         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
18681         C++.
18682
18683 2010-01-07  Bruno Haible  <bruno@clisp.org>
18684
18685         Fix indentation of wctype.in.h, broken since 2007-01-06.
18686         * lib/wctype.in.h: Fix indentation of preprocessor directives.
18687
18688 2010-01-07  Bruno Haible  <bruno@clisp.org>
18689
18690         mbslen: Avoid collision with system function.
18691         * lib/string.in.h [MirBSD]: Include <wchar.h>.
18692         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
18693         * m4/mbslen.m4: New file.
18694         * modules/mbslen (Files): Add it.
18695         (configure.ac): Invoke gl_MBSLEN.
18696         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
18697         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
18698         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
18699         via Ian Beckwith <ianb@erislabs.net>.
18700
18701 2010-01-07  Bruno Haible  <bruno@clisp.org>
18702
18703         dirent: Document the last fix.
18704         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
18705
18706 2010-01-07  Bruno Haible  <bruno@clisp.org>
18707
18708         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
18709         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
18710         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
18711         va_list are defined.
18712         * doc/posix-headers/stdio.texi: Document the bug of missing types.
18713         Reported by Eric Blake.
18714
18715 2010-01-07  Bruno Haible  <bruno@clisp.org>
18716
18717         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
18718         * modules/xlist (Depends-on): Add 'list',
18719         * modules/xoset (Depends-on): Add 'oset'.
18720         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18721
18722 2010-01-07  Bruno Haible  <bruno@clisp.org>
18723
18724         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
18725         * doc/posix-functions/strncasecmp.texi: Likewise.
18726
18727 2010-01-07  Bruno Haible  <bruno@clisp.org>
18728
18729         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
18730
18731 2010-01-07  John W. Eaton  <jwe@octave.org>
18732
18733         wctype: allow C++ use
18734         * lib/wctype.in.h: Add extern "C" block for C++.
18735
18736 2010-01-06  Eric Blake  <ebb9@byu.net>
18737
18738         maint.mk: detect incorrect GFDL usage
18739         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
18740
18741 2010-01-06  Jim Meyering  <meyering@redhat.com>
18742         and Eric Blake  <ebb9@byu.net>
18743
18744         maint.mk: ignore multi-line copyright in NEWS
18745         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
18746
18747 2010-01-06  Eric Blake  <ebb9@byu.net>
18748
18749         select: add missing dependency
18750         * modules/select-tests (Depends-on): Move sockets dependency...
18751         * modules/select (Depends-on): ...here.
18752         Reported by Ian Beckwith.
18753
18754         doc: regenerate INSTALL
18755         * doc/INSTALL: Reflect recent autoconf update.
18756         * doc/INSTALL.ISO: Likewise.
18757         * doc/INSTALL.UTF-8: Likewise.
18758
18759         pread: fix compilation on glibc
18760         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
18761         Reported by Ralf Wildenhues.
18762
18763         dirent: fix test failure
18764         * lib/dirent.in.h (includes): Guarantee ino_t.
18765         Reported by Ralf Wildenhues.
18766
18767 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
18768
18769         linkat, renameat: avoid bad free
18770         * lib/at-func2.c (at_func2): Fix typo.
18771         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
18772
18773 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18774
18775         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
18776         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
18777         to avoid failure of symlink test later.
18778
18779 2010-01-06  Eric Blake  <ebb9@byu.net>
18780
18781         stdio, unistd: guarantee ssize_t
18782         * lib/unistd.in.h (includes): Ensure that types required by POSIX
18783         2008 are exposed when needed.
18784         * lib/stdio.in.h (includes): Likewise.
18785         Reported by Ralf Wildenhues.
18786
18787 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
18788
18789         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
18790         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
18791         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
18792
18793 2010-01-06  Jim Meyering  <meyering@redhat.com>
18794
18795         readtokens: this module *does* require xalloc.h
18796         It uses only functions that were omitted by the old syntax-check rule.
18797         * lib/readtokens.c: Include "xalloc.h" once again.
18798         * modules/readtokens (Depends-on): Add xalloc.
18799         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
18800
18801 2010-01-05  Eric Blake  <ebb9@byu.net>
18802
18803         maint: support 'make announcement' from a VPATH build
18804         * top/maint.mk (announcement): Look for correct NEWS file.
18805
18806 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
18807
18808         utimens (fdutimens): ignore a negative FD, per contract
18809         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
18810         when we have a valid file descriptor.  Otherwise, using a brand
18811         new glibc (with just-patched futimens that now fails with EBADF)
18812         would cause this function to fail with ENOSYS.
18813         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
18814         See also http://bugzilla.redhat.com/552320.
18815
18816 2010-01-05  Eric Blake  <ebb9@byu.net>
18817
18818         strcase: document what it provides
18819         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
18820         gnulib module.
18821         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
18822         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
18823
18824 2010-01-05  Jim Meyering  <meyering@redhat.com>
18825
18826         maint: remove useless inclusions of "xalloc.h"
18827         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
18828         * lib/readtokens.c: Likewise.
18829         * lib/same.c: Likewise.
18830         * modules/getloadavg (Depends-on): Remove xalloc.
18831         * modules/readtokens: Likewise.
18832         * modules/same: Likewise.
18833
18834         maint.mk: include 4 more function names in alloca.h-checking regexp
18835         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
18836         regexp.  Before, we would give a false-positive (saying alloca.h
18837         is included unnecessarily) when the only uses involved omitted symbols.
18838
18839         xalloc.h: use consistent formatting
18840         * lib/xalloc.h: Move declarations to start in the first column.
18841
18842 2010-01-05  Eric Blake  <ebb9@byu.net>
18843
18844         mkdir: avoid xalloc
18845         * lib/mkdir.c (includes): Drop unused header.
18846         Reported by John W. Eaton.
18847
18848 2010-01-04  Jim Meyering  <meyering@redhat.com>
18849
18850         nl_langinfo: avoid configure-time syntax error
18851         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
18852         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
18853         the empty string.  Don't let that provoke a shell syntax error.
18854
18855         regcomp, regexec, fnmatch: avoid array bounds read error
18856         * lib/regcomp.c (build_equiv_class): From glibc:
18857         Use only the low 24 bits of a findidx return value as an index
18858         into the weights array.  Patch by Ulrich Drepper:
18859         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
18860         * lib/regexec.c (check_node_accept_bytes): Likewise.
18861         * lib/fnmatch_loop.c (FCT): Likewise.
18862
18863         regcomp: skip collseq lookup when there are no rules
18864         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
18865         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
18866
18867         regcomp: recognize ill-formed { } expressions
18868         * lib/regcomp.c (parse_dup_op): From glibc:
18869         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
18870
18871         regcomp: fix typo in comment
18872         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
18873         s/satisfy/satisfies/.
18874
18875         regcomp: sync from glibc: remove dead store
18876         * lib/regcomp.c (duplicate_node_closure): Remove useless
18877         search_duplicated_node call and dead store.
18878
18879         regcomp: sync from glibc; always use nl_langinfo
18880         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
18881         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
18882         * modules/regex (Depends-on): Add nl_langinfo.
18883
18884 2010-01-04  Eric Blake  <ebb9@byu.net>
18885
18886         fdopendir: fix configure test
18887         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
18888
18889 2010-01-01  Bruno Haible  <bruno@clisp.org>
18890
18891         wchar: Remove unused configure check.
18892         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
18893
18894 2010-01-01  Eric Blake  <ebb9@byu.net>
18895
18896         headers: make check of system header explicit
18897         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
18898         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18899         ourselves.
18900         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18901         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18902         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18903         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18904         internals.
18905         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
18906         missing.
18907         Suggested by Bruno Haible.
18908
18909 2010-01-01  Jim Meyering  <meyering@redhat.com>
18910
18911         ChangeLog: tweak to eliminate unnecessary copyright line
18912         * ChangeLog: Remove a copyright line that was mistakenly updated
18913         by today's update-copyright run.  Reported by Eric Blake.
18914
18915         test-update-copyright: don't let envvar setting cause test failure
18916         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18917
18918 2010-01-01  Bruno Haible  <bruno@clisp.org>
18919
18920         localename: Avoid gcc warning.
18921         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
18922         function if it is not used.
18923
18924 2010-01-01  Jim Meyering  <meyering@redhat.com>
18925
18926         update nearly all FSF copyright year lists to include 2010
18927         Use the same procedure as for 2009, outlined in
18928         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
18929
18930         version-etc: set COPYRIGHT_YEAR to 2010
18931         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
18932
18933 2009-12-31  Eric Blake  <ebb9@byu.net>
18934
18935         doc: correct availability of cygwin 1.5.x getopt
18936         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
18937         variables.
18938         * doc/posix-functions/opterr.texi (opterr): Likewise.
18939         * doc/posix-functions/optind.texi (optind): Likewise.
18940         * doc/posix-functions/optopt.texi (optopt): Likewise.
18941         * doc/posix-functions/tzname.texi (tzname): Likewise.
18942
18943         openat: update maintainer
18944         * modules/openat (Maintainer): Add myself.
18945
18946         utimens: avoid shadowing warning
18947         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
18948         buffers into one, to avoid shadowing, as well as avoiding a
18949         redundant stat.
18950         Reported by Jim Meyering.
18951
18952         test-dup2: avoid compiler warning
18953         * tests/test-dup2.c (is_inheritable): Only define if used.
18954
18955 2010-01-01  Bruno Haible  <bruno@clisp.org>
18956
18957         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
18958         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
18959         defined, use wctomb instead of wcrtomb.
18960
18961 2010-01-01  Bruno Haible  <bruno@clisp.org>
18962
18963         iconv: Reject native Solaris iconv.
18964         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
18965         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
18966
18967 2009-12-31  Bruno Haible  <bruno@clisp.org>
18968
18969         * tests/test-signal.c (main): Remove test of 'SIG'.
18970
18971 2009-12-31  Bruno Haible  <bruno@clisp.org>
18972
18973         spawn: Fix incomplete fix.
18974         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18975         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18976         warnings for GNULIB_POSIXCHECK again.
18977         Reported by Eric Blake.
18978
18979 2009-12-31  Bruno Haible  <bruno@clisp.org>
18980
18981         Avoid namespace pollution on glibc systems.
18982         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
18983         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
18984         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
18985         glibc systems.
18986
18987 2009-12-31  Bruno Haible  <bruno@clisp.org>
18988
18989         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
18990         (gl_REPLACE_WCHAR_H): Turn into a no-op.
18991         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
18992         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18993         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18994         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18995         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18996
18997 2009-12-31  Bruno Haible  <bruno@clisp.org>
18998
18999         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19000         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
19001         afterwards.
19002
19003 2009-12-31  Bruno Haible  <bruno@clisp.org>
19004
19005         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
19006         SYS_UTSNAME_H.
19007
19008 2009-12-31  Bruno Haible  <bruno@clisp.org>
19009
19010         spawn: Fix misapplied patch.
19011         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19012         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19013         warnings for GNULIB_POSIXCHECK.
19014
19015 2009-12-31  Bruno Haible  <bruno@clisp.org>
19016
19017         times: Update after sys_times changed.
19018         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
19019         * modules/times (Files): Add it.
19020         (configure.ac): Invoke gl_FUNC_TIMES.
19021
19022 2009-12-31  Bruno Haible  <bruno@clisp.org>
19023
19024         Use AC_C_INLINE where necessary.
19025         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
19026         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19027         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19028         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19029         * m4/mbfile.m4 (gl_MBFILE): Likewise.
19030         * m4/mbiter.m4 (gl_MBITER): Likewise.
19031         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19032         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19033         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
19034         * modules/u64 (configure.ac): Likewise.
19035
19036 2009-12-31  Bruno Haible  <bruno@clisp.org>
19037
19038         Use AC_C_INLINE instead of module 'inline' where possible.
19039         * modules/inline (Description): Clarify purpose.
19040         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
19041         * modules/count-one-bits (Depends-on): Remove inline.
19042         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
19043         * modules/openat (Depends-on): Remove inline.
19044         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
19045         instead of depending on module 'inline'.
19046         * modules/filevercmp (Depends-on, configure.ac): Likewise.
19047         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
19048         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
19049         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
19050         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
19051         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
19052         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
19053         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
19054         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
19055         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
19056         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
19057         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
19058         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
19059         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
19060         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
19061         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
19062         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
19063         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
19064         Likewise.
19065         * modules/unictype/property-ascii-hex-digit (Depends-on,
19066         configure.ac): Likewise.
19067         * modules/unictype/property-bidi-arabic-digit (Depends-on,
19068         configure.ac): Likewise.
19069         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
19070         configure.ac): Likewise.
19071         * modules/unictype/property-bidi-block-separator (Depends-on,
19072         configure.ac): Likewise.
19073         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
19074         configure.ac): Likewise.
19075         * modules/unictype/property-bidi-common-separator (Depends-on,
19076         configure.ac): Likewise.
19077         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
19078         Likewise.
19079         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
19080         configure.ac): Likewise.
19081         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
19082         configure.ac): Likewise.
19083         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
19084         configure.ac): Likewise.
19085         * modules/unictype/property-bidi-european-digit (Depends-on,
19086         configure.ac): Likewise.
19087         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
19088         configure.ac): Likewise.
19089         * modules/unictype/property-bidi-left-to-right (Depends-on,
19090         configure.ac): Likewise.
19091         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
19092         configure.ac): Likewise.
19093         * modules/unictype/property-bidi-other-neutral (Depends-on,
19094         configure.ac): Likewise.
19095         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
19096         Likewise.
19097         * modules/unictype/property-bidi-segment-separator (Depends-on,
19098         configure.ac): Likewise.
19099         * modules/unictype/property-bidi-whitespace (Depends-on,
19100         configure.ac): Likewise.
19101         * modules/unictype/property-combining (Depends-on, configure.ac):
19102         Likewise.
19103         * modules/unictype/property-composite (Depends-on, configure.ac):
19104         Likewise.
19105         * modules/unictype/property-currency-symbol (Depends-on,
19106         configure.ac): Likewise.
19107         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
19108         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
19109         Likewise.
19110         * modules/unictype/property-default-ignorable-code-point (Depends-on,
19111         configure.ac): Likewise.
19112         * modules/unictype/property-deprecated (Depends-on, configure.ac):
19113         Likewise.
19114         * modules/unictype/property-diacritic (Depends-on, configure.ac):
19115         Likewise.
19116         * modules/unictype/property-extender (Depends-on, configure.ac):
19117         Likewise.
19118         * modules/unictype/property-format-control (Depends-on, configure.ac):
19119         Likewise.
19120         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
19121         Likewise.
19122         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
19123         Likewise.
19124         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
19125         Likewise.
19126         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
19127         Likewise.
19128         * modules/unictype/property-hyphen (Depends-on, configure.ac):
19129         Likewise.
19130         * modules/unictype/property-id-continue (Depends-on, configure.ac):
19131         Likewise.
19132         * modules/unictype/property-id-start (Depends-on, configure.ac):
19133         Likewise.
19134         * modules/unictype/property-ideographic (Depends-on, configure.ac):
19135         Likewise.
19136         * modules/unictype/property-ids-binary-operator (Depends-on,
19137         configure.ac): Likewise.
19138         * modules/unictype/property-ids-trinary-operator (Depends-on,
19139         configure.ac): Likewise.
19140         * modules/unictype/property-ignorable-control (Depends-on,
19141         configure.ac): Likewise.
19142         * modules/unictype/property-iso-control (Depends-on, configure.ac):
19143         Likewise.
19144         * modules/unictype/property-join-control (Depends-on, configure.ac):
19145         Likewise.
19146         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
19147         Likewise.
19148         * modules/unictype/property-line-separator (Depends-on, configure.ac):
19149         Likewise.
19150         * modules/unictype/property-logical-order-exception (Depends-on,
19151         configure.ac): Likewise.
19152         * modules/unictype/property-lowercase (Depends-on, configure.ac):
19153         Likewise.
19154         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
19155         * modules/unictype/property-non-break (Depends-on, configure.ac):
19156         Likewise.
19157         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
19158         Likewise.
19159         * modules/unictype/property-numeric (Depends-on, configure.ac):
19160         Likewise.
19161         * modules/unictype/property-other-alphabetic (Depends-on,
19162         configure.ac): Likewise.
19163         * modules/unictype/property-other-default-ignorable-code-point
19164         (Depends-on, configure.ac): Likewise.
19165         * modules/unictype/property-other-grapheme-extend (Depends-on,
19166         configure.ac): Likewise.
19167         * modules/unictype/property-other-id-continue (Depends-on,
19168         configure.ac): Likewise.
19169         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
19170         Likewise.
19171         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
19172         Likewise.
19173         * modules/unictype/property-other-math (Depends-on, configure.ac):
19174         Likewise.
19175         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
19176         Likewise.
19177         * modules/unictype/property-paired-punctuation (Depends-on,
19178         configure.ac): Likewise.
19179         * modules/unictype/property-paragraph-separator (Depends-on,
19180         configure.ac): Likewise.
19181         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
19182         Likewise.
19183         * modules/unictype/property-pattern-white-space (Depends-on,
19184         configure.ac): Likewise.
19185         * modules/unictype/property-private-use (Depends-on, configure.ac):
19186         Likewise.
19187         * modules/unictype/property-punctuation (Depends-on, configure.ac):
19188         Likewise.
19189         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
19190         Likewise.
19191         * modules/unictype/property-radical (Depends-on, configure.ac):
19192         Likewise.
19193         * modules/unictype/property-sentence-terminal (Depends-on,
19194         configure.ac): Likewise.
19195         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
19196         Likewise.
19197         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
19198         * modules/unictype/property-terminal-punctuation (Depends-on,
19199         configure.ac): Likewise.
19200         * modules/unictype/property-titlecase (Depends-on, configure.ac):
19201         Likewise.
19202         * modules/unictype/property-unassigned-code-value (Depends-on,
19203         configure.ac): Likewise.
19204         * modules/unictype/property-unified-ideograph (Depends-on,
19205         configure.ac): Likewise.
19206         * modules/unictype/property-uppercase (Depends-on, configure.ac):
19207         Likewise.
19208         * modules/unictype/property-variation-selector (Depends-on,
19209         configure.ac): Likewise.
19210         * modules/unictype/property-white-space (Depends-on, configure.ac):
19211         Likewise.
19212         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
19213         Likewise.
19214         * modules/unictype/property-xid-start (Depends-on, configure.ac):
19215         Likewise.
19216         * modules/unictype/property-zero-width (Depends-on, configure.ac):
19217         Likewise.
19218         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
19219         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
19220         Likewise.
19221
19222 2009-12-31  Bruno Haible  <bruno@clisp.org>
19223
19224         Remove unnecessary AC_C_INLINE invocation.
19225         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
19226         since 2009-08-21.
19227
19228 2009-12-31  Jim Meyering  <meyering@redhat.com>
19229
19230         maint.mk: don't require explicit gpg_key_ID in cfg.mk
19231         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
19232         With this change, we can all remove the gpg_key_ID = ... definition
19233         from our respective cfg.mk files.
19234
19235         maint.mk: create announcement template in ~/, not in /tmp
19236         * top/maint.mk (emit_upload_commands): Adjust.
19237         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
19238         Remove temporary file, .ci-msg.
19239
19240 2009-12-31  Eric Blake  <ebb9@byu.net>
19241
19242         link-warning: always build headers with link warnings
19243         * modules/arpa_inet (Makefile.am): Always build replacement
19244         header.
19245         * modules/ctype (Makefile.am): Likewise.
19246         * modules/dirent (Makefile.am): Likewise.
19247         * modules/inttypes (Makefile.am): Likewise.
19248         * modules/langinfo (Makefile.am): Likewise.
19249         * modules/locale (Makefile.am): Likewise.
19250         * modules/spawn (Makefile.am): Likewise.
19251         * modules/sys_file (Makefile.am): Likewise.
19252         * modules/sys_ioctl (Makefile.am): Likewise.
19253         * modules/sys_select (Makefile.am): Likewise.
19254         * modules/sys_socket (Makefile.am): Likewise.
19255         * modules/sys_times (Makefile.am): Likewise.
19256         * modules/sys_utsname (Makefile.am): Likewise.
19257         * modules/sys_wait (Makefile.am): Likewise.
19258         * modules/wchar (Makefile.am): Likewise.
19259         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
19260         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
19261         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
19262         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
19263         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
19264         Likewise.
19265         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19266         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19267         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
19268         Likewise.
19269         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
19270         Likewise.
19271         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19272         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
19273         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
19274         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19275         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19276         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19277         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19278         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
19279         (gl_WCHAR_H_DEFAULTS): Likewise.
19280
19281 2009-12-31  Eric Blake  <ebb9@byu.net>
19282
19283         signal, spawn: use link warnings
19284         * lib/signal.in.h (sigset_t): Make unconditional.
19285         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
19286         (sigpending, sigprocmask, sigaction): Add link warnings.
19287         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
19288         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
19289         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
19290         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
19291         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
19292         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
19293         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
19294         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
19295         (posix_spawn_file_actions_destroy)
19296         (posix_spawn_file_actions_addopen)
19297         (posix_spawn_file_actions_addclose)
19298         (posix_spawn_file_actions_adddup2): Likewise.
19299         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
19300         * tests/test-signal.c (main): Enhance test.
19301
19302         spawn: improve wrapper support
19303         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
19304         (gl_SPAWN_H_DEFAULTS): New defaults.
19305         * modules/spawn (Makefile.am): Substitute them.
19306         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
19307         Only declare if missing or broken.
19308
19309         sys_times, sys_utsname: use include_next
19310         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
19311         header.
19312         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
19313         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19314         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19315         * modules/sys_times (Depends-on): Add include_next.
19316         (Makefile.am): Substitute additional values.
19317         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19318         * lib/sys_times.in.h (includes): Include native header, if
19319         available.
19320         * lib/sys_utsname.in.h (includes): Likewise.
19321         * tests/test-sys_times.c (main): Enhance test.
19322
19323         fdutimensat: revert prior patch
19324         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
19325         utimens.h.
19326         Reported by Bruno Haible.
19327
19328 2009-12-30  Eric Blake  <ebb9@byu.net>
19329
19330         sys_wait: drop link-warning dependency
19331         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
19332         link-warning efforts.
19333         * lib/sys_wait.in.h: Likewise.
19334
19335         fdutimensat: remove bogus dependency
19336         * modules/fdutimensat (Depends-on): Drop inline.
19337
19338         unistd: fix typo
19339         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
19340
19341 2009-12-30  Bruno Haible  <bruno@clisp.org>
19342
19343         Fix compilation error with Solaris cc.
19344         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
19345         * lib/unicase/u16-is-invariant.c: Likewise.
19346         * lib/unicase/u32-is-invariant.c: Likewise.
19347         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19348
19349 2009-12-30  Bruno Haible  <bruno@clisp.org>
19350
19351         Fix test crash.
19352         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
19353         locales.
19354         Reported by Simon Josefsson <simon@josefsson.org>.
19355
19356 2009-12-30  Bruno Haible  <bruno@clisp.org>
19357
19358         Fix compilation error on most platforms.
19359         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
19360         Reported by Simon Josefsson <simon@josefsson.org>
19361         and Nelson H. F. Beebe <beebe@math.utah.edu>.
19362
19363 2009-12-30  Eric Blake  <ebb9@byu.net>
19364
19365         futimens, utimensat: work around ntfs-3g bug
19366         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
19367         a ctime bug is present, and expand workaround to cover ntfs-3g.
19368         * lib/utimens.c (fdutimens, lutimens): Likewise.
19369         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
19370         (validate_timespec): Adjust return value.
19371         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
19372         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19373         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
19374
19375 2009-12-29  Eric Blake  <ebb9@byu.net>
19376
19377         link-warning: make usage consistent
19378         * modules/ctype (Depends-on): Add link-warning.
19379         (Makefile.am): Update rules accordingly.
19380         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19381         * modules/locale (Depends-on, Makefile.am): Likewise.
19382         * modules/sys_file (Makefile.am): Likewise.
19383         * modules/getopt-posix (Makefile.am): Delete unused link warning
19384         efforts.
19385         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
19386         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
19387         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
19388         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
19389
19390         stdio: remove unused variables
19391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
19392         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
19393         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19394
19395         tests: test more substitute headers
19396         * modules/ctype-tests: New file.
19397         * modules/dirent-tests: Likewise.
19398         * modules/spawn-tests: Likewise.
19399         * modules/sys_file-tests: Likewise.
19400         * modules/sys_ioctl-tests: Likewise.
19401         * modules/sys_wait-tests: Likewise.
19402         * tests/test-ctype.c: Likewise.
19403         * tests/test-dirent.c: Likewise.
19404         * tests/test-spawn.c: Likewise.
19405         * tests/test-sys_file.c: Likewise.
19406         * tests/test-sys_ioctl.c: Likewise.
19407         * tests/test-sys_wait.c: Likewise.
19408         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
19409         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
19410         whether or not flock is in use.
19411
19412         tests: remove License section from module
19413         * modules/arpa_inet-tests: Remove unneeded section.
19414         * modules/byteswap-tests: Likewise.
19415         * modules/ceilf-tests: Likewise.
19416         * modules/ceill-tests: Likewise.
19417         * modules/crypto/des-tests: Likewise.
19418         * modules/crypto/gc-arcfour-tests: Likewise.
19419         * modules/crypto/gc-arctwo-tests: Likewise.
19420         * modules/crypto/gc-des-tests: Likewise.
19421         * modules/crypto/gc-hmac-md5-tests: Likewise.
19422         * modules/crypto/gc-hmac-sha1-tests: Likewise.
19423         * modules/crypto/gc-md2-tests: Likewise.
19424         * modules/crypto/gc-md4-tests: Likewise.
19425         * modules/crypto/gc-md5-tests: Likewise.
19426         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
19427         * modules/crypto/gc-rijndael-tests: Likewise.
19428         * modules/crypto/gc-sha1-tests: Likewise.
19429         * modules/crypto/gc-tests: Likewise.
19430         * modules/crypto/md2-tests: Likewise.
19431         * modules/crypto/md4-tests: Likewise.
19432         * modules/fcntl-h-tests: Likewise.
19433         * modules/floorf-tests: Likewise.
19434         * modules/floorl-tests: Likewise.
19435         * modules/frexp-nolibm-tests: Likewise.
19436         * modules/frexp-tests: Likewise.
19437         * modules/frexpl-nolibm-tests: Likewise.
19438         * modules/frexpl-tests: Likewise.
19439         * modules/getaddrinfo-tests: Likewise.
19440         * modules/inttypes-tests: Likewise.
19441         * modules/isfinite-tests: Likewise.
19442         * modules/isinf-tests: Likewise.
19443         * modules/ldexpl-tests: Likewise.
19444         * modules/locale-tests: Likewise.
19445         * modules/math-tests: Likewise.
19446         * modules/netdb-tests: Likewise.
19447         * modules/netinet_in-tests: Likewise.
19448         * modules/printf-frexp-tests: Likewise.
19449         * modules/printf-frexpl-tests: Likewise.
19450         * modules/priv-set-tests: Likewise.
19451         * modules/random_r-tests: Likewise.
19452         * modules/round-tests: Likewise.
19453         * modules/roundf-tests: Likewise.
19454         * modules/roundl-tests: Likewise.
19455         * modules/search-tests: Likewise.
19456         * modules/select-tests: Likewise.
19457         * modules/signal-tests: Likewise.
19458         * modules/stdbool-tests: Likewise.
19459         * modules/stddef-tests: Likewise.
19460         * modules/stdint-tests: Likewise.
19461         * modules/stdio-tests: Likewise.
19462         * modules/stdlib-tests: Likewise.
19463         * modules/string-tests: Likewise.
19464         * modules/strings-tests: Likewise.
19465         * modules/sys_select-tests: Likewise.
19466         * modules/sys_socket-tests: Likewise.
19467         * modules/sys_stat-tests: Likewise.
19468         * modules/sys_time-tests: Likewise.
19469         * modules/sys_utsname-tests: Likewise.
19470         * modules/sysexits-tests: Likewise.
19471         * modules/time-tests: Likewise.
19472         * modules/trunc-tests: Likewise.
19473         * modules/truncf-tests: Likewise.
19474         * modules/truncl-tests: Likewise.
19475         * modules/tsearch-tests: Likewise.
19476         * modules/unistd-tests: Likewise.
19477         * modules/wchar-tests: Likewise.
19478         * modules/wctype-tests: Likewise.
19479
19480         tests: fix license on several tests
19481         * tests/test-des.c: Update to GPLv3+.
19482         * tests/test-flock.c: Likewise.
19483         * tests/test-fsync.c: Likewise.
19484         * tests/test-futimens.h: Likewise.
19485         * tests/test-gc-arcfour.c: Likewise.
19486         * tests/test-gc-arctwo.c: Likewise.
19487         * tests/test-gc-des.c: Likewise.
19488         * tests/test-gc-hmac-md5.c: Likewise.
19489         * tests/test-gc-hmac-sha1.c: Likewise.
19490         * tests/test-gc-md2.c: Likewise.
19491         * tests/test-gc-md4.c: Likewise.
19492         * tests/test-gc-md5.c: Likewise.
19493         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19494         * tests/test-gc-rijndael.c: Likewise.
19495         * tests/test-gc-sha1.c: Likewise.
19496         * tests/test-gc.c: Likewise.
19497         * tests/test-getcwd.c: Likewise.
19498         * tests/test-link.c: Likewise.
19499         * tests/test-link.h: Likewise.
19500         * tests/test-lutimens.h: Likewise.
19501         * tests/test-md2.c: Likewise.
19502         * tests/test-md4.c: Likewise.
19503         * tests/test-mkdir.h: Likewise.
19504         * tests/test-rename.c: Likewise.
19505         * tests/test-rename.h: Likewise.
19506         * tests/test-safe-alloc.c: Likewise.
19507         * tests/test-utimens-common.h: Likewise.
19508         * tests/test-utimens.h: Likewise.
19509
19510         maint: sync license texts
19511         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
19512         * doc/gpl-3.0.texi: Revert copyright year update.
19513         * doc/lgpl-3.0.texi: Likewise.
19514
19515 2009-12-29  Jim Meyering  <meyering@redhat.com>
19516
19517         update nearly all FSF copyright year lists to include 2009
19518         The files named by the following are exempted:
19519             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
19520               test -f "$dst" && { echo "$dst"; continue; }
19521               test -d "$dst" || continue
19522               echo "$dst"/$(basename "$src")
19523             done > exempt
19524             git ls-files tests/unictype >> exempt
19525         In the remaining files, convert to all-interval notation if
19526         - there is already at least one year interval like 2000-2003
19527         - the file is maintained by me
19528         - the file is in lib/uni*/, where that style already prevails
19529         Otherwise, use update-copyright's default.
19530
19531 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19532         and Eric Blake  <ebb9@byu.net>
19533
19534         tests: don't require debug system() to pass
19535         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
19536         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19537         * tests/test-unlink.h (test_unlink_func): Likewise.
19538         * tests/test-fstatat.c (main): ...into callers.
19539         * tests/test-lstat.c (main): Likewise.
19540         * tests/test-rmdir.c (main): Likewise.
19541         * tests/test-unlink.c (main): Likewise.
19542         * tests/test-unlinkat.c (main): Likewise.
19543         * tests/test-areadlink-with-size.c (main): Don't require a
19544         debug-only system call to pass, aiding cross-testing to mingw.
19545         * tests/test-areadlink.c (main): Likewise.
19546         * tests/test-areadlinkat-with-size.c (main): Likewise.
19547         * tests/test-areadlinkat.c (main): Likewise.
19548         * tests/test-canonicalize-lgpl.c (main): Likewise.
19549         * tests/test-canonicalize.c (main): Likewise.
19550         * tests/test-chown.c (main): Likewise.
19551         * tests/test-fchownat.c (main): Likewise.
19552         * tests/test-lchown.c (main): Likewise.
19553         * tests/test-fdutimensat.c (main): Likewise.
19554         * tests/test-futimens.c (main): Likewise.
19555         * tests/test-link.c (main): Likewise.
19556         * tests/test-linkat.c (main): Likewise.
19557         * tests/test-mkdir.c (main): Likewise.
19558         * tests/test-mkdirat.c (main): Likewise.
19559         * tests/test-mkfifo.c (main): Likewise.
19560         * tests/test-mkfifoat.c (main): Likewise.
19561         * tests/test-mknod.c (main): Likewise.
19562         * tests/test-readlink.c (main): Likewise.
19563         * tests/test-remove.c (main): Likewise.
19564         * tests/test-rename.c (main): Likewise.
19565         * tests/test-renameat.c (main): Likewise.
19566         * tests/test-symlink.c (main): Likewise.
19567         * tests/test-symlinkat.c (main): Likewise.
19568         * tests/test-utimens.c (main): Likewise.
19569         * tests/test-utimensat.c (main): Likewise.
19570
19571 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19572
19573         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
19574         on $(UNUSED_PARAMETER_H) to avoid build failure.
19575
19576 2009-12-28  Jim Meyering  <meyering@redhat.com>
19577
19578         update-copyright: you may specify a max. line length other than 72
19579         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19580
19581         maint: use consistent FSF copyright line syntax
19582         * lib/posixtm.c: Add missing comma in FSF copyright line.
19583         * lib/posixtm.h: Likewise.
19584         * lib/getugroups.c: Add missing ", Inc.".
19585
19586         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
19587         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
19588         FSF copyright line.  Remove trailing blanks.
19589
19590 2009-12-28  Eric Blake  <ebb9@byu.net>
19591
19592         test-dup2: reduce dependencies
19593         * modules/cloexec (Configure.ac): Set witness.
19594         * modules/dup2-tests (Depends-on): Drop cloexec.
19595         * tests/test-dup2.c (main): Skip portion of test if cloexec module
19596         not present.
19597         Suggested by Bruno Haible.
19598
19599 2009-12-26  Bruno Haible  <bruno@clisp.org>
19600
19601         Remove an unneeded dependency.
19602         * modules/fseterr (Depends-on): Remove dup2.
19603
19604 2009-12-26  Eric Blake  <ebb9@byu.net>
19605
19606         tests: use macros.h in more places
19607         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
19608         (ASSERT_STREAM): Provide default of stderr.
19609         * tests/test-dirent-safer.c: Include macros.h, using alternate
19610         stream for assertions.
19611         * tests/test-dup-safer.c: Likewise.
19612         * tests/test-freopen-safer.c: Likewise.
19613         * tests/test-getopt.c: Likewise.
19614         * tests/test-openat-safer.c: Likewise.
19615         * tests/test-pipe.c: Likewise.
19616         * tests/test-popen-safer.c: Likewise.
19617         * modules/dirent-safer-tests (Files): Include macros.h.
19618         * modules/unistd-safer-tests (Files): Likewise.
19619         * modules/freopen-safer-tests (Files): Likewise.
19620         * modules/getopt-posix-tests (Files): Likewise.
19621         * modules/openat-safer-tests (Files): Likewise.
19622         * modules/pipe-tests (Files): Likewise.
19623
19624 2009-12-26  Bruno Haible  <bruno@clisp.org>
19625
19626         javacomp: Portability fix.
19627         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
19628         that it also works on Solaris.
19629
19630 2009-12-26  Bruno Haible  <bruno@clisp.org>
19631
19632         localename: Fix storage allocation of gl_locale_name_thread's result.
19633         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
19634         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
19635         all platforms that have 'uselocale'.
19636         (gl_locale_name_thread_unsafe): New function, extracted from
19637         gl_locale_name_thread.
19638         (gl_locale_name_thread): Call struniq on all platforms that have
19639         'uselocale'.
19640         * tests/test-localename.c (test_locale_name_thread): Check that the
19641         resulting strings are permanently allocated.
19642         * modules/localename-tests (Depends-on): Add strdup.
19643
19644 2009-12-26  Bruno Haible  <bruno@clisp.org>
19645
19646         * tests/test-localename.c (categories): Fill in the strings.
19647
19648 2009-12-26  Jim Meyering  <meyering@redhat.com>
19649
19650         isdir: complete the removal of m4/isdir.m4
19651         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
19652
19653         isdir: clean up, since at least grep still uses it
19654         * lib/isdir.c: Include "isdir.h".
19655         (S_ISDIR): Remove now-unneeded definition.
19656         * modules/isdir (Files): Add lib/isdir.h.
19657         * lib/isdir.h: New file, with declaration.
19658         * m4/isdir.m4: Remove file -- unneeded.
19659
19660 2009-12-25  Bruno Haible  <bruno@clisp.org>
19661
19662         selinux-h: Make generated .h files standalone.
19663         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
19664         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
19665         * lib/se-selinux.in.h: Likewise.
19666         * modules/selinux-h (Depends-on): Add unused-parameter.
19667         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
19668         selinux/selinux.h and selinux/context.h.
19669         Suggested by Eric Blake.
19670
19671 2009-12-25  Bruno Haible  <bruno@clisp.org>
19672
19673         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
19674         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
19675         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
19676         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
19677         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
19678
19679 2009-12-24  Bruno Haible  <bruno@clisp.org>
19680
19681         openat: Fix warning.
19682         * lib/openat-proc.c: Include <unistd.h>.
19683
19684 2009-12-24  Bruno Haible  <bruno@clisp.org>
19685
19686         New module 'unused-parameter'.
19687         * build-aux/unused-parameter.h: New file, extracted from earlier
19688         gnulib-common.m4.
19689         * modules/unused-parameter: New file.
19690         * lib/unistr.h: Include unused-parameter.h.
19691         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
19692         _GL_UNUSED.
19693         * modules/unistr/base (Depends-on): Add unused-parameter.
19694
19695 2009-12-24  Bruno Haible  <bruno@clisp.org>
19696
19697         Add missing dependencies to 'extensions' module.
19698         * m4/extensions.m4: Add comment.
19699         * modules/accept4 (Depends-on): Add extensions.
19700         * modules/dup3 (Depends-on): Likewise.
19701         * modules/fcntl (Depends-on): Likewise.
19702         * modules/futimens (Depends-on): Likewise.
19703         * modules/mknod (Depends-on): Likewise.
19704         * modules/pipe2 (Depends-on): Likewise.
19705         * modules/stat-time (Depends-on): Likewise.
19706         * modules/strcasestr-simple (Depends-on): Likewise.
19707         * modules/strsignal (Depends-on): Likewise.
19708         * modules/utimensat (Depends-on): Likewise.
19709         * modules/localcharset (Depends-on): Likewise. Needed because of
19710         gl_FCNTL_O_FLAGS.
19711         * modules/wcrtomb (Depends-on): Likewise. Needed because of
19712         AC_TYPE_MBSTATE_T.
19713         * modules/wcsnrtombs (Depends-on): Likewise.
19714         * modules/wcsrtombs (Depends-on): Likewise.
19715
19716 2009-12-24  Bruno Haible  <bruno@clisp.org>
19717
19718         binary-io: Avoid gcc warning due to SET_BINARY.
19719         * lib/binary-io.h (SET_BINARY): Cast the result to void.
19720         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
19721
19722 2009-12-24  Bruno Haible  <bruno@clisp.org>
19723
19724         Avoid future namespace pollution on glibc systems.
19725         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
19726         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
19727         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
19728         glibc systems.
19729
19730 2009-12-24  Bruno Haible  <bruno@clisp.org>
19731
19732         Refactor common macros used in tests.
19733         * tests/macros.h: New file.
19734         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
19735         and/or <stdlib.h>, if appropriate.
19736         (ASSERT, SIZEOF): Remove macros.
19737         * tests/test-areadlink-with-size.c: Likewise.
19738         * tests/test-areadlinkat.c: Likewise.
19739         * tests/test-areadlinkat-with-size.c: Likewise.
19740         * tests/test-argmatch.c: Likewise.
19741         * tests/test-argv-iter.c: Likewise.
19742         * tests/test-array-mergesort.c: Likewise.
19743         * tests/test-array_list.c: Likewise.
19744         * tests/test-array_oset.c: Likewise.
19745         * tests/test-avltree_list.c: Likewise.
19746         * tests/test-avltree_oset.c: Likewise.
19747         * tests/test-avltreehash_list.c: Likewise.
19748         * tests/test-base64.c: Likewise.
19749         * tests/test-binary-io.c: Likewise.
19750         * tests/test-bitrotate.c: Likewise.
19751         * tests/test-btowc.c: Likewise.
19752         * tests/test-byteswap.c: Likewise.
19753         * tests/test-c-ctype.c: Likewise.
19754         * tests/test-c-stack.c: Likewise.
19755         * tests/test-c-strcasecmp.c: Likewise.
19756         * tests/test-c-strcasestr.c: Likewise.
19757         * tests/test-c-strncasecmp.c: Likewise.
19758         * tests/test-c-strstr.c: Likewise.
19759         * tests/test-canonicalize-lgpl.c: Likewise.
19760         * tests/test-canonicalize.c: Likewise.
19761         * tests/test-carray_list.c: Likewise.
19762         * tests/test-ceilf1.c: Likewise.
19763         * tests/test-ceilf2.c: Likewise.
19764         * tests/test-ceill.c: Likewise.
19765         * tests/test-chown.c: Likewise.
19766         * tests/test-cloexec.c: Likewise.
19767         * tests/test-copy-acl.c: Likewise.
19768         * tests/test-copy-file.c: Likewise.
19769         * tests/test-count-one-bits.c: Likewise.
19770         * tests/test-dprintf-posix.c: Likewise.
19771         * tests/test-dup2.c: Likewise.
19772         * tests/test-dup3.c: Likewise.
19773         * tests/test-duplocale.c: Likewise.
19774         * tests/test-fbufmode.c: Likewise.
19775         * tests/test-fchdir.c: Likewise.
19776         * tests/test-fchownat.c: Likewise.
19777         * tests/test-fcntl-safer.c: Likewise.
19778         * tests/test-fcntl.c: Likewise.
19779         * tests/test-fdopendir.c: Likewise.
19780         * tests/test-fdutimensat.c: Likewise.
19781         * tests/test-fflush2.c: Likewise.
19782         * tests/test-file-has-acl.c: Likewise.
19783         * tests/test-filevercmp.c: Likewise.
19784         * tests/test-flock.c: Likewise.
19785         * tests/test-floorf1.c: Likewise.
19786         * tests/test-floorf2.c: Likewise.
19787         * tests/test-floorl.c: Likewise.
19788         * tests/test-fnmatch.c: Likewise.
19789         * tests/test-fopen.h: Likewise.
19790         * tests/test-fpending.c: Likewise.
19791         * tests/test-fprintf-posix.c: Likewise.
19792         * tests/test-fpurge.c: Likewise.
19793         * tests/test-freadable.c: Likewise.
19794         * tests/test-freadahead.c: Likewise.
19795         * tests/test-freading.c: Likewise.
19796         * tests/test-freadptr.c: Likewise.
19797         * tests/test-freadptr2.c: Likewise.
19798         * tests/test-freadseek.c: Likewise.
19799         * tests/test-freopen.c: Likewise.
19800         * tests/test-frexp.c: Likewise.
19801         * tests/test-frexpl.c: Likewise.
19802         * tests/test-fseek.c: Likewise.
19803         * tests/test-fseeko.c: Likewise.
19804         * tests/test-fstatat.c: Likewise.
19805         * tests/test-fstrcmp.c: Likewise.
19806         * tests/test-fsync.c: Likewise.
19807         * tests/test-ftell.c: Likewise.
19808         * tests/test-ftello.c: Likewise.
19809         * tests/test-func.c: Likewise.
19810         * tests/test-futimens.c: Likewise.
19811         * tests/test-fwritable.c: Likewise.
19812         * tests/test-fwriting.c: Likewise.
19813         * tests/test-getcwd.c: Likewise.
19814         * tests/test-getdate.c: Likewise.
19815         * tests/test-getdelim.c: Likewise.
19816         * tests/test-getdtablesize.c: Likewise.
19817         * tests/test-getgroups.c: Likewise.
19818         * tests/test-getline.c: Likewise.
19819         * tests/test-getndelim2.c: Likewise.
19820         * tests/test-glob.c: Likewise.
19821         * tests/test-hash.c: Likewise.
19822         * tests/test-i-ring.c: Likewise.
19823         * tests/test-iconv-utf.c: Likewise.
19824         * tests/test-iconv.c: Likewise.
19825         * tests/test-idpriv-drop.c: Likewise.
19826         * tests/test-idpriv-droptemp.c: Likewise.
19827         * tests/test-inet_ntop.c: Likewise.
19828         * tests/test-inet_pton.c: Likewise.
19829         * tests/test-isblank.c: Likewise.
19830         * tests/test-isfinite.c: Likewise.
19831         * tests/test-isinf.c: Likewise.
19832         * tests/test-isnan.c: Likewise.
19833         * tests/test-isnand.h: Likewise.
19834         * tests/test-isnanf.h: Likewise.
19835         * tests/test-isnanl.h: Likewise.
19836         * tests/test-lchown.c: Likewise.
19837         * tests/test-ldexpl.c: Likewise.
19838         * tests/test-link.c: Likewise.
19839         * tests/test-linkat.c: Likewise.
19840         * tests/test-linked_list.c: Likewise.
19841         * tests/test-linkedhash_list.c: Likewise.
19842         * tests/test-localename.c: Likewise.
19843         * tests/test-lseek.c: Likewise.
19844         * tests/test-lstat.c: Likewise.
19845         * tests/test-mbmemcasecmp.c: Likewise.
19846         * tests/test-mbmemcasecoll.c: Likewise.
19847         * tests/test-mbrtowc.c: Likewise.
19848         * tests/test-mbscasecmp.c: Likewise.
19849         * tests/test-mbscasestr1.c: Likewise.
19850         * tests/test-mbscasestr2.c: Likewise.
19851         * tests/test-mbscasestr3.c: Likewise.
19852         * tests/test-mbscasestr4.c: Likewise.
19853         * tests/test-mbschr.c: Likewise.
19854         * tests/test-mbscspn.c: Likewise.
19855         * tests/test-mbsinit.c: Likewise.
19856         * tests/test-mbsncasecmp.c: Likewise.
19857         * tests/test-mbsnrtowcs.c: Likewise.
19858         * tests/test-mbspbrk.c: Likewise.
19859         * tests/test-mbspcasecmp.c: Likewise.
19860         * tests/test-mbsrchr.c: Likewise.
19861         * tests/test-mbsrtowcs.c: Likewise.
19862         * tests/test-mbsspn.c: Likewise.
19863         * tests/test-mbsstr1.c: Likewise.
19864         * tests/test-mbsstr2.c: Likewise.
19865         * tests/test-mbsstr3.c: Likewise.
19866         * tests/test-memchr.c: Likewise.
19867         * tests/test-memchr2.c: Likewise.
19868         * tests/test-memcmp.c: Likewise.
19869         * tests/test-memmem.c: Likewise.
19870         * tests/test-memrchr.c: Likewise.
19871         * tests/test-mkdir.c: Likewise.
19872         * tests/test-mkdirat.c: Likewise.
19873         * tests/test-mkfifo.c: Likewise.
19874         * tests/test-mkfifoat.c: Likewise.
19875         * tests/test-mknod.c: Likewise.
19876         * tests/test-nanosleep.c: Likewise.
19877         * tests/test-nl_langinfo.c: Likewise.
19878         * tests/test-obstack-printf.c: Likewise.
19879         * tests/test-open.c: Likewise.
19880         * tests/test-openat.c: Likewise.
19881         * tests/test-pipe-filter-gi1.c: Likewise.
19882         * tests/test-pipe-filter-gi2-main.c: Likewise.
19883         * tests/test-pipe-filter-ii1.c: Likewise.
19884         * tests/test-pipe-filter-ii2-main.c: Likewise.
19885         * tests/test-pipe2.c: Likewise.
19886         * tests/test-popen.h: Likewise.
19887         * tests/test-posixtm.c: Likewise.
19888         * tests/test-pread.c: Likewise.
19889         * tests/test-printf-frexp.c: Likewise.
19890         * tests/test-printf-frexpl.c: Likewise.
19891         * tests/test-printf-posix.c: Likewise.
19892         * tests/test-priv-set.c: Likewise.
19893         * tests/test-quotearg.c: Likewise.
19894         * tests/test-random_r.c: Likewise.
19895         * tests/test-rawmemchr.c: Likewise.
19896         * tests/test-rbtree_list.c: Likewise.
19897         * tests/test-rbtree_oset.c: Likewise.
19898         * tests/test-rbtreehash_list.c: Likewise.
19899         * tests/test-readlink.c: Likewise.
19900         * tests/test-remove.c: Likewise.
19901         * tests/test-rename.c: Likewise.
19902         * tests/test-renameat.c: Likewise.
19903         * tests/test-rmdir.c: Likewise.
19904         * tests/test-round1.c: Likewise.
19905         * tests/test-roundf1.c: Likewise.
19906         * tests/test-roundl.c: Likewise.
19907         * tests/test-safe-alloc.c: Likewise.
19908         * tests/test-sameacls.c: Likewise.
19909         * tests/test-set-mode-acl.c: Likewise.
19910         * tests/test-setenv.c: Likewise.
19911         * tests/test-sigaction.c: Likewise.
19912         * tests/test-signbit.c: Likewise.
19913         * tests/test-sleep.c: Likewise.
19914         * tests/test-snprintf-posix.c: Likewise.
19915         * tests/test-snprintf.c: Likewise.
19916         * tests/test-sprintf-posix.c: Likewise.
19917         * tests/test-stat-time.c: Likewise.
19918         * tests/test-stat.c: Likewise.
19919         * tests/test-strcasestr.c: Likewise.
19920         * tests/test-strchrnul.c: Likewise.
19921         * tests/test-strerror.c: Likewise.
19922         * tests/test-striconv.c: Likewise.
19923         * tests/test-striconveh.c: Likewise.
19924         * tests/test-striconveha.c: Likewise.
19925         * tests/test-strsignal.c: Likewise.
19926         * tests/test-strstr.c: Likewise.
19927         * tests/test-strtod.c: Likewise.
19928         * tests/test-strverscmp.c: Likewise.
19929         * tests/test-symlink.c: Likewise.
19930         * tests/test-symlinkat.c: Likewise.
19931         * tests/test-trunc1.c: Likewise.
19932         * tests/test-trunc2.c: Likewise.
19933         * tests/test-truncf1.c: Likewise.
19934         * tests/test-truncf2.c: Likewise.
19935         * tests/test-truncl.c: Likewise.
19936         * tests/test-uname.c: Likewise.
19937         * tests/test-unlink.c: Likewise.
19938         * tests/test-unlinkat.c: Likewise.
19939         * tests/test-unsetenv.c: Likewise.
19940         * tests/test-usleep.c: Likewise.
19941         * tests/test-utimens.c: Likewise.
19942         * tests/test-utimensat.c: Likewise.
19943         * tests/test-vasnprintf-posix.c: Likewise.
19944         * tests/test-vasnprintf-posix2.c: Likewise.
19945         * tests/test-vasnprintf.c: Likewise.
19946         * tests/test-vasprintf-posix.c: Likewise.
19947         * tests/test-vasprintf.c: Likewise.
19948         * tests/test-vdprintf-posix.c: Likewise.
19949         * tests/test-vfprintf-posix.c: Likewise.
19950         * tests/test-vprintf-posix.c: Likewise.
19951         * tests/test-vsnprintf-posix.c: Likewise.
19952         * tests/test-vsnprintf.c: Likewise.
19953         * tests/test-vsprintf-posix.c: Likewise.
19954         * tests/test-wcrtomb.c: Likewise.
19955         * tests/test-wcsnrtombs.c: Likewise.
19956         * tests/test-wcsrtombs.c: Likewise.
19957         * tests/test-wctype.c: Likewise.
19958         * tests/test-wcwidth.c: Likewise.
19959         * tests/test-xfprintf-posix.c: Likewise.
19960         * tests/test-xmemdup0.c: Likewise.
19961         * tests/test-xprintf-posix.c: Likewise.
19962         * tests/test-xvasprintf.c: Likewise.
19963         * tests/unicase/test-locale-language.c: Likewise.
19964         * tests/unicase/test-mapping-part1.h: Likewise.
19965         * tests/unicase/test-predicate-part1.h: Likewise.
19966         * tests/unicase/test-u8-casecmp.c: Likewise.
19967         * tests/unicase/test-u8-casecoll.c: Likewise.
19968         * tests/unicase/test-u8-casefold.c: Likewise.
19969         * tests/unicase/test-u8-is-cased.c: Likewise.
19970         * tests/unicase/test-u8-is-casefolded.c: Likewise.
19971         * tests/unicase/test-u8-is-lowercase.c: Likewise.
19972         * tests/unicase/test-u8-is-titlecase.c: Likewise.
19973         * tests/unicase/test-u8-is-uppercase.c: Likewise.
19974         * tests/unicase/test-u8-tolower.c: Likewise.
19975         * tests/unicase/test-u8-totitle.c: Likewise.
19976         * tests/unicase/test-u8-toupper.c: Likewise.
19977         * tests/unicase/test-u16-casecmp.c: Likewise.
19978         * tests/unicase/test-u16-casecoll.c: Likewise.
19979         * tests/unicase/test-u16-casefold.c: Likewise.
19980         * tests/unicase/test-u16-is-cased.c: Likewise.
19981         * tests/unicase/test-u16-is-casefolded.c: Likewise.
19982         * tests/unicase/test-u16-is-lowercase.c: Likewise.
19983         * tests/unicase/test-u16-is-titlecase.c: Likewise.
19984         * tests/unicase/test-u16-is-uppercase.c: Likewise.
19985         * tests/unicase/test-u16-tolower.c: Likewise.
19986         * tests/unicase/test-u16-totitle.c: Likewise.
19987         * tests/unicase/test-u16-toupper.c: Likewise.
19988         * tests/unicase/test-u32-casecmp.c: Likewise.
19989         * tests/unicase/test-u32-casecoll.c: Likewise.
19990         * tests/unicase/test-u32-casefold.c: Likewise.
19991         * tests/unicase/test-u32-is-cased.c: Likewise.
19992         * tests/unicase/test-u32-is-casefolded.c: Likewise.
19993         * tests/unicase/test-u32-is-lowercase.c: Likewise.
19994         * tests/unicase/test-u32-is-titlecase.c: Likewise.
19995         * tests/unicase/test-u32-is-uppercase.c: Likewise.
19996         * tests/unicase/test-u32-tolower.c: Likewise.
19997         * tests/unicase/test-u32-totitle.c: Likewise.
19998         * tests/unicase/test-u32-toupper.c: Likewise.
19999         * tests/unicase/test-ulc-casecmp.c: Likewise.
20000         * tests/unicase/test-ulc-casecoll.c: Likewise.
20001         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20002         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20003         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20004         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20005         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20006         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20007         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20008         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20009         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20010         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20011         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20012         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20013         * tests/unictype/test-bidi_byname.c: Likewise.
20014         * tests/unictype/test-bidi_name.c: Likewise.
20015         * tests/unictype/test-bidi_of.c: Likewise.
20016         * tests/unictype/test-bidi_test.c: Likewise.
20017         * tests/unictype/test-block_list.c: Likewise.
20018         * tests/unictype/test-block_of.c: Likewise.
20019         * tests/unictype/test-block_test.c: Likewise.
20020         * tests/unictype/test-categ_and.c: Likewise.
20021         * tests/unictype/test-categ_and_not.c: Likewise.
20022         * tests/unictype/test-categ_byname.c: Likewise.
20023         * tests/unictype/test-categ_name.c: Likewise.
20024         * tests/unictype/test-categ_none.c: Likewise.
20025         * tests/unictype/test-categ_of.c: Likewise.
20026         * tests/unictype/test-categ_or.c: Likewise.
20027         * tests/unictype/test-categ_test_withtable.c: Likewise.
20028         * tests/unictype/test-combining.c: Likewise.
20029         * tests/unictype/test-decdigit.c: Likewise.
20030         * tests/unictype/test-digit.c: Likewise.
20031         * tests/unictype/test-mirror.c: Likewise.
20032         * tests/unictype/test-numeric.c: Likewise.
20033         * tests/unictype/test-pr_byname.c: Likewise.
20034         * tests/unictype/test-pr_test.c: Likewise.
20035         * tests/unictype/test-predicate-part1.h: Likewise.
20036         * tests/unictype/test-scripts.c: Likewise.
20037         * tests/unictype/test-sy_c_ident.c: Likewise.
20038         * tests/unictype/test-sy_java_ident.c: Likewise.
20039         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
20040         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
20041         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
20042         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
20043         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
20044         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
20045         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
20046         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
20047         * tests/uninorm/test-canonical-decomposition.c: Likewise.
20048         * tests/uninorm/test-compat-decomposition.c: Likewise.
20049         * tests/uninorm/test-composition.c: Likewise.
20050         * tests/uninorm/test-decomposing-form.c: Likewise.
20051         * tests/uninorm/test-decomposition.c: Likewise.
20052         * tests/uninorm/test-u8-nfc.c: Likewise.
20053         * tests/uninorm/test-u8-nfd.c: Likewise.
20054         * tests/uninorm/test-u8-nfkc.c: Likewise.
20055         * tests/uninorm/test-u8-nfkd.c: Likewise.
20056         * tests/uninorm/test-u8-normcmp.c: Likewise.
20057         * tests/uninorm/test-u8-normcoll.c: Likewise.
20058         * tests/uninorm/test-u16-nfc.c: Likewise.
20059         * tests/uninorm/test-u16-nfd.c: Likewise.
20060         * tests/uninorm/test-u16-nfkc.c: Likewise.
20061         * tests/uninorm/test-u16-nfkd.c: Likewise.
20062         * tests/uninorm/test-u16-normcmp.c: Likewise.
20063         * tests/uninorm/test-u16-normcoll.c: Likewise.
20064         * tests/uninorm/test-u32-nfc.c: Likewise.
20065         * tests/uninorm/test-u32-nfd.c: Likewise.
20066         * tests/uninorm/test-u32-nfkc.c: Likewise.
20067         * tests/uninorm/test-u32-nfkd.c: Likewise.
20068         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20069         * tests/uninorm/test-u32-normcmp.c: Likewise.
20070         * tests/uninorm/test-u32-normcoll.c: Likewise.
20071         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
20072         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20073         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20074         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20075         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20076         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20077         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20078         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20079         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20080         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20081         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20082         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20083         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20084         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20085         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20086         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20087         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20088         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20089         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20090         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20091         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20092         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20093         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20094         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20095         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20096         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20097         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20098         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20099         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20100         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
20101         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
20102         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
20103         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
20104         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20105         * tests/uniwidth/test-u8-width.c: Likewise.
20106         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20107         * tests/uniwidth/test-u16-width.c: Likewise.
20108         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20109         * tests/uniwidth/test-u32-width.c: Likewise.
20110         * tests/uniwidth/test-uc_width.c: Likewise.
20111         * tests/uniwidth/test-uc_width2.c: Likewise.
20112         * modules/acl-tests (Files): Add tests/macros.h.
20113         * modules/areadlink-tests (Files): Likewise.
20114         * modules/areadlink-with-size-tests (Files): Likewise.
20115         * modules/areadlinkat-tests (Files): Likewise.
20116         * modules/areadlinkat-with-size-tests (Files): Likewise.
20117         * modules/argmatch-tests (Files): Likewise.
20118         * modules/argv-iter-tests (Files): Likewise.
20119         * modules/array-list-tests (Files): Likewise.
20120         * modules/array-mergesort-tests (Files): Likewise.
20121         * modules/array-oset-tests (Files): Likewise.
20122         * modules/avltree-list-tests (Files): Likewise.
20123         * modules/avltree-oset-tests (Files): Likewise.
20124         * modules/avltreehash-list-tests (Files): Likewise.
20125         * modules/base64-tests (Files): Likewise.
20126         * modules/binary-io-tests (Files): Likewise.
20127         * modules/bitrotate-tests (Files): Likewise.
20128         * modules/btowc-tests (Files): Likewise.
20129         * modules/byteswap-tests (Files): Likewise.
20130         * modules/c-ctype-tests (Files): Likewise.
20131         * modules/c-stack-tests (Files): Likewise.
20132         * modules/c-strcase-tests (Files): Likewise.
20133         * modules/c-strcasestr-tests (Files): Likewise.
20134         * modules/c-strstr-tests (Files): Likewise.
20135         * modules/canonicalize-lgpl-tests (Files): Likewise.
20136         * modules/canonicalize-tests (Files): Likewise.
20137         * modules/carray-list-tests (Files): Likewise.
20138         * modules/ceilf-tests (Files): Likewise.
20139         * modules/ceill-tests (Files): Likewise.
20140         * modules/chown-tests (Files): Likewise.
20141         * modules/cloexec-tests (Files): Likewise.
20142         * modules/copy-file-tests (Files): Likewise.
20143         * modules/count-one-bits-tests (Files): Likewise.
20144         * modules/dprintf-posix-tests (Files): Likewise.
20145         * modules/dup2-tests (Files): Likewise.
20146         * modules/dup3-tests (Files): Likewise.
20147         * modules/duplocale-tests (Files): Likewise.
20148         * modules/fbufmode-tests (Files): Likewise.
20149         * modules/fchdir-tests (Files): Likewise.
20150         * modules/fcntl-safer-tests (Files): Likewise.
20151         * modules/fcntl-tests (Files): Likewise.
20152         * modules/fdopendir-tests (Files): Likewise.
20153         * modules/fdutimensat-tests (Files): Likewise.
20154         * modules/fflush-tests (Files): Likewise.
20155         * modules/filevercmp-tests (Files): Likewise.
20156         * modules/flock-tests (Files): Likewise.
20157         * modules/floorf-tests (Files): Likewise.
20158         * modules/floorl-tests (Files): Likewise.
20159         * modules/fnmatch-tests (Files): Likewise.
20160         * modules/fopen-safer-tests (Files): Likewise.
20161         * modules/fopen-tests (Files): Likewise.
20162         * modules/fpending-tests (Files): Likewise.
20163         * modules/fprintf-posix-tests (Files): Likewise.
20164         * modules/fpurge-tests (Files): Likewise.
20165         * modules/freadable-tests (Files): Likewise.
20166         * modules/freadahead-tests (Files): Likewise.
20167         * modules/freading-tests (Files): Likewise.
20168         * modules/freadptr-tests (Files): Likewise.
20169         * modules/freadseek-tests (Files): Likewise.
20170         * modules/freopen-tests (Files): Likewise.
20171         * modules/frexp-nolibm-tests (Files): Likewise.
20172         * modules/frexp-tests (Files): Likewise.
20173         * modules/frexpl-nolibm-tests (Files): Likewise.
20174         * modules/frexpl-tests (Files): Likewise.
20175         * modules/fseek-tests (Files): Likewise.
20176         * modules/fseeko-tests (Files): Likewise.
20177         * modules/fstrcmp-tests (Files): Likewise.
20178         * modules/fsync-tests (Files): Likewise.
20179         * modules/ftell-tests (Files): Likewise.
20180         * modules/ftello-tests (Files): Likewise.
20181         * modules/func-tests (Files): Likewise.
20182         * modules/futimens-tests (Files): Likewise.
20183         * modules/fwritable-tests (Files): Likewise.
20184         * modules/fwriting-tests (Files): Likewise.
20185         * modules/getcwd-tests (Files): Likewise.
20186         * modules/getdate-tests (Files): Likewise.
20187         * modules/getdelim-tests (Files): Likewise.
20188         * modules/getdtablesize-tests (Files): Likewise.
20189         * modules/getgroups-tests (Files): Likewise.
20190         * modules/getline-tests (Files): Likewise.
20191         * modules/getndelim2-tests (Files): Likewise.
20192         * modules/glob-tests (Files): Likewise.
20193         * modules/hash-tests (Files): Likewise.
20194         * modules/i-ring-tests (Files): Likewise.
20195         * modules/iconv-tests (Files): Likewise.
20196         * modules/iconv_open-utf-tests (Files): Likewise.
20197         * modules/idpriv-drop-tests (Files): Likewise.
20198         * modules/idpriv-droptemp-tests (Files): Likewise.
20199         * modules/inet_ntop-tests (Files): Likewise.
20200         * modules/inet_pton-tests (Files): Likewise.
20201         * modules/isblank-tests (Files): Likewise.
20202         * modules/isfinite-tests (Files): Likewise.
20203         * modules/isinf-tests (Files): Likewise.
20204         * modules/isnan-tests (Files): Likewise.
20205         * modules/isnand-nolibm-tests (Files): Likewise.
20206         * modules/isnand-tests (Files): Likewise.
20207         * modules/isnanf-nolibm-tests (Files): Likewise.
20208         * modules/isnanf-tests (Files): Likewise.
20209         * modules/isnanl-nolibm-tests (Files): Likewise.
20210         * modules/isnanl-tests (Files): Likewise.
20211         * modules/lchown-tests (Files): Likewise.
20212         * modules/ldexpl-tests (Files): Likewise.
20213         * modules/link-tests (Files): Likewise.
20214         * modules/linkat-tests (Files): Likewise.
20215         * modules/linked-list-tests (Files): Likewise.
20216         * modules/linkedhash-list-tests (Files): Likewise.
20217         * modules/localename-tests (Files): Likewise.
20218         * modules/lseek-tests (Files): Likewise.
20219         * modules/lstat-tests (Files): Likewise.
20220         * modules/mbmemcasecmp-tests (Files): Likewise.
20221         * modules/mbmemcasecoll-tests (Files): Likewise.
20222         * modules/mbrtowc-tests (Files): Likewise.
20223         * modules/mbscasecmp-tests (Files): Likewise.
20224         * modules/mbscasestr-tests (Files): Likewise.
20225         * modules/mbschr-tests (Files): Likewise.
20226         * modules/mbscspn-tests (Files): Likewise.
20227         * modules/mbsinit-tests (Files): Likewise.
20228         * modules/mbsncasecmp-tests (Files): Likewise.
20229         * modules/mbsnrtowcs-tests (Files): Likewise.
20230         * modules/mbspbrk-tests (Files): Likewise.
20231         * modules/mbspcasecmp-tests (Files): Likewise.
20232         * modules/mbsrchr-tests (Files): Likewise.
20233         * modules/mbsrtowcs-tests (Files): Likewise.
20234         * modules/mbsspn-tests (Files): Likewise.
20235         * modules/mbsstr-tests (Files): Likewise.
20236         * modules/memchr-tests (Files): Likewise.
20237         * modules/memchr2-tests (Files): Likewise.
20238         * modules/memcmp-tests (Files): Likewise.
20239         * modules/memmem-tests (Files): Likewise.
20240         * modules/memrchr-tests (Files): Likewise.
20241         * modules/mkdir-tests (Files): Likewise.
20242         * modules/mkfifo-tests (Files): Likewise.
20243         * modules/mkfifoat-tests (Files): Likewise.
20244         * modules/mknod-tests (Files): Likewise.
20245         * modules/nanosleep-tests (Files): Likewise.
20246         * modules/nl_langinfo-tests (Files): Likewise.
20247         * modules/obstack-printf-tests (Files): Likewise.
20248         * modules/open-tests (Files): Likewise.
20249         * modules/openat-tests (Files): Likewise.
20250         * modules/pipe-filter-gi-tests (Files): Likewise.
20251         * modules/pipe-filter-ii-tests (Files): Likewise.
20252         * modules/pipe2-tests (Files): Likewise.
20253         * modules/popen-safer-tests (Files): Likewise.
20254         * modules/popen-tests (Files): Likewise.
20255         * modules/posixtm-tests (Files): Likewise.
20256         * modules/pread-tests (Files): Likewise.
20257         * modules/printf-frexp-tests (Files): Likewise.
20258         * modules/printf-frexpl-tests (Files): Likewise.
20259         * modules/printf-posix-tests (Files): Likewise.
20260         * modules/priv-set-tests (Files): Likewise.
20261         * modules/quotearg-tests (Files): Likewise.
20262         * modules/random_r-tests (Files): Likewise.
20263         * modules/rawmemchr-tests (Files): Likewise.
20264         * modules/rbtree-list-tests (Files): Likewise.
20265         * modules/rbtree-oset-tests (Files): Likewise.
20266         * modules/rbtreehash-list-tests (Files): Likewise.
20267         * modules/readlink-tests (Files): Likewise.
20268         * modules/remove-tests (Files): Likewise.
20269         * modules/rename-tests (Files): Likewise.
20270         * modules/renameat-tests (Files): Likewise.
20271         * modules/rmdir-tests (Files): Likewise.
20272         * modules/round-tests (Files): Likewise.
20273         * modules/roundf-tests (Files): Likewise.
20274         * modules/roundl-tests (Files): Likewise.
20275         * modules/safe-alloc-tests (Files): Likewise.
20276         * modules/setenv-tests (Files): Likewise.
20277         * modules/sigaction-tests (Files): Likewise.
20278         * modules/signbit-tests (Files): Likewise.
20279         * modules/sleep-tests (Files): Likewise.
20280         * modules/snprintf-posix-tests (Files): Likewise.
20281         * modules/snprintf-tests (Files): Likewise.
20282         * modules/sprintf-posix-tests (Files): Likewise.
20283         * modules/stat-tests (Files): Likewise.
20284         * modules/stat-time-tests (Files): Likewise.
20285         * modules/strcasestr-tests (Files): Likewise.
20286         * modules/strchrnul-tests (Files): Likewise.
20287         * modules/strerror-tests (Files): Likewise.
20288         * modules/striconv-tests (Files): Likewise.
20289         * modules/striconveh-tests (Files): Likewise.
20290         * modules/striconveha-tests (Files): Likewise.
20291         * modules/strsignal-tests (Files): Likewise.
20292         * modules/strstr-tests (Files): Likewise.
20293         * modules/strtod-tests (Files): Likewise.
20294         * modules/strverscmp-tests (Files): Likewise.
20295         * modules/symlink-tests (Files): Likewise.
20296         * modules/symlinkat-tests (Files): Likewise.
20297         * modules/trunc-tests (Files): Likewise.
20298         * modules/truncf-tests (Files): Likewise.
20299         * modules/truncl-tests (Files): Likewise.
20300         * modules/uname-tests (Files): Likewise.
20301         * modules/unicase/cased-tests (Files): Likewise.
20302         * modules/unicase/ignorable-tests (Files): Likewise.
20303         * modules/unicase/locale-language-tests (Files): Likewise.
20304         * modules/unicase/tolower-tests (Files): Likewise.
20305         * modules/unicase/totitle-tests (Files): Likewise.
20306         * modules/unicase/toupper-tests (Files): Likewise.
20307         * modules/unicase/u8-casecmp-tests (Files): Likewise.
20308         * modules/unicase/u8-casecoll-tests (Files): Likewise.
20309         * modules/unicase/u8-casefold-tests (Files): Likewise.
20310         * modules/unicase/u8-is-cased-tests (Files): Likewise.
20311         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
20312         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
20313         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
20314         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
20315         * modules/unicase/u8-tolower-tests (Files): Likewise.
20316         * modules/unicase/u8-totitle-tests (Files): Likewise.
20317         * modules/unicase/u8-toupper-tests (Files): Likewise.
20318         * modules/unicase/u16-casecmp-tests (Files): Likewise.
20319         * modules/unicase/u16-casecoll-tests (Files): Likewise.
20320         * modules/unicase/u16-casefold-tests (Files): Likewise.
20321         * modules/unicase/u16-is-cased-tests (Files): Likewise.
20322         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
20323         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
20324         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
20325         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
20326         * modules/unicase/u16-tolower-tests (Files): Likewise.
20327         * modules/unicase/u16-totitle-tests (Files): Likewise.
20328         * modules/unicase/u16-toupper-tests (Files): Likewise.
20329         * modules/unicase/u32-casecmp-tests (Files): Likewise.
20330         * modules/unicase/u32-casecoll-tests (Files): Likewise.
20331         * modules/unicase/u32-casefold-tests (Files): Likewise.
20332         * modules/unicase/u32-is-cased-tests (Files): Likewise.
20333         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
20334         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
20335         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
20336         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
20337         * modules/unicase/u32-tolower-tests (Files): Likewise.
20338         * modules/unicase/u32-totitle-tests (Files): Likewise.
20339         * modules/unicase/u32-toupper-tests (Files): Likewise.
20340         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
20341         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
20342         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
20343         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
20344         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
20345         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
20346         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
20347         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
20348         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
20349         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
20350         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
20351         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
20352         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
20353         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
20354         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
20355         * modules/unictype/bidicategory-name-tests (Files): Likewise.
20356         * modules/unictype/bidicategory-of-tests (Files): Likewise.
20357         * modules/unictype/bidicategory-test-tests (Files): Likewise.
20358         * modules/unictype/block-list-tests (Files): Likewise.
20359         * modules/unictype/block-of-tests (Files): Likewise.
20360         * modules/unictype/block-test-tests (Files): Likewise.
20361         * modules/unictype/category-C-tests (Files): Likewise.
20362         * modules/unictype/category-Cc-tests (Files): Likewise.
20363         * modules/unictype/category-Cf-tests (Files): Likewise.
20364         * modules/unictype/category-Cn-tests (Files): Likewise.
20365         * modules/unictype/category-Co-tests (Files): Likewise.
20366         * modules/unictype/category-Cs-tests (Files): Likewise.
20367         * modules/unictype/category-L-tests (Files): Likewise.
20368         * modules/unictype/category-Ll-tests (Files): Likewise.
20369         * modules/unictype/category-Lm-tests (Files): Likewise.
20370         * modules/unictype/category-Lo-tests (Files): Likewise.
20371         * modules/unictype/category-Lt-tests (Files): Likewise.
20372         * modules/unictype/category-Lu-tests (Files): Likewise.
20373         * modules/unictype/category-M-tests (Files): Likewise.
20374         * modules/unictype/category-Mc-tests (Files): Likewise.
20375         * modules/unictype/category-Me-tests (Files): Likewise.
20376         * modules/unictype/category-Mn-tests (Files): Likewise.
20377         * modules/unictype/category-N-tests (Files): Likewise.
20378         * modules/unictype/category-Nd-tests (Files): Likewise.
20379         * modules/unictype/category-Nl-tests (Files): Likewise.
20380         * modules/unictype/category-No-tests (Files): Likewise.
20381         * modules/unictype/category-P-tests (Files): Likewise.
20382         * modules/unictype/category-Pc-tests (Files): Likewise.
20383         * modules/unictype/category-Pd-tests (Files): Likewise.
20384         * modules/unictype/category-Pe-tests (Files): Likewise.
20385         * modules/unictype/category-Pf-tests (Files): Likewise.
20386         * modules/unictype/category-Pi-tests (Files): Likewise.
20387         * modules/unictype/category-Po-tests (Files): Likewise.
20388         * modules/unictype/category-Ps-tests (Files): Likewise.
20389         * modules/unictype/category-S-tests (Files): Likewise.
20390         * modules/unictype/category-Sc-tests (Files): Likewise.
20391         * modules/unictype/category-Sk-tests (Files): Likewise.
20392         * modules/unictype/category-Sm-tests (Files): Likewise.
20393         * modules/unictype/category-So-tests (Files): Likewise.
20394         * modules/unictype/category-Z-tests (Files): Likewise.
20395         * modules/unictype/category-Zl-tests (Files): Likewise.
20396         * modules/unictype/category-Zp-tests (Files): Likewise.
20397         * modules/unictype/category-Zs-tests (Files): Likewise.
20398         * modules/unictype/category-and-not-tests (Files): Likewise.
20399         * modules/unictype/category-and-tests (Files): Likewise.
20400         * modules/unictype/category-byname-tests (Files): Likewise.
20401         * modules/unictype/category-name-tests (Files): Likewise.
20402         * modules/unictype/category-none-tests (Files): Likewise.
20403         * modules/unictype/category-of-tests (Files): Likewise.
20404         * modules/unictype/category-or-tests (Files): Likewise.
20405         * modules/unictype/category-test-withtable-tests (Files): Likewise.
20406         * modules/unictype/combining-class-tests (Files): Likewise.
20407         * modules/unictype/ctype-alnum-tests (Files): Likewise.
20408         * modules/unictype/ctype-alpha-tests (Files): Likewise.
20409         * modules/unictype/ctype-blank-tests (Files): Likewise.
20410         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
20411         * modules/unictype/ctype-digit-tests (Files): Likewise.
20412         * modules/unictype/ctype-graph-tests (Files): Likewise.
20413         * modules/unictype/ctype-lower-tests (Files): Likewise.
20414         * modules/unictype/ctype-print-tests (Files): Likewise.
20415         * modules/unictype/ctype-punct-tests (Files): Likewise.
20416         * modules/unictype/ctype-space-tests (Files): Likewise.
20417         * modules/unictype/ctype-upper-tests (Files): Likewise.
20418         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
20419         * modules/unictype/decimal-digit-tests (Files): Likewise.
20420         * modules/unictype/digit-tests (Files): Likewise.
20421         * modules/unictype/mirror-tests (Files): Likewise.
20422         * modules/unictype/numeric-tests (Files): Likewise.
20423         * modules/unictype/property-alphabetic-tests (Files): Likewise.
20424         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
20425         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
20426         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
20427         Likewise.
20428         * modules/unictype/property-bidi-block-separator-tests (Files):
20429         Likewise.
20430         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
20431         Likewise.
20432         * modules/unictype/property-bidi-common-separator-tests (Files):
20433         Likewise.
20434         * modules/unictype/property-bidi-control-tests (Files): Likewise.
20435         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
20436         Likewise.
20437         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
20438         Likewise.
20439         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
20440         Likewise.
20441         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
20442         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
20443         Likewise.
20444         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
20445         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
20446         Likewise.
20447         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
20448         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
20449         * modules/unictype/property-bidi-segment-separator-tests (Files):
20450         Likewise.
20451         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
20452         * modules/unictype/property-byname-tests (Files): Likewise.
20453         * modules/unictype/property-combining-tests (Files): Likewise.
20454         * modules/unictype/property-composite-tests (Files): Likewise.
20455         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
20456         * modules/unictype/property-dash-tests (Files): Likewise.
20457         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
20458         * modules/unictype/property-default-ignorable-code-point-tests (Files):
20459         Likewise.
20460         * modules/unictype/property-deprecated-tests (Files): Likewise.
20461         * modules/unictype/property-diacritic-tests (Files): Likewise.
20462         * modules/unictype/property-extender-tests (Files): Likewise.
20463         * modules/unictype/property-format-control-tests (Files): Likewise.
20464         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
20465         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
20466         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
20467         * modules/unictype/property-hex-digit-tests (Files): Likewise.
20468         * modules/unictype/property-hyphen-tests (Files): Likewise.
20469         * modules/unictype/property-id-continue-tests (Files): Likewise.
20470         * modules/unictype/property-id-start-tests (Files): Likewise.
20471         * modules/unictype/property-ideographic-tests (Files): Likewise.
20472         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
20473         * modules/unictype/property-ids-trinary-operator-tests (Files):
20474         Likewise.
20475         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
20476         * modules/unictype/property-iso-control-tests (Files): Likewise.
20477         * modules/unictype/property-join-control-tests (Files): Likewise.
20478         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
20479         * modules/unictype/property-line-separator-tests (Files): Likewise.
20480         * modules/unictype/property-logical-order-exception-tests (Files):
20481         Likewise.
20482         * modules/unictype/property-lowercase-tests (Files): Likewise.
20483         * modules/unictype/property-math-tests (Files): Likewise.
20484         * modules/unictype/property-non-break-tests (Files): Likewise.
20485         * modules/unictype/property-not-a-character-tests (Files): Likewise.
20486         * modules/unictype/property-numeric-tests (Files): Likewise.
20487         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
20488         * modules/unictype/property-other-default-ignorable-code-point-tests
20489         (Files): Likewise.
20490         * modules/unictype/property-other-grapheme-extend-tests (Files):
20491         Likewise.
20492         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
20493         * modules/unictype/property-other-id-start-tests (Files): Likewise.
20494         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
20495         * modules/unictype/property-other-math-tests (Files): Likewise.
20496         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
20497         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
20498         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
20499         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
20500         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
20501         * modules/unictype/property-private-use-tests (Files): Likewise.
20502         * modules/unictype/property-punctuation-tests (Files): Likewise.
20503         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
20504         * modules/unictype/property-radical-tests (Files): Likewise.
20505         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
20506         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
20507         * modules/unictype/property-space-tests (Files): Likewise.
20508         * modules/unictype/property-terminal-punctuation-tests (Files):
20509         Likewise.
20510         * modules/unictype/property-test-tests (Files): Likewise.
20511         * modules/unictype/property-titlecase-tests (Files): Likewise.
20512         * modules/unictype/property-unassigned-code-value-tests (Files):
20513         Likewise.
20514         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
20515         * modules/unictype/property-uppercase-tests (Files): Likewise.
20516         * modules/unictype/property-variation-selector-tests (Files): Likewise.
20517         * modules/unictype/property-white-space-tests (Files): Likewise.
20518         * modules/unictype/property-xid-continue-tests (Files): Likewise.
20519         * modules/unictype/property-xid-start-tests (Files): Likewise.
20520         * modules/unictype/property-zero-width-tests (Files): Likewise.
20521         * modules/unictype/scripts-tests (Files): Likewise.
20522         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
20523         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
20524         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
20525         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
20526         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
20527         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
20528         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
20529         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
20530         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
20531         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
20532         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
20533         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
20534         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
20535         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
20536         * modules/uninorm/composition-tests (Files): Likewise.
20537         * modules/uninorm/decomposing-form-tests (Files): Likewise.
20538         * modules/uninorm/decomposition-tests (Files): Likewise.
20539         * modules/uninorm/filter-tests (Files): Likewise.
20540         * modules/uninorm/nfc-tests (Files): Likewise.
20541         * modules/uninorm/nfd-tests (Files): Likewise.
20542         * modules/uninorm/nfkc-tests (Files): Likewise.
20543         * modules/uninorm/nfkd-tests (Files): Likewise.
20544         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
20545         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
20546         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
20547         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
20548         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
20549         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
20550         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
20551         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
20552         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
20553         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
20554         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
20555         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
20556         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
20557         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
20558         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
20559         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
20560         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
20561         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
20562         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
20563         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
20564         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
20565         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
20566         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
20567         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
20568         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
20569         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
20570         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
20571         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
20572         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
20573         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
20574         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
20575         * modules/uniwidth/u8-width-tests (Files): Likewise.
20576         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
20577         * modules/uniwidth/u16-width-tests (Files): Likewise.
20578         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
20579         * modules/uniwidth/u32-width-tests (Files): Likewise.
20580         * modules/uniwidth/width-tests (Files): Likewise.
20581         * modules/unlink-tests (Files): Likewise.
20582         * modules/unsetenv-tests (Files): Likewise.
20583         * modules/usleep-tests (Files): Likewise.
20584         * modules/utimens-tests (Files): Likewise.
20585         * modules/utimensat-tests (Files): Likewise.
20586         * modules/vasnprintf-posix-tests (Files): Likewise.
20587         * modules/vasnprintf-tests (Files): Likewise.
20588         * modules/vasprintf-posix-tests (Files): Likewise.
20589         * modules/vasprintf-tests (Files): Likewise.
20590         * modules/vdprintf-posix-tests (Files): Likewise.
20591         * modules/vfprintf-posix-tests (Files): Likewise.
20592         * modules/vprintf-posix-tests (Files): Likewise.
20593         * modules/vsnprintf-posix-tests (Files): Likewise.
20594         * modules/vsnprintf-tests (Files): Likewise.
20595         * modules/vsprintf-posix-tests (Files): Likewise.
20596         * modules/wcrtomb-tests (Files): Likewise.
20597         * modules/wcsnrtombs-tests (Files): Likewise.
20598         * modules/wcsrtombs-tests (Files): Likewise.
20599         * modules/wctype-tests (Files): Likewise.
20600         * modules/wcwidth-tests (Files): Likewise.
20601         * modules/xmemdup0-tests (Files): Likewise.
20602         * modules/xprintf-posix-tests (Files): Likewise.
20603         * modules/xvasprintf-tests (Files): Likewise.
20604
20605 2009-12-24  Eric Blake  <ebb9@byu.net>
20606
20607         test-nanosleep: fix typo
20608         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
20609         patch.
20610         Reported by Bruno Haible.
20611
20612 2009-12-24  Bruno Haible  <bruno@clisp.org>
20613
20614         Reduce namespace pollution on glibc systems.
20615         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
20616         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
20617         systems.
20618         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
20619         <getopt.h> on glibc systems.
20620         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
20621         systems.
20622         * lib/fcntl.c: Include <unistd.h> here instead.
20623
20624 2009-12-24  Bruno Haible  <bruno@clisp.org>
20625
20626         * lib/stdlib.in.h (includes): Fix typo in today's commit.
20627
20628 2009-12-24  Eric Blake  <ebb9@byu.net>
20629
20630         tests: add signature checks
20631         * tests/signature.h (SIGNATURE_CHECK): New file.
20632         * modules/atexit-tests (Files): Use it.
20633         * modules/btowc-tests (Files): Likewise.
20634         * modules/canonicalize-lgpl-tests (Files): Likewise.
20635         * modules/ceilf-tests (Files): Likewise.
20636         * modules/ceill-tests (Files): Likewise.
20637         * modules/chown-tests (Files): Likewise.
20638         * modules/dprintf-posix-tests (Files): Likewise.
20639         * modules/dup2-tests (Files): Likewise.
20640         * modules/dup3-tests (Files): Likewise.
20641         * modules/duplocale-tests (Files): Likewise.
20642         * modules/fchdir-tests (Files): Likewise.
20643         * modules/fcntl-tests (Files): Likewise.
20644         * modules/fdopendir-tests (Files): Likewise.
20645         * modules/fflush-tests (Files): Likewise.
20646         * modules/flock-tests (Files): Likewise.
20647         * modules/floorf-tests (Files): Likewise.
20648         * modules/floorl-tests (Files): Likewise.
20649         * modules/fnmatch-tests (Files): Likewise.
20650         * modules/fopen-tests (Files): Likewise.
20651         * modules/fprintf-posix-tests (Files): Likewise.
20652         * modules/freopen-tests (Files): Likewise.
20653         * modules/frexp-nolibm-tests (Files): Likewise.
20654         * modules/frexp-tests (Files): Likewise.
20655         * modules/frexpl-nolibm-tests (Files): Likewise.
20656         * modules/frexpl-tests (Files): Likewise.
20657         * modules/fseek-tests (Files): Likewise.
20658         * modules/fseeko-tests (Files): Likewise.
20659         * modules/fsync-tests (Files): Likewise.
20660         * modules/ftell-tests (Files): Likewise.
20661         * modules/ftello-tests (Files): Likewise.
20662         * modules/futimens-tests (Files): Likewise.
20663         * modules/getaddrinfo-tests (Files): Likewise.
20664         * modules/getcwd-tests (Files): Likewise.
20665         * modules/getdelim-tests (Files): Likewise.
20666         * modules/getdtablesize-tests (Files): Likewise.
20667         * modules/getgroups-tests (Files): Likewise.
20668         * modules/gethostname-tests (Files): Likewise.
20669         * modules/getline-tests (Files): Likewise.
20670         * modules/getopt-posix-tests (Files): Likewise.
20671         * modules/gettimeofday-tests (Files): Likewise.
20672         * modules/glob-tests (Files): Likewise.
20673         * modules/iconv-tests (Files): Likewise.
20674         * modules/inet_ntop-tests (Files): Likewise.
20675         * modules/inet_pton-tests (Files): Likewise.
20676         * modules/isblank-tests (Files): Likewise.
20677         * modules/lchown-tests (Files): Likewise.
20678         * modules/ldexpl-tests (Files): Likewise.
20679         * modules/link-tests (Files): Likewise.
20680         * modules/linkat-tests (Files): Likewise.
20681         * modules/lseek-tests (Files): Likewise.
20682         * modules/lstat-tests (Files): Likewise.
20683         * modules/mbrtowc-tests (Files): Likewise.
20684         * modules/mbsinit-tests (Files): Likewise.
20685         * modules/mbsnrtowcs-tests (Files): Likewise.
20686         * modules/mbsrtowcs-tests (Files): Likewise.
20687         * modules/memchr-tests (Files): Likewise.
20688         * modules/memcmp-tests (Files): Likewise.
20689         * modules/memmem-tests (Files): Likewise.
20690         * modules/memrchr-tests (Files): Likewise.
20691         * modules/mkdir-tests (Files): Likewise.
20692         * modules/mkfifo-tests (Files): Likewise.
20693         * modules/mkfifoat-tests (Files): Likewise.
20694         * modules/mknod-tests (Files): Likewise.
20695         * modules/nanosleep-tests (Files): Likewise.
20696         * modules/nl_langinfo-tests (Files): Likewise.
20697         * modules/obstack-printf-tests (Files): Likewise.
20698         * modules/open-tests (Files): Likewise.
20699         * modules/openat-tests (Files): Likewise.
20700         * modules/perror-tests (Files): Likewise.
20701         * modules/pipe2-tests (Files): Likewise.
20702         * modules/poll-tests (Files): Likewise.
20703         * modules/popen-tests (Files): Likewise.
20704         * modules/posix_spawn-tests (Files): Likewise.
20705         * modules/posix_spawnp-tests (Files): Likewise.
20706         * modules/pread-tests (Files): Likewise.
20707         * modules/printf-posix-tests (Files): Likewise.
20708         * modules/pty-tests (Files): Likewise.
20709         * modules/random_r-tests (Files): Likewise.
20710         * modules/rawmemchr-tests (Files): Likewise.
20711         * modules/readlink-tests (Files): Likewise.
20712         * modules/remove-tests (Files): Likewise.
20713         * modules/rename-tests (Files): Likewise.
20714         * modules/renameat-tests (Files): Likewise.
20715         * modules/rmdir-tests (Files): Likewise.
20716         * modules/round-tests (Files): Likewise.
20717         * modules/roundf-tests (Files): Likewise.
20718         * modules/roundl-tests (Files): Likewise.
20719         * modules/select-tests (Files): Likewise.
20720         * modules/setenv-tests (Files): Likewise.
20721         * modules/sigaction-tests (Files): Likewise.
20722         * modules/sleep-tests (Files): Likewise.
20723         * modules/snprintf-posix-tests (Files): Likewise.
20724         * modules/snprintf-tests (Files): Likewise.
20725         * modules/sprintf-posix-tests (Files): Likewise.
20726         * modules/stat-tests (Files): Likewise.
20727         * modules/strcasestr-tests (Files): Likewise.
20728         * modules/strchrnul-tests (Files): Likewise.
20729         * modules/strerror-tests (Files): Likewise.
20730         * modules/strsignal-tests (Files): Likewise.
20731         * modules/strstr-tests (Files): Likewise.
20732         * modules/strtod-tests (Files): Likewise.
20733         * modules/strverscmp-tests (Files): Likewise.
20734         * modules/symlink-tests (Files): Likewise.
20735         * modules/symlinkat-tests (Files): Likewise.
20736         * modules/times-tests (Files): Likewise.
20737         * modules/trunc-tests (Files): Likewise.
20738         * modules/truncf-tests (Files): Likewise.
20739         * modules/truncl-tests (Files): Likewise.
20740         * modules/tsearch-tests (Files): Likewise.
20741         * modules/uname-tests (Files): Likewise.
20742         * modules/unlink-tests (Files): Likewise.
20743         * modules/unsetenv-tests (Files): Likewise.
20744         * modules/usleep-tests (Files): Likewise.
20745         * modules/utimensat-tests (Files): Likewise.
20746         * modules/vasprintf-tests (Files): Likewise.
20747         * modules/vdprintf-posix-tests (Files): Likewise.
20748         * modules/vfprintf-posix-tests (Files): Likewise.
20749         * modules/vprintf-posix-tests (Files): Likewise.
20750         * modules/vsnprintf-posix-tests (Files): Likewise.
20751         * modules/vsnprintf-tests (Files): Likewise.
20752         * modules/vsprintf-posix-tests (Files): Likewise.
20753         * modules/wcrtomb-tests (Files): Likewise.
20754         * modules/wcsnrtombs-tests (Files): Likewise.
20755         * modules/wcsrtombs-tests (Files): Likewise.
20756         * modules/wcwidth-tests (Files): Likewise.
20757         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
20758         * tests/test-isinf.c (isinf): Likewise.
20759         * tests/test-isnan.c (isnan): Likewise.
20760         * tests/test-signbit.c (signbit): Likewise.
20761         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
20762         declaration, either as macro or with correct signature.
20763         (select): Ensure function under test is declared with correct
20764         signature in correct header.
20765         * tests/test-atexit.c (atexit): Likewise.
20766         * tests/test-btowc.c (btowc): Likewise.
20767         * tests/test-canonicalize-lgpl.c (realpath)
20768         (canonicalize_file_name): Likewise.
20769         * tests/test-ceilf1.c (ceilf): Likewise.
20770         * tests/test-ceill.c (ceill): Likewise.
20771         * tests/test-chown.c (chown): Likewise.
20772         * tests/test-dprintf-posix.c (dprintf): Likewise.
20773         * tests/test-dup2.c (dup2): Likewise.
20774         * tests/test-dup3.c (dup3): Likewise.
20775         * tests/test-duplocale.c (duplocale): Likewise.
20776         * tests/test-fchdir.c (fchdir): Likewise.
20777         * tests/test-fchownat.c (fchownat): Likewise.
20778         * tests/test-fcntl.c (fcntl): Likewise.
20779         * tests/test-fdopendir.c (fdopendir): Likewise.
20780         * tests/test-fflush.c (fflush): Likewise.
20781         * tests/test-flock.c (flock): Likewise.
20782         * tests/test-floorf1.c (floorf): Likewise.
20783         * tests/test-floorl.c (floorl): Likewise.
20784         * tests/test-fnmatch.c (fnmatch): Likewise.
20785         * tests/test-fopen.c (fopen): Likewise.
20786         * tests/test-fprintf-posix.c (fprintf): Likewise.
20787         * tests/test-freopen.c (freopen): Likewise.
20788         * tests/test-frexp.c (frexp): Likewise.
20789         * tests/test-frexpl.c (frexpl): Likewise.
20790         * tests/test-fseek.c (fseek): Likewise.
20791         * tests/test-fseeko.c (fseeko): Likewise.
20792         * tests/test-fstatat.c (fstatat): Likewise.
20793         * tests/test-fsync.c (fsync): Likewise.
20794         * tests/test-ftell.c (ftell): Likewise.
20795         * tests/test-ftello.c (ftello): Likewise.
20796         * tests/test-futimens.c (futimens): Likewise.
20797         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
20798         (gai_strerror): Likewise.
20799         * tests/test-getcwd.c (getcwd): Likewise.
20800         * tests/test-getdelim.c (getdelim): Likewise.
20801         * tests/test-getdtablesize.c (getdtablesize): Likewise.
20802         * tests/test-getgroups.c (getgroups): Likewise.
20803         * tests/test-gethostname.c (gethostname): Likewise.
20804         * tests/test-getline.c (getline): Likewise.
20805         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
20806         Likewise.
20807         * tests/test-gettimeofday.c (gettimeofday): Likewise.
20808         * tests/test-glob.c (glob, globfree): Likewise.
20809         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
20810         * tests/test-inet_ntop.c (inet_ntop): Likewise.
20811         * tests/test-inet_pton.c (inet_pton): Likewise.
20812         * tests/test-isblank.c (isblank): Likewise.
20813         * tests/test-lchown.c (lchown): Likewise.
20814         * tests/test-ldexpl.c (ldexpl): Likewise.
20815         * tests/test-link.c (link): Likewise.
20816         * tests/test-linkat.c (linkat): Likewise.
20817         * tests/test-lseek.c (lseek): Likewise.
20818         * tests/test-lstat.c (lstat): Likewise.
20819         * tests/test-mbrtowc.c (mbrtowc): Likewise.
20820         * tests/test-mbsinit.c (mbsinit): Likewise.
20821         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
20822         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
20823         * tests/test-memchr.c (memchr): Likewise.
20824         * tests/test-memcmp.c (memcmp): Likewise.
20825         * tests/test-memmem.c (memmem): Likewise.
20826         * tests/test-memrchr.c (memrchr): Likewise.
20827         * tests/test-mkdir.c (mkdir): Likewise.
20828         * tests/test-mkdirat.c (mkdirat): Likewise.
20829         * tests/test-mkfifo.c (mkfifo): Likewise.
20830         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
20831         * tests/test-mknod.c (mknod): Likewise.
20832         * tests/test-nanosleep.c (nanosleep): Likewise.
20833         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
20834         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
20835         Likewise.
20836         * tests/test-open.c (open): Likewise.
20837         * tests/test-openat.c (openat): Likewise.
20838         * tests/test-perror.c (perror): Likewise.
20839         * tests/test-pipe2.c (pipe2): Likewise.
20840         * tests/test-poll.c (poll): Likewise.
20841         * tests/test-popen.c (popen, pclose): Likewise.
20842         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
20843         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
20844         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
20845         (posix_spawn_file_actions_destroy)
20846         (posix_spawn_file_actions_addclose)
20847         (posix_spawn_file_actions_addopen)
20848         (posix_spawn_file_actions_adddup2): Likewise.
20849         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
20850         * tests/test-pread.c (pread): Likewise.
20851         * tests/test-printf-posix.c (printf): Likewise.
20852         * tests/test-pty.c (openpty, forkpty): Likewise.
20853         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
20854         (random_r): Likewise.
20855         * tests/test-rawmemchr.c (rawmemchr): Likewise.
20856         * tests/test-readlink.c (readlink): Likewise.
20857         * tests/test-remove.c (remove): Likewise.
20858         * tests/test-rename.c (rename): Likewise.
20859         * tests/test-renameat.c (renameat): Likewise.
20860         * tests/test-rmdir.c (rmdir): Likewise.
20861         * tests/test-round1.c (round): Likewise.
20862         * tests/test-roundf1.c (roundf): Likewise.
20863         * tests/test-roundl.c (roundl): Likewise.
20864         * tests/test-setenv.c (setenv): Likewise.
20865         * tests/test-sigaction.c (sigaction): Likewise.
20866         * tests/test-sleep.c (sleep): Likewise.
20867         * tests/test-snprintf.c (snprintf): Likewise.
20868         * tests/test-sprintf-posix.c (sprintf): Likewise.
20869         * tests/test-stat.c (stat): Likewise.
20870         * tests/test-stpncpy.c (stpncpy): Likewise.
20871         * tests/test-strcasestr.c (strcasestr): Likewise.
20872         * tests/test-strchrnul.c (strchrnul): Likewise.
20873         * tests/test-strerror.c (strerror): Likewise.
20874         * tests/test-strsignal.c (strsignal): Likewise.
20875         * tests/test-strstr.c (strstr): Likewise.
20876         * tests/test-strtod.c (strtod): Likewise.
20877         * tests/test-strverscmp.c (strverscmp): Likewise.
20878         * tests/test-symlink.c (symlink): Likewise.
20879         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
20880         * tests/test-times.c (times): Likewise.
20881         * tests/test-trunc1.c (trunc): Likewise.
20882         * tests/test-truncf1.c (truncf): Likewise.
20883         * tests/test-truncl.c (truncl): Likewise.
20884         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
20885         Likewise.
20886         * tests/test-uname.c (uname): Likewise.
20887         * tests/test-unlink.c (unlink): Likewise.
20888         * tests/test-unlinkat.c (unlinkat): Likewise.
20889         * tests/test-unsetenv.c (unsetenv): Likewise.
20890         * tests/test-usleep.c (usleep): Likewise.
20891         * tests/test-utimensat.c (utimensat): Likewise.
20892         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
20893         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
20894         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
20895         * tests/test-vprintf-posix.c (vprintf): Likewise.
20896         * tests/test-vsnprintf.c (vsnprintf): Likewise.
20897         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
20898         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20899         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20900         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20901         * tests/test-wcwidth.c (wcwidth): Likewise.
20902
20903         build: pull in conditional headers during GNULIB_POSIXCHECK
20904         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
20905         definitions from any conditionally-included headers.
20906         * lib/stdlib.in.h (includes): Likewise.
20907         * lib/unistd.in.h (includes): Likewise.
20908
20909 2009-12-24  Bruno Haible  <bruno@clisp.org>
20910
20911         * tests/test-argv-iter.c: Include header file being tested immediately
20912         after config.h.
20913         * tests/test-base64.c: Likewise.
20914         * tests/test-flock.c: Likewise.
20915         * tests/test-fsync.c: Likewise.
20916         * tests/test-getdate.c: Likewise.
20917         * tests/test-getndelim2.c: Likewise.
20918         * tests/test-isfinite.c: Likewise.
20919         * tests/test-isinf.c: Likewise.
20920         * tests/test-strerror.c: Likewise.
20921         * tests/test-strsignal.c: Likewise.
20922
20923 2009-12-23  Eric Blake  <ebb9@byu.net>
20924
20925         unistd: work around cygwin bug
20926         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
20927         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
20928         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20929
20930 2009-12-23  Bruno Haible  <bruno@clisp.org>
20931
20932         localename: More tests.
20933         * tests/test-localename.c (SIZEOF): New macro.
20934         (categories): New variable.
20935         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
20936         test_locale_name_default): Add test w.r.t. thread locale.
20937         (test_locale_name_thread): New function.
20938         (main): Invoke it.
20939
20940         localename: Make aware of thread locale.
20941         * lib/localename.h (gl_locale_name_thread): New declaration.
20942         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
20943         behaviour with respect to thread locale.
20944         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
20945         <langinfo.h>, glthread/lock.h.
20946         (SIZE_BITS): New macro.
20947         (string_hash): New function.
20948         (struct hash_node): New type.
20949         (HASH_TABLE_SIZE): New macro.
20950         (struniq_hash_table, struniq_lock): New variables.
20951         (struniq): New function.
20952         (gl_locale_name_thread): New function.
20953         (gl_locale_name): Invoke it.
20954         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
20955         * modules/localename (Depends-on): Add lock.
20956         Reported by Mike Gran <spk121@yahoo.com>.
20957
20958 2009-12-23  Eric Blake  <ebb9@byu.net>
20959
20960         va-args: new module
20961         * modules/va-args: New file.
20962         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
20963         * MODULES.html.sh (Core language properties): Mention it.
20964
20965         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
20966         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
20967         named alias for __attribute__((__unused__)).
20968         * lib/chown.c: Update client.
20969         * lib/fchmodat.c: Likewise.
20970         * lib/fts.c: Likewise.
20971         * lib/getdate.y: Likewise.
20972         * lib/getgroups.c: Likewise.
20973         * lib/getopt.c: Likewise.
20974         * lib/getugroups.c: Likewise.
20975         * lib/mkdir.c: Likewise.
20976         * lib/mkfifo.c: Likewise.
20977         * lib/mkfifoat.c: Likewise.
20978         * lib/mknod.c: Likewise.
20979         * lib/mknodat.c: Likewise.
20980         * lib/readlink.c: Likewise.
20981         * lib/se-context.in.h: Likewise.
20982         * lib/se-selinux.in.h: Likewise.
20983         * lib/sockets.c: Likewise.
20984         * lib/symlink.c: Likewise.
20985         * lib/symlinkat.c: Likewise.
20986         * lib/unicodeio.c: Likewise.
20987         * lib/unistr.h: Likewise.
20988         * tests/test-areadlink.c: Likewise.
20989         * tests/test-areadlinkat.c: Likewise.
20990         * tests/test-filenamecat.c: Likewise.
20991         * tests/test-fseeko.c: Likewise.
20992         * tests/test-ftello.c: Likewise.
20993         * tests/test-getdate.c: Likewise.
20994         * tests/test-getgroups.c: Likewise.
20995         * tests/test-gethostname.c: Likewise.
20996         * tests/test-quotearg.c: Likewise.
20997         * tests/test-version-etc.c: Likewise.
20998         * tests/test-xalloc-die.c: Likewise.
20999         * tests/test-xfprintf-posix.c: Likewise.
21000         * tests/test-xprintf-posix.c: Likewise.
21001         * tests/test-xvasprintf.c: Likewise.
21002
21003         tests: avoid compiler warnings
21004         * tests/test-fcntl.c (main): Delete unused parameters.
21005         * tests/test-freopen-safer.c (main): Likewise.
21006         * tests/test-xalloc-die.c (main): Mark unused parameters.
21007         * tests/test-fseeko.c (main): Likewise.
21008         * tests/test-ftello.c (main): Likewise.
21009         * tests/test-nanosleep.c (main): Avoid declaration warning.
21010         * tests/test-sleep.c (main): Likewise.
21011         * tests/test-unsetenv.c (main): Silence warning about string
21012         literal.
21013         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21014
21015 2009-12-23  Bruno Haible  <bruno@clisp.org>
21016
21017         * tests/test-localename.c (test_locale_name): New function, extracted
21018         from main. Also test mixed situations.
21019         (test_locale_name_posix, test_locale_name_environ,
21020         test_locale_name_default): New functions.
21021         (main): Invoke them all.
21022         * modules/localename-tests (configure.ac): Test for newlocale.
21023
21024 2009-12-23  Bruno Haible  <bruno@clisp.org>
21025
21026         unistd: Ensure getcwd gets declared before being overridden.
21027         * lib/unistd.in.h: Conditionally include <io.h>.
21028
21029 2009-12-22  Bruno Haible  <bruno@clisp.org>
21030
21031         wchar: Diagnose broken combination of glibc and gcc versions and flags.
21032         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
21033         (gl_WCHAR_H): Invoke it.
21034         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
21035         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
21036         Reported by Karl Berry <karl@freefriends.org>.
21037
21038 2009-12-22  Eric Blake  <ebb9@byu.net>
21039
21040         math, unistd: avoid redundant includes
21041         * lib/math.in.h (isnan): No need to re-include <math.h>.
21042         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
21043
21044         getsubopt: work around cygwin bug
21045         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
21046         avoid conflicting with system getsubopt.
21047         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
21048         bug.
21049
21050         getopt: synchronize from glibc
21051         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
21052         parameter order.  Adjust all callers.
21053         (_getopt_internal_r, main): Adjust quoting in error messages.
21054         Drop considerations for outdated POSIX 1003.2 error message.
21055         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
21056         callers.
21057         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
21058
21059         test-getopt: test stderr behavior
21060         * modules/getopt-posix-tests (Depends-on): Add dup2.
21061         * tests/test-getopt.c (ASSERT): Avoid stderr.
21062         (main): Move stderr to a temporary file.
21063         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
21064         Instead, add parameter to inform caller if output occurred.
21065         (test_getopt): Adjust all existing tests to expect silence, and
21066         add new tests of leading ":".
21067         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21068         glibc shortcomings with leading "-:" or "+:" in optstring.
21069         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21070         Likewise.
21071         * doc/posix-functions/getopt.texi (getopt): Likewise.
21072
21073         test-getopt: enhance test
21074         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
21075         supports optind=0.
21076         * tests/test-getopt.c (OPTIND_MIN): Move...
21077         * tests/test-getopt.h (OPTIND_MIN): ...here.
21078         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
21079         Require that optind=0 works, since modern BSD supports it in
21080         addition to optreset, and since coreutils expects it.
21081         (test_getopt_long_only): New test.
21082         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21083         glibc shortcomings with 'W;', and enforcement of optind=0.
21084         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21085         Likewise.
21086
21087 2009-12-21  Bruno Haible  <bruno@clisp.org>
21088
21089         localename: Improvements for MacOS X and Cygwin.
21090         * lib/localename.h (gl_locale_name_environ): New declaration.
21091         * lib/localename.c (gl_locale_name_environ): New function, extracted from
21092         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
21093         (gl_locale_name_posix): Invoke it.
21094         (gl_locale_name_default): Add comments. Use Windows native API also on
21095         Cygwin.
21096
21097 2009-12-21  Bruno Haible  <bruno@clisp.org>
21098
21099         Update list of Win32 locale ids.
21100         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
21101         (LANG_SAMI): Renamed from LANG_SAAMI.
21102         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
21103         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
21104         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
21105         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
21106         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
21107         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
21108         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
21109         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
21110         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
21111         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
21112         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
21113         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
21114         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
21115         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
21116         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
21117         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
21118         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
21119         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
21120         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
21121         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
21122         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
21123         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
21124         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
21125         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
21126         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
21127         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
21128         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
21129         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
21130         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
21131         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
21132         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
21133         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
21134         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
21135         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
21136         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
21137         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
21138         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
21139         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
21140         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
21141         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
21142         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
21143         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
21144         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
21145         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
21146         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
21147         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
21148         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
21149         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
21150         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
21151         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
21152         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
21153         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
21154         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
21155         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
21156         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
21157         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
21158         Add more languages and countries for Sami, Sorbian. Add more countries
21159         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
21160         for Pashto. Change country for Syriac, Tswana.
21161
21162 2009-12-21  Eric Blake  <ebb9@byu.net>
21163
21164         test-utimens: avoid spurious failure
21165         * tests/test-chown.h (nap): Factor...
21166         * tests/nap.h: ...into new file.
21167         * tests/test-lchown.h (nap): Avoid duplication.
21168         * tests/test-utimens-common.h (nap): Use shared implementation,
21169         necessary on file systems with 1-second resolution.
21170         * modules/chown-tests (Files): Include new file.
21171         * modules/fdutimensat-tests (Files): Likewise.
21172         * modules/futimens-tests (Files): Likewise.
21173         * modules/lchown-tests (Files): Likewise.
21174         * modules/openat-tests (Files): Likewise.
21175         * modules/utimens-tests (Files): Likewise.
21176         * modules/utimensat-tests (Files): Likewise.
21177
21178 2009-12-19  Eric Blake  <ebb9@byu.net>
21179
21180         futimens, utimensat: work around Linux bug
21181         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
21182         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21183         * lib/utimensat.c (rpl_utimensat): Work around it.
21184         * lib/futimens.c (rpl_futimens): Adjust comment.
21185
21186         utimens: work around Linux ctime bug
21187         * lib/utimens.c (detect_ctime_bug): New helper function.
21188         (update_timespec): Differentiate between workaround needed for
21189         this bug vs. what is needed for systems that lack utimensat.
21190         (fdutimens, lutimens): Work around bug.
21191
21192         utimens: check for ctime update
21193         * tests/test-utimens-common.h (check_ctime): Define.
21194         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
21195         * tests/test-futimens.h (test_futimens): Likewise.
21196         * tests/test-lutimens.h (test_lutimens): Likewise.
21197         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21198         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21199
21200 2009-12-19  Bruno Haible  <bruno@clisp.org>
21201
21202         dprintf-posix: Check against memory leak fixed on 2009-12-15.
21203         * tests/test-dprintf-posix2.sh: New file.
21204         * tests/test-dprintf-posix2.c: New file.
21205         * modules/dprintf-posix-tests (Files): Add them.
21206         (configure.ac): Check for getrlimit and setrlimit.
21207         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21208
21209 2009-12-19  Bruno Haible  <bruno@clisp.org>
21210
21211         fprintf-posix: Check against memory leak fixed on 2009-12-15.
21212         * tests/test-fprintf-posix3.sh: New file.
21213         * tests/test-fprintf-posix3.c: New file.
21214         * modules/fprintf-posix-tests (Files): Add them.
21215         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21216
21217 2009-12-19  Eric Blake  <ebb9@byu.net>
21218
21219         dirfd: fix prototype
21220         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
21221         * lib/dirfd.c (dirfd): Likewise.
21222
21223         canonicalize: reduce memory usage
21224         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
21225         allocation to size.
21226         Reported by Solar Designer <solar@openwall.com>.
21227
21228 2009-12-19  Bruno Haible  <bruno@clisp.org>
21229
21230         New module attribute 'Applicability'.
21231         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
21232         * gnulib-tool: New option --extract-applicability.
21233         (func_usage): Document it.
21234         (sed_extract_prog): Recognize it.
21235         (func_get_applicability): New function.
21236         (func_import): Generalize handling of 'link-warning' module.
21237         * modules/link-warning (Applicability): New section.
21238         * modules/arg-nonnull (Applicability): New section.
21239         Repoted by Simon Josefsson <simon@josefsson.org>.
21240
21241 2009-12-19  Bruno Haible  <bruno@clisp.org>
21242
21243         fflush: tweak
21244         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
21245         * lib/fseeko.c (rpl_fseeko): Likewise.
21246
21247 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
21248
21249         * lib/gl_list.h: Fix typo in comment.
21250
21251 2009-12-16  Eric Blake  <ebb9@byu.net>
21252
21253         fcntl: use to simplify other modules
21254         * modules/cloexec (Depends-on): Add fcntl.
21255         * modules/fchdir (Depends-on): Likewise.
21256         * modules/fd-safer-flag (Depends-on): Likewise.
21257         * modules/unistd-safer (Depends-on): Likewise.
21258         * modules/dup3 (configure.ac): Set module indicator.
21259         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
21260         missing.
21261         * lib/fchdir.c (_gl_register_dup): Fix comment.
21262         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
21263         * lib/dup-safer.c (dup_safer): Likewise.
21264         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
21265         * lib/dup3.c (dup3): Likewise.
21266         * tests/test-fchdir.c (main): Enhance test.
21267         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
21268
21269         fcntl: port portions of fcntl to mingw
21270         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
21271         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
21272         replacement for mingw.
21273         * modules/fcntl (Description): Update.
21274         (Depends-on): Add dup2.
21275         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
21276         * modules/fcntl-h (Makefile.am): Substitute it.
21277         * lib/fcntl.in.h (fcntl): Update declaration.
21278         (F_DUPFD, F_GETFD): New macros, when needed.
21279         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21280         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
21281         * tests/test-fcntl.c (check_flags, main): Enhance test for items
21282         we now guarantee.
21283
21284         fcntl: work around cygwin bug in F_DUPFD
21285         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
21286         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
21287         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
21288         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
21289         * doc/posix-functions/fcntl.texi (fcntl): Document it.
21290
21291         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
21292         * modules/fcntl (Files): List new files.
21293         (configure.ac): Run a test.
21294         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
21295         * lib/fcntl.c (rpl_fcntl): Likewise.
21296         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
21297         (gl_FCNTL_H): Always replace fcntl.h.
21298         * modules/fcntl-h (Makefile.am): Substitute witnesses.
21299         * lib/fcntl.in.h (fcntl): Declare replacement.
21300         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
21301         needed, plus a witness.
21302         * doc/posix-functions/fcntl.texi (fcntl): Document this.
21303         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21304         * tests/test-fcntl.c: New file.
21305         * modules/fcntl-tests: Likewise.
21306
21307         binary-io: avoid potential compilation warning
21308         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
21309         directives.
21310
21311         fflush: avoid compilation error on NetBSD
21312         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
21313         between off_t and fpos_t, since the latter is sometimes a struct.
21314         * lib/fseeko.c (rpl_fseeko): Likewise.
21315         Reported by Alexander Nasonov <alnsn@yandex.ru>.
21316
21317 2009-12-15  Eric Blake  <ebb9@byu.net>
21318
21319         fcntl-h, stdio, sys_ioctl: fix declarations
21320         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
21321         function must not take arguments.
21322         * lib/sys_ioctl.in.h (ioctl): Likewise.
21323         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
21324         (open): Add a link warning.
21325
21326 2009-12-15  Jim Meyering  <meyering@redhat.com>
21327
21328         areadlink, areadlink-with-size: relax license to LGPLv2+
21329         * modules/areadlink (License): Relax to LGPLv2+.
21330         * modules/areadlink-with-size (License): Likewise.
21331
21332 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
21333             Bruno Haible  <bruno@clisp.org>
21334
21335         *printf: Fix memory leak.
21336         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
21337         * lib/vfprintf.c (vfprintf): Likewise.
21338         * lib/dprintf.c (dprintf): Likewise.
21339         * lib/vdprintf.c (vdprintf): Likewise.
21340
21341 2009-12-14  Eric Blake  <ebb9@byu.net>
21342
21343         accept4: adjust module dependencies
21344         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
21345
21346         utimens: one more try at avoiding compiler warning
21347         * lib/utimens.c (lutimens): Lower scope of result.
21348
21349 2009-12-13  Bruno Haible  <bruno@clisp.org>
21350
21351         Move the malloc checking from module 'list' to new module 'xlist'.
21352         * modules/xlist: New file.
21353         * lib/gl_xlist.h: New file.
21354         * lib/gl_xlist.c: New file.
21355         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
21356         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
21357         gl_list_add_last, gl_list_add_before, gl_list_add_after,
21358         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
21359         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
21360         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
21361         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
21362         gl_sortedlist_nx_add): New declarations.
21363         (struct gl_list_implementation): Rename and change methods accordingly.
21364         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
21365         (gl_list_nx_create): Renamed from gl_list_create.
21366         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21367         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21368         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21369         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21370         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21371         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21372         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21373         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21374         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
21375         gl_list_create_empty.
21376         (gl_list_nx_create): Renamed from gl_list_create.
21377         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21378         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21379         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21380         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21381         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21382         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21383         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21384         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21385         * lib/gl_array_list.c: Don't include xalloc.h.
21386         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
21387         NULL upon out-of-memory.
21388         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
21389         out-of-memory.
21390         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
21391         Change return type to 'int'.
21392         (gl_array_nx_set_at): Renamed from gl_array_set_at.
21393         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21394         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
21395         upon out-of-memory.
21396         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
21397         upon out-of-memory.
21398         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
21399         upon out-of-memory.
21400         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
21401         upon out-of-memory.
21402         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
21403         out-of-memory.
21404         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
21405         Update.
21406         (gl_array_list_implementation): Update.
21407         * lib/gl_carray_list.c: Don't include xalloc.h.
21408         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
21409         Return NULL upon out-of-memory.
21410         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
21411         out-of-memory.
21412         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
21413         Change return type to 'int'.
21414         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
21415         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21416         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
21417         upon out-of-memory.
21418         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
21419         upon out-of-memory.
21420         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
21421         out-of-memory.
21422         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
21423         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
21424         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
21425         Update.
21426         (gl_carray_list_implementation): Update.
21427         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
21428         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
21429         gl_linked_create_empty. Return NULL upon out-of-memory.
21430         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
21431         out-of-memory.
21432         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
21433         Change return type to 'int'. Return -1 upon out-of-memory.
21434         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
21435         out-of-memory.
21436         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
21437         upon out-of-memory.
21438         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
21439         upon out-of-memory.
21440         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
21441         NULL upon out-of-memory.
21442         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
21443         upon out-of-memory.
21444         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
21445         out-of-memory.
21446         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
21447         Update.
21448         * lib/gl_linked_list.c: Don't include xalloc.h.
21449         (gl_linked_list_implementation): Update.
21450         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
21451         (add_to_bucket): Change return type to 'int'.
21452         (gl_linkedhash_list_implementation): Update.
21453         * lib/gl_anytree_list1.h (free_subtree): New function.
21454         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
21455         gl_tree_create_empty. Return NULL upon out-of-memory.
21456         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
21457         Change return type to 'int'. Return -1 upon out-of-memory.
21458         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
21459         out-of-memory.
21460         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
21461         (gl_tree_remove_node): New function, moved here from
21462         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
21463         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
21464         Update.
21465         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
21466         malloc, not xmalloc. Return NULL upon out-of-memory.
21467         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21468         out-of-memory.
21469         (gl_tree_remove_node_from_tree): New function, extracted from
21470         gl_tree_remove_node.
21471         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21472         upon out-of-memory.
21473         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21474         out-of-memory.
21475         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21476         upon out-of-memory.
21477         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21478         upon out-of-memory.
21479         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21480         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
21481         not xmalloc. Return NULL upon out-of-memory.
21482         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21483         out-of-memory.
21484         (gl_tree_remove_node_from_tree): New function, extracted from
21485         gl_tree_remove_node.
21486         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21487         upon out-of-memory.
21488         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21489         out-of-memory.
21490         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21491         upon out-of-memory.
21492         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21493         upon out-of-memory.
21494         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21495         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
21496         gl_anytree_list1.h before gl_anyavltree_list2.h.
21497         (gl_avltree_list_implementation): Update.
21498         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
21499         gl_anytree_list1.h before gl_anyavltree_list2.h.
21500         (gl_rbtree_list_implementation): Update.
21501         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
21502         Change return type to 'int'. Return -1 upon out-of-memory. Use
21503         __builtin_expect.
21504         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
21505         (gl_avltreehash_list_implementation): Update.
21506         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
21507         (gl_rbtreehash_list_implementation): Update.
21508         * modules/array-list (Depends-on): Remove xalloc.
21509         * modules/carray-list (Depends-on): Likewise.
21510         * modules/linked-list (Depends-on): Likewise.
21511         * modules/linkedhash-list (Depends-on): Likewise.
21512         * modules/avltree-list (Depends-on): Likewise.
21513         * modules/rbtree-list (Depends-on): Likewise.
21514         * modules/avltreehash-list (Depends-on): Likewise.
21515         * modules/rbtreehash-list (Depends-on): Likewise.
21516
21517         * modules/xsublist: New file.
21518         * lib/gl_xsublist.h: New file.
21519         * lib/gl_xsublist.c: New file.
21520         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
21521         (gl_sublist_nx_create): New declaration.
21522         * lib/gl_sublist.c: Don't include xalloc.h.
21523         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
21524         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
21525         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
21526         Change return type to 'int'. Return -1 upon out-of-memory.
21527         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
21528         upon out-of-memory.
21529         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
21530         NULL upon out-of-memory.
21531         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
21532         upon out-of-memory.
21533         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
21534         NULL upon out-of-memory.
21535         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
21536         NULL upon out-of-memory.
21537         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
21538         upon out-of-memory.
21539         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
21540         (gl_sublist_list_implementation): Update.
21541         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
21542         upon out-of-memory.
21543         * modules/sublist (Depends-on): Remove xalloc.
21544
21545         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
21546         * tests/test-carray_list.c: Likewise.
21547         * tests/test-linked_list.c: Likewise.
21548         * tests/test-linkedhash_list.c: Likewise.
21549         * tests/test-avltree_list.c: Likewise.
21550         * tests/test-rbtree_list.c: Likewise.
21551         * tests/test-avltreehash_list.c: Likewise.
21552         * tests/test-rbtreehash_list.c: Likewise.
21553         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
21554         * modules/carray-list-tests (Makefile.am): Likewise.
21555         * modules/linked-list-tests (Makefile.am): Likewise.
21556         * modules/linkedhash-list-tests (Makefile.am): Likewise.
21557         * modules/avltree-list-tests (Makefile.am): Likewise.
21558         * modules/rbtree-list-tests (Makefile.am): Likewise.
21559         * modules/avltreehash-list-tests (Makefile.am): Likewise.
21560         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
21561
21562         * NEWS: Mention the changes.
21563
21564         * lib/clean-temp.c: Include gl_xlist.h.
21565         * modules/clean-temp (Depends-on): Add xlist.
21566
21567         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
21568         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
21569
21570         * tests/test-array_oset.c: Include gl_xlist.h.
21571         * modules/array-oset-tests (Depends-on): Add xlist.
21572
21573         Reported by José E. Marchesi <jemarch@gnu.org>.
21574
21575 2009-12-13  Bruno Haible  <bruno@clisp.org>
21576
21577         Move the malloc checking from module 'oset' to new module 'xoset'.
21578         * modules/xoset: New file.
21579         * lib/gl_xoset.h: New file.
21580         * lib/gl_xoset.c: New file.
21581         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
21582         declarations.
21583         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
21584         (struct gl_oset_implementation): Rename and change methods accordingly.
21585         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
21586         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21587         'int'. Mark as __warn_unused_result__.
21588         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
21589         gl_oset_create_empty.
21590         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21591         'int'.
21592         * lib/gl_array_oset.c: Don't include xalloc.h.
21593         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
21594         malloc, not xmalloc.
21595         (grow): Change return type to 'int'. Don't call xalloc_die.
21596         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
21597         to 'int'.
21598         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
21599         'int'.
21600         (gl_array_oset_implementation): Update.
21601         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
21602         gl_tree_create_empty.
21603         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
21604         'int'.
21605         * lib/gl_avltree_oset.c: Don't include xalloc.h.
21606         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21607         xmalloc.
21608         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21609         not xmalloc.
21610         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21611         xmalloc.
21612         (gl_avltree_oset_implementation): Update.
21613         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
21614         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21615         xmalloc.
21616         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21617         not xmalloc.
21618         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21619         xmalloc.
21620         (gl_rbtree_oset_implementation): Update.
21621         * modules/array-oset (Depends-on): Remove xalloc.
21622         * modules/avltree-oset (Depends-on): Likewise.
21623         * modules/rbtree-oset (Depends-on): Likewise.
21624         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
21625         * tests/test-avltree_oset.c: Likewise.
21626         * tests/test-rbtree_oset.c: Likewise.
21627         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21628         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
21629         * modules/rbtree-oset-tests (Makefile.am): Likewise.
21630         * NEWS: Mention the change.
21631
21632 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
21633
21634         maint.mk: allow a project to override release-prep commands
21635         * top/maint.mk (alpha, beta, stable): Move release-preparatory
21636         commands into a new rule.
21637         (release-prep): New rule.
21638         (release-prep-hook): New overridable variable.
21639
21640 2009-12-13  Bruno Haible  <bruno@clisp.org>
21641
21642         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
21643
21644 2009-12-13  Jim Meyering  <meyering@redhat.com>
21645
21646         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
21647         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
21648
21649 2009-12-12  Bruno Haible  <bruno@clisp.org>
21650
21651         duplocale: Tweak.
21652         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
21653
21654 2009-12-12  Karl Berry  <karl@gnu.org>
21655
21656         * config/srclist.txt (strtoll.c): tab changes, no more sync.
21657
21658 2009-12-12  Bruno Haible  <bruno@clisp.org>
21659
21660         * m4/po.m4: Undo incorrect untabification.
21661
21662 2009-12-12  Bruno Haible  <bruno@clisp.org>
21663
21664         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
21665         * modules/c-strtod (Depends-on): Add locale.
21666         * modules/c-strtold (Depends-on): Likewise.
21667
21668 2009-12-12  Bruno Haible  <bruno@clisp.org>
21669
21670         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
21671
21672 2009-12-11  Eric Blake  <ebb9@byu.net>
21673
21674         setenv: relax requirement in light of POSIX ruling
21675         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
21676         not NULL.
21677         * tests/test-setenv.c (main): Relax test.
21678         * tests/test-unsetenv.c (main): Likewise.
21679         * doc/posix-functions/setenv.texi (setenv): Document this.
21680         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21681
21682 2009-12-11  Bruno Haible  <bruno@clisp.org>
21683
21684         New module 'fd-safer-flag'.
21685         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
21686         * lib/dup-safer.c (dup_safer_flag): Remove function.
21687         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
21688         * lib/fd-safer.c (fd_safer_flag): Remove function.
21689         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
21690         * modules/cloexec (configure.ac): Drop indicator macro.
21691         * modules/fd-safer-flag: New file.
21692         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
21693         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
21694         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
21695
21696 2009-12-11  Bruno Haible  <bruno@clisp.org>
21697
21698         Tests for module 'nl_langinfo'.
21699         * modules/nl_langinfo-tests: New file.
21700         * tests/test-nl_langinfo.sh: New file.
21701         * tests/test-nl_langinfo.c: New file.
21702
21703         New module 'nl_langinfo'.
21704         * lib/nl_langinfo.c: New file.
21705         * m4/nl_langinfo.m4: New file.
21706         * modules/nl_langinfo: New file.
21707         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
21708
21709 2009-12-11  Bruno Haible  <bruno@clisp.org>
21710
21711         Tests for module 'langinfo'.
21712         * modules/langinfo-tests: New file.
21713         * tests/test-langinfo.c: New file.
21714
21715         New module 'langinfo'.
21716         * lib/langinfo.in.h: New file.
21717         * m4/langinfo_h.m4: New file.
21718         * modules/langinfo: New file.
21719         * doc/posix-headers/langinfo.texi: Mention the new module.
21720
21721 2009-12-11  Bruno Haible  <bruno@clisp.org>
21722
21723         * lib/config.charset: Untabify.
21724
21725 2009-12-11  Bruno Haible  <bruno@clisp.org>
21726
21727         * modules/unistd-safer (configure.ac): Drop indicator macro.
21728
21729 2009-12-11  Bruno Haible  <bruno@clisp.org>
21730
21731         Move pipe2-safer code to its own file.
21732         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
21733         * lib/pipe-safer.c (pipe2_safer): Remove function.
21734         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
21735         (Makefile.am): Add it to lib_SOURCES.
21736
21737 2009-12-10  Bruno Haible  <bruno@clisp.org>
21738
21739         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
21740
21741 2009-12-10  Bruno Haible  <bruno@clisp.org>
21742
21743         Declare which arguments expect non-NULL values, for GCC and clang.
21744         * build-aux/arg-nonnull.h: New file.
21745         * modules/arg-nonnull: New file.
21746         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
21747         (inet_ntop, inet_pton): Use it.
21748         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
21749         (closedir, dirfd, opendir, scandir, alphasort): Use it.
21750         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
21751         (open, openat): Use it.
21752         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
21753         (fnmatch): Use it.
21754         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
21755         (getopt, getopt_long, getopt_long_only): Use it.
21756         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
21757         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
21758         Use it.
21759         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
21760         (iconv_open): Use it.
21761         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
21762         (strtoimax, strtoumax): Use it.
21763         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
21764         (duplocale): Use it.
21765         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
21766         (frexp, frexpl): Use it.
21767         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
21768         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
21769         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
21770         (tsearch, tfind, tdelete, twalk): Use it.
21771         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
21772         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21773         sigpending): Use it.
21774         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
21775         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21776         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21777         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21778         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21779         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21780         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21781         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21782         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21783         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21784         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21785         Use it.
21786         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
21787         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
21788         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
21789         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
21790         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
21791         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
21792         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
21793         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
21794         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
21795         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
21796         strtoull, unsetenv): Use it.
21797         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
21798         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21799         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21800         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21801         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21802         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
21803         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
21804         (strcasecmp, strncasecmp): Use it.
21805         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
21806         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
21807         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
21808         rpl_setsockopt): Use it.
21809         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
21810         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
21811         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
21812         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
21813         (gettimeofday): Use it.
21814         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
21815         (times): Use it.
21816         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
21817         (uname): Use it.
21818         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
21819         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
21820         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
21821         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
21822         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
21823         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
21824         unlinkat, write): Use it.
21825         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
21826         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
21827         * lib/argv-iter.h: Include arg-nonnull.h.
21828         (_ATTRIBUTE_NONNULL_): Remove macro.
21829         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
21830         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
21831         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
21832         optimization.
21833         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
21834         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
21835         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
21836         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
21837         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
21838         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
21839         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
21840         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
21841         * modules/arpa_inet (Depends-on): Add arg-nonnull.
21842         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
21843         * modules/dirent (Depends-on): Add arg-nonnull.
21844         (Makefile.am): Insert arg-nonnull.h into dirent.h.
21845         * modules/fcntl-h (Depends-on): Add arg-nonnull.
21846         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
21847         * modules/fnmatch (Depends-on): Add arg-nonnull.
21848         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
21849         * modules/getopt-posix (Depends-on): Add arg-nonnull.
21850         (Makefile.am): Insert arg-nonnull.h into getopt.h.
21851         * modules/glob (Depends-on): Add arg-nonnull.
21852         (Makefile.am): Insert arg-nonnull.h into glob.h.
21853         * modules/iconv_open (Depends-on): Add arg-nonnull.
21854         (Makefile.am): Insert arg-nonnull.h into iconv.h.
21855         * modules/inttypes (Depends-on): Add arg-nonnull.
21856         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
21857         * modules/locale (Depends-on): Add arg-nonnull.
21858         (Makefile.am): Insert arg-nonnull.h into locale.h.
21859         * modules/math (Depends-on): Add arg-nonnull.
21860         (Makefile.am): Insert arg-nonnull.h into math.h.
21861         * modules/netdb (Depends-on): Add arg-nonnull.
21862         (Makefile.am): Insert arg-nonnull.h into netdb.h.
21863         * modules/search (Depends-on): Add arg-nonnull.
21864         (Makefile.am): Insert arg-nonnull.h into search.h.
21865         * modules/signal (Depends-on): Add arg-nonnull.
21866         (Makefile.am): Insert arg-nonnull.h into signal.h.
21867         * modules/spawn (Depends-on): Add arg-nonnull.
21868         (Makefile.am): Insert arg-nonnull.h into spawn.h.
21869         * modules/stdio (Depends-on): Add arg-nonnull.
21870         (Makefile.am): Insert arg-nonnull.h into stdio.h.
21871         * modules/stdlib (Depends-on): Add arg-nonnull.
21872         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
21873         * modules/string (Depends-on): Add arg-nonnull.
21874         (Makefile.am): Insert arg-nonnull.h into string.h.
21875         * modules/strings (Depends-on): Add arg-nonnull.
21876         (Makefile.am): Insert arg-nonnull.h into strings.h.
21877         * modules/sys_socket (Depends-on): Add arg-nonnull.
21878         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
21879         * modules/sys_stat (Depends-on): Add arg-nonnull.
21880         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
21881         * modules/sys_time (Depends-on): Add arg-nonnull.
21882         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
21883         * modules/sys_times (Depends-on): Add arg-nonnull.
21884         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
21885         * modules/sys_utsname (Depends-on): Add arg-nonnull.
21886         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
21887         * modules/time (Depends-on): Add arg-nonnull.
21888         (Makefile.am): Insert arg-nonnull.h into time.h.
21889         * modules/unistd (Depends-on): Add arg-nonnull.
21890         (Makefile.am): Insert arg-nonnull.h into unistd.h.
21891         * modules/wchar (Depends-on): Add arg-nonnull.
21892         (Makefile.am): Insert arg-nonnull.h into wchar.h.
21893         * modules/argv-iter (Depends-on): Add arg-nonnull.
21894         * tests/test-canonicalize.c (null_ptr): New function.
21895         (main): Use it.
21896         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
21897         (main): Use it.
21898         * tests/test-memmem.c (null_ptr): New function.
21899         (main): Use it.
21900         Reported by Jim Meyering.
21901
21902 2009-12-10  Bruno Haible  <bruno@clisp.org>
21903
21904         Use spaces for indentation, not tabs.
21905         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21906         * m4/*.m4: Untabify.
21907         * build-aux/*.h: Untabify.
21908         * tests/**/*.[hc]: Untabify.
21909         * README: New section "Indent with spaces, not TABs", based on
21910         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
21911         * NEWS: Mention the change.
21912
21913 2009-12-10  Bruno Haible  <bruno@clisp.org>
21914
21915         pty test: Fix link error.
21916         * modules/pty-tests (Makefile.am): Add the default LDADD value to
21917         test_pty_LDADD.
21918
21919 2009-12-07  Simon Josefsson  <simon@josefsson.org>
21920
21921         * modules/pty: New file.
21922         * modules/pty-tests: New file.
21923         * m4/pty.m4: New file.
21924         * tests/test-pty.c: New file.
21925         * doc/glibc-headers/pty.texi: Modified.
21926         * doc/glibc-functions/forkpty.texi: Modified.
21927         * doc/glibc-functions/openpty.texi: Modified.
21928
21929 2009-12-10  Bruno Haible  <bruno@clisp.org>
21930
21931         Avoid syntax error in C++ mode.
21932         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
21933
21934 2009-12-10  Bruno Haible  <bruno@clisp.org>
21935
21936         Use sed with option -e.
21937         * gnulib-tool (func_version, func_emit_copyright_notice,
21938         func_emit_initmacro_end, func_import, func_create_testdir): Pass
21939         option -e to sed.
21940         * modules/link-warning (Makefile.am): Likewise.
21941
21942 2009-12-10  Jim Meyering  <meyering@redhat.com>
21943
21944         mgetgroups: do not write bytes beyond end of malloc'd buffer
21945         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
21946         username, we call getgroups with a one-element-shorter buffer,
21947         but still told it the length was original, max_n_groups.
21948
21949 2009-12-09  Eric Blake  <ebb9@byu.net>
21950
21951         cloexec: relax license
21952         * modules/cloexec (Maintainer): Add myself.
21953         (License): Use LGPL, not GPL.
21954
21955         link-warning: optimize generation
21956         * modules/link-warning (Makefile.am): Reduce process usage.
21957
21958 2009-12-09  Bruno Haible  <bruno@clisp.org>
21959
21960         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
21961         workaround was added on 2009-11-17.
21962
21963 2009-12-09  Jim Meyering  <meyering@redhat.com>
21964             Bruno Haible  <bruno@clisp.org>
21965
21966         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
21967         * modules/link-warning (Makefile.am): Make the comment-removing sed
21968         command more robust in the face of bootstrap-prepended comment lines.
21969
21970 2009-12-09  Bruno Haible  <bruno@clisp.org>
21971
21972         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
21973         most one group.
21974
21975 2009-12-09  Simon Josefsson <simon@josefsson.org>
21976             Bruno Haible  <bruno@clisp.org>
21977
21978         * build-aux/link-warning.h: Add copyright notice.
21979         * modules/link-warning (Makefile.am): Generate link-warning.h from
21980         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
21981         * NEWS: Mention change in link-warning module.
21982         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
21983         * modules/dirent (Makefile.am): Add dependency to dirent.h.
21984         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
21985         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
21986         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
21987         * modules/math (Makefile.am): Add dependency to math.h.
21988         * modules/search (Makefile.am): Add dependency to search.h.
21989         * modules/signal (Makefile.am): Add dependency to signal.h.
21990         * modules/spawn (Makefile.am): Add dependency to spawn.h.
21991         * modules/stdio (Makefile.am): Add dependency to stdio.h.
21992         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
21993         * modules/string (Makefile.am): Add dependency to string.h.
21994         * modules/strings (Makefile.am): Add dependency to strings.h.
21995         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
21996         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
21997         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
21998         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
21999         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
22000         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
22001         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
22002         * modules/unistd (Makefile.am): Add dependency to unistd.h.
22003         * modules/wchar (Makefile.am): Add dependency to wchar.h.
22004
22005 2009-12-09  Bruno Haible  <bruno@clisp.org>
22006
22007         fchdir: Optimize away rpl_fstat when possible.
22008         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
22009         REPLACE_OPEN_DIRECTORY.
22010         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
22011
22012 2009-12-09  Bruno Haible  <bruno@clisp.org>
22013
22014         * lib/fchdir.c: Update comment.
22015
22016 2009-12-09  Bruno Haible  <bruno@clisp.org>
22017
22018         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
22019
22020 2009-12-08  Eric Blake  <ebb9@byu.net>
22021
22022         fchdir: avoid memory leak on re-registration.
22023         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
22024
22025 2009-12-08  Jim Meyering  <meyering@redhat.com>
22026
22027         init.sh: avoid Solaris 10 /bin/sh portability problem
22028         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
22029         sourced script:
22030           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
22031           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
22032           bar
22033         tests/init.sh relied on that, accepting a --set-path=DIR argument,
22034         and two tests used that idiom.
22035         * tests/init.sh: Update suggested usage comments.
22036         (path_prepend_): New function, to be used in place
22037         of the --src-path=DIR option.
22038         (setup_): Move PATH-prepending code into path_prepend_.
22039         * tests/test-pread.sh: Adapt to new usage.
22040         * tests/test-xalloc-die.sh: Likewise.
22041
22042 2009-12-08  Simon Josefsson  <simon@josefsson.org>
22043
22044         * doc/gnulib.texi (Glibc pty.h): Add.
22045         * doc/glibc-functions/forkpty.texi: Add.
22046         * doc/glibc-functions/openpty.texi: Add.
22047         Suggested by Bruno Haible.
22048
22049 2009-12-08  Eric Blake  <ebb9@byu.net>
22050
22051         fchdir: fix logic bugs
22052         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
22053         * tests/test-fchdir.c (main): Enhance test.
22054         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
22055         is in use.
22056
22057         dup2: fix logic bugs
22058         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
22059         REPLACE_DUP2 to decide when rpl_dup2 is needed.
22060         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
22061         exists.
22062         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
22063
22064 2009-12-07  Eric Blake  <ebb9@byu.net>
22065
22066         unlink: fix m4 detection
22067         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
22068
22069         unistd-safer: add unit test
22070         * modules/unistd-safer-tests: New file.
22071         * tests/test-dup-safer.c: Likewise.
22072         * tests/test-cloexec.c (setmode): Avoid compiler warning.
22073         * tests/test-dup2.c (setmode): Likewise.
22074         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
22075
22076         cloexec: preserve text vs. binary across dup_cloexec
22077         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
22078         mode.
22079         * modules/dup2-tests (Depends-on): Add binary-io.
22080         * modules/cloexec-tests (Depends-on): Likewise.
22081         * tests/test-dup2.c (setmode, is_mode): New helpers.
22082         (main): Add tests that translation mode is preserved.
22083         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
22084         Reported by Bruno Haible.
22085
22086         mgetgroups: reduce duplicate listings
22087         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
22088         resulting array.
22089         * tests/test-chown.h (test_chown): Simplify client.
22090         * tests/test-lchown.h (test_lchown): Likewise.
22091
22092 2009-12-06  Bruno Haible  <bruno@clisp.org>
22093
22094         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
22095         value.
22096
22097 2009-12-06  Bruno Haible  <bruno@clisp.org>
22098
22099         * lib/progname.c: Include stdio.h, stdlib.h.
22100         (set_program_name): Reject a NULL argument.
22101
22102 2009-12-05  Eric Blake  <ebb9@byu.net>
22103
22104         pipe2-safer: new module
22105         * modules/pipe2-safer: New file.
22106         * lib/unistd-safer.h (pipe2_safer): New prototype.
22107         * lib/unistd--.h (pipe2): New wrapper.
22108         * lib/pipe-safer.c (pipe2_safer): New function.
22109         * modules/pipe (Depends-on): Add pipe2-safer.
22110         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
22111
22112         stdlib-safer: preserve cloexec flag for mkostemp[s]
22113         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
22114         fd_safer_flag.
22115
22116         unistd-safer: allow preservation of cloexec status via flag
22117         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
22118         prototypes.
22119         * lib/dup-safer.c (dup_safer_flag): New function.
22120         * lib/fd-safer.c (fd_safer_flag): Likewise.
22121         * modules/cloexec (configure.ac): Set witness.
22122
22123         test-dup2: enhance test
22124         * modules/dup2-tests (Depends-on): Add cloexec.
22125         * tests/test-dup2.c (main): Enhance test.
22126
22127         cloexec: add dup_cloexec
22128         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
22129         header and comments.
22130         * lib/cloexec.c (set_cloexec_flag): Add comments.
22131         (dup_cloexec): New function, with mingw implementation borrowed
22132         from...
22133         * lib/w32spawn.h (dup_noinherit): ...here.
22134         * modules/execute (Depends-on): Add cloexec.
22135         * modules/pipe (Depends-on): Likewise.
22136         * modules/cloexec (Depends-on): Add dup2.
22137         * modules/cloexec-tests (Files): New file.
22138         * tests/test-cloexec.c: Likewise.
22139
22140         test-xalloc-die: fix test for mingw
22141         * modules/xalloc-die-tests (Files): Add tests/init.sh.
22142         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
22143         directory and .exe suffix off argv[0] output.
22144
22145         test-fseeko: fix test for mingw
22146         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
22147         than undefining fseek, so test will pass on mingw.
22148
22149 2009-12-05  Bruno Haible  <bruno@clisp.org>
22150
22151         * lib/progname.h (set_program_name): Clarify specification.
22152         * lib/progname.c (set_program_name): Likewise.
22153         Reported by Jim Meyering.
22154
22155 2009-12-05  Jim Meyering  <meyering@redhat.com>
22156
22157         maint.mk: backslash-escape parens in default regexp
22158         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
22159         backslash-escape the literal parentheses.
22160
22161         maint.mk: news-date-check: use grep -E
22162         * top/maint.mk (today): Define a Make variable, not a...
22163         (news-date-check): ...shell variable.
22164         (news-date-regexp): Use the Make variable.
22165         Use grep's -E option.  Change the failing diagnostic to mention
22166         the variable, $(news-date-regexp).
22167
22168 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
22169
22170         maintainer-makefile: allow customization of NEWS entry format
22171         * top/maint.mk (news-date-regexp): New overridable variable.
22172         (news-date-check): Use it.
22173
22174 2009-12-04  Eric Blake  <ebb9@byu.net>
22175
22176         mgetgroups: add xgetgroups, and avoid ENOSYS failures
22177         * lib/mgetgroups.h (xgetgroups): New prototype.
22178         * lib/mgetgroups.c (xgetgroups): New wrapper.
22179         (mgetgroups): Handle ENOSYS.
22180         * modules/mgetgroups (Depends-on): Add realloc.
22181         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
22182
22183         mgetgroups: avoid argument promotion issues with -1
22184         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
22185         for invalid gid_t.
22186         * tests/test-chown.h (getegid, test_chown): Likewise.
22187         * tests/test-lchown.h (getegid, test_lchown): Likewise.
22188
22189 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
22190
22191         exclude: Fix header file problems.
22192         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
22193
22194 2009-12-01  Jim Meyering  <meyering@redhat.com>
22195
22196         fts: fts_open: do not let an empty string cause immediate failure
22197         This is required in support of GNU rm, for which the command
22198         "rm A '' B" must process and remove both A and B, in spite of
22199         the empty string argument.
22200         * lib/fts.c (fts_open): Do not let the presence of an empty string
22201         cause fts_open to fail immediately.  Most fts-using tools must be
22202         able to process all arguments, in order, and can be expected to
22203         diagnose such arguments themselves.
22204
22205 2009-11-30  Eric Blake  <ebb9@byu.net>
22206
22207         utimens: fix compilation error
22208         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
22209         Declare variable at right scope.
22210
22211 2009-11-29  Jim Meyering  <meyering@redhat.com>
22212
22213         bootstrap: handle perl-5.11's changed --version output
22214         * build-aux/bootstrap (get_version): Handle perl separately,
22215         since perl-5.11's --version output is different.
22216
22217 2009-11-28  Jim Meyering  <meyering@redhat.com>
22218
22219         userspec: depend on the inttostr module, too
22220         * modules/userspec (Depends-on): Add inttostr.
22221
22222         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
22223         * lib/userspec.c (parse_with_separator): Do not accept a user ID
22224         number of MAXUID when it evaluates to (uid_t) -1.
22225         Likewise for group ID.  Reported by Matt McCutchen in
22226         <http://savannah.gnu.org/bugs/?28113>
22227
22228         userspec: reformat to use spaces, not TABs
22229         * lib/userspec.c: Expand TABs to spaces.
22230         Add Emacs' "indent-tabs-mode: nil" hint.
22231
22232 2009-11-27  Eric Blake  <ebb9@byu.net>
22233
22234         getopt-gnu: flush out another BSD bug
22235         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
22236         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
22237         flush out BSD bug.
22238         * tests/test-getopt.h (test_getopt): End lists with NULL.
22239         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22240         (test_getopt_long_posix): Enhance test.
22241         * modules/getopt-posix-tests (Depends-on): Add stdbool.
22242         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
22243         getopt-gnu.
22244         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22245         Likewise.
22246
22247 2009-11-27  Simon Josefsson  <simon@josefsson.org>
22248
22249         * modules/idpriv-droptemp-tests (Notice): Fix text.
22250
22251 2009-11-27  Jim Meyering  <meyering@redhat.com>
22252
22253         test-xalloc-die: avoid spurious failure due to libtool argv difference
22254         In a libtool-enabled project, this test would fail due to a difference
22255         in the emitted program name, e.g.,
22256         -test-xalloc-die: memory exhausted
22257         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
22258         Use program to avoid that.
22259         * modules/xalloc-die-tests (Depends-on): Add progname.
22260         * tests/test-xalloc-die.c: Include progname.h".
22261         (program_name): Remove decl.
22262         (main): Call set_program_name.
22263         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
22264
22265 2009-11-26  Richard Jones  <rjones@redhat.com>
22266
22267         w32sock: leave win32 error in place.
22268         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
22269
22270 2009-11-26  Eric Blake  <ebb9@byu.net>
22271
22272         init.sh: suggest to use skip_ and fail_ functions in comments
22273         * tests/init.sh: Add a sentence.
22274
22275 2009-11-25  Bruno Haible  <bruno@clisp.org>
22276
22277         init.sh: add documentation in comments
22278         * tests/init.sh: Add some developer and user documentation.
22279
22280 2009-11-26  Jim Meyering  <meyering@redhat.com>
22281
22282         init.sh: accommodate even those who specify bogus srcdir manually
22283         * tests/init.sh: Normally, srcdir is guaranteed by automake and
22284         configure-time tests to be sanitized, so that there is no need to
22285         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
22286         (with no double quotes) suffices.  However, since tests may be
22287         invoked manually, and since you may explicitly set srcdir to the
22288         name of a directory containing spaces, do quote its uses here.
22289         * tests/test-pread.sh: Likewise.
22290         Suggested by Bruno Haible.
22291
22292         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
22293         * tests/test-pread.sh: Write no data into the pipe, because
22294         test-pread actually reads none.  This avoids a diagnostic,
22295         "bash: echo: write error: Broken pipe", that arises in the unusual
22296         event something is ignoring SIGPIPE, and might be interpreted
22297         as some sort of failure.  Reported by Bruno Haible.
22298
22299 2009-11-25  Jim Meyering  <meyering@redhat.com>
22300
22301         test-pread: cover failure with ESPIPE and EINVAL
22302         * tests/test-pread.c (main): Test for failure, too.
22303         * tests/test-pread.sh: Invoke with stdin on a pipe.
22304         Suggested by Eric Blake.
22305
22306         pread: improvement and fix
22307         * modules/pread (Depends-on): Depend on lseek, for portability to
22308         e.g., mingw.  Suggested by Eric Blake.
22309         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
22310
22311         unistd.in.h: correct declaration of pread
22312         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
22313         Reported by Richard W.M. Jones.
22314
22315         test-pread.sh: distribute the test script
22316         * modules/pread-tests (Files): Include test-pread.sh.
22317
22318         test-pread.sh: clean up
22319         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
22320         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
22321         That is unnecessary, since it's always ".".
22322         Suggestion from Eric Blake.
22323
22324         test-pread.sh: make executable
22325         * tests/test-pread.sh: Set executable bit.
22326         Reported by Eric Blake.
22327
22328         correct typo in test-pread.sh
22329         * tests/test-pread.sh: Add #! line.
22330
22331         test pread
22332         * tests/test-pread.c: New file.
22333         * tests/test-pread.sh: Likewise.
22334         * modules/pread-tests: Likewise.
22335
22336         pread: new module
22337         * modules/pread: New file.
22338         * lib/unistd.in.h (pread): Define/declare.
22339         * lib/pread.c (pread): New file.
22340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
22341         * modules/unistd (Makefile.am): Substitute witnesses.
22342         * doc/posix-functions/pread.texi (pread): Update.
22343         * MODULES.html.sh: Add pread.
22344
22345 2009-11-25  Jim Meyering  <meyering@redhat.com>
22346
22347         tests/init.sh: new file to be used via most *.sh tests
22348         * tests/init.sh: New file.
22349
22350 2009-11-25  Eric Blake  <ebb9@byu.net>
22351
22352         utimens: work around older Linux failure with symlinks
22353         * lib/utimens.c (lutimensat_works_really): New variable.
22354         (fdutimens, lutimens): Use it to manage kernels that support
22355         nanosecond times on files, but not on symlinks.
22356         Reported by OndÅ™ej Vašík.
22357
22358         utimes: fix configure grammar
22359         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
22360
22361 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
22362
22363         regex: Fix fastmap for multibyte character ranges.
22364         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
22365         characters when a multibyte character range is included.
22366
22367 2009-11-22  Andy Wingo  <wingo@pobox.com>
22368
22369         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
22370         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
22371
22372 2009-11-24  Bruno Haible  <bruno@clisp.org>
22373
22374         doc: Most *_l functions exist in MacOS X 10.5.
22375         * doc/posix-functions/duplocale.texi: Update platforms list.
22376         * doc/posix-functions/freelocale.texi: Likewise.
22377         * doc/posix-functions/newlocale.texi: Likewise.
22378         * doc/posix-functions/uselocale.texi: Likewise.
22379         * doc/posix-functions/isalnum_l.texi: Likewise.
22380         * doc/posix-functions/isalpha_l.texi: Likewise.
22381         * doc/posix-functions/isblank_l.texi: Likewise.
22382         * doc/posix-functions/iscntrl_l.texi: Likewise.
22383         * doc/posix-functions/isdigit_l.texi: Likewise.
22384         * doc/posix-functions/isgraph_l.texi: Likewise.
22385         * doc/posix-functions/islower_l.texi: Likewise.
22386         * doc/posix-functions/isprint_l.texi: Likewise.
22387         * doc/posix-functions/ispunct_l.texi: Likewise.
22388         * doc/posix-functions/isspace_l.texi: Likewise.
22389         * doc/posix-functions/isupper_l.texi: Likewise.
22390         * doc/posix-functions/iswalnum_l.texi: Likewise.
22391         * doc/posix-functions/iswalpha_l.texi: Likewise.
22392         * doc/posix-functions/iswblank_l.texi: Likewise.
22393         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22394         * doc/posix-functions/iswctype_l.texi: Likewise.
22395         * doc/posix-functions/iswdigit_l.texi: Likewise.
22396         * doc/posix-functions/iswgraph_l.texi: Likewise.
22397         * doc/posix-functions/iswlower_l.texi: Likewise.
22398         * doc/posix-functions/iswprint_l.texi: Likewise.
22399         * doc/posix-functions/iswpunct_l.texi: Likewise.
22400         * doc/posix-functions/iswspace_l.texi: Likewise.
22401         * doc/posix-functions/iswupper_l.texi: Likewise.
22402         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22403         * doc/posix-functions/isxdigit_l.texi: Likewise.
22404         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
22405         * doc/posix-functions/strcasecmp_l.texi: Likewise.
22406         * doc/posix-functions/strcoll_l.texi: Likewise.
22407         * doc/posix-functions/strfmon_l.texi: Likewise.
22408         * doc/posix-functions/strftime_l.texi: Likewise.
22409         * doc/posix-functions/strncasecmp_l.texi: Likewise.
22410         * doc/posix-functions/strxfrm_l.texi: Likewise.
22411         * doc/posix-functions/tolower_l.texi: Likewise.
22412         * doc/posix-functions/toupper_l.texi: Likewise.
22413         * doc/posix-functions/towctrans_l.texi: Likewise.
22414         * doc/posix-functions/towlower_l.texi: Likewise.
22415         * doc/posix-functions/towupper_l.texi: Likewise.
22416         * doc/posix-functions/wcscoll_l.texi: Likewise.
22417         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22418         * doc/posix-functions/wctrans_l.texi: Likewise.
22419         * doc/posix-functions/wctype_l.texi: Likewise.
22420         * doc/glibc-functions/strptime_l.texi: Likewise.
22421         * doc/glibc-functions/strtod_l.texi: Likewise.
22422         * doc/glibc-functions/strtof_l.texi: Likewise.
22423         * doc/glibc-functions/strtol_l.texi: Likewise.
22424         * doc/glibc-functions/strtold_l.texi: Likewise.
22425         * doc/glibc-functions/strtoll_l.texi: Likewise.
22426         * doc/glibc-functions/strtoul_l.texi: Likewise.
22427         * doc/glibc-functions/strtoull_l.texi: Likewise.
22428         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22429         * doc/glibc-functions/wcstod_l.texi: Likewise.
22430         * doc/glibc-functions/wcstof_l.texi: Likewise.
22431         * doc/glibc-functions/wcstol_l.texi: Likewise.
22432         * doc/glibc-functions/wcstold_l.texi: Likewise.
22433         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22434         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22435         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22436
22437 2009-11-24  Bruno Haible  <bruno@clisp.org>
22438
22439         duplocale: Fix logic bug.
22440         * lib/duplocale.c: Don't include <langinfo.h>.
22441         (_NL_LOCALE_NAME): Remove macro.
22442         (rpl_duplocale): Use setlocale instead of nl_langinfo.
22443         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
22444
22445 2009-11-23  Jim Meyering  <meyering@redhat.com>
22446
22447         test-update-copyright: don't hard-code /usr/bin/perl
22448         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
22449         perl to print the current year.  Gilles Espinasse reported that
22450         the replaced use of perl was hard-coded as /usr/bin/perl.
22451
22452 2009-11-23  Bruno Haible  <bruno@clisp.org>
22453
22454         duplocale: Add support for glibc 2.3.x.
22455         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
22456
22457 2009-11-22  Bruno Haible  <bruno@clisp.org>
22458
22459         vasnprintf: Tiny optimization.
22460         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
22461         MacOS X.
22462
22463 2009-11-22  Bruno Haible  <bruno@clisp.org>
22464
22465         Tests for module 'duplocale'.
22466         * modules/duplocale-tests: New file.
22467         * tests/test-duplocale.c: New file.
22468
22469         New module 'duplocale'.
22470         * m4/duplocale.m4: New file.
22471         * lib/locale.in.h (duplocale): New declaration.
22472         * lib/duplocale.c: New file.
22473         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
22474         gl_LOCALE_H_DEFAULTS): New macros.
22475         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
22476         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
22477         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
22478         REPLACE_DUPLOCALE.
22479         * modules/duplocale: New file.
22480         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
22481
22482 2009-11-22  Bruno Haible  <bruno@clisp.org>
22483
22484         * modules/locale-tests (configure.ac): Test for newlocale function.
22485         * tests/test-locale.c: When the system has extended locale functions,
22486         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
22487
22488         locale: Make locale_t available when possible.
22489         * lib/locale.in.h: Include <xlocale.h> when it exists.
22490         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
22491         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
22492         * modules/locale (Depends-on): Add extensions.
22493         (Makefile.am): Also substitute HAVE_XLOCALE_H.
22494         * doc/posix-headers/locale.texi: Document the problem with locale_t.
22495
22496 2009-11-22  Bruno Haible  <bruno@clisp.org>
22497
22498         Add comments.
22499         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
22500         invocation.
22501         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
22502         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22503         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22504
22505 2009-11-22  Bruno Haible  <bruno@clisp.org>
22506
22507         error: account for the possibility of freopen (stdout).
22508         * lib/error.c: Include <unistd.h>.
22509         (flush_stdout): New function, extracted from error and error_at_line.
22510         Determine stdout's fd dynamically.
22511         (error, error_at_line): Invoke flush_stdout.
22512         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
22513         * modules/error (Depends-on): Add unistd.
22514
22515 2009-11-22  Bruno Haible  <bruno@clisp.org>
22516
22517         diffseq: Add comment.
22518         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
22519
22520 2009-11-22  Jim Meyering  <meyering@redhat.com>
22521
22522         c-stack: avoid defining an unused static function
22523         * lib/c-stack.c (find_stack_direction): Do not define this function
22524         when it will not be used.
22525
22526         diffseq: avoid spurious gcc warnings
22527         * lib/diffseq.h (IF_LINT2): Define.
22528         (compareseq): Use it to initialize two members of "part".
22529         This avoids two used-uninitialized warnings.
22530
22531 2009-11-21  Jim Meyering  <meyering@redhat.com>
22532
22533         c-stack: avoid "ignoring return value of `write'" warning
22534         * lib/c-stack.c: Include "ignore-value.h".
22535         (die): Explicitly ignore each write return value.
22536         * modules/c-stack (Depends-on): Add ignore-value.
22537
22538 2009-11-21  Bruno Haible  <bruno@clisp.org>
22539
22540         diffseq: reduce scope of variable 'best'.
22541         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
22542         variable, earlier used for two different purposes.
22543
22544 2009-11-21  Jim Meyering  <meyering@redhat.com>
22545
22546         diffseq: remove useless assignment to "best"
22547         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
22548         assignment.  At that point "best" is already guaranteed to be zero.
22549
22550 2009-11-20  Eric Blake  <ebb9@byu.net>
22551
22552         build: mention ftp redirector in release announcements
22553         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
22554         values that used to come from cfg.mk; mention FTP redirect URL.
22555         * build-aux/announce-gen: Mention the mirror list.
22556         Suggested by Karl Berry.
22557
22558         nanosleep: improve port to mingw
22559         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
22560         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
22561         LIB_NANOSLEEP, but only when needed.
22562         * modules/select (Link): Document LIBSOCKET.
22563         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
22564         enough.
22565
22566         nanosleep: work around cygwin bug
22567         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
22568         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
22569         bug.
22570         (getnow): Delete, not needed.
22571         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
22572         LIB_CLOCK_GETTIME.
22573         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
22574         clock-time, gettime.
22575         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
22576         bug.
22577         * modules/nanosleep-tests: New test.
22578         * tests/test-nanosleep.c: New file.
22579
22580         sleep: work around cygwin bug
22581         * lib/sleep.c (rpl_sleep): Work around the bug.
22582         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
22583         (gl_PREREQ_SLEEP): Delete unused macro.
22584         * modules/sleep (Depends-on): Add verify.
22585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22586         * modules/unistd (Makefile.am): Substitute witness.
22587         * lib/unistd.in.h (sleep): Update prototype.
22588         * doc/posix-functions/sleep.texi (sleep): Document the bug.
22589         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
22590         * modules/sleep-tests (Depends-on): Check for alarm.
22591
22592 2009-11-20  Jim Meyering  <meyering@redhat.com>
22593
22594         maint.mk: improve sc_prohibit_magic_number_exit
22595         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
22596         so it does not match uses like System.exit(1).
22597         Add comments showing how to correct all offenders.
22598
22599 2009-11-19  Eric Blake  <ebb9@byu.net>
22600
22601         xalloc-die-tests: add missing library
22602         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
22603
22604         test-xvasprintf: silence compiler warnings
22605         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
22606         empty string from gcc.
22607
22608 2009-11-19  Jim Meyering  <meyering@redhat.com>
22609
22610         xfreopen: new module, from coreutils
22611         * modules/xfreopen: New module.
22612         * lib/xfreopen.c: New file.
22613         * lib/xfreopen.h: New file.
22614         * MODULES.html.sh (File stream based Input/Output"): Add it.
22615
22616 2009-11-19  Eric Blake  <ebb9@byu.net>
22617
22618         manywarnings: depend on warnings
22619         * modules/manywarnings (Depends-on): Add warnings.
22620
22621         build: avoid compiler warnings
22622         * lib/select.c (rpl_select): Delete unused variable.
22623         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
22624
22625 2009-11-18  Eric Blake  <ebb9@byu.net>
22626
22627         tests: avoid false negative with --with-packager
22628         * tests/test-version-etc.sh: Discard packager information.
22629         * tests/test-argp-version-etc-1.sh: Likewise.
22630         Reported by Mike Frysinger.
22631
22632         utimens: fix regression on Solaris
22633         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
22634         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
22635         can only change fd timestamps via futimesat.  Instead, use an
22636         additional witness macro to avoid BSD bug.
22637         Reported by Jim Meyering.
22638
22639 2009-11-17  Eric Blake  <ebb9@byu.net>
22640
22641         usleep: use it to simplify tests
22642         * modules/stat-time-tests (Depends-on): Add usleep.
22643         (configure.ac): Drop usleep check.
22644         * modules/chown-tests (Depends-on, configure.ac): Likewise.
22645         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
22646         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
22647         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
22648         * modules/openat-tests (Depends-on, configure.ac): Likewise.
22649         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
22650         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
22651         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
22652         Likewise.
22653         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
22654         * tests/test-lchown.h (nap): Likewise.
22655         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
22656         * tests/test-stat-time.c (nap): Likewise.
22657         * tests/test-utimens-common.h (nap): Update comments.
22658
22659         usleep: new module
22660         * modules/usleep: New file.
22661         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22662         * lib/usleep.c (usleep): Likewise.
22663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22664         * modules/unistd (Makefile.am): Substitute witnesses.
22665         * lib/unistd.in.h (usleep): Add declaration.
22666         * doc/pastposix-functions/usleep.texi (usleep): Document this.
22667         * MODULES.html.sh (Date and time): Likewise.
22668         * modules/usleep-tests (Depends-on): New test.
22669         * tests/test-usleep.c: New file.
22670
22671         chown: work around OpenBSD bug
22672         * lib/chown.c (rpl_chown): Work around the bug.
22673         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
22674         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
22675         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
22676         * modules/chown (Depends-on): Add stdbool.
22677         * modules/lchown (Depends-on): Likewise.
22678         * doc/posix-functions/chown.texi (chown): Document the bug.
22679         * doc/posix-functions/lchown.texi (lchown): Likewise.
22680         * tests/test-lchown.h (test_chown): Relax test.
22681
22682         mkstemp: avoid conflict with C++ keyword template
22683         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
22684         * lib/mkostemp.c (mkostemp): Likewise.
22685         * lib/mkostemps.c (mkostemps): Likewise.
22686         * lib/mkstemp.c (mkstemp): Likewise.
22687         * lib/mkstemps.c (mkstemps): Likewise.
22688
22689         xalloc-die-tests: optimize
22690         * tests/test-xalloc-die.sh: Reduce number of processes.
22691
22692 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22693
22694         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
22695         patch from ludo@gnu.org (Ludovic Courtès).
22696
22697 2009-11-17  Jim Meyering  <meyering@redhat.com>
22698
22699         version-etc: use proper license string
22700         * modules/version-etc (License): Use LGPL, not LGPLv3+.
22701         * modules/version-etc-fsf: Likewise.
22702
22703 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22704
22705         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
22706         printed to stdout.  Deal with EOL differences.
22707
22708 2009-11-17  Eric Blake  <ebb9@byu.net>
22709
22710         unsetenv: work around Solaris bug
22711         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
22712         * lib/unsetenv.c (rpl_unsetenv): Work around it.
22713         Reported by Jim Meyering.
22714
22715         vasnprintf: avoid compiler warnings
22716         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
22717         variables.
22718         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
22719
22720 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22721
22722         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
22723         settings since xalloc-die is no longer the self test,
22724         xalloc-die.sh is.
22725
22726 2009-11-17  Jim Meyering  <meyering@redhat.com>
22727
22728         test-xalloc-die.sh: make the code agree with the commit log
22729         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
22730         at the end, just in case you happen to have a test-xalloc-die
22731         program in some other PATH directory.
22732
22733         test-xalloc-die.sh: fix a portability bug
22734         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
22735         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
22736         Otherwise, argv[0] (as often seen in diagnostics) would be too
22737         system-dependent, sometimes with, and sometimes without the leading "./".
22738
22739         version-etc-fsf: relax license to LGPLv3+
22740         * modules/version-etc-fsf (License): Relax license.
22741
22742 2009-11-16  Eric Blake  <ebb9@byu.net>
22743
22744         xalloc-die-tests: avoid printing null pointer
22745         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
22746         shell script.
22747         * tests/test-xalloc-die.c (program_name): Declare.
22748         * tests/test-xalloc-die.sh (tmpfiles): New file.
22749
22750         setenv, unsetenv: work around various bugs
22751         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
22752         (setenv) [HAVE_SETENV]: Work around bugs.
22753         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
22754         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
22755         for bugs.
22756         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
22757         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
22758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
22759         * modules/stdlib (Makefile.am): Update substitutions.
22760         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
22761         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
22762         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22763         * modules/setenv-tests: New test.
22764         * modules/unsetenv-tests: Likewise.
22765         * tests/test-setenv.c: New file.
22766         * tests/test-unsetenv.c: Likewise.
22767
22768 2009-11-16  Jim Meyering  <meyering@redhat.com>
22769
22770         version-etc: relax license to LGPLv3+
22771         * modules/version-etc (License): Relax license.
22772
22773         better AC_REQUIRE expanded-before-required-warning avoidance
22774         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
22775         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
22776         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
22777         which is no longer needed.
22778
22779 2009-11-16  Eric Blake  <ebb9@byu.net>
22780
22781         test-freading: clean up temporary file
22782         * tests/test-freading.c (main): Remove file on success, and use
22783         ASSERT more liberally.
22784         Reported by Jim Meyering.
22785
22786 2009-11-16  Jim Meyering  <meyering@redhat.com>
22787
22788         avoid new AC_REQUIRE expanded-before-required warnings
22789         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
22790         merely using it.
22791         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
22792         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
22793
22794 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22795
22796         * tests/test-xalloc-die.c: New file.
22797         * modules/xalloc-die-tests: New file.
22798         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
22799         XFAIL_TESTS so it can be appended by modules.
22800
22801 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22802
22803         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
22804         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
22805
22806 2009-11-14  Eric Blake  <ebb9@byu.net>
22807
22808         fnmatch: avoid compiler warning
22809         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
22810         to silence compiler warning about mismatch signedness in ?:.
22811         Reported by Robert Millan.
22812
22813         intprops: add double-inclusion guard
22814         * lib/intprops.h: Allow idempotent includes.
22815         Suggested by Bruce Korb.
22816
22817         openat: detect Solaris fchownat bug
22818         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
22819         penalizing glibc chownat when only lchownat is broken.
22820         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
22821         trailing slash bugs.
22822         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
22823         * modules/openat-tests (Files): Include more files.
22824         (Depends-on): Add mgetgroups, sleep, stat-time.
22825         (configure.ac): Add additional checks.
22826         (Makefile.am): Build new test.
22827         * tests/test-fchownat.c: New file.
22828
22829         lchown: detect Solaris and FreeBSD bug
22830         * lib/lchown.c (rpl_lchown): Work around bug.
22831         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
22832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22833         * modules/unistd (Makefile.am): Populate it.
22834         * lib/unistd.in.h (lchown): Update declaration.
22835         * doc/posix-functions/lchown.texi (lchown): Document the bug.
22836         * modules/lchown-tests: New file.
22837         * tests/test-lchown.h (test_lchown): Likewise.
22838         * tests/test-lchown.c (main): Likewise.
22839
22840         chown: detect Solaris and FreeBSD bug
22841         * lib/chown.c (rpl_chown): Work around bug.
22842         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
22843         (gl_PREREQ_CHOWN): Delete.
22844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22845         * modules/unistd (Makefile.am): Populate it.
22846         * lib/unistd.in.h (chown): Update declaration.
22847         * lib/lchown.c (chown): Update client.
22848         * modules/lchown (Depends-on): Add lstat.
22849         * doc/posix-functions/chown.texi (chown): Document the bug.
22850         * doc/posix-functions/getgroups.texi (getgroups): Document
22851         getgroups pitfall.
22852         * modules/chown-tests: New file.
22853         * tests/test-chown.h (test_chown): Likewise.
22854         * tests/test-chown.c (main): Likewise.
22855
22856 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
22857
22858         gnulib-tool: correctly detect absence of m4 directories
22859         * gnulib-tool: Avoid extra newline on data passed to wc -l.
22860
22861 2009-11-14  Jim Meyering  <meyering@redhat.com>
22862
22863         maint.mk: Prohibit inclusion of "xalloc.h" without use.
22864         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22865
22866 2009-11-14  John W. Eaton  <jwe@gnu.org>
22867
22868         strftime.h: wrap funtion declaration in extern "C" block
22869         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
22870
22871 2009-11-13  Eric Blake  <ebb9@byu.net>
22872
22873         getgroups: avoid compiler warning
22874         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
22875
22876         getgroups: work around FreeBSD bug
22877         * lib/getgroups.c (rpl_getgroups): Work around the bug.
22878         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
22879         * doc/posix-functions/getgroups.texi (getgroups): Document it.
22880         * tests/test-getgroups.c (main): Fix buffer overrun.
22881
22882         getgroups: avoid compilation failure
22883         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
22884         * modules/getgroups (Depends-on): Add stdint.
22885
22886 2009-11-13  Jim Meyering  <meyering@redhat.com>
22887
22888         test-getgroups: avoid compilation failure
22889         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
22890
22891 2009-11-13  Eric Blake  <ebb9@byu.net>
22892
22893         mgetgroups: new module, taken from coreutils
22894         * modules/mgetgroups: New file.
22895         * lib/mgetgroups.h: Likewise.
22896         * lib/mgetgroups.c (mgetgroups): Likewise.
22897         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
22898         * MODULES.html.sh (Users and groups): Mention it.
22899
22900         getgroups: don't expose GETGROUPS_T to user
22901         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22902         an element at a time if GETGROUPS_T is wrong size.
22903         * lib/getugroups.h (getugroups): Change signature.
22904         * lib/unistd.in.h (getgroups): Likewise.
22905         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
22906         signature needs fixing.
22907         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
22908         AC_TYPE_GETGROUPS.
22909         * modules/group-member (Depends-on): Add getgroups.
22910         * lib/group-member.c (group_info, get_group_info): Use gid_t.
22911         (group_member): Rely on getgroups replacement.
22912         * lib/getugroups.c (getugroups): Use gid_t.
22913         * tests/test-getgroups.c (main): Likewise.
22914         * NEWS: Mention the signature change.
22915         * doc/posix-functions/getgroups.texi (getgroups): Mention the
22916         problem with signature.
22917         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
22918         GETGROUPS_T is still useful for setgroups.
22919
22920         getgroups, getugroups: provide stubs for mingw
22921         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
22922         * lib/getugroups.c (getugroups): Likewise.
22923         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
22924         function.  Modernize replacement scheme.
22925         (gl_PREREQ_GETGROUPS): Delete.
22926         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
22927         * modules/getgroups (configure.ac): Declare witness.
22928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22929         * modules/unistd (Depends-on): Substitute witness.
22930         * lib/unistd.in.h (getgroups): Declare replacement.
22931
22932         getgroups: avoid calling exit
22933         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
22934         drop xalloc.
22935         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
22936         dependencies.
22937         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
22938         exiting, in the rare case of malloc failure.
22939
22940         getgroups: fix logic error
22941         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
22942         has more than 20 groups.
22943         * modules/getgroups-tests: New test.
22944         * tests/test-getgroups.c: New file.
22945
22946 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22947
22948         * tests/test-base64.c: Improve.
22949
22950 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22951
22952         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
22953         Blake <ebb9@byu.net>.
22954
22955 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22956
22957         * tests/test-xvasprintf.c: Add %s%s related checks.
22958
22959 2009-11-12  Eric Blake  <ebb9@byu.net>
22960
22961         version-etc: match standards.texi style
22962         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
22963         and use <> only for URLs.
22964
22965 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
22966
22967         fts: do not fail on a submount during traversal
22968         * lib/fts.c (fts_build): Read the stat info again after opening
22969         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
22970         Original report at http://bugzilla.redhat.com/501848.
22971
22972 2009-11-12  Jim Meyering  <meyering@redhat.com>
22973
22974         bootstrap: sync from coreutils
22975         * build-aux/bootstrap (bootstrap_epilogue): New function.
22976         Use git_modules_config in one more place.  This make bootstrap's
22977         --gnulib-srcdir option more useful for testing.
22978
22979         bootstrap: generalize autoheader check
22980         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
22981         AC_CONFIG_HEADERS.
22982
22983 2009-11-11  Eric Blake  <ebb9@byu.net>
22984
22985         mkfifoat: use new modules for Solaris and BSD bugs
22986         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
22987         * lib/mkfifoat.c (mknodat): Split...
22988         * lib/mknodat.c (mknodat): ...into new file.
22989         * modules/mkfifoat (Files): Ship new file.
22990         (Depends-on): Add mkfifo, mknod.
22991         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
22992         (Depends-on): Add symlink.
22993         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
22994         redundant with test_mkfifo.h.
22995         (do_mkfifoat, do_mknodat): New helpers.
22996
22997         mknod: new module
22998         * modules/mknod: New file.
22999         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
23000         * lib/mknod.c (mknod): Likewise.
23001         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23002         defaults.
23003         * modules/sys_stat (Makefile.am): Substitute them.
23004         * lib/sys_stat.in.h (mknod): Declare replacement.
23005         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23006         Document it.
23007         * doc/posix-functions/mknod.texi (mknod): Likewise.
23008         * modules/mknod-tests: New test.
23009         * tests/test-mknod.c: Likewise.
23010
23011         mkfifo: new module
23012         * modules/mkfifo: New file.
23013         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23014         * lib/mkfifo.c (mkfifo): Likewise.
23015         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23016         defaults.
23017         * modules/sys_stat (Makefile.am): Substitute them.
23018         * lib/sys_stat.in.h (mkfifo): Declare replacement.
23019         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23020         Document it.
23021         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
23022         * modules/mkfifo-tests: New test.
23023         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
23024         from test-mkfifoat.c.
23025         * tests/test-mkfifo.c: New file.
23026
23027         readlink: detect FreeBSD bug
23028         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
23029         slash on symlink.
23030         * doc/posix-functions/readlink.texi (readlink): Document the bug.
23031         * tests/test-readlink.h (test_readlink): Enhance test.
23032
23033         symlink: detect FreeBSD bug
23034         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
23035         slash on symlink.
23036         * doc/posix-functions/symlink.texi (symlink): Document the bug.
23037         * tests/test-symlink.h (test_symlink): Enhance test.
23038
23039 2009-11-10  Eric Blake  <ebb9@byu.net>
23040
23041         link: detect FreeBSD bug
23042         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
23043         symlink.
23044         * doc/posix-functions/link.texi (link): Document the bug.
23045         * tests/test-link.h (test_link): Enhance test.
23046         * tests/test-linkat.c (main): Update caller.
23047
23048         unlink, remove: detect FreeBSD bug
23049         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
23050         slash on symlink.
23051         * doc/posix-functions/unlink.texi (unlink): Document the bug.
23052         * doc/posix-functions/remove.texi (remove): Likewise.
23053         * tests/test-unlink.h (test_unlink): Enhance test.
23054         * tests/test-remove.c (main): Likewise.
23055
23056 2009-11-09  Eric Blake  <ebb9@byu.net>
23057
23058         rename: detect FreeBSD bug
23059         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
23060         slash on symlink.
23061         * modules/renameat-tests (Depends-on): Add filenamecat.
23062         * tests/test-rename.h (test_rename): Allow one more errno.
23063         * tests/test-renameat.c (main): Likewise.
23064         * doc/posix-functions/rename.texi (rename): Document the bug.
23065
23066         open: detect FreeBSD bug
23067         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
23068         symlink.
23069         * doc/posix-functions/open.texi (open): Document the bug.
23070         * doc/posix-functions/utimes.texi (utimes): Likewise.
23071         * tests/test-open.h (test_open): Add parameters, and test symlink
23072         handling.
23073         * tests/test-open.c (main): Adjust caller.
23074         * tests/test-fcntl-safer.c (main): Likewise.
23075         * modules/open-tests (Depends-on): Add stdbool, symlink.
23076         * modules/fcntl-safer-tests (Depends-on): Likewise.
23077         * tests/test-openat.c (main): Add test-open tests.
23078
23079         stat: detect FreeBSD bug
23080         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
23081         symlink.
23082         * doc/posix-functions/stat.texi (stat): Document the bug.
23083         * tests/test-stat.h (test_stat_func): Add argument.
23084         * tests/test-stat.c (main): Adjust caller.
23085         * tests/test-fstatat.c (main): Likewise.
23086         * modules/stat-tests (Depends-on): Add stdbool, symlink.
23087         Reported by Jim Meyering.
23088
23089 2009-11-09  James Youngman  <jay@gnu.org>
23090
23091         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
23092         * lib/strftime.c: Correct placement of #include "ignore-value.h".
23093
23094 2009-11-08  Jim Meyering  <meyering@redhat.com>
23095
23096         utimens: remove invalid futimesat call
23097         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
23098         It used the file descriptor of the target file as the DIR_FD
23099         parameter and NULL as the file name.  That caused failure with
23100         errno == EFAULT on FreeBSD-8.0-rc2
23101
23102 2009-11-07  Eric Blake  <ebb9@byu.net>
23103
23104         fflush, freadseek: use fseeko, not fseek
23105         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
23106         (clear_ungetc_buffer): Avoid potential problems on large files.
23107         * lib/freadseek.c (freadseek): Likewise.
23108         * modules/freadseek (Depends-on): Add fseeko.
23109         * modules/fseek (configure.ac): Set a witness.
23110         * tests/test-fflush.c (main): Use fseeko.
23111         * tests/test-fpurge.c (fseek): Disable link warning.
23112         * tests/test-freadable.c (fseek): Likewise.
23113         * tests/test-freading.c (fseek): Likewise.
23114         * tests/test-fseeko.c (fseek): Likewise.
23115         * tests/test-ftell.c (fseek): Likewise.
23116         * tests/test-ftello.c (fseek): Likewise.
23117         * tests/test-fwritable.c (fseek): Likewise.
23118         * tests/test-fwriting.c (fseek): Likewise.
23119
23120 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23121
23122         * modules/memchr (Depends-on): Drop getpagesize dependency.
23123
23124 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23125
23126         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
23127         Reported by Ludovic Courtès.
23128         * build-aux/pmccabe2html: Improve example usage.
23129         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
23130
23131 2009-11-06  Jim Meyering  <meyering@redhat.com>
23132
23133         do-release-commit-and-tag: New module.
23134         Automate the release-commit and tag process.
23135         * build-aux/do-release-commit-and-tag: New script, from coreutils.
23136         * modules/do-release-commit-and-tag: New file.
23137         * MODULES.html.sh (Support for maintaining and releasing): Add it.
23138
23139 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23140
23141         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
23142         because test-select.c uses inet_pton.
23143
23144 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23145
23146         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
23147         GETADDRINFO_LIB.  Bump serial number.
23148         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
23149         Suggested by Eric Blake <ebb9@byu.net>.
23150
23151 2009-11-05  Eric Blake  <ebb9@byu.net>
23152
23153         strtod: detect darwin bug
23154         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
23155         Reported by Leo Davis.
23156
23157         freopen-safer: new module
23158         * modules/freopen-safer: New module.
23159         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
23160         * lib/freopen-safer.c (freopen_safer): New file.
23161         * lib/stdio-safer.h (freopen_safer): New declaration.
23162         * lib/stdio--.h (freopen): New override.
23163         * MODULES.html.sh (File stream based Input/Output): Mention it.
23164         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
23165         freopen-safer module.
23166         * doc/posix-functions/stderr.texi (stderr): Likewise.
23167         * doc/posix-functions/stdin.texi (stdin): Likewise.
23168         * doc/posix-functions/stdout.texi (stdout): Likewise.
23169         * modules/freopen-safer-tests: New test.
23170         * tests/test-reopen-safer.c: New file.
23171
23172 2009-11-05  Jim Meyering  <meyering@redhat.com>
23173
23174         maint.mk: Prohibit inclusion of "close-stream.h" without use.
23175         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23176
23177 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23178
23179         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
23180
23181 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23182
23183         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
23184
23185 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23186
23187         Fix link error.
23188         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23189         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23190
23191 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23192
23193         * tests/test-func.c: Also test value of __func__.
23194
23195 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23196
23197         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
23198         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
23199
23200 2009-11-05  Bruno Haible  <bruno@clisp.org>
23201
23202         Fix link error.
23203         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23204         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23205         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
23206
23207 2009-11-05  Bruno Haible  <bruno@clisp.org>
23208
23209         Tests for module 'inet_pton'.
23210         * modules/inet_pton-tests: New file.
23211         * tests/test-inet_pton.c: New file.
23212
23213 2009-11-05  Bruno Haible  <bruno@clisp.org>
23214
23215         Tests for module 'inet_ntop'.
23216         * modules/inet_ntop-tests: New file.
23217         * tests/test-inet_ntop.c: New file.
23218
23219 2009-11-04  Eric Blake  <ebb9@byu.net>
23220
23221         stdlib-safer: wrap all mkstemp variants
23222         * modules/mkostemp (configure.ac): Set witness.
23223         * modules/mkostemps (configure.ac): Likewise.
23224         * modules/mkstemps (configure.ac): Likewise.
23225         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
23226         (mkstemps_safer): Wrap more functions.
23227         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
23228         wrapping.
23229         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
23230         (mkstemps_safer): Implement the wrappers.
23231
23232         mkstemps, mkostemps: new modules
23233         * modules/mkostemps: New module.
23234         * modules/mkstemps: Likewise.
23235         * lib/mkostemps.c (mkostemps): New file.
23236         * lib/mkstemps.c (mkstemps): Likewise.
23237         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
23238         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
23239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
23240         * modules/stdlib (Makefile.am): Substitute them.
23241         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
23242         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
23243         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23244         * doc/gnulib.texi (Glibc stdlib.h): Include them.
23245         * MODULES.html.sh (File system functions): Mention them.
23246
23247         tempname: resync from glibc
23248         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
23249         same values for __GT_FILE as glibc.  Abort even when assertions
23250         are disabled.
23251         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
23252         match its value otherwise.  Allow idempotent inclusion.
23253         * lib/mkdtemp.c (mkdtemp): Adjust caller.
23254         * lib/mkostemp.c (mkostemp): Likewise.
23255         * lib/mkstemp.c (mkstemp): Likewise.
23256         * lib/tmpfile.c (tmpfile): Likewise.
23257         * NEWS: Document this.
23258
23259         utimens: fix use of futimens on older Linux
23260         * lib/utimens.c (fdutimens): Use updated, rather than original,
23261         timespec to avoid bug in older Linux kernel.
23262         Reported by Simon Josefsson.
23263
23264 2009-11-04  Bruno Haible  <bruno@clisp.org>
23265
23266         Make num_processors more flexible and consistent.
23267         * lib/nproc.h (enum nproc_query): New type.
23268         (num_processors): Add a 'query' argument.
23269         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
23270         (num_processors): Add a 'query' argument. Test the value of the
23271         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
23272         mingw, count the number of CPUs available for the current process.
23273         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
23274         Check for sched_getaffinity and sched_getaffinity_np.
23275         * modules/nproc (Depends-on): Add c-ctype, extensions.
23276         * NEWS: Mention the change.
23277
23278 2009-11-03  Bruno Haible  <bruno@clisp.org>
23279
23280         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
23281
23282 2009-11-03  Jim Meyering  <meyering@redhat.com>
23283
23284         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
23285         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
23286         if it is defined.
23287
23288 2009-11-02  Eric Blake  <ebb9@byu.net>
23289
23290         mktime, timegm: share common declaration
23291         * lib/mktime-internal.h: New file.
23292         * lib/mktime.c: Use it rather than open-coding a declaration.
23293         * lib/timegm.c: Likewise.
23294         * modules/mktime (Files): Ship it.
23295         * modules/timegm (Files): Likewise.
23296         Suggested by Bruno Haible.
23297
23298         test-update-copyright: update test to match script changes
23299         * tests/test-update-copyright.sh: Avoid hard-coding perl
23300         location.  Don't update *.bak created by earlier runs.
23301
23302 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23303             Simon Josefsson  <simon@josefsson.org>
23304             Bruno Haible  <bruno@clisp.org>
23305
23306         Fix link error on Solaris 8.
23307         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
23308         also in libnsl. Define also INET_PTON_LIB.
23309         * modules/inet_pton (Link): New section.
23310
23311 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23312             Bruno Haible  <bruno@clisp.org>
23313
23314         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
23315         * modules/inet_ntop (Link): New section.
23316         Reported by Boyan Kasarov <bkasarov@gmail.com>.
23317
23318 2009-11-02  Eric Blake  <ebb9@byu.net>
23319
23320         maint: avoid compiler warnings in m4 macros
23321         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
23322         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
23323
23324 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23325
23326         * m4/pmccabe2html.m4: Remove file.
23327         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
23328         function.  Change maintainer.
23329         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
23330         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
23331         Courtès).
23332
23333 2009-10-31  Eric Blake  <ebb9@byu.net>
23334
23335         fseeko: fix m4 regression
23336         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
23337         regression from 2009-10-27.
23338         Reported by Ralf Wildenhues.
23339
23340 2009-10-31  Jim Meyering  <meyering@redhat.com>
23341
23342         inttostr: aesthetics and improved (compile-time) safety
23343         Define inttype_is_signed rather than inttype_is_unsigned,
23344         since the sole use is via "#if inttype_is_signed".
23345         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
23346         inttype_is_unsigned.
23347         * lib/offtostr.c (inttype_is_signed): Likewise.
23348         * lib/uinttostr.c (inttype_is_signed): Likewise.
23349         * lib/umaxtostr.c (inttype_is_signed): Likewise.
23350         * lib/inttostr.c (inttostr): Use verify to cross-check the
23351         inttype_is_signed value and the signedness of the actual type.
23352         * modules/inttostr (Depends-on): Add verify.
23353
23354 2009-10-30  Eric Blake  <ebb9@byu.net>
23355
23356         build: avoid compiler warnings
23357         * lib/fchmodat.c (lchmod): Mark unused variables.
23358         * lib/getopt.c (_getopt_initialize): Likewise.
23359         * lib/mktime.c (__mktime_internal): Provide prototype.
23360         * lib/inttostr.c (inttostr): Avoid compiler warning even with
23361         older gcc that do not understand #pragma GCC diagnostic.
23362         * lib/uinttostr.c (inttype_is_unsigned): Define.
23363         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
23364
23365 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23366
23367         stat: fix compilation on AIX
23368         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
23369         only see struct stat64.
23370
23371 2009-10-30  Eric Blake  <ebb9@byu.net>
23372
23373         exclude: make more robust
23374         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
23375         rather than masking a coding bug.
23376         Suggested by Bruno Haible.
23377
23378 2009-10-30  Jim Meyering  <meyering@redhat.com>
23379
23380         perl scripts: remove #!/usr/bin/perl in favor of more portable...
23381         Rather than putting #!/usr/bin/perl on the first line,
23382         start with a variant of what's recommended by "man perlrun" that
23383         invokes the first "perl" program from your shell's search path.
23384         * build-aux/gitlog-to-changelog: Replace #!... as above.
23385         Add a "Local Variables" perl mode setting.
23386         Prompted by a patch from Ludovic Courtès.
23387         Improved by Eric Blake.
23388         * build-aux/useless-if-before-free: Likewise.
23389         * build-aux/announce-gen: Likewise.
23390         * build-aux/update-copyright: Likewise.
23391
23392 2009-10-29  Eric Blake  <ebb9@byu.net>
23393
23394         filenamecat-lgpl: adjust clients
23395         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
23396         filenamecat.
23397         * modules/renameat (Depends-on): Likewise.
23398
23399         filenamecat: split into filenamecat-lgpl
23400         * modules/filenamecat-lgpl: New module.
23401         * modules/filenamecat (Files): Move library-safe files into
23402         filenamecat-lgpl.
23403         (Depends-on): Add filenamecat-lgpl.
23404         (configure.ac): Declare witness.
23405         * lib/filenamecat.h (file_name_concat): Only declare when using
23406         GPL module.
23407         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
23408         Move...
23409         * lib/filenamecat-lgpl.c: ...into new file.
23410         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
23411         (gl_FILE_NAME_CONCAT): Use it.
23412         * MODULES.html.sh (File system functions): Mention new module.
23413
23414         argp: avoid memory leak
23415         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
23416         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
23417         base_name, since the latter malloc()s and can call exit().
23418         Leak introduced 2006-07-03.
23419
23420         dirname-lgpl: adjust clients that don't need full dirname
23421         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
23422         * modules/filenamecat (Depends-on): Likewise.
23423         * modules/linkat (Depends-on): Likewise.
23424         * modules/mkancesdirs (Depends-on): Likewise.
23425         * modules/mkdir (Depends-on): Likewise.
23426         * modules/openat (Depends-on): Likewise.
23427         * modules/savewd (Depends-on): Likewise.
23428         * modules/rename (Depends-on): Likewise.
23429         (License): Relax license.
23430         * modules/mkdir-tests (Depends-on): Drop progname.
23431         (Makefile.am): Delete unneeded LDADD.
23432         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
23433
23434         dirname: split into dirname-lgpl
23435         * modules/dirname-lgpl: New module.
23436         * modules/dirname (Files): Move library-safe files into
23437         dirname-lgpl.
23438         (Depends-on): Add dirname-lgpl.
23439         (configure.ac): Declare witness.
23440         * modules/double-slash-root (License): Relax license.
23441         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
23442         module.
23443         * lib/dirname.c (dir_len, mdir_name): Move...
23444         * lib/dirname-lgpl.c: ...into new file.
23445         * lib/basename.c (last_component, base_len): Move...
23446         * lib/basename-lgpl.c: ...into new file.
23447         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
23448         (gl_DIRNAME): Use it.
23449         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
23450         Mention new module.
23451         * modules/dirname-tests (Depends-on): Add progname.
23452         * tests/test-dirname.c (program_name): Delete.
23453
23454         mkdir: make safe for libraries
23455         * modules/mkdir (Depends-on): Drop xalloc.
23456         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
23457         exit.
23458
23459         tests: avoid some compiler warnings
23460         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
23461         literals.
23462         * tests/test-memchr.c (main): Avoid type mismatch.
23463         * tests/test-arpa_inet.c (main): Avoid unused parameters.
23464         * tests/test-base64.c (main): Likewise.
23465         * tests/test-getdelim.c (main): Likewise.
23466         * tests/test-gethostname.c (main): Likewise.
23467         * tests/test-getline.c (main): Likewise.
23468         * tests/test-netinet_in.c (main): Likewise.
23469         * tests/test-select.c (open_server_socket, main): Likewise.
23470         * tests/test-select-stdin.c (main): Likewise.
23471         * tests/test-sockets.c (main): Likewise.
23472         * tests/test-strsignal.c (main): Likewise.
23473         * tests/test-sys_select.c (main): Likewise.
23474         * tests/test-sys_socket.c (main): Likewise.
23475         * tests/test-u64.c (main): Likewise.
23476         * tests/test-xfprintf-posix.c (main): Likewise.
23477         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
23478
23479         sockets: avoid compiler warning
23480         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
23481
23482         maint: detect usage(1) and other suspicious exits
23483         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
23484
23485 2009-10-29  Jim Meyering  <meyering@redhat.com>
23486
23487         timespec: long-to-int truncation could make timespec_cmp malfunction
23488         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
23489         a multiple of 2^32 nanoseconds as no difference.
23490
23491 2009-10-28  Jim Meyering  <meyering@redhat.com>
23492
23493         fprintftime: wrap macro code argument in "do {...} while(0)"
23494         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
23495         cpy macro must be a statement that can be followed by a semicolon.
23496         Now that the else clause contains a comment and is hence longer
23497         than one line, I require curly braces.  That in turn requires
23498         that we wrap this code block in the standard do...while(0).
23499
23500         fprintftime: remove stray semicolon from previous change
23501         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
23502
23503         fprintftime: avoid a warning about ignored fwrite return value
23504         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
23505         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
23506         that is unsafe.
23507         * modules/fprintftime (Depends-on): Add ignore-value.
23508
23509         exclude: avoid an unwarranted warning
23510         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
23511
23512 2009-10-27  Eric Blake  <ebb9@byu.net>
23513
23514         fseek: avoid compilation failure when fflush is replaced
23515         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
23516         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
23517         module is in use.
23518         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
23519         module is not in use; since REPLACE_FSEEK worked otherwise.
23520         (GNULIB_FTELLO): Likewise for ftell.
23521         Reported by Ian Beckwith and others.
23522
23523 2009-10-27  Bruno Haible  <bruno@clisp.org>
23524
23525         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
23526         Reported by Jim Meyering.
23527
23528 2009-10-27  Jim Meyering  <jim@meyering.net>
23529             Bruno Haible  <bruno@clisp.org>
23530
23531         Avoid warning despite dropping the return value of fwrite.
23532         * lib/unicodeio.c: Include ignore-value.h.
23533         (fwrite_success_callback): Explicitly ignore fwrite's return value.
23534         * modules/unicodeio (Depends-on): Add ignore-value.
23535
23536 2009-10-26  Eric Blake  <ebb9@byu.net>
23537
23538         areadlinkat: fix fallback path
23539         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
23540         pointer and zero.
23541
23542 2009-10-22  Pádraig Brady  <P@draigBrady.com>
23543
23544         Use a better IO block size for modern systems
23545         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
23546         * lib/md2.c: Likewise.
23547         * lib/md4.c: Likewise.
23548         * lib/md5.c: Likewise.
23549         * lib/sha1.c: Likewise.
23550         * lib/sha256.c: Likewise.
23551         * lib/sha512.c: Likewise.
23552
23553 2009-10-22  Eric Blake  <ebb9@byu.net>
23554
23555         tests: avoid several compiler warnings
23556         * tests/test-getcwd.c (main): Avoid buffer underflow.
23557         * tests/test-getdate.c (main): String literals are not safe with
23558         putenv, so use setenv.  Declare unused argument.
23559         * modules/getdate-tests (Depends-on): Add setenv.
23560         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
23561         problems with string literals in char *.
23562         * tests/test-hash.c (main): Avoid shadowing declaration.
23563         (insert_new): Treat string literals as char const *.
23564         * tests/test-getopt.h (test_getopt): Likewise.
23565         (getopt_loop): Alter types to minimize casting elsewhere.
23566         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
23567         (test_getopt_long_posix): Likewise.
23568         (do_getopt_long): Add wrapper to minimize casting.
23569         * tests/test-atexit.c (clear_temp_file): Use void.
23570         * tests/test-areadlink-with-size.c (main): Declare unused
23571         arguments.
23572         * tests/test-areadlink.c (main): Likewise.
23573         * tests/test-areadlinkat-with-size.c (main): Likewise.
23574         * tests/test-areadlinkat.c (main): Likewise.
23575         * tests/test-canonicalize-lgpl.c (main): Likewise.
23576         * tests/test-canonicalize.c (main): Likewise.
23577         * tests/test-dirent-safer.c (main): Likewise.
23578         * tests/test-dirname.c (main): Likewise.
23579         * tests/test-dup2.c (main): Likewise.
23580         * tests/test-fchdir.c (main): Likewise.
23581         * tests/test-fcntl-h.c (main): Likewise.
23582         * tests/test-fcntl-safer.c (main): Likewise.
23583         * tests/test-fdopendir.c (main): Likewise.
23584         * tests/test-fdutimensat.c (main): Likewise.
23585         * tests/test-fflush.c (main): Likewise.
23586         * tests/test-filenamecat.c (main): Likewise.
23587         * tests/test-filevercmp.c (main): Likewise.
23588         * tests/test-fopen-safer.c (main): Likewise.
23589         * tests/test-fopen.c (main): Likewise.
23590         * tests/test-fpending.c (main): Likewise.
23591         * tests/test-fpurge.c (main): Likewise.
23592         * tests/test-freading.c (main): Likewise.
23593         * tests/test-fstatat.c (main): Likewise.
23594         * tests/test-fsync.c (main): Likewise.
23595         * tests/test-futimens.c (main): Likewise.
23596         * tests/test-getndelim2.c (main): Likewise.
23597         * tests/test-gettimeofday.c (main): Likewise.
23598         * tests/test-getopt.c (main): Likewise.
23599         * tests/test-i-ring.c (main): Likewise.
23600         * tests/test-inttypes.c (main): Likewise.
23601         * tests/test-link.c (main): Likewise.
23602         * tests/test-lstat.c (main): Likewise.
23603         * tests/test-math.c (main): Likewise.
23604         * tests/test-md5.c (main): Likewise.
23605         * tests/test-memchr2.c (main): Likewise.
23606         * tests/test-memrchr.c (main): Likewise.
23607         * tests/test-mkdir.c (main): Likewise.
23608         * tests/test-mkdirat.c (main): Likewise.
23609         * tests/test-mkfifoat.c (main): Likewise.
23610         * tests/test-open.c (main): Likewise.
23611         * tests/test-openat-safer.c (main): Likewise.
23612         * tests/test-openat.c (main): Likewise.
23613         * tests/test-quotearg.c (main): Likewise.
23614         * tests/test-rawmemchr.c (main): Likewise.
23615         * tests/test-readlink.c (main): Likewise.
23616         * tests/test-remove.c (main): Likewise.
23617         * tests/test-rename.c (main): Likewise.
23618         * tests/test-renameat.c (main): Likewise.
23619         * tests/test-rmdir.c (main): Likewise.
23620         * tests/test-sha1.c (main): Likewise.
23621         * tests/test-signal.c (main): Likewise.
23622         * tests/test-sigaction.c (main): Likewise.
23623         * tests/test-stat.c (main): Likewise.
23624         * tests/test-stat-time.c (main): Likewise.
23625         * tests/test-stddef.c (main): Likewise.
23626         * tests/test-stdint.c (main): Likewise.
23627         * tests/test-stdio.c (main): Likewise.
23628         * tests/test-stdlib.c (main): Likewise.
23629         * tests/test-strchrnul.c (main): Likewise.
23630         * tests/test-strerror.c (main): Likewise.
23631         * tests/test-string.c (main): Likewise.
23632         * tests/test-strtod.c (main): Likewise.
23633         * tests/test-strverscmp.c (main): Likewise.
23634         * tests/test-symlink.c (main): Likewise.
23635         * tests/test-symlinkat.c (main): Likewise.
23636         * tests/test-sys_stat.c (main): Likewise.
23637         * tests/test-sys_time.c (main): Likewise.
23638         * tests/test-time.c (main): Likewise.
23639         * tests/test-unistd.c (main): Likewise.
23640         * tests/test-unlink.c (main): Likewise.
23641         * tests/test-unlinkat.c (main): Likewise.
23642         * tests/test-utimens.c (main): Likewise.
23643         * tests/test-utimensat.c (main): Likewise.
23644         * tests/test-version-etc.c (main): Likewise.
23645         * tests/test-wchar.c (main): Likewise.
23646         * tests/test-wctype.c (main): Likewise.
23647         * tests/test-xprintf-posix.c (main): Likewise.
23648         * tests/test-posixtm.c (main): Likewise.
23649         (STREQ): Delete unused macro.
23650         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
23651         shadowed variables.
23652         * tests/test-memchr.c (main): Likewise.
23653
23654 2009-10-21  Eric Blake  <ebb9@byu.net>
23655
23656         areadlinkat: avoid failure on older glibc
23657         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
23658         rather than mis-comparing 0 against FUNC_RESULT of char*.
23659
23660 2009-10-21  Bruno Haible  <bruno@clisp.org>
23661
23662         * modules/stpncpy (License): Relicense under LGPLv2+.
23663         Reported by David Lutterkort <lutter@redhat.com>.
23664
23665 2009-10-20  Eric Blake  <ebb9@byu.net>
23666
23667         utimensat: work around Solaris 9 bug
23668         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
23669         has trailing slash bugs.
23670         * tests/test-lutimens.h (test_lutimens): Enhance test.
23671         * tests/test-utimens.h (test_utimens): Likewise.
23672         * doc/posix-functions/utime.texi (utime): Enhance documentation.
23673         * doc/posix-functions/utimes.texi (utimes): Likewise.
23674         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23675         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
23676         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
23677         * doc/posix-functions/futimens.texi (futimens): Likewise.
23678
23679         fdutimensat: new module
23680         * modules/fdutimensat: New file.
23681         * lib/fdutimensat.c (fdutimensat): Likewise.
23682         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
23683         * MODULES.html.sh (File system functions): Mention module.
23684         * modules/fdutimensat-tests: New test.
23685         * tests/test-fdutimensat.c: Likewise.
23686
23687         doc: regenerate INSTALL
23688         * doc/INSTALL: Reflect recent autoconf update.
23689         * doc/INSTALL.ISO: Likewise.
23690         * doc/INSTALL.UTF-8: Likewise.
23691
23692 2009-10-20  Pádraig Brady  <P@draigBrady.com>
23693
23694         acl: warn if ACL support is not detected
23695         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
23696
23697 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
23698
23699         * lib/nproc.h: Add extern "C" block for C++.
23700
23701 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
23702             Bruno Haible  <bruno@clisp.org>
23703
23704         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
23705         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
23706         * doc/posix-functions/isalpha.texi: Likewise.
23707         * doc/posix-functions/isblank.texi: Likewise.
23708         * doc/posix-functions/iscntrl.texi: Likewise.
23709         * doc/posix-functions/isdigit.texi: Likewise.
23710         * doc/posix-functions/isgraph.texi: Likewise.
23711         * doc/posix-functions/islower.texi: Likewise.
23712         * doc/posix-functions/isprint.texi: Likewise.
23713         * doc/posix-functions/ispunct.texi: Likewise.
23714         * doc/posix-functions/isspace.texi: Likewise.
23715         * doc/posix-functions/isupper.texi: Likewise.
23716         * doc/posix-functions/isxdigit.texi: Likewise.
23717
23718 2009-10-18  Bruno Haible  <bruno@clisp.org>
23719
23720         Tests for module 'isblank'.
23721         * modules/isblank-tests: New file.
23722         * tests/test-isblank.c: New file.
23723
23724         New module 'isblank'.
23725         * lib/isblank.c: New file.
23726         * m4/isblank.m4: New file.
23727         * modules/isblank: New file.
23728         * doc/posix-functions/isblank.texi: Mention the new module.
23729
23730 2009-10-18  Bruno Haible  <bruno@clisp.org>
23731
23732         New module 'ctype'.
23733         * lib/ctype.in.h: New file.
23734         * m4/ctype.m4: New file.
23735         * modules/ctype: New file.
23736         * doc/posix-headers/ctype.texi: Mention the new module.
23737
23738 2009-10-18  Jim Meyering  <meyering@redhat.com>
23739
23740         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
23741         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
23742         right after its initialization, rather than farther down.
23743         Keeping these in close proximity makes it easier to ensure
23744         that each such variable is initialized.  E.g.,
23745
23746             LIB_CLOCK_GETTIME=
23747             AC_SUBST([LIB_CLOCK_GETTIME])
23748
23749         This change also increments these serial numbers.
23750         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
23751         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23752         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23753
23754 2009-10-18  Bruno Haible  <bruno@clisp.org>
23755
23756         Don't let environment variables perturb build.
23757         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
23758         (gl_PREREQ_GETHRXTIME): ... not here.
23759
23760 2009-10-18  Bruno Haible  <bruno@clisp.org>
23761
23762         Avoid symlink attack in localcharset module.
23763         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
23764         (O_NOFOLLOW): Define fallback.
23765         (get_charset_aliases): Don't open the file if it is a symbolic link.
23766         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
23767         gl_FCNTL_H.
23768         (gl_FCNTL_H): Require it.
23769         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
23770         * modules/localcharset (Files): Add m4/fcntl_h.m4.
23771         Reported by Fergal Glynn <fglynn@veracode.com>.
23772
23773 2009-10-18  Bruno Haible  <bruno@clisp.org>
23774
23775         Implement nproc for mingw.
23776         * lib/nproc.c: Include <windows.h>
23777         (num_processors): On native Windows platforms, try GetSystemInfo.
23778
23779 2009-10-18  Bruno Haible  <bruno@clisp.org>
23780
23781         Implement nproc for IRIX.
23782         * lib/nproc.c: Include <sys/sysmp.h>.
23783         (num_processors): On IRIX systems, try sysmp.
23784         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
23785
23786 2009-10-18  Bruno Haible  <bruno@clisp.org>
23787
23788         Implement nproc for HP-UX.
23789         * lib/nproc.c: Include <sys/pstat.h>
23790         (num_processors): On HP-UX systems, try pstat_getdynamic.
23791         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
23792         pstat_getdynamic.
23793
23794 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
23795             Bruno Haible  <bruno@clisp.org>
23796
23797         Implement nproc for NetBSD, OpenBSD.
23798         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
23799         (ARRAY_SIZE): New macro.
23800         (num_processors): On BSD systems, try sysctl of HW_NCPU.
23801         * m4/nproc.m4: New file.
23802         * modules/nproc (Files): Add m4/nproc.m4.
23803         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
23804         (Makefile.am): Instead, augment lib_SOURCES.
23805
23806 2009-10-18  Bruno Haible  <bruno@clisp.org>
23807
23808         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
23809         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
23810         sys/param.h.
23811
23812 2009-10-16  Eric Blake  <ebb9@byu.net>
23813
23814         utimensat: new module
23815         * modules/utimensat: New file.
23816         * lib/utimensat.c (utimensat): Likewise.
23817         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23818         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
23819         so we can work around Linux bugs.
23820         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23821         * modules/sys_stat (Makefile.am): Substitute them.
23822         * lib/sys_stat.in.h (utimensat): Declare it.
23823         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23824         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23825         * modules/utimensat-tests: New test.
23826         * tests/test-utimensat.c: Likewise.
23827
23828         utimens: let lutimens work on non-symlinks
23829         * lib/utimens.c (lutimens): Fall back to utimens rather than
23830         failing with ENOSYS, when file is not a symlink.
23831         (utimens): Reduce redirection.
23832         * tests/test-lutimens.h (test_lutimens): Update test to cover
23833         non-symlinks.
23834         * tests/test-utimens.h (test_utimens): Update test to cover
23835         symlinks.
23836         * tests/test-utimens.c (main): Update caller.
23837
23838         utimens: cache whether utimensat syscall works
23839         * lib/utimens.c (utimensat_works_really): New cache variable.
23840         (fdutimens, lutimens): Use it to avoid failing syscall.
23841
23842         test-stat-time, test-utimens: improve portability
23843         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
23844         ext4 on alpha, and for cygwin.
23845         * tests/test-utimens-common.h: New file.
23846         (nap): Factor delays into single function.
23847         * tests/test-lutimens.h (test_lutimens): Use new header.
23848         * tests/test-futimens.h (test_futimens): Likewise.
23849         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
23850         timestamps to occur from same machine, as was done previously for
23851         test_utimens.
23852         * modules/utimens-tests (Files): Ship new file.
23853         * modules/futimens-tests (Files): Likewise.
23854         Reported in part by Jim Meyering.
23855
23856         sys_stat: sort replacement declarations
23857         * lib/sys_stat.in.h: Sort declarations.
23858         * lib/futimens.c (futimens): Fix typo.
23859
23860 2009-10-15  Jim Meyering  <meyering@redhat.com>
23861
23862         don't let environment settings perturb build
23863         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
23864         could cause a configure-time and/or build-time malfunction.
23865         Typically, a configure-time function-in-library test is performed
23866         via code like this:
23867
23868           LIB_VAR=
23869           AC_SUBST([LIB_VAR])
23870           prefix_saved_LIBS=$LIBS
23871             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
23872                        [test "$ac_cv_search_FUNC" = "none required" ||
23873                         LIB_VAR=$ac_cv_search_FUNC])
23874           LIBS=$prefix_saved_LIBS
23875
23876         However, in each of the files affected by this change, the LIB_VAR=
23877         initialization was omitted.  Thus, when set in the environment, its
23878         value would propagate into generated Makefiles when FUNC is not found
23879         in LIB_NAME.
23880         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
23881         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23882         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23883
23884 2009-10-14  Eric Blake  <ebb9@byu.net>
23885
23886         fchdir: avoid infinite recursion in mingw
23887         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
23888         recursing.
23889
23890         test-stat-time: port to mingw
23891         * tests/test-stat-time.c (force_unlink): Return a value.
23892         (test_ctime) [W32]: Fix compilation error.
23893         (nap): Don't call usleep with too large an argument.  Use
23894         force_unlink.
23895         * doc/pastposix-functions/usleep.texi (usleep): Document the
23896         portability issue.
23897
23898 2009-10-13  Jim Meyering  <meyering@redhat.com>
23899
23900         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23901         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23902         * modules/pipe-filter-ii: Likewise.
23903         * modules/sys_socket-tests: Likewise.
23904         * modules/tsearch-tests: Likewise.
23905         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23906         (check): Depend on it.
23907
23908 2009-10-12  Eric Blake  <ebb9@byu.net>
23909
23910         utimens-tests: port to NFS file systems
23911         * tests/test-utimens.h (test_utimens): Refactor utimecmp
23912         comparisons to avoid spurious failures from timestamp drift
23913         between NFS machines.
23914
23915 2009-10-12  Eric Blake  <ebb9@byu.net>
23916
23917         stat-time-tests: minor cleanups
23918         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
23919         * tests/test-stat-time.c (nap): Separate assignment from call.
23920         Suggested by Paolo Bonzini and Bruno Haible.
23921
23922         sys_stat: guarantee struct timespec
23923         * lib/sys_stat.in.h (includes): Always include <time.h>
23924         * modules/sys_stat (Depends-on): Add time.
23925         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
23926         mode_t permission values.
23927         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
23928         get at subsecond timestamps.
23929
23930 2009-10-10  Eric Blake  <ebb9@byu.net>
23931
23932         futimens: new module
23933         * modules/futimens: New file.
23934         * lib/futimens.c (futimens): Likewise.
23935         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
23936         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
23937         we can work around Linux bugs.
23938         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23939         * modules/sys_stat (Makefile.am): Substitute them.
23940         * lib/sys_stat.in.h (futimens): Declare it.
23941         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23942         * doc/posix-functions/futimens.texi (futimens): Likewise.
23943         * modules/futimens-tests: New test.
23944         * tests/test-futimens.c: Likewise.
23945
23946         utimens: introduce fdutimens
23947         * lib/utimens.h (fdutimens): New prototype.
23948         * lib/utimens.c (gl_futimens): Move guts...
23949         (fdutimens): ...to new interface.
23950         * tests/test-utimens.c (do_fdutimens): Use it.
23951
23952         utimens: add UTIME_NOW and UTIME_OMIT support
23953         * lib/utimens.c (validate_timespec, update_timespec): New helper
23954         functions.
23955         (gl_futimens, lutimens): Use them.
23956         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
23957         stdbool, sys_stat.
23958         (Link): Mention resulting library dependency.
23959         * modules/utimecmp (Link): Likewise.
23960         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
23961         (Makefile.am): Pick up library dependency.
23962         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
23963         definition.
23964         * tests/test-sys_stat.c: Test the definitions.
23965         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
23966         * NEWS: Document library dependency.
23967
23968         utimecmp: support symlink timestamps
23969         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
23970         hashing when possible.  Use pathconf when available.
23971         (SYSCALL_RESOLUTION): Recognize tighter resolution.
23972         * modules/utimecmp (Depends-on): Add lstat.
23973
23974         utimens: add lutimens interface
23975         * lib/utimens.c (lutimens): New function.
23976         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
23977         * lib/utimens.h (lutimens): Declare new interface.
23978         * tests/test-utimens.c (main): Enhance test.
23979         * tests/test-lutimens.h (test_lutimens): New file.
23980         * modules/utimens-tests (Files): Distribute it.
23981         (Depends-on): Add symlink.
23982         (configure.ac): Check for usleep.
23983
23984         utimens: validate futimens usage
23985         * lib/utimens.c (gl_futimens): Require valid fd up front, using
23986         fewer syscalls on failure later on.  Avoid compiler warning on
23987         mingw.
23988         * modules/utimens (Depends-on): Add dup2.
23989
23990         utimens: add test
23991         * modules/utimens-tests: New test.
23992         * tests/test-utimens.h: New file.
23993         * tests/test-futimens.h: Likewise.
23994         * tests/test-utimens.c: Likewise.
23995
23996         doc: mention timestamp portability issues
23997         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
23998         instead.
23999         * doc/posix-functions/utime.texi (utime): Likewise.
24000         * doc/posix-functions/utimes.texi (utimes): Likewise.
24001         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
24002         instead.
24003         * doc/posix-functions/futimens.texi (futimens): Mention utimens
24004         module.
24005         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24006         Mention weakness with symlink timestamps.
24007         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
24008         to utimensat/futimens instead.
24009         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
24010
24011         test-dup2: enhance test
24012         * tests/test-dup2.c (main): Also check AT_FDCWD.
24013
24014         test-stat-time: avoid more spurious failures
24015         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
24016         xfs; and avoid race if the two timestamps cross quantization edge.
24017
24018         relocatable: prefer 'file system' over 'filesystem'
24019         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
24020         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
24021         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
24022         * doc/relocatable.texi (Enabling Relocatability): Likewise.
24023         * lib/relocatable.c (compute_curr_prefix): Likewise.
24024
24025 2009-10-10  Jim Meyering  <meyering@redhat.com>
24026
24027         stat-time-tests: check for the usleep function
24028         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
24029
24030 2009-10-10  Bruno Haible  <bruno@clisp.org>
24031
24032         * modules/xnanosleep: Put the Link section after the Include section.
24033
24034 2009-10-09  Eric Blake  <ebb9@byu.net>
24035
24036         dup2: work around FreeBSD 6.1 bug
24037         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
24038         * doc/posix-functions/dup2.texi (dup2): Document it.
24039         Reported by Nelson H. F. Beebe and Jim Meyering.
24040
24041         test-stat-time: port to buggy NFS clients
24042         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
24043         (test_ctime): Also skip test if mtime and ctime are skewed.
24044
24045         maint: prefer 'file system' over 'filesystem'
24046         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24047         * doc/posix-functions/lstat.texi (lstat): Likewise.
24048         * lib/file-has-acl.c (file_has_acl): Likewise.
24049         * lib/fwriteerror.c [TEST]: Likewise.
24050         * tests/test-areadlink.h (test_areadlink): Likewise.
24051         * tests/test-areadlinkat-with-size.c (main): Likewise.
24052         * tests/test-areadlinkat.c (main): Likewise.
24053         * tests/test-canonicalize-lgpl.c (main): Likewise.
24054         * tests/test-canonicalize.c (main): Likewise.
24055         * tests/test-fstatat.c (main): Likewise.
24056         * tests/test-linkat.c (main): Likewise.
24057         * tests/test-lstat.h (test_lstat_func): Likewise.
24058         * tests/test-mkdir.h (test_mkdir): Likewise.
24059         * tests/test-readlink.h (test_readlink): Likewise.
24060         * tests/test-remove.c (main): Likewise.
24061         * tests/test-rename.h (test_rename): Likewise.
24062         * tests/test-renameat.c (main): Likewise.
24063         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24064         * tests/test-symlink.h (test_symlink): Likewise.
24065         * tests/test-symlinkat.c (main): Likewise.
24066         * tests/test-unlink.h (test_unlink_func): Likewise.
24067         * tests/test-unlinkat.c (main): Likewise.
24068
24069         maint: make realtime library usage explicit
24070         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
24071         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
24072         * modules/settime (Link): Likewise.
24073         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
24074
24075         test-stat-time: speed up execution
24076         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
24077         warning on mingw.
24078         (nap): New helper function.
24079         (prepare_test): Use it to reduce sleep time.
24080         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
24081         execution.
24082         * modules/stat-time-tests (configure.ac): Check for usleep.
24083
24084 2009-10-09  Jim Meyering  <meyering@redhat.com>
24085
24086         selinux-h: always use getfilecon wrappers
24087         * lib/getfilecon.c: New file.
24088         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
24089         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
24090         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
24091         (fgetfilecon): Provide a stub.
24092         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
24093         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
24094         file unconditionally.
24095         When <selinux/selinux.h> is found, arrange to use wrappers.
24096         * modules/selinux-h (Files): Add getfilecon.c.
24097         (Makefile.am): Substitute include-next-related bits
24098         into the now-always-generated selinux/selinux.h file.
24099         * doc/glibc-functions/lgetfilecon.texi: New file.
24100         * doc/glibc-functions/fgetfilecon.texi: New file.
24101         * doc/glibc-functions/getfilecon.texi: New file.
24102         * doc/glibc-functions/getfilecon-desc.texi: New file.
24103         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
24104         which to pull in the new files.
24105         * MODULES.html.sh (Misc): Add selinux-h.
24106
24107 2009-10-08  Jim Meyering  <meyering@redhat.com>
24108
24109         unistd: fix comment typo
24110         * lib/unistd.in.h (euidaccess): Fix a comment typo.
24111
24112 2009-10-08  Eric Blake  <ebb9@byu.net>
24113
24114         areadlink: use SIZE_MAX consistently
24115         * modules/areadlink (Depends-on): Add stdint.
24116         * modules/areadlink-with-size (Depends-on): Likewise.
24117         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
24118         gives NULL; drop sys/types, since unistd gives size_t; and add
24119         stdint for SIZE_MAX.
24120         (SIZE_MAX): Rely on headers.
24121         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
24122         and add stdint.
24123         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
24124         (SIZE_MAX): Likewise.
24125         (INITIAL_BUF_SIZE): Turn into enum.
24126         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
24127
24128 2009-10-08  Jim Meyering  <meyering@redhat.com>
24129
24130         areadlinkat: avoid compilation failure
24131         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
24132         Fix typo in comment.
24133
24134 2009-10-07  Eric Blake  <ebb9@byu.net>
24135
24136         areadlinkat-with-size: new module
24137         * modules/areadlinkat-with-size: New module.
24138         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
24139         * lib/areadlink.h (areadlinkat): Declare it.
24140         * MODULES.html.sh (File system functions): Mention it.
24141         * modules/areadlinkat-with-size-tests: New test.
24142         * tests/test-areadlinkat-with-size.c: New file.
24143
24144         xreadlinkat: new module
24145         * modules/xreadlinkat: New module.
24146         * lib/xreadlinkat.c (xreadlinkat): New file.
24147         * lib/xreadlink.h (xreadlinkat): Declare it.
24148         * MODULES.html.sh (File system functions): Mention it.
24149
24150         areadlinkat: new module
24151         * lib/at-func.c (FUNC_FAIL): New define.
24152         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
24153         * modules/areadlinkat: New module.
24154         * lib/linkat.c (areadlinkat): Move...
24155         * lib/areadlinkat.c (areadlinkat): ...to new file.
24156         * lib/areadlink.h (areadlinkat): Declare it.
24157         * modules/linkat (Depends-on): Add areadlinkat.
24158         * MODULES.html.sh (File system functions): Mention it.
24159         * modules/areadlinkat-tests: New test.
24160         * tests/test-areadlinkat.c: New file.
24161
24162         areadlink, areadlink-with-size: add tests
24163         * modules/areadlink-tests: New test.
24164         * modules/areadlink-with-size-tests: Likewise.
24165         * tests/test-areadlink.h: New file.
24166         * tests/test-areadlink.c: Likewise.
24167         * tests/test-areadlink-with-size.c: Likewise.
24168
24169         maint: minor cleanups
24170         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
24171         _UNUSED_PARAMETER_ instead.
24172         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
24173         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
24174         * modules/linkat-tests (Files): Distribute test-link.h.
24175
24176         openat, utimens: whitespace cleanup
24177         * lib/openat.c: Prefer space throughout, rather than mix of 8
24178         spaces vs. tabs.
24179         * lib/at-func.c: Likewise.
24180         * lib/utimens.c: Likewise.
24181
24182         openat: avoid using wrong fd
24183         * lib/openat.c (openat_permissive): Reject user's fd if saving the
24184         working directory chooses same fd.
24185         * lib/at-func.c (AT_FUNC_NAME): Likewise.
24186
24187         mkdir, mkdirat: fix cygwin 1.5.x bug
24188         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
24189         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
24190         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
24191         bug.
24192         (gl_PREREQ_MKDIR): Delete unused macro.
24193         * modules/mkdir (Files): Track file rename.
24194         (configure.ac): Update macro name.
24195         * modules/openat (Depends-on): Add mkdir.
24196         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
24197
24198         mkdir, mkdirat: add tests
24199         * modules/mkdir-tests: New test.
24200         * tests/test-mkdir.h: New file.
24201         * tests/test-mkdir.c: Likewise.
24202         * tests/test-mkdirat.c: Likewise.
24203         * modules/openat-tests (Files): Add new files.
24204         (Makefile.am): Run new test.
24205
24206 2009-10-06  Eric Blake  <ebb9@byu.net>
24207
24208         doc: tweak *at function documentation
24209         * doc/posix-functions/faccessat.texi (faccessat): Mention
24210         known issue with replacement.
24211         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
24212         * doc/posix-functions/linkat.texi (linkat): Likewise.
24213         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24214         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24215         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24216         * doc/posix-functions/renameat.texi (renameat): Likewise.
24217         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24218
24219         openat: fix GNU/Hurd bug in unlinkat
24220         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
24221         broken.
24222         * doc/posix-functions/unlink.texi (unlink): Document this.
24223         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
24224
24225         fdopendir: fix GNU/Hurd bug
24226         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
24227         allowing non-directory fds.
24228         * lib/fdopendir.c (rpl_fdopendir): Work around it.
24229         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24230         * modules/dirent (Makefile.am): Substitute it.
24231         * lib/dirent.in.h (fdopendir): Declare replacement.
24232         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
24233         * tests/test-fdopendir.c (main): Test something other than
24234         /dev/null, since on Hurd that behaves like a directory.
24235
24236         test-symlink: port to GNU/Hurd
24237         * tests/test-symlink.h (test_symlink): Relax expected errno.
24238
24239         doc: tweak more cygwin information
24240         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
24241         now compatible with glibc.
24242         * doc/posix-functions/getopt.texi (getopt): Likewise.
24243
24244         getopt-gnu: add another test
24245         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
24246         guarantee behavior relied on by m4.
24247         * tests/test-getopt.c (main): Use it.
24248         * modules/getopt-posix-tests (Depends-on): Add setenv.
24249         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
24250
24251         getopt: fix compilation on darwin
24252         * lib/getopt.in.h (includes): Leave breadcrumbs during system
24253         include.
24254         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
24255         Reported by Ludovic Courtès.
24256
24257 2009-10-06  Bruno Haible  <bruno@clisp.org>
24258
24259         * modules/size_max (Description): Discourage its use.
24260         Reported by Simon Josefsson.
24261
24262 2009-10-06  Jim Meyering  <meyering@redhat.com>
24263
24264         linkat: avoid compilation failure
24265         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
24266
24267 2009-10-05  Eric Blake  <ebb9@byu.net>
24268
24269         linkat: support Linux 2.6.17
24270         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
24271         linkat on Linux, but allow cache variable override.
24272         * lib/linkat.c (rpl_linkat): Define override.
24273         * modules/linkat (Depends-on): Add symlinkat.
24274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
24275         * modules/unistd (Makefile.am): Substitute it.
24276         * lib/unistd.in.h (linkat): Declare replacement.
24277         Reported by Pádraig Brady.
24278
24279         quotearg: port test to systems with C.UTF-8 locale
24280         * tests/test-quotearg.c (struct result_strings): Add another
24281         member, differentiating between C.ASCII and C.UTF-8 handling.
24282         (compare_strings): Add parameter.
24283         (main): Adjust all callers.
24284
24285         getopt: avoid clash with FreeBSD _getopt_internal
24286         * lib/getopt.in.h (_getopt_internal): Override the name.
24287         * lib/getopt_int.h (includes): Pick up any overrides.
24288         Reported by Reuben Thomas.
24289
24290         hash: allow C89 compilation
24291         * lib/hash.c (check_tuning): Move declaration before statement.
24292         Reported by Reuben Thomas.
24293
24294 2009-10-05  Karl Berry  <karl@gnu.org>
24295
24296         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
24297
24298 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
24299             Bruno Haible  <bruno@clisp.org>
24300
24301         * lib/uname.c (uname): Use a table-driven algorithm to compute
24302         Windows NT versions.
24303
24304 2009-10-04  Bruno Haible  <bruno@clisp.org>
24305
24306         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
24307         program_invocation_short_name.
24308         * modules/progname (configure.ac): Test for presence of
24309         program_invocation_short_name.
24310         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24311
24312 2009-10-04  Bruno Haible  <bruno@clisp.org>
24313
24314         * lib/progname.c (set_program_name): Fix comment.
24315         Reported by Jim Meyering.
24316
24317 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24318             Bruno Haible  <bruno@clisp.org>
24319
24320         * lib/uname.c: Include <string.h>.
24321         (uname): Do only one call to GetVersionEx in the common case.
24322
24323 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24324             Bruno Haible  <bruno@clisp.org>
24325
24326         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
24327         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
24328         (uname): Add support for Windows CE and various non-x86 CPU types.
24329
24330 2009-10-03  Bruno Haible  <bruno@clisp.org>
24331
24332         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
24333         invocation to tests/configure.ac.
24334         Reported by Ian Beckwith <ianb@erislabs.net>.
24335
24336 2009-10-02  Eric Blake  <ebb9@byu.net>
24337
24338         fchdir: avoid compiler warning
24339         * lib/fchdir.c (canonicalize_file_name)
24340         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
24341
24342         test-open: support mingw errno values
24343         * tests/test-open.h (test_open): Relax test.
24344         * tests/test-fopen.h (test_fopen): Likewise.
24345         * tests/test-openat-safer.c (main): Likewise.
24346
24347         open: fix opening directory on mingw
24348         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
24349
24350         test-open: on GNU/Hurd, /dev/null is a directory
24351         * tests/test-fopen.h (main): Rename...
24352         (test_fopen): ...to this.  Use a guaranteed non-directory when
24353         confirming open behavior on trailing slash.
24354         * tests/test-openat-safer.c (main): Likewise.
24355         * tests/test-open.h (main): Likewise....
24356         (test_open): ...to this.
24357         * tests/test-fopen.c (main): Adjust caller.
24358         * tests/test-fopen-safer.c (main): Likewise.
24359         * tests/test-open.c (main): Likewise.
24360         * tests/test-fcntl-safer.c (main): Likewise.
24361         Reported by Samuel Thibault.
24362
24363         rename, fchdir: don't ignore chdir failure
24364         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
24365         * lib/rename.c (rpl_rename) [W32]: Likewise.
24366         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
24367         an empty destination directory if source cannot be renamed,
24368         although there is still possibility for failure.
24369         * doc/posix-functions/rename.texi (rename): Document the race.
24370         Reported by Jim Meyering.
24371
24372         maint: cleanup whitespace in recent commits
24373         * lib/rename.c (rpl_rename): Remove tabs.
24374         * tests/test-link.h (test_link): Likewise.
24375         * lib/fchdir.c (get_name): Likewise.
24376         Reported by Jim Meyering.
24377
24378 2009-10-02  Ben Pfaff  <blp@gnu.org>
24379
24380         relocatable-prog-wrapper: Add missing dependency on
24381         double-slash-root.
24382         * modules/relocatable-prog-wrapper: Add dependency.
24383         Reported by Ian Beckwith <ianb@erislabs.net>.
24384
24385 2009-10-02  Eric Blake  <ebb9@byu.net>
24386
24387         renameat: fix Solaris bugs
24388         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
24389         needed fixing.
24390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
24391         * modules/stdio (Makefile.am): Substitute it.
24392         * lib/stdio.in.h (renameat): Declare replacement.
24393         * lib/renameat.c (rpl_renameat): Implement fix.
24394
24395         renameat: new module
24396         * modules/renameat: New file.
24397         * lib/renameat.c (renameat): Likewise.
24398         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
24399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24400         * modules/stdio (Makefile.am): Substitute them.
24401         * lib/stdio.in.h (renameat): Declare it.
24402         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24403         * doc/posix-functions/renameat.texi (renameat): Likewise.
24404         * modules/renameat-tests: New test.
24405         * tests/test-renameat.c: Likewise.
24406
24407         rename: fix mingw bugs
24408         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
24409         directory overwrite bugs.
24410
24411         rename: fix another cygwin 1.5 bug
24412         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
24413         checks.
24414         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
24415         unnecessary cygwin workarounds.  Also work around bug with moving
24416         full directory onto an empty one.
24417         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
24418
24419         rename-dest-slash: merge into rename module
24420         * modules/rename-dest-slash (Status): Mark obsolete.
24421         (Depends-on): Add rename.
24422         (Files): Let rename do it all.
24423         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
24424         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
24425         * m4/rename-dest-slash.m4: ...so this file can be deleted.
24426         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
24427         * lib/rename.c (rpl_rename): Update comments.
24428
24429         rename: fix cygwin 1.5.x bugs
24430         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
24431         * lib/rename.c (rpl_rename): Work around them.
24432         * modules/rename (Depends-on): Add same-inode.
24433
24434         rename: fix Solaris 10 bug
24435         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24436         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
24437         was the only bug.
24438
24439         rename: fix Solaris 9 bug
24440         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
24441         on non-directory.  Avoid calling exit.
24442         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
24443         strdup.
24444         * modules/rename-tests (Depends-on): Drop lstat.
24445         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24446         (gl_PREREQ_RENAME): Delete unused macro.
24447
24448         rename-dest-slash: fix NetBSD bug
24449         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
24450         links.
24451         * modules/rename-dest-slash (Depends-on): Add same-inode.
24452
24453         rename-tests: new test, exposes several platform bugs
24454         * modules/rename-tests: New file.
24455         * tests/test-rename.h: Likewise.
24456         * tests/test-rename.c: Likewise.
24457         * doc/posix-functions/rename.texi (rename): Improve documentation,
24458         including bugs that will eventually be fixed in gnulib.
24459
24460 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
24461
24462         * lib/uname.c: Include <stdlib.h>
24463         (uname): Assume version info is available.
24464
24465 2009-10-02  Jim Meyering  <meyering@redhat.com>
24466
24467         gnu-web-doc-update: correct --help output
24468         * build-aux/gnu-web-doc-update: Make --help output relevant.
24469
24470         gnu-web-doc-update: add standard options
24471         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
24472
24473         gnu-web-doc-update: New module.
24474         Use this script to automatically update the on-line web documentation
24475         for your GNU project at http://www.gnu.org/software/$pkg/manual/
24476         * modules/gnu-web-doc-update: New file, from coreutils.
24477         * build-aux/gnu-web-doc-update: New script.
24478
24479 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
24480
24481         link: LoadLibrary is not needed.
24482         * lib/link.c: Use GetModuleHandle.
24483
24484 2009-10-01  Eric Blake  <ebb9@byu.net>
24485
24486         getopt: bump serial number
24487         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
24488         change.
24489
24490         tests: tighten link, rmdir, and remove tests
24491         * tests/test-link.h (includes): No need to use <config.h> here.
24492         Clean up if directory hard link was created, otherwise test for
24493         trailing '.'.
24494         * tests/test-linkat.c (main): Simplify.
24495         * tests/test-remove.c (main): Enhance test for trailing '.'.
24496         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24497
24498 2009-10-01  Jim Meyering  <meyering@redhat.com>
24499
24500         maint.mk: requiring "make major" was annoying, for a "minor" release.
24501         What is intended is "stable", to contrast with alpha and beta,
24502         so require "make stable", not "make major".
24503         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
24504         (get_tool_versions): Likewise.
24505         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
24506
24507 2009-09-30  Ben Pfaff  <blp@gnu.org>
24508
24509         Fix broken build of replacement for Windows tmpfile().
24510         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
24511         flags argument added along with the 'mkostemp' module.
24512
24513 2009-09-28  Bruno Haible  <bruno@clisp.org>
24514
24515         Avoid identifier clash with POSIX function 'remove' defined as a macro.
24516         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
24517         to 'remove_elt'.
24518         (gl_list_remove): Update.
24519         * lib/gl_list.c (gl_list_remove): Update.
24520         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
24521         to 'remove_elt'.
24522         (gl_oset_remove): Update.
24523         * lib/gl_list.c (gl_oset_remove): Update.
24524         Reported by Eric Blake.
24525
24526 2009-09-28  Eric Blake  <ebb9@byu.net>
24527
24528         doc: mention yet more cygwin 1.7 status
24529         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
24530         cygwin.
24531         * doc/glibc-functions/execvpe.texi (execvpe): New file.
24532         * doc/gnulib.texi (Glibc unistd.h): Mention it.
24533
24534         argp: fix test failure
24535         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
24536         that are not upper-case.  Pass correct range to tolower.
24537
24538 2009-09-27  Jim Meyering  <meyering@redhat.com>
24539
24540         test-yesno: work around sparc-dash here-document infelicity
24541         Without this change, the literal \177 byte in a here document
24542         would make dash 0.5.5.1-3 access uninitialized memory.
24543         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
24544         Instead, use a marker, "@", and filter through tr to create the desired
24545         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
24546
24547 2009-09-27  Bruno Haible  <bruno@clisp.org>
24548
24549         Disable untested support for new flavours of ACLs on AIX.
24550         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
24551         progress.
24552         * lib/set-mode-acl.c (qset_acl): Likewise.
24553
24554 2008-12-07  Bruno Haible  <bruno@clisp.org>
24555
24556         Add support for new flavours of ACLs on AIX. (Untested.)
24557         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
24558         (file_has_acl): Add support for newer AIX.
24559         * lib/set-mode-acl.c (qset_acl): Likewise.
24560         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
24561         Rainer Tammer <tammer@tammer.net>.
24562
24563 2009-09-26  Eric Blake  <ebb9@byu.net>
24564
24565         argp: fix compilation of getopt
24566         * lib/getopt.in.h (includes): Use different guard than glibc.
24567         Reported by Sergey Poznyakoff.
24568
24569         doc: mention more cygwin 1.7 status
24570         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
24571         bug.
24572         * doc/posix-functions/execl.texi (execl): Likewise.
24573         * doc/posix-functions/execle.texi (execle): Likewise.
24574         * doc/posix-functions/execlp.texi (execlp): Likewise.
24575         * doc/posix-functions/execv.texi (execv): Likewise.
24576         * doc/posix-functions/execve.texi (execve): Likewise.
24577         * doc/posix-functions/execvp.texi (execvp): Likewise.
24578         * doc/glibc-functions/canonicalize_file_name.texi
24579         (canonicalize_file_name): Cygwin 1.7 now provides this.
24580         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
24581         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
24582         on AT_SYMLINK_NOFOLLOW.
24583
24584 2009-09-24  Eric Blake  <ebb9@byu.net>
24585
24586         test-linkat: make test more robust
24587         * tests/test-linkat.c (main): Avoid collision with EEXIST.
24588
24589         getopt: fix inclusion guards for cygwin
24590         * modules/getopt-posix (Depends-on): Add include-next.
24591         (Makefile.am): Substitute more items in replacement header.
24592         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
24593         <getopt.h>.
24594         * lib/getopt.in.h (includes): Use split inclusion guard, and
24595         prefer <getopt.h> over include <unistd.h> when one is present.
24596         (option): Also override name of 'struct option'.
24597
24598         same-inode: revert prior change; it is not yet ready
24599         * NEWS: Undo mention of this change.
24600         * lib/same-inode.h (same-inode.h): Undo tri-state change.
24601         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24602         * lib/cycle-check.c (cycle_check): Likewise.
24603         * lib/same.c (same_name): Likewise.
24604         * lib/at-func2.c (at_func2): Likewise.
24605
24606 2009-09-23  Eric Blake  <ebb9@byu.net>
24607
24608         linkat: new module
24609         * modules/linkat: New file.
24610         * lib/at-func2.c (at_func2): Likewise.
24611         * lib/linkat.c (linkat): Likewise.
24612         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24613         * lib/openat-priv.h (at_func2): Add declaration.
24614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24615         * modules/unistd (Makefile.am): Substitute them.
24616         * lib/unistd.in.h (linkat): Declare it.
24617         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24618         * doc/posix-functions/linkat.texi (linkat): Likewise.
24619         * doc/posix-functions/link.texi (link): Tweak wording.
24620         * tests/test-link.c (main): Move guts...
24621         * tests/test-link.h (test_link): ...into new file.
24622         * modules/linkat-tests: New test.
24623         * tests/test-linkat.c: Likewise.
24624         * modules/link-tests (Files): Ship new file.
24625         (Depends-on): Add stdbool.
24626
24627         dirname: add library-safe mdir_name
24628         * lib/dirname.h (mdir_name): New prototype.
24629         * lib/dirname.c (dir_name): Move guts...
24630         (mdir_name): ...to new function that avoids xalloc_die.
24631
24632         fchdir: another mingw fix
24633         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
24634         * lib/fchdir.c (get_name): New helper method; skips canonicalize
24635         on mingw (where it has not yet been ported), and make it optional
24636         elsewhere.
24637         (_gl_register_fd): Use it.
24638
24639         same-inode: make SAME_INODE tri-state, to port to mingw
24640         * NEWS: Mention this change.
24641         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
24642         st_ino always being 0.
24643         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24644         * lib/cycle-check.c (cycle_check): Likewise.
24645         * lib/same.c (same_name): Likewise.
24646
24647         lstat: avoid mingw compilation error
24648         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
24649         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
24650         lstat ourselves.
24651         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
24652         was adequate.
24653         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
24654         the checks for lstat.
24655         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
24656
24657         link: fix test failure on Solaris 9
24658         * lib/link.c (rpl_link): Don't assume link will catch bogus
24659         trailing slash on source.
24660
24661         test-symlinkat: enhance test
24662         * tests/test-readlink.c (main): Move guts...
24663         * tests/test-readlink.h (test_readlink): ...into new file.
24664         * tests/test-symlink.c (main): Move guts...
24665         * tests/test-symlink.h (test_symlink): ...into new file.
24666         * tests/test-symlinkat.c (main): Use new files for further
24667         coverage.
24668         (do_symlink, do_readlink): New helper functions.
24669         * modules/symlink-tests (Files): Ship new file.
24670         (Depends-on): Add stdbool.
24671         * modules/readlink-tests (Files): Ship new file.
24672         (Depends-on): Add stdbool.
24673         * modules/symlinkat-tests (Files): Use new files.
24674
24675 2009-09-23  Eric Blake  <ebb9@byu.net>
24676
24677         readlink: document portability issue with symlink length
24678         * doc/posix-functions/lstat.texi (lstat): Mention that some file
24679         systems have bogus st_size on symlinks, and mention the
24680         areadlink-with-size module.
24681         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24682         * doc/posix-functions/readlink.texi (readlink): Mention the
24683         areadlink module, and ERANGE failure.
24684         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24685         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
24686
24687         readlink: fix Solaris 9 bug with trailing slash
24688         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
24689         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
24690         * doc/posix-functions/readlink.texi (readlink): Document this.
24691         * modules/readlink-tests: New test.
24692         * tests/test-readlink.c: Likewise.
24693
24694         readlink: fix cygwin 1.5.x bug with return type
24695         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
24696         * lib/unistd.in.h (readlink): Use ssize_t.
24697         * lib/readlink.c (readlink): Likewise.
24698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24699         * modules/unistd (Makefile.am): Substitute it.
24700         * lib/unistd.in.h (readlink): Declare replacement.
24701         * doc/posix-functions/readlink.texi (readlink): Document this.
24702
24703         symlink: use throughout gnulib
24704         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
24705         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
24706         symlink is not used.
24707         * modules/symlinkat (Depends-on): Add symlink.
24708         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24709         * modules/canonicalize-tests (Depends-on): Likewise.
24710         * modules/lstat-tests (Depends-on): Likewise.
24711         * modules/openat-tests (Depends-on): Likewise.
24712         * modules/remove-tests (Depends-on): Likewise.
24713         * modules/rmdir-tests (Depends-on): Likewise.
24714         * modules/unlink-tests (Depends-on): Likewise.
24715         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
24716         * tests/test-canonicalize.c (symlink): Likewise.
24717         * tests/test-fstatat.c (symlink): Likewise.
24718         * tests/test-lstat.c (symlink): Likewise.
24719         * tests/test-remove.c (symlink): Likewise.
24720         * tests/test-rmdir.c (symlink): Likewise.
24721         * tests/test-unlink.c (symlink): Likewise.
24722         * tests/test-unlinkat.c (symlink): Likewise.
24723
24724         symlink: new module, for Solaris 9 bug
24725         * modules/symlink: New file.
24726         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24727         * lib/symlink.c: Likewise.
24728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24729         * modules/unistd (Makefile.am): Substitute them.
24730         * lib/unistd.in.h (symlink): Declare replacement.
24731         * MODULES.html.sh (File system functions): Mention it.
24732         * doc/posix-functions/symlink.texi (symlink): Likewise.
24733         * modules/symlink-tests: New test.
24734         * tests/test-symlink.c: Likewise.
24735
24736 2009-09-23  Bruno Haible  <bruno@clisp.org>
24737
24738         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
24739         when needed.
24740         Test case: gnulib-tool --import --with-tests atexit inttypes.
24741         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
24742
24743 2009-09-23  Bruno Haible  <bruno@clisp.org>
24744
24745         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
24746         subcommand, not in a subshell.
24747
24748 2009-09-22  Eric Blake  <ebb9@byu.net>
24749
24750         unistd: sort replacement declarations
24751         * lib/unistd.in.h: Sort declarations.
24752
24753         open, openat: minor optimization
24754         * lib/open.c (open): If open succeeded, len is non-zero.
24755         * lib/openat.c (rpl_openat): Likewise.
24756
24757         link-follow: ensure correct result
24758         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
24759         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
24760         distinguish between possible failures.
24761
24762 2009-09-21  Eric Blake  <ebb9@byu.net>
24763
24764         fts: avoid compiler warning
24765         * lib/fts.c (dirent_inode_sort_may_be_useful)
24766         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
24767
24768 2009-09-19  Bruno Haible  <bruno@clisp.org>
24769
24770         * lib/progreloc.c (canonicalize_file_name): New declaration.
24771
24772 2009-09-19  Eric Blake  <ebb9@byu.net>
24773
24774         link: fix quoting
24775         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
24776
24777         openat: fix openat bugs on Solaris 9
24778         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
24779         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
24780         * modules/openat (Depends-on): Add open.
24781         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
24782         * modules/fcntl-h (Makefile.am): Substitute it.
24783         * lib/fcntl.in.h (openat): Declare replacement.
24784         * doc/posix-functions/openat.texi (openat): Document this.
24785
24786         openat: move fstatat and unlinkat into correct files
24787         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
24788         compiled.
24789         * lib/openat.c (fstatat, unlinkat): Move...
24790         * lib/fstatat.c (fstatat): ...into correct files.
24791         * lib/unlinkat.c (unlinkat): Likewise.
24792
24793         openat: fix unlinkat bugs on Solaris 9
24794         * lib/unlinkat.c (unlinkat): New file.
24795         * modules/openat (Depends-on): Add unlink.
24796         (Files): Distribute it.
24797         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
24798         trailing slash behavior is broken.
24799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24800         * modules/unistd (Makefile.am): Substitute it.
24801         * lib/unistd.in.h (unlinkat): Declare replacement.
24802         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
24803
24804         openat: fix fstatat bugs on Solaris 9
24805         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
24806         stat.
24807         * doc/posix-functions/fstatat.texi (fstatat): Document this.
24808
24809         test-unlinkat: enhance test, to expose Solaris 9 bug
24810         * tests/test-unlink.c (main): Factor guts...
24811         * tests/test-unlink.h (test_rmdir_func): ...into new file.
24812         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
24813         * tests/test-rmdir.c (main): Adjust caller.
24814         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
24815         (unlinker): New helper function.
24816         (rmdirat): Enhance check.
24817         * modules/rmdir-tests (Depends-on): Add stdbool.
24818         * modules/unlink-tests (Depends-on): Likewise.
24819         (Files): Add test-unlink.h.
24820         * modules/openat-tests (Files): Likewise.
24821         (Depends-on): Add unlinkdir.
24822
24823         test-fstatat: new test, to expose Solaris 9 bugs
24824         * tests/test-stat.c (main): Factor guts...
24825         * tests/test-stat.h (test_stat_func): ...into new file.
24826         * tests/test-lstat.c (main): Factor guts...
24827         * tests/test-lstat.h (test_lstat_func): ...into new file.
24828         * tests/test-fstatat.c: New file.
24829         * modules/stat-tests (Files): Add test-stat.h.
24830         * modules/lstat-tests (Files): Add test-lstat.h.
24831         (Depends-on): Add stdbool.
24832         * modules/openat-tests (Depends-on): Add pathmax.
24833         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
24834         (Makefile.am): Run new test.
24835
24836         remove: new module, for mingw and Solaris 9 bugs
24837         * modules/remove: New file.
24838         * lib/remove.c: Likewise.
24839         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
24840         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24841         * modules/stdio (Makefile.am): Use them.
24842         * lib/stdio.in.h (remove): Declare replacement.
24843         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24844         * doc/posix-functions/remove.texi (remove): Likewise.
24845         * modules/remove-tests: New test.
24846         * tests/test-remove.c: Likewise.
24847
24848         unlink: new module, for Solaris 9 bug
24849         * modules/unlink: New file.
24850         * lib/unlink.c: Likewise.
24851         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24853         * modules/unistd (Makefile.am): Use them.
24854         * lib/unistd.in.h (stat): Declare replacement.
24855         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24856         * doc/posix-functions/unlink.texi (unlink): Likewise.
24857         * modules/unlink-tests: New test.
24858         * tests/test-unlink.c: Likewise.
24859
24860         lstat: fix Solaris 9 bug
24861         * lib/lstat.c (lstat): Also check for trailing slash on
24862         non-symlink, non-directories.  Use stat module to simplify logic.
24863         * doc/posix-functions/lstat.texi (lstat): Document it.
24864         * modules/lstat-tests (Depends-on): Add errno, same-inode.
24865         (configure.ac): Check for symlink.
24866         * tests/test-lstat.c (main): Add more tests.
24867
24868         stat: add as dependency to other modules
24869         * modules/chown (Depends-on): Add stat.
24870         * modules/euidaccess (Depends-on): Likewise.
24871         * modules/fchdir (Depends-on): Likewise.
24872         * modules/isdir (Depends-on): Likewise.
24873         * modules/link (Depends-on): Likewise.
24874         * modules/lstat (Depends-on): Likewise.
24875         * modules/mkdir-p (Depends-on): Likewise.
24876         * modules/modechange (Depends-on): Likewise.
24877         * modules/open (Depends-on): Likewise.
24878         * modules/readlink (Depends-on): Likewise.
24879         * modules/same (Depends-on): Likewise.
24880
24881         stat: fix Solaris 9 bug
24882         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
24883         slash.
24884         * lib/stat.c (rpl_stat): Work around it.
24885         * doc/posix-functions/stat.texi (stat): Update documentation.
24886
24887         stat: new module, for mingw bug
24888         * modules/stat: New file.
24889         * lib/stat.c: Likewise.
24890         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24891         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24892         * modules/sys_stat (Makefile.am): Use them.
24893         * lib/sys_stat.in.h (stat): Declare replacement.
24894         * lib/openat.c (fstatat): Deal with lstat and stat being function
24895         macros.
24896         * modules/openat (Depends-on): Add inline.
24897         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24898         * doc/posix-functions/stat.texi (stat): Likewise.
24899         * modules/stat-tests: New test.
24900         * tests/test-stat.c: Likewise.
24901
24902 2009-09-19  Jim Meyering  <meyering@redhat.com>
24903
24904         syntax-check: detect unnecessary inclusion of canonicalize.h
24905         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
24906
24907 2009-09-19  Eric Blake  <ebb9@byu.net>
24908
24909         canonicalize-lgpl: adjust clients to use correct header
24910         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24911         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
24912         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
24913         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
24914         * lib/progreloc.c (includes): Likewise.
24915
24916 2009-09-19  Jim Meyering  <meyering@redhat.com>
24917
24918         test-posixtm.c: correct a comment
24919         * tests/test-posixtm.c: Correct first-line comment.
24920         Spotted by Eric Blake.
24921
24922 2009-09-16  Jim Meyering  <meyering@redhat.com>
24923
24924         posixtm-tests: make T const-correct; add a test case
24925         * tests/test-posixtm.c (T): Declare const.
24926         Add a test for -(2^31+1).
24927         Remove useless can-succeed-only-in-2002 test.
24928
24929         posixtm-tests: adjust the sole failing test
24930         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
24931         expected output matches what mktime now produces.  Cross-checked via
24932         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
24933
24934         posixtm: move #ifdef'd tests into a new module
24935         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
24936         * tests/test-posixtm.c: ... this new file.
24937         * modules/posixtm-tests: New module.
24938
24939 2009-09-19  Eric Blake  <ebb9@byu.net>
24940
24941         openat: simplify use of at-func.c
24942         * lib/at-func.c (includes): Include prerequisites here, to
24943         simplify requirements on client files.
24944         * lib/openat-priv.h: Add double-inclusion guard.
24945         * lib/faccessat.c (includes): Simplify.
24946         * lib/fchmodat.c (includes): Likewise.
24947         * lib/fchownat.c (includes): Likewise.
24948         * lib/mkdirat.c (includes): Likewise.
24949         * lib/mkfifoat.c (includes): Likewise.
24950         * lib/symlinkat.c (includes): Likewise.
24951
24952         openat: allow return of fd 0
24953         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
24954         * modules/save-cwd (Depends-on): Replace fcntl-safer with
24955         unistd-safer.
24956         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
24957         <fcntl.h>; this module does not leak fds.
24958         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
24959         must be allowed to return 0, leaving openat_safer to add the
24960         safety.
24961         (openat_permissive): Avoid writing to just-opened fd 2 if
24962         restoring the current directory fails.
24963         * lib/openat-die.c (openat_restore_fail): Add comment.
24964         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
24965         (save_cwd): Guarantee safe fd, but without use of open_safer.
24966         * tests/test-openat.c: New test.
24967         * modules/openat-tests (Files, Makefile.am): Distribute and build
24968         new file.
24969
24970         relocatable-prog-wrapper: fix build
24971         * modules/relocatable-prog-wrapper (Files): Update name of
24972         canonicalize m4 file, broken on 2009-09-17.
24973         Reported by emad hajjar <aleppos@hotmail.com>.
24974
24975 2009-09-19  Bruno Haible  <bruno@clisp.org>
24976
24977         * lib/safe-alloc.h: Use the standard header with GPL copyright.
24978         * lib/safe-alloc.c: Likewise.
24979         Reported by Ian Beckwith <ianb@erislabs.net>.
24980
24981 2009-09-18  Bruno Haible  <bruno@clisp.org>
24982
24983         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
24984         Reported by <erobles@sensacd.com.mx>.
24985
24986 2009-09-17  Eric Blake  <ebb9@byu.net>
24987
24988         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
24989         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
24990         slashes when checking if last component is missing.
24991         * tests/test-canonicalize.c (main): Test this.
24992
24993         canonicalize, canonicalize-lgpl: honor // if distinct from /
24994         * modules/canonicalize (Files): Add double-slash-root.m4.
24995         * modules/canonicalize-lgpl (Files): Likewise.
24996         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24997         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
24998         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
24999         fallback definition.
25000         (canonicalize_filename_mode): Use it to protect //.
25001         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
25002         (__realpath): Likewise.
25003         * tests/test-canonicalize.c (main): Test this.
25004         * tests/test-canonicalize-lgpl.c (main): Likewise.
25005         * modules/canonicalize-tests (Depends-on): Add same-inode.
25006         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25007
25008         canonicalize-lgpl: fix glibc bug with trailing slash
25009         * m4/canonicalize-lgpl.m4: Move contents...
25010         * m4/canonicalize.m4: ...here.
25011         (gl_CANONICALIZE_LGPL): Factor realpath check...
25012         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
25013         glibc 2.3.5 bug, fixed 2005-04-27.
25014         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
25015         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
25016         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
25017         * modules/canonicalize-lgpl (Files): Manage file rename.
25018         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25019         * modules/stdlib (Makefile.am): Substitute witness.
25020         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
25021         is needed.
25022         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
25023         replacement is required.
25024         * lib/canonicalize.c (canonicalize_file_name): Likewise.
25025         * doc/glibc-functions/canonicalize_file_name.texi
25026         (canonicalize_file_name): Document this.
25027         * doc/posix-functions/realpath.texi (realpath): Likewise.
25028
25029         canonicalize-lgpl: reject non-directory with trailing slash
25030         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
25031         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
25032         catches failures in glibc 2.3.5.
25033         * tests/test-canonicalize.c (main): Likewise.
25034
25035         canonicalize-lgpl: use native realpath if it works
25036         * lib/canonicalize-lgpl.c (realpath): Guard with
25037         FUNC_REALPATH_WORKS.
25038         * lib/stdlib.in.h (realpath): Make declaration optional based on
25039         HAVE_REALPATH.
25040         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
25041         native realpath works.
25042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25043         * modules/stdlib (Makefile.am): Substitute witness.
25044
25045         canonicalize, canonicalize-lgpl: use <stdlib.h>
25046         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
25047         (Include): Mention <stdlib.h>.
25048         (configure.ac): Mention functions we provide.
25049         * modules/canonicalize (configure.ac): Likewise.
25050         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
25051         realpath if canonicalize_file_name is missing.
25052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
25053         * modules/stdlib (Makefile.am): Substitute witnesses.
25054         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
25055         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
25056         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
25057         * NEWS: Document this.
25058         * doc/glibc-functions/canonicalize_file_name.texi
25059         (canonicalize_file_name): Likewise.
25060         * doc/posix-functions/realpath.texi (realpath): Likewise.
25061         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
25062
25063         test-canonicalize: consolidate into single C program
25064         * tests/test-canonicalize.sh: Delete; move setup into...
25065         * tests/test-canonicalize.c (main): ...the program, making it
25066         easier to run in debugger.  Add some tests.
25067         * modules/canonicalize-tests (Files): Remove unused file.
25068         (Depends-on): Add progname.
25069         (configure.ac, Makefile.am): Simplify.
25070
25071         test-canonicalize-lgpl: consolidate into single C program
25072         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
25073         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
25074         easier to run in debugger.  Add some tests.
25075         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
25076         (configure.ac, Makefile.am): Simplify.
25077
25078         canonicalize: avoid resolvepath
25079         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
25080         unnecessary checks.
25081         * lib/canonicalize.c (includes): Simplify.
25082         (canonicalize_file_name): Drop resolvepath implementation.
25083         * modules/canonicalize (Depends-on): Drop filenamecat.
25084
25085         canonicalize: don't lose errno
25086         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
25087         over calls to free.
25088
25089         canonicalize: simplify errno handling
25090         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
25091         assignment.
25092
25093         canonicalize, canonicalize-lgpl: update module dependencies
25094         * modules/canonicalize (Depends-on): Add extensions, lstat,
25095         pathmax, stdlib.
25096         (Files): Drop pathmax.h.
25097         (configure.ac): Adjust macro name.
25098         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
25099         lstat, stdlib, sys_stat.
25100         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
25101         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
25102         extensions.
25103         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
25104         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
25105         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
25106         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
25107         declaration, if available.
25108         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
25109         we can rely on the readlink module.
25110         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
25111         (includes): Use <unistd.h> unconditionally.
25112
25113 2009-09-17  Eric Blake  <ebb9@byu.net>
25114
25115         maint: make Include sections of modules consistent
25116         * modules/alloca: Use only header name; no need to list #include.
25117         * modules/alloca-opt: Likewise.
25118         * modules/arpa_inet: Likewise.
25119         * modules/canon-host: Likewise.
25120         * modules/configmake: Likewise.
25121         * modules/dirent: Likewise.
25122         * modules/eealloc: Likewise.
25123         * modules/environ: Likewise.
25124         * modules/fchdir: Likewise.
25125         * modules/fcntl: Likewise.
25126         * modules/fcntl-h: Likewise.
25127         * modules/gethrxtime: Likewise.
25128         * modules/gettime: Likewise.
25129         * modules/ignore-value: Likewise.
25130         * modules/inet_ntop: Likewise.
25131         * modules/inet_pton: Likewise.
25132         * modules/inttypes: Likewise.
25133         * modules/isnand-nolibm: Likewise.
25134         * modules/isnanf-nolibm: Likewise.
25135         * modules/mbchar: Likewise.
25136         * modules/mbfile: Likewise.
25137         * modules/mbiter: Likewise.
25138         * modules/mbuiter: Likewise.
25139         * modules/netdb: Likewise.
25140         * modules/netinet_in: Likewise.
25141         * modules/nproc: Likewise.
25142         * modules/pagealign_alloc: Likewise.
25143         * modules/poll: Likewise.
25144         * modules/printf-frexp: Likewise.
25145         * modules/pthread: Likewise.
25146         * modules/putenv: Likewise.
25147         * modules/random_r: Likewise.
25148         * modules/relocatable-prog: Likewise.
25149         * modules/search: Likewise.
25150         * modules/select: Likewise.
25151         * modules/selinux-h: Likewise.
25152         * modules/settime: Likewise.
25153         * modules/signal: Likewise.
25154         * modules/size_max: Likewise.
25155         * modules/socklen: Likewise.
25156         * modules/ssize_t: Likewise.
25157         * modules/stdarg: Likewise.
25158         * modules/stdbool: Likewise.
25159         * modules/stddef: Likewise.
25160         * modules/stdint: Likewise.
25161         * modules/stdio: Likewise.
25162         * modules/stdlib: Likewise.
25163         * modules/string: Likewise.
25164         * modules/strings: Likewise.
25165         * modules/sys_file: Likewise.
25166         * modules/sys_ioctl: Likewise.
25167         * modules/sys_select: Likewise.
25168         * modules/sys_socket: Likewise.
25169         * modules/sys_stat: Likewise.
25170         * modules/sys_time: Likewise.
25171         * modules/sys_times: Likewise.
25172         * modules/sys_utsname: Likewise.
25173         * modules/sys_wait: Likewise.
25174         * modules/sysexits: Likewise.
25175         * modules/time: Likewise.
25176         * modules/times: Likewise.
25177         * modules/tmpfile: Likewise.
25178         * modules/trim: Likewise.
25179         * modules/unistd: Likewise.
25180         * modules/wchar: Likewise.
25181         * modules/wctype: Likewise.
25182
25183 2009-09-17  Bruno Haible  <bruno@clisp.org>
25184
25185         Make getdate.y compile on QNX and NetBSD 5 / i386.
25186         * m4/getdate.m4 (gl_GETDATE): Conditionally define
25187         TIME_T_FITS_IN_LONG_INT.
25188         * lib/getdate.y (long_time_t): New type.
25189         (relative_time): Change type of 'seconds' field to long_time_t.
25190         (get_date): Update types of local variables. Check against overflow
25191         during conversion from long_time_t to time_t.
25192         Reported by Matt Kraai <kraai@ftbfs.org>
25193         and Hasso Tepper <hasso@netbsd.org>.
25194
25195 2009-09-17  Bruno Haible  <bruno@clisp.org>
25196
25197         * modules/COPYING: Update copyright years.
25198         * modules/README: Likeiwse.
25199         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
25200         Reported by Ian Beckwith <ianb@erislabs.net>.
25201
25202 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25203
25204         * users.txt: Update references for gnuit package.
25205
25206 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25207
25208         * m4/getdelim.m4: Fix typo in copyright line.
25209
25210 2009-09-17  Bruno Haible  <bruno@clisp.org>
25211
25212         * lib/atoll.c: Use the standard header with GPL copyright.
25213         * lib/argz.in.h: Likewise.
25214         * lib/glob.c: Likewise.
25215         * lib/glob-libc.h: Likewise.
25216         * lib/random_r.c: Likewise.
25217         * lib/siglist.h: Likewise.
25218         * lib/strsignal.c: Likewise.
25219         Reported by Ian Beckwith <ianb@erislabs.net>.
25220
25221 2009-09-17  Eric Blake  <ebb9@byu.net>
25222
25223         rmdir: ensure correct dependency order
25224         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
25225
25226 2009-09-17  Bruno Haible  <bruno@clisp.org>
25227
25228         Disable assertion that fails on NetBSD 5 / i386.
25229         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
25230         Reported by Sam Steingold <sds@gnu.org>
25231         and Hasso Tepper <hasso@netbsd.org>.
25232
25233 2009-09-16  Eric Blake  <ebb9@byu.net>
25234
25235         unlinkdir: port to mingw
25236         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
25237         on which no one can unlink a directory.
25238
25239         stdlib: sort witness names
25240         * modules/stdlib (Makefile.am): Sort replacements.
25241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25242         * lib/stdlib.in.h: Likewise.
25243
25244         parse-duration-tests: avoid link failure
25245         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
25246         LIBINTL.
25247         Reported by Tom G. Christensen.
25248
25249         openat-tests: ensure unlinkat behaves like rmdir
25250         * tests/test-rmdir.c (main): Factor guts...
25251         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
25252         * modules/rmdir-tests (Files): Ship new file.
25253         * modules/openat-tests: New test.
25254         * tests/test-unlinkat.c: Likewise.
25255
25256         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
25257         * modules/rmdir-errno (Status, Notice): Now obsolete.
25258
25259         rmdir: work around cygwin 1.5.x and mingw bugs
25260         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
25261         * lib/rmdir.c (rmdir): Work around it.
25262         * modules/rmdir (Status, Notice): No longer obsolete.
25263         (Files): Add dos.m4.
25264         (Depends-on): Add unistd.
25265         (configure.ac): Set witnesses.
25266         (License): Relax to LGPLv2+.
25267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
25268         * modules/unistd (Makefile.am): Substitute witnesses.
25269         * lib/unistd.in.h (rmdir): Declare replacement.
25270         * doc/posix-functions/rmdir.texi (rmdir): Document this.
25271         * modules/rmdir-tests: New tests.
25272         * tests/test-rmdir.c: Likewise.
25273
25274 2009-09-15  Eric Blake  <ebb9@byu.net>
25275
25276         fchdir: improve use of replacement functions
25277         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
25278         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
25279         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
25280         REPLACE_CLOSEDIR.
25281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
25282         * modules/sys_stat (Makefile.am): Substitute correct witness.
25283         * modules/dirent (Makefile.am): Likewise.
25284         * modules/unistd (Makefile.am): Likewise.
25285         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
25286         * lib/unistd.in.h (dup): Likewise.
25287         * lib/sys_stat.in.h (fstat): Likewise.
25288
25289         maint: ignore gnulib-tool temp files
25290         * .gitignore: Ignore files created during gnulib-tool --test.
25291
25292 2009-09-13  Jim Meyering  <meyering@redhat.com>
25293
25294         posixtm: don't reject a time that specify "60" as the number of seconds
25295         * lib/posixtm.c (posixtime): The code to reject invalid dates
25296         would also reject a time specified with the .60 suffix.
25297         But POSIX allows that, in order to accommodate leap seconds.
25298         So don't reject it.
25299         (main): Adjust tests accordingly.
25300         * modules/posixtm (Depends-on): Add stpcpy.
25301
25302 2009-09-11  Jim Meyering  <meyering@redhat.com>
25303
25304         announce-gen: include [$release_type] in emitted Subject:
25305         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
25306         e.g., [stable] in the emitted Subject: line.
25307
25308 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25309
25310         Remove obsolete macros from several modules.
25311         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
25312         obsolete Autoconf macros with their modern counterparts.
25313         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
25314         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
25315         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
25316         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
25317         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
25318         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25319         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25320         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25321         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25322         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
25323         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
25324         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
25325         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
25326         * m4/sockets.m4 (gl_SOCKETS): Likewise.
25327         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
25328         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
25329         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
25330         * m4/time_r.m4 (gl_TIME_R): Likewise.
25331         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25332         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
25333         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25334
25335         Fix copyright header in build-aux scripts.
25336         * build-aux/git-version-gen: Fix copyright header to match GPLv3
25337         recommendation.
25338         * build-aux/ncftpput-ftp: Likewise.
25339         * build-aux/update-copyright: Likewise.
25340
25341 2009-09-09  Eric Blake  <ebb9@byu.net>
25342
25343         test-link: allow Linux choice of errno
25344         * tests/test-link.c (main): Relax test for alternate error.
25345
25346         strndup: fix improper m4 caching
25347         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
25348         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
25349         (gl_PREREQ_STRNDUP): Delete.
25350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
25351         * modules/string (Makefile.am): Substitute it.
25352         * lib/string.in.h (strndup): Modernize prototype.
25353
25354         getcwd: port to mingw
25355         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
25356         different from the POSIX assumptions made throughout the getcwd
25357         module; fortunately, the mingw getcwd does not need replacement.
25358         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
25359         * modules/getcwd-tests: New test.
25360         * tests/test-getcwd.c: Likewise.
25361
25362         link: fix platform bugs
25363         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
25364         * lib/link.c (link): Work around them.  Fix related mingw bug.
25365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
25366         * modules/unistd (Makefile.am): Substitute it.
25367         * lib/unistd.in.h (link): Declare replacement.
25368         * doc/posix-functions/link.texi (link): Document this.
25369         * modules/link (Depends-on): Add strdup-posix, sys_stat.
25370
25371         test-link: consolidate into single C program, test more cases
25372         * tests/test-link.sh: Delete.
25373         * tests/test-link.c: Test more error conditions.  Exposes bugs on
25374         at least Cygwin and Solaris.
25375         * modules/link-tests (Files): Remove unused file.
25376         (Depends-on): Add errno, sys_stat.
25377         (Makefile.am): Simplify.
25378
25379 2009-09-08  Bruno Haible  <bruno@clisp.org>
25380
25381         Work around towlower, towupper bug on mingw.
25382         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
25383         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
25384         * doc/posix-functions/towlower.texi: Mention the mingw bug.
25385         * doc/posix-functions/towupper.texi: Likewise.
25386         Reported by Eric Blake.
25387
25388 2009-09-08  Jim Meyering  <meyering@redhat.com>
25389
25390         build: don't try to run autoheader if we don't use it
25391         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
25392         is not used in configure.ac.
25393
25394 2009-09-08  Eric Blake  <ebb9@byu.net>
25395
25396         euidaccess: fix compilation error
25397         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
25398
25399         rawmemchr: relax license
25400         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
25401         okay.
25402         Reported by Jim Meyering.
25403
25404         mkfifoat: new module
25405         * modules/mkfifoat: New file.
25406         * lib/mkfifoat.c: Likewise.
25407         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
25408         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25409         * modules/sys_stat (Makefile.am): Use them.
25410         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
25411         * MODULES.html.sh (File system functions): Mention module.
25412         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25413         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25414         * modules/mkfifoat-tests: New test.
25415         * tests/test-mkfifoat.c: Likewise.
25416
25417         strchrnul: relax license
25418         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
25419         okay.
25420         Reported by Jim Meyering.
25421
25422 2009-09-08  Eric Blake  <ebb9@byu.net>
25423
25424         fstatat: fix compilation on Solaris
25425         * lib/fstatat.c (includes): Add fcntl.h.
25426         Reported by Pádraig Brady.
25427
25428 2009-09-07  Eric Blake  <ebb9@byu.net>
25429
25430         rename: modernize replacement
25431         * modules/rename (Depends-on): Add stdio.
25432         (configure.ac): Declare witness.
25433         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
25434         stdio take care of replacement.
25435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
25436         * modules/stdio (Makefile.am): Substitute them.
25437         * lib/stdio.in.h (rename): Declare replacement.
25438         * lib/rename.c (includes): Allow cross-compilation to non-windows
25439         machines.
25440         * doc/posix-functions/rename.texi (rename): Improve
25441         documentation.
25442
25443         stdio: sort witness names
25444         * modules/stdio (Makefile.am): Sort replacements.
25445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25446         * lib/stdio.in.h: Likewise.
25447
25448         getcwd: minor cleanups
25449         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
25450         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
25451
25452         openat: provide more convenience names
25453         * modules/faccessat (configure.ac): Add C witness.
25454         * lib/unistd.in.h (readlinkat): Fix typo.
25455         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
25456         convenience wrappers.
25457         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
25458         wrappers in syntax checks.
25459
25460 2009-09-06  Eric Blake  <ebb9@byu.net>
25461
25462         doc: fix comments in recent patches
25463         * lib/faccessat.c: Mention correct function.
25464         * lib/fchmodat.c: Likewise.
25465         * lib/fchownat.c: Likewise.
25466         * lib/symlinkat.c: Likewise.
25467         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
25468         constants.
25469
25470         faccessat, symlinkat: continue cleanup of previous patch
25471         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
25472         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25473         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
25474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
25475         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
25476         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
25477         set.
25478
25479 2009-09-06  Bruno Haible  <bruno@clisp.org>
25480
25481         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
25482         (fstatat): Declare if GNULIB_FSTATAT is set.
25483         (mkdirat): Declare if GNULIB_MKDIRAT is set.
25484         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
25485         (unlinkat): Declare if GNULIB_UNLINKAT is set.
25486         * modules/fcntl-h (Files): Remove m4/openat.m4.
25487         * modules/sys_stat (Files): Remove m4/openat.m4.
25488         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
25489         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
25490         * modules/unistd (Files): Remove m4/openat.m4.
25491         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
25492         GNULIB_OPENAT.
25493         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
25494         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
25495         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
25496         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
25497         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
25498         gl_OPENAT_DEFAULTS.
25499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
25500         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
25501         Don't require gl_OPENAT_DEFAULTS.
25502         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
25503         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
25504         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
25505         (gl_OPENAT_DEFAULTS): Remove macro.
25506
25507 2009-09-06  Bruno Haible  <bruno@clisp.org>
25508
25509         * modules/openat (configure.ac): Remove unneeded witness.
25510
25511 2009-09-06  Bruno Haible  <bruno@clisp.org>
25512
25513         Set errno to ENOSYS when a function is entirely unsupported.
25514         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
25515         EOPNOTSUPP.
25516         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25517         * modules/chown (Depends-on): Remove errno.
25518
25519 2009-09-06  Bruno Haible  <bruno@clisp.org>
25520
25521         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
25522
25523 2009-09-06  Bruno Haible  <bruno@clisp.org>
25524
25525         * lib/sys_stat.in.h: Fix preprocessor command indentation.
25526
25527 2009-09-06  Ben Pfaff  <blp@gnu.org>
25528             Bruno Haible  <bruno@clisp.org>
25529
25530         Work around a glibc bug in strtok_r.
25531         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
25532         Undefine if UNDEFINE_STRTOK_R is set.
25533         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
25534         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25535         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
25536         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
25537         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
25538         UNDEFINE_STRTOK_R.
25539         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
25540
25541 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25542
25543         exclude: minor fix
25544         * lib/exclude.c: Include wctype.h
25545
25546 2009-09-06  Akim Demaille  <demaille@gostai.com>
25547
25548         bootstrap: improve error message
25549         * build-aux/bootstrap (find_tool): Upon failure, report the list
25550         of candidates.
25551         Honor the initial value of the envvar.
25552
25553 2009-09-05  Eric Blake  <ebb9@byu.net>
25554
25555         symlinkat: new module
25556         * modules/symlinkat: New file.
25557         * lib/symlinkat.c: Likewise.
25558         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
25559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25560         * modules/unistd (Makefile.am): Use them.
25561         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
25562         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
25563         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
25564         * MODULES.html.sh (File system functions): Mention module.
25565         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25566         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25567         * modules/symlinkat-tests: New test.
25568         * tests/test-symlinkat.c: Likewise.
25569
25570         test-openat-safer: add more checks
25571         * tests/test-openat-safer.c (main): Check more code paths.
25572
25573 2009-09-05  Jim Meyering  <meyering@redhat.com>
25574
25575         syntax-check: detect unnecessary inclusion of openat.h
25576         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
25577
25578 2009-09-05  Bruno Haible  <bruno@clisp.org>
25579
25580         Support towlower, towupper.
25581         * doc/posix-functions/towlower.texi: Mention module wctype.
25582         * doc/posix-functions/towupper.texi: Likewise.
25583         * lib/wctype.in.h (towlower, towupper): New functions.
25584         * tests/test-wctype.c: Include stdio.h, stdlib.h.
25585         (ASSERT): New macro.
25586         (e): New variable.
25587         (main): Test also towlower, towupper. Test WEOF argument.
25588         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25589
25590 2009-09-05  Bruno Haible  <bruno@clisp.org>
25591
25592         Fix conversion behaviour when the input is invalid.
25593         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
25594         mark occurring in first pass of indirect conversion.
25595         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
25596         input.
25597         Found by clang's static analyzer.
25598
25599 2009-09-05  Bruno Haible  <bruno@clisp.org>
25600
25601         * tests/test-striconveh.c (main): Test indirect conversion on platforms
25602         where direct conversion is possible.
25603
25604 2009-09-04  Eric Blake  <ebb9@byu.net>
25605
25606         openat: fail with ENOENT on empty name
25607         * lib/openat-proc.c (openat_proc_name): Special-case the empty
25608         buffer.
25609
25610         link-follow: fix logic bug in prior patch
25611         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
25612         reversed sense of yes and no in prior patch.  Avoid confusing
25613         compilation failure with desired semantics.
25614
25615         link-follow: accomodate mingw and cross-compilation
25616         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
25617         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
25618         cross-compilation results to -1, to make linkat easier to
25619         implement when cross-compiling.  Trivially support mingw.
25620         * modules/link-follow (configure.ac): Call new name.
25621         * NEWS: Mention this.
25622
25623 2009-09-03  Eric Blake  <ebb9@byu.net>
25624
25625         faccessat: compile replacement
25626         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
25627         needed.
25628
25629         fts: fix compilation error
25630         * lib/fts.c (includes): Re-add "openat.h", for
25631         openat_needs_fchdir.
25632
25633         faccessat: new module
25634         * modules/faccessat: New file.
25635         * lib/faccessat.c: Likewise.
25636         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25638         * modules/unistd (Makefile.am): Use it.
25639         * lib/unistd.in.h (faccessat): Declare it.
25640         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
25641         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
25642         * MODULES.html.sh (File system functions): Mention it.
25643         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
25644         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25645
25646         euidaccess: prefer POSIX over non-standard implementation
25647         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
25648         * lib/euidaccess.c (euidaccess): Use it if available.
25649
25650         openat: make template easier to use
25651         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
25652         AT_FUNC_F2 to be undefined.
25653         (VALIDATE_FLAG): New macro; use it to reject bad flags.
25654         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
25655         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
25656         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
25657         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
25658         Likewise.
25659         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
25660         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
25661         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
25662         Likewise.
25663
25664         openat: declare in POSIX headers
25665         * NEWS: Mention this.
25666         * modules/openat (configure.ac): Declare witnesses.
25667         (Depends-on): Add fcntl-h, sys_stat, unistd.
25668         (Include): Mention correct headers.
25669         * modules/fcntl-h (Depends-on): Add link-warning.
25670         (Files): Add openat.m4.
25671         (Makefile.am): Substitute witnesses.
25672         * modules/sys_stat (Files, Makefile.am): Likewise.
25673         * modules/unistd (Files, Makefile.am): Likewise.
25674         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
25675         (gl_OPENAT_DEFAULTS): New macro.
25676         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
25677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
25678         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
25679         (SYS_STAT_H): Remove unused variable.
25680         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
25681         * lib/fcntl--.h (includes): Remove unneeded header.
25682         * lib/openat-safer.c (includes): Likewise.
25683         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
25684         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
25685         appropriate headers.
25686         (__OPENAT_PREFIX): Delete.
25687         * lib/fcntl.in.h (openat): Provide declaration.
25688         (AT_FDCWD): Fix Solaris bug.
25689         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
25690         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
25691         * lib/fchmodat.c (includes):  Adjust to find declaration.
25692         * lib/fchownat.c (includes): Likewise.
25693         * lib/mkdirat.c (includes): Likewise.
25694         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
25695         still visible.
25696
25697 2009-09-02  Eric Blake  <ebb9@byu.net>
25698
25699         errno: use consistently
25700         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
25701         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
25702         * lib/canonicalize.c (ELOOP): Likewise.
25703         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
25704         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
25705         * lib/lchown.c (EOPNOTSUPP): Likewise.
25706         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
25707         * lib/savewd.c (ESTALE): Likewise.
25708         * lib/settime.c (ENOSYS): Likewise.
25709         * lib/utimens.c (ENOSYS): Likewise.
25710         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
25711         * lib/chdir-safer.c (ELOOP): Likewise.
25712         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
25713         * modules/c-stack (Depends-on): Add errno.
25714         * modules/canonicalize (Depends-on): Likewise.
25715         * modules/chdir-safer (Depends-on): Likewise.
25716         * modules/fdopendir (Depends-on): Likewise.
25717         * modules/inet_ntop (Depends-on): Likewise.
25718         * modules/inet_pton (Depends-on): Likewise.
25719         * modules/lchown (Depends-on): Likewise.
25720         * modules/openat (Depends-on): Likewise.
25721         * modules/savewd (Depends-on): Likewise.
25722         * modules/settime (Depends-on): Likewise.
25723         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
25724
25725         fts: avoid leaking fds
25726         * modules/fts (Depends-on): Add cloexec.
25727         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
25728         flag.
25729
25730         fts: make directory fds more robust
25731         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
25732         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
25733
25734         backupfile, chdir-long, fts, savedir: make safer
25735         * lib/backupfile.c (includes): Use "dirent--.h", since
25736         numbered_backup can write to stderr during readdir.
25737         * lib/savedir.c (includes): Likewise.
25738         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
25739         emulation can write to stderr on failure.
25740         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
25741         * lib/getcwd.c: Document why opendir_safer is unused.
25742         * lib/glob.c: Likewise.
25743         * lib/scandir.c: Likewise.
25744         * lib/openat-proc.c: Likewise, for open_safer.
25745         * modules/backupfile (Depends-on): Add dirent-safer.
25746         * modules/savedir (Depends-on): Likewise.
25747         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
25748         * modules/chdir-long (Depends-on): Add openat-safer.
25749
25750         openat-safer: new module
25751         * modules/openat-safer: New file.
25752         * lib/openat-safer.c: Likewise.
25753         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
25754         * lib/fcntl-safer.h (openat_safer): Declare.
25755         * lib/fcntl--.h (openat): Override.
25756         * MODULES.html.sh (File descriptor based I/O): Mention it.
25757         * lib/openat.h: Add double-inclusion guards.
25758         * lib/openat.c (includes): Only include "fcntl-safer.h", not
25759         "fcntl--.h", so we can implement openat.
25760         * modules/openat-safer-tests: New test.
25761         * tests/test-openat-safer.c: New file.
25762
25763         dirent-safer: new module
25764         * modules/dirent-safer: New file.
25765         * lib/dirent--.h: Likewise.
25766         * lib/dirent-safer.h: Likewise.
25767         * lib/opendir-safer.c: Likewise.
25768         * m4/dirent-safer.m4: Likewise.
25769         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
25770         * modules/dirent-safer-tests: New test.
25771         * tests/test-dirent-safer.c: New file.
25772         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
25773
25774         fdopendir: optimize on mingw
25775         * lib/unistd.in.h (_gl_directory_name): New prototype.
25776         * lib/fchdir.c (_gl_directory_name): Implement it.
25777         (fchdir): Use it to simplify implementation.
25778         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
25779         fchdir, when available, to avoid calling [f]chdir().
25780
25781         fdopendir: split into its own module
25782         * lib/openat.c (fdopendir): Move...
25783         * lib/fdopendir.c: ...into new file.
25784         * modules/fdopendir: New module.
25785         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
25786         * modules/openat (Depends-on): Add fdopendir.
25787         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
25788         fdopendir here.
25789         * modules/savedir (Depends-on): Only need fdopendir, not full
25790         openat.
25791         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
25792         * lib/openat.h (fdopendir): Drop prototype.
25793         * lib/dirent.in.h (fdopendir): Provide prototype.
25794         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
25795         * modules/dirent (Makefile.am): Substitute them.
25796         * MODULES.html.sh (File system functions): Mention it.
25797         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
25798         * modules/fdopendir-tests: New file.
25799         * tests/test-fdopendir.c: Likewise.
25800
25801         fchdir: use more consistent macro convention
25802         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
25803         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
25804         REPLACE_FCHDIR, rather than relying on config.h macros.
25805         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
25806         inside a single make-time REPLACE_FCHDIR block, rather than using
25807         the config.h FCHDIR_REPLACEMENT.
25808         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
25809         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
25810         Manage fstat replacement.
25811         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
25812         REPLACE_FCHDIR.
25813         * modules/sys_stat (Files): Add m4/unistd_h.m4.
25814         (Makefile.am): Substitute REPLACE_FCHDIR.
25815         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
25816         FCHDIR_REPLACEMENT.
25817         * lib/dup-safer.c (dup_safer): Likewise.
25818         * lib/dup2.c (rpl_dup2): Likewise.
25819         * lib/dup3.c (rpl_dup3): Likewise.
25820         * lib/open.c (rpl_open): Likewise.
25821
25822         fchdir: simplify error handling, and support dup3
25823         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
25824         stdbool, malloc-posix, realloc-posix.
25825         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
25826         (ensure_dirs_slot): Return false on allocation failure.
25827         (rpl_dup2): Delete.
25828         (_gl_register_dup): New function.
25829         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
25830         (_gl_register_fd): Close fd on allocation failure.
25831         * lib/fcntl.in.h (_gl_register_fd): Update signature.
25832         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
25833         prototype.
25834         (rpl_dup2_fchdir): Delete prototype.
25835         * lib/open.c (open): Update caller.
25836         * lib/dup2.c (dup2): Track fchdir metadata.
25837         * lib/dup3.c (dup3): Likewise.
25838         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
25839         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
25840
25841 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25842
25843         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
25844         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
25845         don't pass arguments to AC_OUTPUT.
25846
25847 2009-09-02  Bruno Haible  <bruno@clisp.org>
25848
25849         * modules/mkdtemp (License): Relicense under LGPLv2+.
25850         Reported by Paolo Bonzini.
25851
25852 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25853
25854         Replace uses of obsolete autoconf macros in Jim's modules.
25855         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
25856         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
25857         can evoke a warning from autoconf when run with -Wobsolete
25858         enabled.  They were declared obsolete for good reasons (see
25859         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
25860         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
25861         should not continue using the deprecated macros.
25862         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
25863         obsolete Autoconf macros with modern counterparts.
25864         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25865         * m4/dos.m4 (gl_AC_DOS): Likewise.
25866         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
25867         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25868         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
25869         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
25870         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
25871         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
25872         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
25873         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
25874         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
25875         Likewise.
25876         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25877         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25878         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
25879         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
25880         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25881         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25882
25883 2009-09-01  Eric Blake  <ebb9@byu.net>
25884
25885         fchdir: fix off-by-one bug in previous patch
25886         * lib/fchdir.c (rpl_fstat): Use correct bounds.
25887         (_gl_unregister_fd): Delete useless if.
25888
25889 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
25890
25891         maint.mk: sort the list of syntax-check rules
25892         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
25893         easier to get a sense of progress when the rules are run sequentially
25894         and take a long time.
25895
25896 2009-09-01  Simon Josefsson  <simon@josefsson.org>
25897
25898         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25899         * modules/netinet_in: Likewise.
25900         * modules/sys_file: Likewise.
25901         * modules/sys_ioctl: Likewise.
25902         * modules/sys_select: Likewise.
25903         * modules/sys_socket: Likewise.
25904         * modules/sys_stat: Likewise.
25905         * modules/sys_time: Likewise.
25906         * modules/sys_times: Likewise.
25907         * modules/sys_utsname: Likewise.
25908         * modules/sys_wait: Likewise.
25909
25910 2009-09-01  Jim Meyering  <meyering@redhat.com>
25911
25912         fts: help ensure that return values are not ignored
25913         * lib/fts_.h (__GNUC_PREREQ): Define.
25914         (__attribute_warn_unused_result__): Define.
25915         (fts_children, fts_close, fts_open, fts_read): Declare with
25916         __attribute_warn_unused_result__.
25917
25918         fts: fts_close now fails also when closing a dir file descriptor fails
25919         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
25920         and propagate to caller, along with errno.
25921
25922         announce-gen: correct formatting in --help output
25923         * build-aux/announce-gen (usage): Move the one-line description in
25924         --help output "up", to where it belongs, just after Usage:.
25925
25926 2009-08-31  Eric Blake  <ebb9@byu.net>
25927
25928         fchdir: port to mingw
25929         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
25930         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
25931         opened, then use a substitute.
25932         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
25933         replacement.
25934         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
25935         (_gl_register_fd): No need to check stat if open already filters
25936         all directories.
25937         (fchdir): Fix error condition to match POSIX.
25938         * modules/fchdir (Depends-on): Add sys_stat.
25939         * doc/posix-functions/open.texi (open): Document the limitation.
25940         * modules/fchdir-tests: New file.
25941         * tests/test-fchdir.c: Likewise.
25942
25943         canonicalize: allow cross-testing from cygwin to mingw
25944         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
25945         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
25946         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
25947         Likewise.
25948         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
25949         target does not support symlinks.
25950         * tests/test-canonicalize-lgpl.sh: Likewise.
25951
25952         chown: avoid compilation warning on mingw
25953         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
25954         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
25955         mingw.
25956         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25957         * modules/chown (Depends-on): Add errno.
25958
25959 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25960
25961         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
25962         command.
25963
25964 2009-08-31  Jim Meyering  <meyering@redhat.com>
25965
25966         canonicalize: remove useless initialization
25967         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
25968         initialization of local, "end".
25969
25970 2009-08-30  Bruno Haible  <bruno@clisp.org>
25971
25972         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
25973         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
25974         ENOSYS.
25975
25976 2009-08-30  Bruno Haible  <bruno@clisp.org>
25977
25978         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
25979         /usr/xpg4/bin/tr when it exists.
25980         * tests/test-pipe-filter-gi1.sh: Likewise.
25981
25982 2009-08-30  Bruno Haible  <bruno@clisp.org>
25983
25984         Work around deficient /usr/bin/id program on Solaris.
25985         * tests/test-file-has-acl.sh (ID): New variable.
25986         * tests/test-set-mode-acl.sh (ID): Likewise.
25987         * tests/test-copy-acl.sh (ID): Likewise.
25988         * tests/test-copy-file.sh (ID): Likewise.
25989
25990 2009-08-30  Bruno Haible  <bruno@clisp.org>
25991
25992         New module 'xstriconveh'.
25993         * lib/xstriconveh.h: New file.
25994         * lib/xstriconveh.c: New file.
25995         * modules/xstriconveh: New file.
25996
25997 2009-08-30  Bruno Haible  <bruno@clisp.org>
25998
25999         Make it easier to use mem_cd_iconveh.
26000         * lib/striconveh.h (iconveh_t): New type.
26001         (iconveh_open, iconveh_close): New declarations.
26002         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26003         with a single 'const iconveh_t *' argument.
26004         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
26005         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26006         with a single 'const iconveh_t *' argument.
26007         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
26008         * tests/test-striconveh.c (main): Update.
26009         * NEWS: Mention the change.
26010
26011 2009-08-30  Bruno Haible  <bruno@clisp.org>
26012
26013         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
26014         problem.
26015
26016 2009-08-30  Bruno Haible  <bruno@clisp.org>
26017
26018         Work around iconv_open problem on Solaris.
26019         * lib/iconv_open-solaris.gperf: New file.
26020         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
26021         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
26022         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
26023         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
26024         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
26025         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
26026
26027 2009-08-29  Jim Meyering  <meyering@redhat.com>
26028
26029         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
26030         * top/maint.mk (cvs-check): Remove target; it was just an alias
26031         to the better-named vc-diff-check.
26032         (maintainer-distcheck): Remove rule.  It was used only from
26033         the (alpha/beta/major) target, and all of its commands but one
26034         were coreutils-specific.
26035         (vc-dist): Remove rule.
26036         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
26037         Run vc-diff-check, not vc-dist.
26038         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
26039
26040 2009-08-27  Bruno Haible  <bruno@clisp.org>
26041
26042         * tests/test-bitrotate.c (main): Remove test that uses a shift count
26043         of 0.
26044
26045 2009-08-27  Bruno Haible  <bruno@clisp.org>
26046
26047         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
26048         compilers.
26049         * doc/func.texi: Document the SunPRO C bug.
26050
26051 2009-08-27  Bruno Haible  <bruno@clisp.org>
26052
26053         Fix link error on Solaris.
26054         * tests/test-parse-duration.c (xstrdup): Remove function.
26055
26056 2009-08-26  Pádraig Brady  <P@draigbrady.com>
26057
26058         ignore-value: handle pointer types, too
26059         * lib/ignore-value.h (__attribute__): Remove definition.
26060         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
26061         of a more concise and more-often effective "(void) i" statement.
26062         (ignore_ptr): New function to suppress warnings from functions that
26063         return pointers, and to make it explicit that one function doesn't
26064         handle all cases.
26065
26066 2009-08-25  Bruno Haible  <bruno@clisp.org>
26067
26068         dup2: work around a Linux bug.
26069         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
26070         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
26071         * doc/posix-functions/dup2.texi: Mention the Linux bug.
26072         Reported by Simon Josefsson.
26073
26074 2009-08-25  Jim Meyering  <meyering@redhat.com>
26075
26076         libguestfs uses gnulib
26077         * users.txt: Add libguestfs.
26078
26079 2009-08-24  Eric Blake  <ebb9@byu.net>
26080
26081         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
26082         * lib/pipe2.c (includes): Add binary-io.h.
26083         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
26084
26085 2009-08-24  Bruno Haible  <bruno@clisp.org>
26086
26087         Tolerate declared but missing accept4 syscall.
26088         * lib/accept4.c (accept4): Invoke original accept4 function first, if
26089         available.
26090         * lib/sys_socket.in.h (accept4): If the function is already present,
26091         override it.
26092         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
26093         * modules/accept4 (Makefile.am): Compile accept4.c always.
26094         Reported by Paolo Bonzini and Eric Blake.
26095
26096 2009-08-23  Bruno Haible  <bruno@clisp.org>
26097
26098         New module 'accept4'.
26099         * lib/sys_socket.in.h (accept4): New declaration.
26100         * lib/accept4.c: New file.
26101         * m4/accept4.m4: New file.
26102         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26103         GNULIB_ACCEPT4, HAVE_ACCEPT4.
26104         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
26105         HAVE_ACCEPT4.
26106         * modules/accept4: New file.
26107         * doc/glibc-functions/accept4.texi: Mention the new module.
26108
26109 2009-08-24  Jim Meyering  <meyering@redhat.com>
26110
26111         progname: also set global program_invocation_name, when possible
26112         Before this change, a libtool-enabled program that calls glibc's
26113         error function would report the program name as
26114         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
26115         * modules/progname (configure.ac): Check for a declaration of
26116         program_invocation_name.
26117         * lib/progname.c:  Include <errno.h>.
26118         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
26119         Set program_invocation_name.
26120
26121 2009-08-23  Bruno Haible  <bruno@clisp.org>
26122
26123         * lib/dup3.c: Include <string.h>.
26124
26125 2009-08-23  Bruno Haible  <bruno@clisp.org>
26126
26127         * lib/dup3.c (dup3): Test only once whether the system actually exists.
26128         * lib/pipe2.c (pipe2): Likewise.
26129         Suggested by Eric Blake.
26130
26131 2009-08-23  Bruno Haible  <bruno@clisp.org>
26132
26133         Tolerate declared but missing dup3 syscall.
26134         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
26135         * lib/unistd.in.h (dup3): If the function is already present,
26136         override it.
26137         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
26138         * modules/dup3 (Makefile.am): Compile dup3.c always.
26139         Reported by Paolo Bonzini.
26140
26141 2009-08-23  Bruno Haible  <bruno@clisp.org>
26142
26143         Tolerate declared but missing pipe2 syscall.
26144         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
26145         available.
26146         * lib/unistd.in.h (pipe2): If the function is already present,
26147         override it.
26148         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
26149         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
26150         Reported by Paolo Bonzini.
26151
26152 2009-08-23  Bruno Haible  <bruno@clisp.org>
26153
26154         * lib/pipe2.c (pipe2): Move #ifs inside function.
26155
26156 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26157
26158         quotearg: document limitations of quote_these_too
26159         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
26160         those limitations are created.
26161         * lib/quotearg.h (set_char_quoting): Document that digits and
26162         letters that are special after backslash are not permitted.
26163         (quotearg_char): Cross-reference set_char_quoting documentation.
26164
26165 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
26166
26167         quotearg: implement custom_quoting_style
26168         * lib/quotearg.c: (struct quoting_options): Add left_quote and
26169         right_quote fields.
26170         (set_custom_quoting): New public function.
26171         (quotearg_buffer_restyled): Add left_quote and right_quote
26172         arguments, handle them very much like locale quoting, and update
26173         all uses.
26174         (quotearg_n_custom): New public function.
26175         (quotearg_n_custom_mem): New public function.
26176         (quotearg_custom): New public function.
26177         (quotearg_custom_mem): New public function.
26178         * lib/quotearg.h: Prototype and document new public functions.
26179         (enum quoting_style): For escape_quoting_style and
26180         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
26181         ignored even though they're otherwise like c_quoting_style.
26182         Add custom_quoting_style member and document with comparison to
26183         clocale_quoting_style.
26184         * tests/test-quotearg.c (custom_quotes): New array.
26185         (custom_results): New array.
26186         (main): Extend to test custom quoting.
26187
26188 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26189
26190         quotearg: fix right quote escaping when it's in quote_these_too
26191         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
26192         quote, be sure to prepend only one backslash.
26193         * tests/test-quotearg.c (use_quote_double_quotes): New function.
26194         (main): Test it.
26195
26196 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26197
26198         quotearg-tests: test escaping of embedded locale quotes
26199         * tests/test-quotearg.c (struct result_strings): Add member for
26200         new input.
26201         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
26202         (inputs): Add new input.
26203         (results_g): Add expected results.
26204         (flag_results): Likewise.
26205         (locale_results): Likewise.
26206         (compare_strings): Check those.
26207
26208 2009-08-23  Bruno Haible  <bruno@clisp.org>
26209
26210         Tests for module 'dup3'.
26211         * modules/dup3-tests: New file.
26212         * tests/test-dup3.c: New file.
26213
26214         New module 'dup3'.
26215         * lib/unistd.in.h (dup3): New declaration.
26216         * lib/dup3.c: New file.
26217         * m4/dup3.m4: New file.
26218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
26219         HAVE_DUP3.
26220         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
26221         * modules/dup3: New file.
26222         * doc/glibc-functions/dup3.texi: Mention the new module.
26223
26224 2009-08-23  Bruno Haible  <bruno@clisp.org>
26225
26226         Tweak the dup2 test.
26227         * tests/test-dup2.c (main): Create the test file empty. Verify that an
26228         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
26229         the test file is still empty. Fix argument order of lseek.
26230
26231 2009-08-23  Bruno Haible  <bruno@clisp.org>
26232
26233         Avoid test link errors when the modules getopt-gnu, gettext are used.
26234         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
26235         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26236
26237 2009-08-23  Bruno Haible  <bruno@clisp.org>
26238
26239         Fix getdtablesize() on mingw.
26240         * lib/getdtablesize.c (getdtablesize): Implement differently.
26241         * lib/unistd.in.h (getdtablesize): Improve comment.
26242
26243 2009-08-23  Bruno Haible  <bruno@clisp.org>
26244
26245         New module 'mkostemp'.
26246         Based on Ulrich Drepper's 2007-08-10 change in glibc.
26247         * lib/stdlib.in.h (mksotemp): New declaration.
26248         * lib/mkostemp.c: New file, from glibc with modifications.
26249         * lib/tempname.h (GT_FILE): Remove outdated comment.
26250         (gen_tempname): Add flags argument.
26251         * lib/tempname.c (__GT_BIGFILE): Remove macro.
26252         (__GT_FILE): Map to 1.
26253         (small_open, large_open): Remove macros.
26254         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
26255         * lib/mkstemp.c (mkstemp): Update.
26256         * lib/mkdtemp.c (mkdtemp): Likewise.
26257         * m4/mkostemp.m4: New file.
26258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
26259         HAVE_MKOSTEMP.
26260         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
26261         HAVE_MKOSTEMP.
26262         * modules/mkostemp: New file, based on modules/mkstemp.
26263         * doc/glibc-functions/mkostemp.texi: Mention the new module.
26264         * NEWS: Mention the change.
26265
26266 2009-08-23  Bruno Haible  <bruno@clisp.org>
26267
26268         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
26269         Reported by Eric Blake.
26270
26271 2009-08-23  Bruno Haible  <bruno@clisp.org>
26272
26273         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
26274         Reported by Eric Blake.
26275
26276 2009-08-23  Bruno Haible  <bruno@clisp.org>
26277
26278         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
26279         * modules/pipe2 (Depends-on): Likewise.
26280
26281 2009-08-23  Eric Blake  <ebb9@byu.net>
26282
26283         fcntl-h: add O_TTY_INIT support
26284         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
26285         * tests/test-fcntl-h.c (o): Test it.
26286         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26287
26288         fcntl-h: rename from fcntl, in preparation for fcntl(2)
26289         * modules/fcntl: Move <fcntl.h> header replacement...
26290         * modules/fcntl-h: ...to new name, so as not to collide with
26291         like-named function.
26292         * tests/test-fcntl.c: Rename...
26293         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
26294         * modules/fcntl-tests: Rename...
26295         * modules/fcntl-h-tests: ...to this.  Update test file name.
26296         * modules/chdir-long (Depends-on): Update clients.
26297         * modules/chdir-safer (Depends-on): Likewise.
26298         * modules/fcntl-safer (Depends-on): Likewise.
26299         * modules/fts (Depends-on): Likewise.
26300         * modules/mkancesdirs (Depends-on): Likewise.
26301         * modules/mkdir-p (Depends-on): Likewise.
26302         * modules/open (Depends-on): Likewise.
26303         * modules/savewd (Depends-on): Likewise.
26304         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
26305         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26306
26307 2009-08-22  Bruno Haible  <bruno@clisp.org>
26308
26309         * modules/binary-io (License): Relicense under LGPL.
26310         * modules/pipe2 (License): Likewise.
26311
26312 2009-08-22  Bruno Haible  <bruno@clisp.org>
26313
26314         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
26315         return value.
26316         * lib/pipe-filter-gi.c (filter_init): Likewise.
26317         Reported by Eric Blake.
26318
26319 2009-08-22  Bruno Haible  <bruno@clisp.org>
26320
26321         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
26322         * modules/pipe (Depends-on): Add pipe2.
26323
26324 2009-08-22  Bruno Haible  <bruno@clisp.org>
26325
26326         Tests for module 'pipe2'.
26327         * modules/pipe2-tests: New file.
26328         * tests/test-pipe2.c: New file.
26329
26330         New module 'pipe2'.
26331         * lib/unistd.in.h (pipe2): New declaration.
26332         * lib/pipe2.c: New file.
26333         * m4/pipe2.m4: New file.
26334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
26335         HAVE_PIPE2.
26336         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
26337         * modules/pipe2: New file.
26338         * doc/glibc-functions/pipe2.texi: Mention the new module.
26339
26340 2009-08-22  Bruno Haible  <bruno@clisp.org>
26341
26342         Reference some new glibc functions.
26343         * doc/glibc-functions/accept4.texi: New file.
26344         * doc/glibc-functions/dup3.texi: New file.
26345         * doc/glibc-functions/mkostemp.texi: New file.
26346         * doc/glibc-functions/pipe2.texi: New file.
26347         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
26348         (Glibc sys/socket.h): Refer to accept4.
26349         (Glibc unistd.h): Refer to dup3, pipe2.
26350         Reported by Eric Blake.
26351
26352 2009-08-22  Jim Meyering  <meyering@redhat.com>
26353             Bruno Haible  <bruno@clisp.org>
26354
26355         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
26356         This makes it so packages using automake-1.11's silent-rules option
26357         can print e.g., a single "GEN    configmake.h" line, rather than
26358         the 30+ statements that perform the job.  If you want to see the
26359         actual commands, you can still run "make V=1".
26360         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
26361         so that make output is abbreviated when those variables are defined
26362         appropriately.
26363         * modules/argz: Likewise.
26364         * modules/arpa_inet: Likewise.
26365         * modules/byteswap: Likewise.
26366         * modules/configmake: Likewise.
26367         * modules/dirent: Likewise.
26368         * modules/errno: Likewise.
26369         * modules/fcntl: Likewise.
26370         * modules/float: Likewise.
26371         * modules/fnmatch: Likewise.
26372         * modules/getopt-posix: Likewise.
26373         * modules/glob: Likewise.
26374         * modules/iconv_open: Likewise.
26375         * modules/inttypes: Likewise.
26376         * modules/localcharset: Likewise.
26377         * modules/locale: Likewise.
26378         * modules/math: Likewise.
26379         * modules/netdb: Likewise.
26380         * modules/netinet_in: Likewise.
26381         * modules/poll: Likewise.
26382         * modules/posix_spawnp-tests: Likewise.
26383         * modules/sched: Likewise.
26384         * modules/search: Likewise.
26385         * modules/selinux-h: Likewise.
26386         * modules/signal: Likewise.
26387         * modules/spawn: Likewise.
26388         * modules/stdarg: Likewise.
26389         * modules/stdbool: Likewise.
26390         * modules/stddef: Likewise.
26391         * modules/stdint: Likewise.
26392         * modules/stdio: Likewise.
26393         * modules/stdlib: Likewise.
26394         * modules/string: Likewise.
26395         * modules/strings: Likewise.
26396         * modules/sys_file: Likewise.
26397         * modules/sys_ioctl: Likewise.
26398         * modules/sys_select: Likewise.
26399         * modules/sys_socket: Likewise.
26400         * modules/sys_stat: Likewise.
26401         * modules/sys_time: Likewise.
26402         * modules/sys_times: Likewise.
26403         * modules/sys_utsname: Likewise.
26404         * modules/sys_wait: Likewise.
26405         * modules/sysexits: Likewise.
26406         * modules/time: Likewise.
26407         * modules/unistd: Likewise.
26408         * modules/wchar: Likewise.
26409         * modules/wctype: Likewise.
26410
26411 2009-08-22  Jim Meyering  <meyering@redhat.com>
26412
26413         announce-gen: detect write failure
26414         * build-aux/announce-gen: Add Coda at end.
26415         Remove equivalent-but-more-verbose block at top.
26416
26417 2009-08-19  Akim Demaille  <demaille@gostai.com>
26418
26419         bootstrap: --help to stdout.
26420         * bootstrap (usage): Don't send --help to stderr.
26421         Use a here doc instead of a long string.
26422
26423 2009-08-21  Eric Blake  <ebb9@byu.net>
26424
26425         test-popen-safer: split from test-popen
26426         * tests/test-popen.c (main): Move...
26427         * tests/test-popen.h: ...into new file.
26428         * tests/test-popen-safer2.c: New file.
26429         * modules/popen-tests (Files): Add test-popen.h.
26430         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
26431         Suggested by Bruno Haible.
26432
26433         test-fcntl-safer: split from test-open
26434         * tests/test-open.c (main): Move...
26435         * tests/test-open.h: ...into new file.
26436         * tests/test-fcntl-safer.c: New file.
26437         * modules/open-tests (Files): Add test-open.h.
26438         * modules/fcntl-safer-tests: New file.
26439         Suggested by Bruno Haible.
26440
26441         test-fopen-safer: split from test-fopen
26442         * tests/test-fopen.c (main): Move...
26443         * tests/test-fopen.h: ...into new file.
26444         * tests/test-fopen-safer.c: New file.
26445         * modules/fopen-tests (Files): Add test-fopen.h.
26446         * modules/fopen-safer-tests: New file.
26447         Suggested by Bruno Haible.
26448
26449 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26450
26451         popen-safer: test O_CLOEXEC at run-time.
26452         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
26453
26454 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26455
26456         fcntl: move more flags to the header
26457         * lib/cloexec.c: Do not define FD_CLOEXEC here.
26458         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
26459         * lib/fcntl.in.h: Do both things here.
26460
26461 2009-08-21  Jim Meyering  <meyering@redhat.com>
26462
26463         consistently remove $@-t before redirecting to it
26464         * modules/argz: Remove $@-t and $@ before redirecting to the former.
26465         * modules/alloca-opt: Likewise.
26466         * modules/byteswap: Likewise.
26467         * modules/fnmatch: Likewise.
26468         * modules/getopt-posix: Likewise.
26469         * modules/glob: Likewise.
26470         * modules/poll: Likewise.
26471         * modules/posix_spawnp-tests: Likewise.
26472         * modules/sys_socket: Likewise.
26473         * modules/sysexits: Likewise.
26474
26475 2009-08-21  Eric Blake  <ebb9@byu.net>
26476
26477         popen: simplify access to original popen
26478         * lib/popen.c (rpl_popen): No need to worry about popen being a
26479         macro.
26480         Reported by Bruno Haible.
26481
26482 2009-08-20  Eric Blake  <ebb9@byu.net>
26483
26484         build: avoid some compiler warnings
26485         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
26486         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
26487         type.
26488         (new_exclude_segment, excluded_file_pattern_p)
26489         (excluded_file_name_p): Reduce scope.
26490         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
26491         old-style declaration.
26492
26493 2009-08-20  Simon Josefsson  <simon@josefsson.org>
26494
26495         * tests/test-exclude1.sh: Handle Windows EOL.
26496         * tests/test-exclude2.sh: Likewise.
26497         * tests/test-exclude3.sh: Likewise.
26498         * tests/test-exclude4.sh: Likewise.
26499         * tests/test-exclude5.sh: Likewise.
26500         * tests/test-exclude6.sh: Likewise.
26501         * tests/test-exclude7.sh: Likewise.
26502
26503 2009-08-19  Akim Demaille  <demaille@gostai.com>
26504
26505         bootstrap: find sha1sum when named gsha1sum.
26506         * bootstrap (find_tool): New.
26507         ($SHA1SUM): New.
26508         Use it.
26509
26510 2009-08-20  Jim Meyering  <meyering@redhat.com>
26511
26512         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
26513         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
26514         expression that converts "." in a file name to "\." in the resulting
26515         regexp.  Start with a dummy statement, so that prior shell variable
26516         definitions are expanded portably.  Reported by Simon Josefsson.
26517
26518 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
26519
26520         Fix polling for writeability of a screen buffer.
26521         * lib/poll.c: Distinguish input and screen buffers for the
26522         Win32 implementation.
26523         * lib/select.c: Likewise.
26524
26525 2009-08-19  Eric Blake  <ebb9@byu.net>
26526
26527         popen-safer: prevent popen from clobbering std descriptors
26528         * modules/popen-safer: New file.
26529         * lib/popen-safer.c: Likewise.
26530         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
26531         * lib/stdio--.h (popen): Provide override.
26532         * lib/stdio-safer.h (popen_safer): Provide declaration.
26533         * tests/test-popen.c (includes): Partially test this.
26534         * modules/popen-safer-tests: New file, for more tests.
26535         * tests/test-popen-safer.c: Likewise.
26536         * MODULES.html.sh (file stream based Input/Output): Mention it.
26537
26538         tests: test some of the *-safer modules
26539         * modules/fopen-safer (Depends-on): Add fopen.
26540         * modules/fcntl-safer (Depends-on): Add fcntl.
26541         * modules/stdlib-safer (Depends-on): Add stdlib.
26542         (configure.ac): Set indicator.
26543         * modules/unistd-safer (configure.ac): Likewise.
26544         * modules/tmpfile-safer (configure.ac): Likewise.
26545         (Depends-on): Add tmpfile.
26546         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
26547         active.
26548         * tests/test-fopen.c (includes): Test safer versions when they are
26549         in use.
26550         * tests/test-open.c (includes): Likewise.
26551
26552         popen: fix cygwin 1.5 bug when stdin closed
26553         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
26554         * modules/popen: New file.
26555         * modules/popen-tests: Likewise.
26556         * tests/test-popen.c: Likewise.
26557         * m4/popen.m4: Likewise.
26558         * lib/popen.c: Likewise.
26559         * lib/stdio.in.h (popen): New declaration.
26560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
26561         * modules/stdio (Makefile.am): Likewise.
26562         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
26563
26564 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
26565
26566         maint.mk: give full control over update-copyright exclusions
26567         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
26568         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
26569         (update-copyright): Don't force inclusion of top-level
26570         ChangeLog.  Don't force exclusion of all COPYING files, but make
26571         them the default exclusion instead.
26572
26573 2009-08-16  Bruno Haible  <bruno@clisp.org>
26574
26575         Fix test failures on Solaris 10.
26576         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
26577         tests when Solaris iconv() is used.
26578         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
26579         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
26580         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
26581         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
26582         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
26583
26584 2009-08-16  Bruno Haible  <bruno@clisp.org>
26585
26586         Fix test failures on Solaris 10.
26587         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
26588         'tr' program and pass it as first argument.
26589         * tests/test-pipe-filter-gi1.sh: Likewise.
26590         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
26591         program as first argument.
26592         * tests/test-pipe-filter-gi1.c (main): Likewise.
26593
26594 2009-08-16  Eric Blake  <ebb9@byu.net>
26595
26596         fpurge: fix previous commits
26597         * modules/fpurge (Makefile.am): Make replacement conditional,
26598         partially reverting 2007-04-29 change; missed in previous
26599         attempt.
26600         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
26601         is missing.
26602
26603 2009-08-16  Bruno Haible  <bruno@clisp.org>
26604
26605         Clarify fpurge's effect on the file position.
26606         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
26607         * tests/test-fpurge.c (main): Make a second pass for checking the file
26608         position.
26609
26610 2009-08-16  Bruno Haible  <bruno@clisp.org>
26611
26612         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
26613         declaration of fpurge is missing.
26614         * tests/test-fpurge.c (main): Check that the file has not more contents
26615         than expected. Close the file before removing it.
26616
26617 2009-08-15  Eric Blake  <ebb9@byu.net>
26618
26619         fpurge: don't wrap working cygwin implementation
26620         * lib/fpurge.c (fpurge): Fix comment typo.
26621         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
26622         1.7 to avoid replacement.
26623         * tests/test-fpurge.c (main): Enhance test.
26624
26625 2009-08-15  Eric Blake  <ebb9@byu.net>
26626         and Jim Meyering  <meyering@redhat.com>
26627
26628         test-update-copyright: skip if perl is insufficient
26629         * tests/test-update-copyright.sh: Failure to run maintainer tool
26630         should not cause testsuite failure on cygwin 1.5.
26631
26632 2009-08-14  Eric Blake  <ebb9@byu.net>
26633
26634         doc: mention more functions added in cygwin 1.7.0
26635         * doc/posix-headers/limits.texi (limits.h): Update for recent
26636         cygwin additions.
26637         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
26638         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
26639         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
26640         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
26641         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
26642
26643 2009-08-14  Eric Blake  <ebb9@byu.net>
26644
26645         maint.mk: simplify update-copyright rule
26646         * top/maint.mk (update-copyright-local): Delete, and document how
26647         to do it in cfg.mk instead.
26648         (update-copyright-exclude-regexp): Delete, and document how to do
26649         it in .x-update-copyright instead.
26650         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
26651         exclude ChangeLog.
26652
26653 2009-08-14  Bruno Haible  <bruno@clisp.org>
26654
26655         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
26656
26657 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26658
26659         maint.mk: support update-copyright-env
26660         * top/maint.mk (update-copyright-env): Define place-holder.
26661         (update-copyright): Expand $(update-copyright-env) before
26662         invoking update-copyright.
26663
26664 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26665
26666         update-copyright: implement forced reformatting
26667         * build-aux/update-copyright: Implement and document
26668         UPDATE_COPYRIGHT_FORCE.
26669         * tests/test-update-copyright.sh: Test it.
26670
26671 2009-08-14  Eric Blake  <ebb9@byu.net>
26672         and Bruno Haible  <bruno@clisp.org>
26673
26674         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
26675         * tests/test-locale.c: Revert previous patch related to NULL.
26676         * tests/test-stdio.c: Likewise.
26677         * tests/test-stdlib.c: Likewise.
26678         * tests/test-string.c: Likewise.
26679         * tests/test-unistd.c: Likewise.
26680         * modules/time-tests (Depends-on): Add verify.
26681         * modules/wchar-tests (Depends-on): Likewise.
26682         * tests/test-time.c: Test for NULL compliance.
26683         * tests/test-wchar.c: Likewise.
26684         * modules/locale (Depends-on): Add stddef.
26685         * modules/stdio (Depends-on): Likewise.
26686         * modules/stdlib (Depends-on): Likewise.
26687         * modules/string (Depends-on): Likewise.
26688         * modules/time (Depends-on): Likewise.
26689         * modules/unistd (Depends-on): Likewise.
26690         * modules/wchar (Depends-on): Likewise.
26691         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
26692         * lib/stdlib.in.h (includes): Likewise.
26693         * lib/string.in.h (includes): Likewise.
26694         * lib/time.in.h (includes): Likewise.
26695         * lib/unistd.in.h (includes): Likewise.
26696         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
26697         replaced.
26698         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26699         * m4/stddef_h.m4: New file.
26700         * modules/stddef: Likewise.
26701         * lib/stddef.in.h: Likewise.
26702         * modules/stddef-tests: Likewise.
26703         * tests/test-stddef.c: Likewise.
26704         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
26705         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
26706         * doc/posix-headers/locale.texi (locale.h): Likewise.
26707         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
26708         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26709         * doc/posix-headers/string.texi (string.h): Likewise.
26710         * doc/posix-headers/time.texi (time.h): Likewise.
26711         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
26712         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
26713
26714 2009-08-14  Eric Blake  <ebb9@byu.net>
26715
26716         doc: improve git diff of texinfo files
26717         * .gitattributes: Add rule for *.texi files, with hint on how to
26718         use it.
26719         Copied from m4, and based on a report by Bruno Haible.
26720
26721 2009-08-14  Bruno Haible  <bruno@clisp.org>
26722
26723         Disable multithread support by default on Cygwin 1.5.x for real.
26724         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
26725
26726 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26727
26728         update-copyright: much ado about intervals
26729         * build-aux/update-copyright: Implement and document
26730         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
26731         of copyright year intervals.
26732         Also, document UPDATE_COPYRIGHT_YEAR.
26733         * tests/test-update-copyright.sh: Test it.
26734
26735         update-copyright: convert 2-digit to 4-digit years
26736         * build-aux/update-copyright: Implement and document.
26737         * tests/test-update-copyright.sh: Update.
26738
26739 2009-08-14  Jim Meyering  <meyering@redhat.com>
26740
26741         test-exclude: avoid coreutils "make check" failure
26742         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
26743         just as in test-argmatch.c.
26744
26745 2009-08-13  Eric Blake  <ebb9@byu.net>
26746
26747         test-dup2: fix bad assumption
26748         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
26749         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
26750
26751         test-version-etc: fix CRLF portability issue
26752         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
26753         recognize \r.
26754         * tests/test-argp-version-etc-1.sh: Likewise.
26755
26756         getopt: update client modules
26757         * modules/argp (Depends-on): Use getopt-gnu.
26758         * modules/git-merge-changelog (Depends-on): Likewise.
26759         * modules/long-options (Depends-on): Likewise.
26760         * modules/xstrtol (Depends-on): Likewise.
26761
26762 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26763
26764         * tests/test-version-etc.sh: Don't fail on different
26765         project/version.  Don't fail on CRLF differences.  Rewrite to use
26766         multiple -e instead of multiple sed forks, suggested by Eric Blake
26767         <ebb9@byu.net>.
26768         * tests/test-argp-version-etc-1.sh: Likewise.
26769
26770 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26771
26772         * tests/test-version-etc.sh: Don't fail on different
26773         project/version.
26774
26775 2009-08-12  Bruno Haible  <bruno@clisp.org>
26776
26777         Tests for modules 'getopt-posix', 'getopt-gnu'.
26778         * modules/getopt-posix-tests: New file.
26779         * tests/test-getopt.c: New file.
26780         * tests/test-getopt.h: New file.
26781         * tests/test-getopt_long.h: New file.
26782
26783         New modules 'getopt-posix', 'getopt-gnu'.
26784         * modules/getopt-gnu: New file, renamed from modules/getopt.
26785         * modules/getopt-posix: New file.
26786         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
26787         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
26788         (gl_GETOPT): Remove macro.
26789         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
26790         Disable the test against BSD systems that declare optreset. Test
26791         against mingw bug. Test against lack of support of optional arguments
26792         on many platforms.
26793         * doc/glibc-headers/getopt.texi: Update module name and list of
26794         relevant platforms.
26795         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
26796         'getopt-gnu' and more portability problems.
26797         * NEWS: Mention the changes.
26798
26799 2009-08-12  Bruno Haible  <bruno@clisp.org>
26800
26801         Ensure that optarg etc. get declared by <unistd.h>.
26802         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
26803         AC_USE_SYSTEM_EXTENSIONS.
26804         * modules/getopt (Depends-on): Add 'extensions'.
26805
26806 2009-08-12  Bruno Haible  <bruno@clisp.org>
26807
26808         Avoid test link errors.
26809         * modules/pipe-filter-ii-tests (Makefile.am): Define
26810         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
26811         * modules/pipe-filter-gi-tests (Makefile.am): Define
26812         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
26813         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26814
26815 2009-08-12  Bruno Haible  <bruno@clisp.org>
26816
26817         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
26818         gl_GETOPT_SUBSTITUTE before.
26819         (gl_GETOPT): Use it.
26820         * m4/argp.m4 (gl_ARGP): Update.
26821         Reported by Sergey Poznyakoff.
26822
26823         * m4/getopt.m4: Reorder macros.
26824         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
26825         (gl_GETOPT_SUBSTITUTE): Remove macro.
26826
26827 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26828
26829         Minor improvement in gitlog-to-changelog
26830
26831         * build-aux/gitlog-to-changelog: New option `--format' makes
26832         output format string configurable.
26833
26834 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26835
26836         Optimize exclude: use hash tables for non-wildcard patterns.
26837
26838         * lib/exclude.c: Include hash.h and mbuiter.h
26839         (struct exclude_pattern, exclude_segment): New data types.
26840         (struct exclude): Rewrite.
26841         (fnmatch_pattern_has_wildcards): New function.
26842         (new_exclude_segment, free_exclude_segment): New functions.
26843         (excluded_file_pattern_p, excluded_file_name_p): New functions.
26844         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
26845         * lib/exclude.h (is_fnmatch_pattern): New prototype.
26846         * modules/exclude: Depend on hash and mbuiter.
26847
26848         * modules/exclude-tests: New file.
26849         * tests/test-exclude.c: New file.
26850         * tests/test-exclude1.sh: New file.
26851         * tests/test-exclude2.sh: New file.
26852         * tests/test-exclude3.sh: New file.
26853         * tests/test-exclude4.sh: New file.
26854         * tests/test-exclude5.sh: New file.
26855         * tests/test-exclude6.sh: New file.
26856         * tests/test-exclude7.sh: New file.
26857
26858 2009-08-12  Bruno Haible  <bruno@clisp.org>
26859
26860         Ensure that getopt() gets declared by <unistd.h>.
26861         * lib/unistd.in.h: Conditionally include getopt.h.
26862         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
26863         Set GNULIB_UNISTD_H_GETOPT.
26864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26865         GNULIB_UNISTD_H_GETOPT.
26866         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
26867
26868 2009-08-12  Bruno Haible  <bruno@clisp.org>
26869
26870         Clarify logic.
26871         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
26872         gl_replace_getopt instead of GETOPT_H.
26873
26874 2009-08-12  Bruno Haible  <bruno@clisp.org>
26875
26876         * m4/getopt.m4: Add comments.
26877
26878 2009-08-12  Bruno Haible  <bruno@clisp.org>
26879
26880         Disable multithread support by default on Cygwin 1.5.x.
26881         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
26882         set gl_use_threads=no if not specified otherwise.
26883
26884 2009-08-11  Bruno Haible  <bruno@clisp.org>
26885
26886         Avoid compilation error on NetBSD 5.0.
26887         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
26888         * tests/test-stdio.c: Likewise.
26889         * tests/test-stdlib.c: Likewise.
26890         * tests/test-string.c: Likewise.
26891         * tests/test-unistd.c: Likewise.
26892         Reported by Greg Troxel <gdt@ir.bbn.com>
26893         at <https://savannah.gnu.org/support/?106973>.
26894
26895 2009-08-11  Bruno Haible  <bruno@clisp.org>
26896
26897         * modules/dup2-tests (Depends-on): Remove close.
26898
26899         Undo 2009-07-19 commit.
26900         * modules/acl-tests (Depends-on): Remove close.
26901         * modules/binary-io-tests (Depends-on): Likewise.
26902         * modules/closein-tests (Depends-on): Likewise.
26903         * modules/flock-tests (Depends-on): Likewise.
26904         * modules/fsync-tests (Depends-on): Likewise.
26905         * modules/lseek-tests (Depends-on): Likewise.
26906         * modules/pipe-tests (Depends-on): Likewise.
26907         * modules/posix_spawn-tests (Depends-on): Likewise.
26908         * modules/posix_spawnp-tests (Depends-on): Likewise.
26909         * modules/stat-time-tests (Depends-on): Likewise.
26910         * modules/yesno-tests (Depends-on): Likewise.
26911
26912 2009-08-10  Bruno Haible  <bruno@clisp.org>
26913
26914         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
26915
26916 2009-08-10  Bruno Haible  <bruno@clisp.org>
26917
26918         Fix a gcc warning.
26919         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
26920
26921 2009-08-10  Bruno Haible  <bruno@clisp.org>
26922
26923         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
26924         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
26925         not only the first time.
26926         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
26927         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
26928         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
26929         is 1, not only the the first time.
26930
26931 2009-08-10  Bruno Haible  <bruno@clisp.org>
26932
26933         Make it possible to use module 'gethostname' without module 'close'.
26934         * lib/unistd.in.h (close): Evoke a link error only if
26935         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26937         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26938         * modules/unistd (Makefile.am): Substitute
26939         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26940         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
26941         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26942         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26943         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26944         * modules/sys_ioctl (Makefile.am): Substitute
26945         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26946         * modules/socket (configure.ac): On native Windows, set
26947         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
26948         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26949         Reported by Sam Steingold <sds@gnu.org>.
26950
26951 2009-08-10  Bruno Haible  <bruno@clisp.org>
26952
26953         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
26954         * modules/ioctl (configure.ac): Likewise.
26955
26956 2009-08-10  Bruno Haible  <bruno@clisp.org>
26957
26958         Avoid collision between gnulib wrapper and libintl wrapper.
26959         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
26960         already defined in intl/printf.c.
26961         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
26962         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
26963
26964 2009-08-09  Bruno Haible  <bruno@clisp.org>
26965
26966         Make <sys/select.h> really self-contained, also on Solaris 10.
26967         * lib/sys_select.in.h: Include <string.h>.
26968         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
26969         Solaris 10 problem.
26970         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
26971         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
26972         Reported by Jim Meyering.
26973
26974 2009-08-09  Bruno Haible  <bruno@clisp.org>
26975
26976         Avoid warnings from 'aclocal' that are due to a use of macro name
26977         AM_XGETTEXT_OPTION that is not defined in automake.
26978         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
26979         automake.
26980         * modules/error (configure.ac): Likewise.
26981         * modules/propername (configure.ac): Likewise.
26982         * modules/vasprintf (configure.ac): Likewise.
26983         * modules/verror (configure.ac): Likewise.
26984         * modules/xprintf (configure.ac): Likewise.
26985         * modules/xvasprintf (configure.ac): Likewise.
26986
26987 2009-08-08  Bruno Haible  <bruno@clisp.org>
26988
26989         Avoid compilation error in C++ mode.
26990         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
26991         Reported by Sam Steingold <sds@gnu.org>.
26992
26993 2009-08-08  Bruno Haible  <bruno@clisp.org>
26994
26995         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
26996         for the various Unix platforms.
26997         * doc/posix-headers/limits.texi: Update platforms list regarding
26998         HOST_NAME_MAX.
26999         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27000
27001 2009-08-07  Jim Meyering  <meyering@redhat.com>
27002
27003         selinux-at: fix typo in a comment
27004         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
27005         Spotted by Paolo Bonzini.
27006
27007         selinux-at: remove redundant m4 code, add documentation
27008         * modules/selinux-at (configure.ac): Remove redundant code.
27009         LIB_SELINUX is already set via the dependent module, selinux-h.
27010         (Include): Add quotes around selinux-at.h.
27011         * lib/selinux-at.h: Add documentation.
27012         Reported by Bruno Haible in
27013         http://marc.info/?l=gnulib-bug&m=124958988300749
27014
27015 2009-08-07  Bruno Haible  <bruno@clisp.org>
27016
27017         Avoid link error on MacOS X 10.3 and 10.4.
27018         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
27019         on non-ELF systems.
27020         * lib/argp-pv.c (argp_program_version): Likewise.
27021         Reported by Simon Josefsson.
27022
27023 2009-08-07  Simon Josefsson  <simon@josefsson.org>
27024
27025         * tests/test-version-etc.sh: Use $EXEEXT.
27026
27027 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
27028
27029         update-copyright: update documentation to point to maint.mk
27030         * build-aux/update-copyright: Here.
27031
27032 2009-08-06  Jim Meyering  <meyering@redhat.com>
27033
27034         maint.mk: support update-copyright-local
27035         * top/maint.mk (update-copyright-local): Define place-holder.
27036         (update-copyright): Depend on $(update-copyright-local).
27037
27038 2009-08-06  Jim Meyering  <meyering@redhat.com>
27039
27040         selinux-at: new module
27041         Initially written for coreutils, this module will soon be
27042         used by findutils, too.
27043         * MODULES.html.sh [Misc]: Add selinux-at.
27044         * lib/selinux-at.h: New file, from coreutils.
27045         * lib/selinux-at.c: Likewise.
27046         * modules/selinux-at: Likewise.
27047         (License): Change from LGPL to GPL, since it depends
27048         on the GPL'd openat module.
27049
27050         doc: update README
27051         * README: Remove references to cogito.
27052         Remove cvs-repo-updating instructions from 2007.
27053         Don't imply that CVS is better if you have limited disk space.
27054
27055 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27056
27057         update-copyright: support C-style comments
27058         * build-aux/update-copyright: Implement and document.
27059         * tests/test-update-copyright.sh: Test.
27060
27061 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27062
27063         update-copyright: support omitted "(C)"
27064         * build-aux/update-copyright: Implement and document.  Also,
27065         allow variable whitespace before "(C)".
27066         * tests/test-update-copyright.sh: Test.
27067
27068 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27069
27070         update-copyright: don't trip on non-FSF copyright statements
27071         * build-aux/update-copyright: Fix so that the first correctly
27072         formatted FSF copyright statement is recognized no matter what
27073         appears before it.  Update documentation.
27074         * tests/test-update-copyright.sh: Test that.
27075
27076 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27077
27078         update-copyright: clean up code a little
27079         * build-aux/update-copyright: Append "_re" to the name of any
27080         variable holding a regular expression.
27081         Replace "old" and "new" with "stmt" in variable names.
27082         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
27083         handled correctly.
27084         Format code more consistently.
27085
27086 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27087
27088         update-copyright-tests: improve portability
27089         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
27090         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
27091
27092 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27093
27094         update-copyright: support @copyright{} and &copy;
27095         * build-aux/update-copyright: Implement and document.
27096         * tests/test-update-copyright.sh: Test.
27097
27098 2009-08-04  Jim Meyering  <meyering@redhat.com>
27099
27100         update-copyright-tests: correctly test EOL=\r\n handling
27101         * tests/test-update-copyright.sh: Put \r at the end of some lines
27102         for the dos-eol tests.  Based on a patch by Joel E. Denny.
27103
27104         maint.mk: make update-copyright exclusion list more configurable
27105         * top/maint.mk (update-copyright): Default to excluding COPYING,
27106         but allow an override, in case someone does want to update that file.
27107
27108         maint.mk: don't update copyright date in COPYING
27109         * top/maint.mk (update-copyright): Exclude COPYING.
27110
27111         maint.mk: add a copyright-updating rule
27112         * top/maint.mk (update-copyright): New rule.
27113         Derived from coreutils/Makefile.am.
27114
27115         update-copyright: rename some variables
27116         * build-aux/update-copyright: Rename a few variables for clarity.
27117         Tweak syntax.  List Joel E. Denny as coauthor.
27118
27119 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27120
27121         update-copyright: fix bug for 2-digit last year and add tests
27122         * build-aux/update-copyright: Fix bug.
27123         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
27124         specified.
27125         * modules/update-copyright-tests: New
27126         * tests/test-update-copyright.sh: New.
27127
27128 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27129
27130         update-copyright: handle leading tabs in line prefix
27131         * build-aux/update-copyright: Count leading tabs as 8 spaces
27132         when computing margin.  This helps with the formatting of
27133         ChangeLogs, for example.
27134         Fix documentation a little.
27135
27136 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27137
27138         update-copyright: support EOL=\r\n
27139         * build-aux/update-copyright: Implement that.
27140
27141 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27142
27143         update-copyright: automatically format copyright statements
27144         * build-aux/update-copyright: Implement that.
27145         Also, be a little more predictable and safer by always failing
27146         when the full copyright format is not perfectly recognized as an
27147         unbroken whole.  Discussed at
27148         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
27149         Rewrite documentation.
27150
27151 2009-08-03  Bruno Haible  <bruno@clisp.org>
27152
27153         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
27154
27155 2009-08-02  Bruno Haible  <bruno@clisp.org>
27156
27157         Tests for module 'uname'.
27158         * modules/uname-tests: New file.
27159         * tests/test-uname.c: New file.
27160
27161         New module 'uname'.
27162         * lib/uname.c: New file.
27163         * m4/uname.m4: New file.
27164         * modules/uname: New file.
27165         * doc/posix-functions/uname.texi: Mention the new module.
27166
27167 2009-08-02  Bruno Haible  <bruno@clisp.org>
27168
27169         Tests for module 'sys_utsname'.
27170         * modules/sys_utsname-tests: New file.
27171         * tests/test-sys_utsname.c: New file.
27172
27173         New module 'sys_utsname'.
27174         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
27175         * m4/sys_utsname_h.m4: New file.
27176         * modules/sys_utsname: New file.
27177         * doc/posix-headers/sys_utsname.texi: Mention the new module.
27178
27179 2009-08-02  Bruno Haible  <bruno@clisp.org>
27180
27181         Implicitly initialize the sockets library.
27182         * lib/gethostname.c: Include sockets.h.
27183         (rpl_gethostname): Invoke gl_sockets_startup.
27184         * lib/socket.c: Include sockets.h.
27185         (rpl_socket): Invoke gl_sockets_startup.
27186         * modules/gethostname (Depends-on): Add sockets.
27187         * modules/socket (Depends-on): Likewise.
27188         * tests/test-poll.c: Don't include sockets.h.
27189         (main): Don't invoke gl_sockets_startup.
27190         * tests/test-select.c: Don't include sockets.h.
27191         (main): Don't invoke gl_sockets_startup.
27192
27193 2009-08-02  Bruno Haible  <bruno@clisp.org>
27194
27195         Allow multiple calls to gl_sockets_startup.
27196         * lib/sockets.c (initialized_sockets_version): New variable.
27197         (gl_sockets_startup): Do nothing if already called for this or a higher
27198         version.
27199         (gl_sockets_cleanup): Reset initialized_sockets_version.
27200
27201 2009-08-03  Simon Josefsson  <simon@josefsson.org>
27202
27203         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
27204         different project/version.
27205
27206 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
27207             Bruno Haible  <bruno@clisp.org>
27208
27209         Tests for module 'pipe-filter-gi'.
27210         * modules/pipe-filter-gi-tests: New file.
27211         * tests/test-pipe-filter-gi1.sh: New file.
27212         * tests/test-pipe-filter-gi1.c: New file.
27213         * tests/test-pipe-filter-gi2.sh: New file.
27214         * tests/test-pipe-filter-gi2-main.c: New file.
27215         * tests/test-pipe-filter-gi2-child.c: New file.
27216
27217         New module 'pipe-filter-gi'.
27218         * lib/pipe-filter-gi.c: New file.
27219         * modules/pipe-filter-gi: New file.
27220
27221 2009-08-02  Bruno Haible  <bruno@clisp.org>
27222             Paolo Bonzini  <bonzini@gnu.org>
27223
27224         Tests for module 'pipe-filter-ii'.
27225         * modules/pipe-filter-ii-tests: New file.
27226         * tests/test-pipe-filter-ii1.sh: New file.
27227         * tests/test-pipe-filter-ii1.c: New file.
27228         * tests/test-pipe-filter-ii2.sh: New file.
27229         * tests/test-pipe-filter-ii2-main.c: New file.
27230         * tests/test-pipe-filter-ii2-child.c: New file.
27231
27232         New module 'pipe-filter-ii'.
27233         * lib/pipe-filter.h: New file.
27234         * lib/pipe-filter-ii.c: New file.
27235         * lib/pipe-filter-aux.h: New file.
27236         * modules/pipe-filter-ii: New file.
27237
27238 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27239
27240         * lib/gc-libgcrypt.c: Change copyright to FSF.
27241         * lib/gc-gnulib.c: Likewise.
27242
27243 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
27244
27245         * lib/gethostname.c: Include limits.h.
27246
27247 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27248             Bruno Haible  <bruno@clisp.org>
27249
27250         Ensure HOST_NAME_MAX as part of the gethostname module.
27251         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
27252         define also HOST_NAME_MAX.
27253         * tests/test-gethostname.c: Include <limits.h>.
27254         (main): Check also HOST_NAME_MAX.
27255         * doc/posix-headers/limits.texi: Document the mingw problem.
27256
27257 2009-08-02  Bruno Haible  <bruno@clisp.org>
27258
27259         * lib/gethostname.c (gethostname): Fix handling of large len argument.
27260         Add comments.
27261
27262 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27263
27264         * lib/gethostname.c: Add Windows wrapper.
27265         * m4/gethostname.m4: Look for gethostname in -lws2_32.
27266         * modules/gethostname: Depend on sys_socket & errno, for also
27267         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
27268         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
27269
27270 2009-07-31  Jim Meyering  <meyering@redhat.com>
27271
27272         getloadavg: fix symbol name in comment
27273         * lib/getloadavg.c: Correct a typo I introduced when adding
27274         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
27275         Matt Kraai spotted the problem.
27276
27277 2009-07-29  Matt Kraai  <mkraai@beckman.com>
27278
27279         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
27280         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
27281         code also if ! defined N_NAME_POINTER.
27282         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
27283         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
27284         but the n_name member is a 12-byte array.
27285
27286 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
27287
27288         update-copyright: generalize comment handling
27289         * build-aux/update-copyright: Handle copyright statements
27290         within more comment styles.
27291         Document usage.
27292         Report any file with an external copyright holder or parse failure.
27293
27294 2009-07-29  Jim Meyering  <meyering@redhat.com>
27295
27296         mktime: correct setting of REPLACE_MKTIME
27297         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
27298
27299         update-copyright: new module
27300         * modules/update-copyright: New file.
27301         * build-aux/update-copyright: New file.
27302         * MODULES.html.sh (maint+release support): Add update-copyright.
27303
27304 2009-07-27  Bruno Haible  <bruno@clisp.org>
27305
27306         Fix compilation error when <ctime> is used and mktime is replaced.
27307         * lib/time.in.h (mktime): New declaration.
27308         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
27309         REPLACE_MKTIME instead of defining mktime in config.h.
27310         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
27311         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
27312         Reported by Ross McFarland <rwmcfa1@neces.com>.
27313
27314 2009-07-27  Bruno Haible  <bruno@clisp.org>
27315
27316         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
27317         Reported by Matt Kraai <mkraai@beckman.com>.
27318
27319 2009-07-25  Jim Meyering  <meyering@redhat.com>
27320
27321         maint.mk: avoid warnings about missing files
27322         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
27323         diagnostic when .prev-version does not exist.
27324         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
27325         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
27326         nonexistent cfg.mk.
27327         Suggestions from Simon Josefsson.
27328
27329 2009-07-25  Bruno Haible  <bruno@clisp.org>
27330
27331         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
27332         defined as macros. Needed on QNX 6.4.1.
27333         Reported by Matt Kraai <mkraai@beckman.com>.
27334
27335 2009-07-23  Jim Meyering  <meyering@redhat.com>
27336
27337         maint.mk: invoke "make dist" with a working value of XZ_OPT
27338         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
27339
27340 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
27341
27342         Make fseeko.c compile on QNX.
27343         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
27344
27345 2009-07-22  Peter Simons  <simons@cryp.to>
27346
27347         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
27348         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
27349         * lib/md4.h: Likewise.
27350         * lib/md5.h: Likewise.
27351         * lib/sha1.h: Likewise.
27352         * lib/sha256.h: Likewise.
27353         * lib/sha512.h: Likewise.
27354
27355         tests-sha1: don't assign literal string to 'char *' variable
27356         * tests/test-sha1.c (main): Declare locals with "const" to match
27357         attributes of the right hand side.
27358
27359 2009-07-21  Eric Blake  <ebb9@byu.net>
27360
27361         dup2: fix more mingw problems
27362         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
27363         fd to itself.
27364         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27365         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
27366         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
27367         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
27368         care of mingw bugs.
27369
27370 2009-07-21  Jim Meyering  <meyering@redhat.com>
27371
27372         vc-list-files: avoid failure when /bin/sh is dash
27373         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
27374         On some Debian based systems, /bin/sh is a symlink to dash, and running
27375         this command would omit the "/" following each 'tests' prefix:
27376           dash -x build-aux/vc-list-files -C . tests
27377         That is because bash and dash work differently:
27378           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
27379           bash ok
27380           dash odd
27381
27382 2009-07-21  Eric Blake  <ebb9@byu.net>
27383
27384         dup2-tests: test previous patch
27385         * modules/dup2-tests: New file.
27386         * tests/test-dup2.c: Likewise.
27387         * tests/test-open.c (main): Avoid unspecified behavior.
27388         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
27389         test.
27390
27391         dup2: work around mingw and cygwin 1.5 bug
27392         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
27393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27394         * modules/unistd (Makefile.am): Substitute it.
27395         * lib/unistd.in.h (dup2): Declare the replacement.
27396         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
27397         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
27398         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
27399         * modules/execute (Depends-on): Add dup2.
27400         * modules/fseterr (Depends-on): Likewise.
27401         * modules/pipe (Depends-on): Likewise.
27402         * modules/posix_spawn-internal (Depends-on): Likewise.
27403
27404 2009-07-21  Bruno Haible  <bruno@clisp.org>
27405
27406         * modules/.gitattributes: New file.
27407
27408 2009-07-20  Bruno Haible  <bruno@clisp.org>
27409
27410         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
27411         (main): Use it.
27412
27413 2009-07-20  Eric Blake  <ebb9@byu.net>
27414
27415         test-pipe: make a bit more robust.
27416         * tests/test-pipe.c (myerr): Allow error messages regardless of
27417         what we do to stderr.
27418         (test_pipe): Rearrange to avoid deadlock.
27419         (child_main): Try a larger read, to ensure we avoided deadlock.
27420         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
27421         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
27422         if misused.
27423
27424 2009-07-19  Jim Meyering  <meyering@redhat.com>
27425
27426         fts: avoid false-positive cycle-detection
27427         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
27428         for each new command line argument.
27429
27430 2009-07-19  Bruno Haible  <bruno@clisp.org>
27431
27432         Fix build error on mingw with the modules sys_select and unistd.
27433         * modules/acl-tests (Depends-on): Add close.
27434         * modules/binary-io-tests (Depends-on): Likewise.
27435         * modules/closein-tests (Depends-on): Likewise.
27436         * modules/flock-tests (Depends-on): Likewise.
27437         * modules/fsync-tests (Depends-on): Likewise.
27438         * modules/lseek-tests (Depends-on): Likewise.
27439         * modules/pipe-tests (Depends-on): Likewise.
27440         * modules/posix_spawn-tests (Depends-on): Likewise.
27441         * modules/posix_spawnp-tests (Depends-on): Likewise.
27442         * modules/stat-time-tests (Depends-on): Likewise.
27443         * modules/yesno-tests (Depends-on): Likewise.
27444
27445 2009-07-19  Bruno Haible  <bruno@clisp.org>
27446
27447         Unify conditionals.
27448         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
27449         macros, not at the compiler macros.
27450         * lib/pipe.c: Likewise.
27451         * lib/execute.c: Likewise.
27452         * lib/spawni.c: Likewise.
27453
27454 2009-07-19  Bruno Haible  <bruno@clisp.org>
27455
27456         Fix handling of closed stdin/stdout/stderr on mingw.
27457         * lib/w32spawn.h: Include unistd.h.
27458         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
27459         file descriptor with O_NOINHERIT flag.
27460         (fd_safer_noinherit): New function, based on fd-safer.c.
27461         (dup_safer_noinherit): New function, based on dup-safer.c.
27462         (undup_safer_noinherit): New function.
27463         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
27464         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
27465         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
27466         instead of fd_safer.
27467         * tests/test-pipe.c: Include <windows.h>.
27468         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
27469         result.
27470
27471         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
27472         from main.
27473         (test_pipe): Pass an extra argument for disambiguation.
27474         (main): Invoke parent_main or child_main.
27475
27476         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
27477         consistently.
27478
27479 2009-07-18  Eric Blake  <ebb9@byu.net>
27480
27481         test-pipe: fix mingw build
27482         * tests/test-pipe.c (main): Avoid fcntl on mingw.
27483
27484 2009-07-18  Bruno Haible  <bruno@clisp.org>
27485
27486         * modules/pipe-tests (Makefile.am): Fix typo.
27487
27488 2009-07-18  Eric Blake  <ebb9@byu.net>
27489
27490         error: fix mingw build
27491         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
27492         Reported by Bruno Haible.
27493
27494         error: avoid undefined use of stdout
27495         * lib/error.c (error, error_at_line): Check that fd 1 is open
27496         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
27497         is handling faults and the close_stdout module wants to report the
27498         detection of closed stdout as an error.
27499
27500 2009-07-17  Eric Blake  <ebb9@byu.net>
27501
27502         pipe: be robust in face of closed fds
27503         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
27504         should cause child to misbehave.
27505         * modules/pipe-tests: New module.
27506         * tests/test-pipe.c: New file.
27507         * tests/test-pipe.sh: New file.
27508         Reported by Akim Demaille.
27509
27510 2009-07-14  Bruno Haible  <bruno@clisp.org>
27511
27512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
27513         Reported by anonymous kc.
27514
27515 2009-07-07  Jim Meyering  <meyering@redhat.com>
27516
27517         maint.mk: don't look for translatable strings in *.m4 or *.mk
27518         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
27519         when searching for translatable strings.
27520
27521 2009-07-05  Jim Meyering  <meyering@redhat.com>
27522
27523         remove superfluous parentheses in STREQ definition
27524         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
27525         * lib/getugroups.c (STREQ): Likewise.
27526         * lib/fnmatch.c (STREQ): Likewise.
27527         Spotted by Bruno Haible.
27528
27529 2009-07-04  Jim Meyering  <meyering@redhat.com>
27530
27531         argv-iter: new module
27532         * MODULES.html.sh: Add argv-iter.
27533         * lib/argv-iter.c, lib/argv-iter.h: New files.
27534         * modules/argv-iter: New file.
27535         * modules/argv-iter-tests: New file.
27536         * tests/test-argv-iter.c: Test it.
27537
27538 2009-07-04  Bruno Haible  <bruno@clisp.org>
27539
27540         Fix assertion.
27541         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
27542         contains more exact copies of a given entry than file2, leave the extra
27543         copies unpaired rather than aborting.
27544         Reported by Eric Blake.
27545
27546 2009-07-02  Bruno Haible  <bruno@clisp.org>
27547
27548         Speedup git-merge-changelog for git cherry-pick.
27549         * lib/git-merge-changelog.c (struct entries_mapping): New type.
27550         (entries_mapping_get): New function, extracted from compute_mapping.
27551         (entries_mapping_reverse_get): New function.
27552         (compute_mapping): Add a 'full' argument. Return the result in a
27553         'struct entries_mapping'.
27554         (main): Update. Access the mappings through entries_mapping_get.
27555         Reported by Eric Blake.
27556
27557 2009-07-02  Bruno Haible  <bruno@clisp.org>
27558
27559         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
27560         best_i.
27561
27562 2009-07-02  Bruno Haible  <bruno@clisp.org>
27563
27564         Speed up approximate search for matching ChangeLog entries.
27565         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
27566         argument. Call fstrcmp_bounded instead of fstrcmp.
27567         (compute_mapping, try_split_merged_entry, main): Update callers.
27568
27569 2009-07-02  Bruno Haible  <bruno@clisp.org>
27570
27571         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
27572
27573 2009-06-30  Bruno Haible  <bruno@clisp.org>
27574
27575         Reduce the number of uc_is_cased calls.
27576         * lib/unicase.h (casing_suffix_context_t): Add
27577         'first_char_except_ignorable' field.
27578         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
27579         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
27580         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
27581         Update initializer.
27582         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
27583         case-ignorable characters.
27584         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
27585         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
27586         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
27587         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
27588         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
27589
27590 2009-06-30  Bruno Haible  <bruno@clisp.org>
27591
27592         Tests for module 'unicase/ignorable'.
27593         * modules/unicase/ignorable-tests: New file.
27594         * tests/unicase/test-ignorable.c: New file, generated by
27595         gen-uni-tables.
27596
27597         Tests for module 'unicase/cased'.
27598         * modules/unicase/cased-tests: New file.
27599         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
27600         * tests/unicase/test-predicate-part1.h: New file, derived from
27601         tests/unictype/test-predicate-part1.h.
27602         * tests/unicase/test-predicate-part2.h: New file, same as
27603         tests/unictype/test-predicate-part2.h.
27604
27605         Fix evaluation of "Before C" condition of FINAL_SIGMA.
27606         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
27607         (output_casing_properties): New function.
27608         (main): Call it.
27609         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
27610         * lib/unicase/cased.c: Include unictype/bitmap.h.
27611         (uc_is_cased): Define through a bitmap lookup.
27612         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
27613         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
27614         (uc_is_case_ignorable): Define through a bitmap lookup.
27615         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
27616         lib/unictype/bitmap.h.
27617         (Depends-on): Add inline. Clean up.
27618         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
27619         lib/unictype/bitmap.h.
27620         (Depends-on): Add inline. Clean up.
27621         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
27622         recognition.
27623         * tests/unicase/test-u16-tolower.c (main): Likewise.
27624         * tests/unicase/test-u32-tolower.c (main): Likewise.
27625
27626 2009-06-30  Bruno Haible  <bruno@clisp.org>
27627
27628         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
27629         * lib/unicase/u16-casemap.c: Likewise.
27630         * lib/unicase/u32-casemap.c: Likewise.
27631
27632 2009-06-29  Bruno Haible  <bruno@clisp.org>
27633
27634         Define u32_casefold as a wrapper around u32_ct_casefold.
27635         * lib/unicase/u32-casefold.c: Update.
27636         * modules/unicase/u32-casefold (Depends-on): Add
27637         unicase/u32-ct-casefold, unicase/empty-prefix-context,
27638         unicase/empty-suffix-context. Clean up.
27639
27640         Define u16_casefold as a wrapper around u16_ct_casefold.
27641         * lib/unicase/u16-casefold.c: Update.
27642         * modules/unicase/u16-casefold (Depends-on): Add
27643         unicase/u16-ct-casefold, unicase/empty-prefix-context,
27644         unicase/empty-suffix-context. Clean up.
27645
27646         Define u8_casefold as a wrapper around u8_ct_casefold.
27647         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
27648         * lib/unicase/u8-casefold.c: Update.
27649         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
27650         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27651
27652         Define u32_totitle as a wrapper around u32_ct_totitle.
27653         * lib/unicase/u32-totitle.c: Update.
27654         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
27655         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27656
27657         Define u16_totitle as a wrapper around u16_ct_totitle.
27658         * lib/unicase/u16-totitle.c: Update.
27659         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
27660         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27661
27662         Define u8_totitle as a wrapper around u8_ct_totitle.
27663         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
27664         functions.
27665         (FUNC): Delegate to U_CT_TOTITLE.
27666         * lib/unicase/u8-totitle.c: Update.
27667         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
27668         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27669
27670         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
27671         invocation.
27672         * modules/unicase/u32-tolower (Depends-on): Add
27673         unicase/empty-prefix-context, unicase/empty-suffix-context.
27674
27675         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
27676         invocation.
27677         * modules/unicase/u16-tolower (Depends-on): Add
27678         unicase/empty-prefix-context, unicase/empty-suffix-context.
27679
27680         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
27681         * modules/unicase/u8-tolower (Depends-on): Add
27682         unicase/empty-prefix-context, unicase/empty-suffix-context.
27683
27684         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
27685         invocation.
27686         * modules/unicase/u32-toupper (Depends-on): Add
27687         unicase/empty-prefix-context, unicase/empty-suffix-context.
27688
27689         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
27690         invocation.
27691         * modules/unicase/u16-toupper (Depends-on): Add
27692         unicase/empty-prefix-context, unicase/empty-suffix-context.
27693
27694         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
27695         * modules/unicase/u8-toupper (Depends-on): Add
27696         unicase/empty-prefix-context, unicase/empty-suffix-context.
27697
27698         New module 'unicase/u32-ct-casefold'.
27699         * lib/unicase/u32-ct-casefold.c: New file.
27700         * modules/unicase/u32-ct-casefold: New file.
27701
27702         New module 'unicase/u16-ct-casefold'.
27703         * lib/unicase/u16-ct-casefold.c: New file.
27704         * modules/unicase/u16-ct-casefold: New file.
27705
27706         New module 'unicase/u8-ct-casefold'.
27707         * lib/unicase/u8-ct-casefold.c: New file.
27708         * lib/unicase/u-ct-casefold.h: New file, derived from
27709         lib/unicase/u-casefold.h.
27710         * modules/unicase/u8-ct-casefold: New file.
27711
27712         New module 'unicase/u32-ct-totitle'.
27713         * lib/unicase/u32-ct-totitle.c: New file.
27714         * modules/unicase/u32-ct-totitle: New file.
27715
27716         New module 'unicase/u16-ct-totitle'.
27717         * lib/unicase/u16-ct-totitle.c: New file.
27718         * modules/unicase/u16-ct-totitle: New file.
27719
27720         New module 'unicase/u8-ct-totitle'.
27721         * lib/unicase/u8-ct-totitle.c: New file.
27722         * lib/unicase/u-ct-totitle.h: New file, derived from
27723         lib/unicase/u-totitle.h.
27724         * modules/unicase/u8-ct-totitle: New file.
27725
27726         New module 'unicase/u32-ct-tolower'.
27727         * lib/unicase/u32-ct-tolower.c: New file.
27728         * modules/unicase/u32-ct-tolower: New file.
27729
27730         New module 'unicase/u16-ct-tolower'.
27731         * lib/unicase/u16-ct-tolower.c: New file.
27732         * modules/unicase/u16-ct-tolower: New file.
27733
27734         New module 'unicase/u8-ct-tolower'.
27735         * lib/unicase/u8-ct-tolower.c: New file.
27736         * modules/unicase/u8-ct-tolower: New file.
27737
27738         New module 'unicase/u32-ct-toupper'.
27739         * lib/unicase/u32-ct-toupper.c: New file.
27740         * modules/unicase/u32-ct-toupper: New file.
27741
27742         New module 'unicase/u16-ct-toupper'.
27743         * lib/unicase/u16-ct-toupper.c: New file.
27744         * modules/unicase/u16-ct-toupper: New file.
27745
27746         New module 'unicase/u8-ct-toupper'.
27747         * lib/unicase/u8-ct-toupper.c: New file.
27748         * modules/unicase/u8-ct-toupper: New file.
27749
27750         Add context arguments to u*_casemap functions.
27751         * lib/unicase/unicasemap.h: Include unicase.h.
27752         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
27753         suffix_context arguments.
27754         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
27755         functions.
27756         (FUNC): Add prefix_context and suffix_context arguments. Use
27757         uc_is_cased and uc_is_case_ignorable.
27758         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
27759         * lib/unicase/u16-casemap.c: Likewise.
27760         * lib/unicase/u32-casemap.c: Likewise.
27761         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
27762         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27763         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
27764         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27765         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
27766         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27767
27768         New module 'unicase/u32-suffix-context'.
27769         * lib/unicase/u32-suffix-context.c: New file.
27770         * modules/unicase/u32-suffix-context: New file.
27771
27772         New module 'unicase/u16-suffix-context'.
27773         * lib/unicase/u16-suffix-context.c: New file.
27774         * modules/unicase/u16-suffix-context: New file.
27775
27776         New module 'unicase/u8-suffix-context'.
27777         * lib/unicase/u8-suffix-context.c: New file.
27778         * lib/unicase/u-suffix-context.h: New file.
27779         * modules/unicase/u8-suffix-context: New file.
27780
27781         New module 'unicase/empty-suffix-context'.
27782         * lib/unicase/empty-suffix-context.c: New file.
27783         * modules/unicase/empty-suffix-context: New file.
27784
27785         New module 'unicase/u32-prefix-context'.
27786         * lib/unicase/u32-prefix-context.c: New file.
27787         * modules/unicase/u32-prefix-context: New file.
27788
27789         New module 'unicase/u16-prefix-context'.
27790         * lib/unicase/u16-prefix-context.c: New file.
27791         * modules/unicase/u16-prefix-context: New file.
27792
27793         New module 'unicase/u8-prefix-context'.
27794         * lib/unicase/u8-prefix-context.c: New file.
27795         * lib/unicase/u-prefix-context.h: New file.
27796         * lib/unicase/context.h: New file.
27797         * modules/unicase/u8-prefix-context: New file.
27798
27799         New module 'unicase/empty-prefix-context'.
27800         * lib/unicase/empty-prefix-context.c: New file.
27801         * modules/unicase/empty-prefix-context: New file.
27802
27803         New module 'unicase/ignorable'.
27804         * lib/unicase/ignorable.c: New file.
27805         * modules/unicase/ignorable: New file.
27806
27807         New module 'unicase/cased'.
27808         * lib/unicase/caseprop.h: New file.
27809         * lib/unicase/cased.c: New file.
27810         * modules/unicase/cased: New file.
27811
27812         New functions for case mapping of substrings.
27813         * lib/unicase.h (casing_prefix_context_t): New type.
27814         (unicase_empty_prefix_context): New variable.
27815         (u8_casing_prefix_context, u16_casing_prefix_context,
27816         u32_casing_prefix_context, u8_casing_prefixes_context,
27817         u16_casing_prefixes_context, u32_casing_prefixes_context): New
27818         declarations.
27819         (casing_suffix_context_t): New type.
27820         (unicase_empty_suffix_context): New variable.
27821         (u8_casing_suffix_context, u16_casing_suffix_context,
27822         u32_casing_suffix_context, u8_casing_suffixes_context,
27823         u16_casing_suffixes_context, u32_casing_suffixes_context,
27824         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
27825         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
27826         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
27827         declarations.
27828
27829 2009-06-28  Jim Meyering  <meyering@redhat.com>
27830
27831         boostrap: indent only with spaces
27832         * build-aux/bootstrap: Indent only with spaces, never TABs.
27833
27834         bootstrap: split long lines
27835         * build-aux/bootstrap: Keep line length < 80.
27836
27837         bootstrap: sync from coreutils
27838         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
27839         just as autoreconf does.  Verify a list of prerequisite
27840         package-name,version-number pairs if defined in bootstrap.conf.
27841         Refer to README-prereq, if prerequisites are not satisfied.
27842
27843 2009-06-27  Eric Blake  <ebb9@byu.net>
27844
27845         tests: add test for bogus NULL definition
27846         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
27847         * tests/test-stdlib.c: Likewise.
27848         * tests/test-string.c: Likewise.
27849         * tests/test-locale.c: Likewise.
27850         * tests/test-unistd.c: Likewise.
27851         * modules/stdio-tests (Depends-on): Add verify.
27852         * modules/stdlib-tests (Depends-on): Likewise.
27853         * modules/string-tests (Depends-on): Likewise.
27854         * modules/locale-tests (Depends-on): Likewise.
27855         * modules/unistd-tests (Depends-on): Likewise.
27856
27857 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
27858
27859         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
27860         self-explaining comment.
27861         * m4/selinux-selinux-h: Update serial.
27862         (gl_LIBSELINUX): New macro, adding a warning for missing development
27863         packages to code extracted from...
27864         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
27865         Add warning for missing development packages here, too.
27866
27867 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
27868
27869         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
27870
27871 2009-06-25  Eric Blake  <ebb9@byu.net>
27872
27873         version-etc: fix regression
27874         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
27875         gcc.
27876         (version_etc): Use it, to catch bugs with trailing NULL.
27877         * lib/version-etc.c (version_etc_arn): Delete unused argument.
27878         (version_etc_va): Fix logic bug.
27879         * modules/version-etc-tests: Add test.
27880         * tests/test-version-etc.c: New file.
27881         * tests/test-version-etc.sh: Likewise.
27882
27883 2009-06-25  Sam Steingold  <sds@gnu.org>
27884
27885         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
27886         mbtowc declaration.
27887
27888 2009-06-25  Eric Blake  <ebb9@byu.net>
27889
27890         fpurge: migrate into <stdio.h>
27891         * lib/fpurge.h: Delete...
27892         * lib/stdio.in.h (fpurge): ...and declare here, instead.
27893         * lib/fpurge.c (fpurge): Change declaring header.
27894         * modules/fpurge (Files): Drop deleted file.
27895         (Depends-on): Add stdio.
27896         (configure.ac): Set witness.
27897         * modules/stdio (Makefile.am): Support fpurge macros.
27898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27899         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27900         * lib/fflush.c: Update client.
27901         * tests/test-fpurge.c: Likewise.
27902         * NEWS: Mention the change.
27903
27904 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27905
27906         * lib/argp-version-etc.c (program_authors): Add const
27907         qualifier.
27908         * lib/version-etc.c: Fix typos in the comments.
27909         * modules/argp-version-etc: Depends on version-etc.
27910
27911 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27912
27913         argp-version-etc: new module.
27914
27915         * lib/argp-version-etc.c: New file.
27916         * lib/argp-version-etc.h: New file.
27917         * modules/argp-version-etc: New file.
27918         * modules/argp-version-etc-tests: New file.
27919         * tests/test-argp-version-etc.c: New test.
27920         * tests/test-argp-version-etc-1.sh: New test.
27921
27922 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27923
27924         Provide additional interfaces and documentation for version-etc
27925         module.
27926
27927         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
27928         interfaces.
27929         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
27930         prototypes.
27931
27932 2009-06-24  Bruno Haible  <bruno@clisp.org>
27933
27934         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
27935         HAVE_LIB${NAME} macro.
27936         Reported by Sam Steingold <sds@gnu.org>.
27937
27938 2009-06-23  Simon Josefsson  <simon@josefsson.org>
27939
27940         * modules/hash-tests (test_hash_LDADD): Link to libintl when
27941         needed.
27942
27943 2009-06-21  Bruno Haible  <bruno@clisp.org>
27944
27945         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
27946         work.
27947         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
27948         together with LIB${NAME}, LTLIB${NAME}.
27949         Reported by Sam Steingold <sds@gnu.org>.
27950
27951 2009-06-20  Jim Meyering  <meyering@redhat.com>
27952
27953         tests: make sc_require_test_exit_idiom more generic
27954         * top/maint.mk (Exit_witness_file): New overridable variable.
27955         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
27956         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
27957
27958 2009-06-19  Jim Meyering  <meyering@redhat.com>
27959
27960         hash: reverse order of src/dst parameters in an internal interface
27961         * lib/hash.c (transfer_entries): Reverse order of parameters to
27962         put DST before SRC.  Adjust callers.
27963
27964         tests: test-hash: avoid wholesale duplication
27965         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
27966         Instead, use a loop and add a single conditional.
27967
27968         tests: test-hash: allow seed selection via a command line argument
27969         * tests/test-hash.c (get_seed): New function.
27970         (main): Use it.
27971
27972 2009-06-19  Eric Blake  <ebb9@byu.net>
27973
27974         hash: avoid memory leak on allocation failure
27975         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
27976         failure.  Factor repeated algorithm...
27977         (transfer_entries): ...into new helper routine.
27978         (hash_delete): React to hash_rehash return value.
27979
27980         hash: reduce memory pressure in hash_rehash no-op case
27981         * lib/hash.c (next_prime): Avoid overflow.
27982         (hash_initialize): Factor bucket size computation...
27983         (compute_bucket_size): ...into new helper function.
27984         (hash_rehash): Use new function and open coding to reduce memory
27985         pressure, and avoid a memory leak in USE_OBSTACK code.
27986         Reported by Jim Meyering.
27987
27988 2009-06-18  Eric Blake  <ebb9@byu.net>
27989
27990         hash: make rotation more obvious
27991         * modules/hash (Depends-on): Add bitrotate and stdint.
27992         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
27993         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
27994         (SIZE_MAX): Rely on headers for definition.
27995         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
27996         (raw_hasher): Use rotr_sz.
27997         Suggested by Jim Meyering.
27998
27999         hash: fix memory leak in last patch
28000         * lib/hash.c (hash_rehash): Avoid memory leak.
28001
28002         hash: avoid no-op rehashing
28003         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
28004
28005         hash: provide default callback functions
28006         * lib/hash.c (raw_hasher, raw_comparator): New functions.
28007         (hash_initialize): Use them as defaults.
28008         * tests/test-hash.c (main): Test this.
28009
28010         hash: minor optimization
28011         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
28012         when possible.
28013         (hash_initialize): Document this promise.
28014         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
28015         * tests/test-hash.c (hash_compare_strings): Test this.
28016
28017 2009-06-18  Bruno Haible  <bruno@clisp.org>
28018
28019         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
28020         going to be replaced anyway.
28021
28022 2009-06-18  Bruno Haible  <bruno@clisp.org>
28023
28024         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
28025         in one place.
28026         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
28027         be replaced anyway.
28028
28029 2009-06-18  Eric Blake  <ebb9@byu.net>
28030
28031         hash: check for resize before insertion
28032         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
28033         threshold before insertion, so that a pathological hash_rehash
28034         that fills every bucket can still trigger another rehash.
28035
28036 2009-06-18  Jim Meyering  <meyering@redhat.com>
28037
28038         hash-tests: add a loop around the small tests
28039         * tests/test-hash.c (main): Repeat small tests with selected
28040         small initial table sizes.
28041
28042 2009-06-17  Eric Blake  <ebb9@byu.net>
28043
28044         hash: minor cleanups
28045         * lib/hash.h (hash_entry): Make opaque, by moving...
28046         * lib/hash.c (hash_entry): ...here.
28047         (hash_insert): Clarify restrictions on what can be inserted.
28048         (hash_get_next): Clarify when it is safe to remove an element
28049         during traversal.
28050         (check_tuning): Skip verification when tuning is known safe.
28051         (hash_initialize): Clarify restrictions on tuning.
28052
28053 2009-06-17  Jim Meyering  <jim@meyering.net>
28054         and Eric Blake  <ebb9@byu.net>
28055
28056         hash-tests: new module
28057         * modules/hash-tests: New file.
28058         * tests/test-hash.c: New file.
28059
28060 2009-06-17  Eric Blake  <ebb9@byu.net>
28061
28062         strstr-simple: document new module
28063         * MODULES.html.sh: Document new module.
28064
28065         strstr, strcasestr: replace on platforms with broken memchr
28066         * modules/strstr: Split into...
28067         * modules/strstr-simple: ...new module that does not care about
28068         performance, but does care about glibc bug.
28069         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
28070         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
28071         if platform memchr is broken, per Debian bug 521737.
28072         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
28073         memchr.
28074         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
28075         * doc/posix-functions/strstr.texi (strstr): Document the fix.
28076         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28077         * modules/mountlist (Depends-on): Add strstr-simple.
28078         * modules/gen-uni-tables (Depends-on): Likewise.
28079         * modules/argz (Depends-on): Add strstr.
28080
28081 2009-06-17  Bruno Haible  <bruno@clisp.org>
28082
28083         * modules/posix_spawn-internal (Depends-on): Add errno.
28084
28085 2009-06-17  Bruno Haible  <bruno@clisp.org>
28086
28087         Define missing ESTALE on Interix 3.5.
28088         * lib/errno.in.h (ESTALE): Assign a value if missing.
28089         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
28090         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
28091         missing.
28092         * doc/posix-headers/errno.texi: Mention the Interix bug.
28093         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
28094
28095 2009-06-15  Eric Blake  <ebb9@byu.net>
28096
28097         memchr, memchr2: add valgrind exception
28098         * lib/memchr.valgrind: New file.
28099         * lib/memchr2.valgrind: New file.
28100         * modules/memchr (Files): Distribute valgrind file.
28101         * modules/memchr2 (Files): Likewise.
28102
28103         docs: memchr is no longer obsolete
28104         * MODULES.html.sh: Move memchr from obsolete to string.h section.
28105         * lib/string.in.h (memchr): Simplify logic.
28106
28107 2009-06-14  Jim Meyering  <meyering@redhat.com>
28108
28109         link-follow: fix the "checking..." message to not mention trailing slash
28110         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
28111         never considered trailing slashes.
28112
28113 2009-06-14  Bruno Haible  <bruno@clisp.org>
28114
28115         * m4/memchr.m4: Mention also the bug on IA-64.
28116         * doc/posix-functions/memchr.texi: Likewise.
28117
28118 2009-06-12  Eric Blake  <ebb9@byu.net>
28119
28120         memchr: detect broken x86_64 and alpha implementations
28121         * modules/memchr-tests (Depends-on): Move mmap detection...
28122         * modules/memchr (Depends-on): ...here.
28123         (configure.ac): Set indicator.
28124         * lib/string.in.h (memchr): Declare replacement.
28125         * modules/string (Makefile.am): Trigger replacement.
28126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28127         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
28128         bugs.
28129         * doc/posix-functions/memchr.texi (memchr): Document the bug.
28130         * modules/getpagesize (License): Relax license.
28131
28132 2009-06-11  Bruno Haible  <bruno@clisp.org>
28133
28134         * lib/idpriv.h: Add more references.
28135
28136 2009-06-08  Bruno Haible  <bruno@clisp.org>
28137
28138         Tests for module 'idpriv-droptemp'.
28139         * modules/idpriv-droptemp-tests: New file.
28140         * tests/test-idpriv-droptemp.sh: New file.
28141         * tests/test-idpriv-droptemp.su.sh: New file.
28142         * tests/test-idpriv-droptemp.c: New file.
28143
28144         New module 'idpriv-droptemp'.
28145         * lib/idpriv-droptemp.c: New file.
28146         * modules/idpriv-droptemp: New file.
28147
28148 2009-06-08  Bruno Haible  <bruno@clisp.org>
28149
28150         Tests for module 'idpriv-drop'.
28151         * modules/idpriv-drop-tests: New file.
28152         * tests/test-idpriv-drop.sh: New file.
28153         * tests/test-idpriv-drop.su.sh: New file.
28154         * tests/test-idpriv-drop.c: New file.
28155
28156         New module 'idpriv-drop'.
28157         * lib/idpriv.h: New file.
28158         * lib-idpriv-drop.c: New file.
28159         * m4/idpriv.m4: New file.
28160         * modules/idpriv-drop: New file.
28161
28162 2009-06-08  Bruno Haible  <bruno@clisp.org>
28163
28164         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
28165         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28166         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28167         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28168         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28169         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28170         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28171
28172 2009-06-08  Eric Blake  <ebb9@byu.net>
28173
28174         test-strstr: use memory fence, when possible
28175         * tests/test-strstr.c (main): Use memory fence, in order to be
28176         more likely to trigger Debian bug 521737.
28177         * modules/strstr-tests (Files): Pull in additional files.
28178
28179         memchr: no longer obsolete, for wider field testing
28180         * modules/memchr (Status, Notice): Delete, this module is no
28181         longer obsolete.
28182         * modules/vasnprintf (Depends-on): Add memchr.
28183
28184 2009-06-07  Jim Meyering  <meyering@redhat.com>
28185
28186         hash: declare some functions with the warn_unused_result attribute
28187         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
28188
28189 2009-06-07  Bruno Haible  <bruno@clisp.org>
28190
28191         * tests/test-alignof.c: Don't test int64_t if it does not exist.
28192         Reported by Eric Blake.
28193
28194 2009-06-06  Eric Blake  <ebb9@byu.net>
28195
28196         test-alignof: fix typo with long double
28197         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
28198         compiler error.
28199
28200 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
28201
28202         Escape non-texinfo { and }s.
28203         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
28204         markup error.
28205
28206 2009-06-04  Jim Meyering  <meyering@redhat.com>
28207
28208         gitlog-to-changelog: don't infloop on an empty commit log
28209         * build-aux/gitlog-to-changelog: Warn about an empty log message.
28210         Reported by Boris Petersen <transacid@centerim.org>.
28211
28212 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
28213
28214         version-etc: extend for packagers
28215         Add three new configure options, intended for packagers:
28216           --with-packager="packager name"
28217           --with-packager-version="packager-specific version"
28218           --with-packager-bug-reports="packager bug reporting"
28219         An example with coreutils:
28220           $ ./configure \
28221             --with-packager=Gentoo \
28222             --with-packager-bug-report=http://bugs.gentoo.org/ \
28223             --with-packager-version="patchset 1.6"
28224           $ ./src/ls --version | head -n2
28225           ls (GNU coreutils) 7.1-dirty
28226           Packaged by Gentoo (patchset 1.6)
28227         Note that the bug reporting info via --help doesn't show up because
28228         coreutils uses its own custom emit_bug_reporting_address() implementation
28229         in src/system.h.  If it didn't, it'd look like:
28230           $ ./src/ls --help | tail -n4
28231           Report bugs to <bug-coreutils@gnu.org>.
28232           Report Gentoo bugs to <http://bugs.gentoo.org/>.
28233           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
28234           General help using GNU software: <http://www.gnu.org/gethelp/>.
28235         * lib/version-etc.c: Print new information, if provided.
28236         * m4/version-etc.m4: New file.
28237         * modules/version-etc (Files): Add m4/version-etc.m4.
28238         (configure.ac): Add gl_VERSION_ETC.
28239
28240 2009-05-31  Bruno Haible  <bruno@clisp.org>
28241
28242         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
28243         and 'int64_t'.
28244         * modules/alignof-tests (Dependencies): Add stdint.
28245         Reported by Eric Blake.
28246
28247 2009-05-31  Bruno Haible  <bruno@clisp.org>
28248
28249         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
28250         restriction due to compiler bugs.
28251         Reported by Eric Blake.
28252
28253 2009-05-31  Simon Josefsson  <simon@josefsson.org>
28254             Bruno Haible  <bruno@clisp.org>
28255
28256         Fix test-alignof failure.
28257         * lib/alignof.h (alignof_slot): New macro.
28258         (alignof_type): New macro, with the same semantics as the previous
28259         'alignof'.
28260         (alignof): Alias to alignof_slot.
28261         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
28262         check that the results are usable as constant expressions.
28263
28264 2009-05-31  Bruno Haible  <bruno@clisp.org>
28265
28266         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
28267         * tests/test-memchr.c (main): Check that memchr does not read past the
28268         first occurrence of the byte.
28269         * tests/test-strstr.c (main): Update comment.
28270         Suggested by Eric Blake.
28271
28272 2009-05-30  Bruno Haible  <bruno@clisp.org>
28273
28274         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
28275         detail how to use dumpbin.
28276         Reported by David Byron <dbyron@dbyron.com>.
28277
28278 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28279
28280         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
28281
28282 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28283
28284         * m4/manywarnings.m4: Add GCC 4.4 warnings.
28285
28286 2009-05-28  Bruno Haible  <bruno@clisp.org>
28287
28288         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
28289         build-aux/ files.
28290
28291 2009-05-28  Simon Josefsson  <simon@josefsson.org>
28292
28293         * gnulib-tool (func_import): Transform license on build-aux/ files too.
28294
28295 2009-05-27  Simon Josefsson  <simon@josefsson.org>
28296
28297         * gnulib-tool (sed_transform_main_lib_file)
28298         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
28299         regexps.
28300
28301 2009-05-26  Simon Josefsson  <simon@josefsson.org>
28302
28303         * tests/test-strstr.c: Add another self-test.
28304         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
28305         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
28306
28307 2009-05-23  Bruno Haible  <bruno@clisp.org>
28308
28309         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
28310         change.
28311
28312 2009-05-21  Bruno Haible  <bruno@clisp.org>
28313
28314         Simplify use of mode_t varargs.
28315         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
28316         uses 'mode_t' or 'int'.
28317         * lib/openat.c (openat): Likewise.
28318         * lib/open-safer.c (open_safer): Likewise.
28319         * m4/mode_t.m4: New file.
28320         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
28321         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
28322         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
28323         * modules/open (Files): Add m4/mode_t.m4.
28324         * modules/openat (Files): Likewise.
28325         * modules/fcntl-safer (Files): Likewise.
28326         Suggested by Eric Blake.
28327
28328 2009-05-21  Pádraig Brady  <P@draigbrady.com>
28329
28330         * doc/glibc-functions/fallocate.texi: New file.
28331         * doc/gnulib.texi: Include it.
28332
28333 2009-05-21  Eric Blake  <ebb9@byu.net>
28334             Bruno Haible  <bruno@clisp.org>
28335
28336         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
28337         invocations.
28338         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28339
28340 2009-05-21  Eric Blake  <ebb9@byu.net>
28341             Bruno Haible  <bruno@clisp.org>
28342
28343         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
28344         include_next. Fix of 2008-11-20 commit.
28345         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
28346         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
28347         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
28348         NEXT_MATH_H.
28349         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
28350         instead of NEXT_MATH_H.
28351
28352 2009-05-21  Bruno Haible  <bruno@clisp.org>
28353
28354         Avoid redefinition warnings for SIZE_MAX.
28355         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
28356         Reported by Simon Josefsson.
28357
28358 2009-05-21  Bruno Haible  <bruno@clisp.org>
28359
28360         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
28361         AC_CACHE_VAL.
28362
28363 2009-05-20  Bruno Haible  <bruno@clisp.org>
28364
28365         Make zeroptr.h work on mingw.
28366         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
28367         mprotect.
28368         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
28369         * modules/memchr2-tests (configure.ac): Likewise.
28370         * modules/memcmp-tests (configure.ac): Likewise.
28371         * modules/memmem-tests (configure.ac): Likewise.
28372         * modules/memrchr-tests (configure.ac): Likewise.
28373         Reported by Simon Josefsson.
28374
28375 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28376
28377         * tests/test-glob.c: Include string.h for strcmp prototype.
28378
28379 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28380
28381         * modules/getdelim (Depends-on): Add explicit stdint, although it
28382         was implicitly already pulled in via realloc-posix.
28383         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
28384
28385 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28386
28387         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
28388         G. Christensen" <tgc@jupiterrise.com>.
28389         * m4/sys_socket_h.m4: Check for sa_family_t.
28390         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
28391         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
28392         * tests/test-sys_socket.c: Check that sa_family_t works.
28393
28394 2009-05-18  Eric Blake  <ebb9@byu.net>
28395
28396         maint.mk: allow gnulib_dir in VPATH build
28397         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
28398
28399 2009-05-15  Jim Meyering  <meyering@redhat.com>
28400
28401         maint.mk: Give gnulib_dir a default definition.
28402         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
28403         Thus, most packages no longer need to specify this variable in cfg.mk
28404
28405 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
28406
28407         rename.m4: fix typos that would make non-mingw cross-configure fail
28408         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
28409
28410 2009-05-13  Eric Blake  <ebb9@byu.net>
28411
28412         mmap-anon: avoid out-of-order autoconf expansion
28413         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
28414         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
28415         * modules/memchr-tests (Depends-on): Add extensions.
28416         * modules/memchr2-tests (Depends-on): Add extensions.
28417         * modules/memcmp-tests (Depends-on): Add extensions.
28418         * modules/memmem-tests (Depends-on): Add extensions.
28419         * modules/memrchr-tests (Depends-on): Add extensions.
28420
28421 2009-05-13  Bruno Haible  <bruno@clisp.org>
28422
28423         Make some tests ISO C 99 compliant.
28424         * tests/zerosize-ptr.h: New file.
28425         * tests/test-memchr.c: Include zerosize-ptr.h.
28426         (main): Use a zero-size object pointer instead of NULL.
28427         * tests/test-memchr2.c: Include zerosize-ptr.h.
28428         (main): Use a zero-size object pointer instead of NULL.
28429         * tests/test-memcmp.c: Include zerosize-ptr.h.
28430         (main): Use a zero-size object pointer instead of NULL.
28431         * tests/test-memmem.c: Include zerosize-ptr.h.
28432         (main): Use a zero-size object pointer instead of NULL.
28433         * tests/test-memrchr.c: Include zerosize-ptr.h.
28434         (main): Use a zero-size object pointer instead of NULL.
28435         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
28436         m4/mmap-anon.m4.
28437         (Depends-on): Add getpagesize.
28438         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28439         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
28440         m4/mmap-anon.m4.
28441         (Depends-on): Add getpagesize.
28442         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28443         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
28444         m4/mmap-anon.m4.
28445         (Depends-on): Add getpagesize.
28446         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28447         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
28448         m4/mmap-anon.m4.
28449         (Depends-on): Add getpagesize.
28450         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28451         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
28452         m4/mmap-anon.m4.
28453         (Depends-on): Add getpagesize.
28454         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28455
28456 2009-05-12  Bruno Haible  <bruno@clisp.org>
28457
28458         Tests for module 'alignof'.
28459         * modules/alignof-tests: New file.
28460         * tests/test-alignof.c: New file.
28461
28462 2009-05-12  Bruno Haible  <bruno@clisp.org>
28463
28464         Fix alignof macro.
28465         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
28466         vendor compilers that are always correct.
28467
28468 2009-05-12  Bruno Haible  <bruno@clisp.org>
28469
28470         Make the MAP_ANONYMOUS detection work on HP-UX 11.
28471         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
28472         not whether its fully works.
28473
28474 2009-05-12  Bruno Haible  <bruno@clisp.org>
28475
28476         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
28477
28478 2009-05-12  Jim Meyering  <meyering@redhat.com>
28479
28480         * top/maint.mk: Adjust backslash alignment.
28481
28482 2009-05-11  Simon Josefsson  <simon@josefsson.org>
28483
28484         * top/maint.mk: Make $(srcdir)/build-aux configurable.
28485
28486 2009-05-11  Eric Blake  <ebb9@byu.net>
28487
28488         argp: avoid undefined behavior
28489         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
28490         macros.
28491
28492 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28493
28494         * tests/test-vc-list-files-git.sh: Do git config of user.email and
28495         user.name to prevent git commit from complaining.
28496
28497 2009-05-10  Bruno Haible  <bruno@clisp.org>
28498
28499         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
28500         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
28501         it rewrites every file name only once.
28502         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
28503
28504 2009-05-08  Bruno Haible  <bruno@clisp.org>
28505
28506         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
28507         instead of 'max'.
28508
28509 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28510
28511         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
28512         sockaddr_storage test.
28513
28514 2009-05-07  Simon Josefsson  <simon@josefsson.org>
28515
28516         * modules/sys_socket (Makefile.am): Substitute
28517         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
28518         * m4/sys_socket_h.m4: Check for sockaddr_storage.
28519         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
28520         * tests/test-sys_socket.c: Check sockaddr_storage.
28521
28522 2009-05-08  Bruno Haible  <bruno@clisp.org>
28523
28524         New module 'alignof'.
28525         * lib/alignof.h: New file.
28526         * modules/alignof: New file.
28527
28528 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28529             Bruno Haible  <bruno@clisp.org>
28530
28531         Fix test-file-has-acl on FreeBSD.
28532         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
28533         mask is implicitly added.
28534         * tests/test-file-has-acl.c: Include <signal.h>.
28535         (main): Terminate the test after 5 seconds.
28536         * modules/acl-tests (configure.ac): Check for alarm function.
28537
28538 2009-05-04  Bruno Haible  <bruno@clisp.org>
28539
28540         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
28541         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
28542         * modules/errno (configure.ac): Drop AC_REQUIRE.
28543         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
28544         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
28545
28546 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28547
28548         * modules/glob-tests: New module.
28549         * tests/test-glob.c: Add.
28550
28551 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28552
28553         * modules/fnmatch-tests: New module.
28554         * tests/test-fnmatch.c: Add.
28555
28556 2009-05-04  Eric Blake  <ebb9@byu.net>
28557
28558         maint: make the new no-submodule-changes rule VPATH-safe
28559         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
28560
28561 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28562             Bruno Haible  <bruno@clisp.org>
28563
28564         acl: Fix infinite loop on FreeBSD.
28565         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
28566         of return value from acl_get_entry.
28567         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
28568         Likewise.
28569
28570 2009-05-03  Bruno Haible  <bruno@clisp.org>
28571
28572         * lib/acl-internal.h (acl_entries): Clarify return value.
28573         * lib/acl_entries.c (acl_entries): Likewise.
28574
28575 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28576
28577         Bug fix in acl module.
28578         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
28579
28580 2009-05-03  Bruno Haible  <bruno@clisp.org>
28581
28582         Create gperf-generated file in the source dir, not in the build dir.
28583         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
28584         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
28585         * modules/unicase/locale-language (unicase/locale-languages.h):
28586         Likewise.
28587         * modules/unicase/special-casing (unicase/special-casing-table.h):
28588         Likewise.
28589         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
28590         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
28591         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
28592         Reported by Ralf Wildenhues.
28593
28594 2009-05-03  Bruno Haible  <bruno@clisp.org>
28595
28596         * modules/fnmatch (Description, configure.ac): Taken from
28597         fnmatch-posix.
28598         * modules/fnmatch-posix: Turn into a symbolic reference to the
28599         'fnmatch' module, and deprecate.
28600         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
28601
28602 2009-05-03  Bruno Haible  <bruno@clisp.org>
28603
28604         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
28605         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
28606         Reported by Ralf Wildenhues.
28607
28608 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28609
28610         * m4/fnmatch.m4: Fix fnmatch re-define.
28611
28612 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28613
28614         priv-set: new module and tests; adapt write-any-file
28615         * lib/priv-set.c: New file.
28616         * lib/priv-set.h: New file.
28617         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
28618         * lib/write-any-file.c: Simplify by using priv-set module.
28619         * m4/priv-set.m4: New file.
28620         * modules/priv-set: New file.
28621         * modules/unlinkdir: Add dependency on priv-set module.
28622         * modules/write-any-file: Likewise.
28623
28624         Tests for module 'priv-set'.
28625         * modules/priv-set-tests: New file.
28626         * tests/test-priv-set.c: New file.
28627
28628 2009-05-03  Jim Meyering  <meyering@redhat.com>
28629             Bruno Haible  <bruno@clisp.org>
28630
28631         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
28632         use the converted UTF-8 variant of the name instead.
28633
28634 2009-05-03  Jim Meyering  <meyering@redhat.com>
28635
28636         tests: tighten some getdate tests
28637         * tests/test-getdate.c (main): Tighten tests: require equality,
28638         not just greater than.  Set TZ envvar to UTC0.
28639
28640 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28641
28642         getdate: correctly interpret "next monday" when run on a Monday
28643         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
28644         that e.g., "next tues" (when run on a tuesday) results in a date
28645         that is one week in the future, and not today's date.
28646         I.e., add a week when the wday is the same as the current one.
28647         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
28648         and earlier by Martin Bernreuther and Jan Minář.
28649         * tests/test-getdate.c (main): Check that "next DAY" is always in
28650         the future and that "last DAY" is always in the past.
28651
28652 2009-05-02  Jim Meyering  <meyering@redhat.com>
28653
28654         build: ensure that a release build fails when a submodule is unclean
28655         * top/maint.mk (no-submodule-changes): New rule.
28656         (alpha beta major): Depend on it.
28657
28658 2009-05-02  Bruno Haible  <bruno@clisp.org>
28659
28660         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
28661         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
28662         shell variable gl_fnmatch_required to detect which variant is
28663         requested.
28664         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
28665         gl_FUNC_FNMATCH_POSIX.
28666         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
28667         exclude fnmatch-posix.
28668
28669 2009-05-02  Bruno Haible  <bruno@clisp.org>
28670
28671         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
28672         * modules/mbsrtowcs (License): Change to LGPLv2+.
28673         * modules/strnlen1 (License): Likewise.
28674         Reported by Simon Josefsson.
28675
28676 2009-05-02  Bruno Haible  <bruno@clisp.org>
28677
28678         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
28679         "cross".
28680         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
28681         gnulib-tool was called with option --source-base=lib.
28682
28683 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28684
28685         Use automake *-local hooks without commands, for extensibility.
28686         * modules/localcharset (Makefile.am): Rename install-exec-local
28687         rule to install-exec-localcharset, and make it a prerequisite of
28688         install-exec-local.  Likewise, rename the uninstall-local rule to
28689         uninstall-localcharset, and make it a prerequisite of the former.
28690
28691 2009-05-01  Bruno Haible  <bruno@clisp.org>
28692
28693         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
28694         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28695         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
28696         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
28697         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
28698         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28699         m4/locale-zh.m4, m4/codeset.m4.
28700
28701         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28702         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
28703         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28704         m4/locale-zh.m4.
28705
28706         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
28707         REPLACE_WCRTOMB if mbstate_t must be replaced.
28708         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
28709         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
28710
28711 2009-05-01  Bruno Haible  <bruno@clisp.org>
28712
28713         Avoid compiler warnings when redefining macros defined by <libintl.h>.
28714         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
28715         dngettext, dcngettext, textdomain, bindtextdomain,
28716         bind_textdomain_codeset): Undefine before redefining.
28717
28718 2009-04-30  Bruno Haible  <bruno@clisp.org>
28719
28720         Fix bug introduced on 2009-04-25.
28721         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
28722         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
28723         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
28724         is defined.
28725         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
28726         is defined.
28727         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
28728         is defined.
28729         Reported by Elbert_Pol <elbert.pol@gmail.com>.
28730
28731 2009-04-28  Bruno Haible  <bruno@clisp.org>
28732
28733         Comment tweaks.
28734         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
28735         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
28736         * lib/unicase.h (u*_casexfrm): Likewise.
28737         Reported by Paolo Bonzini.
28738
28739 2009-04-28  Bruno Haible  <bruno@clisp.org>
28740
28741         Fix a compilation error.
28742         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
28743         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28744         Reported by Jim Meyering.
28745
28746 2009-04-27  Bruno Haible  <bruno@clisp.org>
28747
28748         New module 'libunistring'.
28749         * modules/libunistring: New file.
28750         * m4/libunistring.m4: New file.
28751         * MODULES.html.sh (Unicode string functions): Add it.
28752
28753 2009-04-27  Eric Blake  <ebb9@byu.net>
28754
28755         maint.mk: allow package-specific header to provide <config.h>
28756         * top/maint.mk (sc_require_config_h): New variable.
28757         (sc_require_config_h, sc_require_config_h_first): Use it.
28758
28759 2009-04-27  Simon Josefsson  <simon@josefsson.org>
28760
28761         * top/maint.mk (sc_avoid_if_before_free): Except
28762         useless-if-before-free script.
28763
28764 2009-04-27  Eric Blake  <ebb9@byu.net>
28765
28766         maintainer-makefile: depend on all required helper scripts
28767         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
28768         useless-if-before-free.
28769         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
28770         version, rather than assuming gnulib checkout is available.
28771         Reported by Simen Josefsson.
28772
28773 2009-04-26  Bruno Haible  <bruno@clisp.org>
28774
28775         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
28776         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
28777         "../" or "..".
28778
28779 2009-04-26  Bruno Haible  <bruno@clisp.org>
28780
28781         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
28782         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
28783         AC_LIB_HAVE_LINKFLAGS.
28784
28785 2009-04-26  Bruno Haible  <bruno@clisp.org>
28786
28787         Simplify calling convention of u*_conv_from_encoding.
28788         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
28789         u32_conv_from_encoding): Expect a resultbuf argument and return the
28790         result directly as a pointer.
28791         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
28792         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
28793         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
28794         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
28795         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
28796         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28797         Update.
28798         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
28799         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
28800         * lib/vasnprintf.c (VASNPRINTF): Update.
28801         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
28802         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
28803         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
28804         * NEWS: Mention the change.
28805
28806 2009-04-26  Bruno Haible  <bruno@clisp.org>
28807
28808         Simplify calling convention of u*_conv_to_encoding.
28809         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
28810         u32_conv_to_encoding): Expect a resultbuf argument and return the
28811         result directly as a pointer.
28812         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28813         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
28814         freeing scaled_offsets if mem_iconveha failed.
28815         * lib/unicase/u-casexfrm.h (FUNC): Update.
28816         * lib/uninorm/u-normxfrm.h (FUNC): Update.
28817         * lib/vasnprintf.c (VASNPRINTF): Update.
28818         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
28819         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
28820         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
28821         * NEWS: Mention the change.
28822
28823 2009-04-26  Bruno Haible  <bruno@clisp.org>
28824
28825         Avoid test failures on AIX and OSF/1.
28826         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
28827         malloc(0).
28828         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28829         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28830         Likewise.
28831         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
28832         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
28833         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
28834         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
28835         * doc/posix-functions/malloc.texi: Document the portability problem
28836         related to malloc(0).
28837
28838 2009-04-26  Bruno Haible  <bruno@clisp.org>
28839
28840         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
28841         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
28842         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
28843
28844 2009-04-25  Bruno Haible  <bruno@clisp.org>
28845
28846         Avoid link error when creating a namespace clean library.
28847         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
28848         as macro with arguments if already defined as an alias.
28849         * lib/signbitf.c (gl_signbitf): Don't undefine.
28850         * lib/signbitd.c (gl_signbitd): Don't undefine.
28851         * lib/signbitl.c (gl_signbitl): Don't undefine.
28852
28853 2009-04-25  Jim Meyering  <meyering@redhat.com>
28854
28855         vc-list-files: fix another quoting bug
28856         * build-aux/vc-list-files: Avoid sed backslash expansion
28857         of pathological directory names.
28858
28859 2009-04-25  Eric Blake  <ebb9@byu.net>
28860
28861         vc-list-files: fix shell quoting error
28862         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
28863         timestamp.
28864
28865 2009-04-25  Jim Meyering  <meyering@redhat.com>
28866
28867         vc-list-files: restore lost functionality with subdir argument
28868         * build-aux/vc-list-files: When given a non-"." sub-directory
28869         argument, substitute the $dir/ prefix back onto each resulting name.
28870         Otherwise, coreutils' root_tests check would fail.
28871
28872 2009-04-24  Eric Blake  <ebb9@byu.net>
28873
28874         vc-list-files: ignore git symlinks
28875         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
28876         than ls-files, to ignore git symlinks.
28877
28878         maint.mk: import improvements from m4
28879         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
28880         (move_if_change): Delete unused macro.
28881         (news-date-check, vc-diff-check): Support VPATH builds.
28882         (announcement): Likewise.  Split --bootstrap-tools list...
28883         (boostrap-tools): ...into separate list, which can be overridden
28884         in cfg.mk.
28885         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
28886         requiring dependency on useless-if-before-free module.
28887         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
28888         Support VPATH builds.
28889
28890 2009-04-24  Jim Meyering  <meyering@redhat.com>
28891
28892         maint.mk: remove coreutils-specific rules and variables
28893         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
28894         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
28895         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
28896
28897         maint.mk: remove obsolete rule
28898         * top/maint.mk (rel-check): Remove rule.
28899         (WGET, WGETFLAGS): Remove now-unused variables.
28900
28901 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28902
28903         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28904         consistency.
28905
28906         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
28907         '$(PATH_SEPARATOR)' instead of ':'.
28908
28909 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28910
28911         * lib/getopt1.c (main): Use 'const' for static array.
28912
28913 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28914
28915         * top/maint.mk: Sync with coreutils.
28916         * NEWS: Explain incompatibilities.
28917
28918 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28919             Bruno Haible  <bruno@clisp.org>
28920
28921         Fix cross-compilation results.
28922         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
28923         statement, as third argument of AC_TRY_RUN.
28924         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28925         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28926         Likewise.
28927         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28928         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28929         Likewise.
28930         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28931         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
28932         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
28933
28934 2009-04-20  Bruno Haible  <bruno@clisp.org>
28935
28936         Avoid test failure on mingw.
28937         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
28938
28939 2009-04-20  Bruno Haible  <bruno@clisp.org>
28940
28941         Avoid compilation error on mingw.
28942         * modules/localename-tests (Depends-on): Add locale.
28943
28944 2009-04-19  Bruno Haible  <bruno@clisp.org>
28945
28946         Support for building a shared library on Windows platforms.
28947         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
28948         (main): Test the presence of UNINORM_NFC here.
28949         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
28950         (main): Test the presence of UNINORM_NFD here.
28951         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
28952         (main): Test the presence of UNINORM_NFKC here.
28953         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
28954         (main): Test the presence of UNINORM_NFKD here.
28955
28956 2009-04-19  Bruno Haible  <bruno@clisp.org>
28957
28958         Avoid a compiler warning.
28959         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
28960         Change type of variable 'sequence'.
28961
28962 2009-04-19  Bruno Haible  <bruno@clisp.org>
28963
28964         * modules/configmake (Makefile.am): When the contents of configmake.h
28965         does not change, arrange to preserve its modification time.
28966
28967 2009-04-17  Simon Josefsson  <simon@josefsson.org>
28968
28969         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
28970         gettext domain.
28971
28972 2009-04-16  Jim Meyering  <meyering@redhat.com>
28973
28974         useless-if-before-free: improve conversion code
28975         * build-aux/useless-if-before-free: Adjust code-in-comment to match
28976         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
28977
28978 2009-04-14  Bruno Haible  <bruno@clisp.org>
28979
28980         * modules/fcntl (Depends-on): Add extensions.
28981         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
28982
28983 2009-04-12  Ben Pfaff  <blp@gnu.org>
28984
28985         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
28986         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
28987
28988 2009-03-20  Ben Pfaff  <blp@gnu.org>
28989
28990         Make rename replace existing destinations on Windows.
28991         * m4/rename.m4: Add test for Mingw.
28992         * lib/rename.c: Add rename replacement that uses MoveFileEx with
28993         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
28994         * doc/posix-functions/rename.texi: Document.
28995
28996 2009-04-10  Bruno Haible  <bruno@clisp.org>
28997
28998         New include file "iconveh.h".
28999         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
29000         * lib/striconveh.h: Include it.
29001         (enum iconv_ilseq_handler): Remove definition.
29002         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
29003         striconveh.h.
29004         * lib/striconveha.c: Include striconveh.h.
29005         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
29006         * modules/striconveh (Files): Add lib/iconveh.h.
29007         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
29008         lib/striconveh.h.
29009
29010 2009-04-10  Bruno Haible  <bruno@clisp.org>
29011
29012         * lib/uniconv.h: Update comment.
29013
29014 2009-04-10  Bruno Haible  <bruno@clisp.org>
29015
29016         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
29017         always.
29018         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29019         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29020         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29021         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
29022         "unistring-notinline.h", so that the function gets defined always.
29023         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29024         * lib/unistr/u8-uctomb.c: Likewise.
29025         * lib/unistr/u16-mbtouc.c: Likewise.
29026         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29027         * lib/unistr/u16-uctomb.c: Likewise.
29028         * lib/unistr/u32-mbtouc.c: Likewise.
29029         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29030         * lib/unistr/u32-uctomb.c: Likewise.
29031
29032 2009-04-10  Bruno Haible  <bruno@clisp.org>
29033
29034         Mark 'utime' obsolete.
29035         * modules/utime (Status, Notice): New sections.
29036         Suggested by Jim Meyering.
29037
29038         Fix cross-compile guess for utime test.
29039         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
29040         autoconf.
29041         * doc/posix-functions/utime.texi: Give more precisions.
29042         Reported by Jan <ipif@ymail.com>.
29043
29044 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
29045
29046         filevercmp: correct today's change
29047         * lib/filevercmp.c: Also handle coreutils' test inputs.
29048         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
29049
29050         Fix regression in 'filevercmp' module. Thanks Sven Joachim
29051         for reporting it.
29052         * lib/filevercmp.c: Special handle for "", "." and "..".
29053         * tests/test-filevercmp.c: Enlarge the set suite.
29054
29055 2009-04-07  Jim Meyering  <meyering@redhat.com>
29056
29057         useless-if-before-free: show how to remove braced useless free, too
29058         * build-aux/useless-if-before-free: still only in a comment, though.
29059
29060 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
29061
29062         maint.mk: import changes to syntax-check macros from coreutils
29063         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
29064         Use them in the relevant macros.
29065
29066 2009-04-06  Bruno Haible  <bruno@clisp.org>
29067
29068         Fix unportable use of bit-fields.
29069         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
29070         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
29071         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
29072
29073 2009-04-06  Bruno Haible  <bruno@clisp.org>
29074
29075         Avoid test failures on AIX and OSF/1.
29076         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
29077         that malloc(0) = NULL.
29078         * tests/unicase/test-u8-tolower.c (check): Likewise.
29079         * tests/unicase/test-u8-totitle.c (check): Likewise.
29080         * tests/unicase/test-u8-toupper.c (check): Likewise.
29081         * tests/unicase/test-u16-casefold.c (check): Likewise.
29082         * tests/unicase/test-u16-tolower.c (check): Likewise.
29083         * tests/unicase/test-u16-totitle.c (check): Likewise.
29084         * tests/unicase/test-u16-toupper.c (check): Likewise.
29085         * tests/unicase/test-u32-casefold.c (check): Likewise.
29086         * tests/unicase/test-u32-tolower.c (check): Likewise.
29087         * tests/unicase/test-u32-totitle.c (check): Likewise.
29088         * tests/unicase/test-u32-toupper.c (check): Likewise.
29089         * tests/uninorm/test-u8-nfc.c (check): Likewise.
29090         * tests/uninorm/test-u8-nfd.c (check): Likewise.
29091         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
29092         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
29093         * tests/uninorm/test-u16-nfc.c (check): Likewise.
29094         * tests/uninorm/test-u16-nfd.c (check): Likewise.
29095         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
29096         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
29097         * tests/uninorm/test-u32-nfc.c (check): Likewise.
29098         * tests/uninorm/test-u32-nfd.c (check): Likewise.
29099         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
29100         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
29101
29102 2009-04-05  Bruno Haible  <bruno@clisp.org>
29103
29104         Work around an autoconf limitation.
29105         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
29106         comment line if it would be longer than 3 KB.
29107
29108 2009-04-05  Bruno Haible  <bruno@clisp.org>
29109
29110         Avoid test failure with libiconv-1.13.
29111         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
29112         of the expected test results.
29113
29114 2009-04-05  Bruno Haible  <bruno@clisp.org>
29115
29116         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
29117         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
29118         that it should be installed.
29119
29120 2009-04-05  Bruno Haible  <bruno@clisp.org>
29121
29122         * gnulib-tool: New option --copy-file.
29123         (func_usage): Document it.
29124         (func_dest_tmpfilename): Moved out of func_import.
29125         (func_add_file, func_update_file): New functions, extracted from
29126         func_import.
29127         (func_import): Update.
29128
29129 2009-04-05  Karl Berry  <karl@gnu.org>
29130
29131         * README: prominently mention gnulib-tool.
29132         Rearrange sections so getting the code is near the top.
29133
29134 2009-04-05  Bruno Haible  <bruno@clisp.org>
29135
29136         * lib/unicase.h: Mention u*_cmp2.
29137         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29138         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
29139         * lib/unicase/ulc-casecmp.c: Likewise.
29140         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
29141         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
29142         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
29143         unistr/u8-cmp.
29144         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
29145         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
29146         unistr/u16-cmp.
29147         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
29148         unistr/u32-cmp.
29149
29150         * lib/uninorm.h: Mention u*_cmp2.
29151         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29152         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
29153         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
29154         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
29155         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
29156         unistr/u8-cmp.
29157         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
29158         unistr/u16-cmp.
29159         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
29160         unistr/u32-cmp.
29161
29162         New module 'unistr/u32-cmp2'.
29163         * lib/unistr/u32-cmp2.c: New file.
29164         * modules/unistr/u32-cmp2: New file.
29165
29166         New module 'unistr/u16-cmp2'.
29167         * lib/unistr/u16-cmp2.c: New file.
29168         * modules/unistr/u16-cmp2: New file.
29169
29170         New module 'unistr/u8-cmp2'.
29171         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
29172         * lib/unistr/u8-cmp2.c: New file.
29173         * lib/unistr/u-cmp2.h: New file.
29174         * modules/unistr/u8-cmp2: New file.
29175
29176 2009-04-05  Bruno Haible  <bruno@clisp.org>
29177
29178         * lib/unictype.h (uc_property_is_valid): New macro.
29179         * tests/unictype/test-pr_byname.c (main): Use it.
29180
29181         * lib/unistr.h: Doc fixes.
29182         * lib/uniconv.h: Doc fixes.
29183         * lib/unictype.h: Doc fixes.
29184
29185 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29186
29187         Port coreutils 7.2 to Solaris 8.
29188
29189         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
29190         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
29191         for Solaris 8.  This is a bit of a hack, as it means it's the
29192         caller's responsibility to add -lnsl if needed, but most likely it
29193         won't be needed since only getaddrinfo uses this and getaddrinfo
29194         isn't needed on Solaris 8.
29195
29196         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
29197         problem to Solaris 8 encountered with coreutils 7.2, which
29198         resulted in a message "fnmatch.c:292: warning: passing argument 4
29199         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
29200         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
29201
29202 2009-04-03  Simon Josefsson  <simon@josefsson.org>
29203
29204         * m4/ld-version-script.m4: Add FIXME comment.
29205
29206 2009-04-02  Simon Josefsson  <simon@josefsson.org>
29207
29208         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
29209         SOVERSION variable.
29210
29211 2009-04-02  Bruno Haible  <bruno@clisp.org>
29212
29213         * Makefile (info, html, dvi, pdf): Combine the rules.
29214         Suggested by Jim Meyering.
29215
29216 2009-04-01  Bruno Haible  <bruno@clisp.org>
29217
29218         * Makefile (info, html, dvi, pdf): New targets.
29219         Reported by Reuben Thomas <rrt@sc3d.org>.
29220
29221 2009-04-01  Bruno Haible  <bruno@clisp.org>
29222
29223         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
29224         can be put into PATH.
29225         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
29226
29227 2009-04-01  Bruno Haible  <bruno@clisp.org>
29228
29229         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
29230
29231 2009-04-01  Bruno Haible  <bruno@clisp.org>
29232
29233         Rename module 'visibility'.
29234         * modules/lib-symbol-visibility: Renamed from modules/visibility.
29235         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
29236         * doc/gnulib.texi: Update.
29237         * MODULES.html.sh (Misc): Update.
29238         * NEWS: Mention the change.
29239
29240 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29241
29242         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
29243         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
29244         Eric Blake <ebb9@byu.net> for review.
29245         * MODULES.html.sh: Add lib-msvc-compat.
29246         * doc/gnulib.texi: Link to new section.
29247         * m4/ld-output-def.m4: New file.
29248         * doc/ld-output-def.texi: New file.
29249
29250 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29251
29252         Rename ld-version-script to lib-symbol-versions.  Suggested by
29253         Bruno Haible <bruno@clisp.org>.
29254         * modules/ld-version-script: Renamed to lib-symbol-versions.
29255         * doc/ld-version-script.texi: Fix module name.
29256         * MODULES.html.sh: Add lib-symbol-versions.
29257
29258 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29259
29260         * modules/u64-tests: New file.
29261         * tests/test-u64.c: New file.
29262
29263 2009-03-04  Simon Josefsson  <simon@josefsson.org>
29264
29265         * MODULES.html.sh: Mention u64.
29266         * modules/u64: New module.
29267         * modules/crypto/sha512: Depend on u64 module instead of providing
29268         u64.h.
29269
29270 2009-03-27  Eric Blake  <ebb9@byu.net>
29271
29272         test-strerror: make debugging EAI_SYSTEM easier
29273         * modules/getaddrinfo-tests (Depends-on): Add strerror.
29274         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
29275         failure was EAI_SYSTEM.
29276
29277 2009-03-25  Bruno Haible  <bruno@clisp.org>
29278
29279         Fix a problem with --enable-relocatable on Solaris 7.
29280         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
29281         since 2008-02-24.
29282
29283 2009-03-25  Eric Blake  <ebb9@byu.net>
29284
29285         test-sockets: avoid gcc warning
29286         * tests/test-sockets.c (main): Silence compiler warning.
29287
29288 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29289
29290         New modules nproc, pthread, contributed by Glen Lenker.
29291
29292         * MODULES.html.sh: Add pthread, nproc.
29293         * lib/nproc.c: New file.
29294         * lib/nproc.h: New file.
29295         * lib/pthread.in.h: New file.
29296         * m4/pthread.m4: New file.
29297         * modules/nproc: New file.
29298         * modules/pthread: New file.
29299
29300 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29301
29302         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
29303         New variable.
29304
29305 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
29306
29307         filevercmp: handle simple~ and numbered.~3~ backup suffixes
29308         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
29309         * tests/test-filevercmp.c: Add tests for backup suffixes.
29310
29311 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29312
29313         * modules/stdlib (Depends-on): Add stdint, needed when defining
29314         struct random_data on, for example, HP-UX 10.20.  Reported by
29315         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29316
29317 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29318
29319         * lib/readline.c (readline): Call fflush on stdout after printing
29320         prompt.
29321
29322 2009-03-20  Bruno Haible  <bruno@clisp.org>
29323
29324         Remove dependency from 'close' module to -lws2_32 on native Windows.
29325         * lib/close-hook.h: New file.
29326         * lib/close-hook.c: New file.
29327         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
29328         w32sock.h.
29329         (_gl_close_fd_maybe_socket): Remove function.
29330         (rpl_close): Invoke execute_all_close_hooks instead of
29331         _gl_close_fd_maybe_socket.
29332         * lib/sockets.c: Include close-hook.h, w32sock.h.
29333         (close_fd_maybe_socket): New function, essentially from lib/close.c.
29334         (close_sockets_hook): New variable.
29335         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
29336         (gl_sockets_cleanup): Unregister it.
29337         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
29338         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
29339         * modules/close-hook: New file.
29340         * modules/close (Files): Remove lib/w32sock.h.
29341         (Depends-on): Add close-hook.
29342         (Link): Remove section.
29343         * modules/sockets (Files): Add lib/w32sock.h.
29344         (Depends-on): Add close-hook.
29345         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
29346         invocation.
29347         * NEWS: Mention that LIB_CLOSE is gone.
29348
29349 2009-03-23  Eric Blake  <ebb9@byu.net>
29350
29351         signal-tests: test previous patch
29352         * tests/test-signal.c: New file.
29353         * modules/signal-tests: Likewise.
29354
29355         signal.h: always support 'volatile sig_atomic_t'
29356         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
29357         (gl_SIGNAL_H_DEFAULTS): Add a default.
29358         * modules/signal (Makefile.am): Substitute if needed.
29359         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
29360         users can blindly add volatile.
29361         * doc/posix-headers/signal.texi (signal.h): Document it.
29362         Reported by Matthew Woehlke.
29363
29364 2009-03-23  Jim Meyering  <meyering@redhat.com>
29365
29366         pathmax: PATH_MAX: use pathconf only when available
29367         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
29368         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
29369         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
29370         This avoids a link failure in a PSP cross-compilation environment
29371         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
29372
29373         * lib/vasnprintf.c (divide): Fix typo in comment.
29374
29375 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29376
29377         * gnulib-tool (func_filter_filelist): Fix comment.
29378
29379 2009-03-20  Bruno Haible  <bruno@clisp.org>
29380
29381         Make sockets.h self-contained.
29382         * lib/sockets.c: Include sockets.h first.
29383         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
29384
29385 2009-03-19  Eric Blake  <ebb9@byu.net>
29386
29387         doc: mention more functions added in cygwin 1.7.0
29388         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
29389         addition.
29390         * doc/posix-functions/log2f.texi: Likewise.
29391
29392 2009-03-19  Jim Meyering  <meyering@redhat.com>
29393
29394         fsusage: avoid syntax error due to statement-before-declaration
29395         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
29396         after all declarations.  Reported by Matthew Woehlke in
29397         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
29398
29399 2009-03-18  Eric Blake  <ebb9@byu.net>
29400
29401         build-aux/compile: sync from automake
29402         * build-aux/compile: New file, from automake.
29403         * config/srclist.txt: Mention build-aux/compile.
29404
29405 2009-03-17  Bruno Haible  <bruno@clisp.org>
29406
29407         * lib/git-merge-changelog.c: Fix typo in comment.
29408         Reported by Reuben Thomas <rrt@sc3d.org>.
29409
29410 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
29411
29412         * m4/regex.m4: update and improve help for
29413         --without-included-regex.
29414
29415 2009-03-17  Simon Josefsson  <simon@josefsson.org>
29416
29417         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
29418         failure on missing include files.
29419
29420 2009-03-17  Eric Blake  <ebb9@byu.net>
29421
29422         doc: mention more functions added in cygwin 1.7.0
29423         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
29424         addition.
29425         * doc/posix-functions/fwscanf.texi: Likewise.
29426         * doc/posix-functions/swprintf.texi: Likewise.
29427         * doc/posix-functions/swscanf.texi: Likewise.
29428         * doc/posix-functions/vfwprintf.texi: Likewise.
29429         * doc/posix-functions/vfwscanf.texi: Likewise.
29430         * doc/posix-functions/vswprintf.texi: Likewise.
29431         * doc/posix-functions/vswscanf.texi: Likewise.
29432         * doc/posix-functions/vwprintf.texi: Likewise.
29433         * doc/posix-functions/vwscanf.texi: Likewise.
29434         * doc/posix-functions/wcscasecmp.texi: Likewise.
29435         * doc/posix-functions/wcsdup.texi: Likewise.
29436         * doc/posix-functions/wcsftime.texi: Likewise.
29437         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29438         * doc/posix-functions/wprintf.texi: Likewise.
29439         * doc/posix-functions/wscanf.texi: Likewise.
29440         * doc/glibc-functions/gethostbyname2.texi: Likewise.
29441
29442 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29443
29444         maint.mk: really add $(AM_MAKEFLAGS)
29445         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
29446         was inadvertently omitted in the last commit.
29447         Spotted by Bruno Haible.
29448
29449         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
29450         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
29451         $(AM_MAKEFLAGS)' rather than plain `make'.
29452
29453         gnulib-tool: execute $MAKE not make
29454         * gnulib-tool: Default $MAKE to 'make'.
29455         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
29456         than make.  Initialize $MAKE in the do-autobuild script.
29457
29458         gnulib-tool: use $MAKE not make in generated files
29459         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
29460         make, in generated files.  Initialize $MAKE in the do-autobuild
29461         script.
29462
29463         * top/GNUmakefile (_have-git-version-gen): Fix typo.
29464
29465         GNUmakefile: disable parallelism only for multiple, recursive targets
29466         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
29467         additions in the Makefile.
29468         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
29469         by Automake.
29470         (.NOTPARALLEL): Only disable parallel builds if multiple targets
29471         are listed on the command line and at least one of them is
29472         listed in $(ALL_RECURSIVE_TARGETS).
29473
29474 2009-03-14  Bruno Haible  <bruno@clisp.org>
29475
29476         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
29477         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
29478         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
29479         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
29480         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
29481         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
29482         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
29483         unistr/u8-uctomb.
29484         * modules/unistr/u8-strchr (Depends-on): Likewise.
29485         * modules/unistr/u8-strrchr (Depends-on): Likewise.
29486         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
29487         unistr/u16-uctomb.
29488         * modules/unistr/u16-strchr (Depends-on): Likewise.
29489         * modules/unistr/u16-strrchr (Depends-on): Likewise.
29490
29491 2009-03-12  Bruno Haible  <bruno@clisp.org>
29492
29493         Work around select() bug on Interix 3.5.
29494         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
29495         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
29496         * m4/select.m4: New file.
29497         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
29498         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
29499         * modules/select (Files): Add m4/select.m4.
29500         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
29501         * modules/nanosleep (Depends-on): Add select.
29502         * modules/poll (Depends-on): Likewise.
29503         * doc/posix-functions/select.texi: Mention the Interix bug.
29504         Reported by Markus Duft <mduft@gentoo.org>.
29505
29506         * lib/select.c: Renamed from lib/winsock-select.c.
29507         * modules/select (Files): Add lib/select.c, remove
29508         lib/winsock-select.c.
29509         (configure.ac): Update.
29510
29511 2009-03-12  Jim Meyering  <meyering@redhat.com>
29512
29513         avoid gcc warnings about unused macro definitions
29514         * lib/readtokens.c (STREQ): Remove unused definition.
29515         * lib/xmalloc.c (SIZE_MAX): Likewise.
29516         * lib/openat-die.c (N_): Likewise.
29517         * lib/mountlist.c (SIZE_MAX): Remove definition.
29518         Instead, include <stdint.h>.
29519         * lib/readutmp.c: Likewise.
29520         * modules/readutmp (Depends-on): Add stdint.
29521         * modules/mountlist (Depends-on): Add stdint.
29522         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
29523
29524 2009-03-10  Bruno Haible  <bruno@clisp.org>
29525
29526         Tests for module 'mbmemcasecoll'.
29527         * modules/mbmemcasecoll-tests: New file.
29528         * tests/test-mbmemcasecoll1.sh: New file.
29529         * tests/test-mbmemcasecoll2.sh: New file.
29530         * tests/test-mbmemcasecoll3.sh: New file.
29531         * tests/test-mbmemcasecoll.c: New file.
29532
29533         New module 'mbmemcasecoll'.
29534         * lib/mbmemcasecoll.h: New file.
29535         * lib/mbmemcasecoll.c: New file.
29536         * modules/mbmemcasecoll: New file.
29537
29538         * tests/test-mbmemcasecmp.h: New file, extracted from
29539         tests/test-mbmemcasecmp.c.
29540         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
29541         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
29542         (main): Update.
29543         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
29544
29545 2009-03-09  Bruno Haible  <bruno@clisp.org>
29546
29547         Tests for module 'mbmemcasecmp'.
29548         * modules/mbmemcasecmp-tests: New file.
29549         * tests/test-mbmemcasecmp1.sh: New file.
29550         * tests/test-mbmemcasecmp2.sh: New file.
29551         * tests/test-mbmemcasecmp3.sh: New file.
29552         * tests/test-mbmemcasecmp.c: New file.
29553
29554         New module 'mbmemcasecmp'.
29555         * lib/mbmemcasecmp.h: New file.
29556         * lib/mbmemcasecmp.c: New file.
29557         * modules/mbmemcasecmp: New file.
29558
29559 2009-03-09  Bruno Haible  <bruno@clisp.org>
29560
29561         Tests for module 'unicase/ulc-casecoll'.
29562         * modules/unicase/ulc-casecoll-tests: New file.
29563         * tests/unicase/test-ulc-casecoll1.sh: New file.
29564         * tests/unicase/test-ulc-casecoll2.sh: New file.
29565         * tests/unicase/test-ulc-casecoll.c: New file.
29566
29567         New module 'unicase/ulc-casecoll'.
29568         * lib/unicase.h (ulc_casecoll): New declaration.
29569         * lib/unicase/ulc-casecoll.c: New file.
29570         * modules/unicase/ulc-casecoll: New file.
29571
29572         New module 'unicase/ulc-casexfrm'.
29573         * lib/unicase.h (ulc_casexfrm): New declaration.
29574         * lib/unicase/ulc-casexfrm.c: New file.
29575         * modules/unicase/ulc-casexfrm: New file.
29576
29577 2009-03-09  Bruno Haible  <bruno@clisp.org>
29578
29579         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
29580         invocations.
29581
29582         * m4/mbscasecmp.m4: Remove file.
29583         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
29584         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
29585
29586         * m4/mbscasestr.m4: Remove file.
29587         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
29588         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
29589
29590         * m4/mbschr.m4: Remove file.
29591         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
29592         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
29593
29594         * m4/mbscspn.m4: Remove file.
29595         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
29596         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
29597
29598         * m4/mbslen.m4: Remove file.
29599         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
29600         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
29601
29602         * m4/mbsncasecmp.m4: Remove file.
29603         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
29604         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
29605
29606         * m4/mbsnlen.m4: Remove file.
29607         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
29608         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
29609
29610         * m4/mbspbrk.m4: Remove file.
29611         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
29612         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
29613
29614         * m4/mbspcasecmp.m4: Remove file.
29615         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
29616         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
29617
29618         * m4/mbsrchr.m4: Remove file.
29619         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
29620         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
29621
29622         * m4/mbssep.m4: Remove file.
29623         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
29624         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
29625
29626         * m4/mbsspn.m4: Remove file.
29627         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
29628         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
29629
29630         * m4/mbsstr.m4: Remove file.
29631         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
29632         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
29633
29634         * m4/mbstok_r.m4: Remove file.
29635         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
29636         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
29637
29638         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
29639
29640         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
29641         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
29642
29643         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
29644
29645 2009-03-08  Bruno Haible  <bruno@clisp.org>
29646
29647         Tests for module 'unicase/ulc-casecmp'.
29648         * modules/unicase/ulc-casecmp-tests: New file.
29649         * tests/unicase/test-ulc-casecmp1.sh: New file.
29650         * tests/unicase/test-ulc-casecmp2.sh: New file.
29651         * tests/unicase/test-ulc-casecmp.c: New file.
29652
29653         New module 'unicase/ulc-casecmp'.
29654         * lib/unicase.h (ulc_casecmp): New declaration.
29655         * lib/unicase/ulc-casecmp.c: New file.
29656         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
29657         'const SRC_UNIT *'.
29658         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
29659         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
29660         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
29661         * modules/unicase/ulc-casecmp: New file.
29662
29663         Tests for module 'unicase/u32-is-cased'.
29664         * modules/unicase/u32-is-cased-tests: New file.
29665         * tests/unicase/test-u32-is-cased.c: New file.
29666
29667         Tests for module 'unicase/u16-is-cased'.
29668         * modules/unicase/u16-is-cased-tests: New file.
29669         * tests/unicase/test-u16-is-cased.c: New file.
29670
29671         Tests for module 'unicase/u8-is-cased'.
29672         * modules/unicase/u8-is-cased-tests: New file.
29673         * tests/unicase/test-u8-is-cased.c: New file.
29674         * tests/unicase/test-is-cased.h: New file.
29675
29676         New module 'unicase/u32-is-cased'.
29677         * lib/unicase/u32-is-cased.c: New file.
29678         * modules/unicase/u32-is-cased: New file.
29679
29680         New module 'unicase/u16-is-cased'.
29681         * lib/unicase/u16-is-cased.c: New file.
29682         * modules/unicase/u16-is-cased: New file.
29683
29684         New module 'unicase/u8-is-cased'.
29685         * lib/unicase/u8-is-cased.c: New file.
29686         * lib/unicase/u-is-cased.h: New file.
29687         * modules/unicase/u8-is-cased: New file.
29688
29689         Tests for module 'unicase/u32-is-casefolded'.
29690         * modules/unicase/u32-is-casefolded-tests: New file.
29691         * tests/unicase/test-u32-is-casefolded.c: New file.
29692
29693         Tests for module 'unicase/u16-is-casefolded'.
29694         * modules/unicase/u16-is-casefolded-tests: New file.
29695         * tests/unicase/test-u16-is-casefolded.c: New file.
29696
29697         Tests for module 'unicase/u8-is-casefolded'.
29698         * modules/unicase/u8-is-casefolded-tests: New file.
29699         * tests/unicase/test-u8-is-casefolded.c: New file.
29700         * tests/unicase/test-is-casefolded.h: New file.
29701
29702         New module 'unicase/u32-is-casefolded'.
29703         * lib/unicase/u32-is-casefolded.c: New file.
29704         * modules/unicase/u32-is-casefolded: New file.
29705
29706         New module 'unicase/u16-is-casefolded'.
29707         * lib/unicase/u16-is-casefolded.c: New file.
29708         * modules/unicase/u16-is-casefolded: New file.
29709
29710         New module 'unicase/u8-is-casefolded'.
29711         * lib/unicase/u8-is-casefolded.c: New file.
29712         * modules/unicase/u8-is-casefolded: New file.
29713
29714         Tests for module 'unicase/u32-is-titlecase'.
29715         * modules/unicase/u32-is-titlecase-tests: New file.
29716         * tests/unicase/test-u32-is-titlecase.c: New file.
29717
29718         Tests for module 'unicase/u16-is-titlecase'.
29719         * modules/unicase/u16-is-titlecase-tests: New file.
29720         * tests/unicase/test-u16-is-titlecase.c: New file.
29721
29722         Tests for module 'unicase/u8-is-titlecase'.
29723         * modules/unicase/u8-is-titlecase-tests: New file.
29724         * tests/unicase/test-u8-is-titlecase.c: New file.
29725         * tests/unicase/test-is-titlecase.h: New file.
29726
29727         New module 'unicase/u32-is-titlecase'.
29728         * lib/unicase/u32-is-titlecase.c: New file.
29729         * modules/unicase/u32-is-titlecase: New file.
29730
29731         New module 'unicase/u16-is-titlecase'.
29732         * lib/unicase/u16-is-titlecase.c: New file.
29733         * modules/unicase/u16-is-titlecase: New file.
29734
29735         New module 'unicase/u8-is-titlecase'.
29736         * lib/unicase/u8-is-titlecase.c: New file.
29737         * modules/unicase/u8-is-titlecase: New file.
29738
29739         Tests for module 'unicase/u32-is-lowercase'.
29740         * modules/unicase/u32-is-lowercase-tests: New file.
29741         * tests/unicase/test-u32-is-lowercase.c: New file.
29742
29743         Tests for module 'unicase/u16-is-lowercase'.
29744         * modules/unicase/u16-is-lowercase-tests: New file.
29745         * tests/unicase/test-u16-is-lowercase.c: New file.
29746
29747         Tests for module 'unicase/u8-is-lowercase'.
29748         * modules/unicase/u8-is-lowercase-tests: New file.
29749         * tests/unicase/test-u8-is-lowercase.c: New file.
29750         * tests/unicase/test-is-lowercase.h: New file.
29751
29752         New module 'unicase/u32-is-lowercase'.
29753         * lib/unicase/u32-is-lowercase.c: New file.
29754         * modules/unicase/u32-is-lowercase: New file.
29755
29756         New module 'unicase/u16-is-lowercase'.
29757         * lib/unicase/u16-is-lowercase.c: New file.
29758         * modules/unicase/u16-is-lowercase: New file.
29759
29760         New module 'unicase/u8-is-lowercase'.
29761         * lib/unicase/u8-is-lowercase.c: New file.
29762         * modules/unicase/u8-is-lowercase: New file.
29763
29764         Tests for module 'unicase/u32-is-uppercase'.
29765         * modules/unicase/u32-is-uppercase-tests: New file.
29766         * tests/unicase/test-u32-is-uppercase.c: New file.
29767
29768         Tests for module 'unicase/u16-is-uppercase'.
29769         * modules/unicase/u16-is-uppercase-tests: New file.
29770         * tests/unicase/test-u16-is-uppercase.c: New file.
29771
29772         Tests for module 'unicase/u8-is-uppercase'.
29773         * modules/unicase/u8-is-uppercase-tests: New file.
29774         * tests/unicase/test-u8-is-uppercase.c: New file.
29775         * tests/unicase/test-is-uppercase.h: New file.
29776
29777         New module 'unicase/u32-is-uppercase'.
29778         * lib/unicase/u32-is-uppercase.c: New file.
29779         * modules/unicase/u32-is-uppercase: New file.
29780
29781         New module 'unicase/u16-is-uppercase'.
29782         * lib/unicase/u16-is-uppercase.c: New file.
29783         * modules/unicase/u16-is-uppercase: New file.
29784
29785         New module 'unicase/u8-is-uppercase'.
29786         * lib/unicase/u8-is-uppercase.c: New file.
29787         * modules/unicase/u8-is-uppercase: New file.
29788
29789         New module 'unicase/u32-is-invariant'.
29790         * lib/unicase/u32-is-invariant.c: New file.
29791         * modules/unicase/u32-is-invariant: New file.
29792
29793         New module 'unicase/u16-is-invariant'.
29794         * lib/unicase/u16-is-invariant.c: New file.
29795         * modules/unicase/u16-is-invariant: New file.
29796
29797         New module 'unicase/u8-is-invariant'.
29798         * lib/unicase/u8-is-invariant.c: New file.
29799         * lib/unicase/invariant.h: New file.
29800         * lib/unicase/u-is-invariant.h: New file.
29801         * modules/unicase/u8-is-invariant: New file.
29802
29803         Tests for module 'unicase/u32-casecoll'.
29804         * modules/unicase/u32-casecoll-tests: New file.
29805         * tests/unicase/test-u32-casecoll.c: New file.
29806
29807         Tests for module 'unicase/u16-casecoll'.
29808         * modules/unicase/u16-casecoll-tests: New file.
29809         * tests/unicase/test-u16-casecoll.c: New file.
29810
29811         Tests for module 'unicase/u8-casecoll'.
29812         * modules/unicase/u8-casecoll-tests: New file.
29813         * tests/unicase/test-u8-casecoll.c: New file.
29814
29815         New module 'unicase/u32-casecoll'.
29816         * lib/unicase/u32-casecoll.c: New file.
29817         * modules/unicase/u32-casecoll: New file.
29818
29819         New module 'unicase/u16-casecoll'.
29820         * lib/unicase/u16-casecoll.c: New file.
29821         * modules/unicase/u16-casecoll: New file.
29822
29823         New module 'unicase/u8-casecoll'.
29824         * lib/unicase/u8-casecoll.c: New file.
29825         * lib/unicase/u-casecoll.h: New file.
29826         * modules/unicase/u8-casecoll: New file.
29827
29828         New module 'unicase/u32-casexfrm'.
29829         * lib/unicase/u32-casexfrm.c: New file.
29830         * modules/unicase/u32-casexfrm: New file.
29831
29832         New module 'unicase/u16-casexfrm'.
29833         * lib/unicase/u16-casexfrm.c: New file.
29834         * modules/unicase/u16-casexfrm: New file.
29835
29836         New module 'unicase/u8-casexfrm'.
29837         * lib/unicase/u8-casexfrm.c: New file.
29838         * lib/unicase/u-casexfrm.h: New file.
29839         * modules/unicase/u8-casexfrm: New file.
29840
29841         Tests for module 'unicase/u32-casecmp'.
29842         * modules/unicase/u32-casecmp-tests: New file.
29843         * tests/unicase/test-u32-casecmp.c: New file.
29844
29845         Tests for module 'unicase/u16-casecmp'.
29846         * modules/unicase/u16-casecmp-tests: New file.
29847         * tests/unicase/test-u16-casecmp.c: New file.
29848
29849         Tests for module 'unicase/u8-casecmp'.
29850         * modules/unicase/u8-casecmp-tests: New file.
29851         * tests/unicase/test-u8-casecmp.c: New file.
29852         * tests/unicase/test-casecmp.h: New file.
29853
29854         New module 'unicase/u32-casecmp'.
29855         * lib/unicase/u32-casecmp.c: New file.
29856         * modules/unicase/u32-casecmp: New file.
29857
29858         New module 'unicase/u16-casecmp'.
29859         * lib/unicase/u16-casecmp.c: New file.
29860         * modules/unicase/u16-casecmp: New file.
29861
29862         New module 'unicase/u8-casecmp'.
29863         * lib/unicase/u8-casecmp.c: New file.
29864         * lib/unicase/u-casecmp.h: New file.
29865         * modules/unicase/u8-casecmp: New file.
29866
29867         Tests for module 'unicase/u32-casefold'.
29868         * modules/unicase/u32-casefold-tests: New file.
29869         * tests/unicase/test-u32-casefold.c: New file.
29870
29871         Tests for module 'unicase/u16-casefold'.
29872         * modules/unicase/u16-casefold-tests: New file.
29873         * tests/unicase/test-u16-casefold.c: New file.
29874
29875         Tests for module 'unicase/u8-casefold'.
29876         * modules/unicase/u8-casefold-tests: New file.
29877         * tests/unicase/test-u8-casefold.c: New file.
29878
29879         New module 'unicase/u32-casefold'.
29880         * lib/unicase/u32-casefold.c: New file.
29881         * modules/unicase/u32-casefold: New file.
29882
29883         New module 'unicase/u16-casefold'.
29884         * lib/unicase/u16-casefold.c: New file.
29885         * modules/unicase/u16-casefold: New file.
29886
29887         New module 'unicase/u8-casefold'.
29888         * lib/unicase/u8-casefold.c: New file.
29889         * lib/unicase/u-casefold.h: New file.
29890         * modules/unicase/u8-casefold: New file.
29891
29892         New module 'unicase/tocasefold'.
29893         * lib/unicase/casefold.h: New file.
29894         * lib/unicase/tocasefold.c: New file.
29895         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
29896         * modules/unicase/tocasefold: New file.
29897
29898         Tests for module 'unicase/u32-totitle'.
29899         * modules/unicase/u32-totitle-tests: New file.
29900         * tests/unicase/test-u32-totitle.c: New file.
29901
29902         Tests for module 'unicase/u16-totitle'.
29903         * modules/unicase/u16-totitle-tests: New file.
29904         * tests/unicase/test-u16-totitle.c: New file.
29905
29906         Tests for module 'unicase/u8-totitle'.
29907         * modules/unicase/u8-totitle-tests: New file.
29908         * tests/unicase/test-u8-totitle.c: New file.
29909
29910         New module 'unicase/u32-totitle'.
29911         * lib/unicase/u32-totitle.c: New file.
29912         * modules/unicase/u32-totitle: New file.
29913
29914         New module 'unicase/u16-totitle'.
29915         * lib/unicase/u16-totitle.c: New file.
29916         * modules/unicase/u16-totitle: New file.
29917
29918         New module 'unicase/u8-totitle'.
29919         * lib/unicase/u8-totitle.c: New file.
29920         * lib/unicase/u-totitle.h: New file.
29921         * modules/unicase/u8-totitle: New file.
29922
29923         Tests for module 'unicase/u32-tolower'.
29924         * modules/unicase/u32-tolower-tests: New file.
29925         * tests/unicase/test-u32-tolower.c: New file.
29926
29927         Tests for module 'unicase/u16-tolower'.
29928         * modules/unicase/u16-tolower-tests: New file.
29929         * tests/unicase/test-u16-tolower.c: New file.
29930
29931         Tests for module 'unicase/u8-tolower'.
29932         * modules/unicase/u8-tolower-tests: New file.
29933         * tests/unicase/test-u8-tolower.c: New file.
29934
29935         New module 'unicase/u32-tolower'.
29936         * lib/unicase/u32-tolower.c: New file.
29937         * modules/unicase/u32-tolower: New file.
29938
29939         New module 'unicase/u16-tolower'.
29940         * lib/unicase/u16-tolower.c: New file.
29941         * modules/unicase/u16-tolower: New file.
29942
29943         New module 'unicase/u8-tolower'.
29944         * lib/unicase/u8-tolower.c: New file.
29945         * modules/unicase/u8-tolower: New file.
29946
29947         Tests for module 'unicase/u32-toupper'.
29948         * modules/unicase/u32-toupper-tests: New file.
29949         * tests/unicase/test-u32-toupper.c: New file.
29950
29951         Tests for module 'unicase/u16-toupper'.
29952         * modules/unicase/u16-toupper-tests: New file.
29953         * tests/unicase/test-u16-toupper.c: New file.
29954
29955         Tests for module 'unicase/u8-toupper'.
29956         * modules/unicase/u8-toupper-tests: New file.
29957         * tests/unicase/test-u8-toupper.c: New file.
29958
29959         New module 'unicase/u32-toupper'.
29960         * lib/unicase/u32-toupper.c: New file.
29961         * modules/unicase/u32-toupper: New file.
29962
29963         New module 'unicase/u16-toupper'.
29964         * lib/unicase/u16-toupper.c: New file.
29965         * modules/unicase/u16-toupper: New file.
29966
29967         New module 'unicase/u8-toupper'.
29968         * lib/unicase/u8-toupper.c: New file.
29969         * modules/unicase/u8-toupper: New file.
29970
29971         New module 'unicase/u32-casemap'.
29972         * lib/unicase/u32-casemap.c: New file.
29973         * modules/unicase/u32-casemap: New file.
29974
29975         New module 'unicase/u16-casemap'.
29976         * lib/unicase/u16-casemap.c: New file.
29977         * modules/unicase/u16-casemap: New file.
29978
29979         New module 'unicase/u8-casemap'.
29980         * lib/unicase/unicasemap.h: New file.
29981         * lib/unicase/u8-casemap.c: New file.
29982         * lib/unicase/u-casemap.h: New file.
29983         * modules/unicase/u8-casemap: New file.
29984
29985         New module 'unicase/special-casing'.
29986         * lib/unicase/special-casing.h: New file.
29987         * lib/unicase/special-casing.c: New file.
29988         * lib/unicase/special-casing-table.gperf: New file, generated by
29989         gen-uni-tables.c.
29990         * modules/unicase/special-casing: New file.
29991
29992         Tests for module 'unicase/locale-language'.
29993         * modules/unicase/locale-language-tests: New file.
29994         * tests/unicase/test-locale-language.sh: New file.
29995         * tests/unicase/test-locale-language.c: New file.
29996
29997         New module 'unicase/locale-language'.
29998         * lib/unicase/locale-language.c: New file.
29999         * lib/unicase/locale-languages.gperf: New file.
30000         * modules/unicase/locale-language: New file.
30001
30002         Generate more tables for case conversion and case folding.
30003         * lib/gen-uni-tables.c (SCC_*): New enum items.
30004         (struct special_casing_rule): New type.
30005         (casing_rules, num_casing_rules, allocated_casing_rules): New
30006         variables.
30007         (add_casing_rule, fill_casing_rules): New functions.
30008         (struct casefold_rule): New type.
30009         (casefolding_rules, num_casefolding_rules,
30010         allocated_casefolding_rules): New variables.
30011         (fill_casefolding_rules): New function.
30012         (unicode_casefold): New variable.
30013         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
30014         sort_casing_rules, output_casing_rules): New functions.
30015         (main): Accept to more arguments: SpecialCasing.txt and
30016         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
30017         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
30018         Output mapping for casefolding.
30019
30020         * lib/unicase.h: Include stdbool.h, uninorm.h.
30021         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
30022         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
30023         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
30024         arguments.
30025         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
30026         resultp arguments.
30027         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
30028         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
30029         resultp arguments.
30030         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
30031         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
30032         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
30033         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
30034         declarations.
30035         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
30036
30037 2009-03-08  Bruno Haible  <bruno@clisp.org>
30038
30039         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30040         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
30041         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
30042         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30043
30044 2009-03-07  Bruno Haible  <bruno@clisp.org>
30045
30046         Adjust u*_normcmp, u*_normcoll API.
30047         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30048         u16_normcoll, u32_normcoll): Change failure conventions.
30049         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
30050         errno and return -1.
30051         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30052
30053 2009-03-07  Bruno Haible  <bruno@clisp.org>
30054
30055         Tests for module 'uninorm/u32-normcoll'.
30056         * modules/uninorm/u32-normcoll-tests: New file.
30057         * tests/uninorm/test-u32-normcoll.c: New file.
30058
30059         Tests for module 'uninorm/u16-normcoll'.
30060         * modules/uninorm/u16-normcoll-tests: New file.
30061         * tests/uninorm/test-u16-normcoll.c: New file.
30062
30063         Tests for module 'uninorm/u8-normcoll'.
30064         * modules/uninorm/u8-normcoll-tests: New file.
30065         * tests/uninorm/test-u8-normcoll.c: New file.
30066
30067 2009-03-07  Bruno Haible  <bruno@clisp.org>
30068
30069         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
30070         tests/uninorm/test-u32-normcmp.c.
30071         * tests/uninorm/test-u32-normcmp.c: Include it.
30072         (test_nonascii): New function, extracted from main. Add some more
30073         tests.
30074         (main): Invoke test_ascii and test_nonascii.
30075         * modules/uninorm/u32-normcmp-tests (Files): Add
30076         tests/uninorm/test-u32-normcmp.h.
30077         (Depends-on): Remove uninorm/u32-normcmp.
30078
30079         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
30080         tests/uninorm/test-u16-normcmp.c.
30081         * tests/uninorm/test-u16-normcmp.c: Include it.
30082         (test_nonascii): New function, extracted from main. Add some more
30083         tests.
30084         (main): Invoke test_ascii and test_nonascii.
30085         * modules/uninorm/u16-normcmp-tests (Files): Add
30086         tests/uninorm/test-u16-normcmp.h.
30087         (Depends-on): Remove uninorm/u16-normcmp.
30088
30089         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
30090         tests/uninorm/test-u8-normcmp.c.
30091         * tests/uninorm/test-u8-normcmp.c: Include it.
30092         (test_nonascii): New function, extracted from main. Add some more
30093         tests.
30094         (main): Invoke test_ascii and test_nonascii.
30095         * modules/uninorm/u8-normcmp-tests (Files): Add
30096         tests/uninorm/test-u8-normcmp.h.
30097         (Depends-on): Remove uninorm/u8-normcmp.
30098
30099 2009-03-07  Bruno Haible  <bruno@clisp.org>
30100
30101         New module 'uninorm/u32-normcoll'.
30102         * lib/uninorm/u32-normcoll.c: New file.
30103         * modules/uninorm/u32-normcoll: New file.
30104
30105         New module 'uninorm/u16-normcoll'.
30106         * lib/uninorm/u16-normcoll.c: New file.
30107         * modules/uninorm/u16-normcoll: New file.
30108
30109         New module 'uninorm/u8-normcoll'.
30110         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
30111         declarations.
30112         * lib/uninorm/u8-normcoll.c: New file.
30113         * lib/uninorm/u-normcoll.h: New file.
30114         * modules/uninorm/u8-normcoll: New file.
30115
30116         New module 'uninorm/u32-normxfrm'.
30117         * lib/uninorm/u32-normxfrm.c: New file.
30118         * modules/uninorm/u32-normxfrm: New file.
30119
30120         New module 'uninorm/u16-normxfrm'.
30121         * lib/uninorm/u16-normxfrm.c: New file.
30122         * modules/uninorm/u16-normxfrm: New file.
30123
30124         New module 'uninorm/u8-normxfrm'.
30125         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
30126         declarations.
30127         * lib/uninorm/u8-normxfrm.c: New file.
30128         * lib/uninorm/u-normxfrm.h: New file.
30129         * modules/uninorm/u8-normxfrm: New file.
30130
30131 2009-03-07  Bruno Haible  <bruno@clisp.org>
30132
30133         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
30134         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
30135         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
30136
30137 2009-03-07  Bruno Haible  <bruno@clisp.org>
30138
30139         New module 'memxfrm'.
30140         * lib/memxfrm.h: New file.
30141         * lib/memxfrm.c: New file.
30142         * modules/memxfrm: New file.
30143
30144 2009-03-07  Bruno Haible  <bruno@clisp.org>
30145
30146         New module 'memcmp2'.
30147         * lib/memcmp2.h: New file.
30148         * lib/memcmp2.c: New file.
30149         * modules/memcmp2: New file.
30150
30151 2009-03-07  Bruno Haible  <bruno@clisp.org>
30152
30153         Tests for module 'uninorm/decomposing-form'.
30154         * modules/uninorm/decomposing-form-tests: New file.
30155         * tests/uninorm/test-decomposing-form.c: New file.
30156
30157         New module 'uninorm/decomposing-form'.
30158         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
30159         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
30160         Add 'decomposing_variant' field.
30161         * lib/uninorm/decomposing-form.c: New file.
30162         * lib/uninorm/nfc.c (uninorm_nfc): Update.
30163         * lib/uninorm/nfd.c (uninorm_nfd): Update.
30164         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
30165         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
30166         * modules/uninorm/decomposing-form: New file.
30167         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
30168         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
30169
30170 2009-03-07  Bruno Haible  <bruno@clisp.org>
30171
30172         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
30173         strings.
30174
30175 2009-03-06  Bruno Haible  <bruno@clisp.org>
30176
30177         Tests for module 'uninorm/u32-normcmp'.
30178         * tests/uninorm/test-u32-normcmp.c: New file.
30179         * modules/uninorm/u32-normcmp-tests: New file.
30180
30181         Tests for module 'uninorm/u16-normcmp'.
30182         * tests/uninorm/test-u16-normcmp.c: New file.
30183         * modules/uninorm/u16-normcmp-tests: New file.
30184
30185         Tests for module 'uninorm/u8-normcmp'.
30186         * tests/uninorm/test-u8-normcmp.c: New file.
30187         * modules/uninorm/u8-normcmp-tests: New file.
30188
30189         New module 'uninorm/u32-normcmp'.
30190         * lib/uninorm/u32-normcmp.c: New file.
30191         * modules/uninorm/u32-normcmp: New file.
30192
30193         New module 'uninorm/u16-normcmp'.
30194         * lib/uninorm/u16-normcmp.c: New file.
30195         * modules/uninorm/u16-normcmp: New file.
30196
30197         New module 'uninorm/u8-normcmp'.
30198         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
30199         declarations.
30200         * lib/uninorm/u8-normcmp.c: New file.
30201         * lib/uninorm/u-normcmp.h: New file.
30202         * modules/uninorm/u8-normcmp: New file.
30203
30204 2009-03-06  Bruno Haible  <bruno@clisp.org>
30205
30206         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
30207         Reported by Eric Blake.
30208
30209 2009-03-06  Eric Blake  <ebb9@byu.net>
30210             Bruno Haible  <bruno@clisp.org>
30211
30212         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
30213         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
30214         condition.
30215         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30216         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
30217         condition.
30218         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30219
30220 2009-03-06  Eric Blake  <ebb9@byu.net>
30221
30222         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
30223         to avoid compiler warnings.
30224         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
30225
30226 2009-03-05  Bruno Haible  <bruno@clisp.org>
30227
30228         * tests/test-ftell.c (main): Disable test beyond end of file on
30229         FreeMiNT.
30230         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30231
30232 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
30233
30234         * lib/filevercmp.c: Move hidden files up in ordering.
30235         * tests/test-filevercmp.c: Add tests for hidden files.
30236
30237 2009-03-04  Bruno Haible  <bruno@clisp.org>
30238
30239         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
30240         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
30241         AM_CFLAGS.
30242         Reported by Simon Josefsson.
30243
30244 2009-03-03  Bruno Haible  <bruno@clisp.org>
30245
30246         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
30247         Reported by Simon Josefsson.
30248
30249         * doc/ld-version-script.texi: Update node reference.
30250
30251 2009-03-03  Bruno Haible  <bruno@clisp.org>
30252
30253         * modules/visibility (License): Change to 'unlimited'.
30254         Suggested by Simon Josefsson.
30255
30256 2009-03-03  Jim Meyering  <meyering@redhat.com>
30257
30258         unlinkdir: cannot_unlink_dir may modify process state
30259         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
30260         it's neither thread-safe nor appropriate for use in a library.
30261
30262 2009-03-03  Eric Blake  <ebb9@byu.net>
30263
30264         test-closein: silence test under Darwin
30265         * tests/test-closein.sh: Ignore stderr from cat, since we don't
30266         care if it dies from EPIPE or EBADF.
30267
30268 2009-03-03  Bruno Haible  <bruno@clisp.org>
30269
30270         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
30271         earlier.
30272         * doc/visibility.texi: Fix @node and @section.
30273
30274 2009-03-03  Simon Josefsson  <simon@josefsson.org>
30275
30276         * doc/gnulib.texi: Link to sections for ld version script and
30277         visibility.
30278         * doc/visibility.texi: Add @node and @section.
30279         * modules/ld-version-script: New module.
30280         * m4/ld-version-script.m4: New file.
30281         * doc/ld-version-script.texi: New file.
30282
30283 2009-03-02  David Lutterkort  <lutter@redhat.com>
30284
30285         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
30286         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30287
30288 2009-03-02  Bruno Haible  <bruno@clisp.org>
30289
30290         * doc/visibility.texi: Mention libtool's -export-symbols option.
30291
30292 2009-03-02  Jim Meyering  <meyering@redhat.com>
30293
30294         announce-gen: new option: --no-print-checksums
30295         * build-aux/announce-gen (usage): Describe it.
30296         (print_checksums): Print a newline here, not in the [*] footnote.
30297         (main): Honor it.
30298
30299 2009-03-01  Bruno Haible  <bruno@clisp.org>
30300
30301         Use socklen_t in the native Windows replacements prototypes.
30302         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
30303         instead of 'int'.
30304         * lib/getsockopt.c (rpl_getsockopt): Likewise.
30305         * lib/setsockopt.c (rpl_setsockopt): Likewise.
30306         * modules/getsockopt (Depends-on): Add socklen.
30307         * modules/setsockopt (Depends-on): Add socklen.
30308
30309 2009-03-01  Bruno Haible  <bruno@clisp.org>
30310
30311         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
30312         least 4.2.
30313
30314 2009-03-01  Eric Blake  <ebb9@byu.net>
30315             Bruno Haible  <bruno@clisp.org>
30316
30317         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
30318         error messages.
30319         * lib/wait-process.c (wait_subprocess): Omit error message about
30320         deadly signal sent to the child of termsigp != NULL.
30321
30322 2009-03-01  Eric Blake  <ebb9@byu.net>
30323
30324         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
30325
30326 2009-03-01  Bruno Haible  <bruno@clisp.org>
30327
30328         Avoid a gcc warning.
30329         * tests/test-sched.c (b): Make global.
30330         Reported by Eric Blake.
30331
30332 2009-01-19  Martin Lambers  <marlam@marlam.de>
30333
30334         Provide POSIX semantics for socket timeout options on W32.
30335         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
30336         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
30337         * modules/setsockopt: Depend on sys_time module for struct timeval.
30338         * modules/getsockopt: Depend on sys_time module for struct timeval.
30339
30340 2009-03-01  Simon Josefsson  <simon@josefsson.org>
30341
30342         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
30343         __USE_GNU, for consistency with netdb.in.h.
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/fseeko.c (rpl_fseeko): Complete last commit.
30350         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30351
30352 2009-03-01  Bruno Haible  <bruno@clisp.org>
30353
30354         More support for FreeMiNT.
30355         * lib/fpurge.c (fpurge): Correct last commit.
30356         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30357
30358 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30359
30360         Fix unportable awk script in vc-list-files.
30361         * build-aux/vc-list-files: In the replacement awk script, use
30362         substr with a second argument of 1, not zero.
30363         Report by Simon Josefsson.
30364
30365 2009-02-28  Bruno Haible  <bruno@clisp.org>
30366
30367         More support for FreeMiNT.
30368         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
30369         to FreeMiNT today.
30370         * lib/fwriting.c (fwriting): Likewise.
30371         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
30372
30373 2009-02-28  Bruno Haible  <bruno@clisp.org>
30374
30375         * tests/test-freadseek.c (main): Disable test beyond end of file on
30376         FreeMiNT.
30377         * tests/test-ftello.c (main): Likewise.
30378         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30379
30380 2009-02-28  Bruno Haible  <bruno@clisp.org>
30381
30382         Add tentative support for FreeMiNT.
30383         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
30384         * lib/fpurge.c (fpurge): Likewise.
30385         * lib/freadable.c (freadable): Likewise.
30386         * lib/freading.c (freading): Likewise.
30387         * lib/freadptr.c (freadptr): Likewise.
30388         * lib/freadseek.c (freadptrinc): Likewise.
30389         * lib/fseeko.c (rpl_fseeko): Likewise.
30390         * lib/fseterr.c (fseterr): Likewise.
30391         * lib/fwritable.c (fwritable): Likewise.
30392         * lib/fwriting.c (fwriting): Likewise.
30393         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
30394         Hourihane.
30395         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30396
30397 2009-02-28  Bruno Haible  <bruno@clisp.org>
30398
30399         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
30400         SIGCHLD.
30401         Reported by Jim Meyering.
30402
30403 2009-02-28  Bruno Haible  <bruno@clisp.org>
30404
30405         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
30406         Mention the results of these tests on various platforms.
30407         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
30408         order.
30409         * doc/posix-functions/printf.texi: Likewise.
30410         * doc/posix-functions/snprintf.texi: Likewise.
30411         * doc/posix-functions/sprintf.texi: Likewise.
30412         * doc/posix-functions/vfprintf.texi: Likewise.
30413         * doc/posix-functions/vprintf.texi: Likewise.
30414         * doc/posix-functions/vsnprintf.texi: Likewise.
30415         * doc/posix-functions/vsprintf.texi: Likewise.
30416         * doc/glibc-functions/obstack_printf.texi: Likewise.
30417         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
30418
30419 2009-02-28  Bruno Haible  <bruno@clisp.org>
30420
30421         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
30422         Reported by Loïc Minier <lool@dooz.org>.
30423
30424 2009-02-27  Bruno Haible  <bruno@clisp.org>
30425
30426         * gnulib-tool (func_import): Make the sed expression used to create the
30427         sed script for updating the .gitignore file POSIX compliant.
30428         Reported by Eric Blake.
30429
30430 2009-02-27  Bruno Haible  <bruno@clisp.org>
30431
30432         * gnulib-tool (sed): Don't alias as "sed --posix".
30433         Reported by Eric Blake.
30434
30435 2009-02-27  Bruno Haible  <bruno@clisp.org>
30436
30437         Avoid test link errors.
30438         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
30439         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
30440         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
30441         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
30442         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30443
30444 2009-02-27  Bruno Haible  <bruno@clisp.org>
30445
30446         Avoid spurious "(cached)" in configure output.
30447         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
30448         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
30449         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30450         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30451         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30452         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30453         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30454         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30455         Reported by Eric Blake.
30456
30457 2009-02-27  Eric Blake  <ebb9@byu.net>
30458
30459         printf: fix regression in previous patch
30460         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
30461
30462 2009-02-27  Bruno Haible  <bruno@clisp.org>
30463
30464         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
30465         value.
30466         * lib/stdint.in.h: Likewise.
30467         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
30468
30469 2009-02-27  Eric Blake  <ebb9@byu.net>
30470
30471         doc: mention more functions added in cygwin 1.7.0
30472         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
30473         addition.
30474         * doc/posix-functions/open_wmemstream.texi: Likewise.
30475         * doc/posix-functions/wcsnlen.texi: Likewise.
30476         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30477         * doc/posix-functions/wcstod.texi: Likewise.
30478         * doc/posix-functions/wcstof.texi: Likewise.
30479         * doc/posix-functions/wcstoimax.texi: Likewise.
30480         * doc/posix-functions/wcstok.texi: Likewise.
30481         * doc/posix-functions/wcstoumax.texi: Likewise.
30482
30483         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
30484         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
30485         * doc/posix-functions/fprintf.texi: Update.
30486         * doc/posix-functions/printf.texi: Update.
30487         * doc/posix-functions/snprintf.texi: Update.
30488         * doc/posix-functions/sprintf.texi: Update.
30489         * doc/posix-functions/vfprintf.texi: Update.
30490         * doc/posix-functions/vprintf.texi: Update.
30491         * doc/posix-functions/vsnprintf.texi: Update.
30492         * doc/posix-functions/vsprintf.texi: Update.
30493         * doc/glibc-functions/obstack_printf.texi: Update.
30494         * doc/glibc-functions/obstack_vprintf.texi: Update.
30495
30496 2009-02-26  Eric Blake  <ebb9@byu.net>
30497
30498         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
30499         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
30500         compilation bug by using runtime conversion.
30501         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30502         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
30503         * modules/ceill-tests (Files): Use nan.h.
30504         * modules/floorl-tests (Files): Likewise.
30505         * modules/frexpl-tests (Files): Likewise.
30506         * modules/isnanl-tests (Files): Likewise.
30507         * modules/ldexpl-tests (Files): Likewise.
30508         * modules/roundl-tests (Files): Likewise.
30509         * modules/truncl-tests (Files): Likewise.
30510         * tests/test-ceill.c (main): Use a working NaN.
30511         * tests/test-floorl.c (main): Likewise.
30512         * tests/test-frexpl.c (main): Likewise.
30513         * tests/test-isnan.c (test_long_double): Likewise.
30514         * tests/test-isnanl.h (main): Likewise.
30515         * tests/test-ldexpl.h (main): Likewise.
30516         * tests/test-roundl.h (main): Likewise.
30517         * tests/test-truncl.h (main): Likewise.
30518         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
30519
30520 2009-02-26  Eric Blake  <ebb9@byu.net>
30521             Bruno Haible  <bruno@clisp.org>
30522
30523         Work around a *printf bug with %ls on Solaris.
30524         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
30525         precision is specified, sprintf stops converting the wide string
30526         argument when the number of bytes that have been produced by this
30527         conversion equals or exceeds the precision.
30528         * doc/posix-functions/fprintf.texi: Update.
30529         * doc/posix-functions/printf.texi: Update.
30530         * doc/posix-functions/snprintf.texi: Update.
30531         * doc/posix-functions/sprintf.texi: Update.
30532         * doc/posix-functions/vfprintf.texi: Update.
30533         * doc/posix-functions/vprintf.texi: Update.
30534         * doc/posix-functions/vsnprintf.texi: Update.
30535         * doc/posix-functions/vsprintf.texi: Update.
30536         * doc/glibc-functions/obstack_printf.texi: Update.
30537         * doc/glibc-functions/obstack_vprintf.texi: Update.
30538
30539 2009-02-26  Eric Blake  <ebb9@byu.net>
30540
30541         stdlib: favor compiler check of random.h
30542         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
30543         to avoid an ObjC random.h installed by Swarm.
30544
30545 2009-02-26  Bruno Haible  <bruno@clisp.org>
30546
30547         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
30548         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
30549         Reported by Gary V. Vaughan <gary@gnu.org>.
30550
30551 2009-02-26  Bruno Haible  <bruno@clisp.org>
30552
30553         Fix *printf behaviour regarding the %ls directive.
30554         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
30555         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
30556         NEED_PRINTF_DIRECTIVE_LS.
30557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
30558         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30559         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30560         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
30561         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
30562         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
30563         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30564         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30565         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30566         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30567         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30568         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
30569         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30570         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30571         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30572         * doc/posix-functions/fprintf.texi: Update.
30573         * doc/posix-functions/printf.texi: Update.
30574         * doc/posix-functions/snprintf.texi: Update.
30575         * doc/posix-functions/sprintf.texi: Update.
30576         * doc/posix-functions/vfprintf.texi: Update.
30577         * doc/posix-functions/vprintf.texi: Update.
30578         * doc/posix-functions/vsnprintf.texi: Update.
30579         * doc/posix-functions/vsprintf.texi: Update.
30580         * doc/glibc-functions/obstack_printf.texi: Update.
30581         * doc/glibc-functions/obstack_vprintf.texi: Update.
30582         Reported by Eric Blake.
30583
30584 2009-02-25  Bruno Haible  <bruno@clisp.org>
30585
30586         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
30587         with known value.
30588         Reported by Gary V. Vaughan <gary@gnu.org>.
30589
30590 2009-02-25  Bruno Haible  <bruno@clisp.org>
30591
30592         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
30593         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
30594         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
30595         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
30596         Reported by Gary V. Vaughan <gary@gnu.org>.
30597
30598 2009-02-25  Bruno Haible  <bruno@clisp.org>
30599
30600         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
30601         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
30602         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
30603         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
30604         Reported by Gary V. Vaughan <gary@gnu.org>.
30605
30606 2009-02-25  Eric Blake  <ebb9@byu.net>
30607
30608         tests: skip fseek/ftell tests if ungetc is broken
30609         * m4/ungetc.m4: New file.
30610         * modules/fseek-tests: Split test, so ungetc dependency is
30611         separate from rest of test.
30612         * modules/fseeko-tests: Likewise.
30613         * modules/ftell-tests: Likewise.
30614         * modules/ftello-tests: Likewise.
30615         * tests/test-fseek.c (main): Isolate ungetc dependency.
30616         * tests/test-fseeko.c (main): Likewise.
30617         * tests/test-ftell.c (main): Likewise.
30618         * tests/test-ftello.c (main): Likewise.
30619         * tests/test-fseek2.sh: New file.
30620         * tests/test-fseeko2.sh: Likewise.
30621         * tests/test-ftell2.sh: Likewise.
30622         * tests/test-ftello2.sh: Likewise.
30623
30624 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
30625
30626         test-getaddrinfo: fix usage of skip return code 77
30627         * tests/test-gettaddrinfo.c: Return skip code 77 only
30628         for first occurance of skip (4x77 is not 77)
30629
30630 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
30631
30632         strtod: avoid C99 decl-after-statement
30633         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
30634
30635 2009-02-24  Eric Blake  <ebb9@byu.net>
30636
30637         strtod: detect HP-UX 11.31 bug
30638         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
30639         Reported by Gary V. Vaughan.
30640
30641 2009-02-23  Bruno Haible  <bruno@clisp.org>
30642
30643         Fix invalid read past end of memory block.
30644         * lib/vasnprintf.c (DCHAR_SET): Define.
30645         (local_wcslen): Define only when needed.
30646         (local_strnlen, local_wcsnlen): New functions.
30647         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
30648         directives that involve a conversion ourselves.
30649         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
30650         wcsnlen, mbrtowc, wcrtomb.
30651         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
30652         * tests/test-vasprintf-posix.c (test_function): Likewise.
30653         * tests/test-snprintf-posix.h (test_function): Likewise.
30654         * tests/test-sprintf-posix.h (test_function): Likewise.
30655         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30656
30657 2009-02-22  Bruno Haible  <bruno@clisp.org>
30658
30659         Implement new clarified decomposition of Hangul syllables.
30660         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
30661         of type LTV, return only a pairwise decomposition.
30662         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
30663         Likewise.
30664         * tests/uninorm/test-decomposition.c (main): Updated expected result.
30665         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
30666         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
30667
30668 2009-02-22  Bruno Haible  <bruno@clisp.org>
30669
30670         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
30671         zero-length results and shrink excess allocated memory.
30672         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
30673         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
30674         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
30675         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
30676         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
30677         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
30678         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
30679         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
30680         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
30681         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
30682         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
30683         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
30684
30685 2009-02-21  Bruno Haible  <bruno@clisp.org>
30686
30687         * doc/gnulib.texi: Include safe-alloc.texi earlier.
30688         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
30689         spaces after a period. Put a space between a macro name and its
30690         argument list. Trivial rewordings.
30691         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
30692         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
30693         (main): Return 0 explicitly.
30694
30695 2009-02-21  Bruno Haible  <bruno@clisp.org>
30696
30697         Tests for module 'uninorm/filter'.
30698         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
30699         * modules/uninorm/filter-tests: New file.
30700
30701         New module 'uninorm/filter'.
30702         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
30703         uninorm_filter_flush, uninorm_filter_free): New declarations.
30704         * lib/uninorm/uninorm-filter.c: New file.
30705         * modules/uninorm/filter: New file.
30706
30707 2009-02-21  Bruno Haible  <bruno@clisp.org>
30708
30709         Tests for module 'uninorm/nfkc'.
30710         * tests/uninorm/test-nfkc.c: New file.
30711         * tests/uninorm/test-u8-nfkc.c: New file.
30712         * tests/uninorm/test-u16-nfkc.c: New file.
30713         * tests/uninorm/test-u32-nfkc.c: New file.
30714         * tests/uninorm/test-u32-nfkc-big.sh: New file.
30715         * tests/uninorm/test-u32-nfkc-big.c: New file.
30716         * modules/uninorm/nfkc-tests: New file.
30717
30718         New module 'uninorm/nfkc'.
30719         * lib/uninorm/nfkc.c: New file.
30720         * modules/uninorm/nfkc: New file.
30721
30722         Tests for module 'uninorm/nfkd'.
30723         * tests/uninorm/test-nfkd.c: New file.
30724         * tests/uninorm/test-u8-nfkd.c: New file.
30725         * tests/uninorm/test-u16-nfkd.c: New file.
30726         * tests/uninorm/test-u32-nfkd.c: New file.
30727         * tests/uninorm/test-u32-nfkd-big.sh: New file.
30728         * tests/uninorm/test-u32-nfkd-big.c: New file.
30729         * modules/uninorm/nfkd-tests: New file.
30730
30731         New module 'uninorm/nfkd'.
30732         * lib/uninorm/nfkd.c: New file.
30733         * modules/uninorm/nfkd: New file.
30734
30735         Tests for module 'uninorm/nfc'.
30736         * tests/uninorm/test-nfc.c: New file.
30737         * tests/uninorm/test-u8-nfc.c: New file.
30738         * tests/uninorm/test-u16-nfc.c: New file.
30739         * tests/uninorm/test-u32-nfc.c: New file.
30740         * tests/uninorm/test-u32-nfc-big.sh: New file.
30741         * tests/uninorm/test-u32-nfc-big.c: New file.
30742         * modules/uninorm/nfc-tests: New file.
30743
30744         New module 'uninorm/nfc'.
30745         * lib/uninorm/nfc.c: New file.
30746         * modules/uninorm/nfc: New file.
30747
30748         Tests for module 'uninorm/nfd'.
30749         * tests/uninorm/test-nfd.c: New file.
30750         * tests/uninorm/test-u8-nfd.c: New file.
30751         * tests/uninorm/test-u16-nfd.c: New file.
30752         * tests/uninorm/test-u32-nfd.c: New file.
30753         * tests/uninorm/test-u32-nfd-big.sh: New file.
30754         * tests/uninorm/test-u32-nfd-big.c: New file.
30755         * tests/uninorm/test-u32-normalize-big.h: New file.
30756         * tests/uninorm/test-u32-normalize-big.c: New file.
30757         * tests/uninorm/NormalizationTest.txt: New file, created from
30758         Unicode 5.1.0 NormalizationTest.txt.
30759         * modules/uninorm/nfd-tests: New file.
30760
30761         New module 'uninorm/nfd'.
30762         * lib/uninorm/nfd.c: New file.
30763         * modules/uninorm/nfd: New file.
30764
30765         New module 'uninorm/u32-normalize'.
30766         * lib/uninorm/u32-normalize.c: New file.
30767         * modules/uninorm/u32-normalize: New file.
30768
30769         New module 'uninorm/u16-normalize'.
30770         * lib/uninorm/u16-normalize.c: New file.
30771         * modules/uninorm/u16-normalize: New file.
30772
30773         New module 'uninorm/u8-normalize'.
30774         * lib/uninorm/u8-normalize.c: New file.
30775         * lib/uninorm/normalize-internal.h: New file.
30776         * lib/uninorm/u-normalize-internal.h: New file.
30777         * modules/uninorm/u8-normalize: New file.
30778
30779         New module 'uninorm/decompose-internal'.
30780         * lib/uninorm/decompose-internal.c: New file.
30781         * modules/uninorm/decompose-internal: New file.
30782
30783         Tests for module 'uninorm/composition'.
30784         * tests/uninorm/test-composition.c: New file.
30785         * modules/uninorm/composition-tests: New file.
30786
30787         New module 'uninorm/composition'.
30788         * lib/uninorm/composition.c: New file.
30789         * lib/uninorm/composition-table.gperf: New file, generated by
30790         gen-uni-tables.
30791         * modules/uninorm/composition: New file.
30792
30793         Tests for module 'uninorm/compat-decomposition'.
30794         * tests/uninorm/test-compat-decomposition.c: New file.
30795         * modules/uninorm/compat-decomposition-tests: New file.
30796
30797         New module 'uninorm/compat-decomposition'.
30798         * lib/uninorm/decompose-internal.h: New file.
30799         * lib/uninorm/compat-decomposition.c: New file.
30800         * modules/uninorm/compat-decomposition: New file.
30801
30802         Tests for module 'uninorm/canonical-decomposition'.
30803         * tests/uninorm/test-canonical-decomposition.c: New file.
30804         * modules/uninorm/canonical-decomposition-tests: New file.
30805
30806         New module 'uninorm/canonical-decomposition'.
30807         * lib/uninorm/canonical-decomposition.c: New file.
30808         * modules/uninorm/canonical-decomposition: New file.
30809
30810         Tests for module 'uninorm/decomposition'.
30811         * tests/uninorm/test-decomposition.c: New file.
30812         * modules/uninorm/decomposition-tests: New file.
30813
30814         New module 'uninorm/decomposition'.
30815         * lib/uninorm/decomposition.c: New file.
30816         * modules/uninorm/decomposition: New file.
30817
30818         New module 'uninorm/decomposition-table'.
30819         * lib/uninorm/decomposition-table.h: New file.
30820         * lib/uninorm/decomposition-table.c: New file.
30821         * lib/uninorm/decomposition-table1.h: New file, generated by
30822         gen-uni-tables.
30823         * lib/uninorm/decomposition-table2.h: New file, generated by
30824         gen-uni-tables.
30825         * modules/uninorm/decomposition-table: New file.
30826
30827         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
30828         (UC_DECOMP_*): New enumeration items.
30829         (get_decomposition): New function.
30830         (struct decomp_table): New type.
30831         (output_decomposition, output_decomposition_tables): New functions.
30832         (unicode_composition_exclusions): New variable.
30833         (fill_composition_exclusions, debug_output_composition_tables): New
30834         functions.
30835         (main): Accept one more argument. Invoke fill_composition_exclusions.
30836         Output decomposition and composition tables.
30837
30838         New module 'uninorm/base'.
30839         * lib/uninorm.h: New file.
30840         * lib/unictype.h: Update comment.
30841         * modules/uninorm/base: New file.
30842
30843 2009-02-21  David Lutterkort  <lutter@redhat.com>
30844
30845         Tests for module 'safe-alloc'.
30846         * tests/test-safe-alloc.c: New file.
30847         * modules/safe-alloc-tests: New file.
30848
30849         New module 'safe-alloc'.
30850         * lib/safe-alloc.h: New file.
30851         * lib/safe-alloc.c: New file.
30852         * m4/safe-alloc.m4: New file.
30853         * modules/safe-alloc: New file.
30854         * doc/safe-alloc.texi: New file.
30855         * doc/gnulib.texi: Include it.
30856         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30857         safe-alloc.
30858
30859 2009-02-18  Bruno Haible  <bruno@clisp.org>
30860
30861         Fix link error on non-glibc systems.
30862         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
30863         variable.
30864         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30865
30866 2009-02-18  Jim Meyering  <meyering@redhat.com>
30867
30868         fts: avoid used-uninitialized error due to recent change
30869         * lib/fts.c (fts_read): Guard uses of the new member,
30870         parent->fts_n_dirs_remaining, since it's not relevant for
30871         the parent of a directory specified on the command-line.
30872
30873 2009-02-17  James Youngman  <jay@gnu.org>
30874             Bruno Haible  <bruno@clisp.org>
30875
30876         * m4/include_next.m4: Reformulate comment.
30877
30878 2009-02-16  Jim Meyering  <meyering@redhat.com>
30879
30880         fts: add #if guards so that the fts_lgpl module still builds
30881         * lib/fts.c: Guard just-added hash-table-using parts with
30882         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
30883         Reported by Simon Josefsson.
30884
30885 2009-02-15  Bruno Haible  <bruno@clisp.org>
30886
30887         * modules/array-mergesort-tests: New file.
30888         * tests/test-array-mergesort.c: New file.
30889
30890         New module 'array-mergesort'.
30891         * modules/array-mergesort: New file.
30892         * lib/array-mergesort.h: New file.
30893
30894 2009-02-15  Bruno Haible  <bruno@clisp.org>
30895
30896         Fix 2009-02-07 commit.
30897         * lib/gen-uni-tables.c (output_predicate, output_category,
30898         output_combclass, output_bidi_category, output_decimal_digit,
30899         output_digit, output_numeric, output_mirror, output_scripts,
30900         output_ident_category, output_simple_mapping): Fix format directives.
30901         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30902
30903 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30904
30905         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
30906         fixes are available from IBM.
30907
30908 2009-02-13  Jim Meyering  <meyering@redhat.com>
30909
30910         fts: arrange not to stat non-directories in more cases
30911         This makes GNU find (when it doesn't need to stat each file)
30912         *much* more efficient at traversing reiserfs file systems.
30913         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
30914         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
30915         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
30916         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
30917         (leaf_optimization_applies): New function.
30918         (LCO_hash, LCO_compare): New helper functions.
30919         (link_count_optimize_ok): New function.
30920         (fts_stat): Initialize new member (if dir).
30921         (fts_read): Decrement parent's fts_n_dirs_remaining count if
30922         we've just stat'ed a directory.  Skip the stat call when possible.
30923         ---
30924         Note this AFS-related exchange:
30925         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
30926         and note find's pioctl call in find/fstype.c.
30927         But that is necessary only if you want to enable the
30928         optimization for AFS, and for now, I don't.
30929
30930         fts: move a function definition "up" (no semantic change)
30931         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
30932         "up" to precede upcoming use of a related function.
30933
30934 2009-02-11  Jim Meyering  <meyering@redhat.com>
30935
30936         fts: correct internal computation of nlinks (optimization-related)
30937         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
30938         whether the current entry is a directory, so don't test it.
30939
30940 2009-02-10  Bruno Haible  <bruno@clisp.org>
30941
30942         Tests for module 'uniwbrk/ulc-wordbreaks'.
30943         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
30944         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
30945         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
30946
30947         Tests for module 'uniwbrk/u32-wordbreaks'.
30948         * modules/uniwbrk/u32-wordbreaks-tests: New file.
30949         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
30950
30951         Tests for module 'uniwbrk/u16-wordbreaks'.
30952         * modules/uniwbrk/u16-wordbreaks-tests: New file.
30953         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
30954
30955         Tests for module 'uniwbrk/u8-wordbreaks'.
30956         * modules/uniwbrk/u8-wordbreaks-tests: New file.
30957         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
30958
30959 2009-02-10  Bruno Haible  <bruno@clisp.org>
30960
30961         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
30962         property.
30963         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
30964         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
30965         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
30966
30967 2009-02-10  Simon Josefsson  <simon@josefsson.org>
30968
30969         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
30970         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
30971
30972 2009-02-10  Bruno Haible  <bruno@clisp.org>
30973
30974         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
30975         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
30976         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
30977         * lib/unilbrk/u8-possible-linebreaks.c: Update.
30978         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
30979         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
30980
30981 2009-02-09  Simon Josefsson  <simon@josefsson.org>
30982
30983         * lib/sockets.h (gl_fd_to_handle): New function.
30984
30985         * tests/test-sockets.c: Call gl_fd_to_handle.
30986
30987 2009-02-09  Bruno Haible  <bruno@clisp.org>
30988
30989         * doc/havelib.texi: Document the conventions on bi-arch systems.
30990
30991 2009-02-08  Bruno Haible  <bruno@clisp.org>
30992
30993         Document the AC_LIB_LINKFLAGS macro.
30994         * doc/havelib.texi: New file, mostly written on 2005-05-24.
30995         * doc/gnulib.texi: Include it.
30996
30997 2009-02-08  Bruno Haible  <bruno@clisp.org>
30998
30999         Fix wrong order of sections, compared to TOC.
31000         * doc/gnulib.texi: Include relocatable-maint.texi after the
31001         "Regular expressions" node, not before.
31002
31003 2009-02-08  Bruno Haible  <bruno@clisp.org>
31004
31005         Tests for module 'unicase/totitle'.
31006         * modules/unicase/totitle-tests: New file.
31007
31008         Tests for module 'unicase/tolower'.
31009         * modules/unicase/tolower-tests: New file.
31010
31011         Tests for module 'unicase/toupper'.
31012         * modules/unicase/toupper-tests: New file.
31013         * tests/unicase/test-mapping-part1.h: New file.
31014         * tests/unicase/test-mapping-part2.h: New file.
31015
31016         New module 'unicase/totitle'.
31017         * modules/unicase/totitle: New file.
31018         * lib/unicase/totitle.c: New file.
31019
31020         New module 'unicase/tolower'.
31021         * modules/unicase/tolower: New file.
31022         * lib/unicase/tolower.c: New file.
31023
31024         New module 'unicase/toupper'.
31025         * modules/unicase/toupper: New file.
31026         * lib/unicase/toupper.c: New file.
31027         * lib/unicase/simple-mapping.h: New file.
31028
31029         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
31030         (mapping_table): New structure.
31031         (output_simple_mapping): New function.
31032         (main): Invoke output_simple_mapping_test and output_simple_mapping.
31033         * modules/gen-uni-tables (Description): Update.
31034         * lib/unicase/toupper.h: New file, automatically generated by
31035         gen-uni-tables.
31036         * lib/unicase/tolower.h: New file, automatically generated by
31037         gen-uni-tables.
31038         * lib/unicase/totitle.h: New file, automatically generated by
31039         gen-uni-tables.
31040         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
31041         gen-uni-tables.
31042         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
31043         gen-uni-tables.
31044         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
31045         gen-uni-tables.
31046
31047         New module 'unicase/base'.
31048         * modules/unicase/base: New file.
31049         * lib/unicase.h: New file.
31050
31051 2009-02-08  Bruno Haible  <bruno@clisp.org>
31052
31053         New module 'uniwbrk/ulc-wordbreaks'.
31054         * modules/uniwbrk/ulc-wordbreaks: New file.
31055         * lib/uniwbrk/ulc-wordbreaks.c: New file.
31056
31057         New module 'uniwbrk/u32-wordbreaks'.
31058         * modules/uniwbrk/u32-wordbreaks: New file.
31059         * lib/uniwbrk/u32-wordbreaks.c: New file.
31060
31061         New module 'uniwbrk/u16-wordbreaks'.
31062         * modules/uniwbrk/u16-wordbreaks: New file.
31063         * lib/uniwbrk/u16-wordbreaks.c: New file.
31064
31065         New module 'uniwbrk/u8-wordbreaks'.
31066         * modules/uniwbrk/u8-wordbreaks: New file.
31067         * lib/uniwbrk/u8-wordbreaks.c: New file.
31068         * lib/uniwbrk/u-wordbreaks.h: New file.
31069
31070         New module 'uniwbrk/table'.
31071         * modules/uniwbrk/table: New file.
31072         * lib/uniwbrk/wbrktable.h: New file.
31073         * lib/uniwbrk/wbrktable.c: New file.
31074
31075         New module 'uniwbrk/wordbreak-property'.
31076         * modules/uniwbrk/wordbreak-property: New file.
31077         * lib/uniwbrk/wordbreak-property.c: New file.
31078
31079         * lib/gen-uni-tables.c (WBP_*): New enum items.
31080         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
31081         (unicode_org_wbp): New variable.
31082         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
31083         New functions.
31084         (wbp_table): New structure.
31085         (output_wbp, output_wbrk_tables): New functions.
31086         (main): Accept additional argument. Invoke fill_org_wbp,
31087         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
31088         output_wbrk_tables.
31089         * modules/gen-uni-tables (Description): Update.
31090         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
31091         gen-uni-tables.
31092
31093         New module 'uniwbrk/base'.
31094         * modules/uniwbrk/base: New file.
31095         * lib/uniwbrk.h: New file.
31096
31097 2009-02-08  Bruno Haible  <bruno@clisp.org>
31098
31099         Update to Unicode 5.1.0.
31100         * lib/gen-uni-tables.c (is_property_alphabetic): Include
31101         U+2185..U+2188.
31102         (is_property_default_ignorable_code_point): Don't include characters
31103         of category Cc or Cs and not-a-characters.
31104         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
31105         U+0D79, U+109E, U+109F, U+A60C.
31106         * lib/unictype/bidi_of.h: Regenerated.
31107         * lib/unictype/blocks.h: Regenerated.
31108         * lib/unictype/categ_C.h: Regenerated.
31109         * lib/unictype/categ_Cf.h: Regenerated.
31110         * lib/unictype/categ_Cn.h: Regenerated.
31111         * lib/unictype/categ_L.h: Regenerated.
31112         * lib/unictype/categ_Ll.h: Regenerated.
31113         * lib/unictype/categ_Lm.h: Regenerated.
31114         * lib/unictype/categ_Lo.h: Regenerated.
31115         * lib/unictype/categ_Lu.h: Regenerated.
31116         * lib/unictype/categ_M.h: Regenerated.
31117         * lib/unictype/categ_Mc.h: Regenerated.
31118         * lib/unictype/categ_Me.h: Regenerated.
31119         * lib/unictype/categ_Mn.h: Regenerated.
31120         * lib/unictype/categ_N.h: Regenerated.
31121         * lib/unictype/categ_Nd.h: Regenerated.
31122         * lib/unictype/categ_Nl.h: Regenerated.
31123         * lib/unictype/categ_No.h: Regenerated.
31124         * lib/unictype/categ_P.h: Regenerated.
31125         * lib/unictype/categ_Pd.h: Regenerated.
31126         * lib/unictype/categ_Pe.h: Regenerated.
31127         * lib/unictype/categ_Pf.h: Regenerated.
31128         * lib/unictype/categ_Pi.h: Regenerated.
31129         * lib/unictype/categ_Po.h: Regenerated.
31130         * lib/unictype/categ_Ps.h: Regenerated.
31131         * lib/unictype/categ_S.h: Regenerated.
31132         * lib/unictype/categ_Sk.h: Regenerated.
31133         * lib/unictype/categ_Sm.h: Regenerated.
31134         * lib/unictype/categ_So.h: Regenerated.
31135         * lib/unictype/categ_of.h: Regenerated.
31136         * lib/unictype/combining.h: Regenerated.
31137         * lib/unictype/ctype_alnum.h: Regenerated.
31138         * lib/unictype/ctype_alpha.h: Regenerated.
31139         * lib/unictype/ctype_graph.h: Regenerated.
31140         * lib/unictype/ctype_lower.h: Regenerated.
31141         * lib/unictype/ctype_print.h: Regenerated.
31142         * lib/unictype/ctype_punct.h: Regenerated.
31143         * lib/unictype/ctype_upper.h: Regenerated.
31144         * lib/unictype/decdigit.h: Regenerated.
31145         * lib/unictype/digit.h: Regenerated.
31146         * lib/unictype/mirror.h: Regenerated.
31147         * lib/unictype/numeric.h: Regenerated.
31148         * lib/unictype/pr_alphabetic.h: Regenerated.
31149         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
31150         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
31151         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
31152         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
31153         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
31154         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
31155         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
31156         * lib/unictype/pr_combining.h: Regenerated.
31157         * lib/unictype/pr_dash.h: Regenerated.
31158         * lib/unictype/pr_decimal_digit.h: Regenerated.
31159         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
31160         * lib/unictype/pr_deprecated.h: Regenerated.
31161         * lib/unictype/pr_diacritic.h: Regenerated.
31162         * lib/unictype/pr_extender.h: Regenerated.
31163         * lib/unictype/pr_format_control.h: Regenerated.
31164         * lib/unictype/pr_grapheme_base.h: Regenerated.
31165         * lib/unictype/pr_grapheme_extend.h: Regenerated.
31166         * lib/unictype/pr_grapheme_link.h: Regenerated.
31167         * lib/unictype/pr_id_continue.h: Regenerated.
31168         * lib/unictype/pr_id_start.h: Regenerated.
31169         * lib/unictype/pr_ideographic.h: Regenerated.
31170         * lib/unictype/pr_ignorable_control.h: Regenerated.
31171         * lib/unictype/pr_lowercase.h: Regenerated.
31172         * lib/unictype/pr_math.h: Regenerated.
31173         * lib/unictype/pr_numeric.h: Regenerated.
31174         * lib/unictype/pr_other_alphabetic.h: Regenerated.
31175         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
31176         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
31177         * lib/unictype/pr_other_id_continue.h: Regenerated.
31178         * lib/unictype/pr_other_lowercase.h: Regenerated.
31179         * lib/unictype/pr_other_math.h: Regenerated.
31180         * lib/unictype/pr_punctuation.h: Regenerated.
31181         * lib/unictype/pr_sentence_terminal.h: Regenerated.
31182         * lib/unictype/pr_soft_dotted.h: Regenerated.
31183         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
31184         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
31185         * lib/unictype/pr_unified_ideograph.h: Regenerated.
31186         * lib/unictype/pr_uppercase.h: Regenerated.
31187         * lib/unictype/pr_xid_continue.h: Regenerated.
31188         * lib/unictype/pr_xid_start.h: Regenerated.
31189         * lib/unictype/pr_zero_width.h: Regenerated.
31190         * lib/unictype/scripts.h: Regenerated.
31191         * lib/unictype/scripts_byname.gperf: Regenerated.
31192         * lib/unictype/sy_java_ident.h: Regenerated.
31193         * lib/unilbrk/lbrkprop1.h: Regenerated.
31194         * lib/unilbrk/lbrkprop2.h: Regenerated.
31195         * tests/unictype/test-categ_C.c: Regenerated.
31196         * tests/unictype/test-categ_Cf.c: Regenerated.
31197         * tests/unictype/test-categ_Cn.c: Regenerated.
31198         * tests/unictype/test-categ_L.c: Regenerated.
31199         * tests/unictype/test-categ_Ll.c: Regenerated.
31200         * tests/unictype/test-categ_Lm.c: Regenerated.
31201         * tests/unictype/test-categ_Lo.c: Regenerated.
31202         * tests/unictype/test-categ_Lu.c: Regenerated.
31203         * tests/unictype/test-categ_M.c: Regenerated.
31204         * tests/unictype/test-categ_Mc.c: Regenerated.
31205         * tests/unictype/test-categ_Me.c: Regenerated.
31206         * tests/unictype/test-categ_Mn.c: Regenerated.
31207         * tests/unictype/test-categ_N.c: Regenerated.
31208         * tests/unictype/test-categ_Nd.c: Regenerated.
31209         * tests/unictype/test-categ_Nl.c: Regenerated.
31210         * tests/unictype/test-categ_No.c: Regenerated.
31211         * tests/unictype/test-categ_P.c: Regenerated.
31212         * tests/unictype/test-categ_Pd.c: Regenerated.
31213         * tests/unictype/test-categ_Pe.c: Regenerated.
31214         * tests/unictype/test-categ_Pf.c: Regenerated.
31215         * tests/unictype/test-categ_Pi.c: Regenerated.
31216         * tests/unictype/test-categ_Po.c: Regenerated.
31217         * tests/unictype/test-categ_Ps.c: Regenerated.
31218         * tests/unictype/test-categ_S.c: Regenerated.
31219         * tests/unictype/test-categ_Sk.c: Regenerated.
31220         * tests/unictype/test-categ_Sm.c: Regenerated.
31221         * tests/unictype/test-categ_So.c: Regenerated.
31222         * tests/unictype/test-ctype_alnum.c: Regenerated.
31223         * tests/unictype/test-ctype_alpha.c: Regenerated.
31224         * tests/unictype/test-ctype_graph.c: Regenerated.
31225         * tests/unictype/test-ctype_lower.c: Regenerated.
31226         * tests/unictype/test-ctype_print.c: Regenerated.
31227         * tests/unictype/test-ctype_punct.c: Regenerated.
31228         * tests/unictype/test-ctype_upper.c: Regenerated.
31229         * tests/unictype/test-decdigit.h: Regenerated.
31230         * tests/unictype/test-digit.h: Regenerated.
31231         * tests/unictype/test-numeric.h: Regenerated.
31232         * tests/unictype/test-pr_alphabetic.c: Regenerated.
31233         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
31234         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
31235         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
31236         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
31237         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
31238         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
31239         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
31240         * tests/unictype/test-pr_combining.c: Regenerated.
31241         * tests/unictype/test-pr_dash.c: Regenerated.
31242         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
31243         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
31244         * tests/unictype/test-pr_deprecated.c: Regenerated.
31245         * tests/unictype/test-pr_diacritic.c: Regenerated.
31246         * tests/unictype/test-pr_extender.c: Regenerated.
31247         * tests/unictype/test-pr_format_control.c: Regenerated.
31248         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
31249         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
31250         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
31251         * tests/unictype/test-pr_id_continue.c: Regenerated.
31252         * tests/unictype/test-pr_id_start.c: Regenerated.
31253         * tests/unictype/test-pr_ideographic.c: Regenerated.
31254         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
31255         * tests/unictype/test-pr_lowercase.c: Regenerated.
31256         * tests/unictype/test-pr_math.c: Regenerated.
31257         * tests/unictype/test-pr_numeric.c: Regenerated.
31258         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
31259         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
31260         Regenerated.
31261         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
31262         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
31263         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
31264         * tests/unictype/test-pr_other_math.c: Regenerated.
31265         * tests/unictype/test-pr_punctuation.c: Regenerated.
31266         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
31267         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
31268         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
31269         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
31270         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
31271         * tests/unictype/test-pr_uppercase.c: Regenerated.
31272         * tests/unictype/test-pr_xid_continue.c: Regenerated.
31273         * tests/unictype/test-pr_xid_start.c: Regenerated.
31274         * tests/unictype/test-pr_zero_width.c: Regenerated.
31275
31276         Update to Unicode 5.1.0.
31277         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
31278         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
31279         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
31280         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
31281         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
31282         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
31283         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
31284         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
31285         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
31286         (nonspacing_table_ind): Update.
31287         * tests/uniwidth/test-uc_width2.sh: Update expected result.
31288
31289         Update to Unicode 5.1.0.
31290         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
31291         code transform.
31292         * lib/uniname/uniname.c (unicode_character_name,
31293         unicode_name_character): Add the range 0x1Fxxx to the code transform.
31294         * lib/uniname/uninames.h: Regenerated.
31295         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
31296
31297 2009-02-07  Bruno Haible  <bruno@clisp.org>
31298
31299         Merge gen-ctype and gen-lbrk into a single program.
31300         * lib/gen-uni-tables.c: New file, incorporating
31301         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
31302         Add directory prefixes to the names of the generated files.
31303         * lib/unictype/gen-ctype.c: Remove file.
31304         * lib/unilbrk/gen-lbrk.c: Remove file.
31305         * modules/gen-uni-tables: New file.
31306         * modules/unictype/gen-ctype: Remove file.
31307         * modules/unilbrk/gen-lbrk: Remove file.
31308
31309 2009-02-07  Bruno Haible  <bruno@clisp.org>
31310
31311         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
31312
31313         New module 'unistr/u32-strcoll'.
31314         * modules/unistr/u32-strcoll: New file.
31315         * lib/unistr/u32-strcoll.c: New file.
31316
31317         New module 'unistr/u16-strcoll'.
31318         * modules/unistr/u16-strcoll: New file.
31319         * lib/unistr/u16-strcoll.c: New file.
31320
31321         New module 'unistr/u8-strcoll'.
31322         * modules/unistr/u8-strcoll: New file.
31323         * lib/unistr/u8-strcoll.c: New file.
31324         * lib/unistr/u-strcoll.h: New file.
31325
31326 2009-02-07  Bruno Haible  <bruno@clisp.org>
31327
31328         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
31329         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31330         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31331         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
31332         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
31333         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
31334
31335 2009-02-07  Bruno Haible  <bruno@clisp.org>
31336
31337         Make 64-bit clean.
31338         * lib/unictype/gen-ctype.c (output_predicate, output_category,
31339         output_combclass, output_bidi_category, output_decimal_digit,
31340         output_digit, output_numeric, output_mirror, output_scripts,
31341         output_ident_category): Use proper width specifier in format strings.
31342
31343 2009-02-07  Bruno Haible  <bruno@clisp.org>
31344
31345         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
31346         failure behaviour.
31347
31348 2009-02-07  Jim Meyering  <meyering@redhat.com>
31349
31350         regex: avoid compilation failure with upcoming gcc-4.4
31351         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
31352         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
31353         "... error: integer overflow in preprocessor expression".
31354
31355 2009-02-05  Ben Pfaff  <blp@gnu.org>
31356
31357         Fix link errors on Windows when close module is used.
31358         * modules/close: Add $(LIB_CLOSE) to Link section.
31359         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
31360         $(LIB_CLOSE) on Windows.
31361
31362 2009-02-05  Jim Meyering  <meyering@redhat.com>
31363
31364         still avoid unused-parameter warnings, but do it cleanly
31365         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
31366         (get_fs_usage): Cast to void instead.
31367         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
31368         (dev_from_mount_options, read_file_system_list): Cast to void.
31369         Prompted by Bruno Haible.
31370
31371 2009-02-04  Jim Meyering  <meyering@redhat.com>
31372
31373         fsusage.c: correct copyright year
31374         * lib/fsusage.c: Reflect year in which the change is pushed into
31375
31376         avoid misc. warnings
31377         * lib/fsusage.c (UNUSED_PARAM): Define.
31378         (get_fs_usage): Mark parameter "disk" as unused.
31379         * lib/getugroups.c (getgrent): Use "void" in prototype.
31380         * lib/mountlist.c: Mark unused parameters.
31381         (read_file_system_list): Declare a local with "const".
31382         * lib/nanosleep.c (getnow): Declare static.
31383         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
31384
31385         dirfd: set errno upon failure
31386         * lib/dirfd.c: Include <errno.h>.
31387         Set errno to ENOTSUP when returning -1.
31388         * modules/dirfd (Depends-on): Add errno.
31389         Suggested by John Kodis <kodis@comcast.net>.
31390
31391 2009-02-01  Bruno Haible  <bruno@clisp.org>
31392
31393         Don't assume sizeof (long) >= sizeof (void *).
31394         * lib/memcmp.c: Include stdint.h.
31395         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
31396         srcp2 to 'const byte *'.
31397         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
31398         types to uintptr_t.
31399         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
31400         * modules/memcmp (Depends-on): Add stdint.
31401         Reported by Ozkan Sezer <sezeroz@gmail.com>.
31402
31403 2009-01-30  Eric Blake  <ebb9@byu.net>
31404
31405         fix more require-before-expand issues
31406         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
31407         expand, AC_PROG_AWK.
31408         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
31409
31410 2009-01-28  Eric Blake  <ebb9@byu.net>
31411
31412         version-etc: use consistent URL formatting
31413         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
31414         Improve formatting.  Use fputs for string without %.
31415
31416 2009-01-28  Jim Meyering  <meyering@redhat.com>
31417
31418         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
31419         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
31420         "underquoted definition of NAME" from autoconf-2.59.
31421
31422 2009-01-28  Bruno Haible  <bruno@clisp.org>
31423
31424         * doc/gnulib.texi: Add "Obsolete modules" to index.
31425
31426 2009-01-28  Jim Meyering  <meyering@redhat.com>
31427
31428         useless-if-before-free: recognize more variants
31429         * build-aux/useless-if-before-free: Also recognize e.g.,
31430         if (NULL != p) free (p);
31431
31432 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
31433
31434         test-getaddrinfo: skip (don't fail) this test when there's no network
31435         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
31436         on the presumption that it means you lack network access.
31437
31438 2009-01-26  Jim Meyering  <meyering@redhat.com>
31439
31440         fflush: avoid warnings on modern systems
31441         * lib/fflush.c (rpl_fflush): Move declarations of locals,
31442         pos and result, into scopes where they're used.
31443
31444 2009-01-26  Eric Blake  <ebb9@byu.net>
31445
31446         Silence warning reintroduced by recent extensions patch.
31447         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
31448         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
31449         autoconf.
31450
31451         Backport improved autoconf semantics of AC_DEFUN_ONCE.
31452         * m4/00gnulib.m4: New file.
31453         * gnulib-tool (func_get_filelist): Always use it.
31454         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
31455         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
31456
31457 2009-01-25  Bruno Haible  <bruno@clisp.org>
31458
31459         Make test-quotearg work on MacOS X and AIX.
31460         * tests/test-quotearg.sh: New file.
31461         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
31462         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
31463         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
31464         include <libintl.h>.
31465         (fake_locale): Remove variable.
31466         (gettext, dgettext, dcgettext): Remove functions.
31467         (main): Instead of setting a fake locale, set a real locale. Call
31468         textdomain and bindtextdomain.
31469         * modules/quotearg-tests (Files): Add the new files.
31470         (Depends-on): Add gettext, setenv, unsetenv.
31471         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
31472         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
31473         Augment TESTS_ENVIRONMENT.
31474
31475 2009-01-25  Bruno Haible  <bruno@clisp.org>
31476
31477         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
31478         fr_FR.ISO8859-1 locale on MacOS X.
31479         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
31480         ja_JP.eucJP locale on MacOS X.
31481         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
31482         zh_CN.GB18030 locale on MacOS X.
31483
31484 2009-01-25  Bruno Haible  <bruno@clisp.org>
31485
31486         Avoid link errors on MacOS X 10.3.
31487         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
31488         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31489
31490 2009-01-25  Bruno Haible  <bruno@clisp.org>
31491
31492         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31493         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
31494         * modules/pipe (Files): Remove m4/posix_spawn.m4.
31495         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31496         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
31497         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31498         posix_spawnattr_init, posix_spawnattr_setsigmask,
31499         posix_spawnattr_setflags, posix_spawnattr_destroy.
31500
31501         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31502         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
31503         * modules/execute (Files): Remove m4/posix_spawn.m4.
31504         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31505         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31506         posix_spawnattr_init, posix_spawnattr_setsigmask,
31507         posix_spawnattr_setflags, posix_spawnattr_destroy.
31508
31509 2009-01-25  Bruno Haible  <bruno@clisp.org>
31510
31511         * lib/glthread/threadlib.c: Include <stdlib.h>.
31512
31513 2009-01-25  Bruno Haible  <bruno@clisp.org>
31514
31515         * lib/glthread/threadlib.c (dummy): New declaration.
31516
31517 2009-01-25  Bruno Haible  <bruno@clisp.org>
31518
31519         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
31520         multibyte characters also for the GB18030 encoding. Don't crash when
31521         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
31522
31523 2009-01-25  Bruno Haible  <bruno@clisp.org>
31524
31525         Avoid redefining 'struct random_data' on OSF/1 5.1.
31526         * lib/stdlib.in.h: Include <random.h> if it exists.
31527         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
31528         HAVE_RANDOM_H. Include <random.h> when testing whether
31529         'struct random_data' exists.
31530         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
31531
31532 2009-01-25  Bruno Haible  <bruno@clisp.org>
31533
31534         Don't install charset.alias on MacOS X >= 10.3.
31535         * lib/localcharset.c (DARWIN7): New macro.
31536         (get_charset_aliases): Hardcode the result for Darwin7.
31537         * modules/localcharset (install-exec-local): Don't install
31538         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
31539
31540 2009-01-25  Bruno Haible  <bruno@clisp.org>
31541
31542         Don't install charset.alias on mingw and Cygwin.
31543         * modules/localcharset (install-exec-local): Don't install
31544         charset.alias on mingw and Cygwin, if the file does not yet exist.
31545         The result for these platforms is hardcoded in localcharset.c.
31546
31547 2009-01-25  Bruno Haible  <bruno@clisp.org>
31548
31549         Make it possible again to use AC_GNU_SOURCE together with gnulib.
31550         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
31551         before requiring AC_USE_SYSTEM_EXTENSIONS.
31552
31553 2009-01-25  Jim Meyering  <meyering@redhat.com>
31554
31555         c-strtod: avoid warnings
31556         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
31557         "assignment discards qualifiers from pointer target type" warnings.
31558
31559 2009-01-24  Bruno Haible  <bruno@clisp.org>
31560
31561         Add support for non-UTF-8 locales on MacOS X.
31562         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
31563         canonical encodings. For Darwin 7 and newer, don't map traditional
31564         encodings to UTF-8.
31565         Reported by Vincent Lefevre <vincent@vinc17.org>
31566         at <http://savannah.gnu.org/bugs/?25235>.
31567
31568 2009-01-24  Bruno Haible  <bruno@clisp.org>
31569
31570         * doc/gnulib.texi (Obsolete modules): New section.
31571         Reported by Mike Frysinger <vapier@gentoo.org>.
31572
31573 2009-01-24  Bruno Haible  <bruno@clisp.org>
31574
31575         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
31576         (%.dvi): New rule.
31577
31578 2009-01-24  Bruno Haible  <bruno@clisp.org>
31579
31580         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
31581         Reported by Eric Blake.
31582
31583 2009-01-24  Bruno Haible  <bruno@clisp.org>
31584
31585         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
31586         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
31587         Reported by Gary V. Vaughan <gary@gnu.org>.
31588
31589 2009-01-24  Bruno Haible  <bruno@clisp.org>
31590
31591         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
31592
31593 2009-01-23  Bruno Haible  <bruno@clisp.org>
31594
31595         Make c-strtod, c-strtold usable in libraries.
31596         * lib/c-strtod.c: Include string.h instead of xalloc.h.
31597         (C_STRTOD): Call strdup instead of xstrdup.
31598         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
31599         * modules/c-strtold (Depends-on): Likewise.
31600         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
31601         * NEWS: Mention the change.
31602         Reported by Michael Gold <mgold@ncf.ca>.
31603
31604 2009-01-23  Jim Meyering  <meyering@redhat.com>
31605
31606         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
31607         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
31608         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
31609
31610 2009-01-23  Simon Josefsson  <simon@josefsson.org>
31611
31612         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
31613         GNU CoreUtils.
31614         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
31615         * modules/version-etc (Description): Update.
31616
31617 2009-01-22  Bruno Haible  <bruno@clisp.org>
31618
31619         Cache the C locale object.
31620         * lib/c-strtod.c (c_locale_cache): New variable.
31621         (c_locale): New function.
31622         (C_STRTOD): Use it, and don't call freelocale.
31623         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
31624         Suggested by Paolo Bonzini.
31625
31626 2009-01-21  Bruno Haible  <bruno@clisp.org>
31627
31628         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
31629         conditions other than overflow.
31630
31631 2009-01-21  Bruno Haible  <bruno@clisp.org>
31632
31633         * lib/c-strtod.c: Include errno.h.
31634         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
31635         value from STRTOD_L and STRTOD.
31636
31637 2009-01-21  Bruno Haible  <bruno@clisp.org>
31638         and Jim Meyering  <meyering@redhat.com>
31639
31640         nanosleep: skip configure test (fail it) for apple universal builds
31641         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
31642         universal builds, assume that nanosleep does not work.
31643         * modules/nanosleep (Depends-on): Add multiarch.
31644
31645         mktime: skip configure test (fail it) for apple universal builds
31646         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
31647         universal builds, assume that mktime does not work.
31648         * modules/mktime (Depends-on): Add multiarch.
31649
31650 2009-01-21  Eric Blake  <ebb9@byu.net>
31651
31652         multiarch: avoid expand-before-require warning
31653         * modules/multiarch (configure.ac): Require, rather than expand,
31654         gl_MULTIARCH.
31655         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
31656         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
31657         enforce that all clients require it.  Partial reversion of
31658         2008-12-29 patch.
31659
31660         error: avoid expand-before-require warning
31661         * modules/errno (configure.ac): Require, rather than expand,
31662         gl_HEADER_ERRNO_H.
31663         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
31664         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
31665         enforce that all clients require it.
31666
31667         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
31668         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
31669         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
31670         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
31671
31672 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
31673
31674         Revert:
31675         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31676
31677         regex: do not depend on obsolete modules.
31678         * modules/regex: Remove memcmp and memmove.
31679
31680 2009-01-20  Bruno Haible  <bruno@clisp.org>
31681
31682         Make the 'link' module link on Windows NT 4.
31683         * lib/link.c (_WIN32_WINNT): Don't define.
31684         (CreateHardLinkFuncType): New type.
31685         (CreateHardLinkFunc, initialized): New variables.
31686         (initialize): New function.
31687         (link): Invoke CreateHardLink indirectly through the function pointer.
31688
31689 2009-01-20  Bruno Haible  <bruno@clisp.org>
31690
31691         Fix compilation failure on mingw.
31692         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
31693
31694 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
31695
31696         * doc/c-strtod.texi: Mention a couple of restrictions.
31697
31698 2009-01-20  Jim Meyering  <meyering@redhat.com>
31699
31700         gettimeofday: move more declarations out of functions
31701         * lib/gettimeofday.c: Move extern declarations of tzset and
31702         gmtime out of containing functions.  Prompted by Bruno Haible.
31703
31704 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31705
31706         regex: do not depend on obsolete modules.
31707         * modules/regex: Remove memcmp and memmove.
31708
31709 2009-01-19  Bruno Haible  <bruno@clisp.org>
31710
31711         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31712         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
31713         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31714         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
31715         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
31716
31717 2009-01-19  Bruno Haible  <bruno@clisp.org>
31718
31719         * tests/test-link.c: Include <errno.h>.
31720         (main): Exit with code 77 when a hard link cannot be created due to
31721         the file system.
31722         * tests/test-link.sh: Skip test when a hard link cannot be created due
31723         to the file system.
31724         Suggested by Eric Blake.
31725
31726 2009-01-19  Martin Lambers  <marlam@marlam.de>
31727
31728         * modules/link-tests: New file.
31729         * tests/test-link.sh: New file.
31730         * tests/test-link.c: New file.
31731
31732 2009-01-19  Eric Blake  <ebb9@byu.net>
31733
31734         doc: mention another function added in cygwin 1.7.0
31735         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
31736         Another new function in cygwin 1.7.
31737
31738 2009-01-19  Bruno Haible  <bruno@clisp.org>
31739
31740         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31741         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
31742         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
31743         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31744         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31745         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31746         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31747         * m4/md4.m4 (gl_MD4): Likewise.
31748         * m4/md5.m4 (gl_MD5): Likewise.
31749         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
31750         * m4/sha1.m4 (gl_SHA1): Likewise.
31751         * m4/sha256.m4 (gl_SHA256): Likewise.
31752         * m4/sha512.m4 (gl_SHA512): Likewise.
31753
31754 2009-01-19  Bruno Haible  <bruno@clisp.org>
31755
31756         * modules/uniname/uniname-tests (Depends-on): Add progname.
31757         * tests/uniname/test-uninames.c: Include progname.h.
31758         (main): Call set_program_name.
31759
31760         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
31761         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
31762         (main): Call set_program_name.
31763
31764         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
31765         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
31766         (main): Call set_program_name.
31767
31768         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
31769         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
31770         (main): Call set_program_name.
31771
31772         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
31773         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
31774         (main): Call set_program_name.
31775
31776         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
31777         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
31778         (main): Call set_program_name.
31779
31780         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
31781         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
31782         (main): Call set_program_name.
31783
31784         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
31785         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
31786         (main): Call set_program_name.
31787
31788         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
31789         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
31790         (main): Call set_program_name.
31791
31792 2009-01-19  Eric Blake  <ebb9@byu.net>
31793
31794         test-unistd: test previous patch
31795         * tests/test-unistd.c: Test *_FILENO macros.
31796
31797         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
31798         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31799         Guarantee a definition.
31800         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
31801         * modules/unistd-safer (Depends-on): Add dependency on unistd.
31802         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
31803         * lib/dup-safer.c (STDERR_FILENO): Likewise.
31804         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31805         Likewise.
31806         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
31807         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
31808         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31809         Likewise.
31810         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
31811         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
31812         (STDERR_FILENO): Likewise.
31813         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
31814         (STDERR_FILENO): Likewise.
31815         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
31816         (STDERR_FILENO): Likewise.
31817         Reported by Elbert Pol.
31818
31819 2009-01-19  Eric Blake  <ebb9@byu.net>
31820
31821         doc: mention more functions added in cygwin 1.7.0
31822         * doc/posix-functions/abort.texi (abort): Update wording related
31823         to cygwin.
31824         * doc/posix-functions/daylight.texi (daylight): Likewise.
31825         * doc/posix-functions/optarg.texi (optarg): Likewise.
31826         * doc/posix-functions/optarg.texi (opterr): Likewise.
31827         * doc/posix-functions/optarg.texi (optind): Likewise.
31828         * doc/posix-functions/optarg.texi (optopt): Likewise.
31829         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
31830         worked in 1.5.x, and was withdrawn in 1.7.
31831         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31832         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
31833         cygwin versions.
31834         * doc/posix-functions/perror.texi (perror): Likewise.
31835         * doc/posix-functions/printf.texi (printf): Likewise.
31836         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
31837         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
31838         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31839         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31840         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31841         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
31842         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31843         Likewise.
31844         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31845         Likewise.
31846         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
31847         this function.
31848         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
31849         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
31850         Likewise.
31851         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
31852         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
31853         * doc/posix-functions/confstr.texi (confstr): Likewise.
31854         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
31855         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
31856         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
31857         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
31858         * doc/posix-functions/fputws.texi (fputws): Likewise.
31859         * doc/posix-functions/fwide.texi (fwide): Likewise.
31860         * doc/posix-functions/getwc.texi (getwc): Likewise.
31861         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
31862         * doc/posix-functions/putwc.texi (putwc): Likewise.
31863         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31864         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
31865         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
31866         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31867         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
31868         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
31869         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
31870         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
31871         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
31872         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
31873         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
31874
31875 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31876
31877         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
31878         * lib/ioctl.c: Include <sys/ioctl.h>.
31879
31880 2009-01-19  Simon Josefsson  <simon@josefsson.org>
31881
31882         * modules/getdate-tests (Depends-on): Add progname.
31883         * tests/test-getdate.c: Use progname module, to avoid link errors
31884         on non-glibc systems.
31885
31886 2009-01-18  Simon Josefsson  <simon@josefsson.org>
31887
31888         * modules/filenamecat-tests (Depends-on): Add progname.
31889         * modules/fstrcmp-tests (Depends-on): Likewise.
31890
31891         * tests/test-filenamecat.c: Use progname module, to avoid link
31892         errors on non-glibc systems.
31893         * tests/test-fstrcmp.c: Likewise.
31894
31895 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31896
31897         gettimeofday: avoid warning: nested extern declaration of 'localtime'
31898         * lib/gettimeofday.c: Move extern declaration out of function.
31899
31900 2009-01-18  Bruno Haible  <bruno@clisp.org>
31901
31902         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31903         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31904         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
31905
31906 2009-01-18  Bruno Haible  <bruno@clisp.org>
31907
31908         * lib/strftime.c (MEMPCPY): Remove unused macro.
31909         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
31910
31911 2009-01-18  Martin Lambers  <marlam@marlam.de>
31912
31913         New module 'link'.
31914         * lib/unistd.in.h (link): New declaration.
31915         * lib/link.c: New file.
31916         * m4/link.m4: New file.
31917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
31918         HAVE_LINK.
31919         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
31920         * modules/link: New file.
31921         * doc/posix-functions/link.texi: Mention the new module.
31922
31923 2009-01-18  Bruno Haible  <bruno@clisp.org>
31924
31925         * tests/test-avltree_list.c (main): Call set_program_name.
31926         * tests/test-avltree_oset.c (main): Likewise.
31927         * tests/test-obstack-printf.c: Include progname.h.
31928         (main): Call set_program_name.
31929         * tests/test-quotearg.c: Include progname.h.
31930         (main): Call set_program_name.
31931         * tests/test-xmemdup0.c: Include progname.h.
31932         (main): Call set_program_name.
31933
31934 2009-01-18  Bruno Haible  <bruno@clisp.org>
31935
31936         New module 'alphasort'.
31937         * lib/dirent.in.h (alphasort): New declaration.
31938         * lib/alphasort.c: New file, from glibc with modifications.
31939         * m4/alphasort.m4: New file.
31940         * modules/alphasort: New file.
31941         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
31942         HAVE_ALPHASORT.
31943         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
31944         HAVE_ALPHASORT.
31945         * doc/posix-functions/alphasort.texi: Mention the new module and the
31946         portability problems.
31947
31948 2009-01-18  Bruno Haible  <bruno@clisp.org>
31949
31950         New module 'scandir'.
31951         * lib/dirent.in.h (scandir): New declaration.
31952         * lib/scandir.c: New file, from glibc with modifications.
31953         * m4/scandir.m4: New file.
31954         * modules/scandir: New file.
31955         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
31956         HAVE_SCANDIR.
31957         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
31958         HAVE_SCANDIR.
31959         * doc/posix-functions/scandir.texi: Mention the new module and the
31960         portability problems.
31961
31962 2009-01-17  Bruno Haible  <bruno@clisp.org>
31963
31964         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
31965         Update documentation.
31966         (func_remove_suffix): Escape all dots in the suffix. Update
31967         documentation.
31968         (func_filter_filelist): Update documentation.
31969         Reported by Ralf Wildenhues.
31970
31971 2009-01-17  Bruno Haible  <bruno@clisp.org>
31972
31973         * modules/dprintf-posix-tests: New file.
31974         * tests/test-dprintf-posix.sh: New file.
31975         * tests/test-dprintf-posix.c: New file.
31976
31977         New modules 'dprintf', 'dprintf-posix'.
31978         * lib/stdio.in.h (dprintf): New declaration.
31979         * lib/dprintf.c: New file.
31980         * m4/dprintf.m4: New file.
31981         * m4/dprintf-posix.m4: New file.
31982         * modules/dprintf: New file.
31983         * modules/dprintf-posix: New file.
31984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
31985         HAVE_DPRINTF, REPLACE_DPRINTF.
31986         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
31987         HAVE_DPRINTF, REPLACE_DPRINTF.
31988         * doc/posix-functions/dprintf.texi: Mention the new modules.
31989
31990 2009-01-17  Bruno Haible  <bruno@clisp.org>
31991
31992         * modules/vdprintf-posix-tests: New file.
31993         * tests/test-vdprintf-posix.sh: New file.
31994         * tests/test-vdprintf-posix.c: New file.
31995
31996         New modules 'vdprintf', 'vdprintf-posix'.
31997         * lib/stdio.in.h (vdprintf): New declaration.
31998         * lib/vdprintf.c: New file.
31999         * m4/vdprintf.m4: New file.
32000         * m4/vdprintf-posix.m4: New file.
32001         * modules/vdprintf: New file.
32002         * modules/vdprintf-posix: New file.
32003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
32004         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32005         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
32006         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32007         * doc/posix-functions/vdprintf.texi: Mention the new modules.
32008
32009 2009-01-17  Bruno Haible  <bruno@clisp.org>
32010
32011         Fix replacement of fopen on mingw.
32012         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
32013         mingw.
32014
32015 2009-01-17  Bruno Haible  <bruno@clisp.org>
32016
32017         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
32018         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
32019
32020 2009-01-17  Bruno Haible  <bruno@clisp.org>
32021
32022         Avoid test-fflush2.sh failure on mingw.
32023         * tests/test-fflush2.c: Include binary-io.h.
32024         (main): Put standard input into binary mode.
32025         * modules/fflush-tests (Depends-on): Add binary-io.
32026
32027 2009-01-17  Bruno Haible  <bruno@clisp.org>
32028
32029         * lib/wchar.in.h: In another particular situation, include only the
32030         system's <wchar.h> file.
32031         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
32032         Reported by Albert Chin-A-Young <china@thewrittenword.com>
32033         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
32034
32035 2009-01-17  Bruno Haible  <bruno@clisp.org>
32036
32037         Support for stripping executables in --enable-relocatable.
32038         * build-aux/install-reloc: Expect one more argument, or an environment
32039         variable RELOC_STRIP_PROG. If set, strip the destination program and
32040         its wrapper.
32041         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
32042         RELOC_STRIP_PROG.
32043         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
32044         to set RELOCATABLE_STRIP.
32045         * NEWS: Mention the new Makefile requirement.
32046
32047 2009-01-17  Bruno Haible  <bruno@clisp.org>
32048
32049         * build-aux/install-reloc: Remove debugging information left over by
32050         C compiler on MacOS X.
32051
32052 2009-01-17  Bruno Haible  <bruno@clisp.org>
32053
32054         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
32055         * lib/progreloc.c (find_executable): Fix type of pointer passed to
32056         _NSGetExecutablePath.
32057
32058 2009-01-16  Jim Meyering  <meyering@redhat.com>
32059
32060         strerror: avoid warnings about discarding "const"
32061         * lib/strerror.c (rpl_strerror): Instead of returning a const
32062         string from each and every "case", use a variable, and add a single
32063         cast after the switch.
32064
32065 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
32066
32067         * lib/arpa_inet.in.h: Add extern "C" block for C++.
32068
32069 2009-01-16  Bruno Haible  <bruno@clisp.org>
32070
32071         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
32072         array initializer syntax that also works in C++ mode.
32073         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32074
32075 2009-01-16  Jim Meyering  <meyering@redhat.com>
32076
32077         poll: suppress a warning
32078         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
32079         to ignore "...unsigned expression < 0 is always false" warnings.
32080
32081 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
32082
32083         poll: remove declarations of unused variables
32084         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
32085         sockbuf and optlen.
32086
32087 2009-01-15  Bruno Haible  <bruno@clisp.org>
32088
32089         Make fflush-after-ungetc POSIX compliant on BSD systems.
32090         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
32091         (clear_ungetc_buffer): Implement also for other systems.
32092         (rpl_fflush): On glibc systems, invoke
32093         clear_ungetc_buffer_preserving_position. Otherwise, invoke
32094         clear_ungetc_buffer after fetching the stream's position, not before.
32095
32096 2009-01-15  Bruno Haible  <bruno@clisp.org>
32097
32098         Make fflush-after-ungetc POSIX compliant on glibc systems.
32099         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
32100         after ungetc.
32101         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
32102         (rpl_fflush): On glibc systems, simply call the system's fflush
32103         function after clearing the ungetc buffer.
32104         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
32105         Instead, lseek only to the end of file, then use the system's fseeko
32106         for the rest. On glibc systems, reset the EOF indicator bit.
32107
32108 2009-01-15  Jim Meyering  <meyering@redhat.com>
32109
32110         openmp.m4: revert quote-adding change, for portability to older autoconf
32111         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
32112         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
32113         Simon Josefsson noticed the problem when using autoconf-2.61.
32114
32115 2009-01-15  Bruno Haible  <bruno@clisp.org>
32116
32117         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
32118         * tests/test-fflush2.c (ASSERT): Always fail.
32119         (main): Add two tests for fflush() after ungetc(), taking into account
32120         the Austin Group's clarification.
32121         Suggested by Eric Blake.
32122
32123 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
32124
32125         mktime.m4: remove K&R-style function prototypes
32126         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
32127         for the Sun C++ compiler.
32128
32129 2009-01-14  Bruno Haible  <bruno@clisp.org>
32130
32131         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
32132         while including <wchar.h>.
32133         * lib/wchar.in.h: In two particular situations on HP-UX, include only
32134         the system's <wchar.h> file.
32135         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32136
32137 2009-01-14  Bruno Haible  <bruno@clisp.org>
32138
32139         * m4/csharp.m4: Don't mention gettext on the serial number line.
32140         * m4/csharpexec.m4: Likewise.
32141         * m4/eaccess.m4: Likewise.
32142         * m4/javaexec.m4: Likewise.
32143         * m4/sig_atomic_t.m4: Likewise.
32144         * m4/tmpdir.m4: Likewise.
32145         * m4/intldir.m4: Bump gettext version.
32146         * m4/lib-ld.m4: Likewise.
32147
32148 2009-01-14  Bruno Haible  <bruno@clisp.org>
32149
32150         * lib/progname.c (set_program_name): Add more comments.
32151         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32152
32153 2009-01-14  Simon Josefsson  <simon@josefsson.org>
32154
32155         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
32156         were sys/stat.h does not define it.
32157
32158 2009-01-14  Jim Meyering  <meyering@redhat.com>
32159
32160         many *.m4 files: improve m4 quoting
32161         99% of this change was performed by running the following commands:
32162         git ls-files | grep '\.m4$' | xargs perl -pi \
32163           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
32164           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32165           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32166           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
32167         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
32168         The remainder were to add Copyright dates, increment serial numbers,
32169         undo some changes in comments, exclude m4/intl.m4, and add quotes
32170         around the "1" in ",1" where the unusual spacing prohibited the
32171         above regexps from doing the job.  For more details, see
32172         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
32173         * m4/acl.m4: Modified.
32174         * m4/afs.m4: Likewise.
32175         * m4/alloca.m4: Likewise.
32176         * m4/argp.m4: Likewise.
32177         * m4/argz.m4: Likewise.
32178         * m4/atexit.m4: Likewise.
32179         * m4/bison-i18n.m4: Likewise.
32180         * m4/bison.m4: Likewise.
32181         * m4/byteswap.m4: Likewise.
32182         * m4/c-stack.m4: Likewise.
32183         * m4/c-strtod.m4: Likewise.
32184         * m4/calloc.m4: Likewise.
32185         * m4/canonicalize-lgpl.m4: Likewise.
32186         * m4/chown.m4: Likewise.
32187         * m4/clock_time.m4: Likewise.
32188         * m4/codeset.m4: Likewise.
32189         * m4/copy-file.m4: Likewise.
32190         * m4/csharp.m4: Likewise.
32191         * m4/csharpcomp.m4: Likewise.
32192         * m4/csharpexec.m4: Likewise.
32193         * m4/d-ino.m4: Likewise.
32194         * m4/d-type.m4: Likewise.
32195         * m4/dirfd.m4: Likewise.
32196         * m4/double-slash-root.m4: Likewise.
32197         * m4/eaccess.m4: Likewise.
32198         * m4/eealloc.m4: Likewise.
32199         * m4/environ.m4: Likewise.
32200         * m4/errno_h.m4: Likewise.
32201         * m4/euidaccess.m4: Likewise.
32202         * m4/execute.m4: Likewise.
32203         * m4/fatal-signal.m4: Likewise.
32204         * m4/fchdir.m4: Likewise.
32205         * m4/fcntl_h.m4: Likewise.
32206         * m4/fileblocks.m4: Likewise.
32207         * m4/filenamecat.m4: Likewise.
32208         * m4/findprog.m4: Likewise.
32209         * m4/flexmember.m4: Likewise.
32210         * m4/fnmatch.m4: Likewise.
32211         * m4/fopen.m4: Likewise.
32212         * m4/fpending.m4: Likewise.
32213         * m4/fprintf-posix.m4: Likewise.
32214         * m4/free.m4: Likewise.
32215         * m4/frexp.m4: Likewise.
32216         * m4/frexpl.m4: Likewise.
32217         * m4/fsusage.m4: Likewise.
32218         * m4/ftruncate.m4: Likewise.
32219         * m4/gc-camellia.m4: Likewise.
32220         * m4/gc-random.m4: Likewise.
32221         * m4/gc.m4: Likewise.
32222         * m4/getaddrinfo.m4: Likewise.
32223         * m4/getcwd-abort-bug.m4: Likewise.
32224         * m4/getcwd-path-max.m4: Likewise.
32225         * m4/getdate.m4: Likewise.
32226         * m4/getdomainname.m4: Likewise.
32227         * m4/getgroups.m4: Likewise.
32228         * m4/gethostname.m4: Likewise.
32229         * m4/gethrxtime.m4: Likewise.
32230         * m4/getline.m4: Likewise.
32231         * m4/getloadavg.m4: Likewise.
32232         * m4/getndelim2.m4: Likewise.
32233         * m4/getpass.m4: Likewise.
32234         * m4/gettext.m4: Likewise.
32235         * m4/gettime.m4: Likewise.
32236         * m4/gettimeofday.m4: Likewise.
32237         * m4/gnulib-common.m4: Likewise.
32238         * m4/group-member.m4: Likewise.
32239         * m4/host-os.m4: Likewise.
32240         * m4/iconv.m4: Likewise.
32241         * m4/iconv_open.m4: Likewise.
32242         * m4/inet_ntop.m4: Likewise.
32243         * m4/inet_pton.m4: Likewise.
32244         * m4/inline.m4: Likewise.
32245         * m4/intldir.m4: Likewise.
32246         * m4/intlmacosx.m4: Likewise.
32247         * m4/intmax.m4: Likewise.
32248         * m4/intmax_t.m4: Likewise.
32249         * m4/inttypes.m4: Likewise.
32250         * m4/inttypes_h.m4: Likewise.
32251         * m4/inttypes-pri.m4: Likewise.
32252         * m4/isapipe.m4: Likewise.
32253         * m4/isnand.m4: Likewise.
32254         * m4/isnanf.m4: Likewise.
32255         * m4/isnanl.m4: Likewise.
32256         * m4/javacomp.m4: Likewise.
32257         * m4/javaexec.m4: Likewise.
32258         * m4/jm-winsz1.m4: Likewise.
32259         * m4/jm-winsz2.m4: Likewise.
32260         * m4/lchown.m4: Likewise.
32261         * m4/lcmessage.m4: Likewise.
32262         * m4/ldexpl.m4: Likewise.
32263         * m4/lib-ld.m4: Likewise.
32264         * m4/lib-link.m4: Likewise.
32265         * m4/libsigsegv.m4: Likewise.
32266         * m4/link-follow.m4: Likewise.
32267         * m4/localcharset.m4: Likewise.
32268         * m4/locale-fr.m4: Likewise.
32269         * m4/locale-ja.m4: Likewise.
32270         * m4/locale-tr.m4: Likewise.
32271         * m4/locale-zh.m4: Likewise.
32272         * m4/lock.m4: Likewise.
32273         * m4/longlong.m4: Likewise.
32274         * m4/ls-mntd-fs.m4: Likewise.
32275         * m4/lstat.m4: Likewise.
32276         * m4/malloc.m4: Likewise.
32277         * m4/mathl.m4: Likewise.
32278         * m4/mbrtowc.m4: Likewise.
32279         * m4/mbstate_t.m4: Likewise.
32280         * m4/mbswidth.m4: Likewise.
32281         * m4/memchr.m4: Likewise.
32282         * m4/memcmp.m4: Likewise.
32283         * m4/memcpy.m4: Likewise.
32284         * m4/memmem.m4: Likewise.
32285         * m4/memmove.m4: Likewise.
32286         * m4/mempcpy.m4: Likewise.
32287         * m4/memrchr.m4: Likewise.
32288         * m4/memset.m4: Likewise.
32289         * m4/minmax.m4: Likewise.
32290         * m4/mkdir-slash.m4: Likewise.
32291         * m4/mkdtemp.m4: Likewise.
32292         * m4/mktime.m4: Likewise.
32293         * m4/mmap-anon.m4: Likewise.
32294         * m4/mountlist.m4: Likewise.
32295         * m4/nanosleep.m4: Likewise.
32296         * m4/nls.m4: Likewise.
32297         * m4/nocrash.m4: Likewise.
32298         * m4/open.m4: Likewise.
32299         * m4/openat.m4: Likewise.
32300         * m4/openmp.m4: Likewise.
32301         * m4/pathmax.m4: Likewise.
32302         * m4/perl.m4: Likewise.
32303         * m4/physmem.m4: Likewise.
32304         * m4/pipe.m4: Likewise.
32305         * m4/po.m4: Likewise.
32306         * m4/poll.m4: Likewise.
32307         * m4/posixtm.m4: Likewise.
32308         * m4/posixver.m4: Likewise.
32309         * m4/printf-frexp.m4: Likewise.
32310         * m4/printf-frexpl.m4: Likewise.
32311         * m4/printf-posix.m4: Likewise.
32312         * m4/printf-posix-rpl.m4: Likewise.
32313         * m4/printf.m4: Likewise.
32314         * m4/progtest.m4: Likewise.
32315         * m4/putenv.m4: Likewise.
32316         * m4/readline.m4: Likewise.
32317         * m4/readlink.m4: Likewise.
32318         * m4/readutmp.m4: Likewise.
32319         * m4/realloc.m4: Likewise.
32320         * m4/regex.m4: Likewise.
32321         * m4/relocatable.m4: Likewise.
32322         * m4/relocatable-lib.m4: Likewise.
32323         * m4/rename-dest-slash.m4: Likewise.
32324         * m4/rename.m4: Likewise.
32325         * m4/rmdir-errno.m4: Likewise.
32326         * m4/rmdir.m4: Likewise.
32327         * m4/roundf.m4: Likewise.
32328         * m4/roundl.m4: Likewise.
32329         * m4/rpmatch.m4: Likewise.
32330         * m4/save-cwd.m4: Likewise.
32331         * m4/selinux-selinux-h.m4: Likewise.
32332         * m4/setenv.m4: Likewise.
32333         * m4/settime.m4: Likewise.
32334         * m4/sig2str.m4: Likewise.
32335         * m4/sig_atomic_t.m4: Likewise.
32336         * m4/signalblocking.m4: Likewise.
32337         * m4/signbit.m4: Likewise.
32338         * m4/sigpipe.m4: Likewise.
32339         * m4/sockets.m4: Likewise.
32340         * m4/sockpfaf.m4: Likewise.
32341         * m4/st_dm_mode.m4: Likewise.
32342         * m4/stat-time.m4: Likewise.
32343         * m4/stdbool.m4: Likewise.
32344         * m4/stdint.m4: Likewise.
32345         * m4/stdint_h.m4: Likewise.
32346         * m4/stpcpy.m4: Likewise.
32347         * m4/stpncpy.m4: Likewise.
32348         * m4/strcase.m4: Likewise.
32349         * m4/strchrnul.m4: Likewise.
32350         * m4/strcspn.m4: Likewise.
32351         * m4/strdup.m4: Likewise.
32352         * m4/strftime.m4: Likewise.
32353         * m4/strndup.m4: Likewise.
32354         * m4/strnlen.m4: Likewise.
32355         * m4/strpbrk.m4: Likewise.
32356         * m4/strptime.m4: Likewise.
32357         * m4/strsep.m4: Likewise.
32358         * m4/strtod.m4: Likewise.
32359         * m4/strtoimax.m4: Likewise.
32360         * m4/strtok_r.m4: Likewise.
32361         * m4/strtol.m4: Likewise.
32362         * m4/strtoll.m4: Likewise.
32363         * m4/strtoul.m4: Likewise.
32364         * m4/strtoull.m4: Likewise.
32365         * m4/strtoumax.m4: Likewise.
32366         * m4/strverscmp.m4: Likewise.
32367         * m4/threadlib.m4: Likewise.
32368         * m4/timegm.m4: Likewise.
32369         * m4/tm_gmtoff.m4: Likewise.
32370         * m4/tmpdir.m4: Likewise.
32371         * m4/tmpfile.m4: Likewise.
32372         * m4/tzset.m4: Likewise.
32373         * m4/uintmax_t.m4: Likewise.
32374         * m4/unlinkdir.m4: Likewise.
32375         * m4/unlocked-io.m4: Likewise.
32376         * m4/uptime.m4: Likewise.
32377         * m4/userspec.m4: Likewise.
32378         * m4/utimbuf.m4: Likewise.
32379         * m4/utime.m4: Likewise.
32380         * m4/utimes-null.m4: Likewise.
32381         * m4/utimes.m4: Likewise.
32382         * m4/vararrays.m4: Likewise.
32383         * m4/vasnprintf.m4: Likewise.
32384         * m4/vfprintf-posix.m4: Likewise.
32385         * m4/vprintf-posix.m4: Likewise.
32386         * m4/wait-process.m4: Likewise.
32387         * m4/wchar_t.m4: Likewise.
32388         * m4/wint_t.m4: Likewise.
32389         * m4/write-any-file.m4: Likewise.
32390         * m4/yield.m4: Likewise.
32391
32392 2009-01-13  Bruno Haible  <bruno@clisp.org>
32393
32394         Avoid test-copy-file.sh failures when ACL support insufficient.
32395         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
32396         TESTS_ENVIRONMENT.
32397         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
32398         Reported by Jim Meyering.
32399
32400 2009-01-13  Bruno Haible  <bruno@clisp.org>
32401
32402         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
32403         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
32404         * modules/unistdio/u8-printf-parse (Files): Likewise.
32405         * modules/unistdio/u32-printf-parse (Files): Likewise.
32406         * modules/unistdio/ulc-printf-parse (Files): Likewise.
32407
32408 2009-01-13  Simon Josefsson  <simon@josefsson.org>
32409
32410         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
32411         and m4/inttypes_h.m4 too.
32412
32413 2009-01-12  Eric Blake  <ebb9@byu.net>
32414
32415         tests: IRIX 6.2 cc can't compile -0.0 into .data
32416         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
32417         rather than at compile-time.
32418         * tests/test-floorl.c (minus_zero): Likewise.
32419         * tests/test-frexpl.c (minus_zero): Likewise.
32420         * tests/test-isnan.c (minus_zerol): Likewise.
32421         * tests/test-isnanl.h (minus_zero): Likewise.
32422         * tests/test-ldexpl.c (minus_zero): Likewise.
32423         * tests/test-roundl.c (minus_zero): Likewise.
32424         * tests/test-signbit.c (minus_zerol): Likewise.
32425         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32426         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32427         * tests/test-truncl.c (minus_zero): Likewise.
32428         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32429         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32430         Reported by Tom G. Christensen and Nelson H. F. Beebe.
32431
32432 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32433
32434         regex: fix glibc bug 9697
32435         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
32436         handling.
32437
32438 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32439
32440         regex: fix glibc bug 697
32441         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
32442         being NULL also if there are no backreferences.
32443
32444 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32445
32446         regex: merge glibc changes
32447         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
32448         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
32449         re_string_skip_chars, re_string_reconstruct): Likewise.
32450         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
32451
32452 2009-01-07  Jim Meyering  <meyering@redhat.com>
32453
32454         poll: filter through cppi
32455         * lib/poll.c: Indent cpp directives to reflect nesting.
32456
32457 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
32458
32459         poll: don't return uninitialized
32460         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
32461
32462 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
32463
32464         avoid compile failure on AIX 6.1
32465         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
32466         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
32467
32468 2009-01-04  Jim Meyering  <meyering@redhat.com>
32469
32470         remove duplicate inclusion of <stdio.h>
32471         * tests/test-fprintf-posix.c: Likewise.
32472         * tests/test-printf-posix.c: Likewise.
32473         * tests/test-snprintf-posix.c: Likewise.
32474         * tests/test-sprintf-posix.c: Likewise.
32475         * tests/test-vasprintf-posix.c: Likewise.
32476         * tests/test-vfprintf-posix.c: Likewise.
32477         * tests/test-vprintf-posix.c: Likewise.
32478         * tests/test-vsnprintf-posix.c: Likewise.
32479         * tests/test-vsprintf-posix.c: Likewise.
32480
32481 2009-01-03  Jim Meyering  <meyering@redhat.com>
32482
32483         gnulib-tool: fix sed-based filtering
32484         * gnulib-tool (func_filter_filelist): Remove extra backslash
32485         in sed_fff_filter definition.
32486
32487 2009-01-02  Jim Meyering  <meyering@redhat.com>
32488
32489         strftime: avoid compilation failure on Solaris 2.6
32490         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
32491         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
32492         Don't #define mbrlen or mbsinit, since now they're guaranteed to
32493         be available.  Reported by Tom G. Christensen.  Details in
32494         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
32495
32496 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32497             Bruno Haible  <bruno@clisp.org>
32498
32499         Speed up gnulib-tool by doing more string processing through shell
32500         built-ins.
32501         * gnulib-tool (fast_func_append): New variable.
32502         (func_remove_prefix, func_remove_suffix): New functions.
32503         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
32504         (func_filter_filelist): New function.
32505         (func_get_dependencies): Use func_remove_suffix instead of sed.
32506         (func_get_automake_snippet): Use func_filter_filelist instead of a
32507         subshell and sed invocation.
32508
32509 2009-01-01  Bruno Haible  <bruno@clisp.org>
32510
32511         Fix a security bug.
32512         * gnulib-tool (func_import, import, update): Don't allow the characters
32513         '"', '$', '`', '\' in macro arguments that become part of commands that
32514         are evaluated.
32515
32516 2009-01-01  Bruno Haible  <bruno@clisp.org>
32517
32518         * gnulib-tool (func_reset_sigpipe): Add more comments.
32519
32520 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32521
32522         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
32523         func_emit_tests_Makefile_am, func_import): Abort loops early if we
32524         already know the answer.
32525
32526 2009-01-01  Jim Meyering  <meyering@redhat.com>
32527
32528         * lib/version-etc.c (version_etc_va): Update copyright year.
32529
32530 2008-12-30  Bruno Haible  <bruno@clisp.org>
32531
32532         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
32533         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
32534         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
32535
32536 2008-12-29  Eric Blake  <ebb9@byu.net>
32537
32538         multiarch: avoid autoconf AC_REQUIRE bug
32539         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
32540         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
32541         2.63 and older.
32542         Reported by Bruno Haible, and analyzed in
32543         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
32544
32545 2008-12-29  Bruno Haible  <bruno@clisp.org>
32546
32547         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
32548         files in subdirectories correctly.
32549         Reported by Ralf Wildenhues.
32550
32551 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32552
32553         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
32554         rather than 'join FILE -', for Solaris join.
32555
32556 2008-12-29  Bruno Haible  <bruno@clisp.org>
32557
32558         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
32559         quoting.
32560         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32561         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
32562         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
32563         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
32564         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
32565         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
32566         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
32567         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
32568         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32569         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
32570         * m4/nls.m4 (AM_NLS): Likewise.
32571         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
32572         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
32573         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
32574         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32575         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32576         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32577         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
32578         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32579         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32580         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32581         * m4/xsize.m4 (gl_XSIZE): Likewise.
32582         Suggested by Jim Meyering.
32583
32584 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32585
32586         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
32587         * lib/parse-duration.c: use a switch instead of cascading if's.
32588
32589 2008-12-29  Eric Blake  <ebb9@byu.net>
32590
32591         wchar.h: supply WEOF on Irix 5.3
32592         * lib/wchar.in.h (wint_t): Also supply WEOF.
32593         * lib/wctype.in.h (wint_t): Likewise.
32594         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
32595         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
32596         Reported by Tom G. Christensen.
32597
32598 2008-12-26  Bruno Haible  <bruno@clisp.org>
32599
32600         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
32601         i486, i586, i686.
32602
32603 2008-12-26  Bruno Haible  <bruno@clisp.org>
32604
32605         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
32606
32607 2008-12-26  Bruno Haible  <bruno@clisp.org>
32608
32609         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
32610         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
32611         not __STDC_CONSTANT_MACROS.
32612         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32613
32614 2008-12-25  Bruno Haible  <bruno@clisp.org>
32615
32616         Add support for universal builds to vasnprintf.
32617         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
32618         universal builds, guess no.
32619         * modules/vasnprintf-posix (Depends-on): Add multiarch.
32620         * modules/vasprintf-posix (Depends-on): Likewise.
32621         * modules/fprintf-posix (Depends-on): Likewise.
32622         * modules/vfprintf-posix (Depends-on): Likewise.
32623         * modules/snprintf-posix (Depends-on): Likewise.
32624         * modules/vsnprintf-posix (Depends-on): Likewise.
32625         * modules/sprintf-posix (Depends-on): Likewise.
32626         * modules/vsprintf-posix (Depends-on): Likewise.
32627         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32628         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32629         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32630         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32631         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32632         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32633         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32634
32635         Add support for universal builds to <inttypes.h>.
32636         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
32637         _SCNu64_PREFIX): In Apple
32638         universal builds, define directly, using _LP64.
32639         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
32640         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
32641         * modules/inttypes (Depends-on): Add multiarch.
32642         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32643
32644         Add support for universal builds to <stdint.h>.
32645         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
32646         universal builds, define directly, using _LP64.
32647         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
32648         Apple universal builds, don't test for the size and suffix of ptrdiff_t
32649         and size_t.
32650         * modules/stdint (Depends-on): Add multiarch.
32651         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32652
32653         New module 'multiarch'.
32654         * modules/multiarch: New file.
32655         * m4/multiarch.m4: New file.
32656
32657 2008-12-25  Bruno Haible  <bruno@clisp.org>
32658
32659         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
32660
32661 2008-12-25  Bruno Haible  <bruno@clisp.org>
32662
32663         * modules/btowc (License): Relicense under LGPLv2+.
32664         * modules/mbsinit (License): Likewise.
32665         * modules/mbrtowc (License): Likewise.
32666         * modules/wcrtomb (License): Likewise.
32667         * modules/streq (License): Likewise.
32668         Reported by David Lutterkort <lutter@redhat.com>.
32669
32670 2008-12-23  Bruno Haible  <bruno@clisp.org>
32671
32672         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
32673
32674 2008-12-23  Bruno Haible  <bruno@clisp.org>
32675
32676         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
32677         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
32678         GETADDRINFO_LIB, not in LIBS.
32679         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
32680         * modules/canon-host (Link): Likewise.
32681         * NEWS: Mention the change.
32682         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
32683         GETADDRINFO_LIB.
32684
32685 2008-12-22  Bruno Haible  <bruno@clisp.org>
32686
32687         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
32688         * doc/posix-functions/iswalpha_l.texi: Likewise.
32689         * doc/posix-functions/iswblank_l.texi: Likewise.
32690         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32691         * doc/posix-functions/iswctype_l.texi: Likewise.
32692         * doc/posix-functions/iswdigit_l.texi: Likewise.
32693         * doc/posix-functions/iswgraph_l.texi: Likewise.
32694         * doc/posix-functions/iswlower_l.texi: Likewise.
32695         * doc/posix-functions/iswprint_l.texi: Likewise.
32696         * doc/posix-functions/iswpunct_l.texi: Likewise.
32697         * doc/posix-functions/iswspace_l.texi: Likewise.
32698         * doc/posix-functions/iswupper_l.texi: Likewise.
32699         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32700         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
32701         * doc/posix-functions/open_wmemstream.texi: Likewise.
32702         * doc/posix-functions/swscanf.texi: Likewise.
32703         * doc/posix-functions/towctrans_l.texi: Likewise.
32704         * doc/posix-functions/towlower.texi: Likewise.
32705         * doc/posix-functions/towlower_l.texi: Likewise.
32706         * doc/posix-functions/towupper.texi: Likewise.
32707         * doc/posix-functions/towupper_l.texi: Likewise.
32708         * doc/posix-functions/vfwprintf.texi: Likewise.
32709         * doc/posix-functions/vfwscanf.texi: Likewise.
32710         * doc/posix-functions/vswscanf.texi: Likewise.
32711         * doc/posix-functions/vwprintf.texi: Likewise.
32712         * doc/posix-functions/vwscanf.texi: Likewise.
32713         * doc/posix-functions/wcpcpy.texi: Likewise.
32714         * doc/posix-functions/wcpncpy.texi: Likewise.
32715         * doc/posix-functions/wcscasecmp.texi: Likewise.
32716         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
32717         * doc/posix-functions/wcscoll_l.texi: Likewise.
32718         * doc/posix-functions/wcsdup.texi: Likewise.
32719         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32720         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
32721         * doc/posix-functions/wcsnlen.texi: Likewise.
32722         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32723         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32724         * doc/posix-functions/wctrans_l.texi: Likewise.
32725         * doc/posix-functions/wctype_l.texi: Likewise.
32726         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
32727         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
32728         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
32729         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
32730         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
32731         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
32732         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
32733         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
32734         * doc/glibc-functions/wcschrnul.texi: Likewise.
32735         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32736         * doc/glibc-functions/wcstod_l.texi: Likewise.
32737         * doc/glibc-functions/wcstof_l.texi: Likewise.
32738         * doc/glibc-functions/wcstol_l.texi: Likewise.
32739         * doc/glibc-functions/wcstold_l.texi: Likewise.
32740         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32741         * doc/glibc-functions/wcstoq.texi: Likewise.
32742         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32743         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32744         * doc/glibc-functions/wcstouq.texi: Likewise.
32745         * doc/glibc-functions/wmempcpy.texi: Likewise.
32746
32747 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
32748             Eric Blake  <ebb9@byu.net>
32749             Paolo Bonzini  <bonzini@gnu.org>
32750             Bruno Haible  <bruno@clisp.org>
32751
32752         Make c-stack work on Haiku.
32753         * lib/c-stack.c (SA_ONSTACK): Define fallback.
32754         (c_stack_action): Use SA_ONSTACK flag.
32755
32756 2008-12-22  Bruno Haible  <bruno@clisp.org>
32757
32758         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
32759
32760 2008-12-22  Bruno Haible  <bruno@clisp.org>
32761
32762         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
32763         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
32764         being overridden.
32765         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
32766         New macros.
32767         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
32768         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
32769         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
32770         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
32771
32772 2008-12-22  Bruno Haible  <bruno@clisp.org>
32773
32774         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
32775         from test code.
32776
32777 2008-12-22  Eric Blake  <ebb9@byu.net>
32778
32779         Avoid gcc warnings on cygwin.
32780         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
32781         Avoid unused variable.
32782         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
32783         Likewise.
32784
32785 2008-12-22  Bruno Haible  <bruno@clisp.org>
32786
32787         Remove HAVE_MBRTOWC conditionals.
32788         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
32789         (mbscasecmp): Assume mbrtowc function.
32790         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
32791         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
32792         * lib/mbschr.c: Include mbuiter.h unconditionally.
32793         (mbschr): Assume mbrtowc function.
32794         * lib/mbscspn.c: Include mbuiter.h unconditionally.
32795         (mbscspn): Assume mbrtowc function.
32796         * lib/mbslen.c: Include mbuiter.h unconditionally.
32797         (mbslen): Assume mbrtowc function.
32798         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
32799         (mbsncasecmp): Assume mbrtowc function.
32800         * lib/mbsnlen.c: Include mbiter.h unconditionally.
32801         (mbsnlen): Assume mbrtowc function.
32802         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
32803         (mbspbrk): Assume mbrtowc function.
32804         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
32805         (mbspcasecmp): Assume mbrtowc function.
32806         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
32807         (mbsrchr): Assume mbrtowc function.
32808         * lib/mbssep.c: Include mbuiter.h unconditionally.
32809         (mbssep): Assume mbrtowc function.
32810         * lib/mbsspn.c: Include mbuiter.h unconditionally.
32811         (mbsspn): Assume mbrtowc function.
32812         * lib/mbsstr.c: Include mbuiter.h unconditionally.
32813         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
32814         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
32815         (mbstok_r): Assume mbrtowc function.
32816         * lib/propername.c: Include mbuiter.h unconditionally.
32817         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
32818         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
32819         (trim2): Assume mbrtowc function.
32820         * lib/mbswidth.c (mbsinit): Remove fallback definition.
32821         (mbsnwidth): Assume mbrtowc function.
32822         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
32823         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
32824         fallback definitions.
32825         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
32826
32827 2008-12-22  Bruno Haible  <bruno@clisp.org>
32828
32829         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
32830
32831 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
32832
32833         * modules/regex: Request emulations for the mb*/wc* functions we need.
32834         * m4/regex.m4: Don't look for those functions here.
32835         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
32836
32837 2008-12-22  Bruno Haible  <bruno@clisp.org>
32838
32839         * modules/fnmatch (Depends-on): Remove duplicated dependency.
32840
32841 2008-12-21  Bruno Haible  <bruno@clisp.org>
32842
32843         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
32844         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
32845         (Include): Remove conditionalization.
32846         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
32847         (Include): Remove conditionalization.
32848         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
32849         (Include): Remove conditionalization.
32850         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
32851         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32852         * NEWS: Mention the change.
32853         Reported by Alan Hourihane <alanh@fairlite.co.uk>
32854         via Sergey Poznyakoff <gray@gnu.org.ua>.
32855
32856 2008-12-21  Bruno Haible  <bruno@clisp.org>
32857
32858         * MODULES.html.sh (Extended multibyte and wide character utilities
32859         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
32860         wcrtomb, wcsrtombs.
32861         (Support for systems lacking POSIX:2008): Add accept, bind, close,
32862         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
32863         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
32864         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
32865
32866 2008-12-21  Bruno Haible  <bruno@clisp.org>
32867
32868         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
32869
32870 2008-12-21  Bruno Haible  <bruno@clisp.org>
32871
32872         * modules/wcsnrtombs-tests: New file.
32873         * tests/test-wcsnrtombs1.sh: New file.
32874         * tests/test-wcsnrtombs2.sh: New file.
32875         * tests/test-wcsnrtombs3.sh: New file.
32876         * tests/test-wcsnrtombs4.sh: New file.
32877         * tests/test-wcsnrtombs.c: New file.
32878
32879         New module 'wcsnrtombs'.
32880         * lib/wchar.in.h (wcsnrtombs): New declaration.
32881         * lib/wcsnrtombs.c: New file.
32882         * lib/wcsrtombs-state.c: New file.
32883         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
32884         (internal_state): Remove variable.
32885         * m4/wcsnrtombs.m4: New file.
32886         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
32887         compilation units.
32888         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
32889         HAVE_WCSNRTOMBS.
32890         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
32891         HAVE_WCSNRTOMBS.
32892         * modules/wcsnrtombs: New file.
32893         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
32894         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
32895
32896 2008-12-21  Bruno Haible  <bruno@clisp.org>
32897
32898         * modules/wcsrtombs-tests: New file.
32899         * tests/test-wcsrtombs1.sh: New file.
32900         * tests/test-wcsrtombs2.sh: New file.
32901         * tests/test-wcsrtombs3.sh: New file.
32902         * tests/test-wcsrtombs4.sh: New file.
32903         * tests/test-wcsrtombs.c: New file.
32904
32905         New module 'wcsrtombs'.
32906         * lib/wchar.in.h (wcsrtombs): New declaration.
32907         * lib/wcsrtombs.c: New file.
32908         * m4/wcsrtombs.m4: New file.
32909         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
32910         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
32912         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32913         * modules/wcsrtombs: New file.
32914         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
32915         bugs.
32916
32917 2008-12-21  Bruno Haible  <bruno@clisp.org>
32918
32919         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
32920         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
32921         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
32922         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
32923         if not correct.
32924         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
32925         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
32926         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32927         m4/locale-zh.m4, m4/codeset.m4.
32928         * doc/posix-functions/wcrtomb.texi: Document the bug.
32929
32930 2008-12-21  Bruno Haible  <bruno@clisp.org>
32931
32932         Work around a btowc() bug on IRIX 6.5.
32933         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
32934         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
32935         REPLACE_WTOBC if not.
32936         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
32937         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
32938         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
32939
32940 2008-12-21  Bruno Haible  <bruno@clisp.org>
32941
32942         * modules/wcrtomb-tests: New file.
32943         * tests/test-wcrtomb.sh: New file.
32944         * tests/test-wcrtomb.c: New file.
32945
32946         New module 'wcrtomb'.
32947         * lib/wchar.in.h (wcrtomb): New declaration.
32948         * lib/wcrtomb.c: New file.
32949         * m4/wcrtomb.m4: New file.
32950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
32951         HAVE_WCRTOMB.
32952         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
32953         HAVE_WCRTOMB.
32954         * modules/wcrtomb: New file.
32955         * doc/posix-functions/wcrtomb.texi: Mention the new module.
32956
32957 2008-12-21  Bruno Haible  <bruno@clisp.org>
32958
32959         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
32960         * modules/mbsrtowcs (Files): Likewise.
32961         * modules/wctob (Files): Likewise.
32962         * modules/c-strcase-tests (Files): Likewise.
32963         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32964         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32965         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32966         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32967         * modules/vasnprintf-posix-tests (Files): Likewise.
32968
32969 2008-12-21  William Pursell  <bill.pursell@gmail.com>
32970
32971         gitlog-to-changelog: pass all command-line arguments to git-log
32972         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
32973         it is sometimes convenient to filter the commits in various ways.
32974         gitlog-to-changelog only allows --since to specify a start date,
32975         but git-log itself supports many other filtering mechanisms.
32976         At the moment, I want to filter by branch name.  Rather than
32977         adding a --branch option to gitlog-to-changelog, it seems more
32978         flexible to simply pass all options directly to git-log and let
32979         git do the work.  Notice that this effectively makes --since a
32980         redundant option for gitlog-to-changelog, but removing it would
32981         require current usage to change since calls would then require
32982         an additional '--'.
32983
32984 2008-12-21  Bruno Haible  <bruno@clisp.org>
32985
32986         * modules/mbsnrtowcs-tests: New file.
32987         * tests/test-mbsnrtowcs1.sh: New file.
32988         * tests/test-mbsnrtowcs2.sh: New file.
32989         * tests/test-mbsnrtowcs3.sh: New file.
32990         * tests/test-mbsnrtowcs4.sh: New file.
32991         * tests/test-mbsnrtowcs.c: New file.
32992
32993         New module 'mbsnrtowcs'.
32994         * lib/wchar.in.h (mbsnrtowcs): New declaration.
32995         * lib/mbsnrtowcs.c: New file.
32996         * lib/mbsrtowcs-state.c: New file.
32997         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
32998         (internal_state): Remove variable.
32999         * m4/mbsnrtowcs.m4: New file.
33000         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
33001         compilation units.
33002         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
33003         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33004         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
33005         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33006         * modules/mbsnrtowcs: New file.
33007         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
33008         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
33009         portability problem.
33010
33011 2008-12-21  Bruno Haible  <bruno@clisp.org>
33012
33013         Work around mbsrtowcs bug.
33014         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
33015         (gl_FUNC_MBSRTOWCS): Invoke it.
33016         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33017         m4/locale-zh.m4.
33018         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
33019
33020 2008-12-21  Bruno Haible  <bruno@clisp.org>
33021
33022         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
33023
33024 2008-12-21  Bruno Haible  <bruno@clisp.org>
33025
33026         Update doc for AIX.
33027         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
33028         16-bit wchar_t type.
33029         * doc/posix-functions/btowc.texi: Likewise.
33030         * doc/posix-functions/fgetwc.texi: Likewise.
33031         * doc/posix-functions/fgetws.texi: Likewise.
33032         * doc/posix-functions/fputwc.texi: Likewise.
33033         * doc/posix-functions/fputws.texi: Likewise.
33034         * doc/posix-functions/fwide.texi: Likewise.
33035         * doc/posix-functions/fwprintf.texi: Likewise.
33036         * doc/posix-functions/fwscanf.texi: Likewise.
33037         * doc/posix-functions/getwchar.texi: Likewise.
33038         * doc/posix-functions/getwc.texi: Likewise.
33039         * doc/posix-functions/iswalnum.texi: Likewise.
33040         * doc/posix-functions/iswalpha.texi: Likewise.
33041         * doc/posix-functions/iswblank.texi: Likewise.
33042         * doc/posix-functions/iswcntrl.texi: Likewise.
33043         * doc/posix-functions/iswctype.texi: Likewise.
33044         * doc/posix-functions/iswdigit.texi: Likewise.
33045         * doc/posix-functions/iswgraph.texi: Likewise.
33046         * doc/posix-functions/iswlower.texi: Likewise.
33047         * doc/posix-functions/iswprint.texi: Likewise.
33048         * doc/posix-functions/iswpunct.texi: Likewise.
33049         * doc/posix-functions/iswspace.texi: Likewise.
33050         * doc/posix-functions/iswupper.texi: Likewise.
33051         * doc/posix-functions/iswxdigit.texi: Likewise.
33052         * doc/posix-functions/mbrtowc.texi: Likewise.
33053         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33054         * doc/posix-functions/mbstowcs.texi: Likewise.
33055         * doc/posix-functions/mbtowc.texi: Likewise.
33056         * doc/posix-functions/putwchar.texi: Likewise.
33057         * doc/posix-functions/putwc.texi: Likewise.
33058         * doc/posix-functions/swprintf.texi: Likewise.
33059         * doc/posix-functions/tolower.texi: Likewise.
33060         * doc/posix-functions/toupper.texi: Likewise.
33061         * doc/posix-functions/towctrans.texi: Likewise.
33062         * doc/posix-functions/ungetwc.texi: Likewise.
33063         * doc/posix-functions/vswprintf.texi: Likewise.
33064         * doc/posix-functions/wcrtomb.texi: Likewise.
33065         * doc/posix-functions/wcscat.texi: Likewise.
33066         * doc/posix-functions/wcschr.texi: Likewise.
33067         * doc/posix-functions/wcscmp.texi: Likewise.
33068         * doc/posix-functions/wcscoll.texi: Likewise.
33069         * doc/posix-functions/wcscpy.texi: Likewise.
33070         * doc/posix-functions/wcscspn.texi: Likewise.
33071         * doc/posix-functions/wcsftime.texi: Likewise.
33072         * doc/posix-functions/wcslen.texi: Likewise.
33073         * doc/posix-functions/wcsncat.texi: Likewise.
33074         * doc/posix-functions/wcsncmp.texi: Likewise.
33075         * doc/posix-functions/wcsncpy.texi: Likewise.
33076         * doc/posix-functions/wcspbrk.texi: Likewise.
33077         * doc/posix-functions/wcsrchr.texi: Likewise.
33078         * doc/posix-functions/wcsrtombs.texi: Likewise.
33079         * doc/posix-functions/wcsspn.texi: Likewise.
33080         * doc/posix-functions/wcsstr.texi: Likewise.
33081         * doc/posix-functions/wcstod.texi: Likewise.
33082         * doc/posix-functions/wcstof.texi: Likewise.
33083         * doc/posix-functions/wcstoimax.texi: Likewise.
33084         * doc/posix-functions/wcstok.texi: Likewise.
33085         * doc/posix-functions/wcstold.texi: Likewise.
33086         * doc/posix-functions/wcstoll.texi: Likewise.
33087         * doc/posix-functions/wcstol.texi: Likewise.
33088         * doc/posix-functions/wcstombs.texi: Likewise.
33089         * doc/posix-functions/wcstoull.texi: Likewise.
33090         * doc/posix-functions/wcstoul.texi: Likewise.
33091         * doc/posix-functions/wcstoumax.texi: Likewise.
33092         * doc/posix-functions/wcswidth.texi: Likewise.
33093         * doc/posix-functions/wcsxfrm.texi: Likewise.
33094         * doc/posix-functions/wctob.texi: Likewise.
33095         * doc/posix-functions/wctomb.texi: Likewise.
33096         * doc/posix-functions/wctrans.texi: Likewise.
33097         * doc/posix-functions/wctype.texi: Likewise.
33098         * doc/posix-functions/wcwidth.texi: Likewise.
33099         * doc/posix-functions/wmemchr.texi: Likewise.
33100         * doc/posix-functions/wmemcmp.texi: Likewise.
33101         * doc/posix-functions/wmemcpy.texi: Likewise.
33102         * doc/posix-functions/wmemmove.texi: Likewise.
33103         * doc/posix-functions/wmemset.texi: Likewise.
33104         * doc/posix-functions/wprintf.texi: Likewise.
33105         * doc/posix-functions/wscanf.texi: Likewise.
33106
33107 2008-12-21  Bruno Haible  <bruno@clisp.org>
33108
33109         Update doc for HP-UX 11.11.
33110         * doc/posix-functions/btowc.texi: Clarify that the function is missing
33111         in HP-UX version 11.00, not in all versions of HP-UX 11.
33112         * doc/posix-functions/fwide.texi: Likewise.
33113         * doc/posix-functions/fwprintf.texi: Likewise.
33114         * doc/posix-functions/fwscanf.texi: Likewise.
33115         * doc/posix-functions/inet_ntop.texi: Likewise.
33116         * doc/posix-functions/inet_pton.texi: Likewise.
33117         * doc/posix-functions/mbrlen.texi: Likewise.
33118         * doc/posix-functions/mbrtowc.texi: Likewise.
33119         * doc/posix-functions/mbsinit.texi: Likewise.
33120         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33121         * doc/posix-functions/swprintf.texi: Likewise.
33122         * doc/posix-functions/swscanf.texi: Likewise.
33123         * doc/posix-functions/towctrans.texi: Likewise.
33124         * doc/posix-functions/vfwprintf.texi: Likewise.
33125         * doc/posix-functions/vswprintf.texi: Likewise.
33126         * doc/posix-functions/vwprintf.texi: Likewise.
33127         * doc/posix-functions/wcrtomb.texi: Likewise.
33128         * doc/posix-functions/wcsrtombs.texi: Likewise.
33129         * doc/posix-functions/wcsstr.texi: Likewise.
33130         * doc/posix-functions/wctob.texi: Likewise.
33131         * doc/posix-functions/wctrans.texi: Likewise.
33132         * doc/posix-functions/wmemchr.texi: Likewise.
33133         * doc/posix-functions/wmemcmp.texi: Likewise.
33134         * doc/posix-functions/wmemcpy.texi: Likewise.
33135         * doc/posix-functions/wmemmove.texi: Likewise.
33136         * doc/posix-functions/wmemset.texi: Likewise.
33137         * doc/posix-functions/wprintf.texi: Likewise.
33138         * doc/posix-functions/wscanf.texi: Likewise.
33139
33140 2008-12-21  Bruno Haible  <bruno@clisp.org>
33141
33142         Work around a portability problem.
33143         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
33144         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
33145
33146 2008-12-20  Bruno Haible  <bruno@clisp.org>
33147
33148         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
33149         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
33150         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
33151         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
33152         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
33153
33154         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
33155         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
33156         set.
33157         (GNULIB_defined_mbstate_t): New macro.
33158         (mbsinit): Redefine if REPLACE_MBSINIT is set.
33159         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
33160         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
33161         reuses the system's mbrtowc function but works around the bugs.
33162         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
33163         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
33164         macros.
33165         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
33166         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
33167         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
33168         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
33169         REPLACE_MBSINIT if mbsinit needs to be overridden.
33170         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
33171         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33172         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
33173         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33174         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33175         m4/locale-zh.m4.
33176         (Depends): Add mbsinit.
33177         * modules/mbsinit (Depends): Add mbrtowc.
33178         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
33179
33180 2008-12-20  Bruno Haible  <bruno@clisp.org>
33181
33182         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
33183         so that there are no conversion errors on AIX.
33184         * tests/test-mbsrtowcs.c (main): LIkewise.
33185
33186 2008-12-20  Bruno Haible  <bruno@clisp.org>
33187
33188         Work around wctob bug on Solaris <= 9.
33189         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
33190         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
33191         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
33192         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
33193         * modules/wctob (Files): Add m4/locale-fr.m4.
33194         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
33195
33196 2008-12-20  Bruno Haible  <bruno@clisp.org>
33197
33198         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
33199         /dev/null.
33200         * tests/test-select-in.sh: Likewise.
33201         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33202
33203 2008-12-20  Bruno Haible  <bruno@clisp.org>
33204
33205         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
33206         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
33207         Cygwin 1.5.x.
33208
33209 2008-12-20  Bruno Haible  <bruno@clisp.org>
33210
33211         Ensure mbstate_t is defined on HP-UX 11.11.
33212         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
33213         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
33214         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
33215         AC_USE_SYSTEM_EXTENSIONS.
33216         * modules/fnmatch (Depends-on): Add extensions.
33217         * modules/mbrlen (Depends-on): Likewise.
33218         * modules/mbrtowc (Depends-on): Likewise.
33219         * modules/mbsinit (Depends-on): Likewise.
33220         * modules/mbsrtowcs (Depends-on): Likewise.
33221         * modules/mbswidth (Depends-on): Likewise.
33222         * modules/quotearg (Depends-on): Likewise.
33223         * modules/strftime (Depends-on): Likewise.
33224
33225 2008-12-20  Bruno Haible  <bruno@clisp.org>
33226
33227         Ensure wctob is declared on IRIX 6.5.
33228         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
33229         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
33230         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
33231         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
33232         of HAVE_WCTOB.
33233         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
33234         HAVE_WCTOB.
33235         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
33236
33237 2008-12-19  Bruno Haible  <bruno@clisp.org>
33238
33239         * modules/mbsrtowcs-tests: New file.
33240         * tests/test-mbsrtowcs1.sh: New file.
33241         * tests/test-mbsrtowcs2.sh: New file.
33242         * tests/test-mbsrtowcs3.sh: New file.
33243         * tests/test-mbsrtowcs4.sh: New file.
33244         * tests/test-mbsrtowcs.c: New file.
33245
33246         New module 'mbsrtowcs'.
33247         * lib/wchar.in.h (mbsrtowcs): New declaration.
33248         * lib/mbsrtowcs.c: New file.
33249         * m4/mbsrtowcs.m4: New file.
33250         * modules/mbsrtowcs: New file.
33251         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
33252         HAVE_MBSRTOWCS.
33253         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
33254         HAVE_MBSRTOWCS.
33255         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
33256
33257 2008-12-19  Bruno Haible  <bruno@clisp.org>
33258
33259         New module 'mbrlen'.
33260         * lib/wchar.in.h (mbrlen): New declaration.
33261         * lib/mbrlen.c: New file.
33262         * m4/mbrlen.m4: New file.
33263         * modules/mbrlen: New file.
33264         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
33265         HAVE_MBRLEN.
33266         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
33267         HAVE_MBRLEN.
33268         * doc/posix-functions/mbrlen.texi: Document the new module.
33269
33270 2008-12-19  Bruno Haible  <bruno@clisp.org>
33271
33272         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
33273         * modules/mbrtowc (Depends-on): Add verify.
33274         Suggested by Paul Eggert.
33275
33276 2008-12-18  Bruno Haible  <bruno@clisp.org>
33277
33278         * modules/mbsinit-tests: New file.
33279         * tests/test-mbsinit.sh: New file.
33280         * tests/test-mbsinit.c: New file.
33281
33282 2008-12-18  Bruno Haible  <bruno@clisp.org>
33283
33284         * modules/mbrtowc-tests: New file.
33285         * tests/test-mbrtowc1.sh: New file.
33286         * tests/test-mbrtowc2.sh: New file.
33287         * tests/test-mbrtowc3.sh: New file.
33288         * tests/test-mbrtowc4.sh: New file.
33289         * tests/test-mbrtowc.c: New file.
33290
33291         New module 'mbrtowc'.
33292         * lib/wchar.in.h (mbstate_t): Override when the system does not have
33293         mbsinit and mbrtowc.
33294         (mbrtowc): New declaration.
33295         * lib/mbrtowc.c: New file.
33296         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
33297         * modules/mbrtowc: New file.
33298         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
33299         HAVE_MBRTOWC.
33300         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
33301         HAVE_MBRTOWC.
33302         * doc/posix-functions/mbrtowc.texi: Document the new module.
33303
33304 2008-12-18  Bruno Haible  <bruno@clisp.org>
33305
33306         New module 'wctob'.
33307         * lib/wchar.in.h (wctob): New declaration.
33308         * lib/wctob.c: New file.
33309         * m4/wctob.m4: New file.
33310         * modules/wctob: New file.
33311         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
33312         HAVE_WCTOB.
33313         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
33314         * doc/posix-functions/wctob.texi: Document the new module.
33315
33316 2008-12-18  Bruno Haible  <bruno@clisp.org>
33317
33318         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
33319         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
33320
33321 2008-12-18  Simon Josefsson  <simon@josefsson.org>
33322
33323         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
33324         G. Christensen" <tgc@jupiterrise.com>.
33325
33326         * lib/flock.c: Need to include errno.h.  Reported by "Tom
33327         G. Christensen" <tgc@jupiterrise.com>.
33328
33329         * lib/flock.c: Need to include string.h.  Reported by "Tom
33330         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
33331         <ebb9@byu.net>.
33332
33333 2008-12-18  Bruno Haible  <bruno@clisp.org>
33334
33335         * m4/locale-ja.m4: New file, from GNU gettext.
33336
33337 2008-12-17  Bruno Haible  <bruno@clisp.org>
33338
33339         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
33340         Suggested by Eric Blake.
33341
33342 2008-12-17  Bruno Haible  <bruno@clisp.org>
33343
33344         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
33345
33346 2008-12-17  Bruno Haible  <bruno@clisp.org>
33347
33348         * lib/mbsinit.c: Include verify.h. Verify an assumption.
33349         * modules/mbsinit (Depends-on): Add verify.
33350         Suggested by Paul Eggert.
33351
33352 2008-12-17  Bruno Haible  <bruno@clisp.org>
33353
33354         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
33355         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
33356         gl_FUNC_MBRTOWC.
33357         * m4/mbiter.m4 (gl_MBITER): LIkewise.
33358         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
33359         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
33360         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
33361         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
33362         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
33363         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
33364         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
33365         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
33366         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
33367         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
33368         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
33369         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
33370         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
33371         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
33372         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33373         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
33374         * modules/trim (configure.ac): Likewise.
33375
33376 2008-12-17  Bruno Haible  <bruno@clisp.org>
33377
33378         * modules/btowc-tests: New file.
33379         * tests/test-btowc1.sh: New file.
33380         * tests/test-btowc2.sh: New file.
33381         * tests/test-btowc.c: New file.
33382
33383         New module 'btowc'.
33384         * lib/wchar.in.h (btowc): New declaration.
33385         * lib/btowc.c: New file.
33386         * m4/btowc.m4: New file.
33387         * modules/btowc: New file.
33388         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
33389         HAVE_BTOWC.
33390         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
33391         * doc/posix-functions/btowc.texi: Document the new module.
33392
33393 2008-12-17  Bruno Haible  <bruno@clisp.org>
33394
33395         New module 'mbsinit'.
33396         * lib/wchar.in.h (mbsinit): New declaration.
33397         * lib/mbsinit.c: New file.
33398         * m4/mbsinit.m4: New file.
33399         * modules/mbsinit: New file.
33400         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
33401         HAVE_MBSINIT.
33402         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
33403         HAVE_MBSINIT.
33404         * doc/posix-functions/mbsinit.texi: Document the new module.
33405
33406 2008-12-16  Bruno Haible  <bruno@clisp.org>
33407
33408         * lib/unistd.in.h: Add comment.
33409         * tests/test-environ.c: Don't include <stdlib.h>.
33410
33411 2008-12-16  Bruno Haible  <bruno@clisp.org>
33412
33413         * lib/parse-duration.h (parse_duration): Document return value
33414         convention.
33415         * lib/parse-duration.c: Include specification header first. Add
33416         comments.
33417         (_): Remove macro.
33418         (parse_year_month_day, parse_hour_minute_second): Move side effects
33419         outside of strchr call.
33420         (parse_non_iso8601): Move side effects outside of isspace call.
33421         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
33422         call.
33423
33424 2008-12-16  Bruno Haible  <bruno@clisp.org>
33425
33426         * tests/test-parse-duration.sh: Produce no output when the test
33427         succeeds.
33428
33429 2008-12-16  Bruno Haible  <bruno@clisp.org>
33430
33431         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
33432         expressions.
33433
33434 2008-12-15  Bruno Haible  <bruno@clisp.org>
33435
33436         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
33437         * doc/glibc-functions/flistxattr.texi: Likewise.
33438         * doc/glibc-functions/fopencookie.texi: Likewise.
33439         * doc/glibc-functions/fremovexattr.texi: Likewise.
33440         * doc/glibc-functions/fsetxattr.texi: Likewise.
33441         * doc/glibc-functions/getxattr.texi: Likewise.
33442         * doc/glibc-functions/lgetxattr.texi: Likewise.
33443         * doc/glibc-functions/listxattr.texi: Likewise.
33444         * doc/glibc-functions/llistxattr.texi: Likewise.
33445         * doc/glibc-functions/lremovexattr.texi: Likewise.
33446         * doc/glibc-functions/lsetxattr.texi: Likewise.
33447         * doc/glibc-functions/removexattr.texi: Likewise.
33448         * doc/glibc-functions/setxattr.texi: Likewise.
33449         * doc/posix-functions/open_memstream.texi: Likewise.
33450
33451 2008-12-15  Eric Blake  <ebb9@byu.net>
33452
33453         Update doc for cygwin 1.7.
33454         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
33455         functions.
33456         * doc/posix-functions/fchmodat.texi: Likewise.
33457         * doc/posix-functions/fchownat.texi: Likewise.
33458         * doc/posix-functions/fdopendir.texi: Likewise.
33459         * doc/posix-functions/fmemopen.texi: Likewise.
33460         * doc/posix-functions/freeaddrinfo.texi: Likewise.
33461         * doc/posix-functions/fstatat.texi: Likewise.
33462         * doc/posix-functions/futimens.texi: Likewise.
33463         * doc/posix-functions/gai_strerror.texi: Likewise.
33464         * doc/posix-functions/getaddrinfo.texi: Likewise.
33465         * doc/posix-functions/getnameinfo.texi: Likewise.
33466         * doc/posix-functions/if_freenameindex.texi: Likewise.
33467         * doc/posix-functions/if_indextoname.texi: Likewise.
33468         * doc/posix-functions/if_nameindex.texi: Likewise.
33469         * doc/posix-functions/if_nametoindex.texi: Likewise.
33470         * doc/posix-functions/insque.texi: Likewise.
33471         * doc/posix-functions/linkat.texi: Likewise.
33472         * doc/posix-functions/llrint.texi: Likewise.
33473         * doc/posix-functions/llrintf.texi: Likewise.
33474         * doc/posix-functions/llrintl.texi: Likewise.
33475         * doc/posix-functions/lockf.texi: Likewise.
33476         * doc/posix-functions/lrintl.texi: Likewise.
33477         * doc/posix-functions/mkdirat.texi: Likewise.
33478         * doc/posix-functions/mkfifoat.texi: Likewise.
33479         * doc/posix-functions/mknodat.texi: Likewise.
33480         * doc/posix-functions/mq_close.texi: Likewise.
33481         * doc/posix-functions/mq_getattr.texi: Likewise.
33482         * doc/posix-functions/mq_notify.texi: Likewise.
33483         * doc/posix-functions/mq_open.texi: Likewise.
33484         * doc/posix-functions/mq_receive.texi: Likewise.
33485         * doc/posix-functions/mq_send.texi: Likewise.
33486         * doc/posix-functions/mq_setattr.texi: Likewise.
33487         * doc/posix-functions/mq_timedreceive.texi: Likewise.
33488         * doc/posix-functions/mq_timedsend.texi: Likewise.
33489         * doc/posix-functions/mq_unlink.texi: Likewise.
33490         * doc/posix-functions/open_memstream.texi: Likewise.
33491         * doc/posix-functions/openat.texi: Likewise.
33492         * doc/posix-functions/posix_fadvise.texi: Likewise.
33493         * doc/posix-functions/posix_fallocate.texi: Likewise.
33494         * doc/posix-functions/posix_madvise.texi: Likewise.
33495         * doc/posix-functions/posix_memalign.texi: Likewise.
33496         * doc/posix-functions/posix_openpt.texi: Likewise.
33497         * doc/posix-functions/readlinkat.texi: Likewise.
33498         * doc/posix-functions/remque.texi: Likewise.
33499         * doc/posix-functions/renameat.texi: Likewise.
33500         * doc/posix-functions/rintl.texi: Likewise.
33501         * doc/posix-functions/sem_unlink.texi: Likewise.
33502         * doc/posix-functions/shm_open.texi: Likewise.
33503         * doc/posix-functions/shm_unlink.texi: Likewise.
33504         * doc/posix-functions/signgam.texi: Likewise.
33505         * doc/posix-functions/sigset.texi: Likewise.
33506         * doc/posix-functions/stpcpy.texi: Likewise.
33507         * doc/posix-functions/stpncpy.texi: Likewise.
33508         * doc/posix-functions/strerror.texi: Likewise.
33509         * doc/posix-functions/strtod.texi: Likewise.
33510         * doc/posix-functions/symlinkat.texi: Likewise.
33511         * doc/posix-functions/unlinkat.texi: Likewise.
33512         * doc/posix-functions/utimensat.texi: Likewise.
33513         * doc/glibc-functions/bindresvport.texi: Likewise.
33514         * doc/glibc-functions/dn_expand.texi: Likewise.
33515         * doc/glibc-functions/exp10.texi: Likewise.
33516         * doc/glibc-functions/exp10f.texi: Likewise.
33517         * doc/glibc-functions/fgetxattr.texi: Likewise.
33518         * doc/glibc-functions/flistxattr.texi: Likewise.
33519         * doc/glibc-functions/fopencookie.texi: Likewise.
33520         * doc/glibc-functions/freeifaddrs.texi: Likewise.
33521         * doc/glibc-functions/fremovexattr.texi: Likewise.
33522         * doc/glibc-functions/fsetxattr.texi: Likewise.
33523         * doc/glibc-functions/getifaddrs.texi: Likewise.
33524         * doc/glibc-functions/getxattr.texi: Likewise.
33525         * doc/glibc-functions/lgetxattr.texi: Likewise.
33526         * doc/glibc-functions/listxattr.texi: Likewise.
33527         * doc/glibc-functions/llistxattr.texi: Likewise.
33528         * doc/glibc-functions/lremovexattr.texi: Likewise.
33529         * doc/glibc-functions/lsetxattr.texi: Likewise.
33530         * doc/glibc-functions/pow10.texi: Likewise.
33531         * doc/glibc-functions/pow10f.texi: Likewise.
33532         * doc/glibc-functions/rcmd_af.texi: Likewise.
33533         * doc/glibc-functions/removexattr.texi: Likewise.
33534         * doc/glibc-functions/res_init.texi: Likewise.
33535         * doc/glibc-functions/res_mkquery.texi: Likewise.
33536         * doc/glibc-functions/res_query.texi: Likewise.
33537         * doc/glibc-functions/res_querydomain.texi: Likewise.
33538         * doc/glibc-functions/res_send.texi: Likewise.
33539         * doc/glibc-functions/rresvport_af.texi: Likewise.
33540         * doc/glibc-functions/setxattr.texi: Likewise.
33541         * doc/glibc-functions/strcasestr.texi: Likewise.
33542
33543 2008-12-15  Bruno Haible  <bruno@clisp.org>
33544
33545         Fix compilation error on OSF/1 4.0.
33546         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
33547         <sys/time.h>, simply delegate to the system header.
33548         Reported by Daniel Richard G. <oss@teragram.com>.
33549
33550 2008-12-15  Bruno Haible  <bruno@clisp.org>
33551
33552         * doc/posix-functions/openat.texi: Mention the 'openat' module.
33553         * doc/posix-functions/fchmodat.texi: Likewise.
33554         * doc/posix-functions/fchownat.texi: Likewise.
33555         * doc/posix-functions/fdopendir.texi: Likewise.
33556         * doc/posix-functions/fstatat.texi: Likewise.
33557         * doc/posix-functions/mkdirat.texi: Likewise.
33558         * doc/posix-functions/unlinkat.texi: Likewise.
33559
33560 2008-12-14  Bruno Haible  <bruno@clisp.org>
33561
33562         Update doc for POSIX:2008.
33563         * doc/posix-functions/faccessat.texi: New file.
33564         * doc/posix-functions/fchmodat.texi: New file.
33565         * doc/posix-functions/fchownat.texi: New file.
33566         * doc/posix-functions/fdopendir.texi: New file.
33567         * doc/posix-functions/fstatat.texi: New file.
33568         * doc/posix-functions/futimens.texi: New file.
33569         * doc/posix-functions/linkat.texi: New file.
33570         * doc/posix-functions/mkdirat.texi: New file.
33571         * doc/posix-functions/mkfifoat.texi: New file.
33572         * doc/posix-functions/mknodat.texi: New file.
33573         * doc/posix-functions/open_wmemstream.texi: New file.
33574         * doc/posix-functions/openat.texi: New file.
33575         * doc/posix-functions/psiginfo.texi: New file.
33576         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
33577         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
33578         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
33579         * doc/posix-functions/readlinkat.texi: New file.
33580         * doc/posix-functions/renameat.texi: New file.
33581         * doc/posix-functions/strerror_l.texi: New file.
33582         * doc/posix-functions/symlinkat.texi: New file.
33583         * doc/posix-functions/unlinkat.texi: New file.
33584         * doc/posix-functions/utimensat.texi: New file.
33585         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33586
33587 2008-12-14  Bruno Haible  <bruno@clisp.org>
33588
33589         Update doc for POSIX:2008.
33590         * doc/posix-functions/alphasort.texi: Renamed from
33591         doc/glibc-functions/alphasort.texi.
33592         * doc/posix-functions/dirfd.texi: Renamed from
33593         doc/glibc-functions/dirfd.texi.
33594         * doc/posix-functions/dprintf.texi: Renamed from
33595         doc/glibc-functions/dprintf.texi.
33596         * doc/posix-functions/duplocale.texi: Renamed from
33597         doc/glibc-functions/duplocale.texi.
33598         * doc/posix-functions/fexecve.texi: Renamed from
33599         doc/glibc-functions/fexecve.texi.
33600         * doc/posix-functions/fmemopen.texi: Renamed from
33601         doc/glibc-functions/fmemopen.texi.
33602         * doc/posix-functions/freelocale.texi: Renamed from
33603         doc/glibc-functions/freelocale.texi.
33604         * doc/posix-functions/getdate_err.texi: Renamed from
33605         doc/glibc-functions/getdate_err.texi.
33606         * doc/posix-functions/isalnum_l.texi: Renamed from
33607         doc/glibc-functions/isalnum_l.texi.
33608         * doc/posix-functions/isalpha_l.texi: Renamed from
33609         doc/glibc-functions/isalpha_l.texi.
33610         * doc/posix-functions/isblank_l.texi: Renamed from
33611         doc/glibc-functions/isblank_l.texi.
33612         * doc/posix-functions/iscntrl_l.texi: Renamed from
33613         doc/glibc-functions/iscntrl_l.texi.
33614         * doc/posix-functions/isdigit_l.texi: Renamed from
33615         doc/glibc-functions/isdigit_l.texi.
33616         * doc/posix-functions/isgraph_l.texi: Renamed from
33617         doc/glibc-functions/isgraph_l.texi.
33618         * doc/posix-functions/islower_l.texi: Renamed from
33619         doc/glibc-functions/islower_l.texi.
33620         * doc/posix-functions/isprint_l.texi: Renamed from
33621         doc/glibc-functions/isprint_l.texi.
33622         * doc/posix-functions/ispunct_l.texi: Renamed from
33623         doc/glibc-functions/ispunct_l.texi.
33624         * doc/posix-functions/isspace_l.texi: Renamed from
33625         doc/glibc-functions/isspace_l.texi.
33626         * doc/posix-functions/isupper_l.texi: Renamed from
33627         doc/glibc-functions/isupper_l.texi.
33628         * doc/posix-functions/iswalnum_l.texi: Renamed from
33629         doc/glibc-functions/iswalnum_l.texi.
33630         * doc/posix-functions/iswalpha_l.texi: Renamed from
33631         doc/glibc-functions/iswalpha_l.texi.
33632         * doc/posix-functions/iswblank_l.texi: Renamed from
33633         doc/glibc-functions/iswblank_l.texi.
33634         * doc/posix-functions/iswcntrl_l.texi: Renamed from
33635         doc/glibc-functions/iswcntrl_l.texi.
33636         * doc/posix-functions/iswctype_l.texi: Renamed from
33637         doc/glibc-functions/iswctype_l.texi.
33638         * doc/posix-functions/iswdigit_l.texi: Renamed from
33639         doc/glibc-functions/iswdigit_l.texi.
33640         * doc/posix-functions/iswgraph_l.texi: Renamed from
33641         doc/glibc-functions/iswgraph_l.texi.
33642         * doc/posix-functions/iswlower_l.texi: Renamed from
33643         doc/glibc-functions/iswlower_l.texi.
33644         * doc/posix-functions/iswprint_l.texi: Renamed from
33645         doc/glibc-functions/iswprint_l.texi.
33646         * doc/posix-functions/iswpunct_l.texi: Renamed from
33647         doc/glibc-functions/iswpunct_l.texi.
33648         * doc/posix-functions/iswspace_l.texi: Renamed from
33649         doc/glibc-functions/iswspace_l.texi.
33650         * doc/posix-functions/iswupper_l.texi: Renamed from
33651         doc/glibc-functions/iswupper_l.texi.
33652         * doc/posix-functions/iswxdigit_l.texi: Renamed from
33653         doc/glibc-functions/iswxdigit_l.texi.
33654         * doc/posix-functions/isxdigit_l.texi: Renamed from
33655         doc/glibc-functions/isxdigit_l.texi.
33656         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
33657         doc/glibc-functions/mbsnrtowcs.texi.
33658         * doc/posix-functions/mkdtemp.texi: Renamed from
33659         doc/glibc-functions/mkdtemp.texi.
33660         * doc/posix-functions/newlocale.texi: Renamed from
33661         doc/glibc-functions/newlocale.texi.
33662         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
33663         doc/glibc-functions/nl_langinfo_l.texi.
33664         * doc/posix-functions/open_memstream.texi: Renamed from
33665         doc/glibc-functions/open_memstream.texi.
33666         * doc/posix-functions/opterr.texi: Renamed from
33667         doc/glibc-functions/opterr.texi.
33668         * doc/posix-functions/optind.texi: Renamed from
33669         doc/glibc-functions/optind.texi.
33670         * doc/posix-functions/optopt.texi: Renamed from
33671         doc/glibc-functions/optopt.texi.
33672         * doc/posix-functions/psignal.texi: Renamed from
33673         doc/glibc-functions/psignal.texi.
33674         * doc/posix-functions/scandir.texi: Renamed from
33675         doc/glibc-functions/scandir.texi.
33676         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
33677         doc/glibc-functions/sched_get_priority_min.texi.
33678         * doc/posix-functions/signgam.texi: Renamed from
33679         doc/glibc-functions/signgam.texi.
33680         * doc/posix-functions/stpcpy.texi: Renamed from
33681         doc/glibc-functions/stpcpy.texi.
33682         * doc/posix-functions/stpncpy.texi: Renamed from
33683         doc/glibc-functions/stpncpy.texi.
33684         * doc/posix-functions/strcasecmp_l.texi: Renamed from
33685         doc/glibc-functions/strcasecmp_l.texi.
33686         * doc/posix-functions/strcoll_l.texi: Renamed from
33687         doc/glibc-functions/strcoll_l.texi.
33688         * doc/posix-functions/strfmon_l.texi: Renamed from
33689         doc/glibc-functions/strfmon_l.texi.
33690         * doc/posix-functions/strftime_l.texi: Renamed from
33691         doc/glibc-functions/strftime_l.texi.
33692         * doc/posix-functions/strncasecmp_l.texi: Renamed from
33693         doc/glibc-functions/strncasecmp_l.texi.
33694         * doc/posix-functions/strndup.texi: Renamed from
33695         doc/glibc-functions/strndup.texi.
33696         * doc/posix-functions/strnlen.texi: Renamed from
33697         doc/glibc-functions/strnlen.texi.
33698         * doc/posix-functions/strsignal.texi: Renamed from
33699         doc/glibc-functions/strsignal.texi.
33700         * doc/posix-functions/strxfrm_l.texi: Renamed from
33701         doc/glibc-functions/strxfrm_l.texi.
33702         * doc/posix-functions/timer_gettime.texi: Renamed from
33703         doc/glibc-functions/timer_gettime.texi.
33704         * doc/posix-functions/tolower_l.texi: Renamed from
33705         doc/glibc-functions/tolower_l.texi.
33706         * doc/posix-functions/toupper_l.texi: Renamed from
33707         doc/glibc-functions/toupper_l.texi.
33708         * doc/posix-functions/towctrans_l.texi: Renamed from
33709         doc/glibc-functions/towctrans_l.texi.
33710         * doc/posix-functions/towlower_l.texi: Renamed from
33711         doc/glibc-functions/towlower_l.texi.
33712         * doc/posix-functions/towupper_l.texi: Renamed from
33713         doc/glibc-functions/towupper_l.texi.
33714         * doc/posix-functions/uselocale.texi: Renamed from
33715         doc/glibc-functions/uselocale.texi.
33716         * doc/posix-functions/vdprintf.texi: Renamed from
33717         doc/glibc-functions/vdprintf.texi.
33718         * doc/posix-functions/wcpcpy.texi:
33719         Renamed from doc/glibc-functions/wcpcpy.texi.
33720         * doc/posix-functions/wcpncpy.texi: Renamed from
33721         doc/glibc-functions/wcpncpy.texi.
33722         * doc/posix-functions/wcscasecmp.texi: Renamed from
33723         doc/glibc-functions/wcscasecmp.texi.
33724         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
33725         doc/glibc-functions/wcscasecmp_l.texi.
33726         * doc/posix-functions/wcscoll_l.texi: Renamed from
33727         doc/glibc-functions/wcscoll_l.texi.
33728         * doc/posix-functions/wcsdup.texi: Renamed from
33729         doc/glibc-functions/wcsdup.texi.
33730         * doc/posix-functions/wcsncasecmp.texi: Renamed from
33731         doc/glibc-functions/wcsncasecmp.texi.
33732         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
33733         doc/glibc-functions/wcsncasecmp_l.texi.
33734         * doc/posix-functions/wcsnlen.texi: Renamed from
33735         doc/glibc-functions/wcsnlen.texi.
33736         * doc/posix-functions/wcsnrtombs.texi: Renamed from
33737         doc/glibc-functions/wcsnrtombs.texi.
33738         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
33739         doc/glibc-functions/wcsxfrm_l.texi.
33740         * doc/posix-functions/wctrans_l.texi: Renamed from
33741         doc/glibc-functions/wctrans_l.texi.
33742         * doc/posix-functions/wctype_l.texi: Renamed from
33743         doc/glibc-functions/wctype_l.texi.
33744         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33745         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
33746         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
33747         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
33748         these subsections.
33749         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
33750         Remove sections.
33751
33752 2008-12-14  Bruno Haible  <bruno@clisp.org>
33753
33754         Update doc for POSIX:2008.
33755         * doc/posix-functions/*.texi: Update URL of POSIX specification.
33756
33757 2008-12-14  Bruno Haible  <bruno@clisp.org>
33758
33759         Update doc for POSIX:2008.
33760         * doc/pastposix-functions/bcmp.texi: Renamed from
33761         doc/posix-functions/bcmp.texi.
33762         * doc/pastposix-functions/bcopy.texi: Renamed from
33763         doc/posix-functions/bcopy.texi.
33764         * doc/pastposix-functions/bsd_signal.texi: Renamed from
33765         doc/posix-functions/bsd_signal.texi.
33766         * doc/pastposix-functions/bzero.texi: Renamed from
33767         doc/posix-functions/bzero.texi.
33768         * doc/pastposix-functions/ecvt.texi: Renamed from
33769         doc/posix-functions/ecvt.texi.
33770         * doc/pastposix-functions/fcvt.texi: Renamed from
33771         doc/posix-functions/fcvt.texi.
33772         * doc/pastposix-functions/ftime.texi: Renamed from
33773         doc/posix-functions/ftime.texi.
33774         * doc/pastposix-functions/gcvt.texi: Renamed from
33775         doc/posix-functions/gcvt.texi.
33776         * doc/pastposix-functions/getcontext.texi: Renamed from
33777         doc/posix-functions/getcontext.texi.
33778         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
33779         doc/posix-functions/gethostbyaddr.texi.
33780         * doc/pastposix-functions/gethostbyname.texi: Renamed from
33781         doc/posix-functions/gethostbyname.texi.
33782         * doc/pastposix-functions/getwd.texi: Renamed from
33783         doc/posix-functions/getwd.texi.
33784         * doc/pastposix-functions/h_errno.texi: Renamed from
33785         doc/posix-functions/h_errno.texi.
33786         * doc/pastposix-functions/index.texi: Renamed from
33787         doc/posix-functions/index.texi.
33788         * doc/pastposix-functions/makecontext.texi: Renamed from
33789         doc/posix-functions/makecontext.texi.
33790         * doc/pastposix-functions/mktemp.texi: Renamed from
33791         doc/posix-functions/mktemp.texi.
33792         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
33793         doc/posix-functions/pthread_attr_getstackaddr.texi.
33794         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
33795         doc/posix-functions/pthread_attr_setstackaddr.texi.
33796         * doc/pastposix-functions/rindex.texi: Renamed from
33797         doc/posix-functions/rindex.texi.
33798         * doc/pastposix-functions/scalb.texi: Renamed from
33799         doc/posix-functions/scalb.texi.
33800         * doc/pastposix-functions/setcontext.texi: Renamed from
33801         doc/posix-functions/setcontext.texi.
33802         * doc/pastposix-functions/swapcontext.texi: Renamed from
33803         doc/posix-functions/swapcontext.texi.
33804         * doc/pastposix-functions/ualarm.texi: Renamed from
33805         doc/posix-functions/ualarm.texi.
33806         * doc/pastposix-functions/usleep.texi: Renamed from
33807         doc/posix-functions/usleep.texi.
33808         * doc/pastposix-functions/vfork.texi: Renamed from
33809         doc/posix-functions/vfork.texi.
33810         * doc/pastposix-functions/wcswcs.texi: Renamed from
33811         doc/posix-functions/wcswcs.texi.
33812         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
33813         (Function Substitutes): Update.
33814
33815 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33816
33817         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
33818         m4/strerror.m4.
33819
33820 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33821             Bruno Haible  <bruno@clisp.org>
33822
33823         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
33824
33825 2008-12-13  Bruno Haible  <bruno@clisp.org>
33826
33827         * modules/strtoull (Depends-on): Remove unistd.
33828
33829 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33830
33831         * modules/strtoull (Depends-on): Add stdlib.
33832
33833 2008-12-11  Simon Josefsson  <simon@josefsson.org>
33834
33835         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
33836
33837 2008-12-10  Jim Meyering  <meyering@redhat.com>
33838
33839         gl_ASSERT: don't say assertions are disabled when they're not
33840         * m4/assert.m4 (gl_ASSERT): Do not make configure report
33841         "checking whether to enable assertions... no", when they are in
33842         fact enabled.  This is solely a bug in the output of configure.
33843         In spite of saying "no", NDEBUG was not defined in that case.
33844         Also, as noted by Eric Blake, leave assertions enabled upon
33845         --enable-assert=INVALID.
33846
33847 2008-12-10  Bruno Haible  <bruno@clisp.org>
33848
33849         Change MODULES.html to refer to POSIX:2008 where possible.
33850         * MODULES.html.sh (POSIX2008_URL): New variable.
33851         (posix_headers): Remove sys/timeb, ucontext.
33852         (posix2001_headers): New variable.
33853         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
33854         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
33855         index, makecontext, mktemp, pthread_attr_getstackaddr,
33856         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
33857         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
33858         (posix2001_functions): New variable.
33859         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
33860         otherwise.
33861
33862 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33863
33864         add missing include to parse-duration.c
33865         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
33866         * modules/parse-duration (Depends-on): Add xalloc.
33867
33868         fix sed script reading maint.mk
33869         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
33870         (syntax-check-rules): Use it.
33871
33872 2008-12-09  Bruno Haible  <bruno@clisp.org>
33873
33874         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
33875         MacOS X 10.4/PowerPC.
33876         Reported by Simon Josefsson.
33877
33878 2008-12-08  Jim Meyering  <meyering@redhat.com>
33879
33880         work around mingw's lack of some S_IF definitions
33881         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
33882         Reported by Simon Josefsson.
33883
33884 2008-12-08  Bruno Haible  <bruno@clisp.org>
33885
33886         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
33887         applied to variables. Needed on MacOS X 10.4/PowerPC.
33888         Reported by Simon Josefsson.
33889
33890 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
33891         and Eric Blake  <ebb9@byu.net>
33892
33893         assert: honor --enable-assert
33894         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
33895         order to honor --enable-assert, rather than treating it as a
33896         synonym for --disable-assert.
33897
33898 2008-12-08  Jim Meyering  <meyering@redhat.com>
33899
33900         * lib/posixtm.c: Remove now-useless declaration of mktime.
33901
33902         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33903
33904 2008-12-07  Bruno Haible  <bruno@clisp.org>
33905
33906         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
33907         test_once): Mark functions as static.
33908         * tests/test-tls.c (test_tls): Likewise.
33909
33910 2008-12-07  Bruno Haible  <bruno@clisp.org>
33911
33912         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
33913         iconv_register_autodetect.
33914
33915 2008-12-07  Jim Meyering  <meyering@redhat.com>
33916
33917         posixtm.c: avoid a warning
33918         * lib/posixtm.c (posixtime): Don't initialize tm0.
33919         It's no longer needed to placate gcc4's -Wuninitialized,
33920         and the attempt to placate would elicit a new warning.
33921
33922         unicodeio.c: mark unused parameters
33923         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33924         (fallback_failure_callback): Likewise.
33925
33926 2008-12-07  Bruno Haible  <bruno@clisp.org>
33927
33928         * gnulib-tool (func_create_testdir): When building the tests
33929         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
33930         Reported by Simon Josefsson.
33931
33932 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33933
33934         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
33935
33936 2008-12-06  Bruno Haible  <bruno@clisp.org>
33937
33938         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
33939         Suggested by Eric Blake.
33940
33941 2008-12-06  Bruno Haible  <bruno@clisp.org>
33942
33943         Fix a c-stack test failure on MacOS X.
33944         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
33945         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
33946         handler for SIGBUS as well.
33947         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
33948         install a signal handler for SIGBUS as well.
33949         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
33950
33951 2008-12-06  Bruno Haible  <bruno@clisp.org>
33952
33953         Advocacy documentation.
33954         * doc/gnulib-intro.texi (Benefits): New section.
33955         * doc/gnulib.texi: Update.
33956
33957 2008-12-06  Bruno Haible  <bruno@clisp.org>
33958
33959         Document the 'manywarnings' module.
33960         * doc/manywarnings.texi: New file.
33961         * doc/gnulib.texi: Include it.
33962
33963 2008-12-05  Eric Blake  <ebb9@byu.net>
33964
33965         tests: silence some gcc warnings
33966         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
33967         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
33968         type mismatches.
33969
33970 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33971             Bruno Haible  <bruno@clisp.org>
33972
33973         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
33974
33975 2008-11-29  Jim Meyering  <meyering@redhat.com>
33976
33977         unicodeio.c: mark unused parameters
33978         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33979         (fallback_failure_callback): Likewise.
33980
33981         fts: fix a thinko
33982         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
33983         (set_stat_type): Return S_IF*-valued "type" directly.
33984         Prompted by James Youngman's spotting a related bug.
33985         Confirmed by further testing through find.
33986
33987         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
33988         * lib/fts.c (D_TYPE): Define.
33989         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
33990         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
33991         (s_ifmt_shift_bits): New function.
33992         (set_stat_type): New function.
33993         (fts_build): When not calling fts_stat, call set_stat_type
33994         to propagate dirent.d_type info to fts_read caller.
33995         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
33996         fts_statp->st_mode type information may be valid.
33997
33998 2008-11-28  Simon Josefsson  <simon@josefsson.org>
33999
34000         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
34001         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
34002         <sds@gnu.org>.
34003
34004 2008-11-20  Bruno Haible  <bruno@clisp.org>
34005
34006         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
34007         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
34008         INCLUDE_NEXT.
34009         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
34010         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
34011         * modules/math (Makefile.am): Substitute
34012         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
34013         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34014
34015 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34016             Bruno Haible  <bruno@clisp.org>
34017
34018         * lib/stdint.in.h: Define all type macros so that their expansion is
34019         a single typedef'ed token. Fixes a compilation failure in Boost which
34020         does "using ::int8_t;".
34021
34022 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34023
34024         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
34025         gl_MANYWARN_ALL_GCC.
34026         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
34027         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
34028         * modules/manywarnings: New file.
34029         * MODULES.html.sh: Mention manywarnings module.
34030
34031 2008-11-18  Bruno Haible  <bruno@clisp.org>
34032
34033         * doc/gnulib-tool.texi (Unit tests): New section.
34034
34035 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34036
34037         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
34038         paths like 'lib/po/foo.po'.
34039
34040 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34041
34042         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
34043         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
34044
34045 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34046
34047         * m4/warnings.m4: Use CPPFLAGS to really check whether the
34048         parameter works.
34049
34050 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34051
34052         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
34053
34054 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34055
34056         * modules/parse-duration-tests: New file.
34057         * tests/test-parse-duration.sh: New file.
34058         * tests/test-parse-duration.c: New file.
34059
34060         New module 'parse-duration'.
34061         * lib/parse-duration.h: New file.
34062         * lib/parse-duration.c: New file.
34063         * modules/parse-duration: New file.
34064
34065 2008-11-17  Bruno Haible  <bruno@clisp.org>
34066
34067         * tests/test-select-out.sh: Comment out the first pipe test.
34068         Reported by Simon Josefsson.
34069
34070 2008-11-17  Bruno Haible  <bruno@clisp.org>
34071
34072         * modules/getaddrinfo (Depends-on): Add servent, hostent.
34073         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
34074         gl_HOSTENT.
34075
34076 2008-11-17  Bruno Haible  <bruno@clisp.org>
34077
34078         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
34079         -lnetwork and -lnet. Needed for Haiku and BeOS.
34080
34081 2008-11-16  Bruno Haible  <bruno@clisp.org>
34082
34083         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
34084
34085 2008-11-16  Bruno Haible  <bruno@clisp.org>
34086
34087         Avoid test failure on Haiku.
34088         * tests/test-fsync.c: Include <errno.h>.
34089         (main): Don't require that fsync (0) fails.
34090
34091 2008-11-15  Bruno Haible  <bruno@clisp.org>
34092
34093         New module 'hostent'.
34094         * modules/hostent: New file.
34095         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
34096
34097 2008-11-15  Bruno Haible  <bruno@clisp.org>
34098
34099         New module 'servent'.
34100         * modules/servent: New file.
34101         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
34102
34103 2008-11-15  Bruno Haible  <bruno@clisp.org>
34104
34105         Avoid generating same test program with two different rules.
34106         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
34107         test-frexp to test-frexp-nolibm.
34108         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
34109         test-frexpl to test-frexpl-nolibm.
34110
34111 2008-11-15  Bruno Haible  <bruno@clisp.org>
34112
34113         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
34114         $(FREXPL_LIBM).
34115
34116 2008-11-15  Bruno Haible  <bruno@clisp.org>
34117
34118         * lib/netdb.in.h: Activate the definitions also when the system's
34119         <netdb.h> has 'struct addrinfo'.
34120         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
34121         EAI_OVERFLOW or AI_NUMERICSERV.
34122         * doc/posix-headers/netdb.texi: Document the problem.
34123
34124 2008-11-15  Bruno Haible  <bruno@clisp.org>
34125
34126         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
34127
34128         Make the 'sched' module work on platforms where <sched.h> exists but
34129         is incomplete (such as Haiku).
34130         * lib/sched.in.h; Include the system's <sched.h> if it exists.
34131         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
34132         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
34133         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
34134         HAVE_STRUCT_SCHED_PARAM.
34135         * modules/sched (Depends-on): Add include_next.
34136         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
34137         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
34138         * doc/posix-headers/sched.texi: Document the issue.
34139
34140 2008-11-13  Jim Meyering  <meyering@redhat.com>
34141
34142         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
34143         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
34144         test would fail due to the difference in the Report bugs to ...
34145         line.  The expected address is empty, "<>", while the actual
34146         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
34147
34148 2008-11-12  Bruno Haible  <bruno@clisp.org>
34149
34150         lstat: don't compile lstat.c on systems lacking lstat
34151         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
34152         which don't have lstat; this is handled by lib/sys_stat.in.h already.
34153         Reported by Daniel P. Berrange via Jim Meyering.
34154
34155 2008-11-12  Jim Meyering  <meyering@redhat.com>
34156
34157         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
34158
34159 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34160
34161         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
34162         instead.
34163
34164 2008-11-12  Bruno Haible  <bruno@clisp.org>
34165
34166         * lib/unicodeio.c: Include unistr.h.
34167         (utf8_wctomb): Remove function.
34168         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
34169
34170 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34171
34172         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
34173         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
34174         <bruno@clisp.org>.
34175         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
34176
34177 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34178
34179         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
34180         * doc/gnulib.texi: Add section for warnings.
34181
34182 2008-11-11  Bruno Haible  <bruno@clisp.org>
34183
34184         * lib/sockets.h: Add a comment.
34185
34186 2008-11-11  Karl Berry  <karl@gnu.org>
34187
34188         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
34189
34190 2008-11-11  Eric Blake  <ebb9@byu.net>
34191
34192         fdl.texi: avoid git symlinks
34193         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
34194
34195 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34196
34197         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
34198
34199 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34200
34201         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
34202         (gl_WARN_ADD): Substitute $2 if literal.
34203
34204 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34205
34206         * m4/warning.m4: Remove.
34207
34208 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34209
34210         * m4/warnings.m4: Almost complete rewrite. :-)
34211
34212 2008-11-10  Simon Josefsson  <simon@josefsson.org>
34213
34214         * modules/warnings: New module.
34215         * m4/warnings.m4: New file.
34216         * MODULES.html.sh: Mention warnings module.
34217         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
34218         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34219
34220 2008-11-10  Eric Blake  <ebb9@byu.net>
34221
34222         fdl.texi: make a symlink to the latest version
34223         * doc/standards.texi: Revert today's earlier change.
34224         * doc/fdl-1.2.texi: Rename from old fdl.texi...
34225         * doc/fdl.texi: ...and replace this with a symlink to the newer
34226         fdl-1.3.texi.
34227
34228 2008-11-10  Bruno Haible  <bruno@clisp.org>
34229
34230         * tests/test-select-fd.c (main): Accept the result file name as fourth
34231         argument.
34232         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
34233         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
34234
34235 2008-11-10  Bruno Haible  <bruno@clisp.org>
34236
34237         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
34238         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
34239         as autoconf-substituted macros.
34240         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
34241         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
34242         gl_NETDB_H_DEFAULTS. Set these variables.
34243         * modules/netdb (Makefile.am): Substitute these variables.
34244
34245 2008-11-10  Eric Blake  <ebb9@byu.net>
34246
34247         standards.texi: include correct file for FDL 1.3
34248         * doc/standards.texi (GNU Free Documentation License): Change
34249         include file to pull in FDL 1.3, not 1.2.
34250
34251         fdl.texi: revert accidental change to license
34252         * doc/fdl.texi: This is FDL 1.2, not 1.3.
34253
34254 2008-11-10  Bruno Haible  <bruno@clisp.org>
34255
34256         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
34257         cross-compiling guesses also when the native compile gives no result.
34258
34259 2008-11-10  Bruno Haible  <bruno@clisp.org>
34260
34261         * lib/spawni.c (__spawni): Force variable into the stack.
34262
34263 2008-11-10  Bruno Haible  <bruno@clisp.org>
34264
34265         Add support for Haiku.
34266         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
34267         glibc and BeOS, but also on Haiku.
34268         * lib/fpurge.c (fpurge): Likewise.
34269         * lib/freadable.c (freadable): Likewise.
34270         * lib/freadahead.c (freadahead): Likewise.
34271         * lib/freading.c (freading): Likewise.
34272         * lib/freadptr.c (freadptr): Likewise.
34273         * lib/freadseek.c (freadptrinc): Likewise.
34274         * lib/fseeko.c (rpl_fseeko): Likewise.
34275         * lib/fseterr.c (fseterr): Likewise.
34276         * lib/fwritable.c (fwritable): Likewise.
34277         * lib/fwriting.c (fwriting): Likewise.
34278         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
34279
34280 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34281
34282         * lib/config.charset: Treat Haiku like BeOS.
34283
34284 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34285
34286         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
34287         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
34288
34289 2008-11-08  Bruno Haible  <bruno@clisp.org>
34290
34291         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
34292         AC_CACHE_CHECK.
34293
34294 2008-11-08  Bruno Haible  <bruno@clisp.org>
34295
34296         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
34297
34298 2008-11-08  Bruno Haible  <bruno@clisp.org>
34299
34300         * tests/test-select-fd.c: New file.
34301         * tests/test-select-in.sh: New file.
34302         * tests/test-select-out.sh: New file.
34303         * tests/test-select-stdin.c: New file.
34304         * modules/select-tests (Files): Add the new files.
34305         (Depends-on): Add gettimeofday.
34306         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
34307         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
34308         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
34309
34310 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
34311             Bruno Haible  <bruno@clisp.org>
34312
34313         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
34314
34315 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
34316
34317         * build-aux/pmccabe2html: Added support for C++ source files.
34318
34319 2008-11-05  Ben Pfaff  <blp@gnu.org>
34320
34321         Fix lib/close.c build on Windows.
34322         * modules/close (Files): Add lib/w32sock.h.
34323
34324 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
34325
34326         Accept Bison's NEWS format.
34327         * build-aux/announce-gen (print_news_deltas): Tweak
34328         $re_prefix.
34329
34330 2008-11-04  Bruno Haible  <bruno@clisp.org>
34331
34332         * modules/random_r (Maintainer): Add glibc.
34333
34334 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34335
34336         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
34337         by karl@freefriends.org (Karl Berry).
34338         * doc/alloca.texi: Likewise.
34339         * doc/c-ctype.texi: Likewise.
34340         * doc/c-strcase.texi: Likewise.
34341         * doc/c-strcaseeq.texi: Likewise.
34342         * doc/c-strcasestr.texi: Likewise.
34343         * doc/c-strstr.texi: Likewise.
34344         * doc/c-strtod.texi: Likewise.
34345         * doc/c-strtold.texi: Likewise.
34346         * doc/ctime.texi: Likewise.
34347         * doc/error.texi: Likewise.
34348         * doc/fdl.texi: Likewise.
34349         * doc/gcd.texi: Likewise.
34350         * doc/getdate.texi: Likewise.
34351         * doc/gnulib-intro.texi: Likewise.
34352         * doc/gnulib-tool.texi: Likewise.
34353         * doc/gnulib.texi: Likewise.
34354         * doc/inet_ntoa.texi: Likewise.
34355         * doc/maintain.texi: Likewise.
34356         * doc/make-stds.texi: Likewise.
34357         * doc/quote.texi: Likewise.
34358         * doc/regexprops-generic.texi: Likewise.
34359         * doc/standards.texi: Likewise.
34360         * doc/verify.texi: Likewise.
34361         * doc/visibility.texi: Likewise.
34362         * doc/gnulib.texi (GNU Free Documentation License): Include
34363         fdl-1.3.texi instead of fdl.texi.
34364
34365 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34366
34367         * doc/fdl-1.3.texi: New file, from
34368         <http://www.gnu.org/licenses/fdl-1.3.texi>.
34369         * modules/fdl-1.3: Add.
34370         * MODULES.html.sh: Add fdl-1.3.
34371
34372 2008-11-03  Bruno Haible  <bruno@clisp.org>
34373
34374         Make determination of absolute name of header file work with AIX xlc.
34375         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
34376         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
34377         preprocessing.
34378         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34379         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
34380
34381 2008-11-03  Simon Josefsson  <simon@josefsson.org>
34382
34383         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
34384         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
34385         <ludo@gnu.org>.
34386
34387 2008-11-02  Bruno Haible  <bruno@clisp.org>
34388
34389         Mark 'strpbrk' obsolete.
34390         * modules/strpbrk (Status, Notice): New sections.
34391         * modules/strtok_r (Depends-on): Add strpbrk.
34392
34393 2008-11-02  Bruno Haible  <bruno@clisp.org>
34394
34395         Mark 'strdup' obsolete.
34396         * modules/strdup (Status, Notice): New sections.
34397         * modules/findprog (Depends-on): Add strdup.
34398         * modules/getaddrinfo (Depends-on): Likewise.
34399         * modules/localename (Depends-on): Likewise.
34400         * modules/relocatable-lib (Depends-on): Likewise.
34401         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
34402         * modules/relocatable-prog (Depends-on): Likewise.
34403         * modules/trim (Depends-on): Likewise.
34404         * modules/unictype/gen-ctype (Depends-on): Likewise.
34405         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34406
34407 2008-11-02  Bruno Haible  <bruno@clisp.org>
34408
34409         Mark 'strcspn' obsolete.
34410         * modules/strcspn (Status, Notice): New sections.
34411
34412 2008-11-02  Bruno Haible  <bruno@clisp.org>
34413
34414         Mark 'rmdir' obsolete.
34415         * modules/rmdir (Status, Notice): New sections.
34416         * modules/clean-temp (Depends-on): Add rmdir.
34417         * modules/openat (Depends-on): Likewise.
34418
34419 2008-11-02  Bruno Haible  <bruno@clisp.org>
34420
34421         Mark 'raise' obsolete.
34422         * modules/raise (Status, Notice): New sections.
34423         (Include): Specify <signal.h>.
34424         * modules/stdio (Depends-on): Add raise.
34425         * modules/write (Depends-on): Likewise.
34426
34427 2008-11-02  Bruno Haible  <bruno@clisp.org>
34428
34429         Mark 'memset' obsolete.
34430         * modules/memset (Status, Notice): New sections.
34431
34432 2008-11-02  Bruno Haible  <bruno@clisp.org>
34433
34434         Mark 'memmove' obsolete.
34435         * modules/memmove (Status, Notice): New sections.
34436         * modules/argp (Depends-on): Add memmove.
34437         * modules/argz (Depends-on): Likewise.
34438         * modules/canonicalize (Depends-on): Likewise.
34439         * modules/canonicalize-lgpl (Depends-on): Likewise.
34440         * modules/fts (Depends-on): Likewise.
34441         * modules/getcwd (Depends-on): Likewise.
34442         * modules/human (Depends-on): Likewise.
34443         * modules/regex (Depends-on): Likewise.
34444         * modules/striconveh (Depends-on): Likewise.
34445         * modules/trim (Depends-on): Likewise.
34446         * modules/unistr/u8-move (Depends-on): Likewise.
34447         * modules/unistr/u16-move (Depends-on): Likewise.
34448         * modules/unistr/u32-move (Depends-on): Likewise.
34449
34450 2008-11-02  Bruno Haible  <bruno@clisp.org>
34451
34452         Mark 'memcpy' obsolete.
34453         * modules/memcpy (Status, Notice): New sections.
34454
34455 2008-11-02  Bruno Haible  <bruno@clisp.org>
34456
34457         Mark 'memcmp' obsolete.
34458         * modules/memcmp (Status, Notice): New sections.
34459         * modules/argmatch (Depends-on): Add memchr.
34460         * modules/backupfile (Depends-on): Likewise.
34461         * modules/c-strcasestr (Depends-on): Likewise.
34462         * modules/crypto/des (Depends-on): Likewise.
34463         * modules/csharpcomp (Depends-on): Likewise.
34464         * modules/fnmatch (Depends-on): Likewise.
34465         * modules/git-merge-changelog (Depends-on): Likewise.
34466         * modules/isnand (Depends-on): Likewise.
34467         * modules/isnand-nolibm (Depends-on): Likewise.
34468         * modules/isnanf (Depends-on): Likewise.
34469         * modules/isnanf-nolibm (Depends-on): Likewise.
34470         * modules/isnanl (Depends-on): Likewise.
34471         * modules/isnanl-nolibm (Depends-on): Likewise.
34472         * modules/mbchar (Depends-on): Likewise.
34473         * modules/memcoll (Depends-on): Likewise.
34474         * modules/quotearg (Depends-on): Likewise.
34475         * modules/regex (Depends-on): Likewise.
34476         * modules/relocatable-prog (Depends-on): Likewise.
34477         * modules/same (Depends-on): Likewise.
34478         * modules/signbit (Depends-on): Likewise.
34479         * modules/strcasestr-simple (Depends-on): Likewise.
34480         * modules/unictype/gen-ctype (Depends-on): Likewise.
34481         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34482         * modules/uniname/uniname (Depends-on): Likewise.
34483         * modules/unistr/u8-cmp (Depends-on): Likewise.
34484
34485 2008-11-02  Bruno Haible  <bruno@clisp.org>
34486
34487         Mark 'memchr' obsolete.
34488         * modules/memchr (Status, Notice): New sections.
34489         * modules/argp (Depends-on): Add memchr.
34490         * modules/base64 (Depends-on): Likewise.
34491         * modules/c-strcasestr (Depends-on): Likewise.
34492         * modules/chdir-long (Depends-on): Likewise.
34493         * modules/fnmatch (Depends-on): Likewise.
34494         * modules/getsubopt (Depends-on): Likewise.
34495         * modules/git-merge-changelog (Depends-on): Likewise.
34496         * modules/glob (Depends-on): Likewise.
34497         * modules/strcasestr-simple (Depends-on): Likewise.
34498         * modules/strnlen (Depends-on): Likewise.
34499
34500 2008-11-02  Bruno Haible  <bruno@clisp.org>
34501
34502         Mark 'atexit' obsolete.
34503         * modules/atexit (Status, Notice): New sections.
34504         * modules/chdir-long (Depends-on): Add atexit.
34505         * modules/wait-process (Depends-on): Likewise.
34506
34507 2008-11-02  Bruno Haible  <bruno@clisp.org>
34508
34509         * gnulib-tool: New option --with-obsolete.
34510         (func_usage): Document it.
34511         (func_modules_transitive_closure): Drop obsolete dependencies if
34512         incobsolete is not true.
34513         (func_import): Read and save the incobsolete variable to the cache.
34514
34515 2008-11-02  Bruno Haible  <bruno@clisp.org>
34516
34517         * modules/TEMPLATE-EXTENDED: New field 'Status'.
34518         * gnulib-tool: New option --extract-status.
34519         (func_usage): Document it.
34520         (sed_extract_prog): Recognize it.
34521         (func_get_status): New function.
34522
34523 2008-10-30  Simon Josefsson  <simon@josefsson.org>
34524
34525         * modules/sockets (License): Change from LGPL to LGPLv2+.
34526
34527 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34528
34529         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
34530
34531 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34532
34533         * MODULES.html.sh (Support for systems lacking POSIX:2001):
34534         Mention times and sys_times.
34535         * modules/sys_times, modules/sys_times-tests: New modules.
34536         * modules/times, modules/times-tests: Likewise
34537         * m4/sys_times_h.m4: New file.
34538         * lib/sys_times.in.h: Likewise
34539         * lib/times.c: Likewise.
34540         * tests/test-sys_times.c: Likewise.
34541         * tests/test-times.c: Likewise.
34542         * doc/posix-headers/sys_times.texi: Update.
34543         * doc/posix-functions/times.texi: Update.
34544
34545 2008-10-28  Jim Meyering  <meyering@redhat.com>
34546
34547         * modules/tempname (Depends-on): Add lstat.
34548
34549         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
34550
34551 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34552
34553         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
34554         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
34555         using idiom used elsewhere in gnulib.
34556
34557 2008-10-27  Jim Meyering  <meyering@redhat.com>
34558
34559         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
34560
34561 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34562
34563         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
34564         TESTS_ENVIRONMENT, for shell scripts that needs to call built
34565         programs.
34566         * tests/test-argp-2.sh: Use $EXEEXT when needed.
34567
34568 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34569
34570         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
34571
34572 2008-10-27  Bruno Haible  <bruno@clisp.org>
34573
34574         * tests/test-lstat.c: Include <stdio.h>.
34575
34576 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34577
34578         * modules/lstat-tests: New module.
34579         * tests/test-lstat.c: New file.
34580
34581 2008-10-26  Jim Meyering  <meyering@redhat.com>
34582
34583         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
34584
34585 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34586             Bruno Haible  <bruno@clisp.org>
34587
34588         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
34589         * modules/configmake (Include): Add a note that the include must come
34590         after all system headers.
34591         * lib/javaversion.c: Include configmake.h after all other includes.
34592
34593 2008-10-26  Bruno Haible  <bruno@clisp.org>
34594
34595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
34596         HAVE_STRUCT_RANDOM_DATA to 1.
34597         (gl_STDLIB_H): Simplify.
34598
34599 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34600
34601         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
34602         substitute HAVE_STRUCT_RANDOM_DATA.
34603         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
34604         random_data.
34605         * modules/stdlib (Makefile.am): Substitute
34606         HAVE_STRUCT_RANDOM_DATA.
34607
34608 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34609
34610         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
34611         * doc/gnulib-intro.texi (Copyright): Likewise.
34612
34613 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34614
34615         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
34616         findings.
34617
34618 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
34619             Bruno Haible  <bruno@clisp.org>
34620
34621         * lib/unistd.in.h: Include <winsock2.h>.
34622         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
34623         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
34624         Provide dummy declarations.
34625         (gethostname): Override.
34626         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
34627         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
34628         gl_PREREQ_SYS_H_WINSOCK2.
34629         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
34630         * doc/posix-functions/gethostname.texi: More details.
34631
34632 2008-10-25  Bruno Haible  <bruno@clisp.org>
34633
34634         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34635         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
34636         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
34637
34638         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
34639         here ...
34640         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
34641         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
34642         gl_UNISTD_H_DEFAULTS.
34643
34644 2008-10-25  Eric Blake  <ebb9@byu.net>
34645
34646         signbit: avoid spurious compiler failure
34647         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
34648         declarations inside function.
34649
34650 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34651             Bruno Haible  <bruno@clisp.org>
34652
34653         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
34654         * modules/random_r (Depends-on): Add stdint.
34655
34656 2008-10-24  Bruno Haible  <bruno@clisp.org>
34657
34658         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
34659         Eggert.
34660         * modules/strerror (License): Likewise.
34661
34662 2008-10-24  Jim Meyering  <meyering@redhat.com>
34663
34664         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
34665         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
34666
34667 2008-10-24  Eric Blake  <ebb9@byu.net>
34668
34669         getgroups: fix compilation when getgroups is available
34670         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
34671         but with <config.h> override of getgroups disabled.
34672
34673 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34674
34675         * doc/gnulib.texi (Header files): Add note about C++ problems.
34676         Explained by Bruno Haible <bruno@clisp.org>.
34677
34678 2008-10-23  Bruno Haible  <bruno@clisp.org>
34679
34680         Define a dummy SA_NODEFER macro on Interix.
34681         * lib/signal.in.h (SA_NODEFER): Define fallback.
34682         Reported by Aleksey Cheusov <cheusov@tut.by> via
34683         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
34684
34685 2008-10-23  Bruno Haible  <bruno@clisp.org>
34686
34687         * modules/freadahead (License): Change to LGPLv2+.
34688         Suggested by Simon Josefsson.
34689
34690 2008-10-23  Jim Meyering  <meyering@redhat.com>
34691
34692         random_r: new module
34693         * modules/random_r: New file.
34694         * m4/random_r.m4: New file.
34695         * lib/random_r.c: New file, from glibc.
34696         * modules/random_r-tests: New file.
34697         * tests/test-random_r.c: New file.
34698         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
34699          Declare.
34700         (RAND_MAX): Define.
34701         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
34702         * modules/stdlib: Substitute them, too.
34703         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
34704         * doc/glibc-functions/initstate_r.texi: Mention the new module.
34705         * doc/glibc-functions/random_r.texi: Likewise.
34706         * doc/glibc-functions/setstate_r.texi: Likewise.
34707         * doc/glibc-functions/srandom_r.texi: Likewise.
34708         * config/srclist.txt: Mention it.
34709
34710 2008-10-23  David Lutterkort  <lutter@redhat.com>
34711
34712         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
34713         link requirement
34714
34715 2008-10-23  Jim Meyering  <meyering@redhat.com>
34716
34717         selinux-h: mark parameters of stub functions as intentionally unused
34718         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
34719         * lib/se-context.in.h: Likewise.
34720
34721 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34722
34723         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
34724
34725 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34726
34727         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
34728
34729 2008-10-22  Eric Blake  <ebb9@byu.net>
34730
34731         glthread/thread: avoid compiler warning
34732         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
34733         Add unreachable abort to silence compiler.
34734
34735 2008-10-22  Eric Blake  <ebb9@byu.net>
34736
34737         netdb: also supply struct addrinfo for cygwin 1.5.x
34738         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
34739         older cygwin.
34740         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
34741         cygwin.
34742         * doc/posix-headers/netdb.texi (netdb.h): Document this.
34743
34744 2008-10-22  Bruno Haible  <bruno@clisp.org>
34745
34746         * users.txt: Update entry about pspp.
34747
34748 2008-10-21  Bruno Haible  <bruno@clisp.org>
34749
34750         Simplification.
34751         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
34752         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
34753
34754         Simplification.
34755         * lib/ioctl.c (ioctl): Don't undefine.
34756         * lib/socket.c (socket): Don't undefine.
34757
34758         Remove unused module indicator macros.
34759         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
34760         GNULIB_$1 as a C macro.
34761
34762         * doc/posix-functions/close.texi: Undo last change.
34763         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
34764         Windows platforms.
34765
34766 2008-10-21  Bruno Haible  <bruno@clisp.org>
34767
34768         Add gethostname() declaration to <unistd.h>.
34769         * lib/unistd.in.h (gethostname): New declaration.
34770         * lib/gethostname.c: Include <unistd.h>.
34771         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
34772         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
34773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
34774         and HAVE_GETHOSTNAME.
34775         * modules/gethostname (Depends-on): Add unistd.
34776         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34777         (Include): Specify <unistd.h>.
34778         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
34779         HAVE_GETHOSTNAME.
34780         * tests/test-gethostname.c: Include <unistd.h> first.
34781
34782 2008-10-21  Bruno Haible  <bruno@clisp.org>
34783
34784         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
34785         * modules/select-tests (Depends-on): Likewise.
34786         Reported by Simon Josefsson.
34787
34788 2008-10-21  Simon Josefsson  <simon@josefsson.org>
34789
34790         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
34791         * lib/accept.c: New file, based on winsock.c.
34792         * lib/bind.c: New file, based on winsock.c.
34793         * lib/connect.c: New file, based on winsock.c.
34794         * lib/getpeername.c: New file, based on winsock.c.
34795         * lib/getsockname.c: New file, based on winsock.c.
34796         * lib/getsockopt.c: New file, based on winsock.c.
34797         * lib/ioctl.c: New file, based on winsock.c.
34798         * lib/listen.c: New file, based on winsock.c.
34799         * lib/recv.c: New file, based on winsock.c.
34800         * lib/recvfrom.c: New file, based on winsock.c.
34801         * lib/send.c: New file, based on winsock.c.
34802         * lib/sendto.c: New file, based on winsock.c.
34803         * lib/setsockopt.c: New file, based on winsock.c.
34804         * lib/shutdown.c: New file, based on winsock.c.
34805         * lib/socket.c: New file, based on winsock.c.
34806         * lib/w32sock.h: New file, based on winsock.c.
34807         * lib/winsock.c: Remove file.
34808         * modules/accept: Likewise.
34809         * modules/bind: Likewise.
34810         * modules/connect: Likewise.
34811         * modules/getpeername: Likewise.
34812         * modules/getsockname: Likewise.
34813         * modules/getsockopt: Likewise.
34814         * modules/ioctl: Likewise.
34815         * modules/listen: Likewise.
34816         * modules/recv: Likewise.
34817         * modules/recvfrom: Likewise.
34818         * modules/send: Likewise.
34819         * modules/sendto: Likewise.
34820         * modules/setsockopt: Likewise.
34821         * modules/shutdown: Likewise.
34822         * modules/socket: Use socket.c instead of winsock.c.
34823         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
34824         * doc/posix-functions/accept.texi: Doc fix.
34825         * doc/posix-functions/bind.texi: Doc fix.
34826         * doc/posix-functions/close.texi: Doc fix.
34827         * doc/posix-functions/connect.texi: Doc fix.
34828         * doc/posix-functions/getpeername.texi: Doc fix.
34829         * doc/posix-functions/getsockname.texi: Doc fix.
34830         * doc/posix-functions/getsockopt.texi: Doc fix.
34831         * doc/posix-functions/ioctl.texi: Doc fix.
34832         * doc/posix-functions/listen.texi: Doc fix.
34833         * doc/posix-functions/recv.texi: Doc fix.
34834         * doc/posix-functions/recvfrom.texi: Doc fix.
34835         * doc/posix-functions/send.texi: Doc fix.
34836         * doc/posix-functions/sendto.texi: Doc fix.
34837         * doc/posix-functions/setsockopt.texi: Doc fix.
34838         * doc/posix-functions/shutdown.texi: Doc fix.
34839         * doc/posix-functions/socket.texi: Doc fix.
34840
34841 2008-10-20  Bruno Haible  <bruno@clisp.org>
34842
34843         Take into account the role of SIGABRT_COMPAT on Windows 2008.
34844         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
34845         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
34846         as an alias for SIGABRT.
34847         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
34848         (sigaction): Map it to SIGABRT.
34849         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
34850
34851 2008-10-20  Bruno Haible  <bruno@clisp.org>
34852
34853         * lib/fts.c: Don't include lstat.h.
34854         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
34855
34856         Move the lstat() declaration to <sys/stat.h>.
34857         * lib/lstat.h: Remove file.
34858         * lib/sys_stat.in.h: Add special invocation convention.
34859         (lstat): New declaration.
34860         * lib/lstat.c (orig_lstat): New function.
34861         (rpl_lstat): Use orig_lstat instead of lstat.
34862         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
34863         AC_C_INLINE. Set REPLACE_LSTAT.
34864         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
34865         and REPLACE_LSTAT.
34866         * modules/lstat (Files): Remove lib/lstat.h.
34867         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34868         (Include): Specify <sys/stat.h> instead of lstat.h.
34869         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
34870         REPLACE_LSTAT.
34871         * NEWS: Mention the change.
34872
34873 2008-10-20  Bruno Haible  <bruno@clisp.org>
34874
34875         * modules/posix_spawn-tests: New file.
34876         * tests/test-posix_spawn3.c: New file.
34877
34878 2008-10-20  Bruno Haible  <bruno@clisp.org>
34879
34880         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
34881         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34882         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
34883         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34884         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
34885
34886 2008-10-20  Bruno Haible  <bruno@clisp.org>
34887
34888         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
34889         of posix_spawn on AIX 5.3.
34890
34891 2008-10-20  Bruno Haible  <bruno@clisp.org>
34892
34893         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
34894
34895 2008-10-20  Bruno Haible  <bruno@clisp.org>
34896
34897         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
34898         of AC_LANG_PROGRAM.
34899
34900 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34901
34902         * lib/netdb.in.h: Don't define GNU specific constants until they
34903         are supported or needed.  Reported by Bruno Haible
34904         <bruno@clisp.org>.
34905
34906 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34907
34908         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
34909
34910 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34911
34912         * lib/getaddrinfo.h: Remove file.
34913         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
34914         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
34915         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
34916         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
34917         * modules/netdb: Substitute GNULIB_GETADDRINFO.
34918         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
34919         * tests/test-getaddrinfo.c: Likewise.
34920         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
34921         * NEWS: Mention change.
34922
34923 2008-10-19  Bruno Haible  <bruno@clisp.org>
34924
34925         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
34926
34927 2008-10-19  Bruno Haible  <bruno@clisp.org>
34928
34929         * lib/wait-process.c: Include simply <sys/wait.h>.
34930         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
34931         WIFSTOPPED): Remove fallback definitions.
34932         * modules/wait-process (Depends-on): Add sys_wait.
34933
34934         New module 'sys_wait'.
34935         * modules/sys_wait: New file.
34936         * lib/sys_wait.in.h: New file, partially copied from
34937         lib/wait-process.c.
34938         * m4/sys_wait_h.m4: New file.
34939         * doc/posix-headers/sys_wait.texi: Mention the new module.
34940
34941 2008-10-19  Bruno Haible  <bruno@clisp.org>
34942
34943         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
34944
34945 2008-10-19  Bruno Haible  <bruno@clisp.org>
34946
34947         Assume that waitpid() fills an 'int' status, not a 'union wait'.
34948         * lib/wait-process.c (WAIT_T): Remove type.
34949         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
34950         (wait_subprocess): Update.
34951
34952 2008-10-19  Bruno Haible  <bruno@clisp.org>
34953
34954         New module 'atoll'.
34955         * modules/atoll: New file.
34956         * lib/stdlib.in.h (atoll): New declaration.
34957         * lib/atoll.c: New file, from glibc with modifications.
34958         * m4/atoll.m4: New file.
34959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
34960         HAVE_ATOLL.
34961         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
34962         * doc/posix-functions/atoll.texi: Mention the new module.
34963
34964 2008-10-19  Bruno Haible  <bruno@clisp.org>
34965
34966         Add strtoull() declaration to <stdlib.h>.
34967         * lib/stdlib.in.h (strtoull): New declaration.
34968         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34969         Set HAVE_STRTOULL.
34970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
34971         HAVE_STRTOULL.
34972         * modules/strtoull (Depends-on): Add stdlib.
34973         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34974         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
34975         HAVE_STRTOULL.
34976
34977 2008-10-19  Bruno Haible  <bruno@clisp.org>
34978
34979         Add strtoll() declaration to <stdlib.h>.
34980         * lib/stdlib.in.h (strtoll): New declaration.
34981         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34982         Set HAVE_STRTOLL.
34983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
34984         HAVE_STRTOLL.
34985         * modules/strtoll (Depends-on): Add stdlib.
34986         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34987         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
34988
34989 2008-10-19  Bruno Haible  <bruno@clisp.org>
34990
34991         * modules/bcopy (Depends-on): Add strings.
34992         (Include): Specify <strings.h>.
34993
34994 2008-10-19  Bruno Haible  <bruno@clisp.org>
34995
34996         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
34997
34998 2008-10-19  Bruno Haible  <bruno@clisp.org>
34999
35000         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
35001         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
35002         mingw.
35003
35004 2008-10-19  Bruno Haible  <bruno@clisp.org>
35005
35006         * lib/atanl.c: Don't include isnanl.h.
35007         * lib/cosl.c: Likewise.
35008         * lib/ldexpl.c: Likewise.
35009         * lib/logl.c: Likewise.
35010         * lib/sinl.c: Likewise.
35011         * lib/sqrtl.c: Likewise.
35012         * lib/tanl.c: Likewise.
35013
35014         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
35015         * lib/isnanf.h: Remove file.
35016         * lib/isnand.h: Remove file.
35017         * lib/isnanl.h: Remove file.
35018         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
35019         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
35020         macros.
35021         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
35022         HAVE_ISNANF, don't define it as a C macro.
35023         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
35024         HAVE_ISNAND, don't define it as a C macro.
35025         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
35026         HAVE_ISNANL, don't define it as a C macro.
35027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
35028         HAVE_ISNAN[FDL].
35029         * modules/isnanf (Files): Remove lib/isnanf.h.
35030         (Depends-on): Add math.
35031         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35032         (Include): Specify <math.h> instead of isnanf.h.
35033         * modules/isnand (Files): Remove lib/isnand.h.
35034         (Depends-on): Add math.
35035         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35036         (Include): Specify <math.h> instead of isnand.h.
35037         * modules/isnanl (Files): Remove lib/isnanl.h.
35038         (Depends-on): Add math.
35039         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35040         (Include): Specify <math.h> instead of isnanl.h.
35041         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
35042         HAVE_ISNAN[FDL].
35043         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
35044         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
35045         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
35046         * NEWS: Mention the change.
35047
35048 2008-10-18  Bruno Haible  <bruno@clisp.org>
35049
35050         Add getusershell(), setusershell(), endusershell() declarations to
35051         <unistd.h>.
35052         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
35053         declarations.
35054         * lib/getusershell.c: Include unistd.h.
35055         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
35056         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35057         HAVE_GETUSERSHELL.
35058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
35059         and HAVE_GETUSERSHELL.
35060         * modules/getusershell (Depends-on): Add unistd, extensions.
35061         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35062         (Include): Specify <unistd.h>.
35063         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
35064         HAVE_GETUSERSHELL.
35065
35066 2008-10-18  Bruno Haible  <bruno@clisp.org>
35067
35068         Add a getloadavg() declaration to <stdlib.h>.
35069         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
35070         getloadavg declaration.
35071         (getloadavg): New declaration.
35072         * lib/getloadavg.c: Include <stdlib.h> first.
35073         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
35074         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
35075         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
35076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
35077         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35078         * modules/getloadavg (Depends-on): Add stdlib, extensions.
35079         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35080         (Include): Specify <stdlib.h>.
35081         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
35082         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35083
35084 2008-10-18  Bruno Haible  <bruno@clisp.org>
35085
35086         * lib/dirchownmod.c: Don't include lchmod.h.
35087
35088         Move the lchmod() declaration to <sys/stat.h>.
35089         * lib/lchmod.h: Remove file.
35090         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
35091         (lchmod): New declaration, moved here from lib/lchown.h.
35092         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
35093         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
35094         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
35095         and HAVE_LCHMOD.
35096         * modules/lchmod (Files): Remove lib/lchmod.h.
35097         (Depends-on): Add sys_stat, extensions.
35098         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35099         (Include): Specify <sys/stat.h> instead of lchmod.h.
35100         * modules/sys_stat (Depends-on): Add link-warning.
35101         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
35102         definition of GL_LINK_WARNING.
35103         * NEWS: Mention the change.
35104
35105 2008-10-18  Bruno Haible  <bruno@clisp.org>
35106
35107         * lib/fchdir.c: Don't include dirfd.h.
35108         * lib/fts.c: Likewise.
35109         * lib/getcwd.c: Likewise.
35110         * lib/glob.c: Likewise.
35111
35112         Move the dirfd() declaration to <dirent.h>.
35113         * lib/dirfd.h: Remove file.
35114         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
35115         (dirfd): New declaration.
35116         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
35117         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
35118         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
35119         HAVE_DECL_DIRFD.
35120         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
35121         HAVE_DECL_DIRFD.
35122         * modules/dirfd (Files): Remove lib/dirfd.h.
35123         (Depends-on): Add dirent, extensions.
35124         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
35125         (Include): Specify <dirent.h> instead of dirfd.h.
35126         * modules/dirent (Depends-on): Add link-warning.
35127         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
35128         definition of GL_LINK_WARNING.
35129         * NEWS: Mention the change.
35130
35131 2008-10-18  Bruno Haible  <bruno@clisp.org>
35132
35133         Move the euidaccess() declaration to <unistd.h>.
35134         * lib/euidaccess.h: Remove file.
35135         * lib/unistd.in.h (euidaccess): New declaration.
35136         * lib/euidaccess.c: Don't include euidaccess.h.
35137         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
35138         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
35139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
35140         and HAVE_EUIDACCESS.
35141         * modules/euidaccess (Files): Remove lib/euidaccess.h.
35142         (Depends-on): Add unistd.
35143         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35144         (Include): Specify <unistd.h> instead of euidaccess.h.
35145         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
35146         HAVE_EUIDACCESS.
35147         * NEWS: Mention the change.
35148
35149 2008-10-18  Bruno Haible  <bruno@clisp.org>
35150
35151         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
35152
35153         Move the getdomainname() declaration to <unistd.h>.
35154         * lib/getdomainname.h: Remove file.
35155         * lib/unistd.in.h (getdomainname): New declaration.
35156         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
35157         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
35158         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35159         HAVE_GETDOMAINNAME.
35160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35161         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
35162         * modules/getdomainname (Files): Remove lib/getdomainname.h.
35163         (Depends-on): Add unistd, extensions.
35164         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35165         (Includes): Specify <unistd.h> instead of getdomainname.h.
35166         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
35167         HAVE_GETDOMAINNAME.
35168         * NEWS: Mention the change.
35169
35170 2008-10-18  Bruno Haible  <bruno@clisp.org>
35171
35172         * modules/dirent: New file.
35173         * m4/dirent_h.m4: New file.
35174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
35175         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
35176         * modules/fchdir (Files): Remove lib/dirent.in.h.
35177         (Depends-on): Add dirent.
35178         (Makefile.am): Move rules to modules/dirent.
35179         * doc/posix-headers/dirent.texi: Mention the new module.
35180
35181 2008-10-18  Bruno Haible  <bruno@clisp.org>
35182
35183         Avoid -Wunused-parameter warnings in public gnulib header files.
35184         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
35185         macro.
35186         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
35187
35188 2008-10-18  Bruno Haible  <bruno@clisp.org>
35189
35190         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
35191         * doc/glibc-functions/error.texi: Mention the module 'error'.
35192         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
35193         * doc/glibc-functions/getdomainname.texi: Mention the module
35194         'getdomainname'.
35195         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
35196         * doc/glibc-functions/getpagesize.texi: Mention the module
35197         'getpagesize'.
35198         * doc/glibc-functions/getusershell.texi: Mention the module
35199         'getusershell'.
35200         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
35201         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
35202         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
35203         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
35204         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
35205         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
35206         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
35207         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
35208         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
35209         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
35210         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
35211         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
35212         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
35213         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
35214
35215 2008-10-17  Bruno Haible  <bruno@clisp.org>
35216
35217         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
35218         HP-UX and IRIX, use -0.0L.
35219         * tests/test-ceill.c (minus_zero): Likewise.
35220         * tests/test-floorl.c (minus_zero): Likewise.
35221         * tests/test-frexpl.c (minus_zero): Likewise.
35222         * tests/test-isnan.c (minus_zerol): Likewise.
35223         * tests/test-isnanl.h (minus_zero): Likewise.
35224         * tests/test-ldexpl.c (minus_zero): Likewise.
35225         * tests/test-roundl.c (minus_zero): Likewise.
35226         * tests/test-signbit.c (minus_zerol): Likewise.
35227         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35228         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35229         * tests/test-truncl.c (minus_zero): Likewise.
35230         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35231         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35232         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
35233         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35234
35235 2008-10-17  Bruno Haible  <bruno@clisp.org>
35236
35237         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
35238         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
35239         that it gets activated only for gcc >= 3.0.
35240         * lib/dirent.in.h: Likewise.
35241         * lib/errno.in.h: Likewise.
35242         * lib/fcntl.in.h: Likewise.
35243         * lib/float.in.h: Likewise.
35244         * lib/iconv.in.h: Likewise.
35245         * lib/inttypes.in.h: Likewise.
35246         * lib/locale.in.h: Likewise.
35247         * lib/math.in.h: Likewise.
35248         * lib/netdb.in.h: Likewise.
35249         * lib/netinet_in.in.h: Likewise.
35250         * lib/search.in.h: Likewise.
35251         * lib/signal.in.h: Likewise.
35252         * lib/spawn.in.h: Likewise.
35253         * lib/stdarg.in.h: Likewise.
35254         * lib/stdint.in.h: Likewise.
35255         * lib/stdio.in.h: Likewise.
35256         * lib/stdlib.in.h: Likewise.
35257         * lib/string.in.h: Likewise.
35258         * lib/strings.in.h: Likewise.
35259         * lib/sys_file.in.h: Likewise.
35260         * lib/sys_ioctl.in.h: Likewise.
35261         * lib/sys_select.in.h: Likewise.
35262         * lib/sys_socket.in.h: Likewise.
35263         * lib/sys_stat.in.h: Likewise.
35264         * lib/sys_time.in.h: Likewise.
35265         * lib/sysexits.in.h: Likewise.
35266         * lib/time.in.h: Likewise.
35267         * lib/unistd.in.h: Likewise.
35268         * lib/wchar.in.h: Likewise.
35269         * lib/wctype.in.h: Likewise.
35270         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35271
35272 2008-10-17  Jim Meyering  <meyering@redhat.com>
35273
35274         ignore-value: don't depend on inline module
35275         * modules/ignore-value (Depends-on): Remove 'inline'.
35276         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
35277         Suggestion from Bruno Haible.
35278
35279 2008-10-17  Bruno Haible  <bruno@clisp.org>
35280
35281         New implementation of condition variables for Win32.
35282         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
35283         (gl_linked_waitqueue_t): New type.
35284         (gl_cond_t): Use it.
35285         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
35286         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
35287         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
35288         (glthread_cond_init_func, glthread_cond_wait_func,
35289         glthread_cond_timedwait_func, glthread_cond_signal_func,
35290         glthread_cond_broadcast_func, glthread_cond_destroy_func):
35291         Reimplemented on the basis of gl_linked_waitqueue_t.
35292         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
35293         gl_waitqueue_t.
35294         (gl_rwlock_t): Update.
35295         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
35296
35297 2008-10-17  Simon Josefsson  <simon@josefsson.org>
35298
35299         * modules/recvfrom (Depends-on): Add dependency on getpeername.
35300         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35301
35302 2008-10-17  Jim Meyering  <meyering@redhat.com>
35303
35304         ignore-value: new module
35305         * modules/ignore-value: New file.
35306         * lib/ignore-value.h: New file.
35307         * MODULES.html.sh (Compiler warning management): New section,
35308         just for this module.  More to come.
35309
35310 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35311
35312         open-safer.c: avoid 'signed and unsigned in conditional...' warning
35313         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
35314         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
35315
35316 2008-10-16  Jim Meyering  <meyering@redhat.com>
35317
35318         openat-die.c: avoid 'no previous prototype' warning
35319         * lib/openat-die.c: Include "openat.h".
35320         Reported by Reuben Thomas <rrt@sc3d.org>.
35321
35322 2008-10-16  Simon Josefsson  <simon@josefsson.org>
35323
35324         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
35325         * lib/netdb.in.h: Fix typo.
35326         Reported by Bruno Haible  <bruno@clisp.org>
35327
35328         * lib/netdb.in.h: Include sys/socket.h for platforms without
35329         netdb.h, to get structures like hostent on MinGW.
35330         * modules/netdb (Depends-on): Add sys_socket.
35331
35332 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35333
35334         * modules/netdb, modules/netdb-tests: New file.
35335         * m4/netdb_h.m4: New file.
35336         * lib/netdb.in.h: Add, currently just an empty file pending
35337         definitions.
35338         * tests/test-netdb.c: New file.
35339         * doc/posix-headers/netdb.texi: Mention that we replace it if
35340         needed.
35341         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35342         netdb.
35343
35344 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35345
35346         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
35347         with code.
35348
35349 2008-10-13  Bruno Haible  <bruno@clisp.org>
35350
35351         * lib/glthread/cond.c (glthread_cond_wait_func,
35352         glthread_cond_timedwait_func): Add a comment.
35353
35354 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35355
35356         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
35357         * tests/test-select.c: Likewise,
35358
35359 2008-10-13  Bruno Haible  <bruno@clisp.org>
35360
35361         * lib/glthread/cond.c (glthread_cond_wait_func,
35362         glthread_cond_timedwait_func): Fix variable name.
35363         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35364
35365 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
35366
35367         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
35368         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
35369         struct sockaddr.sa_len.
35370         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
35371
35372 2008-10-13  Simon Josefsson  <simon@josefsson.org>
35373
35374         * build-aux/pmccabe2html: Add css and css_url parameters.
35375
35376 2008-10-12  Bruno Haible  <bruno@clisp.org>
35377
35378         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
35379         calling aclx_get.
35380         Reported by Rainer Tammer <tammer@tammer.net>.
35381
35382 2008-10-12  Bruno Haible  <bruno@clisp.org>
35383
35384         Use msvcrt aware primitives for creation/termination of Win32 threads.
35385         * lib/glthread/thread.c: Include <process.h>.
35386         (glthread_create_func): Use _beginthreadex instead of CreateThread.
35387         (wrapper_func): Update signature.
35388         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
35389
35390 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35391             Bruno Haible  <bruno@clisp.org>
35392
35393         Provide a Win32 implementation of the 'cond' module.
35394         * lib/glthread/cond.h [USE_WIN32]: New implementation.
35395         * lib/glthread/cond.c (glthread_cond_init_func,
35396         glthread_cond_wait_func, glthread_cond_timedwait_func,
35397         glthread_cond_signal_func, glthread_cond_broadcast_func,
35398         glthread_cond_destroy_func) [USE_WIN32]: New functions.
35399         * modules/cond (Dependencies): Add gettimeofday.
35400
35401 2008-10-11  Bruno Haible  <bruno@clisp.org>
35402
35403         Make sleep work on older versions of mingw.
35404         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
35405         only whether it exists.
35406         * doc/posix-functions/sleep.texi: Mention the problem with older
35407         versions of mingw.
35408
35409 2008-10-11  Bruno Haible  <bruno@clisp.org>
35410
35411         New module 'shutdown'.
35412         * modules/shutdown: New file.
35413         * lib/sys_socket.in.h (shutdown): New declaration.
35414         * lib/winsock.c (shutdown): New function.
35415         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35416         GNULIB_SHUTDOWN.
35417         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
35418         * doc/posix-functions/shutdown.texi: Document the new module.
35419
35420 2008-10-11  Jim Meyering  <meyering@redhat.com>
35421
35422         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
35423
35424 2008-10-11  Bruno Haible  <bruno@clisp.org>
35425
35426         New module 'fclose'.
35427         * modules/fclose: New file.
35428         * lib/stdio.in.h (fclose): New declaration.
35429         * lib/fclose.c: New file.
35430         * m4/fclose.m4: New file.
35431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
35432         REPLACE_FCLOSE.
35433         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
35434         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
35435         REPLACE_FCLOSE.
35436         * modules/close (Depends-on): fclose.
35437         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
35438
35439 2008-10-11  Bruno Haible  <bruno@clisp.org>
35440
35441         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
35442         set errno and don't call _close.
35443
35444 2008-10-10  Bruno Haible  <bruno@clisp.org>
35445
35446         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
35447         ACL, not afterwards. Fixes test failure on Cygwin.
35448
35449 2008-10-09  Ben Pfaff  <blp@gnu.org>
35450
35451         * build-aux/announce-gen: Fix gnulib version related part of usage
35452         message.  Die with a useful error message if no tarballs are
35453         found.
35454
35455 2008-10-10  Jim Meyering  <meyering@redhat.com>
35456
35457         bootstrap: use git's --depth=N option only if it's supported
35458         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
35459         recognize the --depth option.  Reported by Pádraig Brady.
35460
35461 2008-10-09  Bruno Haible  <bruno@clisp.org>
35462
35463         New module 'ioctl'.
35464         * modules/ioctl: New file.
35465         * lib/sys_socket.in.h (ioctl): Remove declaration.
35466         * lib/winsock.c: Include <sys/ioctl.h>.
35467         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
35468         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35469         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
35470         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
35471         * doc/posix-functions/ioctl.texi: Mention the new module.
35472
35473 2008-10-09  Bruno Haible  <bruno@clisp.org>
35474
35475         New module 'sys_ioctl'.
35476         * lib/sys_ioctl.in.h: New file.
35477         * m4/sys_ioctl_h.m4: New file.
35478         * modules/sys_ioctl: New file.
35479         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
35480
35481 2008-10-09  Bruno Haible  <bruno@clisp.org>
35482
35483         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
35484         * lib/winsock.c: Include <stdarg.h>.
35485         (rpl_ioctl): Change to second argument 'int' and then varargs.
35486
35487 2008-10-09  Bruno Haible  <bruno@clisp.org>
35488
35489         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
35490         when the sys_socket module is present and the system has <winsock2.h>.
35491
35492 2008-10-09  Bruno Haible  <bruno@clisp.org>
35493
35494         * doc/posix-functions/close.texi: Mention module 'close' instead of
35495         module 'sys_socket'.
35496
35497 2008-10-09  Bruno Haible  <bruno@clisp.org>
35498
35499         * doc/glibc-headers/sys_ioctl.texi: New file.
35500         * doc/gnulib.texi: Include it.
35501
35502 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35503             Bruno Haible  <bruno@clisp.org>
35504
35505         Combine the two replacements of 'close'.
35506         * lib/sys_socket.in.h (close): Define to a reminder to include
35507         <unistd.h>.
35508         (_gl_close_fd_maybe_socket): New declaration.
35509         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
35510         * lib/winsock.c (close): Remove undefinition.
35511         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
35512         needed for the gnulib module 'close'.
35513         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
35514         define to an error symbol or to a warning, if suitable.
35515         * lib/close.c: Include <sys/socket.h>.
35516         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
35517         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
35518         UNISTD_H_HAVE_WINSOCK2_H.
35519         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
35520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35521         UNISTD_H_HAVE_WINSOCK2_H.
35522         * modules/sys_socket (Files): Add m4/unistd_h.m4.
35523         (configure.ac): Set a module indicator.
35524         (Makefile.am): Substitute GNULIB_CLOSE.
35525         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
35526         * modules/poll-tests (Depends-on): Add close.
35527         * modules/select-tests (Depends-on): Likewise.
35528
35529 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35530             Bruno Haible  <bruno@clisp.org>
35531
35532         New module 'close'.
35533         * modules/close: New file.
35534         * lib/unistd.in.h (close): Move declaration out of the
35535         FCHDIR_REPLACEMENT scope.
35536         (_gl_unregister_fd): New declaration.
35537         * lib/close.c: New file.
35538         * lib/fchdir.c (rpl_close): Remove function.
35539         * m4/close.m4: New file.
35540         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35541         close.
35542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
35543         REPLACE_CLOSE.
35544         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
35545         REPLACE_CLOSE.
35546         * modules/fchdir (Depends-on): Add close.
35547
35548 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35549             Bruno Haible  <bruno@clisp.org>
35550
35551         * lib/fcntl.in.h (open): Simplify conditionals.
35552         (_gl_register_fd): New declaration.
35553         * lib/fchdir.c (rpl_open): Remove function.
35554         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
35555         also.
35556         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
35557         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35558         open.
35559
35560 2008-10-09  Jim Meyering  <meyering@redhat.com>
35561
35562         GNUmakefile: use the more name-space-friendly "_version"
35563         * top/GNUmakefile (_dummy): Update.
35564         (_version): Rename from "version".
35565
35566 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35567             Bruno Haible  <bruno@clisp.org>
35568
35569         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
35570         rpl_close.
35571         (_gl_register_fd): New function, extracted from rpl_open.
35572         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
35573         (rpl_open, rpl_opendir): Use _gl_register_fd.
35574
35575 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35576
35577         Fix organization of 'open' replacement.
35578         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
35579         (gl_FUNC_OPEN): Use it.
35580         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
35581
35582 2008-10-08  Bruno Haible  <bruno@clisp.org>
35583
35584         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
35585
35586 2008-10-08  Simon Josefsson  <simon@josefsson.org>
35587
35588         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
35589         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
35590         listen).
35591
35592 2008-10-08  Eric Blake  <ebb9@byu.net>
35593
35594         GNUmakefile: add 'make version' target
35595         * top/GNUmakefile (_curr-ver): Split version update rules...
35596         (version): ...into a target.
35597
35598 2008-10-07  Bruno Haible  <bruno@clisp.org>
35599
35600         Use a more portable replacement expression for -0.0L.
35601         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
35602         instead of -0.0L. Fix m4 quotation.
35603
35604         * tests/test-signbit.c: Include <float.h>.
35605         (minus_zero): New variable.
35606         (test_signbitl): Use minus_zero instead of -zero.
35607         * modules/signbit-tests (Depends-on): Add float.
35608
35609         * tests/test-ceill.c: Include <float.h>.
35610         (zero): Remove variable.
35611         (minus_zero): New variable.
35612         (main): Use minus_zero instead of -zero.
35613         * modules/ceill-tests (Depends-on): Add float.
35614
35615         * tests/test-floorl.c: Include <float.h>.
35616         (zero): Remove variable.
35617         (minus_zero): New variable.
35618         (main): Use minus_zero instead of -zero.
35619         * modules/floorl-tests (Depends-on): Add float.
35620
35621         * tests/test-roundl.c: Include <float.h>.
35622         (zero): Remove variable.
35623         (minus_zero): New variable.
35624         (main): Use minus_zero instead of -zero.
35625         * modules/roundl-tests (Depends-on): Add float.
35626
35627         * tests/test-truncl.c: Include <float.h>.
35628         (zero): Remove variable.
35629         (minus_zero): New variable.
35630         (main): Use minus_zero instead of -zero.
35631         * modules/truncl-tests (Depends-on): Add float.
35632
35633         * tests/test-frexpl.c (zero): Remove variable.
35634         (minus_zero): New variable.
35635         (main): Use minus_zero instead of -zero.
35636         * modules/frexpl-tests (Depends-on): Add float.
35637
35638         * tests/test-isnan.c (zerol): Remove variable.
35639         (minus_zerol): New variable.
35640         (test_long_double): Use minus_zerol instead of -zerol.
35641         * modules/isnan-tests (Depends-on): Add float.
35642
35643         * tests/test-isnanl.h (zero): Remove variable.
35644         (minus_zero): New variable.
35645         (main): Use minus_zero instead of -zero.
35646         * modules/isnanl-nolibm-tests (Depends-on): Add float.
35647         * modules/isnanl-tests (Depends-on): Add float.
35648
35649         * tests/test-ldexpl.c (zero): Remove variable.
35650         (minus_zero): New variable.
35651         (main): Use minus_zero instead of -zero.
35652         * modules/ldexpl-tests (Depends-on): Add float.
35653
35654         * tests/test-snprintf-posix.h (zerol): Remove variable.
35655         (minus_zerol): New variable.
35656         (test_function): Use minus_zerol instead of -zerol.
35657         * modules/snprintf-posix-tests (Depends-on): Add float.
35658         * modules/vsnprintf-posix-tests (Depends-on): Add float.
35659
35660         * tests/test-sprintf-posix.h (zerol): Remove variable.
35661         (minus_zerol): New variable.
35662         (test_function): Use minus_zerol instead of -zerol.
35663         * modules/sprintf-posix-tests (Depends-on): Add float.
35664         * modules/vsprintf-posix-tests (Depends-on): Add float.
35665
35666         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
35667         (minus_zerol): New variable.
35668         (test_function): Use minus_zerol instead of -zerol.
35669         * modules/vasnprintf-posix-tests (Depends-on): Add float.
35670
35671         * tests/test-vasprintf-posix.c (zerol): Remove variable.
35672         (minus_zerol): New variable.
35673         (test_function): Use minus_zerol instead of -zerol.
35674         * modules/vasprintf-posix-tests (Depends-on): Add float.
35675
35676 2008-10-07  Simon Josefsson  <simon@josefsson.org>
35677
35678         * MODULES.html.sh (Support for building documentation): Mention
35679         pmccabe2html.  Sort entries.
35680
35681         Add pmccabe2html module, from gnupdf.
35682         * build-aux/pmccabe.css: New file.
35683         * build-aux/pmccabe2html: New file.
35684         * m4/pmccabe2html.m4: New file.
35685         * modules/pmccabe2html: New file.
35686
35687 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
35688
35689         flock: new module
35690         * MODULES.html.sh: Add to list of modules.
35691         * lib/flock.c: flock implementation for Windows and Unix systems
35692         which have fcntl.
35693         * doc/glibc-functions/flock.texi: Update documentation.
35694         * lib/sys_file.in.h: <sys/file.h> header file.
35695         * m4/flock.m4: M4 macros.
35696         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
35697         * modules/flock: flock module.
35698         * modules/flock-tests: flock tests module.
35699         * modules/sys_file: sys/file.h module.
35700         * tests/test-flock.c: test suite for flock.
35701
35702 2008-10-06  Jim Meyering  <meyering@redhat.com>
35703
35704         bootstrap: check for LT_INIT more portably still ;-)
35705         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
35706         Spotted by Bruno Haible.
35707
35708 2008-10-06  Eric Blake  <ebb9@byu.net>
35709
35710         test-signbit: avoid tripping Irix cc bug on -0.0L
35711         * tests/test-signbit.c (minus_zerol): Delete, and replace with
35712         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
35713         entire testsuite consistent and avoids an Irix 6.2 bug.
35714
35715 2008-10-05  Bruno Haible  <bruno@clisp.org>
35716             Jim Meyering  <jim@meyering.net>
35717
35718         Add an option for ignoring EPIPE during close_stdout.
35719         * lib/closeout.h: Include <stdbool.h>.
35720         (close_stdout_set_ignore_EPIPE): New declaration.
35721         * lib/closeout.c: Include <stdbool.h>.
35722         (ignore_EPIPE): New variable.
35723         (close_stdout_set_ignore_EPIPE): New function.
35724         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
35725         * lib/close-stream.c (close_stream): Mention the possible EPIPE
35726         failure.
35727         * modules/closeout (Depends-on): Add stdbool.
35728
35729 2008-10-05  Bruno Haible  <bruno@clisp.org>
35730
35731         * modules/accept: New file.
35732         * modules/bind: New file.
35733         * modules/connect: New file.
35734         * modules/getpeername: New file.
35735         * modules/getsockname: New file.
35736         * modules/getsockopt: New file.
35737         * modules/listen: New file.
35738         * modules/recv: New file.
35739         * modules/recvfrom: New file.
35740         * modules/send: New file.
35741         * modules/sendto: New file.
35742         * modules/setsockopt: New file.
35743         * modules/socket: New file.
35744         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
35745         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35746         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
35747         the particular module is requested. Add a link warning when the
35748         particular module is not requested.
35749         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
35750         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
35751         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
35752         the particular module is requested.
35753         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
35754         gl_SYS_SOCKET_H_DEFAULTS): New macros.
35755         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
35756         * modules/sys_socket (Depends-on): Add link-warning.
35757         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
35758         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
35759         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
35760         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
35761         GL_LINK_WARNING.
35762         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
35763         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
35764         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
35765         * doc/posix-functions/getpeername.texi: Mention the new module
35766         'getpeername'.
35767         * doc/posix-functions/getsockname.texi: Mention the new module
35768         'getsockname'.
35769         * doc/posix-functions/getsockopt.texi: Mention the new module
35770         'getsockopt'.
35771         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
35772         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
35773         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
35774         * doc/posix-functions/send.texi: Mention the new module 'send'.
35775         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
35776         * doc/posix-functions/setsockopt.texi: Mention the new module
35777         'setsockopt'.
35778         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
35779         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
35780         listen, connect, accept.
35781         * modules/select-tests (Depends-on): Likewise.
35782
35783 2008-10-05  Bruno Haible  <bruno@clisp.org>
35784
35785         * lib/winsock.c (strerror): Remove unused #undef.
35786         (rpl_close): Remove unused local variable.
35787
35788         * modules/sys_socket (Depends-on); Add errno.
35789
35790 2008-10-05  Bruno Haible  <bruno@clisp.org>
35791
35792         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
35793         (select): Add a link warning when the 'select' module is not used.
35794         * modules/sys_select (Depends-on): Add link-warning.
35795         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
35796         Suggested by Paolo Bonzini.
35797
35798 2008-10-05  Jim Meyering  <meyering@redhat.com>
35799
35800         bootstrap: check for LT_INIT more portably
35801         * build-aux/bootstrap: Avoid using grep -E, since it's not
35802         portable enough.  Suggestion from Bruno Haible.
35803
35804 2008-10-05  Bruno Haible  <bruno@clisp.org>
35805
35806         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
35807         as being fixed by gnulib.
35808
35809 2008-10-05  Bruno Haible  <bruno@clisp.org>
35810
35811         * modules/select-tests: New file, mostly copied from
35812         modules/sys_select-tests.
35813         * tests/test-select.c: New file, mostly copied from
35814         tests/test-sys_select.c.
35815         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
35816         * modules/sys_select-tests (Depends-on): Remove all dependencies.
35817         (Makefile.am): Remove test_sys_select_LDADD.
35818
35819         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
35820         to an undefined symbol, for an error message.
35821         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
35822         (gl_SYS_SELECT_H_DEFAULTS): New macro.
35823         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
35824         winsock-select.c here.
35825         * modules/sys_select (Files): Remove lib/winsock-select.c.
35826         (Depends-on): Remove alloca.
35827         (Makefile.am): Substitute GNULIB_SELECT.
35828         * modules/select: New file.
35829         * doc/posix-functions/select.texi: Update.
35830
35831 2008-10-05  Bruno Haible  <bruno@clisp.org>
35832
35833         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
35834         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
35835         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
35836         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
35837         getdtablesize.
35838         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35839         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35840
35841 2008-10-05  Bruno Haible  <bruno@clisp.org>
35842
35843         * modules/getdtablesize-tests: New file.
35844         * tests/test-getdtablesize.c: New file.
35845
35846         New module 'getdtablesize'.
35847         * lib/unistd.in.h (getdtablesize): New declaration.
35848         * lib/getdtablesize.c: New file.
35849         * m4/getdtablesize.m4: New file.
35850         * modules/getdtablesize: New file.
35851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35852         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
35853         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
35854         HAVE_GETDTABLESIZE.
35855         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
35856
35857 2008-10-05  Bruno Haible  <bruno@clisp.org>
35858
35859         * modules/sched (Makefile.am): Fix typo.
35860         Reported by Simon Josefsson.
35861
35862 2008-10-05  Jim Meyering  <meyering@redhat.com>
35863
35864         bootstrap: check for LT_INIT, too
35865         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
35866         are deprecated.  Suggestion from Ralf Wildenhues.
35867
35868 2008-10-05  Bruno Haible  <bruno@clisp.org>
35869
35870         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
35871         overriding them by ours.
35872         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
35873
35874 2008-10-05  Jim Meyering  <meyering@redhat.com>
35875
35876         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
35877         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
35878         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
35879
35880 2008-10-04  Bruno Haible  <bruno@clisp.org>
35881
35882         * modules/dup2 (License): Change to LGPLv2+.
35883         * modules/sleep (License): Likewise.
35884         * modules/perror (License): Likewise.
35885         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
35886         Blake.
35887         * modules/signal (License): Likewise.
35888         * modules/sigprocmask (License): Likewise.
35889         * modules/raise (License): Change to LGPLv2+, with approval by Jim
35890         Meyering.
35891
35892 2008-10-04  Bruno Haible  <bruno@clisp.org>
35893
35894         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
35895         Reported by Rainer Tammer <tammer@tammer.net>.
35896
35897 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
35898             Bruno Haible  <bruno@clisp.org>
35899
35900         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35901         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35902         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35903
35904 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
35905
35906         filevercmp: new module
35907         * lib/filevercmp.h: New function filevercmp comparing version strings.
35908         * lib/filevercmp.c: Implementation of filevercmp function.
35909         * modules/filevercmp: Module metadata.
35910         * tests/test-filevercmp.c: Unit test for new module.
35911         * modules/filevercmp-tests: Unit test metadata.
35912         * MODULES.html.sh: Add filevercmp module.
35913
35914 2008-10-03  Bruno Haible  <bruno@clisp.org>
35915
35916         * lib/c-ctype.h: Add comment.
35917         Reported by Jim Meyering.
35918
35919 2008-10-02  Bruno Haible  <bruno@clisp.org>
35920
35921         * modules/posix_spawn-internal (Depends-on): Add 'open'.
35922
35923 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35924
35925         * build-aux/bootstrap: Allow renaming bootstrap, and change the
35926         name of bootstrap.conf accordingly.
35927
35928 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35929
35930         * build-aux/bootstrap: Install git-merge-changelog configuration
35931         items into .gitconfig if needed.
35932
35933 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35934
35935         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
35936         git repository, and initialize/update it accordingly.
35937
35938 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
35939
35940         * modules/fsync-tests: New file.
35941         * tests/test-fsync.c: New file.
35942
35943         New module 'fsync'.
35944         * lib/fsync.c: New file.
35945         * m4/fsync.m4: New file.
35946         * modules/fsync: New file.
35947         * lib/unistd.in.h (fsync): New declaration.
35948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
35949         GNULIB_FSYNC and HAVE_FSYNC.
35950         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
35951         * MODULES.html.sh (posix_functions): Add fsync.
35952         * doc/posix-functions/fsync.texi: Mention the new module.
35953
35954 2008-10-02  Jim Meyering  <meyering@redhat.com>
35955
35956         fts.c: sync with similar code from coreutils' remove.c
35957         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
35958         Guard also with "#if defined __linux__", since for now at least,
35959         this code is Linux-kernel-specific.
35960
35961 2008-10-02  Jim Meyering  <meyering@redhat.com>
35962
35963         fts: bug fixes
35964         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
35965         Include <sys/vfs.h>, not <sys/statfs.h>.
35966
35967         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
35968         Include <sys/vfs.h>, not <sys/statfs.h>.
35969
35970 2008-10-01  Bruno Haible  <bruno@clisp.org>
35971
35972         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
35973         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
35974         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
35975         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
35976         * doc/posix-functions/posix_spawnp.texi: Likewise.
35977         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
35978         whether posix_spawn actually works.
35979         * m4/pipe.m4 (gl_PIPE): Likewise.
35980         * modules/execute (Files): Add m4/posix_spawn.m4.
35981         * modules/pipe (Files): Add m4/posix_spawn.m4.
35982         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
35983
35984 2008-10-01  Jim Meyering  <meyering@redhat.com>
35985
35986         remove trailing spaces
35987         * NEWS: Likewise.
35988         * lib/poll.c (poll): Likewise.
35989         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
35990         * lib/winsock.c (rpl_close): Likewise.
35991         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
35992         * modules/yield: Likewise.
35993         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
35994         * tests/test-sys_select.c (connect_to_socket): Likewise.
35995
35996         fts.c: adjust a new interface to be more generally useful
35997         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
35998         (fts_build): Adjust caller.
35999
36000 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36001
36002         * modules/cond-tests: New file.
36003         * tests/test-cond.c: New file.
36004
36005 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36006             Bruno Haible  <bruno@clisp.org>
36007
36008         * modules/cond (Dependencies): Add errno, time.
36009         * lib/glthread/cond.h: Include <time.h>.
36010         (gl_cond_define, gl_cond_define_initialized): Use the same definition
36011         across platforms.
36012
36013 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36014             Bruno Haible  <bruno@clisp.org>
36015
36016         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
36017
36018 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36019             Bruno Haible  <bruno@clisp.org>
36020
36021         * modules/tls-tests (Depends-on): Add thread, yield.
36022         (configure.ac): Remove all checks.
36023         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
36024         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36025         gl_thread_self): Remove definitions. Include glthread/thread.h and
36026         glthread/yield.h instead.
36027         (test_tls): Pass an additional NULL argument to gl_thread_join.
36028
36029 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36030             Bruno Haible  <bruno@clisp.org>
36031
36032         * modules/lock-tests (Depends-on): Add thread, yield.
36033         (configure.ac): Remove all checks.
36034         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
36035         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36036         gl_thread_self): Remove definitions. Include glthread/thread.h and
36037         glthread/yield.h instead.
36038         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
36039         additional NULL argument to gl_thread_join.
36040
36041 2008-09-30  Bruno Haible  <bruno@clisp.org>
36042
36043         Fix the Win32 implementation of the 'thread' module.
36044         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
36045         pointer type.
36046         (gl_thread_self): Invoke gl_thread_self_func.
36047         (gl_thread_self_func): New declaration.
36048         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
36049         (do_init_self_key, init_self_key): New functions.
36050         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
36051         Remove some fields.
36052         (running_threads, running_lock): Remove variables.
36053         (get_current_thread_handle): New function.
36054         (gl_thread_self_func, wrapper_func, glthread_create_func,
36055         glthread_join_func, gl_thread_exit_func): Largely rewritten and
36056         simplified.
36057
36058 2008-09-30  Bruno Haible  <bruno@clisp.org>
36059
36060         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
36061         files.
36062
36063 2008-09-30  Jim Meyering  <meyering@redhat.com>
36064
36065         fts.m4: correct the test for statfs.f_type
36066         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
36067         when checking for statfs.f_type.
36068
36069 2008-09-15  Simon Josefsson  <simon@josefsson.org>
36070
36071         tests: avoid some compiler warnings
36072         * tests/test-memchr.c (main): Pass NULL indirectly.
36073         * tests/test-getdate.c (main): Remove unused variable 'ret'.
36074
36075 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
36076
36077         getdate.y: disallow countable dayshifts like "4 yesterday ago"
36078         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
36079         exactly specified dayshifts.
36080         (dayshift): New rule.
36081         (rel): Add dayshift.
36082         (relative_time_table) [tomorrow, yesterday, today, now]:
36083         Use tDAY_SHIFT in place of tDAY_UNIT.
36084         * tests/test-getdate.c: Add tests for now-disallowed countable
36085         dayshifts, e.g., "4 yesterday ago".
36086
36087 2008-09-29  Bruno Haible  <bruno@clisp.org>
36088
36089         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
36090         * tests/test-posix_spawn1.in.sh: Renamed from
36091         tests/test-posix_spawn.in.sh.
36092         * tests/test-posix_spawn2.c: New file.
36093         * tests/test-posix_spawn2.in.sh: New file.
36094         * modules/posix_spawnp-tests (Files): Update.
36095         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
36096
36097 2008-09-29  Bruno Haible  <bruno@clisp.org>
36098
36099         Propagate effects of putenv/setenv/unsetenv to child processes.
36100         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
36101         * lib/pipe.c (create_pipe): Likewise.
36102
36103 2008-09-29  Bruno Haible  <bruno@clisp.org>
36104
36105         Enable use of shell scripts as executables in mingw.
36106         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
36107         run the program as a shell script.
36108         * lib/pipe.c (create_pipe): Likewise.
36109         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
36110         resulting array.
36111
36112 2008-09-29  Eric Blake  <ebb9@byu.net>
36113
36114         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
36115
36116 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
36117
36118         * doc/posix-functions/accept.texi: Update mingw problems.
36119         * doc/posix-functions/bind.texi: Update mingw problems.
36120         * doc/posix-functions/close.texi: Update mingw problems.
36121         * doc/posix-functions/connect.texi: Update mingw problems.
36122         * doc/posix-functions/getpeername.texi: Update mingw problems.
36123         * doc/posix-functions/getsockname.texi: Update mingw problems.
36124         * doc/posix-functions/getsockopt.texi: Update mingw problems.
36125         * doc/posix-functions/ioctl.texi: Update mingw problems.
36126         * doc/posix-functions/listen.texi: Update mingw problems.
36127         * doc/posix-functions/recv.texi: Update mingw problems.
36128         * doc/posix-functions/recvfrom.texi: Update mingw problems.
36129         * doc/posix-functions/select.texi: Update mingw problems.
36130         * doc/posix-functions/send.texi: Update mingw problems.
36131         * doc/posix-functions/sendto.texi: Update mingw problems.
36132         * doc/posix-functions/setsockopt.texi: Update mingw problems.
36133         * doc/posix-functions/socket.texi: Update mingw problems.
36134
36135 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
36136             Bruno Haible  <bruno@clisp.org>
36137
36138         * lib/sys_select.in.h: Include sys/time.h.
36139         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
36140         * modules/sys_select: Depend on sys_time.
36141         * tests/test-sys_select.c: Test that sys/select.h defines struct
36142         timeval fully.
36143
36144 2008-09-29  Bruno Haible  <bruno@clisp.org>
36145
36146         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
36147         * lib/sys_select.in.h: Likewise.
36148
36149 2008-09-29  Bruno Haible  <bruno@clisp.org>
36150
36151         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
36152
36153 2008-09-29  Bruno Haible  <bruno@clisp.org>
36154
36155         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
36156         Set LIBSOCKET instead of augmenting LIBS.
36157         * modules/sockets (Link): New section.
36158         * modules/sockets-tests (test_sockets_LDADD): New variable.
36159         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
36160         * modules/poll-tests (test_poll_LDADD): New variable.
36161         * NEWS: Document the change.
36162
36163 2008-09-29  Bruno Haible  <bruno@clisp.org>
36164
36165         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
36166         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
36167         ARPA_INET_H directly.
36168         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36169
36170 2008-09-28  Bruno Haible  <bruno@clisp.org>
36171
36172         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
36173         from gl_HEADER_SYS_SOCKET.
36174         (gl_HEADER_SYS_SOCKET): Invoke it.
36175         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36176
36177 2008-09-28  Bruno Haible  <bruno@clisp.org>
36178
36179         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
36180         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
36181         Needed on OSF/1 4.0.
36182
36183 2008-09-28  Bruno Haible  <bruno@clisp.org>
36184
36185         Override open more carefully.
36186         * lib/open.c (orig_open): New function.
36187         (rpl_open): Use orig_open instead of open.
36188         * lib/fcntl.in.h: Add special invocation convention.
36189         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
36190         (gl_FUNC_OPEN): Invoke it.
36191
36192         Override freopen more carefully.
36193         * lib/freopen.c (orig_freopen): New function.
36194         (rpl_freopen): Use orig_freopen instead of freopen.
36195         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
36196         (gl_FUNC_FREOPEN): Invoke it.
36197
36198         Override fopen more carefully.
36199         * lib/fopen.c (orig_fopen): New function.
36200         (rpl_fopen): Use orig_fopen instead of fopen.
36201         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
36202         (gl_FUNC_FOPEN): Invoke it.
36203         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
36204
36205 2008-09-28  Bruno Haible  <bruno@clisp.org>
36206
36207         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
36208         SIGPIPE.
36209
36210 2008-09-28  Bruno Haible  <bruno@clisp.org>
36211
36212         * tests/test-sigaction.c (handler, main): Disable the check whether
36213         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
36214         glibc systems with LinuxThreads.
36215
36216 2008-09-28  Bruno Haible  <bruno@clisp.org>
36217
36218         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
36219
36220         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
36221         with AIX xlc.
36222         * lib/fcntl.in.h (open): Likewise.
36223         Reported by Rainer Tammer <tammer@tammer.net>.
36224
36225 2008-09-28  Bruno Haible  <bruno@clisp.org>
36226
36227         * modules/posix_spawnp-tests: New file.
36228         * tests/test-posix_spawn.c: New file.
36229         * tests/test-posix_spawn.in.sh: New file.
36230
36231         New module 'posix_spawnp'.
36232         * modules/posix_spawnp: New file.
36233         * lib/spawnp.c: New file, from GNU libc with modifications.
36234         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
36235
36236         New module 'posix_spawn'.
36237         * modules/posix_spawn: New file.
36238         * lib/spawn.c: New file, from GNU libc with modifications.
36239         * doc/posix-functions/posix_spawn.texi: Mention the new module.
36240
36241         New module 'posix_spawnattr_destroy'.
36242         * modules/posix_spawnattr_destroy: New file.
36243         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
36244         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
36245         module.
36246
36247         New module 'posix_spawnattr_setsigmask'.
36248         * modules/posix_spawnattr_setsigmask: New file.
36249         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
36250         modifications.
36251         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
36252         new module.
36253
36254         New module 'posix_spawnattr_getsigmask'.
36255         * modules/posix_spawnattr_getsigmask: New file.
36256         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
36257         modifications.
36258         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
36259         new module.
36260
36261         New module 'posix_spawnattr_setsigdefault'.
36262         * modules/posix_spawnattr_setsigdefault: New file.
36263         * lib/spawnattr_setdefault.c: New file, from GNU libc with
36264         modifications.
36265         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
36266         new module.
36267
36268         New module 'posix_spawnattr_getsigdefault'.
36269         * modules/posix_spawnattr_getsigdefault: New file.
36270         * lib/spawnattr_getdefault.c: New file, from GNU libc with
36271         modifications.
36272         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
36273         new module.
36274
36275         New module 'posix_spawnattr_setschedpolicy'.
36276         * modules/posix_spawnattr_setschedpolicy: New file.
36277         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
36278         modifications.
36279         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
36280         new module.
36281
36282         New module 'posix_spawnattr_getschedpolicy'.
36283         * modules/posix_spawnattr_getschedpolicy: New file.
36284         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
36285         modifications.
36286         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
36287         new module.
36288
36289         New module 'posix_spawnattr_setschedparam'.
36290         * modules/posix_spawnattr_setschedparam: New file.
36291         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
36292         modifications.
36293         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
36294         new module.
36295
36296         New module 'posix_spawnattr_getschedparam'.
36297         * modules/posix_spawnattr_getschedparam: New file.
36298         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
36299         modifications.
36300         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
36301         new module.
36302
36303         New module 'posix_spawnattr_setpgroup'.
36304         * modules/posix_spawnattr_setpgroup: New file.
36305         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
36306         modifications.
36307         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
36308         module.
36309
36310         New module 'posix_spawnattr_getpgroup'.
36311         * modules/posix_spawnattr_getpgroup: New file.
36312         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
36313         modifications.
36314         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
36315         module.
36316
36317         New module 'posix_spawnattr_setflags'.
36318         * modules/posix_spawnattr_setflags: New file.
36319         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
36320         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
36321         module.
36322
36323         New module 'posix_spawnattr_getflags'.
36324         * modules/posix_spawnattr_getflags: New file.
36325         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
36326         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
36327         module.
36328
36329         New module 'posix_spawnattr_init'.
36330         * modules/posix_spawnattr_init: New file.
36331         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
36332         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
36333         module.
36334
36335         New module 'posix_spawn_file_actions_destroy'.
36336         * modules/posix_spawn_file_actions_destroy: New file.
36337         * lib/spawn_faction_destroy.c: New file, from GNU libc with
36338         modifications.
36339         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
36340         the new module.
36341
36342         New module 'posix_spawn_file_actions_addopen'.
36343         * modules/posix_spawn_file_actions_addopen: New file.
36344         * lib/spawn_faction_addopen.c: New file, from GNU libc with
36345         modifications.
36346         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
36347         the new module.
36348
36349         New module 'posix_spawn_file_actions_adddup2'.
36350         * modules/posix_spawn_file_actions_adddup2: New file.
36351         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
36352         modifications.
36353         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
36354         the new module.
36355
36356         New module 'posix_spawn_file_actions_addclose'.
36357         * modules/posix_spawn_file_actions_addclose: New file.
36358         * lib/spawn_faction_addclose.c: New file, from GNU libc with
36359         modifications.
36360         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
36361         the new module.
36362
36363         New module 'posix_spawn_file_actions_init'.
36364         * modules/posix_spawn_file_actions_init: New file.
36365         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
36366         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
36367         new module.
36368
36369         New module 'posix_spawn-internal'.
36370         * modules/posix_spawn-internal: New file.
36371         * lib/spawn_int.h: New file, from GNU libc with modifications.
36372         * lib/spawni.c: New file, from GNU libc with modifications.
36373         * m4/posix_spawn.m4: New file.
36374
36375         New module 'spawn'.
36376         * modules/spawn: New file.
36377         * lib/spawn.in.h: New file, from GNU libc with modifications.
36378         * m4/spawn_h.m4: New file.
36379         * doc/posix-headers/spawn.texi: Mention the new module.
36380
36381 2008-09-28  Bruno Haible  <bruno@clisp.org>
36382
36383         * modules/sched-tests: New file.
36384         * tests/test-sched.c: New file.
36385
36386         New module 'sched'.
36387         * modules/sched: New file.
36388         * lib/sched.in.h: New file.
36389         * m4/sched_h.m4: New file.
36390         * doc/posix-headers/sched.texi: Mention the new module.
36391
36392 2008-09-27  Eric Blake  <ebb9@byu.net>
36393
36394         Fix previous patch, and tweak references to $0.
36395         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
36396         (func_version, func_gnulib_dir): Don't call this program
36397         gnulib-tool.
36398         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
36399         with using $0 in function.
36400         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
36401         (func_fatal_error): Reuse the name the user invoked us with.
36402
36403 2008-09-27  Bruno Haible  <bruno@clisp.org>
36404
36405         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
36406         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
36407         (gl_ICONV_H): Not here.
36408         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36409         instead of assigning ICONV_H directly.
36410
36411         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
36412         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
36413         WCHAR_H directly.
36414
36415 2008-09-27  Bruno Haible  <bruno@clisp.org>
36416
36417         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
36418         * modules/arpa_inet (Depends-on): Add link-warning.
36419         (Makefile.am): Insert the definition of GL_LINK-WARNING.
36420         * modules/unistd (Makefile.am): Likewise.
36421
36422 2008-09-26  Bruno Haible  <bruno@clisp.org>
36423
36424         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
36425         variables.
36426         (func_version): Essentially copied from gnulib-tool.
36427         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
36428         func_readlink): Copied from gnulib-tool.
36429
36430 2008-09-26  Bruno Haible  <bruno@clisp.org>
36431
36432         * gnulib-tool (func_version): Change directory to $gnulib_dir before
36433         invoking git-version-gen.
36434
36435 2008-09-26  Bruno Haible  <bruno@clisp.org>
36436
36437         * posix-modules: Update to directory names changed on 2008-01-19.
36438         Remove commas in output before splitting into words. No more need to
36439         avoid 'ftruncate' since 2007-02-19.
36440
36441 2008-09-26  Bruno Haible  <bruno@clisp.org>
36442
36443         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
36444
36445 2008-09-26  Bruno Haible  <bruno@clisp.org>
36446
36447         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
36448         * modules/fwriteerror (Depends-on): Add errno.
36449
36450 2008-09-26  Bruno Haible  <bruno@clisp.org>
36451
36452         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
36453         * tests/test-vc-list-files-cvs.sh: Likewise.
36454
36455 2008-09-26  Bruno Haible  <bruno@clisp.org>
36456
36457         * doc/posix-headers/sys_resource.texi: Reorder items.
36458
36459 2008-09-26  Jim Meyering  <meyering@redhat.com>
36460
36461         fts: tweak inode comparison function
36462         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
36463         inode numbers, as documented.
36464
36465         fts: sort dirent entries on inode number before traversing
36466         This avoids a quadratic, seek-related performance penalty when
36467         operating on a directory containing many entries (measurable at 10k;
36468         3.5 hours at 2 million entries with a cold cache) on certain types
36469         of file systems, including ext3 and ext4, but not tmpfs.
36470         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
36471         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
36472         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
36473         (fs_handles_readdir_ordered_dirents_efficiently): New function.
36474         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
36475         (fts_build): Set the stat.st_ino member from D_INO.
36476         If it is likely to be useful, sort dirent entries on inode number.
36477
36478         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
36479         and the struct statfs.f_type member.
36480         * modules/fts (Depends-on): Add d-ino.
36481
36482 2008-09-26  Bruno Haible  <bruno@clisp.org>
36483
36484         * modules/sigpipe-die (Depends-on): Add sigpipe.
36485
36486         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
36487         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
36488         and GNULIB_STDIO_H_SIGPIPE are set.
36489         * lib/stdio-write.c: New file.
36490         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
36491         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36492         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36493         REPLACE_STDIO_WRITE_FUNCS.
36494         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
36495         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36496         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36497         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36498         * modules/stdio (Files): Add lib/stdio-write.c.
36499         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
36500         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36501         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36502         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36503         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
36504         REPLACE_FPRINTF_POSIX.
36505         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
36506         REPLACE_PRINTF_POSIX.
36507         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
36508         REPLACE_VFPRINTF_POSIX.
36509         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
36510         REPLACE_VPRINTF_POSIX.
36511         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
36512         SIGPIPE issue.
36513         * doc/posix-functions/fputc.texi: Likewise.
36514         * doc/posix-functions/fputs.texi: Likewise.
36515         * doc/posix-functions/fwrite.texi: Likewise.
36516         * doc/posix-functions/printf.texi: Likewise.
36517         * doc/posix-functions/putc.texi: Likewise.
36518         * doc/posix-functions/putchar.texi: Likewise.
36519         * doc/posix-functions/puts.texi: Likewise.
36520         * doc/posix-functions/vfprintf.texi: Likewise.
36521         * doc/posix-functions/vprintf.texi: Likewise.
36522
36523         * modules/safe-write (Depends-on): Add write.
36524
36525         * modules/sigpipe-tests: New file.
36526         * tests/test-sigpipe.c: New file.
36527         * tests/test-sigpipe.sh: New file.
36528
36529         * modules/write: New file.
36530         * lib/unistd.in.h: Include <sys/types.h>.
36531         (write): New declaration.
36532         * lib/write.c: New file.
36533         * m4/write.m4: New file.
36534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36535         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
36536         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
36537         GNULIB_WRITE, REPLACE_WRITE.
36538         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
36539         and the SIGPIPE issue.
36540
36541         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
36542         (raise): New declaration.
36543         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
36544         (ext_signal): New function.
36545         (rpl_raise): New function.
36546         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
36547         GNULIB_SIGNAL_H_SIGPIPE.
36548         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
36549         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
36550
36551         * modules/sigpipe: New file.
36552         * m4/sigpipe.m4: New file.
36553
36554 2008-09-25  Derek Price  <derek@ximbiot.com>
36555             Bruno Haible  <bruno@clisp.org>
36556
36557         * gnulib-tool (func_import): Report all license incompatibilities, not
36558         just the first one.
36559
36560 2008-09-25  Bruno Haible  <bruno@clisp.org>
36561
36562         * gnulib-tool (func_import): When computing the edits, consider not
36563         only the Makefile.ams that exist but also those that will be generated.
36564
36565 2008-09-25  Simon Josefsson  <simon@josefsson.org>
36566
36567         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
36568         fixes gnulib-tool --test warning about duplicate dependency.
36569
36570 2008-09-25  Bruno Haible  <bruno@clisp.org>
36571
36572         * gnulib-tool: Don't ask the user to perform edits in the generated
36573         Makefile.ams.
36574         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
36575         apply to the Makefile.am being generated.
36576         (func_emit_tests_Makefile_am): Execute edits that apply to the
36577         Makefile.am being generated.
36578         (func_import): Setup list of Makefile.am edits before emitting the
36579         Makefile.ams, not at the end.
36580         (func_create_testdir): Update.
36581         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36582
36583 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36584
36585         * gnulib-tool (func_import): Store the --tests-base option in the
36586         comment in gnulib-cache.m4.
36587
36588 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
36589
36590         * NEWS: Document increased portability that sys_select now provides.
36591
36592         * lib/sys_select.in.h: Install select wrapper.
36593         * lib/sys_socket.in.h: Use more descriptive name when there is no
36594         select wrapper.
36595         * lib/winsock-select.c: New.
36596         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
36597         Require gl_HEADER_SYS_SOCKET.
36598         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
36599         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
36600         * tests/test-sys_select.c: Add functional tests.
36601
36602 2008-09-24  Eric Blake  <ebb9@byu.net>
36603
36604         open, fopen: close fd leak in last patch
36605         * lib/open.c (rpl_open): Close fd before returning error.
36606         * lib/fopen.c (rpl_fopen): Close fd before returning error.
36607         * doc/posix-functions/open.texi (open): Document that Irix also
36608         has the bug.
36609         * doc/posix-functions/fopen.texi (fopen): Likewise.
36610         Reported by Paolo Bonzini.
36611
36612 2008-09-24  Bruno Haible  <bruno@clisp.org>
36613
36614         Ensure that a filename ending in a slash cannot be used to access a
36615         non-directory.
36616         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
36617         to check whether it's really a directory.
36618         * lib/fopen.c: Include fcntl.h, unistd.h.
36619         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
36620         and fdopen().
36621         * modules/fopen (Depends-on): Add unistd.
36622         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
36623         * tests/test-fopen.c (main): Likewise.
36624         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
36625         * doc/posix-functions/fopen.texi: Likewise.
36626         Reported by Eric Blake.
36627
36628 2008-09-23  Eric Blake  <ebb9@byu.net>
36629
36630         c-stack: avoid compiler optimizations when provoking overflow
36631         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
36632         recursion harder to optimize, to ensure a stack overflow occurs.
36633         * tests/test-c-stack.c (recurse): Likewise.
36634         Borrowed from libsigsegv.
36635
36636         c-stack: work around Irix sigaltstack bug
36637         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
36638         whether sigaltstack uses wrong end of stack_t (copied in part from
36639         libsigsegv).
36640         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
36641         Irix bug, without requiring an over-allocation.
36642         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
36643         bug.
36644
36645         fopen: document mingw bug on directories
36646         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
36647         not allowing a stream visiting a directory, even though reading
36648         from such a stream is not portable.
36649
36650 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36651
36652         * lib/poll.c: Rewrite.
36653         * modules/poll: Depend on alloca.
36654
36655 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36656
36657         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
36658         instead define prototypes for a full set of wrappers.  Ensure
36659         that Cygwin does not use the compatibility code, which is only
36660         for MinGW.
36661         * lib/winsock.c: New.
36662         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
36663         * modules/sys_socket: Add lib/winsock.c.
36664
36665         * modules/poll-tests: Add errno and perror.
36666         * tests/test-poll.c: Use ioctl, not ioctlsocket.
36667
36668 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36669
36670         * tests/test-poll.c: Downgrade minimum needed Winsock version.
36671
36672 2008-09-23  Bruno Haible  <bruno@clisp.org>
36673
36674         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
36675         * doc/glibc-functions/*: Likewise.
36676
36677 2008-09-23  Simon Josefsson  <simon@josefsson.org>
36678
36679         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
36680         success.
36681
36682 2008-09-22  Eric Blake  <ebb9@byu.net>
36683             Bruno Haible  <bruno@clisp.org>
36684
36685         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
36686         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
36687         supply %A but mishandle pseudo-NaN.
36688         Reported by Simon Josefsson.
36689
36690 2008-09-21  Bruno Haible  <bruno@clisp.org>
36691
36692         * tests/test-lock.c (main): Tweak skip message.
36693         * tests/test-tls.c (main): Likewise.
36694
36695 2008-09-21  Bruno Haible  <bruno@clisp.org>
36696
36697         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
36698         whether 'struct sigaction' has sa_sigaction here...
36699         (gl_PREREQ_SIG_HANDLER_H): ... not here.
36700         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
36701
36702 2008-09-21  Bruno Haible  <bruno@clisp.org>
36703
36704         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
36705         section.
36706         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
36707         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
36708         the new section.
36709         (Support for obsolete systems lacking POSIX:2001): New section.
36710         (String handling <string.h>): Move strdup to the new section.
36711         Suggested by Simon Josefsson and Paolo Bonzini.
36712
36713 2008-09-21  Bruno Haible  <bruno@clisp.org>
36714
36715         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
36716         exponents in %e and %g results on 'long double'. Needed for mingw's
36717         improved *printf functions.
36718         * tests/test-vasprintf-posix.c (test_function): Likewise.
36719         * tests/test-snprintf-posix.h (test_function): Likewise.
36720         * tests/test-sprintf-posix.h (test_function): Likewise.
36721         Reported by Eric Blake.
36722
36723 2008-09-21  Bruno Haible  <bruno@clisp.org>
36724
36725         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
36726         * tests/test-sprintf-posix.h (test_function): Likewise.
36727
36728 2008-09-21  Bruno Haible  <bruno@clisp.org>
36729
36730         * modules/getpass (Depends-on): Add strdup-posix.
36731
36732         New module 'strdup-posix'.
36733         * modules/strdup-posix: New file.
36734         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
36735         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
36736         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36737         REPLACE_STRDUP.
36738         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
36739         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
36740         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36741         strdup-posix.
36742
36743         * modules/strdup (Depends-on): Remove malloc-posix.
36744
36745 2008-09-20  Bruno Haible  <bruno@clisp.org>
36746
36747         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
36748         Wildenhues.
36749
36750 2008-09-20  Bruno Haible  <bruno@clisp.org>
36751
36752         Ensure that wint_t gets defined on IRIX 5.3.
36753         * lib/wchar.in.h (wint_t): Define if not defined by the system.
36754         * lib/wctype.in.h (wint_t): Likewise.
36755         (__wctype_wint_t): Remove type.
36756         (isw*): Use wint_t instead of __wctype_wint_t.
36757         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
36758         * modules/wchar (Files): Add m4/wint_t.m4.
36759         (Makefile.am): Substitute HAVE_WINT_T.
36760         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
36761         * tests/test-wctype.c: Check that wint_t is defined.
36762         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
36763         * doc/posix-headers/wctype.texi: Likewise.
36764         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36765
36766 2008-09-18  Bruno Haible  <bruno@clisp.org>
36767
36768         * gnulib-tool (func_exit): Update comment.
36769
36770 2008-09-18  Simon Josefsson  <simon@josefsson.org>
36771
36772         * modules/getaddrinfo (Depends-on): Remove strdup, this module
36773         assumes strdup exists and does not depend on strdup to return
36774         ENOMEM on out of memory conditions.
36775
36776 2008-09-18  Bruno Haible  <bruno@clisp.org>
36777
36778         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
36779         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
36780         digits for the exponent.
36781
36782 2008-09-18  Jim Meyering  <meyering@redhat.com>
36783             Bruno Haible  <bruno@clisp.org>
36784
36785         * lib/vasnprintf.c (decimal_point_char): Define also if
36786         NEED_PRINTF_INFINITE_LONG_DOUBLE.
36787
36788 2008-09-16  Bruno Haible  <bruno@clisp.org>
36789         and Eric Blake  <ebb9@byu.net>
36790
36791         vasnprintf: support Irix 5.3
36792         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
36793         that mishandle long double infinity.
36794         Reported by Tom G. Christensen.
36795
36796 2008-09-16  Bruno Haible  <bruno@clisp.org>
36797
36798         * doc/glibc-functions/scandir.texi: Mention the function is missing on
36799         Solaris 9.
36800         * doc/glibc-functions/alphasort.texi: Likewise.
36801         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
36802
36803 2008-09-16  Jim Meyering  <meyering@redhat.com>
36804
36805         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
36806         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
36807         a umask modification leak out of a subshell.  Otherwise, the
36808         opensolaris /bin/sh would be accepted and thus cause unwarranted
36809         failures in the coreutils test suite.
36810
36811 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
36812
36813         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
36814         to succeed.
36815
36816 2008-09-16  Jim Meyering  <meyering@redhat.com>
36817
36818         avoid spurious test failure when library is built without ACL support
36819         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
36820         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
36821         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
36822         * tests/test-copy-acl.sh: Likewise.
36823
36824 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36825
36826         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
36827         based on character occurrence counts.
36828
36829 2008-09-15  Eric Blake  <ebb9@byu.net>
36830
36831         tests: avoid some compiler warnings
36832         * tests/test-memchr.c (main): Pass NULL indirectly.
36833         * tests/test-closein.c (main): Avoid unused variable.
36834
36835 2008-09-15  Bruno Haible  <bruno@clisp.org>
36836
36837         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
36838         are missing on OpenBSD 4.0 individually.
36839         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36840
36841 2008-09-15  Bruno Haible  <bruno@clisp.org>
36842
36843         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
36844         * doc/posix-functions/strerror.texi: Mention also Cygwin.
36845         * doc/posix-functions/perror.texi: Likewise.
36846         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
36847         is missing.
36848         Reported by Eric Blake.
36849
36850         * lib/errno.in.h: Use replacement values >= 2000.
36851         Reported by Eric Blake.
36852
36853 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36854
36855         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
36856         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
36857         limit.
36858         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
36859         compareseq was aborted.
36860
36861 2008-09-14  Bruno Haible  <bruno@clisp.org>
36862
36863         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
36864         yvec_edit_count.
36865         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
36866         (fstrcmp_bounded): Simplify result computation accordingly.
36867
36868 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36869
36870         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
36871         (fstrcmp): Define in terms of fstrcmp_bounded.
36872         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
36873         lower_bound argument.
36874         Return quickly if the result is certainly < lower_bound.
36875         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
36876
36877 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36878
36879         * lib/diffseq.h (EARLY_ABORT): New macro.
36880         (compareseq): Change return type to bool. Return true when EARLY_ABORT
36881         evaluates to true.
36882
36883 2008-09-14  Bruno Haible  <bruno@clisp.org>
36884
36885         * modules/perror-tests: New file.
36886         * tests/test-perror.sh: New file.
36887         * tests/test-perror.c: New file.
36888
36889         New module 'perror'.
36890         * lib/stdio.in.h (perror): New declaration.
36891         * lib/perror.c: New file.
36892         * m4/perror.m4: New file.
36893         * modules/perror: New file.
36894         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
36895         * doc/posix-functions/perror.texi: Mention the perror module.
36896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36897         REPLACE_PERROR.
36898         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
36899         REPLACE_PERROR.
36900
36901 2008-09-14  Bruno Haible  <bruno@clisp.org>
36902
36903         * modules/stdio (Makefile.am): Reorder to match the order in
36904         lib/stdio.in.h.
36905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36906
36907 2008-09-13  Bruno Haible  <bruno@clisp.org>
36908
36909         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
36910
36911 2008-09-13  Bruno Haible  <bruno@clisp.org>
36912
36913         Extend strerror to cover the added errno values.
36914         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
36915         (rpl_strerror): Provide error messages for the added errno values and
36916         for the WSA* values.
36917         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
36918         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
36919         strerror.
36920         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
36921         * modules/strerror (Depends-on): Add errno.
36922         * doc/posix-functions/strerror.texi: Document the change.
36923         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
36924         and EOVERFLOW.
36925
36926 2008-09-13  Bruno Haible  <bruno@clisp.org>
36927
36928         * modules/EOVERFLOW: Remove file.
36929         * m4/eoverflow.m4: Remove file.
36930         * modules/EOVERFLOW-tests: Remove file.
36931         * tests/test-EOVERFLOW.c: Remove file.
36932         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
36933         * modules/ftell (Depends-on): Likewise.
36934         * modules/getdelim (Depends-on): Likewise.
36935         * modules/getugroups (Depends-on): Likewise.
36936         * modules/poll (Depends-on): Likewise.
36937         * modules/snprintf (Depends-on): Likewise.
36938         * modules/sprintf-posix (Depends-on): Likewise.
36939         * modules/vasnprintf (Depends-on): Likewise.
36940         * modules/vasprintf (Depends-on): Likewise.
36941         * modules/vfprintf-posix (Depends-on): Likewise.
36942         * modules/vsnprintf (Depends-on): Likewise.
36943         * modules/vsprintf-posix (Depends-on): Likewise.
36944         * modules/xvasprintf (Depends-on): Likewise.
36945         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36946         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
36947         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
36948         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
36949         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36950         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
36951         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
36952         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
36953         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36954         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
36955         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
36956         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
36957         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36958         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
36959         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
36960         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
36961         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36962         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
36963         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
36964         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
36965         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36966         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
36967         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
36968         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
36969         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
36970         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36971         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
36972         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
36973         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
36974         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
36975         * MODULES.html.sh: Remove EOVERFLOW.
36976         * NEWS: Mention the change.
36977
36978 2008-09-13  Bruno Haible  <bruno@clisp.org>
36979
36980         * modules/errno-tests: New file.
36981         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
36982
36983         * lib/errno.in.h: New file.
36984         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
36985         * modules/errno: New file.
36986         * doc/posix-headers/errno.texi: Update documentation.
36987         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
36988
36989 2008-09-13  Bruno Haible  <bruno@clisp.org>
36990
36991         * tests/test-poll.c: Use #if for native Windows, rather than testing
36992         __MSVCRT__.
36993
36994 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36995             Bruno Haible  <bruno@clisp.org>
36996
36997         * lib/glob.c: Don't include <pwd.h> on native Windows.
36998         (WINDOWS32): New macro.
36999         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
37000
37001 2008-09-13  Bruno Haible  <bruno@clisp.org>
37002
37003         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
37004         (ETIMEDOUT): Remove macro.
37005         (glthread_cond_timedwait_multithreaded): New declaration.
37006         (glthread_cond_timedwait): Use it.
37007         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
37008         (glthread_cond_timedwait_multithreaded): New function.
37009
37010 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37011
37012         * modules/poll-tests: Do not check for io.h.
37013         * tests/test-poll.c: Check for __MSVCRT__ instead.
37014
37015 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37016
37017         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
37018         * modules/poll-tests: Add inet_pton, stdbool, sockets.
37019         * tests/test-poll.c: Use them.  Use _pipe on Windows.
37020
37021 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37022
37023         * modules/poll-tests: New.
37024         * tests/test-poll.c: New.
37025
37026 2008-09-12  Eric Blake  <ebb9@byu.net>
37027
37028         frexp: test for NetBSD failure on -0.0
37029         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
37030         not all, bugs from NetBSD 3.0 have been fixed.
37031         * doc/posix-functions/frexp.texi (frexp): Document bug.
37032         Reported by Thomas Klausner.
37033
37034         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
37035         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
37036         literal -0.0.
37037         Reported by Jonathan C. Patschke <jp@centtech.com>.
37038
37039 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37040
37041         * lib/glthread/cond.h: Use dummy implementation also if
37042         USE_WIN32_THREADS.
37043
37044 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37045
37046         * modules/fnmatch-posix (License): Change to LGPLv2+.
37047         * modules/fnmatch-gnu (License): Likewise.
37048
37049 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37050
37051         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
37052
37053 2008-09-11  Jim Meyering  <meyering@redhat.com>
37054
37055         * users.txt: Add gtk-vnc.
37056
37057 2008-09-08  Simon Josefsson  <simon@josefsson.org>
37058
37059         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
37060         rotate amounts.
37061
37062         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
37063         required for 16-bit and 8-bit rotates.
37064         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
37065         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
37066         UINT8_MAX instead of hard-coded constants.
37067         Suggested by Paul Eggert.
37068
37069 2008-09-07  Bruno Haible  <bruno@clisp.org>
37070
37071         * tests/test-striconveh.c (main): Check behaviour when converting from
37072         UTF-7.
37073
37074         Make striconveh work better with stateful encodings.
37075         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
37076         that iconv does not increment the inptr when returning -1/EINVAL.
37077
37078 2008-09-07  Bruno Haible  <bruno@clisp.org>
37079
37080         * build-aux/config.rpath: Update according to libtool-2.2.6.
37081         * build-aux/config.libpath: Likewise.
37082
37083 2008-09-06  Bruno Haible  <bruno@clisp.org>
37084
37085         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
37086         * lib/freadptr.c (freadptr): Likewise.
37087         * lib/freadseek.c (freadptrinc): Likewise.
37088         Reported by Simon Josefsson.
37089
37090 2008-09-06  Bruno Haible  <bruno@clisp.org>
37091
37092         * modules/freadptr (License): Change to LGPLv2+.
37093         * modules/freadseek (License): Likewise.
37094         Suggested by Eric Blake.
37095
37096         * modules/memchr2 (License): Change to LGPLv2+.
37097         Approved by Eric Blake.
37098
37099 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37100             Bruno Haible  <bruno@clisp.org>
37101
37102         Make gnulib-tool work with native 'sed' on AIX.
37103         * gnulib-tool (sed_noop): New variable.
37104         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
37105         func_add_or_update, func_create_testdir): Use it to initialize sed
37106         script variables.
37107         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37108
37109 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
37110             Bruno Haible  <bruno@clisp.org>
37111
37112         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
37113         also works after #include directives.
37114
37115 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
37116
37117         getdate.y: reject an out-of-range timezone value
37118         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
37119         the range [-24...+24].  When specified with only one or two digits,
37120         * tests/test-getdate.c: Tests for the fix.
37121         * doc/getdate.texi: Document this change.
37122
37123 2008-09-03  Bruno Haible  <bruno@clisp.org>
37124
37125         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
37126
37127 2008-09-02  Simon Josefsson  <simon@josefsson.org>
37128
37129         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
37130         <bruce.korb@gmail.com> with ideas from Ben Pfaff
37131         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
37132         Blake <ebb9@byu.net>.
37133
37134         * tests/test-bitrotate.c: Add more test vectors.
37135
37136 2008-09-02  Eric Blake  <ebb9@byu.net>
37137
37138         vasnprintf-posix: handle large precision via %.*d
37139         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
37140         when handling it ourselves.
37141         * tests/test-vasnprintf-posix.c (test_function): Add test.
37142         * tests/test-snprintf-posix.h (test_function): Likewise.
37143         * tests/test-sprintf-posix.h (test_function): Likewise.
37144         * tests/test-vasprintf-posix.c (test_function): Likewise.
37145         Reported by Alain Guibert.
37146
37147 2008-09-01  Eric Blake  <ebb9@byu.net>
37148
37149         c-stack: make configure-time check more robust
37150         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
37151         successful sigaction call.
37152         Reported by Tom G. Christensen.
37153
37154 2008-09-01  Bruno Haible  <bruno@clisp.org>
37155
37156         New module 'findprog-lgpl'.
37157         * modules/findprog-lgpl: New file.
37158         * lib/findprog-lgpl.c: New file.
37159         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
37160         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
37161         to decide whether to use strdup or xstrdup, concatenated_filename or
37162         xconcatenated_filename.
37163
37164 2008-09-01  Bruno Haible  <bruno@clisp.org>
37165
37166         Split module 'concat-filename' into 'concat-filename' (LGPL) and
37167         'xconcat-filename' (GPL).
37168         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
37169         (License): Change to LGPLv2+.
37170         * modules/xconcat-filename: New file.
37171         * lib/concat-filename.h (concatenated_filename): Change specification.
37172         (xconcatenated_filename): New declaration.
37173         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
37174         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
37175         memory situations.
37176         * lib/xconcat-filename.c: New file.
37177         * NEWS: Mention the change.
37178         * lib/findprog.c: Include concat-filename.h, not filename.h.
37179         (find_in_path): Use xconcatenated_filename instead of
37180         concatenated_filename.
37181         * lib/javacomp.c: Include concat-filename.h, not filename.h.
37182         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37183         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37184         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37185         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
37186         instead of concatenated_filename.
37187         * lib/javaexec.c: Include concat-filename.h, not filename.h.
37188         (execute_java_class): Use xconcatenated_filename instead of
37189         concatenated_filename.
37190         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
37191         * modules/javacomp (Depends-on): Likewise.
37192         * modules/javaexec (Depends-on): Likewise.
37193
37194 2008-09-01  Bruno Haible  <bruno@clisp.org>
37195
37196         Split module 'filename' into 'filename' and 'concat-filename'.
37197         * modules/filename: Keep only lib/filename.h.
37198         (License): Change to LGPLv2+.
37199         * modules/concat-filename: New file, extracted from modules/filename.
37200         * lib/filename.h (concatenated_filename): Remove declaration.
37201         * lib/concat-filename.h: New file, extracted from lib/filename.h.
37202         * lib/concat-filename.c: Include concat-filename.h.
37203         * NEWS: Mention the change.
37204
37205 2008-09-01  Simon Josefsson  <simon@josefsson.org>
37206
37207         * lib/bitrotate.h (rotl8, rotr8): Add.
37208
37209         * modules/bitrotate (configure.ac): Need
37210         AC_REQUIRE([AC_C_INLINE]).
37211         (Description): Mention stdint.h.  Reported by Bruno Haible
37212         <bruno@clisp.org>.
37213
37214         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
37215         Paolo Bonzini <bonzini@gnu.org>.
37216
37217 2008-08-31  Bruno Haible  <bruno@clisp.org>
37218
37219         Assume Solaris specific bi-arch conventions on Solaris systems.
37220         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
37221         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
37222         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
37223         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
37224         like acl_libdirstem.
37225         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
37226         acl_libdirstem.
37227         * NEWS: Mention the change.
37228         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
37229
37230 2008-08-31  Jim Meyering  <meyering@redhat.com>
37231
37232         * lib/strftime.h: Add comments describing the two added arguments.
37233
37234         remove duplicate #include directives
37235         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
37236         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
37237
37238 2008-08-31  Bruno Haible  <bruno@clisp.org>
37239
37240         New module 'sigpipe-die'.
37241         * modules/sigpipe-die: New file.
37242         * lib/sigpipe-die.h: New file.
37243         * lib/sigpipe-die.c: New file.
37244         * MODULES.html.sh (Signal handling): Add sigpipe-die.
37245
37246 2008-08-31  Bruno Haible  <bruno@clisp.org>
37247
37248         Don't override previously installed signal handlers.
37249         * lib/fatal-signal.c (saved_sigactions): New variable.
37250         (uninstall_handlers): Reset the signal to the saved handler, not
37251         to SIG_DFL (except when ignored).
37252         (install_handlers): Save the previous handlers.
37253
37254 2008-08-30  Bruno Haible  <bruno@clisp.org>
37255
37256         * gnulib-tool (func_reset_sigpipe): New function.
37257         (func_get_automake_snippet, func_modules_transitive_closure,
37258         func_import): Invoke it before a join command that reads from stdin,
37259         to avoid "echo: write error: Broken pipe" error messages on stderr.
37260         Reported by Sam Steingold <sds@gnu.org>.
37261
37262 2008-08-30  Bruno Haible  <bruno@clisp.org>
37263
37264         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
37265         Code copied from m4/open.m4.
37266         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
37267         access and the filename ends in a slash. Code copied from lib/open.c.
37268         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
37269         * tests/test-fopen.c (main): Check against bug with trailing slash.
37270
37271 2008-08-29  Bruno Haible  <bruno@clisp.org>
37272
37273         Avoid some "gcc -pedantic" warnings.
37274         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
37275         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
37276         * lib/dirent.in.h: Likewise.
37277         * lib/fcntl.in.h: Likewise.
37278         * lib/float.in.h: Likewise.
37279         * lib/iconv.in.h: Likewise.
37280         * lib/inttypes.in.h: Likewise.
37281         * lib/locale.in.h: Likewise.
37282         * lib/math.in.h: Likewise.
37283         * lib/netinet_in.in.h: Likewise.
37284         * lib/search.in.h: Likewise.
37285         * lib/signal.in.h: Likewise.
37286         * lib/stdarg.in.h: Likewise.
37287         * lib/stdint.in.h: Likewise.
37288         * lib/stdio.in.h: Likewise.
37289         * lib/stdlib.in.h: Likewise.
37290         * lib/string.in.h: Likewise.
37291         * lib/strings.in.h: Likewise.
37292         * lib/sys_select.in.h: Likewise.
37293         * lib/sys_socket.in.h: Likewise.
37294         * lib/sys_stat.in.h: Likewise.
37295         * lib/sys_time.in.h: Likewise.
37296         * lib/sysexits.in.h: Likewise.
37297         * lib/time.in.h: Likewise.
37298         * lib/unistd.in.h: Likewise.
37299         * lib/wchar.in.h: Likewise.
37300         * lib/wctype.in.h: Likewise.
37301         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
37302         * modules/fchdir (Makefile.am): Likewise.
37303         * modules/fcntl (Makefile.am): Likewise.
37304         * modules/float (Makefile.am): Likewise.
37305         * modules/iconv_open (Makefile.am): Likewise.
37306         * modules/inttypes (Makefile.am): Likewise.
37307         * modules/locale (Makefile.am): Likewise.
37308         * modules/math (Makefile.am): Likewise.
37309         * modules/netinet_in (Makefile.am): Likewise.
37310         * modules/search (Makefile.am): Likewise.
37311         * modules/signal (Makefile.am): Likewise.
37312         * modules/stdarg (Makefile.am): Likewise.
37313         * modules/stdint (Makefile.am): Likewise.
37314         * modules/stdio (Makefile.am): Likewise.
37315         * modules/stdlib (Makefile.am): Likewise.
37316         * modules/string (Makefile.am): Likewise.
37317         * modules/strings (Makefile.am): Likewise.
37318         * modules/sys_select (Makefile.am): Likewise.
37319         * modules/sys_socket (Makefile.am): Likewise.
37320         * modules/sys_stat (Makefile.am): Likewise.
37321         * modules/sys_time (Makefile.am): Likewise.
37322         * modules/sysexits (Makefile.am): Likewise.
37323         * modules/time (Makefile.am): Likewise.
37324         * modules/unistd (Makefile.am): Likewise.
37325         * modules/wchar (Makefile.am): Likewise.
37326         * modules/wctype (Makefile.am): Likewise.
37327         Reported by Reuben Thomas <rrt@sc3d.org>.
37328
37329 2008-08-29  Bruno Haible  <bruno@clisp.org>
37330
37331         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
37332         any more.
37333
37334 2008-08-29  Simon Josefsson  <simon@josefsson.org>
37335
37336         * MODULES.html.sh (Misc): Add bitrotate.
37337
37338         * modules/bitrotate: New file.
37339
37340         * lib/bitrotate.h: New file.
37341
37342         * modules/bitrotate-tests: New file.
37343
37344         * tests/test-bitrotate.c: New file.
37345
37346         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
37347         on the bitrotate module.
37348
37349         * lib/arctwo.c: Use new bitrotate module.
37350
37351 2008-08-29  Jim Meyering  <meyering@redhat.com>
37352
37353         bootstrap: merge changes from coreutils
37354         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
37355         of copied files.  Remove a kludge, now that this is fixed.
37356         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
37357         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
37358         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
37359
37360 2008-08-29  Bruno Haible  <bruno@clisp.org>
37361
37362         * MODULES.html.sh: Remove --cvs-urls option.
37363
37364 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
37365
37366         maint.mk: adjust to file name change
37367         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
37368
37369 2008-08-28  Jim Meyering  <meyering@redhat.com>
37370
37371         * modules/getndelim2 (License): Relicense to LGPLv2+.
37372         Approved by Richard Stallman for the version of 1995, and by
37373         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
37374
37375 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
37376
37377         * lib/getdelim.c (flockfile, funlockfile): Make all of them
37378         dummy if one is not available.  Do not touch them if
37379         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
37380         (getc_maybe_unlocked): New.
37381         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
37382
37383 2008-08-26  Eric Blake  <ebb9@byu.net>
37384
37385         doc/INSTALL: resync from autoconf
37386         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
37387         (INSTALL_PRELUDE): Delete; this is done more efficiently by
37388         moving...
37389         * install.texi [!autoconf]: ...here.  Resync from autoconf.
37390         * INSTALL: Regenerate.
37391         * INSTALL.ISO: New file.
37392         * INSTALL.UTF-8: Likewise.
37393
37394 2008-08-26  Jim Meyering  <meyering@redhat.com>
37395
37396         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
37397         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
37398         these definitions conditional, so that they may be overridden, too.
37399
37400 2008-08-26  Bruno Haible  <bruno@clisp.org>
37401
37402         Generate INSTALL file variants with prettier quotes.
37403         * doc/Makefile (INSTALL_PRELUDE): New macro.
37404         (INSTALL): Use it.
37405         (INSTALL.ISO, INSTALL.UTF-8): New rules.
37406
37407 2008-08-26  Bruno Haible  <bruno@clisp.org>
37408
37409         Run makeinfo in an English locale.
37410         * doc/Makefile (MAKEINFO): New variable.
37411
37412 2008-08-26  Bruno Haible  <bruno@clisp.org>
37413
37414         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
37415         Suggested by Eric Blake.
37416
37417 2008-08-25  Bruno Haible  <bruno@clisp.org>
37418
37419         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
37420
37421 2008-08-25  Eric Blake  <ebb9@byu.net>
37422
37423         c-stack: test that stack overflow can be caught
37424         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
37425         that platform allows handling stack overflow; at least OS/2 EMX
37426         has sigaltstack, but crashes before transferring control to
37427         handler on stack overflow.
37428         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
37429         check for HAVE_STACK_OVERFLOW_HANDLING.
37430         Reported by Elbert Pol.
37431
37432 2008-08-25  Bruno Haible  <bruno@clisp.org>
37433
37434         * doc/posix-functions/strftime.texi: Fix description of strftime
37435         module.
37436
37437 2008-08-24  Bruno Haible  <bruno@clisp.org>
37438
37439         * tests/uniwidth/test-uc_width2.c: New file.
37440         * tests/uniwidth/test-uc_width2.sh: New file.
37441         * modules/uniwidth/width-tests (Files): Add the new files.
37442         (TESTS): Add uniwidth/test-uc_width2.sh.
37443         (TESTS_ENVIRONMENT): New variable.
37444         (check_PROGRAMS): Add test-uc_width2.
37445         (test_uc_width2_SOURCES): New variable.
37446
37447         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
37448         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
37449         not 0x00AB.
37450         Reported by Alexander V. Lukyanov <lav@netis.ru>.
37451
37452 2008-08-22  Eric Blake  <ebb9@byu.net>
37453
37454         test-lock, test-tls: mention why a test is skipped
37455         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
37456         skipped.
37457         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
37458
37459         count-one-bits: relax license
37460         * modules/count-one-bits (License): Relicense to LGPLv2+.
37461         Suggested by Ludovic Courtès, approved by Ben Pfaff.
37462
37463 2008-08-22  Andreas Schwab  <schwab@suse.de>
37464
37465         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37466         Remove spurious space in assignment.
37467
37468 2008-08-21  Simon Josefsson  <simon@josefsson.org>
37469
37470         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
37471         Paul Eggert <eggert@CS.UCLA.EDU>.
37472
37473 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
37474
37475         * modules/gettext: Add m4/threadlib.m4.
37476
37477 2008-08-19  Eric Blake  <ebb9@byu.net>
37478
37479         test-c-stack: fix compilation failure on FreeBSD 5.0
37480         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
37481         headers before <sys/resource.h>.
37482         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
37483         the bug.
37484         Reported by Nelson H. F. Beebe.
37485
37486         strverscmp: migrate from "strverscmp.h" to <string.h>
37487         * modules/string (Makefile.am): Add new hooks.
37488         * modules/strverscmp (Files): Remove strverscmp.h.
37489         (Depends-on): Add string.
37490         (configure.ac): Add indicator.
37491         (Include): Mention new header.
37492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
37493         defaults.
37494         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
37495         results.
37496         * lib/strverscmp.h: Delete.
37497         * lib/string.in.h (strverscmp): Provide declaration, when needed.
37498         * tests/test-strverscmp.c (includes): Adjust client.
37499         * lib/check-version.c (includes): Likewise.
37500         * NEWS: Document the change.
37501
37502         strverscmp: add unit test
37503         * modules/strverscmp-tests: New file.
37504         * tests/test-strverscmp.c: Likewise.
37505
37506 2008-08-19  Simon Josefsson  <simon@josefsson.org>
37507
37508         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
37509         regarding Windows crypto stuff, from Mono.
37510
37511 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
37512
37513         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
37514         if present, for intel RND.  Return error on failures.
37515
37516 2008-08-18  Ben Pfaff  <blp@gnu.org>
37517
37518         gitlog-to-changelog: give better diagnostic for failed pipe-open
37519         * build-aux/gitlog-to-changelog: Improve error message: suggest
37520         that the version of Git may be too old.
37521
37522 2008-08-18  Simon Josefsson  <simon@josefsson.org>
37523
37524         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
37525         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
37526
37527 2008-08-18  Bruno Haible  <bruno@clisp.org>
37528
37529         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
37530         pthread_in_use().
37531
37532 2008-08-18  Bruno Haible  <bruno@clisp.org>
37533
37534         * lib/glthread/threadlib.c: Include <pthread.h>.
37535
37536 2008-08-18  Bruno Haible  <bruno@clisp.org>
37537
37538         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
37539         glthread_recursive_lock_* macros.
37540         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
37541         Fix syntax error.
37542
37543 2008-08-18  Bruno Haible  <bruno@clisp.org>
37544
37545         * lib/glthread/thread.c: Avoid forcing a context switch right after
37546         thread creation.
37547
37548 2008-08-17  Bruno Haible  <bruno@clisp.org>
37549
37550         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
37551         * lib/glthread/thread.h: Provide Win32 specific implementation.
37552         * modules/thread (Files): Add lib/glthread/thread.c.
37553         (Depends-on): Add lock.
37554         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
37555
37556 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37557
37558         New module 'yield'.
37559         * modules/yield: New file.
37560         * lib/glthread/yield.h: New file.
37561         * m4/yield.m4: New file.
37562         * MODULES.html.sh (Multithreading): Add yield.
37563
37564 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37565
37566         New module 'thread'.
37567         * modules/thread: New file.
37568         * lib/glthread/thread.h: New file.
37569         * m4/thread.m4: New file.
37570         * MODULES.html.sh (Multithreading): Add thread.
37571
37572 2008-08-17  Bruno Haible  <bruno@clisp.org>
37573
37574         * lib/glthread/lock.h: Include <stdlib.h> always.
37575         * lib/glthread/tls.h: Likewise.
37576         * lib/glthread/cond.h: Likewise.
37577
37578 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37579
37580         New module 'cond'.
37581         * modules/cond: New file.
37582         * lib/glthread/cond.h: New file.
37583         * lib/glthread/cond.c: New file.
37584         * m4/cond.m4: New file.
37585         * MODULES.html.sh (Multithreading): Add cond.
37586
37587 2008-08-16  Eric Blake  <ebb9@byu.net>
37588
37589         c-stack: fix regression on Irix 5.3 from 2008-06-21
37590         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
37591         sa_sigaction...
37592         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
37593         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
37594         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
37595         * modules/signal (Makefile.am): Use the value.
37596         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
37597         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
37598         * doc/posix-headers/signal.texi (signal.h): Document this
37599         portability issue.
37600         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
37601         Reported by Tom G. Christensen.
37602
37603 2008-08-17  Bruno Haible  <bruno@clisp.org>
37604
37605         New module 'threadlib'.
37606         * modules/threadlib: New file.
37607         * lib/glthread/threadlib.c: New file, extracted from
37608         lib/glthread/lock.c.
37609         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
37610         functions.
37611         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
37612         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
37613         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
37614         macros.
37615         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
37616         (gl_DISABLE_THREADS): Remove macro.
37617         * modules/lock (Files): Remove build-aux/config.rpath.
37618         (Depends-on): Remove havelib. Add threadlib.
37619         (configure.ac-early): Remove section.
37620         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
37621         * modules/tls (Depends-on): Remove lock. Add threadlib.
37622         (Link): New section, copied from threadlib.
37623         * MODULES.html.sh (Multithreading): Add threadlib.
37624
37625 2008-08-14  Bruno Haible  <bruno@clisp.org>
37626
37627         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
37628         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
37629         glthread_rwlock_unlock, glthread_rwlock_destroy,
37630         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
37631         glthread_recursive_lock_destroy): Define as macros always.
37632         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
37633         glthread_lock_lock.
37634         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
37635         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
37636         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
37637         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
37638         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
37639         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
37640         (glthread_recursive_lock_lock_func): Renamed from
37641         glthread_recursive_lock_lock.
37642         (glthread_recursive_lock_unlock_func): Renamed from
37643         glthread_recursive_lock_unlock.
37644         (glthread_recursive_lock_destroy_func): Renamed from
37645         glthread_recursive_lock_destroy.
37646
37647 2008-08-14  Bruno Haible  <bruno@clisp.org>
37648
37649         * lib/glthread/lock.h: Renamed from lib/lock.h.
37650         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
37651         * lib/glthread/tls.h: Renamed from lib/tls.h.
37652         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
37653         * lib/fstrcmp.c: Update includes.
37654         * lib/strsignal.c: Update includes.
37655         * modules/lock (Files, Makefile.am): Update.
37656         (Include): Change to "glthread/lock.h".
37657         * modules/tls (Files, Makefile.am): Update.
37658         (Include): Change to "glthread/tls.h".
37659         * tests/test-lock.c: Update includes.
37660         * tests/test-tls.c: Update includes.
37661         * NEWS: Mention the renamed header files.
37662
37663 2008-08-11  Jim Meyering  <meyering@redhat.com>
37664
37665         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
37666
37667 2008-08-11  Eric Blake  <ebb9@byu.net>
37668
37669         test-c-stack: avoid C99-ism
37670         * tests/test-c-stack.c (main): Fix whitespace, move declaration
37671         before statement.
37672         Reported by Alain Guibert.
37673
37674 2008-08-10  Jim Meyering  <meyering@redhat.com>
37675
37676         ensure that return value of uinttostr et al are not ignored
37677         * lib/inttostr.h (__GNUC_PREREQ): Define.
37678         (__attribute_warn_unused_result__): Define.
37679         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
37680
37681 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
37682
37683         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
37684         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
37685
37686 2008-08-07  Jim Meyering  <meyering@redhat.com>
37687
37688         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
37689
37690         * modules/mkstemp (License): Relicense under LGPLv2+.
37691         * modules/tempname (License): Likewise.
37692
37693 2008-08-06  Bruno Haible  <bruno@clisp.org>
37694
37695         * lib/poll.c (poll): Further micro-optimization.
37696
37697 2008-08-06  Jim Meyering  <meyering@redhat.com>
37698
37699         inet_pton.c: use locale-independent tolower
37700         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
37701         (inet_pton6): Use c_tolower rather than tolower.
37702         * modules/inet_pton (Depends-on): Add c-ctype.
37703
37704 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
37705
37706         * lib/poll.c (poll): Avoid division when timeout is 0, cache
37707         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
37708
37709 2008-08-06  Jim Meyering  <meyering@redhat.com>
37710
37711         * modules/inet_pton (License): Relicense under LGPLv2+.
37712
37713 2008-08-03  Bruno Haible  <bruno@clisp.org>
37714
37715         Additional non-aborting API for lock and tls.
37716         * lib/lock.h: Include <errno.h>.
37717         (glthread_lock_init): New macro/function.
37718         (gl_lock_init): Define as wrapper around glthread_lock_init.
37719         (glthread_lock_lock): New macro/function.
37720         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
37721         (glthread_lock_unlock): New macro/function.
37722         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
37723         (glthread_lock_destroy): New macro/function.
37724         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
37725         (glthread_rwlock_init): New macro/function.
37726         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
37727         (glthread_rwlock_rdlock): New macro/function.
37728         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
37729         (glthread_rwlock_wrlock): New macro/function.
37730         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
37731         (glthread_rwlock_unlock): New macro/function.
37732         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
37733         (glthread_rwlock_destroy): New macro/function.
37734         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
37735         (glthread_recursive_lock_init): New macro/function.
37736         (gl_recursive_lock_init): Define as wrapper around
37737         glthread_recursive_lock_init.
37738         (glthread_recursive_lock_lock): New macro/function.
37739         (gl_recursive_lock_lock): Define as wrapper around
37740         glthread_recursive_lock_lock.
37741         (glthread_recursive_lock_unlock): New macro/function.
37742         (gl_recursive_lock_unlock): Define as wrapper around
37743         glthread_recursive_lock_unlock.
37744         (glthread_recursive_lock_destroy): New macro/function.
37745         (gl_recursive_lock_destroy): Define as wrapper around
37746         glthread_recursive_lock_destroy.
37747         (glthread_once): New macro/function.
37748         (gl_once): Define as wrapper around glthread_once.
37749         Update function declarations.
37750         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
37751         glthread_rwlock_init. Return error code.
37752         (glthread_rwlock_rdlock_multithreaded): Renamed from
37753         glthread_rwlock_rdlock. Return error code.
37754         (glthread_rwlock_wrlock_multithreaded): Renamed from
37755         glthread_rwlock_wrlock. Return error code.
37756         (glthread_rwlock_unlock_multithreaded): Renamed from
37757         glthread_rwlock_unlock. Return error code.
37758         (glthread_rwlock_destroy_multithreaded): Renamed from
37759         glthread_rwlock_destroy. Return error code.
37760         (glthread_recursive_lock_init_multithreaded): Renamed from
37761         glthread_recursive_lock_init. Return error code.
37762         (glthread_recursive_lock_lock_multithreaded): Renamed from
37763         glthread_recursive_lock_lock. Return error code.
37764         (glthread_recursive_lock_unlock_multithreaded): Renamed from
37765         glthread_recursive_lock_unlock. Return error code.
37766         (glthread_recursive_lock_destroy_multithreaded): Renamed from
37767         glthread_recursive_lock_destroy. Return error code.
37768         (glthread_once_call): Make static.
37769         (glthread_once_multithreaded): Renamed from glthread_once.
37770         * lib/tls.h: Include <errno.h>.
37771         (glthread_tls_key_init): New macro/function.
37772         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
37773         (glthread_tls_set): New macro/function.
37774         (gl_tls_set): Define as wrapper around glthread_tls_set.
37775         (glthread_tls_key_destroy): New macro/function.
37776         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
37777         Update function declarations.
37778         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
37779         glthread_tls_get.
37780         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37781
37782 2008-08-04  Eric Blake  <ebb9@byu.net>
37783
37784         gnumakefile: use space, not TAB, outside of targets
37785         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
37786
37787 2008-08-02  Jim Meyering  <meyering@redhat.com>
37788
37789         getdate.y: avoid locale-dependent date parsing failure
37790         In Turkish locales, getdate would fail to recognize keywords
37791         containing a lowercase "i".  The solution is not to rely on
37792         locale-sensitive case-conversion.
37793         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
37794         (lookup_word): Use c_toupper in place of toupper.
37795         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
37796         Reported by Vefa Bicakci <bicave@superonline.com> in
37797         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
37798         * modules/getdate (Depends-on): Add c-ctype.
37799
37800 2008-08-02  Bruno Haible  <bruno@clisp.org>
37801
37802         * gnulib-tool (func_import): When updating or creating a .gitignore
37803         file, prepend each added line with a slash, and ignore leading slashes
37804         from the existing lines.
37805         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37806
37807 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37808
37809         Portability fix for GNU make 3.79.1.
37810         * top/GNUmakefile: Avoid 'else COND', which older GNU make
37811         versions do not understand.
37812
37813 2008-08-01  Bruno Haible  <bruno@clisp.org>
37814
37815         Work around bug of HP-UX 10.20 cc with -0.0 literal.
37816         * tests/test-isnanf.h (zero): New variable.
37817         (main): Avoid literal -0.0f.
37818         * tests/test-isnand.h (zero): New variable.
37819         (main): Avoid literal -0.0.
37820         * tests/test-isnanl.h (zero): New variable.
37821         (main): Avoid literal -0.0L.
37822         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
37823         (test_float, test_double, test_long_double): Avoid literals -0.0f,
37824         -0.0, -0.0L.
37825         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
37826         (test_signbitd): Avoid literal -0.0.
37827         (test_signbitl): Avoid literal -0.0L.
37828         * tests/test-ceilf1.c (zero): New variable.
37829         (main): Avoid literal -0.0f.
37830         * tests/test-ceill.c (zero): New variable.
37831         (main): Avoid literal -0.0L.
37832         * tests/test-floorf1.c (zero): New variable.
37833         (main): Avoid literal -0.0f.
37834         * tests/test-floorl.c (zero): New variable.
37835         (main): Avoid literal -0.0L.
37836         * tests/test-roundf1.c (zero): New variable.
37837         (main): Avoid literal -0.0f.
37838         * tests/test-round1.c (zero): New variable.
37839         (main): Avoid literal -0.0.
37840         * tests/test-roundl.c (zero): New variable.
37841         (main): Avoid literal -0.0L.
37842         * tests/test-truncf1.c (zero): New variable.
37843         (main): Avoid literal -0.0f.
37844         * tests/test-trunc1.c (zero): New variable.
37845         (main): Avoid literal -0.0.
37846         * tests/test-truncl.c (zero): New variable.
37847         (main): Avoid literal -0.0L.
37848         * tests/test-frexp.c (zero): New variable.
37849         (main): Avoid literal -0.0.
37850         * tests/test-frexpl.c (zero): New variable.
37851         (main): Avoid literal -0.0L.
37852         * tests/test-ldexpl.c (zero): New variable.
37853         (main): Avoid literal -0.0L.
37854         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37855         (zerod, zerol): New variables.
37856         (test_function): Avoid literals -0.0, -0.0L.
37857         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37858         (zerod, zerol): New variables.
37859         (test_function): Avoid literals -0.0, -0.0L.
37860         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37861         (zerod, zerol): New variables.
37862         (test_function): Avoid literals -0.0, -0.0L.
37863         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37864         (zerod, zerol): New variables.
37865         (test_function): Avoid literals -0.0, -0.0L.
37866         * tests/test-strtod.c (zero): New variable.
37867         (main): Avoid literal -0.0.
37868         Reported by Jonathan C. Patschke <jp@centtech.com>.
37869
37870 2008-07-31  Jim Meyering  <meyering@redhat.com>
37871
37872         sha256.h: correct definition of SHA224_DIGEST_SIZE
37873         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
37874         Reported by Paulie Pena IV <paulie4@gmail.com>.
37875         Define as 224 / 8, rather than as a literal.
37876         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
37877         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
37878         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
37879
37880 2008-07-31  Bruno Haible  <bruno@clisp.org>
37881
37882         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
37883         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
37884         Reported by Jonathan Patschke <jp@centtech.com>.
37885
37886 2008-07-31  Bruno Haible  <bruno@clisp.org>
37887
37888         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
37889         Reported by Paolo Bonzini <bonzini@gnu.org>.
37890
37891 2008-07-30  Eric Blake  <ebb9@byu.net>
37892
37893         test-strtod: allow compilation without -lm
37894         * tests/test-strtod.c (main): Avoid link dependence on fabs.
37895         Reported by Dennis Clarke <blastwave@gmail.com>.
37896
37897 2008-07-28  Jim Meyering  <meyering@redhat.com>
37898
37899         bootstrap: work also when there are no .po files in po/
37900         * build-aux/bootstrap (update_po_files): Complete the change
37901         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37902
37903 2008-07-27  Jim Meyering  <meyering@redhat.com>
37904
37905         * users.txt: Add zile.
37906
37907 2008-07-26  Ben Pfaff  <blp@gnu.org>
37908
37909         Add missing dependencies on new m4/exponent[fdl].m4 files.
37910         * modules/isnanf-nolibm: Add m4/exponentf.m4.
37911         * modules/isnand-nolibm: Add m4/exponentd.m4.
37912         * modules/isnanl-nolibm: Add m4/exponentl.m4.
37913         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
37914         m4/isnan[fdl].m4, because the macros actually used moved.
37915         Reported by Jim Meyering.
37916
37917 2008-07-14  Ben Pfaff  <blp@gnu.org>
37918
37919         Add isinf module.
37920         * lib/isinf.c: New file.
37921         * lib/math.in.h: Define isinf macro if we have decided to replace
37922         it.
37923         * m4/isinf.m4: New file.
37924         * m4/math_h.m4: Initialize and substitute variables for isinf
37925         module.
37926         * modules/isinf: New file.
37927         * modules/isinf-tests: New file.
37928         * modules/math: Add substitutions for new module.
37929         * tests/test-isinf.c: New file.
37930         * doc/posix-functions/isinf.texi: Mention new module.
37931         * MODULES.html.sh: Mention new module.
37932
37933 2008-07-14  Ben Pfaff  <blp@gnu.org>
37934
37935         Factor out some macros for use by additional modules.
37936         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
37937         exponentf.m4.
37938         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
37939         exponentd.m4.
37940         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
37941         file exponentl.m4.
37942         * m4/exponentf.m4: New file.
37943         * m4/exponentd.m4: New file.
37944         * m4/exponentl.m4: New file.
37945         * modules/isnanf: Use new file m4/exponentf.m4.
37946         * modules/isnand: Use new file m4/exponentd.m4.
37947         * modules/isnanl: Use new file m4/exponentl.m4.
37948
37949 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
37950
37951         mktime.c: normalize tp->tm_isdst value to -1/0/1.
37952         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
37953         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
37954         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
37955
37956         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
37957         readlink on platforms without PATH_MAX.
37958
37959 2008-07-21  Eric Blake  <ebb9@byu.net>
37960
37961         Warn, not fail, on stale version.
37962         * top/GNUmakefile (_curr-ver): Tone down previous patch.
37963
37964         Don't allow installation with stale devel version number.
37965         * top/GNUmakefile (_is-install-target): New macro.
37966         (_curr-ver): Forbid installation with stale version number.
37967
37968 2008-07-20  Bruno Haible  <bruno@clisp.org>
37969
37970         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
37971         TESTS_ENVIRONMENT.
37972         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
37973
37974 2008-07-20  Bruno Haible  <bruno@clisp.org>
37975
37976         * lib/c-stack.h (c_stack_action): Add documentation.
37977         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
37978
37979 2008-07-20  Bruno Haible  <bruno@clisp.org>
37980
37981         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
37982         * modules/readlink (License): Likewise.
37983
37984 2008-07-17  Eric Blake  <ebb9@byu.net>
37985
37986         * modules/c-stack (Link): Fix typo.
37987
37988         Make c-stack use libsigsegv, when available.
37989         * modules/c-stack (Depends-on): Add libsigsegv.
37990         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
37991         needed.
37992         * lib/c-stack.c (SIGSTKSZ): Define fallback.
37993         (segv_handler, overflow_handler, c_stack_action)
37994         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
37995         implementation when libsigsegv is available, but only when using
37996         the library is necessary.
37997         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
37998         comment, explaining why XSI check fails on Linux.
37999         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
38000         * tests/test-c-stack2.sh: Tweak skip message.
38001         * NEWS: Document new link-time requirements.
38002
38003 2008-07-16  Eric Blake  <ebb9@byu.net>
38004
38005         c-stack: Expose false positives when not using libsigsegv.
38006         * modules/c-stack-tests (Files): Expand test.
38007         * tests/test-c-stack.c (main): Add means to conditionally trigger
38008         non-overflow SIGSEGV.
38009         * tests/test-c-stack2.sh: New file.
38010
38011 2008-07-14  Bruno Haible  <bruno@clisp.org>
38012
38013         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
38014         Reported by Eric Blake.
38015
38016 2008-07-14  Sam Steingold  <sds@gnu.org>
38017             Bruno Haible  <bruno@clisp.org>
38018
38019         New module libsigsegv.
38020         * modules/libsigsegv: New file.
38021         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
38022         modifications.
38023         * MODULES.html.sh (Signal handling): New section.
38024
38025 2008-07-14  Bruno Haible  <bruno@clisp.org>
38026
38027         * modules/unictype/ctype-* (Description): Add the word "function".
38028         Improves the resulting doc in MODULES.html.
38029
38030 2008-07-12  Ben Pfaff  <blp@gnu.org>
38031
38032         Add longlong module.
38033         * modules/longlong: New file.
38034
38035 2008-07-12  Bruno Haible  <bruno@clisp.org>
38036
38037         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
38038         to empty.
38039
38040 2008-07-10  Ben Pfaff  <blp@gnu.org>
38041
38042         Add isnan module.
38043         * doc/posix-functions/isnan.texi: Mention new module.
38044         * lib/math.in.h: Define isnan macro if we have decided to replace
38045         it.
38046         * m4/isnan.m4: New file.
38047         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
38048         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
38049         also.
38050         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
38051         redundancy.
38052         * m4/math_h.m4: Initialize and substitute variables for isnan
38053         module.
38054         * modules/isnan: New file.
38055         * modules/isnan-tests: New file.
38056         * modules/math: Add substitutions for new module.
38057         * tests/test-isnan.c: New file.
38058         * MODULES.html.sh: Mention new module.
38059
38060 2008-07-10  Ben Pfaff  <blp@gnu.org>
38061
38062         Add isnanf module.
38063         * lib/isnanf.m4: New file.
38064         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
38065         (gl_HAVE_ISNANF_IN_LIBM): New macro.
38066         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
38067         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
38068         * modules/isnanf: New file.
38069         * modules/isnanf-tests: New file.
38070         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
38071         files.
38072         * tests/test-isnanf-nolibm.c: factored most of its contents into
38073         new file tests/test-isnanf.h.
38074         * tests/test-isnanf.h: New file.
38075         * tests/test-isnanf.c: New file.
38076         * MODULES.html.sh: Mention new module.
38077         * doc/glibc-functions/isnanf.texi: Mention new module.
38078
38079 2008-07-10  Ben Pfaff  <blp@gnu.org>
38080
38081         Add isnand module.
38082         * lib/isnand.h: New file.
38083         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
38084         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
38085         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
38086         functionality also.
38087         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
38088         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
38089         (gl_HAVE_ISNAND_IN_LIBM): New macro.
38090         * modules/isnand: New file.
38091         * modules/isnand-tests: New file.
38092         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
38093         files.
38094         * tests/test-isnand-nolibm.c: factored most of its contents into
38095         new file tests/test-isnand.h.
38096         * tests/test-isnand.h: New file.
38097         * tests/test-isnand.c: New file.
38098         * MODULES.html.sh: Mention new module.
38099
38100 2008-07-10  Ben Pfaff  <blp@gnu.org>
38101
38102         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
38103         * lib/isnand.h: Rename lib/isnand-nolibm.h.
38104         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
38105         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
38106         * modules/isnanf-nolibm: Update references to renamed files.
38107         * modules/isnand-nolibm: Likewise.
38108         * modules/isnanf-nolibm-tests: Likewise.
38109         * modules/isnand-nolibm-tests: Likewise.
38110         * lib/frexp.c: Likewise.
38111         * lib/isfinite.c: Likewise.
38112         * lib/signbitd.c: Likewise.
38113         * lib/signbitf.c: Likewise.
38114         * lib/vasnprintf.c: Likewise.
38115         * tests/test-ceilf1.c: Likewise.
38116         * tests/test-ceilf2.c: Likewise.
38117         * tests/test-floorf1.c: Likewise.
38118         * tests/test-floorf2.c: Likewise.
38119         * tests/test-frexp.c: Likewise.
38120         * tests/test-round1.c: Likewise.
38121         * tests/test-round2.c: Likewise.
38122         * tests/test-roundf1.c: Likewise.
38123         * tests/test-strtod.c: Likewise.
38124         * tests/test-trunc1.c: Likewise.
38125         * tests/test-trunc2.c: Likewise.
38126         * tests/test-truncf1.c: Likewise.
38127         * tests/test-truncf2.c: Likewise.
38128         * NEWS: Mention the renamed header files.
38129
38130 2008-07-11  Jim Meyering  <meyering@redhat.com>
38131
38132         vc-list-files: make the last-resort awk code more portable
38133         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
38134         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
38135         does not support it.
38136
38137 2008-07-10  Eric Blake  <ebb9@byu.net>
38138
38139         Work with tar's bootstrap.
38140         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
38141         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
38142         an m4 comment.
38143
38144 2008-07-09  Jim Meyering  <meyering@redhat.com>
38145
38146         posix-shell.m4: fix typo that made this test malfunction
38147         * m4/posix-shell.m4: Remove capitalization in variable name.
38148
38149 2008-07-08  Bruno Haible  <bruno@clisp.org>
38150
38151         * m4/onceonly.m4: Update comments.
38152         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38153
38154 2008-07-04  Jim Meyering  <meyering@redhat.com>
38155
38156         * users.txt: Add vc-dwim.
38157         (bison, coreutils): Use the gitweb URL.
38158
38159 2008-07-03  Jim Meyering  <meyering@redhat.com>
38160
38161         * users.txt: Add libffcall.  From Sam Steingold.
38162
38163 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
38164
38165         getdate.y: do not ignore TZ with relative day, month or year offset
38166         * lib/getdate.y (get_date): Move the tz-handling block to follow the
38167         relative-date-handling, since otherwise, the latter would clobber the
38168         sole output (an updated Start value) of the tz-handling block.
38169         * tests/test-getdate.c: Tests for the fix
38170
38171 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38172
38173         Recognize 'foo_LIBRARIES += libgnu.a'.
38174         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
38175         makefile snippet has already specified an installation location,
38176         also using '+='.
38177
38178 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
38179
38180         getdate.y: factor out common actions
38181         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
38182         Use them in place of open-coded actions.
38183
38184 2008-07-01  Simon Josefsson  <simon@josefsson.org>
38185
38186         Add self-test for getdate module.
38187         * modules/getdate-tests: New file.
38188         * tests/test-getdate.c: New file.
38189
38190 2008-06-29  Bruno Haible  <bruno@clisp.org>
38191
38192         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
38193         .gitignore.
38194         Reported by Sylvain Beucler <beuc@beuc.net>.
38195
38196 2008-06-29  Bruno Haible  <bruno@clisp.org>
38197
38198         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
38199         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
38200
38201 2008-06-29  Bruno Haible  <bruno@clisp.org>
38202
38203         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
38204         EXTRA_DIST.
38205         Reported by Sylvain Beucler <beuc@beuc.net>.
38206
38207 2008-06-26  Jim Meyering  <meyering@redhat.com>
38208
38209         make several modules depend on the "open" module
38210         This provides slightly increased consistency when opening-for-write
38211         the name of a non-directory spelled with a trailing slash.
38212         * modules/chdir-safer: Likewise.
38213         * modules/chown: Likewise.
38214         * modules/clean-temp: Likewise.
38215         * modules/copy-file: Likewise.
38216         * modules/fchdir: Likewise.
38217         * modules/fcntl-safer: Likewise.
38218         * modules/pipe: Likewise.
38219         * modules/utime: Likewise.
38220         Prompted by Eric Blake and Bruno Haible.
38221
38222 2008-06-24  Andreas Schwab  <schwab@suse.de>
38223
38224         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
38225         literals can be used as initializers for global variables.
38226
38227 2008-06-23  Eric Blake  <ebb9@byu.net>
38228
38229         Make gnulib-cache.m4 easier to diff.
38230         * gnulib-tool (func_import): Allow newlines when reading cached
38231         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
38232
38233 2008-06-23  Bruno Haible  <bruno@clisp.org>
38234
38235         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
38236         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
38237         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
38238         m4/signalblocking.m4.
38239         (gl_PREREQ_SIGACTION): Don't invoke it.
38240         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
38241         gl_PREREQ_SIG_HANDLER_H.
38242         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38243         Don't check for sigaction here.
38244
38245 2008-06-23  Bruno Haible  <bruno@clisp.org>
38246
38247         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
38248         (install_handlers): Don't set the SA_RESETHAND flag.
38249
38250 2008-06-23  Bruno Haible  <bruno@clisp.org>
38251
38252         * m4/sigaction.m4: Comment fixes.
38253         * lib/signal.in.h: Likewise.
38254
38255 2008-06-23  Eric Blake  <ebb9@byu.net>
38256
38257         Fix typo.
38258         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
38259
38260         Avoid SA_ namespace.
38261         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
38262         Reported by Ralf Wildenhues.
38263
38264         Avoid test failure due to SA_RESTORER.
38265         * tests/test-sigaction.c (SA_MASK): New macro.
38266         (main): Avoid failing due to extension flags being set.
38267         Reported by Jim Meyering.
38268
38269         Revert use of sig-handler.h in sigprocmask.c.
38270         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
38271         it requires the existence of struct sigaction.
38272         * lib/sigprocmask.c (handler_t): Restore typedef.
38273         (rpl_signal, old_handlers): Use local type.
38274
38275 2008-06-22  Bruno Haible  <bruno@clisp.org>
38276
38277         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
38278         conditionally.
38279         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38280
38281 2008-06-22  Bruno Haible  <bruno@clisp.org>
38282
38283         * doc/posix-functions/siginterrupt.texi: Move note.
38284
38285         * lib/signal.in.h (SA_RESTART): New macro.
38286         * lib/sigaction.c: Update comment.
38287
38288         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
38289
38290         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
38291         (gl_PREREQ_SIGPROCMASK): Invoke it.
38292         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
38293
38294         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
38295
38296         * lib/sigprocmask.c: Update a comment.
38297
38298 2008-06-21  Eric Blake  <ebb9@byu.net>
38299
38300         Use sigaction module rather than signal().
38301         * modules/c-stack (Depends-on): Add sigaction.
38302         * modules/fatal-signal (Depends-on): Likewise.
38303         * modules/nanosleep (Depends-on): Likewise.
38304         * modules/sigprocmask (Files): Add sig-handler.h.
38305         * modules/sigaction (Files): Likewise.
38306         * lib/sig-handler.h (get_handler): New file, suggested by Paul
38307         Eggert.
38308         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
38309         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
38310         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38311         (init_fatal_signals): Likewise.
38312         * lib/nanosleep.c (rpl_nanosleep): Likewise.
38313         (siginterrupt): Delete fallback.
38314         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
38315         instead.
38316         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
38317         siginterrupt.
38318
38319         New module sigaction, for mingw.
38320         * modules/sigaction: New module...
38321         * modules/sigaction-tests: ...and its test.
38322         * m4/sigaction.m4: New file.
38323         * lib/sigaction.c: Likewise.
38324         * tests/test-sigaction.c: Likewise.
38325         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
38326         * modules/signal (Makefile.am): Likewise.
38327         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
38328         needed.
38329         * doc/posix-headers/signal.texi (signal.h): Mention provided
38330         types.
38331         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
38332         that sigaction is preferable.
38333         * doc/posix-functions/sigaction.texi (sigaction): Mention new
38334         module.
38335         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38336         sigaction.
38337
38338         Improve robustness of sigprocmask by overriding signal.
38339         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
38340         is in use.
38341         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
38342         (SIGKILL, SIGSTOP): Provide fallbacks.
38343         (rpl_signal): Implement.
38344         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
38345         signal can be called inside handlers.
38346
38347         Fix nanosleep module on mingw.
38348         * modules/nanosleep (Depends-on): Add sys_select.
38349         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
38350
38351         Fix licensing of sigprocmask.
38352         * modules/raise (License): Relicense as LGPL.
38353
38354 2008-06-21  Bruno Haible  <bruno@clisp.org>
38355
38356         * lib/propername.c (proper_name_utf8): Don't use the transliterated
38357         result if it contains question marks.
38358         Reported by Michael Geng <linux@michaelgeng.de>.
38359
38360 2008-06-19  Bruno Haible  <bruno@clisp.org>
38361
38362         Fix CVS-ism.
38363         * doc/gnulib.texi: Include updated-stamp.texi.
38364         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
38365         (updated-stamp.texi): New rule.
38366         (gnulib.info): Depend on it.
38367         * doc/.gitignore: Add updated-stamp.texi.
38368         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
38369
38370 2008-06-19  Bruno Haible  <bruno@clisp.org>
38371
38372         * doc/Makefile (gnulib.info): Update and simplify dependencies.
38373         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38374
38375 2008-06-19  Eric Blake  <ebb9@byu.net>
38376
38377         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
38378         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
38379         Reported by Stepan Kasal.
38380
38381 2008-06-18  Bruno Haible  <bruno@clisp.org>
38382
38383         * lib/fatal-signal.c (init_fatal_signals): Add comment.
38384         Reported by Eric Blake.
38385
38386 2008-06-18  Eric Blake  <ebb9@byu.net>
38387
38388         Work around cygwin 1.5.25 strsignal bug.
38389         * tests/test-strsignal.c: Allow for const char *.
38390         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
38391
38392 2008-06-18  Simon Josefsson  <simon@josefsson.org>
38393
38394         * users.txt: Update URL to article and add author/date
38395         information.
38396
38397 2008-06-17  Bruno Haible  <bruno@clisp.org>
38398
38399         New macro gl_DISABLE_THREADS.
38400         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
38401         if the user did not pass --enable-threads or --disable-threads option.
38402         (gl_DISABLE_THREADS): New macro.
38403         Reported by Eric Blake <ebb9@byu.net>.
38404
38405 2008-06-17  Bruno Haible  <bruno@clisp.org>
38406
38407         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
38408         when the macro ignores it.
38409         Based on a patch by Eric Blake <ebb9@byu.net>.
38410
38411 2008-06-17  Bruno Haible  <bruno@clisp.org>
38412
38413         * modules/tls (License): Change to LGPLv2+.
38414         Reported by Eric Blake.
38415
38416 2008-06-17  Eric Blake  <ebb9@byu.net>
38417
38418         Simplify c-stack prerequisites.
38419         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
38420         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
38421         no longer requires <ucontext.h> to exist.  Optimize setrlimit
38422         check.
38423         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
38424         <sys/resource.h>.
38425
38426         Move c-stack test into testsuite.
38427         * modules/c-stack-tests: New file.
38428         * lib/c-stack.c [DEBUG]: Move test program...
38429         * tests/test-c-stack.c: ...into this new file.  Skip rather than
38430         fail test if sigaltstack is lacking.
38431         * tests/test-c-stack.sh: New driver file.
38432
38433 2008-06-16  Eric Blake  <ebb9@byu.net>
38434
38435         Use raise module consistently.
38436         * modules/fatal-signal (Depends-on): Add raise.
38437         * modules/sigprocmask (Depends-on): Likewise.
38438         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
38439         * lib/sigprocmask.c (sigprocmask): Likewise.
38440         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38441         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
38442
38443         Fix compliance bug in sigpending.
38444         * lib/sigprocmask.c (sigpending): Return pending array via
38445         parameter, not return value.
38446
38447 2008-06-14  Eric Blake  <ebb9@byu.net>
38448
38449         Improve obstack-printf test code.
38450         * tests/test-obstack-printf.c (test_function): Fix comment, and
38451         simplify usage of obstack_* in macros.  Add a test for coverage.
38452         Reported by Bruno Haible.
38453
38454 2008-06-14  Bruno Haible  <bruno@clisp.org>
38455
38456         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
38457         array size as a constant, not as a const variable.
38458         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
38459         AC_USE_SYSTEM_EXTENSIONS.
38460         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38461         Test whether the obstack_printf function actually exists.
38462         * modules/obstack-printf (Depends-on): Add extensions.
38463         (Include): Remove obstack.h.
38464         * modules/obstack-printf-posix (Depends-on): Add extensions.
38465         (Include): Remove obstack.h.
38466
38467 2008-06-13  Eric Blake  <ebb9@byu.net>
38468
38469         Add obstack-printf and obstack-printf-posix modules.
38470         * modules/obstack-printf: New file.
38471         * modules/obstack-printf-posix: Likewise.
38472         * MODULES.html.sh (Misc): Mention them.
38473         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38474         Likewise.
38475         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38476         Likewise.
38477         * modules/stdio (Makefile.am): Accomodate new modules.
38478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38479         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
38480         Declare.
38481         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
38482         functions.
38483         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
38484         (gl_REPLACE_OBSTACK_PRINTF): New macros
38485         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
38486         * tests/test-obstack-printf.c: New file.
38487         * modules/obstack-printf-tests: Likewise.
38488         * modules/obstack-printf-posix-tests: Likewise.
38489
38490 2008-06-11  Bruno Haible  <bruno@clisp.org>
38491
38492         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
38493         * lib/open.c: Include errno.h.
38494         (open): Fail when attempting to write to a file that has a trailing
38495         slash.
38496         * tests/test-open.c (main): Test against trailing slash bug.
38497         * doc/posix-functions/open.texi: Mention the trailing slash bug.
38498
38499 2008-06-10  Bruno Haible  <bruno@clisp.org>
38500
38501         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
38502         for $? to work inside the trap command, with various /bin/sh-s.
38503         * tests/test-vc-list-files-cvs.sh: Likewise.
38504
38505 2008-06-10  Bruno Haible  <bruno@clisp.org>
38506
38507         * lib/acl-internal.h: Don't include gettext.h here.
38508         * lib/set-mode-acl.c: Include gettext.h here.
38509         * lib/copy-acl.c: Likewise.
38510
38511 2008-06-10  Bruno Haible  <bruno@clisp.org>
38512
38513         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
38514         * lib/wait-process.c (wait_subprocess): Likewise.
38515         * lib/execute.h (execute): Add termsigp argument.
38516         * lib/execute.c (execute): Likewise.
38517         * lib/csharpcomp.c (compile_csharp_using_pnet,
38518         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
38519         * lib/csharpexec.c (execute_csharp_using_pnet,
38520         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
38521         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
38522         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
38523         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
38524         is_jikes_present): Update.
38525         * lib/javaexec.c (execute_java_class): Update.
38526         * lib/javaversion.c (execute_and_read_line): Update.
38527         * NEWS: Document the changes.
38528         Reported by Eric Blake.
38529
38530 2008-06-10  Eric Blake  <ebb9@byu.net>
38531
38532         Add missing include.
38533         * tests/test-strstr.c (includes): Add <signal.h>.
38534         * tests/test-strcasestr.c (includes): Likewise.
38535         * tests/test-memmem.c (includes): Likewise.
38536
38537 2008-06-10  Bruno Haible  <bruno@clisp.org>
38538
38539         * lib/wait-process.c (wait_subprocess): Add an assertion.
38540
38541 2008-06-10  Bruno Haible  <bruno@clisp.org>
38542
38543         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
38544
38545 2008-06-10  Bruno Haible  <bruno@clisp.org>
38546
38547         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
38548         using alarm().
38549         * tests/test-strcasestr.c (main): Likewise.
38550         * tests/test-strstr.c (main): Likewise.
38551
38552 2008-06-09  Bruno Haible  <bruno@clisp.org>
38553
38554         Work around the Solaris 10 ACE ACLs ABI change.
38555         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
38556         declare if ACL_NO_TRIVIAL is present.
38557         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
38558         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
38559         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
38560         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
38561         define if ACL_NO_TRIVIAL is present.
38562         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
38563         and use the current ABI.
38564         (file_has_acl): Use same #if condition as elsewhere.
38565         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
38566         in use, and use the current ABI.
38567         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
38568         Reported by Jim Meyering.
38569
38570 2008-06-09  Eric Blake  <ebb9@byu.net>
38571
38572         Work around environments that (stupidly) ignore SIGALRM.
38573         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
38574         before using alarm().
38575         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38576         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38577         Reported by Ian Beckwith <ianb@erislabs.net>.
38578
38579         Produce autobuild blurb earlier in log.
38580         * modules/autobuild (configure.ac-early): Move AB_INIT here.
38581
38582 2008-06-09  Jim Meyering  <meyering@redhat.com>
38583         and OndÅ™ej Vašík  <ovasik@redhat.com>
38584
38585         utimens.c: correct kernel bug work-around
38586         OndÅ™ej Vašík found that the invalid return value of 280 indicates
38587         failure, not success, and the kernel bug we're trying to work
38588         around affects not just the utimensat call, but also the fallback
38589         futimens call.
38590         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
38591         not success.
38592         [HAVE_FUTIMENS]: Use the same work-around, here.
38593
38594 2008-06-09  Jim Meyering  <meyering@redhat.com>
38595
38596         add more guards around definition of ACE_-related code
38597         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
38598         ALLOW and ACE_OWNER are also defined.
38599
38600 2008-06-08  Bruno Haible  <bruno@clisp.org>
38601
38602         * lib/acl-internal.h: Add me as co-author.
38603         * lib/file-has-acl.c: Likewise.
38604         * lib/set-mode-acl.c: Likewise.
38605         * lib/copy-acl.c: Likewise.
38606
38607 2008-06-08  Bruno Haible  <bruno@clisp.org>
38608
38609         Add support for AIX ACLs.
38610         * lib/acl-internal.h (acl_nontrivial): New declaration.
38611         * lib/file-has-acl.c (acl_nontrivial): New function.
38612         (file_has_acl): Add implementation using AIX 4 ACL API.
38613         * lib/set-mode-acl.c (qset_acl): Likewise.
38614         * lib/copy-acl.c (qcopy_acl): Likewise.
38615
38616 2008-06-08  Bruno Haible  <bruno@clisp.org>
38617
38618         Add support for HP-UX ACLs.
38619         * lib/acl-internal.h (acl_nontrivial): New declaration.
38620         * lib/file-has-acl.c (acl_nontrivial): New function.
38621         (file_has_acl): Add implementation using HP-UX 11 ACL API.
38622         * lib/set-mode-acl.c (qset_acl): Likewise.
38623         * lib/copy-acl.c (qcopy_acl): Likewise.
38624
38625 2008-06-08  Bruno Haible  <bruno@clisp.org>
38626
38627         Add support for Cygwin ACLs.
38628         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
38629         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
38630         the chmod_or_fchmod call.
38631         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
38632
38633 2008-06-08  Bruno Haible  <bruno@clisp.org>
38634
38635         Fix bug with setuid modes in Solaris 10+ code.
38636         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
38637         succeeded, when the mode contains some special bits.
38638
38639 2008-06-08  Bruno Haible  <bruno@clisp.org>
38640
38641         Add support for Solaris 7..10 ACLs.
38642         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
38643         declarations.
38644         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
38645         functions.
38646         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
38647         * lib/set-mode-acl.c (qset_acl): Likewise.
38648         * lib/copy-acl.c (qcopy_acl): Likewise.
38649
38650 2008-06-08  Bruno Haible  <bruno@clisp.org>
38651
38652         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
38653         declaration.
38654         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
38655         (acl_access_nontrivial): Remove MacOS X case.
38656         (file_has_acl): Use acl_extended_nontrivial.
38657         * lib/copy-acl.c (qcopy_acl): Likewise.
38658
38659 2008-06-08  Bruno Haible  <bruno@clisp.org>
38660
38661         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
38662
38663 2008-06-08  Jim Meyering  <meyering@redhat.com>
38664
38665         * modules/acl (Maintainer): Add Bruno Haible.
38666
38667 2008-06-07  Bruno Haible  <bruno@clisp.org>
38668
38669         Improve support for Tru64 ACLs.
38670         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
38671         ACL on OSF/1.
38672
38673 2008-06-07  Bruno Haible  <bruno@clisp.org>
38674
38675         Add support for MacOS X ACLs.
38676         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
38677         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
38678         * lib/set-mode-acl.c (qset_acl): Likewise.
38679         * lib/copy-acl.c (qcopy_acl): Likewise.
38680
38681 2008-06-07  Bruno Haible  <bruno@clisp.org>
38682
38683         Fix memory leak introduced on 2008-05-22.
38684         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
38685         use.
38686
38687 2008-06-07  Bruno Haible  <bruno@clisp.org>
38688
38689         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
38690         to construct an empty ACL.
38691
38692 2008-06-07  Bruno Haible  <bruno@clisp.org>
38693
38694         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
38695         precisely.
38696         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
38697
38698 2008-06-07  Bruno Haible  <bruno@clisp.org>
38699
38700         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
38701         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
38702
38703 2008-06-07  Bruno Haible  <bruno@clisp.org>
38704
38705         * doc/posix-functions/_setjmp.texi: Explain the use of this function
38706         regardless of POSIX.
38707         * doc/posix-functions/_longjmp.texi: Likewise.
38708         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
38709         SystemV platform in this case.
38710
38711 2008-06-06  Eric Blake  <ebb9@byu.net>
38712
38713         Document abort() bugs.
38714         * doc/posix-functions/abort.texi (abort): Mention anomalies.
38715
38716         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
38717         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
38718         sigsetjmp.
38719         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
38720         siglongjmp, but only as a macro.
38721         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
38722         is obsolete.
38723         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
38724
38725         Tweak documentation to cover cygwin argz bugs.
38726         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
38727         argz bug fix; no code change needed since no cygwin releases
38728         occurred between the last fix and the bug being tested.
38729         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
38730         module and recently fixed cygwin bugs.
38731         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
38732         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
38733         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
38734         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
38735         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
38736         Likewise.
38737         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
38738         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
38739         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
38740         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
38741         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
38742         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
38743         Likewise.
38744
38745         Avoid gcc warning on cygwin.
38746         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
38747         !ACL_NO_TRIVIAL]: Avoid unused variable.
38748
38749 2008-06-05  Eric Blake  <ebb9@byu.net>
38750
38751         Be tolerant of UNKNOWN version in gnulib-tool test dir.
38752         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
38753         git-version-gen fails to come up with a version.
38754         Reported by Simon Josefsson.
38755
38756 2008-06-05  Jim Meyering  <meyering@redhat.com>
38757             Paul Eggert  <eggert@cs.ucla.edu>
38758
38759         utimens.c: work around a probable Linux kernel bug
38760         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
38761         appears to be a kernel bug that causes utimensat to return 280
38762         instead of 0, indicating success.
38763
38764 2008-06-04  Bruno Haible  <bruno@clisp.org>
38765
38766         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
38767         2008-06-01 commit.
38768
38769 2008-06-04  Bruno Haible  <bruno@clisp.org>
38770
38771         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
38772         * lib/file-has-acl.c (acl_access_nontrivial): New function.
38773         (file_has_acl): Use it. Save errno afterwards.
38774         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
38775
38776 2008-06-03  Bruno Haible  <bruno@clisp.org>
38777
38778         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
38779         draft code. Simplify #ifs.
38780         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
38781         Put Solaris code after POSIX-draft code. Fix comments regarding
38782         Solaris 10, HP-UX. Mention Cygwin.
38783         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
38784
38785 2008-06-03  Eric Blake  <ebb9@byu.net>
38786
38787         Provide fallback for older kernels.
38788         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
38789         Provide runtime fallback if kernel lacks support.
38790         Reported by Mike Frysinger.
38791
38792 2008-06-02  Bruno Haible  <bruno@clisp.org>
38793
38794         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
38795         it exists.
38796
38797 2008-06-02  Bruno Haible  <bruno@clisp.org>
38798
38799         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
38800         * lib/copy-acl.c (qcopy_acl): Update comment.
38801
38802 2008-06-02  Bruno Haible  <bruno@clisp.org>
38803
38804         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
38805         like ACL APIs.
38806
38807 2008-06-02  Bruno Haible  <bruno@clisp.org>
38808
38809         * tests/test-file-has-acl.sh: Use different code for Cygwin.
38810         * tests/test-set-mode-acl.sh: Likewise.
38811         * tests/test-copy-acl.sh: Likewise.
38812         * tests/test-copy-file.sh: Likewise.
38813
38814 2008-06-02  Bruno Haible  <bruno@clisp.org>
38815
38816         * tests/test-file-has-acl.sh: Remove unused code.
38817
38818 2008-06-01  Bruno Haible  <bruno@clisp.org>
38819
38820         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
38821         (copy_acl): Just a wrapper around qcopy_acl that emits the error
38822         messages.
38823         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
38824
38825 2008-06-01  Bruno Haible  <bruno@clisp.org>
38826
38827         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
38828         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
38829         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
38830         APIs.
38831         * modules/acl-tests (configure.ac): Remove tests now contained in
38832         m4/acl.m4.
38833
38834 2008-06-02  Jim Meyering  <meyering@redhat.com>
38835
38836         announce-gen: use a better key-server host name
38837         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
38838         it may be more consistently reliable.  Suggested by Werner Koch
38839         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
38840
38841 2008-06-01  Bruno Haible  <bruno@clisp.org>
38842
38843         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
38844         Reported by Voroskoi Andras <voroskoi@gmail.com>.
38845
38846 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
38847
38848         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
38849
38850 2008-06-01  Bruno Haible  <bruno@clisp.org>
38851
38852         New ACL tests.
38853         * tests/test-file-has-acl.sh: New file.
38854         * tests/test-file-has-acl.c: New file.
38855         * tests/test-set-mode-acl.sh: New file.
38856         * tests/test-set-mode-acl.c: New file.
38857         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
38858         * tests/test-copy-acl.c: New file.
38859         * modules/acl-tests: New file, based on modules/copy-file-tests.
38860         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
38861         (Depends-on): Add acl-tests.
38862         (configure.ac): Remove checks.
38863         (Makefile.am): Don't create test-sameacls program here any more.
38864
38865 2008-06-01  Bruno Haible  <bruno@clisp.org>
38866
38867         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
38868         * tests/test-sameacls.c: Include progname.h.
38869         (main): Invoke set_program_name. Portability fixes for MacOS X,
38870         Solaris, HP-UX.
38871
38872 2008-06-01  Bruno Haible  <bruno@clisp.org>
38873
38874         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
38875         function.
38876         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
38877
38878 2008-06-01  Bruno Haible  <bruno@clisp.org>
38879
38880         * modules/rpmatch (Depends-on): Add strdup.
38881
38882 2008-06-01  Bruno Haible  <bruno@clisp.org>
38883
38884         * lib/pipe.c: Include unistd-safer.h.
38885         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
38886         * modules/pipe (Depends-on): Add unistd-safer.
38887
38888 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38889
38890         * modules/autobuild (configure.ac): Call AB_INIT.
38891
38892 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38893
38894         * tests/test-getaddrinfo.c: Don't print debug messages by default.
38895         Suggested by Bruno Haible <bruno@clisp.org>.
38896
38897 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38898
38899         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38900         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38901         <bruno@clisp.org>.
38902
38903 2008-05-29  Eric Blake  <ebb9@byu.net>
38904
38905         Prefer new POSIX 200x interfaces over futimesat.
38906         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
38907         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
38908         when available.
38909         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
38910
38911 2008-05-28  Bruno Haible  <bruno@clisp.org>
38912
38913         * modules/stpcpy (License): Change to LGPLv2+.
38914         Requested by David Lutterkort <dlutter@redhat.com>.
38915
38916 2008-05-27  Bruno Haible  <bruno@clisp.org>
38917
38918         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
38919         current mingw.
38920         Reported by Jose E. Marchesi <jemarch@gnu.org>.
38921
38922 2008-05-27  Bruno Haible  <bruno@clisp.org>
38923
38924         * modules/iconv_open (Link): New section, from module 'iconv'.
38925         * modules/striconv (Link): Likewise.
38926         * modules/striconveh (Link): Likewise.
38927         * modules/xstriconv (Link): Likewise.
38928         * modules/unicodeio (Link): Likewise.
38929         * modules/propername (Link): Likewise.
38930         Reported by Jim Meyering.
38931
38932 2008-05-26  Jim Meyering  <meyering@redhat.com>
38933
38934         sha256: do not artificially restrict buffer length to be < 2^32
38935         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
38936         uint32_t to size_t.
38937         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
38938         to match.
38939
38940         avoid unaligned access errors, e.g., on sparc
38941         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
38942         direct access through a possibly-unaligned uint64* pointer.
38943         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
38944         direct access through a possibly-unaligned uint32* pointer.
38945         Prompted by this patch from Tom "spot" Callaway:
38946         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
38947
38948         sha512.c: fix typo in comment
38949         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
38950
38951 2008-05-25  Bruno Haible  <bruno@clisp.org>
38952
38953         * lib/set-mode-acl.c: Renamed from lib/acl.c.
38954         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
38955         (Makefile.am): Update lib_SOURCES.
38956
38957 2008-05-25  Bruno Haible  <bruno@clisp.org>
38958
38959         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
38960
38961 2008-05-25  Jim Meyering  <meyering@redhat.com>
38962
38963         useless-if-before-free: freed expr may have white-space differences
38964         * build-aux/useless-if-before-free: Recognize cases in which the
38965         freed expression differs from the tested one in embedded white
38966         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
38967         $1 was used, so we can't make any regexp shy.  Improved tests now
38968         detect this.
38969
38970         useless-if-before-free: accept white space in the expression.
38971         * build-aux/useless-if-before-free: For now, any white space
38972         in the expression must be identical in the free argument.
38973
38974         useless-if-before-free: efficiency tweak
38975         * build-aux/useless-if-before-free: Make the expression-matching
38976         regexp "shy".
38977         Make the *outer* regexp shy, not the expr-matching one.
38978
38979         update code-in-comment to accept cast of free arg
38980         * build-aux/useless-if-before-free: Update regexp.
38981
38982 2008-05-25  Bruno Haible  <bruno@clisp.org>
38983
38984         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
38985         * modules/copy-file-tests (Files, Makefile.am): Update.
38986         * tests/test-copy-file.c (func_test_copy): Update.
38987
38988 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
38989
38990         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
38991
38992 2008-05-23  Bruno Haible  <bruno@clisp.org>
38993
38994         Improve support for ACLs on OSF/1.
38995         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
38996         Remove fallback for unknown flavors of ACLs.
38997
38998 2008-05-22  Bruno Haible  <bruno@clisp.org>
38999
39000         Add support for ACLs on OSF/1.
39001         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
39002         replacements.
39003         (acl_free_text): New macro fallback.
39004         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
39005         acl_free.
39006         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
39007         acl_free_text function. Require AC_C_INLINE.
39008
39009 2008-05-22  Bruno Haible  <bruno@clisp.org>
39010
39011         Make copy_acl work on MacOS X 10.5.
39012         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
39013         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
39014         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
39015         If MODE_INSIDE_ACL, don't assume that every system has the same text
39016         representation for ACLs as FreeBSD.
39017         * lib/copy-acl.c (copy_acl): Add support for platforms with
39018         !MODE_INSIDE_ACL.
39019         * lib/file-has-acl.c (file_has_acl): Likewise.
39020         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
39021         FreeBSD, MacOS X, or IRIX, respectively.
39022
39023 2008-05-22  Bruno Haible  <bruno@clisp.org>
39024
39025         * lib/acl.h: Don't include <sys/acl.h>.
39026         (GETACLCNT): Move fallback to lib/acl-internal.h.
39027         * lib/acl-internal.h: Include <sys/acl.h> here.
39028         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
39029
39030 2008-05-22  Bruno Haible  <bruno@clisp.org>
39031
39032         Split off copy_acl function to separate file.
39033         * lib/copy-acl.c: New file, extracted from lib/acl.c.
39034         * lib/acl.c (copy_acl): Moved function to separate file.
39035         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
39036         * modules/acl (Files): Add lib/copy-acl.c.
39037         (Makefiles.am): Augment lib_SOURCES.
39038
39039 2008-05-22  Bruno Haible  <bruno@clisp.org>
39040
39041         * modules/copy-file-tests: New file.
39042         * tests/test-copy-file.sh: New file.
39043         * tests/test-copy-file.c: New file.
39044         * tests/test-copy-file-sameacls.c: New file.
39045
39046 2008-05-22  Eric Blake  <ebb9@byu.net>
39047
39048         Avoid gcc warning.
39049         * tests/test-memcmp.c (main): Pass NULL indirectly.
39050
39051 2008-05-21  Bruno Haible  <bruno@clisp.org>
39052
39053         Add reference doc about ACLs.
39054         * doc/acl-resources.txt: New file.
39055         * doc/acl-cygwin.txt: New file.
39056
39057 2008-05-21  Bruno Haible  <bruno@clisp.org>
39058
39059         Avoid one more warning from gcc.
39060         * lib/vasnprintf.c (IF_LINT): Update comments.
39061         (VASNPRINTF): Use it also for the 'prefix' array initializer.
39062
39063 2008-05-21  Jim Meyering  <meyering@redhat.com>
39064
39065         avoid a warning from gcc
39066         * lib/vasnprintf.c (IF_LINT): Define.
39067         (scale10_round_decimal_long_double):
39068         Use it to avoid a "may be used uninitialized" warning.
39069         (scale10_round_decimal_double): Likewise.
39070
39071 2008-05-21  Simon Josefsson  <simon@josefsson.org>
39072
39073         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
39074         declared.
39075
39076 2008-05-20  Bruno Haible  <bruno@clisp.org>
39077
39078         * tests/test-memcmp.c (main): Test also the sign of the result. Test
39079         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
39080
39081 2008-05-20  Simon Josefsson  <simon@josefsson.org>
39082
39083         * modules/memcmp-tests: New file.
39084         * tests/test-memcmp.c: New file.
39085
39086 2008-05-19  Bruno Haible  <bruno@clisp.org>
39087
39088         * modules/propername (Notice, configure.ac): Put quoted "..." into
39089         --keyword option.
39090         * lib/propername.h: Update comments accordingly.
39091         Reported by Eric Blake.
39092
39093 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
39094
39095         * modules/getpass-gnu (Depends-on): Add fseeko.
39096
39097 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39098
39099         * modules/base64-tests: New file.
39100
39101 2008-05-19  Bo Borgerson <gigabo@gmail.com>
39102
39103         * lib/base64.c (base64_decode_ctx): If a decode context structure
39104         was passed in use it to ignore newlines.  If a context structure
39105         was _not_ passed in, continue to treat newlines as garbage (this
39106         is the historical behavior).  Formerly base64_decode.
39107         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39108         takes a decode context structure.
39109         * lib/base64.h (base64_decode): Macro for four-argument calls.
39110         (base64_decode_alloc): Likewise.
39111         * lib/base64.c (base64_decode_ctx): If a decode context structure
39112         was passed in use it to ignore newlines.  If a context structure
39113         was _not_ passed in, continue to treat newlines as garbage (this
39114         is the historical behavior).  Formerly base64_decode.
39115         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39116         takes a decode context structure.
39117         * lib/base64.h (base64_decode): Macro for four-argument calls.
39118         (base64_decode_alloc): Likewise.
39119
39120 2008-05-19  Jim Meyering  <meyering@redhat.com>
39121
39122         avoid a warning from gcc
39123         * lib/trim.c (IF_LINT): Define.
39124         (trim2): Use it to avoid a "may be used uninitialized" warning.
39125
39126         Fix doc typo.
39127         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
39128
39129 2008-05-19  Bruno Haible  <bruno@clisp.org>
39130
39131         * doc/glibc-functions/getpass.texi: Document limits of other
39132         implementations.
39133
39134 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39135             Bruno Haible <bruno@clisp.org>
39136
39137         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
39138
39139 2008-05-18  Bruno Haible  <bruno@clisp.org>
39140
39141         * modules/propername: New file, from GNU gettext.
39142         * lib/propername.h: New file, from GNU gettext.
39143         * lib/propername.c: New file, from GNU gettext.
39144         * MODULES.html.sh (Internationalization functions): Add propername.
39145
39146 2008-05-16  Jim Meyering  <meyering@redhat.com>
39147             Bruno Haible  <bruno@clisp.org>
39148
39149         Avoid some warnings from "gcc -Wshadow".
39150         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
39151
39152 2008-05-15  Eric Blake  <ebb9@byu.net>
39153
39154         Extend previous patch to cygwin 1.7.0.
39155         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
39156         fast implementation in cygwin >= 1.7.0.
39157         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39158         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39159
39160 2008-05-15  Bruno Haible  <bruno@clisp.org>
39161
39162         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
39163         implementation in glibc >= 2.9.
39164         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39165         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39166
39167 2008-05-15  Bruno Haible  <bruno@clisp.org>
39168
39169         * MODULES.html.sh (Internationalization functions): Remove linebreak.
39170         (Unicode string functions): Add unilbrk/*.
39171         Reported by Karl Berry.
39172
39173 2008-05-15  Eric Blake  <ebb9@byu.net>
39174
39175         Fix violation of <stdbool.h> replacement in regex.
39176         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
39177         * lib/regexec.c (re_search_internal): Likewise.
39178         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
39179
39180 2008-05-15  Jim Meyering  <meyering@redhat.com>
39181
39182         avoid distracting test output when git or cvs is not found
39183         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
39184         * tests/test-vc-list-files-git.sh: Likewise.
39185
39186 2008-05-15  Eric Blake  <ebb9@byu.net>
39187
39188         Glibc finally accepted the memmem speedup code, bugzilla #5514.
39189         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
39190         glibc version.
39191         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39192         * doc/posix-functions/strstr.texi (strstr): Likewise.
39193         * lib/str-two-way.h (MAX): Sychronize with glibc.
39194
39195 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
39196
39197         * lib/regcomp.c (optimize_utf8): Add a note on why we test
39198         opr.ctx_type.
39199         (calc_first): Initialize constraint field.
39200         (duplicate_node_closure): Use it instead of special casing ANCHORS.
39201         Fix grammar.
39202         (duplicate_node): Merge constraint field for all node types.
39203         (calc_eclosure_iter): Look at constraint field for all node types.
39204         * lib/regex_internal.c (create_cd_newstate): Don't look at
39205         opr.ctx_type.
39206
39207 2008-05-14  Bruno Haible  <bruno@clisp.org>
39208
39209         Help GCC to do better code generation.
39210         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
39211         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
39212         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
39213         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
39214         Declare with attribute 'malloc' if supported.
39215
39216 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
39217
39218         use "echo STR|wc -c" rather than unportable "expr length STR"
39219         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
39220         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
39221
39222 2008-05-14  Jim Meyering  <meyering@redhat.com>
39223
39224         use dd ibs=$n count=1 ... rather than less-portable head -c$n
39225         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
39226         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
39227         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
39228         via Collin Lasse.
39229
39230 2008-05-14  Eric Blake  <ebb9@byu.net>
39231
39232         Avoid quadratic growth in gl_LIBSOURCES.
39233         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
39234         Suggested by Bruno Haible.
39235
39236         Test xmemdup0.
39237         * modules/xmemdup0-tests: New file.
39238         * tests/test-xmemdup0.c: Likewise.
39239
39240 2008-05-13  Eric Blake  <ebb9@byu.net>
39241
39242         Split xmemdup0 into its own module.
39243         * modules/xmemdup0: New file.
39244         * lib/xmemdup0.h: Likewise.
39245         * lib/xmemdup0.c: Likewise.
39246         * MODULES.html.sh (Memory management functions): Add xmemdup0.
39247         * lib/xalloc.h (xmemdup0): Remove.
39248         * lib/xmalloc.c (xmemdup0): Likewise.
39249
39250 2008-05-13  Eric Blake  <ebb9@byu.net>
39251             Bruno Haible  <bruno@clisp.org>
39252
39253         Reduce number of forks required during autoconf.
39254         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
39255         and gl_LIBSOURCES_DIR.
39256         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
39257         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
39258         m4_syscmd per file.
39259         <m4_foreach_w>: Move...
39260         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
39261
39262 2008-05-13  Eric Blake  <ebb9@byu.net>
39263
39264         * gnulib-tool: Fix various comment typos.
39265
39266 2008-05-12  Bruno Haible  <bruno@clisp.org>
39267
39268         Tailor the linebreaking algorithm.
39269         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
39270
39271 2008-05-12  Bruno Haible  <bruno@clisp.org>
39272
39273         Update to Unicode 5.0.0.
39274         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39275         LBP_JV, LBP_JT. Redistribute values.
39276         (unilbrk_table): Change size.
39277         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
39278         Unicode TR#14 rev. 22.
39279         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39280         LBP_JV, LBP_JT. Redistribute values.
39281         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
39282         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
39283         Update.
39284         * lib/unilbrk/lbrkprop1.h: Regenerated.
39285         * lib/unilbrk/lbrkprop2.h: Regenerated.
39286         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
39287         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
39288         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
39289         Likewise.
39290         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
39291         Likewise.
39292         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
39293         result.
39294         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39295         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39296         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
39297         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
39298         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
39299         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
39300
39301 2008-05-11  Bruno Haible  <bruno@clisp.org>
39302
39303         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
39304
39305 2008-05-11  Bruno Haible  <bruno@clisp.org>
39306
39307         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
39308         * modules/unilbrk/gen-lbrk: New file.
39309
39310 2008-05-11  Bruno Haible  <bruno@clisp.org>
39311
39312         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
39313         * m4/sha512.m4 (gl_SHA512): Likewise.
39314
39315 2008-05-11  Jim Meyering  <meyering@redhat.com>
39316
39317         New modules: crypto/sha256, crypto/sha512 (from coreutils)
39318         * modules/crypto/sha256: New file.
39319         * modules/crypto/sha512: Likewise.
39320         * lib/sha256.c: Likewise.
39321         * lib/sha256.h: Likewise.
39322         * lib/sha512.c: Likewise.
39323         * lib/sha512.h: Likewise.
39324         * lib/u64.h: Likewise.
39325         * m4/sha256.m4: Likewise.
39326         * m4/sha512.m4: Likewise.
39327         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
39328
39329 2008-05-10  Bruno Haible  <bruno@clisp.org>
39330
39331         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
39332         (Input/Output <stdio.h>): Add xprintf.
39333         (Signal handling <signal.h>): Add strsignal.
39334         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
39335         (Core language properties): Add func.
39336         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
39337         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
39338         strings.
39339         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
39340         (Input/output): New section.
39341         (File system functions): Add openat-die, stat-macros.
39342         (Networking functions): Add sockets.
39343         (Unicode string functions): Add unictype/*.
39344         (Support for building libraries and executables): Add gperf.
39345         (Support for building documentation): Add agpl-3.0.
39346         (Misc): Add nocrash.
39347
39348 2008-05-10  Bruno Haible  <bruno@clisp.org>
39349
39350         * modules/unictype/gen-ctype: New file.
39351
39352 2008-05-10  Jim Meyering  <meyering@redhat.com>
39353
39354         Make chdir-safer.c more efficient on a system with no symlinks.
39355         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
39356         also if ELOOP is zero.  Suggested by Bruno Haible.
39357
39358         Make chdir-safer.c slightly safer.
39359         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
39360         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
39361
39362         Avoid compile failure on systems without ELOOP (like mingw).
39363         * lib/chdir-safer.c (ELOOP): Define if not already defined.
39364         Reported by Bruno Haible.
39365
39366 2008-05-10  Bruno Haible  <bruno@clisp.org>
39367
39368         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
39369         (is_utf8_encoding): Use a case-insensitive comparison.
39370         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
39371         streq.
39372
39373 2008-05-10  Bruno Haible  <bruno@clisp.org>
39374
39375         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
39376         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
39377         * lib/unilbrk/ulc-common.h (iconv_string_length,
39378         iconv_string_keeping_offsets): Remove declarations.
39379         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
39380         Don't include <iconv.h>, streq.h, xsize.h.
39381         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
39382         conversion.
39383         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
39384         <iconv.h>, streq.h, xsize.h.
39385         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
39386         conversion.
39387         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
39388         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
39389         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
39390         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
39391
39392 2008-05-10  Bruno Haible  <bruno@clisp.org>
39393
39394         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
39395         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
39396
39397         * modules/unilbrk/u32-width-linebreaks-tests: New file.
39398         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
39399
39400         * modules/unilbrk/u16-width-linebreaks-tests: New file.
39401         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
39402
39403         * modules/unilbrk/u8-width-linebreaks-tests: New file.
39404         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
39405
39406         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
39407         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
39408
39409         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
39410         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
39411
39412         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
39413         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
39414
39415         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
39416         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
39417
39418 2008-05-10  Bruno Haible  <bruno@clisp.org>
39419
39420         Split up 'linebreak' module.
39421         * lib/unilbrk.h: New file, based on lib/linebreak.h.
39422         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
39423         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
39424         modifications.
39425         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
39426         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
39427         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
39428         lib/linebreak.c.
39429         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
39430         lib/linebreak.c.
39431         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
39432         lib/linebreak.c.
39433         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
39434         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
39435         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
39436         lib/linebreak.c.
39437         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
39438         lib/linebreak.c.
39439         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
39440         lib/linebreak.c.
39441         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
39442         lib/linebreak.c.
39443         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
39444         lib/linebreak.c.
39445         * modules/unilbrk/base: New file.
39446         * modules/unilbrk/tables: New file.
39447         * modules/unilbrk/u8-possible-linebreaks: New file.
39448         * modules/unilbrk/u16-possible-linebreaks: New file.
39449         * modules/unilbrk/u32-possible-linebreaks: New file.
39450         * modules/unilbrk/ulc-common: New file.
39451         * modules/unilbrk/ulc-possible-linebreaks: New file.
39452         * modules/unilbrk/u8-width-linebreaks: New file.
39453         * modules/unilbrk/u16-width-linebreaks: New file.
39454         * modules/unilbrk/u32-width-linebreaks: New file.
39455         * modules/unilbrk/ulc-width-linebreaks: New file.
39456         * lib/linebreak.h: Remove file.
39457         * lib/linebreak.c: Remove file.
39458         * m4/linebreak.m4: Remove file.
39459         * modules/linebreak: Remove file.
39460         * NEWS: Mention the changes.
39461
39462 2008-05-09  Eric Blake  <ebb9@byu.net>
39463
39464         Add xmemdup0.
39465         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
39466         implementation.
39467         * lib/xmalloc.c (xmemdup0): New C implementation.
39468
39469 2008-05-08  Bruno Haible  <bruno@clisp.org>
39470
39471         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
39472
39473 2008-05-07  Eric Blake  <ebb9@byu.net>
39474
39475         Support cross-compilation of <wctype.h>.
39476         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
39477         AC_CACHE_CHECK.
39478
39479 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
39480
39481         * build-aux/vc-list-files: Add support for bzr.
39482
39483 2008-05-03  Jim Meyering  <meyering@redhat.com>
39484
39485         avoid failed assertion with tight malloc
39486         * tests/test-getndelim2.c: Correct an off-by-one assertion.
39487
39488 2008-05-03  Simon Josefsson  <simon@josefsson.org>
39489
39490         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
39491         are needed from arpa/inet.h.
39492         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
39493         Reported by Bruno Haible.
39494
39495 2008-05-02  Jim Meyering  <meyering@redhat.com>
39496
39497         avoid compilation error on FreeBSD 6
39498         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
39499
39500 2008-05-01  Jim Meyering  <meyering@redhat.com>
39501
39502         useless-if-before-free: correct --help's exit status description
39503         * build-aux/useless-if-before-free (usage): Like grep, exit 0
39504         for one or more matches, etc.  Reported by Bruno Haible.
39505
39506         vc-list-files: make the stand-alone gnulib test work
39507         * modules/vc-list-files-tests (configure.ac):
39508         Define and AC_SUBST abs_aux_dir.
39509         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
39510         $(abs_top_srcdir) to each script and having each of them
39511         duplicate the work of setting PATH, set PATH here, using
39512         the new variable, abs_aux_dir instead.
39513         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
39514         * tests/test-vc-list-files-git.sh: Likewise.
39515         Reported by Bruno Haible.
39516
39517 2008-05-01  Bruno Haible  <bruno@clisp.org>
39518
39519         * lib/getndelim2.c (getndelim2): Fix newsize computation during
39520         reallocation. Rename 'done' to 'found_delimiter'.
39521
39522 2008-05-01  Jim Meyering  <meyering@redhat.com>
39523
39524         vc-list-files: accommodate /bin/sh like the one from Solaris 10
39525         * build-aux/vc-list-files: Use `...`, not $(...).
39526
39527 2008-04-30  Jim Meyering  <meyering@redhat.com>
39528
39529         add tests for vc-list-files
39530         * modules/vc-list-files-tests: New module.
39531         * tests/test-vc-list-files-cvs.sh: New file.
39532         * tests/test-vc-list-files-git.sh: New file.
39533
39534         avoid a warning from gcc
39535         * lib/getndelim2.c (IF_LINT): Define.
39536         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
39537
39538         vc-list-files: work properly with build-aux/cvsu, too
39539         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
39540         to all cvs-based clauses.
39541
39542         vc-list-files: work properly in the CVS+awk case, too
39543         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
39544
39545         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
39546         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
39547         take more than one file argument, so .  Add quotes, just in case $dir
39548         ever contains a shell meta-character.  Prompted by Soren Hansen in
39549         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
39550
39551 2008-04-29  Eric Blake  <ebb9@byu.net>
39552
39553         Optimize getndelim2 to use block operations when possible.
39554         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
39555         freadseek, and memchr2.
39556         * lib/getndelim2.c (getndelim2): Use them for block reads.
39557
39558 2008-04-29  Bruno Haible  <bruno@clisp.org>
39559
39560         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
39561         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39562         * modules/inet_ntop (Depends-on): Add extensions.
39563         * modules/inet_pton (Depends-on): Likewise.
39564         Reported by Simon Josefsson.
39565
39566 2008-04-29  Jim Meyering  <meyering@redhat.com>
39567
39568         When the is more than one match in a block, match all of them.
39569         * build-aux/useless-if-before-free: Iterate through each block
39570         until there are no more matches.
39571
39572         Fix broken useless-if-before-free script.
39573         * build-aux/useless-if-before-free: Fix typo: missing "?" after
39574         the expression to match cast of argument to free-like function.
39575
39576 2008-04-29  Eric Blake  <ebb9@byu.net>
39577
39578         Use new header.
39579         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
39580
39581 2008-04-29  Jim Meyering  <meyering@redhat.com>
39582
39583         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
39584         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
39585         by gnulib to exist and to declare e.g., inet_ntop.
39586         Don't include "inet_ntop.h", now removed.
39587
39588         * m4/arpa_inet_h.m4: Remove trailing blanks.
39589
39590 2008-04-29  Eric Blake  <ebb9@byu.net>
39591
39592         Silence valgrind on safe reads beyond potential array bounds.
39593         * lib/rawmemchr.valgrind: New file.
39594         * lib/strchrnul.valgrind: Likewise.
39595         * modules/rawmemchr (Files): Distribute new file.
39596         * modules/strchrnul (Files): Likewise.
39597         Suggested by Bruno Haible.
39598
39599 2008-04-29  Bruno Haible  <bruno@clisp.org>
39600
39601         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
39602         (inet_ntop, inet_pton): Change portability warning's wording.
39603         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
39604         Invoke gl_CHECK_NEXT_HEADERS.
39605         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
39606         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
39607         set ARPA_INET_H.
39608         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39609         * modules/arpa_inet (Description): No longer only for systems that
39610         lack it.
39611         (Depends-on): Add include_next.
39612         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
39613         HAVE_ARPA_INET_H.
39614
39615 2008-04-29  Jim Meyering  <meyering@redhat.com>
39616
39617         * modules/mkdir (License): Re-license as LGPLv2+.
39618
39619 2008-04-29  Bruno Haible  <bruno@clisp.org>
39620
39621         * modules/rawmemchr (Maintainer): Set to Eric.
39622         * modules/strchrnul (Maintainer): Likewise.
39623
39624 2008-04-29  Simon Josefsson  <simon@josefsson.org>
39625
39626         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
39627         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
39628
39629         * modules/arpa_inet (arpa/inet.h): Use them.
39630
39631 2008-04-28  Eric Blake  <ebb9@byu.net>
39632
39633         Test getndelim2.
39634         * modules/getndelim2-tests: New file.
39635         * tests/test-getndelim2.c: Likewise.
39636         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
39637         stream.
39638         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
39639
39640         * MODULES.html.sh: Document new module.
39641
39642 2008-04-20  Bruno Haible  <bruno@clisp.org>
39643
39644         * lib/c-stack.c (die): Use raise.
39645         * modules/c-stack (Depends-on): Add raise.
39646
39647 2008-04-28  Bruno Haible  <bruno@clisp.org>
39648
39649         Expect rpmatch to be declared.
39650         * lib/yesno.c (rpmatch): Remove declaration.
39651
39652         Declare rpmatch.
39653         * lib/stdlib.in.h (rpmatch): New declaration.
39654         * lib/rpmatch.c: Include <stdlib.h> first.
39655         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
39656         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
39657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
39658         HAVE_RPMATCH.
39659         * modules/rpmatch (Depends-on): Add stdlib, extensions.
39660         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39661         (Include): Set to <stdlib.h>.
39662         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
39663         HAVE_RPMATCH.
39664         * NEWS: Document the change.
39665
39666 2008-04-28  Bruno Haible  <bruno@clisp.org>
39667
39668         Change rpmatch to use nl_langinfo when appropriate.
39669         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
39670         (N_): New macro.
39671         (localized_pattern): New function/macro.
39672         (try): Remove match, nomatch arguments. Copy the pattern into safe
39673         memory before caching it.
39674         (rpmatch): Use localized_pattern. Add translator comments.
39675         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
39676         Suggested by Eric Blake.
39677         * modules/rpmatch (Depends-on): Add stdbool.
39678
39679 2008-04-28  Eric Blake  <ebb9@byu.net>
39680
39681         Add rawmemchr module, matching glibc.
39682         * modules/string (Makefile.am): New indicator.
39683         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
39684         * lib/string.in.h (rawmemchr): Declare when appropriate.
39685         * modules/rawmemchr: New file.
39686         * m4/rawmemchr.m4: Likewise.
39687         * lib/rawmemchr.c: Likewise.
39688         * modules/rawmemchr-tests: Likewise.
39689         * tests/test-rawmemchr.c: Likewise.
39690         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
39691         module.
39692         * modules/strchrnul (Depends-on): Add rawmemchr.
39693         * lib/strchrnul.c (strchrnul): Optimize a corner case.
39694
39695         Whitespace cleanup.
39696         * tests/test-strchrnul.c: Reindent.
39697         * lib/strchrnul.c: Likewise.
39698
39699         Optimize and test strchrnul.
39700         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
39701         * modules/strchrnul-tests: New file.
39702         * tests/test-strchrnul.c: Likewise.
39703
39704         Remove intprops dependency.
39705         * modules/memchr (Depends-on): Remove intprops.
39706         * modules/memrchr (Depends-on): Likewise.
39707         * modules/memchr2 (Depends-on): Likewise.
39708         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
39709         * lib/memrchr.c (__memrchr): Likewise.
39710         * lib/memrchr2.c (memchr2): Likewise.
39711         Reported by Simon Josefsson.
39712
39713 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39714
39715         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
39716         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39717
39718 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39719
39720         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
39721
39722         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
39723
39724         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
39725
39726         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
39727         declarations.
39728         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
39729
39730         * m4/inet_pton.m4: Don't check for header files.
39731
39732         * m4/inet_ntop.m4: Don't check for header files.
39733
39734 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39735
39736         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
39737         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
39738         trigger for cygwin).
39739         Reported by Bruno Haible  <bruno@clisp.org>.
39740
39741 2008-04-28  Bruno Haible  <bruno@clisp.org>
39742
39743         * doc/posix-functions/strdup.texi: Mention mingw problem.
39744
39745 2008-04-27  Bruno Haible  <bruno@clisp.org>
39746
39747         * modules/stat-time-tests (Depends-on): Add sleep.
39748         * tests/test-stat-time.c (force_unlink): New function.
39749         (cleanup): Use it.
39750         (test_mtime): Remove the ctime related tests.
39751         (test_ctime): New function, containing the ctime related tests.
39752         (main): Call test_ctime, except on native Windows platforms.
39753
39754 2008-04-27  Bruno Haible  <bruno@clisp.org>
39755
39756         * lib/rpmatch.c (rpmatch): Add some comments.
39757         Reported by James Youngman <jay@gnu.org>.
39758
39759 2008-04-27  Bruno Haible  <bruno@clisp.org>
39760
39761         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
39762         quiet NaNs.
39763
39764 2008-04-27  Bruno Haible  <bruno@clisp.org>
39765
39766         Make test-yesno.sh work on mingw.
39767         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
39768         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
39769         (main): Set stdin to binary mode.
39770         * modules/yesno-tests (Depends-on): Add binary-io.
39771
39772 2008-04-27  Bruno Haible  <bruno@clisp.org>
39773
39774         Fix 'isfinite' on x86, x86_64, ia64 platforms.
39775         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
39776         argument that lie outside the IEEE 854 domain.
39777         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
39778         (gl_ISFINITE): Use it.
39779         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
39780
39781 2008-04-27  Bruno Haible  <bruno@clisp.org>
39782
39783         Allow local renaming in config.h.
39784         * lib/memrchr.c (memrchr): Don't undefine outside libc.
39785
39786 2008-04-27  Bruno Haible  <bruno@clisp.org>
39787
39788         * lib/memchr.c (__memchr): Change type of 'i'.
39789         * lib/memchr2.c (memchr2): Likewise.
39790
39791 2008-04-26  Eric Blake  <ebb9@byu.net>
39792         and Bruno Haible  <bruno@clisp.org>
39793
39794         Optimize and test memrchr.
39795         * modules/memrchr (Depends-on): Add intprops.
39796         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
39797         * modules/memrchr-tests: New file.
39798         * tests/test-memrchr.c: New file.
39799
39800 2008-04-26  Bruno Haible  <bruno@clisp.org>
39801
39802         Add tentative support for DragonFly BSD.
39803         * lib/stdio-impl.h: Add macros for DragonFly BSD.
39804         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
39805         fp.
39806         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39807         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
39808         * lib/fpurge.c (fpurge): Likewise.
39809         * lib/freadable.c (freaadable): Likewise.
39810         * lib/freadahead.c (freadahead): Likewise.
39811         * lib/freading.c (freading): Likewise.
39812         * lib/freadptr.c (freadptr): Likewise.
39813         * lib/freadseek.c (freadptrinc): Likewise.
39814         * lib/fseeko.c (fseeko): Likewise.
39815         * lib/fseterr.c (fseterr): Likewise.
39816         * lib/fwritable.c (fwritable): Likewise.
39817         * lib/fwriting.c (fwriting): Likewise.
39818
39819 2008-04-26  Bruno Haible  <bruno@clisp.org>
39820
39821         * lib/stdio-impl.h: New file.
39822         * lib/fbufmode.c: Include stdio-impl.h.
39823         (fbufmode): Use fp_, remove redundant #defines.
39824         * lib/fflush.c: Include stdio-impl.h.
39825         (clear_ungetc_buffer): Remove redundant #defines.
39826         * lib/fpurge.c: Include stdio-impl.h.
39827         (fpurge): Remove redundant #defines.
39828         * lib/freadable.c: Include stdio-impl.h.
39829         (freadable): Remove redundant #defines.
39830         * lib/freadahead.c: Include stdio-impl.h.
39831         (freadahead): Remove redundant #defines.
39832         * lib/freading.c: Include stdio-impl.h.
39833         (freading): Remove redundant #defines.
39834         * lib/freadptr.c: Include stdio-impl.h.
39835         (freadptr): Remove redundant #defines.
39836         * lib/freadseek.c: Include stdio-impl.h.
39837         (freadptrinc): Remove redundant #defines.
39838         * lib/fseeko.c: Include stdio-impl.h.
39839         (rpl_fseeko): Remove redundant #defines.
39840         * lib/fseterr.c: Include stdio-impl.h.
39841         (fseterr): Remove redundant #defines.
39842         * lib/fwritable.c: Include stdio-impl.h.
39843         (fwritable: Remove redundant #defines.
39844         * lib/fwriting.c: Include stdio-impl.h.
39845         (fwriting): Remove redundant #defines.
39846         * modules/fbufmode (Files): Add lib/stdio-impl.h.
39847         * modules/fflush (Files): Likewise.
39848         * modules/fpurge (Files): Likewise.
39849         * modules/freadable (Files): Likewise.
39850         * modules/freadahead (Files): Likewise.
39851         * modules/freading (Files): Likewise.
39852         * modules/freadptr (Files): Likewise.
39853         * modules/freadseek (Files): Likewise.
39854         * modules/fseeko (Files): Likewise.
39855         * modules/fseterr (Files): Likewise.
39856         * modules/fwritable (Files): Likewise.
39857         * modules/fwriting (Files): Likewise.
39858
39859 2008-04-26  Bruno Haible  <bruno@clisp.org>
39860
39861         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39862         restore_seek_optimization, update_fpos_cache): New functions, extracted
39863         from rpl_fflush.
39864         (rpl_fflush): Use them.
39865         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
39866         (gl_REPLACE_FFLUSH): Use it.
39867
39868 2008-04-26  Bruno Haible  <bruno@clisp.org>
39869
39870         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
39871         on Solaris.
39872         * tests/test-xstrtoimax.sh: Likewise.
39873         * tests/test-xstrtoumax.sh: Likewise.
39874         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39875
39876 2008-04-26  Bruno Haible  <bruno@clisp.org>
39877
39878         * modules/memchr-tests: New file.
39879         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
39880
39881 2008-04-26  Eric Blake  <ebb9@byu.net>
39882             Bruno Haible  <bruno@clisp.org>
39883
39884         * lib/memchr.c: Include intprops.h.
39885         (__memchr): Optimize parallel detection of matching bytes. Rename local
39886         variables. Add explanatory comments.
39887
39888 2008-04-26  Bruno Haible  <bruno@clisp.org>
39889
39890         Fix module 'memchr', broken since 2000-10-28.
39891         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
39892
39893 2008-04-26  Bruno Haible  <bruno@clisp.org>
39894
39895         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
39896         comments.
39897
39898 2008-04-25  Eric Blake  <ebb9@byu.net>
39899
39900         Use native fstatat on cygwin 1.7.0.
39901         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39902         first.
39903
39904 2008-04-23  Eric Blake  <ebb9@byu.net>
39905
39906         Improve memchr2 performance.
39907         * lib/memchr2.c (memchr2): Further optimize parallel detection of
39908         NUL bytes.
39909         * modules/memchr2 (Depends-on): Use intprops.h.
39910
39911 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39912
39913         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
39914         an inline function instead of a CPP macro.  Patch by Ben Pfaff
39915         <blp@cs.stanford.edu>.
39916
39917 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39918
39919         * lib/arpa_inet.in.h: New file.
39920
39921         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
39922         (Makefile.am): Sed in substitute header file.
39923
39924         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
39925         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
39926
39927         * modules/inet_ntop (configure.ac): Use
39928         gl_ARPA_INET_MODULE_INDICATOR.
39929
39930         * modules/inet_pton (configure.ac): Use
39931         gl_ARPA_INET_MODULE_INDICATOR.
39932
39933 2008-04-22  Jim Meyering  <meyering@redhat.com>
39934
39935         * modules/verify (License): Re-license as LGPLv2+.
39936
39937 2008-04-22  Simon Josefsson  <simon@josefsson.org>
39938
39939         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
39940         parameter to void* as per POSIX standard (MinGW uses char*).
39941
39942 2008-04-21  Bruno Haible  <bruno@clisp.org>
39943
39944         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39945         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39946         Define to replacements if REPLACE_ISWCNTRL is 1.
39947         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
39948         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
39949         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
39950         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
39951         what it fixes.
39952         * doc/posix-functions/iswalpha.texi: Likewise.
39953         * doc/posix-functions/iswblank.texi: Likewise.
39954         * doc/posix-functions/iswcntrl.texi: Likewise.
39955         * doc/posix-functions/iswdigit.texi: Likewise.
39956         * doc/posix-functions/iswgraph.texi: Likewise.
39957         * doc/posix-functions/iswlower.texi: Likewise.
39958         * doc/posix-functions/iswprint.texi: Likewise.
39959         * doc/posix-functions/iswpunct.texi: Likewise.
39960         * doc/posix-functions/iswspace.texi: Likewise.
39961         * doc/posix-functions/iswupper.texi: Likewise.
39962         * doc/posix-functions/iswxdigit.texi: Likewise.
39963         Reported by Alain Guibert.
39964
39965 2008-04-21  Bruno Haible  <bruno@clisp.org>
39966
39967         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
39968         Patch by Alain Guibert.
39969
39970 2008-04-21  Bruno Haible  <bruno@clisp.org>
39971
39972         Fix test failures on mingw.
39973         * tests/test-xstrtol.c (print_no_progname): New function.
39974         (main): Install it in error_print_progname hook.
39975         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
39976         * tests/test-xstrtoimax.sh: Likewise.
39977         * tests/test-xstrtoumax.sh: Likewise.
39978
39979 2008-04-21  Bruno Haible  <bruno@clisp.org>
39980
39981         Fix test failure on mingw.
39982         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
39983
39984 2008-04-21  Bruno Haible  <bruno@clisp.org>
39985
39986         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
39987         Actually assign a value.
39988
39989 2008-04-20  Bruno Haible  <bruno@clisp.org>
39990
39991         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
39992         take 2.
39993         * lib/canonicalize.c (canonicalize_file_name): Elide if the
39994         'canonicalize-lgpl' module is also used.
39995         * lib/canonicalize-lgpl.c: Undo last change.
39996         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
39997
39998 2008-04-20  Bruno Haible  <bruno@clisp.org>
39999
40000         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
40001         config.h. Provide _mkdir based fallback for mingw.
40002         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
40003         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
40004         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
40005         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
40006         rather than defining mkdir in config.h.
40007         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
40008         (gl_SYS_STAT_H_DEFAULTS): New macro.
40009         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
40010         HAVE_IO_H any more.
40011         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
40012         HAVE_DECL_MKDIR and HAVE_IO_H.
40013
40014 2008-04-20  Bruno Haible  <bruno@clisp.org>
40015
40016         * lib/isapipe.c: Port to native Windows platforms.
40017
40018 2008-04-20  Bruno Haible  <bruno@clisp.org>
40019
40020         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
40021
40022 2008-04-21  Eric Blake  <ebb9@byu.net>
40023
40024         Work around preprocessors that don't handle UINTMAX_MAX.
40025         * lib/memchr2.c (memchr2): Avoid embedded #if.
40026         Reported by Alain Guibert, fix suggested by Bruno Haible.
40027
40028 2008-04-21  Simon Josefsson  <simon@josefsson.org>
40029
40030         * doc/posix-functions/strftime.texi (strftime): Explain better
40031         Windows incompatibility.  Suggested by Micah Cowan
40032         <micah@cowan.name>.
40033
40034 2008-04-20  Bruno Haible  <bruno@clisp.org>
40035
40036         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
40037         unistr/u8-mblen.
40038
40039 2008-04-20  Bruno Haible  <bruno@clisp.org>
40040
40041         Fix test failure on platforms with non-GNU iconv.
40042         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
40043         (U_TO_U8): Use it, rather than u16_to_u8.
40044         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
40045         units at the end of the input string.
40046         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
40047
40048 2008-04-20  Bruno Haible  <bruno@clisp.org>
40049
40050         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
40051         when the resulting length is 0.
40052         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
40053
40054 2008-04-20  Bruno Haible  <bruno@clisp.org>
40055
40056         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
40057         works.
40058         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
40059
40060 2008-04-20  Bruno Haible  <bruno@clisp.org>
40061
40062         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
40063         * modules/tsearch-tests (configure.ac): Test for initstate function.
40064
40065 2008-04-20  Bruno Haible  <bruno@clisp.org>
40066
40067         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
40068         for nlink_t if missing.
40069         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
40070
40071 2008-04-19  Bruno Haible  <bruno@clisp.org>
40072
40073         Work around snprintf bug on Linux libc5.
40074         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
40075         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40076         gl_SNPRINTF_SIZE1.
40077         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40078         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
40079         that test failed.
40080         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40081         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
40082         * modules/snprintf (Files): Add m4/printf.m4.
40083         * modules/vsnprintf (Files): Likewise.
40084         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
40085         * doc/posix-functions/vsnprintf.texi: Likewise.
40086
40087 2008-04-19  Bruno Haible  <bruno@clisp.org>
40088
40089         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
40090         from 0.0058 to less than 10^-7.
40091
40092 2008-04-19  Bruno Haible  <bruno@clisp.org>
40093
40094         Fix rounding when a precision is given.
40095         * lib/vasnprintf.c (is_borderline): New function.
40096         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
40097         9...9x.
40098         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
40099         %e, %g.
40100         * tests/test-vasprintf-posix.c (test_function): Likewise.
40101         * tests/test-snprintf-posix.h (test_function): Likewise.
40102         * tests/test-sprintf-posix.h (test_function): Likewise.
40103         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
40104         * tests/test-printf-posix.h (test_function): Likewise.
40105         * tests/test-printf-posix.output: Update.
40106         Reported by John Darrington <john@darrington.wattle.id.au> via
40107         Ben Pfaff <blp@cs.stanford.edu>.
40108
40109 2008-04-18  Simon Josefsson  <simon@josefsson.org>
40110
40111         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
40112         Suggested by Bruno Haible <bruno@clisp.org>.
40113
40114 2008-04-17  Bruno Haible  <bruno@clisp.org>
40115
40116         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
40117         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
40118         implementation.
40119         Patch by Bruce Merry <bmerry@gmail.com>.
40120
40121 2008-04-17  Simon Josefsson  <simon@josefsson.org>
40122
40123         * doc/posix-functions/strftime.texi (strftime): Mention that %e
40124         doesn't work under Windows.
40125
40126 2008-04-16  Bruno Haible  <bruno@clisp.org>
40127
40128         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
40129         New macros.
40130         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
40131         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
40132         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
40133         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
40134         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
40135         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
40136         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
40137         macros.
40138         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
40139         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
40140         Northern Sotho, Uighur.
40141
40142 2008-04-16  Bruno Haible  <bruno@clisp.org>
40143
40144         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
40145         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
40146         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
40147         Reported by Daniel Bergström <daniel@octocode.com>.
40148
40149 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
40150             Bruno Haible  <bruno@clisp.org>
40151
40152         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
40153         function.
40154         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
40155         New functions, mostly extracted from gl_locale_name_default.
40156         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
40157
40158 2008-04-16  Eric Blake  <ebb9@byu.net>
40159
40160         Adjust strtod detection to catch glibc 2.7 bug.
40161         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
40162         Reported by John Gatewood Ham.
40163
40164 2008-04-16  Bruno Haible  <bruno@clisp.org>
40165
40166         Add tentative support for Linux libc5.
40167         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
40168         * lib/fpurge.c (fpurge): Likewise.
40169         * lib/freadable.c (freadable): Likewise.
40170         * lib/freadahead.c (freadahead): Likewise.
40171         * lib/freading.c (freading): Likewise.
40172         * lib/freadptr.c (freadptr): Likewise.
40173         * lib/freadseek.c (freadptrinc): Likewise.
40174         * lib/fseeko.c (rpl_fseeko): Likewise.
40175         * lib/fseterr.c (fseterr): Likewise.
40176         * lib/fwritable.c (fwritable): Likewise.
40177         * lib/fwriting.c (fwriting): Likewise.
40178         Reported by Alain Guibert <alguibert+bts@free.fr>.
40179
40180 2008-04-15  Bruno Haible  <bruno@clisp.org>
40181
40182         * modules/mathl (configure.ac): Define module indicator.
40183
40184 2008-04-15  Bruno Haible  <bruno@clisp.org>
40185
40186         * lib/logl.c (logl): Remove unused variables.
40187
40188 2008-04-15  Bruno Haible  <bruno@clisp.org>
40189
40190         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
40191         fails.
40192
40193 2008-04-15  Bruno Haible  <bruno@clisp.org>
40194
40195         * lib/trim.c (trim2): Fix argument of isspace() macro.
40196
40197 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
40198
40199         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
40200         to 0.
40201         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
40202
40203 2008-04-14  Bruno Haible  <bruno@clisp.org>
40204
40205         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
40206         AC_LANG_PROGRAM argument.
40207         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
40208         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
40209         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40210         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40211         * m4/math_h.m4 (gl_MATH_H): Likewise.
40212         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40213         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40214         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40215         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
40216         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40217         * m4/regex.m4 (gl_REGEX): Likewise.
40218         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
40219         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
40220         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40221         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
40222         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40223         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40224         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40225         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40226
40227 2008-04-14  Jim Meyering  <meyering@redhat.com>
40228
40229         test-strtod: fix typos: s/abs/fabs/
40230         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
40231
40232 2008-04-13  Bruno Haible  <bruno@clisp.org>
40233
40234         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
40235         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
40236         module is also used and while not building the reloc-wrapper.
40237
40238 2008-04-13  Bruno Haible  <bruno@clisp.org>
40239
40240         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
40241
40242 2008-04-13  Bruno Haible  <bruno@clisp.org>
40243
40244         Fix AIX compilation failure introduced on 2008-04-02.
40245         * tests/test-frexp.c (exp): Undefine before redefining.
40246         * tests/test-frexpl.c (exp): Likewise.
40247
40248 2008-04-13  Bruno Haible  <bruno@clisp.org>
40249
40250         Work around a HP-UX stdio bug.
40251         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
40252         * tests/test-ftello.c (main): Likewise.
40253         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
40254         * doc/posix-functions/ftello.texi: Likewise.
40255
40256 2008-04-13  Bruno Haible  <bruno@clisp.org>
40257
40258         Make test-signbit pass on HP-UX/hppa.
40259         * tests/test-signbit.c (minus_zerol): New variable.
40260         (test_signbitl): Use it.
40261
40262 2008-04-13  Bruno Haible  <bruno@clisp.org>
40263
40264         Make truncl work on OSF/1 4.0.
40265         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
40266         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40267         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
40269         HAVE_DECL_TRUNCL.
40270         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
40271         HAVE_DECL_TRUNCL.
40272         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
40273
40274 2008-04-13  Bruno Haible  <bruno@clisp.org>
40275
40276         * lib/unictype.h: Remove trailing comma from enumeration definitions.
40277
40278 2008-04-13  Bruno Haible  <bruno@clisp.org>
40279
40280         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
40281         expression, so as to avoid HP-UX 11 cc compiler bug.
40282
40283 2008-04-13  Bruno Haible  <bruno@clisp.org>
40284
40285         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
40286
40287 2008-04-13  Bruno Haible  <bruno@clisp.org>
40288
40289         * lib/git-merge-changelog.c: Remove empty declaration outside of
40290         functions.
40291
40292 2008-04-13  Bruno Haible  <bruno@clisp.org>
40293
40294         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
40295
40296 2008-04-13  Bruno Haible  <bruno@clisp.org>
40297
40298         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
40299         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
40300         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
40301         also if it exists but lacks definitions of the SHUT_* macros.
40302         * modules/sys_socket (Description): Update.
40303         Reported by Elbert Pol <e.pol@chello.nl>.
40304
40305 2008-04-13  Bruno Haible  <bruno@clisp.org>
40306
40307         * lib/localcharset.c (OS2): Don't redefine if already defined.
40308         Reported by Elbert Pol <e.pol@chello.nl>.
40309
40310 2008-04-13  Bruno Haible  <bruno@clisp.org>
40311
40312         * lib/binary-io.h [__EMX__]: Include <io.h>.
40313         Reported by Elbert Pol <e.pol@chello.nl>.
40314
40315 2008-04-12  Bruno Haible  <bruno@clisp.org>
40316
40317         * lib/fpucw.h: Enable the definitions also for x86_64.
40318         Needed for NetBSD/x86_64.
40319         Reported by Thomas Klausner <tk@giga.or.at>.
40320
40321 2008-04-12  Bruno Haible  <bruno@clisp.org>
40322
40323         * tests/test-strtod.c: Include isnand.h.
40324         (main): Use isnand instead of isnan.
40325         Reported by Jim Meyering.
40326
40327 2008-04-12  Bruno Haible  <bruno@clisp.org>
40328
40329         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
40330         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40331
40332 2008-04-12  Jim Meyering  <meyering@redhat.com>
40333
40334         * m4/math_h.m4 (gl_MATH_H): Fix typos.
40335
40336 2008-04-12  Bruno Haible  <bruno@clisp.org>
40337
40338         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
40339         Reported by Elbert Pol <e.pol@chello.nl>.
40340
40341 2008-04-12  Eric Blake  <ebb9@byu.net>
40342
40343         Work around Solaris 10 math.h bug.
40344         * m4/math_h.m4 (gl_MATH_H): Check for bug.
40345         (gl_MATH_H_DEFAULTS): Set up default.
40346         * modules/math (Makefile.am): Replace new indicators.
40347         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
40348         * tests/test-math.c (main): Test this.
40349         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
40350         * doc/posix-headers/math.texi (math.h): Mention bug.
40351         Reported by Nelson H. F. Beebe and Jim Meyering.
40352
40353 2008-04-11  Bruno Haible  <bruno@clisp.org>
40354
40355         Adapt to future versions of Apple GCC.
40356         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
40357         Reported by Peter O'Gorman <peter@pogma.com>.
40358
40359 2008-04-11  Bruno Haible  <bruno@clisp.org>
40360
40361         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
40362
40363 2008-04-11  Bruno Haible  <bruno@clisp.org>
40364
40365         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
40366
40367         * modules/getaddrinfo-tests (Makefile.am): Define
40368         test_getaddrinfo_LDADD.
40369
40370 2008-04-11  Bruno Haible  <bruno@clisp.org>
40371
40372         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
40373         (init): Fix syntax error.
40374         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
40375         is declared.
40376
40377 2008-04-11  Bruno Haible  <bruno@clisp.org>
40378
40379         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
40380         * modules/glob (Depends-on): Add stdbool.
40381
40382 2008-04-11  Bruno Haible  <bruno@clisp.org>
40383
40384         * lib/trim.c: Include <string.h>.
40385
40386 2008-04-11  Eric Blake  <ebb9@byu.net>
40387
40388         Avoid compile failure on OS/2.
40389         * lib/regex_internal.h (internal_function): Disable optimization
40390         on OS/2 (__EMX__), where it caused compiler error.
40391         Reported by Elbert Pol.
40392
40393 2008-04-11  Bruno Haible  <bruno@clisp.org>
40394
40395         Flush the standard error stream before aborting. Needed on mingw.
40396         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
40397         * tests/test-array_list.c (ASSERT): Likewise.
40398         * tests/test-array_oset.c (ASSERT): Likewise.
40399         * tests/test-avltree_list.c (ASSERT): Likewise.
40400         * tests/test-avltree_oset.c (ASSERT): Likewise.
40401         * tests/test-avltreehash_list.c (ASSERT): Likewise.
40402         * tests/test-binary-io.c (ASSERT): Likewise.
40403         * tests/test-byteswap.c (ASSERT): Likewise.
40404         * tests/test-c-ctype.c (ASSERT): Likewise.
40405         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
40406         * tests/test-c-strcasestr.c (ASSERT): Likewise.
40407         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
40408         * tests/test-c-strstr.c (ASSERT): Likewise.
40409         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
40410         * tests/test-canonicalize.c (ASSERT): Likewise.
40411         * tests/test-carray_list.c (ASSERT): Likewise.
40412         * tests/test-ceilf1.c (ASSERT): Likewise.
40413         * tests/test-ceilf2.c (ASSERT): Likewise.
40414         * tests/test-ceill.c (ASSERT): Likewise.
40415         * tests/test-count-one-bits.c (ASSERT): Likewise.
40416         * tests/test-fbufmode.c (ASSERT): Likewise.
40417         * tests/test-fflush2.c (ASSERT): Likewise.
40418         * tests/test-floorf1.c (ASSERT): Likewise.
40419         * tests/test-floorf2.c (ASSERT): Likewise.
40420         * tests/test-floorl.c (ASSERT): Likewise.
40421         * tests/test-fopen.c (ASSERT): Likewise.
40422         * tests/test-fpending.c (ASSERT): Likewise.
40423         * tests/test-fprintf-posix.c (ASSERT): Likewise.
40424         * tests/test-fpurge.c (ASSERT): Likewise.
40425         * tests/test-freadable.c (ASSERT): Likewise.
40426         * tests/test-freadahead.c (ASSERT): Likewise.
40427         * tests/test-freading.c (ASSERT): Likewise.
40428         * tests/test-freadptr.c (ASSERT): Likewise.
40429         * tests/test-freadptr2.c (ASSERT): Likewise.
40430         * tests/test-freadseek.c (ASSERT): Likewise.
40431         * tests/test-freopen.c (ASSERT): Likewise.
40432         * tests/test-frexp.c (ASSERT): Likewise.
40433         * tests/test-frexpl.c (ASSERT): Likewise.
40434         * tests/test-fseek.c (ASSERT): Likewise.
40435         * tests/test-fseeko.c (ASSERT): Likewise.
40436         * tests/test-fstrcmp.c (ASSERT): Likewise.
40437         * tests/test-ftell.c (ASSERT): Likewise.
40438         * tests/test-ftello.c (ASSERT): Likewise.
40439         * tests/test-func.c (ASSERT): Likewise.
40440         * tests/test-fwritable.c (ASSERT): Likewise.
40441         * tests/test-fwriting.c (ASSERT): Likewise.
40442         * tests/test-getdelim.c (ASSERT): Likewise.
40443         * tests/test-getline.c (ASSERT): Likewise.
40444         * tests/test-i-ring.c (ASSERT): Likewise.
40445         * tests/test-iconv-utf.c (ASSERT): Likewise.
40446         * tests/test-iconv.c (ASSERT): Likewise.
40447         * tests/test-isfinite.c (ASSERT): Likewise.
40448         * tests/test-isnand.c (ASSERT): Likewise.
40449         * tests/test-isnanf.c (ASSERT): Likewise.
40450         * tests/test-isnanl.h (ASSERT): Likewise.
40451         * tests/test-ldexpl.c (ASSERT): Likewise.
40452         * tests/test-linked_list.c (ASSERT): Likewise.
40453         * tests/test-linkedhash_list.c (ASSERT): Likewise.
40454         * tests/test-localename.c (ASSERT): Likewise.
40455         * tests/test-lseek.c (ASSERT): Likewise.
40456         * tests/test-mbscasecmp.c (ASSERT): Likewise.
40457         * tests/test-mbscasestr1.c (ASSERT): Likewise.
40458         * tests/test-mbscasestr2.c (ASSERT): Likewise.
40459         * tests/test-mbscasestr3.c (ASSERT): Likewise.
40460         * tests/test-mbscasestr4.c (ASSERT): Likewise.
40461         * tests/test-mbschr.c (ASSERT): Likewise.
40462         * tests/test-mbscspn.c (ASSERT): Likewise.
40463         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
40464         * tests/test-mbspbrk.c (ASSERT): Likewise.
40465         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
40466         * tests/test-mbsrchr.c (ASSERT): Likewise.
40467         * tests/test-mbsspn.c (ASSERT): Likewise.
40468         * tests/test-mbsstr1.c (ASSERT): Likewise.
40469         * tests/test-mbsstr2.c (ASSERT): Likewise.
40470         * tests/test-mbsstr3.c (ASSERT): Likewise.
40471         * tests/test-memchr2.c (ASSERT): Likewise.
40472         * tests/test-memmem.c (ASSERT): Likewise.
40473         * tests/test-open.c (ASSERT): Likewise.
40474         * tests/test-printf-frexp.c (ASSERT): Likewise.
40475         * tests/test-printf-frexpl.c (ASSERT): Likewise.
40476         * tests/test-printf-posix.c (ASSERT): Likewise.
40477         * tests/test-quotearg.c (ASSERT): Likewise.
40478         * tests/test-rbtree_list.c (ASSERT): Likewise.
40479         * tests/test-rbtree_oset.c (ASSERT): Likewise.
40480         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
40481         * tests/test-round1.c (ASSERT): Likewise.
40482         * tests/test-roundf1.c (ASSERT): Likewise.
40483         * tests/test-roundl.c (ASSERT): Likewise.
40484         * tests/test-signbit.c (ASSERT): Likewise.
40485         * tests/test-sleep.c (ASSERT): Likewise.
40486         * tests/test-snprintf-posix.c (ASSERT): Likewise.
40487         * tests/test-snprintf.c (ASSERT): Likewise.
40488         * tests/test-sprintf-posix.c (ASSERT): Likewise.
40489         * tests/test-stat-time.c (ASSERT): Likewise.
40490         * tests/test-strcasestr.c (ASSERT): Likewise.
40491         * tests/test-strerror.c (ASSERT): Likewise.
40492         * tests/test-striconv.c (ASSERT): Likewise.
40493         * tests/test-striconveh.c (ASSERT): Likewise.
40494         * tests/test-striconveha.c (ASSERT): Likewise.
40495         * tests/test-strsignal.c (ASSERT): Likewise.
40496         * tests/test-strstr.c (ASSERT): Likewise.
40497         * tests/test-strtod.c (ASSERT): Likewise.
40498         * tests/test-trunc1.c (ASSERT): Likewise.
40499         * tests/test-trunc2.c (ASSERT): Likewise.
40500         * tests/test-truncf1.c (ASSERT): Likewise.
40501         * tests/test-truncf2.c (ASSERT): Likewise.
40502         * tests/test-truncl.c (ASSERT): Likewise.
40503         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
40504         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
40505         * tests/test-vasnprintf.c (ASSERT): Likewise.
40506         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
40507         * tests/test-vasprintf.c (ASSERT): Likewise.
40508         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
40509         * tests/test-vprintf-posix.c (ASSERT): Likewise.
40510         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
40511         * tests/test-vsnprintf.c (ASSERT): Likewise.
40512         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
40513         * tests/test-wcwidth.c (ASSERT): Likewise.
40514         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
40515         * tests/test-xprintf-posix.c (ASSERT): Likewise.
40516         * tests/test-xvasprintf.c (ASSERT): Likewise.
40517         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
40518         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
40519         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
40520         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
40521         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
40522         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
40523         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
40524         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
40525         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
40526         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
40527         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
40528         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
40529         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
40530         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
40531         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
40532         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
40533         * tests/unictype/test-block_list.c (ASSERT): Likewise.
40534         * tests/unictype/test-block_of.c (ASSERT): Likewise.
40535         * tests/unictype/test-block_test.c (ASSERT): Likewise.
40536         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
40537         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
40538         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
40539         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
40540         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
40541         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
40542         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
40543         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
40544         * tests/unictype/test-combining.c (ASSERT): Likewise.
40545         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
40546         * tests/unictype/test-digit.c (ASSERT): Likewise.
40547         * tests/unictype/test-mirror.c (ASSERT): Likewise.
40548         * tests/unictype/test-numeric.c (ASSERT): Likewise.
40549         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
40550         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
40551         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
40552         * tests/unictype/test-scripts.c (ASSERT): Likewise.
40553         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
40554         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
40555         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
40556         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
40557         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
40558         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
40559         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
40560         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
40561         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
40562         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
40563         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
40564         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
40565         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
40566         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
40567         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
40568         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
40569         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
40570         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
40571         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
40572         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
40573         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
40574         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
40575         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
40576         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
40577         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
40578         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
40579         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
40580         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
40581         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
40582         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
40583         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
40584         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
40585         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
40586         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
40587         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
40588         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
40589         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
40590         Reported by Eric Blake.
40591
40592 2008-04-11  Bruno Haible  <bruno@clisp.org>
40593
40594         * lib/wchar.in.h: Tweak comment.
40595
40596 2008-04-11  Bruno Haible  <bruno@clisp.org>
40597
40598         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
40599         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
40600         gl_COMMON.
40601         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
40602
40603 2008-04-11  Bruno Haible  <bruno@clisp.org>
40604
40605         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
40606
40607 2008-04-11  Simon Josefsson  <simon@josefsson.org>
40608
40609         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
40610         of attempting to use non-existing /dev/*random.  Based on patch
40611         from Adam Strzelecki <ono@java.pl> in
40612         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
40613
40614 2008-04-08  Bruno Haible  <bruno@clisp.org>
40615
40616         Add tentative support for emx+gcc.
40617         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
40618         * lib/fpurge.c (fpurge): Likewise.
40619         * lib/freadable.c (freadable): Likewise.
40620         * lib/freadahead.c (freadahead): Likewise.
40621         * lib/freading.c (freading): Likewise.
40622         * lib/freadptr.c (freadptr): Likewise.
40623         * lib/freadseek.c (freadptrinc): Likewise.
40624         * lib/fseeko.c (rpl_fseeko): Likewise.
40625         * lib/fseterr.c (fseterr): Likewise.
40626         * lib/fwritable.c (fwritable): Likewise.
40627         * lib/fwriting.c (fwriting): Likewise.
40628         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
40629
40630 2008-04-09  Eric Blake  <ebb9@byu.net>
40631
40632         Avoid some autoconf warnings.
40633         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
40634         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
40635         * m4/afs.m4 (gl_AFS): Likewise.
40636         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
40637         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
40638         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40639         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
40640         (gl_INTEGER_TYPE_SUFFIX): Likewise.
40641         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
40642         (AC_CHECK_DECLS_ONCE): Likewise.
40643         Rename file...
40644         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
40645         gnulib-tool requires autoconf 2.59 or better.
40646         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
40647
40648 2008-04-08  Eric Blake  <ebb9@byu.net>
40649
40650         Use 'git describe --match' if present (added in git 1.5.5).
40651         * build-aux/git-version-gen: Limit result to tags that match 'v*'
40652         if possible.
40653
40654 2008-04-08  Bruno Haible  <bruno@clisp.org>
40655
40656         Add tentative support for OpenServer.
40657         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
40658         _ptr, _cnt.
40659         * lib/fpurge.c (fpurge): Likewise.
40660         * lib/freadable.c (freadable): Likewise.
40661         * lib/freadahead.c (freadahead): Likewise.
40662         * lib/freading.c (freading): Likewise.
40663         * lib/freadptr.c (freadptr): Likewise.
40664         * lib/freadseek.c (freadptrinc): Likewise.
40665         * lib/fseeko.c (rpl_fseeko): Likewise.
40666         * lib/fseterr.c (fseterr): Likewise.
40667         * lib/fwritable.c (fwritable): Likewise.
40668         * lib/fwriting.c (fwriting): Likewise.
40669         Reported by Roger Cornelius <rac@tenzing.org> and
40670         Brian K. White <brian@aljex.com>.
40671
40672 2008-04-06  Jim Meyering  <meyering@redhat.com>
40673
40674         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
40675
40676 2008-04-06  Bruno Haible  <bruno@clisp.org>
40677
40678         Avoid possible error with non-ASCII bytes in UTF-8 locales.
40679         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
40680         * tests/test-printf-posix.sh: Likewise.
40681         * tests/test-vfprintf-posix.sh: Likewise.
40682         * tests/test-vprintf-posix.sh: Likewise.
40683         * tests/test-xprintf-posix.sh: Likewise.
40684
40685 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40686
40687         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
40688         hide error from 'ls', needed on OS/2.
40689         Report by Elbert Pol <elbert.pol@gmail.com>.
40690
40691 2008-04-04  Eric Blake  <ebb9@byu.net>
40692
40693         Make test-fseeko.c failures meaningful.
40694         * tests/test-fseeko.c: Print line number on failure.
40695         * tests/test-fseek.c: Likewise.
40696         Reported by Nelson H. F. Beebe.
40697
40698         Improve strtod bug detection check.
40699         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
40700         required for Solaris 10.
40701         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
40702
40703 2008-04-04  Bruno Haible  <bruno@clisp.org>
40704
40705         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
40706         by m4/setenv.m4.
40707
40708 2008-04-03  Eric Blake  <ebb9@byu.net>
40709
40710         Ensure sane .version contents.
40711         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
40712         version string.
40713         * build-aux/git-version-gen: Improve documentation.
40714
40715         Make GNU make output nicer.
40716         * top/GNUmakefile [!_have-Makefile]: Add dependency on
40717         MAKECMDGOALS to enforce message for all command line targets.  Set
40718         srcdir for use in maint.mk.
40719
40720         Another maintainer tweak.
40721         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
40722         a target that regenerates version.
40723
40724 2008-04-03  Jim Meyering  <meyering@redhat.com>
40725
40726         vc-list-files: don't cause coreutils "make po-check" failure
40727         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
40728
40729 2008-04-03  Eric Blake  <ebb9@byu.net>
40730
40731         Allow VPATH usage of vc-list-files.
40732         * build-aux/vc-list-files (scriptversion): Add timestamp.
40733         (options): Add --help, --version, -C.
40734         (CVS): Support installed cvsu.
40735
40736 2008-04-02  Bruno Haible  <bruno@clisp.org>
40737
40738         Avoid some "statement with no effect" warnings from gcc.
40739         * tests/test-wctype.c (main): Explicitly ignore unused values.
40740         Reported by Jim Meyering.
40741
40742 2008-04-02  Jim Meyering  <meyering@redhat.com>
40743
40744         Avoid some warnings from "gcc -Wshadow".
40745         * tests/test-frexp.c (exp): Define to a different identifier.
40746         * tests/test-frexpl.c (exp): Likewise.
40747
40748 2008-04-03  Jim Meyering  <meyering@redhat.com>
40749
40750         bootstrap: remove dangling *.[ch] symlinks from lib
40751         * build-aux/bootstrap [dangling symlink removal]: Move find's
40752         -depth option to precede all others, to avoid a warning.
40753         Remove *.[ch] files too, and from "$source_base" (usually lib/).
40754
40755 2008-04-02  Bruno Haible  <bruno@clisp.org>
40756
40757         Avoid some warnings from "gcc -Wshadow".
40758         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
40759         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
40760         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
40761         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
40762         Reported by Jim Meyering.
40763
40764 2008-04-01  Bruno Haible  <bruno@clisp.org>
40765
40766         Fix test to work on IRIX 6.5 with cc.
40767         * tests/test-math.c (numeric_equal): New function.
40768         (main): Use it.
40769
40770 2008-04-01  Bruno Haible  <bruno@clisp.org>
40771
40772         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
40773
40774 2008-04-01  Bruno Haible  <bruno@clisp.org>
40775
40776         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
40777         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40778         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
40779         (Depends-on): Remove math.
40780
40781         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
40782         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40783         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
40784         (Depends-on): Remove math.
40785
40786         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
40787         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40788         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
40789         (Depends-on): Remove math.
40790         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
40791         (Depends-on): Remove math.
40792
40793         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
40794         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40795         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
40796         (Depends-on): Remove math.
40797         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
40798         (Depends-on): Remove math.
40799
40800         * tests/test-round1.c: Include nan.h.
40801         (main): Use NaNd instead of NAN.
40802         * modules/round-tests (Files): Add tests/nan.h.
40803
40804         * tests/test-trunc1.c: Include nan.h.
40805         (main): Use NaNd instead of NAN.
40806         * modules/trunc-tests (Files): Add tests/nan.h.
40807
40808         * tests/test-roundf1.c: Include nan.h.
40809         (main): Use NaNf instead of NAN.
40810         * modules/roundf-tests (Files): Add tests/nan.h.
40811
40812         * tests/test-truncf1.c: Include nan.h.
40813         (main): Use NaNf instead of NAN.
40814         * modules/truncf-tests (Files): Add tests/nan.h.
40815
40816         * tests/test-ceilf1.c: Include nan.h.
40817         (main): Use NaNf instead of NAN.
40818         * modules/ceilf-tests (Files): Add tests/nan.h.
40819
40820         * tests/test-floorf1.c: Include nan.h.
40821         (main): Use NaNf instead of NAN.
40822         * modules/floorf-tests (Files): Add tests/nan.h.
40823
40824         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
40825         (main): Use NaNf instead of NAN.
40826         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
40827
40828         * tests/test-isnand.c: Include nan.h instead of <math.h>.
40829         (main): Use NaNd instead of NAN.
40830         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
40831
40832         * tests/test-frexp.c: Include nan.h.
40833         (main): Use NaNd instead of NAN.
40834         * modules/frexp-tests (Files): Add tests/nan.h.
40835
40836         * lib/isnan.c: Don't include <math.h>.
40837         (FUNC): Don't use NAN macro.
40838         * modules/isnand-nolibm (Depends-on): Remove math.
40839         * modules/isnanf-nolibm (Depends-on): Remove math.
40840         * modules/isnanl (Depends-on): Remove math.
40841         * modules/isnanl-nolibm (Depends-on): Remove math.
40842
40843         * tests/nan.h: New file.
40844
40845 2008-04-01  Eric Blake  <ebb9@byu.net>
40846
40847         Fix typos.
40848         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
40849         values to be the right type.
40850
40851         For now, cater to gnulib strtod inaccuracies.
40852         * tests/test-strtod.c (main): Allow 1-ulp error on expected
40853         fractional results.  While not as nice from a QoI perspective, it
40854         is a quicker patch than correctly implementing decimal to binary
40855         rounding.
40856
40857 2008-03-31  Eric Blake  <ebb9@byu.net>
40858
40859         Guarantee a definition of NAN.
40860         * lib/math.in.h (NAN): Define if missing.
40861         * tests/test-math.c (main): Test it.
40862         * doc/posix-headers/math.texi (math.h): Document this.
40863         * lib/isnan.c (rpl_isnand): Use it.
40864         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
40865         * tests/test-floorf1.c (NaN): Likewise.
40866         * tests/test-frexp.c (NaN): Likewise.
40867         * tests/test-isnand.c (NaN): Likewise.
40868         * tests/test-isnanf.c (NaN): Likewise.
40869         * tests/test-round1.c (NaN): Likewise.
40870         * tests/test-roundf1.c (NaN): Likewise.
40871         * tests/test-snprintf-posix.h (NaN): Likewise.
40872         * tests/test-sprintf-posix.h (NaN): Likewise.
40873         * tests/test-trunc1.c (NaN): Likewise.
40874         * tests/test-truncf1.c (NaN): Likewise.
40875         * tests/test-vasnprintf-posix.c (NaN): Likewise.
40876         * tests/test-vasprintf-posix.c (NaN): Likewise.
40877         * modules/isnand-nolibm (Depends-on): Add math.
40878         * modules/isnanf-nolibm (Depends-on): Likewise.
40879         * modules/isnanl (Depends-on): Likewise.
40880         * modules/isnanl-nolibm (Depends-on): Likewise.
40881         * modules/snprintf-posix-tests (Depends-on): Likewise.
40882         * modules/sprintf-posix-tests (Depends-on): Likewise.
40883         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
40884         * modules/vsprintf-posix-tests (Depends-on): Likewise.
40885         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
40886         * modules/vasprintf-posix-tests (Depends-on): Likewise.
40887
40888 2008-03-31  Bruno Haible  <bruno@clisp.org>
40889
40890         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
40891         * doc/posix-functions/strtod.texi: Likewise.
40892
40893 2008-03-31  Bruno Haible  <bruno@clisp.org>
40894
40895         * tests/test-strtod.c (main): Don't use C99 syntax.
40896
40897 2008-03-31  Bruno Haible  <bruno@clisp.org>
40898
40899         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40900         Reported by Eric Blake.
40901
40902 2008-03-31  Jim Meyering  <meyering@redhat.com>
40903
40904         Don't compare actual signbit return values.
40905         * tests/test-strtod.c (main): Rather, compare only their
40906         zero/non-zero nature.
40907
40908 2008-03-31  Eric Blake  <ebb9@byu.net>
40909
40910         More strtod documentation.
40911         * doc/posix-functions/strtod.texi (strtod): Interpret more test
40912         failures as distinct bugs.
40913
40914 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40915
40916         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
40917         Problem reported by Erik Benada in
40918         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
40919
40920 2008-03-30  Bruno Haible  <bruno@clisp.org>
40921
40922         * tests/test-strtod.c: Add comments about which assertion fails on which
40923         platform.
40924         * doc/posix-functions/strtod.texi: Add info about many more platforms.
40925
40926 2008-03-30  Eric Blake  <ebb9@byu.net>
40927
40928         Test signbit behavior on zeros.
40929         * tests/test-signbit.c (test_signbitf): Add tests for zero.
40930         (test_signbitd, test_signbitl): Likewise.
40931
40932         More strtod touchups.
40933         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
40934         sign of negative underflow, for now.  Use .5, not .1.
40935         * doc/posix-functions/strtod.texi (strtod): Mention these
40936         limitations.
40937         Reported by Jim Meyering.
40938
40939 2008-03-30  Bruno Haible  <bruno@clisp.org>
40940
40941         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
40942         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
40943
40944 2008-03-30  Bruno Haible  <bruno@clisp.org>
40945
40946         Avoid failure when attempting to return empty iconv results on some
40947         platforms.
40948         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
40949         allocation, don't report ENOMEM when the resulting string is empty.
40950
40951 2008-03-30  Bruno Haible  <bruno@clisp.org>
40952
40953         Fix buffer overrun.
40954         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
40955         Don't consider the width for tmp_length. Check count against tmp_length
40956         before doing the padding. Ensure enough allocation during padding.
40957
40958 2008-03-30  Eric Blake  <ebb9@byu.net>
40959
40960         strtod touchups.
40961         * lib/strtod.c (strtod): Avoid compiler warnings.
40962         Reported by Jim Meyering.
40963
40964 2008-03-30  Bruno Haible  <bruno@clisp.org>
40965
40966         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
40967         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
40968         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
40969         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
40970         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
40971         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
40972         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
40973         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
40974
40975         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
40976         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
40977         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
40978         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
40979         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
40980         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
40981         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
40982         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
40983
40984         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
40985         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
40986         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
40987         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
40988         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
40989         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
40990         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
40991         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
40992
40993         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
40994         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
40995
40996         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
40997         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
40998
40999         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
41000         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
41001
41002         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
41003         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
41004         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
41005
41006         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
41007         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
41008         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
41009
41010         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
41011         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
41012         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
41013
41014         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
41015         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
41016         * modules/vasprintf (Depends-on): Add EOVERFLOW.
41017
41018         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
41019         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
41020         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
41021         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
41022         (Depends-on): Add EOVERFLOW.
41023         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
41024         (Depends-on): Add EOVERFLOW.
41025         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41026         (Depends-on): Add EOVERFLOW.
41027         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41028         (Depends-on): Add EOVERFLOW.
41029         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41030         (Depends-on): Add EOVERFLOW.
41031         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41032         (Depends-on): Add EOVERFLOW.
41033         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41034         (Depends-on): Add EOVERFLOW.
41035         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41036         (Depends-on): Add EOVERFLOW.
41037
41038         * lib/sprintf.c (EOVERFLOW): Remove fallback.
41039         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
41040         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
41041
41042         * lib/snprintf.c (EOVERFLOW): Remove fallback.
41043         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
41044         * modules/snprintf (Depends-on): Add EOVERFLOW.
41045
41046         * lib/poll.c (EOVERFLOW): Remove fallback.
41047         * modules/poll (Depends-on): Add EOVERFLOW.
41048
41049         * lib/getugroups.c (EOVERFLOW): Remove fallback.
41050         * modules/getugroups (Depends-on): Add EOVERFLOW.
41051
41052         * lib/getdelim.c (EOVERFLOW): Remove fallback.
41053         * modules/getdelim (Depends-on): Add EOVERFLOW.
41054
41055         * lib/ftell.c (EOVERFLOW): Remove fallback.
41056         * modules/ftell (Depends-on): Add EOVERFLOW.
41057
41058         * lib/fprintf.c (EOVERFLOW): Remove fallback.
41059         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
41060         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
41061
41062         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
41063
41064         * modules/EOVERFLOW-tests: New file.
41065         * tests/test-EOVERFLOW.c: New file.
41066
41067         * modules/EOVERFLOW: New file.
41068         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
41069
41070 2008-03-30  Bruno Haible  <bruno@clisp.org>
41071
41072         Fix bug introduced on 2007-06-10.
41073         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
41074         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
41075
41076 2008-03-30  Bruno Haible  <bruno@clisp.org>
41077
41078         Improve freadseek's efficiency after ungetc.
41079         * lib/freadseek.c: Include freadahead.h.
41080         (freadptrinc): New function, extracted from freadseek.
41081         (freadseek): Use it in a loop. Use freadahead to determine the number
41082         of loop iterations.
41083         * modules/freadseek (Depends-on): Add freadahead.
41084         (configure.ac): Require AC_C_INLINE.
41085
41086 2008-03-30  Bruno Haible  <bruno@clisp.org>
41087
41088         * lib/freadseek.c (freadseek): Don't ignore the return value of
41089         freadptr.
41090
41091 2008-03-29  Eric Blake  <ebb9@byu.net>
41092
41093         Add hex float support.
41094         * modules/strtod (Depends-on): Add c-ctype.
41095         (Link): Mention POW_LIB.
41096         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
41097         whitespace between 'e' and exponent.
41098         * tests/test-strtod.c (main): Enable hex float tests.
41099         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
41100         now provides.
41101
41102         Document various strtod bugs, with some fixes.
41103         * doc/posix-functions/strtod.texi (strtod): Document bugs with
41104         "-0x", "inf", "nan", and hex constants.
41105         * doc/posix-functions/atof.texi (atof): Likewise.
41106         * modules/stdlib (Makefile.am): Support strtod.
41107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41108         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
41109         detect additional strtod bugs.
41110         * lib/stdlib.in.h (rpl_strtod): Add declarations.
41111         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
41112         bool where appropriate.  Parse 'inf' and 'nan'.
41113         * tests/test-strtod.c: New file.
41114         * modules/strtod (Depends-on): Add stdbool, stdlib.
41115         (configure.ac): Turn on module indicator.
41116         * modules/strtod-tests: New module.
41117
41118 2008-03-29  Eric Blake  <ebb9@byu.net>
41119
41120         Fix ftell on mingw.
41121         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
41122         * modules/ftell-tests (Depends-on): Add binary-io.
41123         * modules/ftello-tests (Depends-on): Likewise.
41124         * tests/test-ftell.c (main): Enhance test to cover behavior after
41125         ungetc.  Enforce binary mode.
41126         * tests/test-ftello.c (main): Likewise.
41127
41128         Pass test-freadseek on cygwin.
41129         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
41130         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
41131         ungetc buffer.
41132
41133         * tests/test-fflush2.c (main): Fix typo.
41134
41135 2008-03-29  Bruno Haible  <bruno@clisp.org>
41136
41137         * tests/test-fflush2.c (main): Temporarily disable the contents of
41138         this test.
41139         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
41140         Reported by Eric Blake.
41141
41142 2008-03-28  Simon Josefsson  <simon@josefsson.org>
41143
41144         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
41145         (GC_SHA224_DIGEST_SIZE): Add.
41146
41147         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
41148         (gc_hash_digest_length): Likewise.
41149         (gc_hash_buffer): Likewise.
41150
41151 2008-03-25  Bruno Haible  <bruno@clisp.org>
41152
41153         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
41154         detail which gettext release to use.
41155         Reported by Simon Josefsson.
41156
41157 2008-03-26  Jim Meyering  <meyering@redhat.com>
41158
41159         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
41160         * modules/gnumakefile (clean-GNUmakefile): Also, use
41161         test ... && ... || : syntax rather than if-then ... fi.
41162
41163         gnumakefile: Don't double-quote-expand $(VPATH) value.
41164         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
41165
41166 2008-03-24  Eric Blake  <ebb9@byu.net>
41167
41168         Alter GNUmakefile to install into top directory.
41169         * modules/maintainer-makefile: Split, and add dependency...
41170         * modules/gnumakefile: to this new module.
41171         * build-aux/GNUmakefile: Move...
41172         * top/GNUmakefile: ...here.
41173         * build-aux/maint.mk: Move...
41174         * top/maint.mk: ...here.
41175         * MODULES.html.sh (Support for maintaining...): Document new
41176         module.
41177
41178 2008-03-23  Bruno Haible  <bruno@clisp.org>
41179
41180         * gnulib-tool: New options --vc-files, --no-vc-files.
41181         (func_usage): Document them.
41182         (vc_files): New variable.
41183         (func_import): Consider vc_files.
41184         (func_create_testdir): Set vc_files to empty.
41185         Suggested by Jim Meyering and Karl Berry.
41186
41187 2008-03-23  Bruno Haible  <bruno@clisp.org>
41188
41189         Fix regex compilation error on HP-UX 11.
41190         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
41191         * modules/regex (Files): Add m4/mbstate_t.m4.
41192         Reported by Ton Voon <ton.voon@altinity.com>.
41193
41194 2008-03-23  Bruno Haible  <bruno@clisp.org>
41195
41196         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
41197
41198 2008-03-23  Eric Blake  <ebb9@byu.net>
41199             Bruno Haible  <bruno@clisp.org>
41200
41201         Install files from top/ in the destination directory.
41202         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41203         augmentation also for the files from top/.
41204         (func_import, func_create_testdir): Rewrite file names:
41205         top/filename -> filename.
41206
41207 2008-03-23  Bruno Haible  <bruno@clisp.org>
41208
41209         Tweak "gnulib --version" output.
41210         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
41211
41212 2008-03-23  Bruno Haible  <bruno@clisp.org>
41213
41214         Tweak "gnulib --version" output.
41215         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
41216         rather than contents of ChangeLog, when possible.
41217
41218 2008-03-21  Eric Blake  <ebb9@byu.net>
41219
41220         More --version tweaks.
41221         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
41222         date of last ChangeLog entry.
41223
41224 2008-03-21  Jim Meyering  <meyering@redhat.com>
41225
41226         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
41227
41228 2008-03-20  Eric Blake  <ebb9@byu.net>
41229
41230         VPATH fix.
41231         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
41232
41233 2008-03-20  Simon Josefsson  <simon@josefsson.org>
41234
41235         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
41236         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
41237
41238 2008-03-20  Eric Blake  <ebb9@byu.net>
41239
41240         Sync GNUmakefile with coreutils.
41241         * build-aux/GNUmakefile (have-Makefile): Rename...
41242         (_have-Makefile): ...to this, for namespace consideration.
41243         (GNUmakefile.cfg): Include, if present.
41244         (_autoreconf): Define a default.
41245         (_is-dist-target): New rule for rebuilds to pick up intra-release
41246         version.
41247         (maint-cfg.mk): Rename...
41248         (cfg.mk): ...to this.
41249
41250 2008-03-18  Jim Meyering  <meyering@redhat.com>
41251
41252         New script and module: mktempd
41253         * MODULES.html.sh (maint+release support): Add mktempd.
41254         * build-aux/mktempd: New file.
41255         * modules/mktempd: New file.
41256
41257 2008-03-15  Jim Meyering  <meyering@redhat.com>
41258
41259         Undo last change.
41260         * lib/sha1.c, lib/md5.c: 63 != ~63.
41261         Reported by Andreas Schwab.
41262
41263         sha1.c, md5.c: Hoist a redundant expression.
41264         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
41265         "ctx->buflen" only once, before calling *_process_block.
41266         * lib/md5.c (md5_process_bytes): Likewise.
41267
41268 2008-03-14  Eric Blake  <ebb9@byu.net>
41269
41270         Bump copyright year in files generated by gnulib-tool.
41271         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
41272         gnulib-tool, rather than hard-coding it.
41273
41274         Fix 'gnulib-tool --version' output to work with git.
41275         * gnulib-tool (func_gnulib_dir): New function, extracted from...
41276         (startup): ...here.
41277         (func_version): Use it to invoke git-version-gen, rather than
41278         relying on CVS keyword expansion.  Modernize wording.
41279         (cvsdatestamp, last_checkin_date, version): Kill unused
41280         variables.
41281
41282 2008-03-12  Jim Meyering  <meyering@redhat.com>
41283
41284         Recognize optional cast of the argument to free.
41285         * build-aux/useless-if-before-free: Update regexps.
41286
41287         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
41288
41289 2008-03-11  Bruno Haible  <bruno@clisp.org>
41290
41291         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
41292         by a single package.
41293         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
41294         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
41295         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
41296         Reported by Sam Steingold <sds@gnu.org>.
41297
41298 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41299
41300         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
41301         repositories.
41302
41303 2008-03-11  Bruno Haible  <bruno@clisp.org>
41304
41305         Avoid conflicts between local macro definitions.
41306         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41307         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
41308
41309 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
41310             Bruno Haible  <bruno@clisp.org>
41311
41312         Make va_copy work with some version of xlc on AIX 5.1.
41313         * lib/stdarg.in.h: New file.
41314         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
41315         On AIX, use a <stdarg.h> file substitute.
41316         * modules/stdarg (Files): Add lib/stdarg.in.h.
41317         (Depends-on): Add include_next.
41318         (Makefile.am): Build a stdarg.h substitute if requested.
41319         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
41320
41321 2008-03-10  Bruno Haible  <bruno@clisp.org>
41322
41323         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
41324         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41325         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41326
41327 2008-03-10  Bruno Haible  <bruno@clisp.org>
41328
41329         * modules/stdlib (Depends-on): Add include_next, remove
41330         absolute-header.
41331
41332 2008-03-09  Bruno Haible  <bruno@clisp.org>
41333
41334         * lib/freadahead.h (freadahead): Document more precisely.
41335         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
41336         the sum of both buffer sizes.
41337         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
41338         * NEWS: Document the change.
41339
41340 2008-03-09  Bruno Haible  <bruno@clisp.org>
41341
41342         Extend freadptr to return also the buffer size.
41343         * lib/freadptr.h (freadptr): Add sizep argument.
41344         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
41345         (freadptr): Add sizep argument. Determine buffer size like freadahead
41346         does.
41347         * tests/test-freadptr.c: Don't include freadahead.h.
41348         (main): Adapt for new calling convention of freadptr.
41349         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
41350         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
41351         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
41352         tests/test-freadptr2.sh.
41353         (Depends): Remove freadahead.
41354         (TESTS): Add test-freadptr2.sh.
41355         (check_PROGRAMS): Add test-freadptr2.
41356
41357 2008-03-09  Bruno Haible  <bruno@clisp.org>
41358
41359         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
41360         Report and solution by Simon Josefsson.
41361
41362 2008-03-06  Bruno Haible  <bruno@clisp.org>
41363
41364         Make fflush after ungetc work on BSD platforms.
41365         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
41366         * tests/test-fflush2.c: New file.
41367         * tests/test-fflush2.sh: New file.
41368         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
41369         tests/test-fflush2.c.
41370         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
41371         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
41372
41373 2008-03-06  Eric Blake  <ebb9@byu.net>
41374
41375         Likewise for ftello.
41376         * modules/ftello (Dependencies): Add extensions.
41377         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
41378
41379 2008-03-06  Bruno Haible  <bruno@clisp.org>
41380
41381         * modules/fseeko (Dependencies): Add extensions.
41382         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
41383         Needed on glibc systems.
41384
41385 2008-03-06  Bruno Haible  <bruno@clisp.org>
41386
41387         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
41388         email address.
41389         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41390
41391 2008-03-06  Bruno Haible  <bruno@clisp.org>
41392
41393         * users.txt: Add libgnupdf.
41394
41395 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41396
41397         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
41398         (Header File Substitutes, Function Substitutes,
41399         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
41400         (Build robot for gnulib): Fix typo.
41401
41402 2008-03-06  Bruno Haible  <bruno@clisp.org>
41403
41404         * doc/gnulib-tool.texi (VCS Issues): Small updates.
41405         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41406
41407 2008-03-06  Bruno Haible  <bruno@clisp.org>
41408
41409         * doc/func.texi: New file, extracted from doc/gnulib.texi.
41410         * doc/gnulib.texi: Include it.
41411
41412 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41413
41414         * modules/func (License): Change license to unlimited; there was
41415         no LGPL parts in the module anyway.
41416
41417 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41418
41419         * modules/__func__: Renamed to modules/func.
41420         * modules/__func__-tests: Renamed to modules/func-tests.
41421         * tests/test-__func__.c: Renamed to tests/test-func.c.
41422         * m4/__func__.m4: Renamed to m4/func.m4.
41423         * doc/gnulib.texi (__func__): Section renamed to func.
41424         Suggested by Eric Blake <ebb9@byu.net>.
41425
41426 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41427
41428         * doc/gnulib.texi (__func__): Use C99 terminology when talking
41429         about __func__.  Make example self-contained.  Suggested by Eric
41430         Blake <ebb9@byu.net>.
41431
41432         * tests/test-__func__.c (main): Avoid extraneous () around __func.
41433         Suggested by Eric Blake <ebb9@byu.net>.
41434
41435 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41436
41437         * modules/__func__: New file.
41438         * modules/__func__-tests: New file.
41439         * tests/test-__func__.c: New file.
41440         * m4/__func__.m4: New file.
41441         * doc/gnulib.texi (__func__): Document __func__ module.
41442
41443 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41444
41445         * modules/byteswap (License): Re-license as LGPLv2+.
41446
41447 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41448
41449         * doc/Makefile: Add pdf target.
41450
41451 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41452
41453         * modules/inline (License): Use 'unlimited', since there are only
41454         *.m4 files in this module.
41455
41456 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41457             Bruno Haible  <bruno@clisp.org>
41458
41459         Add support for HP C 7.1 on OpenVMS 8.3.
41460         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
41461
41462 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41463
41464         Update VMS specifics.
41465         * lib/getopt.c [VMS]: Remove include of unixlib.h.
41466
41467 2008-03-02  Jim Meyering  <meyering@redhat.com>
41468
41469         Remove the last dependency on the "free" module.
41470         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
41471         Reported by Bob Proulx.
41472
41473         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
41474
41475         Remove useless "if" tests before free.  Deprecate "free" module.
41476         * doc/posix-functions/free.texi: Mention that this
41477         module is no longer useful.
41478         * modules/free (Notice): Say this module is obsolete.
41479         * modules/readutmp (Depends-on): Remove free.
41480         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
41481         * lib/putenv.c (putenv): Likewise.
41482         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
41483         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
41484         * tests/test-c-strcasestr.c (main): Likewise.
41485         * tests/test-c-strstr.c (main): Likewise.
41486         * tests/test-mbscasestr1.c (main): Likewise.
41487         * tests/test-mbscasestr2.c (main): Likewise.
41488         * tests/test-mbsstr1.c (main): Likewise.
41489         * tests/test-mbsstr2.c (main): Likewise.
41490         * tests/test-memmem.c (main): Likewise.
41491         * tests/test-strcasestr.c (main): Likewise.
41492         * tests/test-striconv.c (main): Likewise.
41493         * tests/test-striconveh.c (main): Likewise.
41494         * tests/test-striconveha.c (main): Likewise.
41495         * tests/test-strstr.c (main): Likewise.
41496
41497         * build-aux/git-version-gen: Adjust a comment and the Usage string.
41498
41499         bootstrap: sync from coreutils again
41500         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
41501
41502 2008-03-01  Jim Meyering  <meyering@redhat.com>
41503
41504         bootstrap: sync from coreutils
41505         * build-aux/bootstrap (update_po_files): Copy a .po file into place
41506         also when the target doesn't exist.
41507
41508 2008-03-01  Eric Blake  <ebb9@byu.net>
41509
41510         Fix bugs in last patch.
41511         * lib/memchr2.c (memchr2): Fix typo.
41512         * tests/test-memchr2.c: Test previous bug, and don't use GNU
41513         extension.
41514         Reported by Bruce Korb.
41515
41516         New module 'memchr2'.
41517         * modules/memchr2: New file.
41518         * modules/memchr2-tests: Likewise.
41519         * lib/memchr2.h: Likewise.
41520         * lib/memchr2.c: Likewise, based on memchr.c.
41521         * tests/test-memchr2.c: New test.
41522         * MODULES.html.sh (String handling): Add memchr2.
41523
41524 2008-02-29  Bruno Haible  <bruno@clisp.org>
41525
41526         * modules/freadseek-tests: New file.
41527         * tests/test-freadseek.sh: New file.
41528         * tests/test-freadseek.c: New file.
41529
41530         New module 'freadseek'.
41531         * modules/freadseek: New file.
41532         * lib/freadseek.h: New file.
41533         * lib/freadseek.c: New file.
41534         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
41535
41536 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41537
41538         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
41539         wydawca.
41540
41541         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
41542         program_invocation_name and program_invocation_short_name are
41543         present.
41544
41545 2008-02-28  Bruno Haible  <bruno@clisp.org>
41546
41547         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
41548         * tests/test-freadptr.sh: Also test non-seekable stdin.
41549
41550 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
41551
41552         * build-aux/bootstrap (source_base, m4_base)
41553         (doc_base, tests_base): New variables.
41554         (gnulib_tool_options): Do not hardcode base directories, use
41555         the above variables instead.
41556
41557 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
41558
41559         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
41560
41561 2008-02-28  Bruno Haible  <bruno@clisp.org>
41562
41563         * modules/freadptr-tests: New file.
41564         * tests/test-freadptr.sh: New file.
41565         * tests/test-freadptr.c: New file.
41566
41567         New module 'freadptr'.
41568         * modules/freadptr: New file.
41569         * lib/freadptr.h: New file.
41570         * lib/freadptr.c: New file.
41571         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
41572
41573 2008-02-26  Karl Berry  <karl@freefriends.org>
41574
41575         Sync from Libtool:
41576         * libltdl/argz.c (argz_add, argz_count): New functions.
41577         * libltdl/argz.in.h: Declare them.
41578         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
41579
41580 2008-02-22  Bruno Haible  <bruno@clisp.org>
41581
41582         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
41583         is a pointer type.  Needed for HP-UX 10.
41584         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
41585         * doc/posix-functions/gmtime_r.texi: Likewise.
41586         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41587
41588 2008-02-24  Bruno Haible  <bruno@clisp.org>
41589
41590         * modules/environ-tests: New file.
41591         * tests/test-environ.c: New file.
41592
41593         New module 'environ'.
41594         * modules/environ: New file.
41595         * lib/unistd.in.h (environ): New declaration.
41596         * m4/environ.m4: New file.
41597         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
41598         after use.
41599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
41600         HAVE_DECL_ENVIRON.
41601         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
41602         HAVE_DECL_ENVIRON.
41603         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
41604         wrong claim that 'environ' is missing on some systems.
41605         * modules/execute (Depends-on): Add environ.
41606         * lib/execute.c (environ): Remove fallback declaration.
41607         * modules/pipe (Depends-on): Add environ.
41608         * lib/pipe.c (environ): Remove fallback declaration.
41609         * modules/setenv (Depends-on): Add environ.
41610         * lib/setenv.c (environ): Remove fallback declaration.
41611         * modules/unsetenv (Depends-on): Add environ.
41612         * lib/unsetenv.c (environ): Remove fallback declaration.
41613         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
41614         m4/environ.m4.
41615         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
41616         (gl_PREREQ_UNSETENV): Likewise.
41617
41618 2008-02-24  Bruno Haible  <bruno@clisp.org>
41619
41620         * doc/posix-functions/environ.texi: Document the MacOS X problem.
41621
41622 2008-02-20  Bob Proulx  <bob@proulx.com>
41623
41624         Enable use of older two part flavor 'git describe'.
41625         * build-aux/git-version-gen: If using the older two part flavor of
41626         git version then recreate the third part now present in the
41627         newer three part flavor of git describe.
41628
41629 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
41630
41631         * lib/fts.c (fts_build): Typo correction to comment.
41632
41633 2008-02-17  Bruno Haible  <bruno@clisp.org>
41634
41635         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
41636         generating no-op conflicts.
41637
41638 2008-02-17  Bruno Haible  <bruno@clisp.org>
41639
41640         Speed up by 10%.
41641         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
41642         result_entries, rather than an index-based loop.
41643
41644 2008-02-17  Bruno Haible  <bruno@clisp.org>
41645
41646         Speed up by 25%.
41647         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
41648         'hashcode_cached'.
41649         (entry_create): New function.
41650         (entry_hashcode): Use the cached hashcode if possible.
41651         (read_changelog_file, try_split_merged_entry): Use entry_create.
41652
41653 2008-02-17  Bruno Haible  <bruno@clisp.org>
41654
41655         Speed up from O(n^2) to O(n) for long ChangeLog files.
41656         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
41657         (read_changelog_file): Change implementation of entries_reversed list
41658         to rbtreehash.
41659         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
41660
41661 2008-02-17  Bruno Haible  <bruno@clisp.org>
41662
41663         New option --split-merged-entry.
41664         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
41665         (find_paragraph_end, try_split_merged_entry): New functions.
41666         (long_options): Add option --split-merged-entry.
41667         (usage): Document option --split-merged-entry.
41668         (main): Implement option --split-merged-entry.
41669         Reported by Eric Blake.
41670
41671 2008-02-17  Bruno Haible  <bruno@clisp.org>
41672
41673         * lib/git-merge-changelog.c: Include c-strstr.h.
41674         (main): Support the "git pull --rebase" situation.
41675         * modules/git-merge-changelog (Depends-on): Add c-strstr.
41676         Reported by Eric Blake.
41677
41678 2008-02-16  Eric Blake  <ebb9@byu.net>
41679
41680         Avoid doubling \ in common case of "c-maybe" quoting style.
41681         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
41682         eliding outer quotes.
41683         * lib/quotearg.h: Document this.
41684         * tests/test-quotearg.c (result_strings, inputs, results_g)
41685         (flag_results, locale_results): Test it by adding a new string to
41686         each test group.
41687         (compare_strings): Test new string.
41688
41689 2008-02-13  Eric Blake  <ebb9@byu.net>
41690
41691         Avoid trigraph quoting in default output.
41692         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
41693         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
41694         unless explicitly requested.
41695         * tests/test-quotearg.c (flag_results, main): Add additional tests.
41696
41697 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
41698
41699         Don't rely on signed integer overflowing to negative value.
41700         * lib/getugroups.c (getugroups): Include <limits.h>.
41701         Instead, compare against INT_MAX, and increment only if the test passes.
41702
41703 2008-02-13  Jim Meyering  <meyering@redhat.com>
41704         and Eric Blake  <ebb9@byu.net>
41705
41706         Avoid shadowing warning and compile errors on Linux.
41707         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
41708         forwarding macros on Linux.
41709         (dcgettext): Define a stub, for Linux.
41710         (results_g, main): Avoid warnings.
41711
41712 2008-02-12  Eric Blake  <ebb9@byu.net>
41713
41714         Silence warning in last patch.
41715         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
41716
41717         Quotearg part 4: add tests, fix c-maybe colon quoting.
41718         * lib/quotearg.h: Improve documentation.
41719         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
41720         escapes when adding outer quotes.  When quoting trigraphs, use
41721         valid C notation.  When quoting NUL, omit extra characters if next
41722         character is not digit.  Alter prototype.
41723         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
41724         callers.
41725         * modules/quotearg-tests: New module.
41726         * tests/test-quotearg.c: New test.
41727
41728 2008-02-07  Eric Blake  <ebb9@byu.net>
41729
41730         Quotearg part 3: add flag to control outer quote elision.
41731         * lib/quotearg.h (c_maybe_quoting_style): New style.
41732         (enum quoting_flags): Better documentation of flags.
41733         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
41734         c-maybe style.
41735         (quotearg_buffer_restyled): Handle new flag to elide outer
41736         quotes.
41737
41738         Quotearg part 2: add flag that can control NUL elision.
41739         * lib/quotearg.h (set_quoting_flags): New prototype.
41740         * lib/quotearg.c (struct quoting_options): Add flag field.
41741         (set_quoting_flags): New function.
41742         (quotearg_buffer_restyled): Add flags parameter.
41743         (quotearg_alloc_mem): Set the flag if length cannot be returned.
41744         (quotearg_n_options): Set the flag, since length cannot be
41745         returned.
41746         (quoting_options_from_style): Default flags correctly.
41747
41748         Quotearg part 1: more wrappers, restore quotearg_char state.
41749         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
41750         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
41751         (quotearg_colon_mem): New wrappers.
41752         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
41753         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
41754         functions.
41755         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
41756         (quotearg_colon_mem): New functions.
41757
41758 2008-02-11  Bruno Haible  <bruno@clisp.org>
41759
41760         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
41761         library in the current directory: it does not work with parallel make.
41762         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41763
41764 2008-02-11  Bruno Haible  <bruno@clisp.org>
41765
41766         * .gitattributes: New file.
41767
41768 2008-02-11  Jim Meyering  <meyering@redhat.com>
41769
41770         useless-if-before-free: Fix reversed exit values.
41771         * build-aux/useless-if-before-free: Use correct values
41772         for EXIT_MATCH and EXIT_NO_MATCH.
41773
41774         * build-aux/useless-if-before-free: Close stdout carefully.
41775
41776 2008-02-10  Bruno Haible  <bruno@clisp.org>
41777
41778         New module 'git-merge-changelog'.
41779         * modules/git-merge-changelog: New file.
41780         * lib/git-merge-changelog.c: New file.
41781
41782 2008-02-10  Jim Meyering  <meyering@redhat.com>
41783
41784         useless-if-before-free: New option: --list (-l).
41785
41786         useless-if-before-free: Don't exit immediately upon open failure.
41787         * build-aux/useless-if-before-free: Exit 2 for errors.
41788         Upon failure to open a file, don't exit immediately.
41789         Rather, just warn and continue with any remaining files.
41790
41791 2008-02-10  Bruno Haible  <bruno@clisp.org>
41792
41793         New abstract list operation 'node_set_value'.
41794         * lib/gl_list.h (gl_list_node_set_value): New function.
41795         (struct gl_list_implementation): New field node_set_value.
41796         * lib/gl_list.c (gl_list_node_set_value): New function.
41797         * lib/gl_array_list.c (gl_array_node_set_value): New function.
41798         (gl_array_list_implementation): Update.
41799         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
41800         (gl_carray_list_implementation): Update.
41801         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
41802         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41803         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41804         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
41805         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41806         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41807         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41808         Update.
41809         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41810         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
41811         (gl_sublist_list_implementation): Update.
41812
41813 2008-02-10  Bruno Haible  <bruno@clisp.org>
41814
41815         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
41816         Needed when ELEMENT is #defined to 'some_type *'.
41817
41818 2008-02-10  Jim Meyering  <meyering@redhat.com>
41819
41820         New script and module: useless-if-before-free
41821         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
41822         * build-aux/useless-if-before-free: New file.
41823         * modules/useless-if-before-free: New file.
41824
41825         * build-aux/gitlog-to-changelog: Use committer date, not author date.
41826
41827         xstrtol_error: Fix typo.
41828         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
41829         s/exit_failure/exit_status/.
41830
41831 2008-02-09  Jim Meyering  <meyering@redhat.com>
41832
41833         New script and module: gitlog-to-changelog
41834         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
41835         * modules/gitlog-to-changelog: New file.
41836         * build-aux/gitlog-to-changelog: New file.
41837
41838 2008-02-08  Jim Meyering  <meyering@redhat.com>
41839
41840         Avoid two "parameter unused" warnings.
41841         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
41842         Mark "st" as used.
41843
41844         Use "git COMMAND", not "git-COMMAND".
41845         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
41846         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
41847         * build-aux/git-version-gen: Use "git status", not "git-status".
41848
41849 2008-02-07  Bruno Haible  <bruno@clisp.org>
41850
41851         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
41852         Avoids a crash on Windows Vista.
41853         Reported by Adam Strzelecki <ono@java.pl> via
41854         Simon Josefsson <simon@josefsson.org>.
41855
41856 2008-02-06  Bruno Haible  <bruno@clisp.org>
41857
41858         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
41859         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
41860         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
41861         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
41862         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41863         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41864         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
41865         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
41866         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41867         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41868         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41869         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41870         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41871         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41872         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41873         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
41874         left-adjust flag.
41875         * tests/test-snprintf-posix.h (test_function): Likewise.
41876         * tests/test-sprintf-posix.h (test_function): Likewise.
41877         * tests/test-vasprintf-posix.c (test_function): Likewise.
41878         * doc/posix-functions/fprintf.texi: Update.
41879         * doc/posix-functions/printf.texi: Update.
41880         * doc/posix-functions/snprintf.texi: Update.
41881         * doc/posix-functions/sprintf.texi: Update.
41882         * doc/posix-functions/vfprintf.texi: Update.
41883         * doc/posix-functions/vprintf.texi: Update.
41884         * doc/posix-functions/vsnprintf.texi: Update.
41885         * doc/posix-functions/vsprintf.texi: Update.
41886         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41887
41888 2008-02-06  Bruno Haible  <bruno@clisp.org>
41889
41890         Fix bug introduced on 2008-01-26.
41891         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
41892
41893 2008-02-06  Bruno Haible  <bruno@clisp.org>
41894
41895         Fix bug introduced on 2007-06-10.
41896         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
41897         !NEED_PRINTF_FLAG_ZERO.
41898
41899 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41900
41901         getloadavg: use libperfstat on AIX5
41902         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41903
41904 2008-02-03  Bruno Haible  <bruno@clisp.org>
41905
41906         * lib/diffseq.h: Add comments about required #includes.
41907         Reported by Michael Biggs <gnulib@doubleplum.net>.
41908
41909 2008-02-01  Bruno Haible  <bruno@clisp.org>
41910
41911         * users.txt: Add gnuit.
41912
41913 2008-01-31  Bruno Haible  <bruno@clisp.org>
41914
41915         * lib/md4.c (set_uint32): Mark as inline.
41916         * lib/md5.c (set_uint32): Likewise.
41917         * lib/sha1.c (set_uint32): Likewise.
41918         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
41919         * m4/md5.m4 (gl_MD5): Likewise.
41920         * m4/sha1.m4 (gl_SHA1): Likewise.
41921
41922 2008-01-31  Jim Meyering  <meyering@redhat.com>
41923
41924         Use "sizeof VAR", rather than a literal "4".
41925         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
41926         * lib/md4.c (md4_read_ctx): Likewise.
41927         * lib/sha1.c (sha1_read_ctx): Likewise.
41928
41929 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41930
41931         * tests/test-sha1.c: New file, based on test-md5.c.
41932
41933         * modules/crypto/sha1-tests: New file.
41934
41935 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41936
41937         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
41938
41939 2008-01-31  Jim Meyering  <meyering@redhat.com>
41940
41941         Prefer "sizeof v" over the equivalent "4".
41942         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
41943         * lib/md5.c (set_uint32): Likewise.
41944         * lib/sha1.c (set_uint32): Likewise.
41945
41946 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41947
41948         * lib/sha1.c (set_uint32): Mark function as static.
41949
41950 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41951
41952         md2: clarify comments to say that alignment is not required.
41953         * lib/md2.h: Remove warning about alignment in comment.
41954         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
41955         never been required.
41956
41957 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41958
41959         md4: adapt alignment constraint fix from sha1.
41960         * lib/md4.c (set_uint32): New function, from sha1.c
41961         (md4_read_ctx): Use it.
41962         (md4_finish_ctx): Doc fix.
41963         * lib/md4.h: Doc fix.
41964
41965 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41966
41967         md5: adapt alignment constraint fix from sha1.
41968         * lib/md5.c (set_uint32): New function, from sha1.c
41969         (md5_read_ctx): Use it.
41970         (md5_finish_ctx): Doc fix.
41971         * lib/md5.h: Doc fix.
41972
41973 2008-01-30  Peter Palfrader  <weasel@debian.org>
41974
41975         sha1: remove the result buffer alignment constraint
41976         * lib/sha1.c (set_uint32): New function.
41977         (sha1_read_ctx): Rewrite to remove the result buffer alignment
41978         constraint.
41979         (sha1_finish_ctx): Remove comment warning about alignment constraint.
41980         * lib/sha1.h: Likewise.
41981
41982 2008-01-30  Andreas Schwab  <schwab@suse.de>
41983             Bruno Haible  <bruno@clisp.org>
41984
41985         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
41986         correct definition of LDBL_MIN_EXP.
41987
41988 2008-01-30  Karl Berry  <karl@gnu.org>
41989
41990         * config/srclist-update: try to preserve x bit on updates.
41991         * config/srclistvars.sh: update for karl.
41992
41993 2008-01-29  Jim Meyering  <meyering@redhat.com>
41994
41995         vasnprintf.c: Avoid warning about unused label
41996         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
41997         "overflow" label definition and associated code with the
41998         same cpp condition that guards the sole use of that label.
41999
42000 2008-01-26  Bruno Haible  <bruno@clisp.org>
42001
42002         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
42003         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
42004         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
42005         * lib/isnanl-nolibm.h (isnanl): Likewise.
42006         Reported by Paul Eggert <eggert@cs.ucla.edu>.
42007
42008 2008-01-26  Bruno Haible  <bruno@clisp.org>
42009
42010         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
42011         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
42012
42013 2008-01-26  Bruno Haible  <bruno@clisp.org>
42014
42015         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
42016         GCC >= 4.0 built-in.
42017         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
42018
42019 2008-01-26  Bruno Haible  <bruno@clisp.org>
42020
42021         Rename isnan, applicable to 'double' only, to isnand.
42022         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
42023         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
42024         (configure.ac): Update.
42025         (Include): Replace "isnan.h" with "isnand.h".
42026         * m4/isnand.m4: Renamed from m4/isnan.m4.
42027         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
42028         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
42029         instead of isnan.c.
42030         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
42031         instead of HAVE_ISNAN_IN_LIBC.
42032         (isnand): Renamed from isnan.
42033         * lib/isnand.c: New file.
42034         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
42035         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
42036         (Makefile.am): Update.
42037         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
42038         Include isnand.h instead of isnan.h.
42039         (main): Test isnand instead of isnan.
42040         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
42041         isnan-nolibm.
42042         * modules/frexp (Depends-on): Likewise.
42043         * modules/frexp-tests (Depends-on): Likewise.
42044         * modules/frexp-nolibm (Depends-on): Likewise.
42045         * modules/frexp-nolibm-tests (Depends-on): Likewise.
42046         * modules/isfinite (Depends-on): Likewise.
42047         * modules/round-tests (Depends-on): Likewise.
42048         * modules/signbit (Depends-on): Likewise.
42049         * modules/signbit-tests (Depends-on): Likewise.
42050         * modules/snprintf-posix (Depends-on): Likewise.
42051         * modules/sprintf-posix (Depends-on): Likewise.
42052         * modules/trunc-tests (Depends-on): Likewise.
42053         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42054         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42055         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42056         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42057         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42058         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42059         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42060         * modules/vasnprintf-posix (Depends-on): Likewise.
42061         * modules/vasprintf-posix (Depends-on): Likewise.
42062         * modules/vfprintf-posix (Depends-on): Likewise.
42063         * modules/vsnprintf-posix (Depends-on): Likewise.
42064         * modules/vsprintf-posix (Depends-on): Likewise.
42065         * lib/frexp.c: Include isnand.h instead of isnan.h.
42066         (ISNAN): Set to isnand instead of isnan.
42067         * lib/isfinite.c: Include isnand.h instead of isnan.h.
42068         (gl_isfinited): Use isnand instead of isnan.
42069         * lib/signbitd.c: Include isnand.h instead of isnan.h.
42070         (gl_signbitd): Use isnand instead of isnan.
42071         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
42072         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
42073         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
42074         (main): Use isnand instead of isnan.
42075         * tests/test-round1.c: Include isnand.h.
42076         (main): Use isnand instead of isnan.
42077         * tests/test-round2.c: Include isnand.h instead of isnan.h.
42078         (ISNAN): Set to isnand instead of isnan.
42079         * tests/test-trunc1.c: Include isnand.h.
42080         (main): Use isnand instead of isnan.
42081         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
42082         (equal): Use isnand instead of isnan.
42083         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
42084         isnand-nolibm.
42085         * NEWS: Mention the change.
42086
42087 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42088             Bruno Haible  <bruno@clisp.org>
42089
42090         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
42091         the GCC builtins for signbits are present and set
42092         REPLACE_SIGNBIT_USING_GCC if so.
42093         * lib/math.in.h (signbit): Define using GCC builtins if
42094         REPLACE_SIGNBIT_USING_GCC is set.
42095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
42096         REPLACE_SIGNBIT_USING_GCC.
42097         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
42098
42099 2008-01-25  Jim Meyering  <meyering@redhat.com>
42100
42101         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
42102         * lib/poll.c: Include <config.h>, not "config.h".
42103         * tests/test-getaddrinfo.c: Likewise.
42104
42105 2008-01-25  Simon Josefsson  <simon@josefsson.org>
42106
42107         * modules/sockets-tests: New file.
42108
42109 2008-01-24  Simon Josefsson  <simon@josefsson.org>
42110
42111         * modules/sockets: New module, can be used to call WSA_Startup and
42112         WSA_Cleanup when needed.
42113
42114         * lib/sockets.h, lib/sockets.c: New files.
42115
42116         * m4/sockets.m4: New file.
42117
42118         * tests/test-sockets.c: New file.
42119
42120 2008-01-19  Bruno Haible  <bruno@clisp.org>
42121
42122         * doc/posix-headers: Renamed from doc/headers.
42123         * doc/posix-functions: Renamed from doc/functions.
42124         * doc/gnulib.texi: Update.
42125
42126 2008-01-19  Bruno Haible  <bruno@clisp.org>
42127
42128         * doc/glibc-functions/strcasestr.texi: Include contents of
42129         doc/functions/strcasestr.texi, fixing the list of platforms.
42130         * doc/functions/strcasestr.texi: Remove file.
42131
42132 2008-01-19  Bruno Haible  <bruno@clisp.org>
42133
42134         * doc/glibc-functions/memmem.texi: Include contents of
42135         doc/functions/memmem.texi.
42136         * doc/functions/memmem.texi: Remove file.
42137
42138 2008-01-18  Bruno Haible  <bruno@clisp.org>
42139
42140         * doc/glibc-functions/*.texi: New files.
42141         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
42142         to use the new files.
42143
42144 2008-01-17  Bruno Haible  <bruno@clisp.org>
42145
42146         * tests/test-gethostname.c (main): Fix printf statement.
42147
42148 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42149
42150         * modules/gethostname-tests: New file.
42151
42152         * tests/test-gethostname.c: New file.
42153
42154 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42155
42156         * lib/gethostname.c: Include string.h unconditionally, strncpy is
42157         used by the UNAME case.  Reported by Bruno Haible
42158         <bruno@clisp.org>.
42159
42160 2008-01-17  Eric Blake  <ebb9@byu.net>
42161
42162         Convert c-strcasestr to be more efficient.
42163         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
42164         (Depends-on): Add c-strcase, remove malloca, strnlen.
42165         * tests/test-c-strcasestr.c (main): Enhance test.
42166         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
42167
42168 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42169
42170         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
42171         Use it in creating po/Makevars.
42172
42173 2008-01-15  Simon Josefsson  <simon@josefsson.org>
42174
42175         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
42176         Applications that requires it should initialize libgcrypt
42177         manually.
42178
42179 2008-01-16  Simon Josefsson  <simon@josefsson.org>
42180
42181         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
42182
42183 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
42184
42185         Fix problem with getdate on mingw32 reported by Simon Josefsson
42186         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
42187         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
42188         tzname", when deciding whether to declare tzname.
42189         * lib/strftime.c (tzname): Likewise.
42190
42191 2008-01-15  Bruno Haible  <bruno@clisp.org>
42192
42193         Work around a MacOS X 10.5 bug in frexpl().
42194         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
42195         * doc/functions/frexpl.texi: Document the bug.
42196         Reported by Elias Pipping <pipping@gentoo.org>.
42197
42198 2008-01-14  Eric Blake  <ebb9@byu.net>
42199
42200         Touch up previous patch.
42201         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
42202         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
42203
42204         Convert strcasestr module to use Two-Way algorithm.
42205         * modules/strcasestr-simple: New module, based on the old
42206         strcasestr, but with Two-Way rather than KMP.
42207         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
42208         * lib/string.in.h (rpl_strcasestr): Declare.
42209         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
42210         performance.
42211         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
42212         * modules/string (Makefile.am): Support strcasestr.
42213         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42214         * modules/strcasestr-tests (Depends-on): Check for alarm.
42215         * tests/test-strcasestr.c: Augment test.
42216         * lib/str-two-way.h: Clean up stray macro.
42217         * NEWS: Document new module.
42218         * MODULES.html.sh (string handling): Likewise.
42219         * doc/functions/strcasestr.texi: New file.
42220         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
42221         here, since it is not a POSIX function.
42222
42223 2008-01-14  Colin Watson  <cjwatson@debian.org>
42224             Bruno Haible  <bruno@clisp.org>
42225
42226         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
42227         works fine; if not, set REPLACE_STRSIGNAL.
42228         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
42229         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42230         REPLACE_STRSIGNAL.
42231         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
42232         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
42233         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
42234
42235 2008-01-14  Bruno Haible  <bruno@clisp.org>
42236
42237         * modules/strsignal (Include): Change to <string.h>.
42238
42239 2008-01-14  Colin Watson  <cjwatson@debian.org>
42240
42241         * modules/argp (Notice): Add a notice recommending to change
42242         XGETTEXT_OPTIONS.
42243         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
42244
42245 2008-01-13  Colin Watson  <cjwatson@debian.org>
42246
42247         * modules/strsignal-tests: New file.
42248         * tests/test-strsignal.c: New file.
42249
42250         * lib/strsignal.c: New file, from glibc with modifications.
42251         * lib/siglist.h: New file, from glibc with modifications.
42252         * lib/string.in.h (strsignal): New declaration.
42253         * m4/strsignal.m4: New file.
42254         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42255         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
42256         * modules/strsignal: New file.
42257         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
42258         HAVE_DECL_STRSIGNAL.
42259
42260 2008-01-13  Bruno Haible  <bruno@clisp.org>
42261
42262         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
42263         locale encoding is not ASCII. Needed for OpenBSD 4.0.
42264         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42265         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42266
42267 2008-01-13  Bruno Haible  <bruno@clisp.org>
42268
42269         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
42270         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
42271         * lib/argp.h (__attribute__): Likewise.
42272         * lib/c-stack.c (__attribute__): Likewise.
42273         * lib/error.h (__attribute__): Likewise.
42274         * lib/fts.c (__attribute__): Likewise.
42275         * lib/openat.h (__attribute__): Likewise.
42276         * lib/stdio.in.h (__attribute__): Likewise.
42277         * lib/string.in.h (__attribute__): Likewise.
42278         * lib/utimens.c (__attribute__): Likewise.
42279         * lib/vasnprintf.h (__attribute__): Likewise.
42280         * lib/xalloc.h (__attribute__): Likewise.
42281         * lib/xprintf.h (__attribute__): Likewise.
42282         * lib/xstrtol.h (__attribute__): Likewise.
42283         * lib/xvasprintf.h (__attribute__): Likewise.
42284
42285 2008-01-12  Bruno Haible  <bruno@clisp.org>
42286
42287         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
42288         * doc/glibc-headers/a.out.texi: New file.
42289         * doc/glibc-headers/aliases.texi: New file.
42290         * doc/glibc-headers/alloca.texi: New file.
42291         * doc/glibc-headers/ar.texi: New file.
42292         * doc/glibc-headers/argp.texi: New file.
42293         * doc/glibc-headers/argz.texi: New file.
42294         * doc/glibc-headers/byteswap.texi: New file.
42295         * doc/glibc-headers/crypt.texi: New file.
42296         * doc/glibc-headers/endian.texi: New file.
42297         * doc/glibc-headers/envz.texi: New file.
42298         * doc/glibc-headers/err.texi: New file.
42299         * doc/glibc-headers/error.texi: New file.
42300         * doc/glibc-headers/execinfo.texi: New file.
42301         * doc/glibc-headers/fpu_control.texi: New file.
42302         * doc/glibc-headers/fstab.texi: New file.
42303         * doc/glibc-headers/fts.texi: New file.
42304         * doc/glibc-headers/getopt.texi: New file.
42305         * doc/glibc-headers/ieee754.texi: New file.
42306         * doc/glibc-headers/ifaddrs.texi: New file.
42307         * doc/glibc-headers/libintl.texi: New file.
42308         * doc/glibc-headers/mcheck.texi: New file.
42309         * doc/glibc-headers/mntent.texi: New file.
42310         * doc/glibc-headers/obstack.texi: New file.
42311         * doc/glibc-headers/paths.texi: New file.
42312         * doc/glibc-headers/printf.texi: New file.
42313         * doc/glibc-headers/pty.texi: New file.
42314         * doc/glibc-headers/resolv.texi: New file.
42315         * doc/glibc-headers/shadow.texi: New file.
42316         * doc/glibc-headers/sysexits.texi: New file.
42317         * doc/glibc-headers/ttyent.texi: New file.
42318
42319 2008-01-12  Jim Meyering  <meyering@redhat.com>
42320
42321         announce-gen: emit Gnulib's git-based version string.
42322         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
42323         New option --gnulib-version=V, where V is expected to be
42324         the output of running git describe in the gnulib directory.
42325         (get_tool_versions): Request feedback on xdelta.  I suspect it's
42326         not useful, and plan to stop publishing an xdelta file with each
42327         coreutils release.
42328
42329         * build-aux/announce-gen: Also check for lzma-compressed files.
42330
42331 2008-01-11  Bruno Haible  <bruno@clisp.org>
42332
42333         * tests/test-memmem.c (main): Increase maximum allowed time.
42334         * tests/test-strstr.c (main): Likewise.
42335
42336 2008-01-11  Bruno Haible  <bruno@clisp.org>
42337
42338         * doc/functions/memmem.texi: Add more precisions about platforms.
42339         * doc/functions/strstr.texi: Likewise.
42340
42341 2008-01-10  Eric Blake  <ebb9@byu.net>
42342
42343         * m4/strstr.m4: Delete cruft from copy-n-paste.
42344         Reported by Bruno Haible.
42345
42346 2008-01-10  Bruno Haible  <bruno@clisp.org>
42347
42348         Make c-strstr rely on strstr.
42349         * lib/c-strstr.c: Don't include str-kmp.h.
42350         (c_strstr): Define in terms of strstr.
42351         * modules/c-strstr (Files): Remove lib/str-kmp.h.
42352         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
42353
42354 2008-01-10  Bruno Haible  <bruno@clisp.org>
42355
42356         * doc/gnulib.texi (String Functions in C Locale): New section.
42357         * doc/c-ctype.texi: New file.
42358         * doc/c-strcase.texi: New file.
42359         * doc/c-strcaseeq.texi: New file.
42360         * doc/c-strcasestr.texi: New file.
42361         * doc/c-strstr.texi: New file.
42362         * doc/c-strtod.texi: New file.
42363         * doc/c-strtold.texi: New file.
42364
42365 2008-01-10  Eric Blake  <ebb9@byu.net>
42366
42367         * lib/relocatable.h: Fix a comment.
42368
42369 2008-01-10  Eric Blake  <ebb9@byu.net>
42370
42371         Share two-way algorithm.
42372         * lib/str-two-way.h: New file, merged from...
42373         * lib/memmem.c: ...here...
42374         * lib/strstr.c: ...and here.
42375         * modules/memmem (Files): Use it.
42376         * modules/strstr (Files): Likewise.
42377
42378         Avoid quadratic strstr implementations.
42379         * lib/strstr.c: New file.
42380         * m4/strstr.m4: Likewise.
42381         * modules/strstr: Likewise.
42382         * modules/strstr-tests: Likewise.
42383         * tests/test-strstr.c: Likewise.
42384         * lib/string.in.h (rpl_strstr): Declare.
42385         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
42386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
42387         * modules/string (Makefile.am): Likewise.
42388         * MODULES.html.sh (string handling): Mention new module.
42389         * doc/functions/strstr.texi (strstr): Document the bug.
42390
42391 2008-01-10  Bruno Haible  <bruno@clisp.org>
42392
42393         * lib/relocatable.h (relocate): State whether result is freshly
42394         allocated or not.
42395         * lib/relocatable.c (relocate): Return a freshly allocated string
42396         instead of a pointer to a privately held string.
42397         Reported by Sylvain Beucler <beuc@gnu.org>.
42398
42399 2008-01-10  Colin Watson  <cjwatson@debian.org>
42400
42401         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
42402         s/S_ISNLK/S_ISLNK/.
42403
42404 2008-01-09  Bruno Haible  <bruno@clisp.org>
42405
42406         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
42407         and other files.
42408         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
42409         if it's only a guess.
42410         * modules/memmem: Simplify by depending on memmem-simple.
42411
42412 2008-01-09  Bruno Haible  <bruno@clisp.org>
42413
42414         Work around OpenBSD 4.0 tdelete() bug.
42415         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
42416         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
42417         macros and don't redefine the enum values.
42418         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
42419         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
42420         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
42421
42422 2008-01-09  Bruno Haible  <bruno@clisp.org>
42423
42424         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
42425         (main): Don't perform the tests if setlocale did not install a UTF-8
42426         locale. Needed on OpenBSD 4.0.
42427         * modules/wcwidth-tests (Depends-on): Add localcharset.
42428
42429 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
42430
42431         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
42432         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
42433         * NEWS: announce this.
42434         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
42435
42436 2008-01-09  Simon Josefsson  <simon@josefsson.org>
42437         and Eric Blake  <ebb9@byu.net>
42438
42439         Add memmem-simple module.
42440         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
42441         (gl_FUNC_MEMMEM): Separate performance from presence checks.
42442         * modules/memmem-simple: New file.
42443         * modules/memmem (Description): Tweak.
42444         * MODULES.html.sh (string handling): Mention new module.
42445         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
42446         addressed by memmem-simple.
42447         * NEWS: Document the difference.
42448
42449 2008-01-09  Eric Blake  <ebb9@byu.net>
42450
42451         Give gcc some memmem optimization hints.
42452         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
42453         (strcasestr): Declare as pure.
42454         * modules/memmem (Maintainer): Claim my implementation.
42455
42456 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42457
42458         Support AIX 6.1 and higher.
42459         * build-aux/config.libpath: Likewise.
42460         * build-aux/config.rpath: Likewise.
42461
42462 2008-01-08  Jim Meyering  <meyering@redhat.com>
42463             Bruno Haible  <bruno@clisp.org>
42464
42465         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
42466         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
42467         Reported by Peter Fales in
42468         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
42469
42470 2008-01-08  Bruno Haible  <bruno@clisp.org>
42471
42472         * modules/unictype/category-of (Depends-on): Add
42473         unictype/category-none.
42474         * modules/unictype/category-and-tests (Depends-on): Add
42475         unictype/category-{L,N,Lu,Nd}.
42476         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
42477         * modules/unictype/category-or-tests (Depends-on): Add
42478         unictype/category-{L,N}.
42479         * modules/unictype/category-name-tests (Depends-on): Add
42480         unictype/category-{Z,Nl}.
42481         Reported by Simon Josefsson.
42482
42483 2008-01-08  Bruno Haible  <bruno@clisp.org>
42484
42485         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
42486         convention better.
42487         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
42488         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
42489         Reported by Peter Miller <millerp@canb.auug.org.au>.
42490
42491 2008-01-08  Eric Blake  <ebb9@byu.net>
42492
42493         Rewrite memmem to guarantee linear complexity without malloc.
42494         * lib/memmem.c (memmem): Use Two-Way rather than
42495         Knuth-Morris-Pratt, to allow O(1) space usage.
42496         (critical_factorization, two_way_short_needle)
42497         (two_way_long_needle): New functions.
42498         (knuth_morris_pratt): Delete.
42499         * modules/memmem (Depends-on): No longer need malloca or stdbool.
42500         Add stdint.
42501         * tests/test-memmem.c (main): Add tests for periodic needle and
42502         sublinear performance.
42503         * doc/functions/memmem.texi (memmem): Document other deficiencies
42504         in cygwin and older glibc.
42505
42506 2008-01-08  Bruno Haible  <bruno@clisp.org>
42507
42508         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
42509         augmentation.
42510
42511 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
42512
42513         Add a configure time option: --disable-acl.
42514         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
42515         AC_ARG_ENABLE(acl).
42516
42517 2008-01-06  Simon Josefsson  <simon@josefsson.org>
42518
42519         * tests/test-localename.c: Don't include obsolete "setenv.h".
42520
42521         * modules/localename-tests (Depends-on): Need unsetenv.
42522
42523 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42524
42525         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
42526
42527 2008-01-06  Colin Watson  <cjwatson@debian.org>
42528
42529         * users.txt: Add man-db.
42530
42531 2008-01-07  Bruno Haible  <bruno@clisp.org>
42532
42533         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
42534         previous section name.
42535
42536 2008-01-07  Bruno Haible  <bruno@clisp.org>
42537
42538         * lib/progname.c (set_program_name): Don't strip off a leading
42539         "lt-" prefix outside a .libs directory.
42540         Suggested by Paul Eggert.
42541
42542 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
42543             Bruno Haible  <bruno@clisp.org>
42544
42545         Improve memory cleanup in 'relocatable' module.
42546         * lib/relocatable.h (compute_curr_prefix): Change return type to
42547         'char *'.
42548         * lib/relocatable.c (compute_curr_prefix): Change return type to
42549         'char *'. Free curr_installdir after use.
42550         (relocate): Free curr_prefix_better after use.
42551         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
42552
42553 2008-01-01  Bruno Haible  <bruno@clisp.org>
42554
42555         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
42556         failure on older glibc systems.
42557         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42558
42559 2008-01-05  Eric Blake  <ebb9@byu.net>
42560
42561         Avoid quadratic system memmem.
42562         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
42563         Reported by Ralf Wildenhues.
42564
42565         Fix memmem test for mingw.
42566         * modules/memmem-tests (configure.ac): Check for alarm.
42567         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
42568         it.
42569         * doc/functions/memmem.texi: New file.
42570         * doc/gnulib.texi (Function Substitutes): Add memmem.
42571         Reported by Bruno Haible.
42572
42573 2008-01-04  Bruno Haible  <bruno@clisp.org>
42574
42575         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
42576         Require gl_HEADER_STRINGS_H_DEFAULTS, not
42577         gl_HEADER_STRING_H_DEFAULTS.
42578
42579 2008-01-04  Eric Blake  <ebb9@byu.net>
42580
42581         Shorten duration of memmem test.
42582         * tests/test-memmem.c (main): Use alarm to declare failure if test
42583         is taking too long.
42584         Reported by Ralf Wildenhues.
42585
42586 2007-12-21  Simon Josefsson  <simon@josefsson.org>
42587
42588         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
42589         string, needed by strerror.
42590
42591 2008-01-03  Colin Watson  <cjwatson@debian.org>
42592             Bruno Haible  <bruno@clisp.org>
42593
42594         * doc/gnulib-tool.texi (Localization): New section.
42595
42596 2008-01-02  Bruno Haible  <bruno@clisp.org>
42597
42598         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
42599         variables to 'unsigned char *' type.
42600         Reported by Paul Eggert.
42601
42602 2008-01-02  Jim Meyering  <jim@meyering.net>
42603
42604         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
42605
42606 2007-12-31  Jim Meyering  <jim@meyering.net>
42607
42608         Avoid use of private FTS type name.
42609         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
42610
42611 2007-12-30  Karl Berry  <karl@gnu.org>
42612
42613         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
42614         work around defect in Texinfo and/or the standalone Info browser.
42615
42616 2007-12-30  Bruno Haible  <bruno@clisp.org>
42617
42618         Unify 5 copies of the KMP code.
42619         * lib/str-kmp.h: New file.
42620         * lib/c-strcasestr.c: Include str-kmp.h.
42621         (knuth_morris_pratt): Remove function.
42622         (c_strcasestr): Update.
42623         * lib/c-strstr.c: Include str-kmp.h.
42624         (knuth_morris_pratt): Remove function.
42625         (c_strcasestr): Update.
42626         * lib/mbscasestr.c: Include str-kmp.h.
42627         (knuth_morris_pratt_unibyte): Remove function.
42628         * lib/mbsstr.c: Include str-kmp.h.
42629         (knuth_morris_pratt_unibyte): Remove function.
42630         * lib/strcasestr.c: Include str-kmp.h.
42631         (knuth_morris_pratt): Remove function.
42632         (strcasestr): Update.
42633         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
42634         * modules/c-strstr (Files): Likewise.
42635         * modules/mbscasestr (Files): Likewise.
42636         * modules/mbsstr (Files): Likewise.
42637         * modules/strcasestr (Files): Likewise.
42638         Suggested by Paul Eggert.
42639
42640 2007-12-30  Bruno Haible  <bruno@clisp.org>
42641
42642         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
42643         defined.
42644
42645 2007-12-30  Bruno Haible  <bruno@clisp.org>
42646
42647         * lib/xmalloca.h: Include xalloc.h.
42648         (xnmalloca): New macro.
42649
42650 2007-12-30  Bruno Haible  <bruno@clisp.org>
42651
42652         * lib/malloca.h (nmalloca): New macro.
42653         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
42654         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
42655         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
42656         knuth_morris_pratt_multibyte): Likewise.
42657         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
42658         knuth_morris_pratt_multibyte): Likewise.
42659         * lib/memmem.c (knuth_morris_pratt): Likewise.
42660         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
42661
42662 2007-12-25  Bruno Haible  <bruno@clisp.org>
42663
42664         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
42665         * lib/glob.c: Don't include openat.h.
42666         (link_exists2_p): Add back the code that deals with the
42667         !GLOB_ALTDIRFUNC case.
42668         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
42669         let it do the filename concatenation.
42670         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
42671         * modules/glob (Depends-on): Remove openat.
42672
42673 2007-12-31  Bruno Haible  <bruno@clisp.org>
42674
42675         * modules/dirfd (License): Change to LGPLv2+.
42676         Approved by Jim Meyering.
42677
42678 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
42679
42680         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
42681         when multiplying M by sizeof (size_t).
42682
42683 2007-12-10  Martin Lambers  <marlam@marlam.de>
42684
42685         Override getpagesize on mingw.
42686         * lib/getpagesize.c: New file.
42687         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
42688         * modules/getpagesize (Files): Add lib/getpagesize.c.
42689         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
42690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42691         REPLACE_GETPAGESIZE.
42692         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
42693
42694 2007-12-25  Bruno Haible  <bruno@clisp.org>
42695
42696         * modules/localcharset (Notice): New field.
42697         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
42698         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
42699
42700 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
42701             Bruno Haible  <bruno@clisp.org>
42702
42703         Avoid using the syntax symbol() in formatted documentation.
42704         * MODULES.html.sh (func_module): When replacing symbol() with a
42705         hyperlink, remove the parentheses. Show an error if some remain.
42706         Recognize and render the '...' syntax.
42707         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
42708         Rework. Add paragraph about GCC's inlining.
42709         * doc/alloca.texi: Likewise.
42710         * doc/error.texi: Remove parentheses from symbol reference.
42711         * doc/gnulib-intro.texi: Likewise.
42712         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
42713         * modules/fnmatch (Description): Reword to say "the ... function".
42714         * modules/full-read (Description): Likewise.
42715         * modules/full-write (Description): Likewise.
42716         * modules/safe-read (Description): Likewise.
42717         * modules/safe-write (Description): Likewise.
42718         * modules/strchrnul (Description): Likewise.
42719         * modules/trim (Description): Likewise.
42720         * modules/error (Description): Remove parentheses from symbol
42721         references.
42722         * modules/verror (Description): Likewise.
42723         Reported by Karl Berry.
42724
42725 2007-12-25  Bruno Haible  <bruno@clisp.org>
42726
42727         Fixup after 2007-10-16 commit.
42728         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
42729
42730 2007-12-24  Bruno Haible  <bruno@clisp.org>
42731
42732         Make --enable-relocatable work with DESTDIR.
42733         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
42734         to compute installdir from destprog.
42735         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
42736         also set the RELOC_DESTDIR variable.
42737         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42738
42739 2007-12-24  Bruno Haible  <bruno@clisp.org>
42740
42741         Fix link error due to xalloc_die().
42742         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
42743         of xreadlink.
42744         * lib/relocwrapper.c: Update comments.
42745         * build-aux/install-reloc: Remove xreadlink.c from file list.
42746         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
42747         xreadlink.c.
42748         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42749
42750 2007-12-24  Bruno Haible  <bruno@clisp.org>
42751
42752         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
42753         * lib/setenv.h: Remove file.
42754         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
42755         lib/setenv.h.
42756         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
42757         (Depends-on): Add stdlib.
42758         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
42759         gl_FUNC_UNSETENV.
42760         (Include): Replace setenv.h with <stdlib.h>.
42761         * modules/unsetenv: New file.
42762         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
42763         * lib/unsetenv.c: Include <stdlib.h> first.
42764         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
42765         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
42766         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
42767         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
42768         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
42769         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
42771         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42772         * doc/functions/unsetenv.texi: Update.
42773         * modules/xsetenv (Depends-on): Add unsetenv.
42774         * modules/getdate (Depends-on): Likewise.
42775         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
42776         * lib/xsetenv.c: Don't include setenv.h.
42777         * lib/getdate.y: Likewise.
42778         * lib/relocwrapper.c: Likewise.
42779         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
42780         (Depends-on): Add stdlib.
42781         * NEWS: Mention the changes.
42782         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42783
42784 2007-12-23  Bruno Haible  <bruno@clisp.org>
42785
42786         * lib/memmem.c (memmem): Use lowercase variable names. Tab
42787         indentation.
42788
42789 2007-12-23  Bruno Haible  <bruno@clisp.org>
42790
42791         * lib/c-strcasestr.c: Add more comments.
42792         * lib/c-strstr.c: Likewise.
42793         * lib/mbscasestr.c: Likewise.
42794         * lib/mbsstr.c: Likewise.
42795         * lib/strcasestr.c: Likewise.
42796         * lib/memmem.c: Likewise.
42797
42798 2007-12-23  Bruno Haible  <bruno@clisp.org>
42799
42800         * tests/test-memmem.c: Include <string.h> first.
42801
42802 2007-12-22  Bruno Haible  <bruno@clisp.org>
42803
42804         * gnulib-tool (func_create_testdir): Change $auxdir while generating
42805         the contents of $testsbase.
42806         Reported by Ralf Wildenhues.
42807
42808 2007-12-22  Bruno Haible  <bruno@clisp.org>
42809
42810         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
42811         two variables local_ldadd_before, local_ldadd_last.
42812
42813 2007-12-20  Eric Blake  <ebb9@byu.net>
42814
42815         Work around circular library issue when cross-compiling.
42816         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
42817         that progname.o does not need to pull in rpl_memcmp.
42818
42819 2007-12-19  Eric Blake  <ebb9@byu.net>
42820
42821         Fix memmem to avoid O(n^2) worst-case complexity.
42822         * lib/memmem.c (knuth_morris_pratt): New function.
42823         (memmem): Use it if first few naive iterations fail.
42824         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
42825         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
42826         * modules/memchr (License): Likewise.
42827         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
42828         malloca.
42829         * tests/test-memmem.c: Rewrite, borrowing ideas from
42830         test-mbsstr1.c; the old version wouldn't even compile!
42831         * modules/memmem-tests: New file.
42832         * lib/string.in.h (rpl_memmem): Add declaration.
42833         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
42834         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
42835         REPLACE_MEMMEM.
42836
42837 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42838
42839         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
42840         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
42841         before any system include files, and undef after them all.  This
42842         should fix a problem on VMS reported by John E. Malmberg in
42843         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
42844
42845 2007-12-17  Eric Blake  <ebb9@byu.net>
42846
42847         Revert addition of verify, for BSD/OS.
42848         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
42849         can't handle large files, for the sake of obsolete platforms.
42850         * modules/fseeko (Depends-on): Remove verify.
42851         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
42852         * doc/functions/ftello.texi (ftello): Likewise.
42853         * doc/functions/fgetpos.texi (fgetpos): Likewise.
42854         Reported by Larry Jones.
42855
42856 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
42857
42858         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
42859         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
42860
42861 2007-12-17  Jim Meyering  <meyering@redhat.com>
42862
42863         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
42864         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
42865         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
42866         * modules/getcwd (Depends-on): Add openat.
42867         Reported by Petr Salinger.
42868
42869 2007-12-17  Bruno Haible  <bruno@clisp.org>
42870
42871         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
42872         avoid a segmentation fault of the configure test on x86_64 systems.
42873
42874 2007-12-15  Jim Meyering  <meyering@redhat.com>
42875
42876         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
42877
42878 2007-12-13  Eric Blake  <ebb9@byu.net>
42879
42880         Another fseek test.
42881         * tests/test-fseek.c (main): Also test ungetc handling.
42882         * tests/test-fseeko.c (main): Likewise.
42883         * modules/fseeko (Depends-on): Add verify.
42884         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
42885         large.
42886         Reported by Larry Jones.
42887
42888         Fix fseeko on mingw.
42889         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
42890         seek.
42891
42892         Beef up fseek tests.
42893         * tests/test-fseek.c (main): Also test eof handling.
42894         * tests/test-fseeko.c (main): Likewise.
42895         Reported by Larry Jones.
42896
42897 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
42898
42899         Fix fseeko on BSD-based platforms.
42900         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42901         successful seek.
42902
42903 2007-12-12  Eric Blake  <ebb9@byu.net>
42904
42905         Allow circular dependency of separate libtests.a
42906         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
42907         when use_libtests.
42908
42909 2007-12-11  Eric Blake  <ebb9@byu.net>
42910
42911         Fix bug with -0.0L in previous patch.
42912         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
42913         * tests/test-isnan.c (main): Also test on zeroes.
42914         * tests/test-isnanf.c (main): Likewise.
42915         * tests/test-isnanl.h (main): Likewise.
42916
42917         Detect pseudo-denormals on x86 even when cross-compiling.
42918         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
42919         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
42920         invalid bit patterns that happen to satisfy ==.
42921
42922         Avoid link failures with separate libtests.a.
42923         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
42924         last, to satisfy circular dependencies.
42925
42926 2007-12-11  Eric Blake  <ebb9@byu.net>
42927         and Bruno Haible  <bruno@clisp.org>
42928
42929         Fix OpenBSD 4.0 <float.h> handling of long double.
42930         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
42931         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
42932         * doc/headers/float.texi (float.h): Document OpenBSD bug.
42933
42934 2007-12-11  Jim Meyering  <meyering@redhat.com>
42935
42936         * users.txt: Add libvirt.
42937
42938         Support versions of autoconf prior to 2.59c.
42939         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
42940         if it is not already defined.
42941
42942 2007-12-09  Bruno Haible  <bruno@clisp.org>
42943
42944         Let 'gnulib-tool --import' collect sources needed for the tests in
42945         tests/ rather than in lib/.
42946         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
42947         argument. If true, add rules to generate libtests.a, and put libtests.a
42948         into $(LDADD). Consider source files in subdirectories and set
42949         uses_subdirs.
42950         (func_emit_initmacro_start, func_emit_initmacro_end,
42951         func_emit_initmacro_done): Pass all arguments explicitly.
42952         (func_import): Determine two module lists main_modules,
42953         testsrelated_modules. Determine use_libtests. Determine two variables
42954         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
42955         instead of just sed_transform_lib_file. Determine two variables
42956         main_files and testsrelated_files. Compute 'files' as the union of
42957         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
42958         func_add_or_update. In the generated gnulib-comp.m4, collect the
42959         object files for tests/ in different variables than those for lib/.
42960         Substitute LIBTESTS_LIBDEPS.
42961         (func_create_testdir): Combine the uses_subdirs results from
42962         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
42963
42964 2007-12-09  Bruno Haible  <bruno@clisp.org>
42965
42966         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
42967         the build-aux directory.
42968
42969 2007-12-09  Bruno Haible  <bruno@clisp.org>
42970
42971         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
42972         introduced on 2006-09-09.
42973
42974 2007-12-07  Jim Meyering  <meyering@redhat.com>
42975
42976         Let these macros work also with autoconf-2.59.
42977         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
42978         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
42979         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42980
42981 2007-12-06  Jim Meyering  <meyering@redhat.com>
42982
42983         Avoid a configure-time syntax error in gl_FUNC_ACL.
42984         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
42985         function in each branch, before testing the cache variable.
42986
42987 2007-12-04  Eric Blake  <ebb9@byu.net>
42988
42989         Make scripts executable.
42990         * build-aux/config.guess: Add execute permissions.
42991         * build-aux/config.sub: Likewise.
42992         * build-aux/gendocs.sh: Likewise.
42993
42994         Fix frexp on mingw.
42995         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
42996         cross-compiling.
42997         * doc/functions/frexp.texi (frexp): Document the bug.
42998
42999         Make cygwin fseeko check more reliable.
43000         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
43001         version numbers, rather than unrelated feature check.
43002         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
43003         * doc/functions/ftello.texi (ftello): Likewise.
43004         Reported by Bruno Haible.
43005
43006         * m4/strerror.m4: Bump version number.
43007
43008 2007-12-03  Bruno Haible  <bruno@clisp.org>
43009
43010         * doc/functions/mprotect.texi: Mention the mingw problem.
43011
43012 2007-12-03  Eric Blake  <ebb9@byu.net>
43013
43014         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
43015         REPLACE_STRERROR is initialized before this macro.
43016
43017 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
43018
43019         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
43020         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
43021         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
43022         put -lsec in even for programs other than 'ls'.  This fixes a problem
43023         for gettext reported by Bruno Haible in
43024         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
43025         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
43026         Add support for Solaris 10.  This isn't efficient, but should get the
43027         job done for now.
43028
43029 2007-12-03  James Youngman  <jay@gnu.org>
43030
43031         * doc/regexprops-generic.texi: change "an close-group" to "a
43032         close-group" and "illegal" to "not allowed".
43033
43034 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43035
43036         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
43037         pr_byname.h. Needed for the rare case when the maintainer has done
43038         "make maintainer-clean" in the source directory and then attempts a
43039         build outside the source directory.
43040         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
43041         scripts_byname.h.
43042
43043 2007-12-02  Martin Lambers <marlam@marlam.de>
43044             Bruno Haible  <bruno@clisp.org>
43045
43046         * lib/getpagesize.h: Remove file.
43047         * lib/unistd.in.h: Include declaration of getpagesize here.
43048         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
43049         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
43050         HAVE_SYS_PARAM_H.
43051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
43052         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43053         * modules/getpagesize (Files): Remove lib/getpagesize.h.
43054         (Depends-on): Add unistd.
43055         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43056         (Include): Use <unistd.h> instead of getpagesize.h.
43057         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
43058         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43059         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
43060         gl_GETPAGESIZE invocation, already handled by module dependency.
43061         * lib/pagealign_alloc.c: Don't include getpagesize.h.
43062
43063 2007-12-02  Bruno Haible  <bruno@clisp.org>
43064
43065         * modules/strings-tests: New file.
43066         * tests/test-strings.c: New file.
43067
43068         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
43069         * lib/strings.in.h: New file.
43070         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
43071         * m4/strings_h.m4: New file.
43072         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
43073         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
43074         * modules/strings: New file.
43075         * modules/string (Makefile.am): Update.
43076         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
43077         Reported by Karl Berry.
43078
43079 2007-12-01  Eric Blake  <ebb9@byu.net>
43080
43081         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
43082         accomodate fix in cygwin 1.5.25.
43083
43084 2007-12-01  Jim Meyering  <meyering@redhat.com>
43085
43086         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
43087         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
43088         that would inhibit utf8-optimization of a regexp containing line-
43089         or buffer-anchors, e.g., `^', `$'.
43090
43091 2007-11-30  Bruno Haible  <bruno@clisp.org>
43092
43093         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
43094         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
43095         glthread_recursive_lock_init.
43096         * lib/lock.c (glthread_recursive_lock_init)
43097         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
43098         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43099
43100 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
43101
43102         New function qset_acl, like set_acl but with syscall semantics.
43103         * lib/acl.h (qset_acl): New decl.
43104         * lib/acl.c (qset_acl): New function.
43105         (set_acl): Use new function.  Use more-consistent diagnostics.
43106
43107 2007-11-28  Jim Meyering  <meyering@redhat.com>
43108
43109         * modules/physmem (License): Change from GPL to LGPLv2+.
43110
43111 2007-11-26  Bruno Haible  <bruno@clisp.org>
43112
43113         * lib/vasnprintf.c (decode_long_double): Don't abort if the
43114         'long double' type has excess precision.
43115         Reported by Jim Meyering in
43116         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
43117
43118 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43119
43120         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
43121         Sync from <http://gnu.org/licenses>.
43122         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
43123         with license text from same location.
43124         * doc/maintain.texi, doc/standards.texi:  Sync from
43125         <http://savannah.gnu.org/projects/gnustandards>.
43126
43127 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
43128         and Jim Meyering  <meyering@redhat.com>
43129
43130         Adjust getdate' grammar to accept a slightly more regular language.
43131         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
43132         Before, the former was rejected.
43133         * lib/getdate.y (digits_to_date_time): New function, factored
43134         out of ...
43135         (number): ...here.  Just call digits_to_date_time.
43136         (hybrid): New non-terminal to handle an <unsigned number,
43137         signed relative offset> sequence consistently.
43138
43139 2007-11-18  Jim Meyering  <meyering@redhat.com>
43140
43141         Pull my changes from coreutils:
43142         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
43143         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
43144         use of $gnulib_tool_option_extras, so that it's separated from the
43145         preceding argument.
43146
43147         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
43148         * build-aux/bootstrap (cp_mark_as_generated): Create any required
43149         parent destination directories before copying a file into place.
43150
43151 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
43152
43153         bootstrap: work also with 4-argument variant of AC_INIT
43154         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
43155
43156 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43157
43158         Port test-getaddrinfo to Solaris.
43159         Problem reported by Bruno Haible in
43160         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
43161         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
43162         explanation of setting 'hints'.
43163         Don't reject an implementation merely because it returns EAI_SERVICE.
43164         (EAI_SERVICE): Define to 0 if not defined.
43165
43166 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43167
43168         The license of gnu-make and posix-shell is now "GPLed build tool".
43169         * modules/gnu-make (License): Likewise.
43170         * modules/posix-shell (License): Likewise.
43171
43172         New module posix-shell, for determining a POSIX shell
43173         or perhaps something that is close enough to a POSIX shell.
43174         * m4/posix-shell.m4: New file.
43175         * modules/posix-shell: New file.
43176
43177         * MODULES.html.sh: Mention new module.
43178
43179         New module gnu-make, for determining whether we're using GNU Make.
43180         * m4/gnu-make.m4: New file.
43181         * modules/gnu-make: New file.
43182         * MODULES.html.sh: Mention new module.
43183
43184 2007-11-14  Jim Meyering  <meyering@redhat.com>
43185
43186         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
43187         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
43188         use this macro to create a function _definition_.
43189         Remove useless "#undef ARGMATCH_DIE".
43190
43191 2007-11-14  Bruno Haible  <bruno@clisp.org>
43192
43193         * lib/config.charset: Update for OpenBSD 4.1.
43194         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
43195
43196 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
43197
43198         Document 64-bit #if problems in stdint.texi.
43199         * doc/headers/stdint.texi (stdint.h): Mention problems with
43200         64-bit-#if, and how to work around them.
43201
43202         Don't insist on 'long long int' support in the preprocessor.  It
43203         breaks too many things.  For example, PRIdMAX still uses a 'long
43204         long int' format with the latest Sun compiler, even though
43205         HAVE_LONG_LONG_INT isn't defined due to that compiler's
43206         preprocessor problem.  This causes the latest coreutils to dump
43207         core on Solaris 10 sparc with the Sun C compiler.
43208         Instead, fix the 2007-10-16 problem in a different way, by evaluating
43209         the troublesome expressions at configure-time, not at #if-time.
43210         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
43211         preprocessor.
43212         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
43213         compile-time C checks, done at 'configure'-time.
43214         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
43215         * modules/inttypes (Makefile): Substitute the new symbols that
43216         gl_INTTYPES_H now generates.
43217         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
43218
43219 2007-11-12  Bruno Haible  <bruno@clisp.org>
43220
43221         Tests for Unicode character classification functions.
43222
43223         * modules/unictype/bidicategory-byname-tests: New file.
43224         * modules/unictype/bidicategory-name-tests: New file.
43225         * modules/unictype/bidicategory-of-tests: New file.
43226         * modules/unictype/bidicategory-test-tests: New file.
43227         * modules/unictype/block-list-tests: New file.
43228         * modules/unictype/block-of-tests: New file.
43229         * modules/unictype/block-test-tests: New file.
43230         * modules/unictype/category-C-tests: New file.
43231         * modules/unictype/category-Cc-tests: New file.
43232         * modules/unictype/category-Cf-tests: New file.
43233         * modules/unictype/category-Cn-tests: New file.
43234         * modules/unictype/category-Co-tests: New file.
43235         * modules/unictype/category-Cs-tests: New file.
43236         * modules/unictype/category-L-tests: New file.
43237         * modules/unictype/category-Ll-tests: New file.
43238         * modules/unictype/category-Lm-tests: New file.
43239         * modules/unictype/category-Lo-tests: New file.
43240         * modules/unictype/category-Lt-tests: New file.
43241         * modules/unictype/category-Lu-tests: New file.
43242         * modules/unictype/category-M-tests: New file.
43243         * modules/unictype/category-Mc-tests: New file.
43244         * modules/unictype/category-Me-tests: New file.
43245         * modules/unictype/category-Mn-tests: New file.
43246         * modules/unictype/category-N-tests: New file.
43247         * modules/unictype/category-Nd-tests: New file.
43248         * modules/unictype/category-Nl-tests: New file.
43249         * modules/unictype/category-No-tests: New file.
43250         * modules/unictype/category-P-tests: New file.
43251         * modules/unictype/category-Pc-tests: New file.
43252         * modules/unictype/category-Pd-tests: New file.
43253         * modules/unictype/category-Pe-tests: New file.
43254         * modules/unictype/category-Pf-tests: New file.
43255         * modules/unictype/category-Pi-tests: New file.
43256         * modules/unictype/category-Po-tests: New file.
43257         * modules/unictype/category-Ps-tests: New file.
43258         * modules/unictype/category-S-tests: New file.
43259         * modules/unictype/category-Sc-tests: New file.
43260         * modules/unictype/category-Sk-tests: New file.
43261         * modules/unictype/category-Sm-tests: New file.
43262         * modules/unictype/category-So-tests: New file.
43263         * modules/unictype/category-Z-tests: New file.
43264         * modules/unictype/category-Zl-tests: New file.
43265         * modules/unictype/category-Zp-tests: New file.
43266         * modules/unictype/category-Zs-tests: New file.
43267         * modules/unictype/category-and-not-tests: New file.
43268         * modules/unictype/category-and-tests: New file.
43269         * modules/unictype/category-byname-tests: New file.
43270         * modules/unictype/category-name-tests: New file.
43271         * modules/unictype/category-none-tests: New file.
43272         * modules/unictype/category-of-tests: New file.
43273         * modules/unictype/category-or-tests: New file.
43274         * modules/unictype/category-test-withtable-tests: New file.
43275         * modules/unictype/combining-class-tests: New file.
43276         * modules/unictype/ctype-alnum-tests: New file.
43277         * modules/unictype/ctype-alpha-tests: New file.
43278         * modules/unictype/ctype-blank-tests: New file.
43279         * modules/unictype/ctype-cntrl-tests: New file.
43280         * modules/unictype/ctype-digit-tests: New file.
43281         * modules/unictype/ctype-graph-tests: New file.
43282         * modules/unictype/ctype-lower-tests: New file.
43283         * modules/unictype/ctype-print-tests: New file.
43284         * modules/unictype/ctype-punct-tests: New file.
43285         * modules/unictype/ctype-space-tests: New file.
43286         * modules/unictype/ctype-upper-tests: New file.
43287         * modules/unictype/ctype-xdigit-tests: New file.
43288         * modules/unictype/decimal-digit-tests: New file.
43289         * modules/unictype/digit-tests: New file.
43290         * modules/unictype/mirror-tests: New file.
43291         * modules/unictype/numeric-tests: New file.
43292         * modules/unictype/property-alphabetic-tests: New file.
43293         * modules/unictype/property-ascii-hex-digit-tests: New file.
43294         * modules/unictype/property-bidi-arabic-digit-tests: New file.
43295         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
43296         * modules/unictype/property-bidi-block-separator-tests: New file.
43297         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
43298         * modules/unictype/property-bidi-common-separator-tests: New file.
43299         * modules/unictype/property-bidi-control-tests: New file.
43300         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
43301         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
43302         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
43303         * modules/unictype/property-bidi-european-digit-tests: New file.
43304         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
43305         * modules/unictype/property-bidi-left-to-right-tests: New file.
43306         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
43307         * modules/unictype/property-bidi-other-neutral-tests: New file.
43308         * modules/unictype/property-bidi-pdf-tests: New file.
43309         * modules/unictype/property-bidi-segment-separator-tests: New file.
43310         * modules/unictype/property-bidi-whitespace-tests: New file.
43311         * modules/unictype/property-byname-tests: New file.
43312         * modules/unictype/property-combining-tests: New file.
43313         * modules/unictype/property-composite-tests: New file.
43314         * modules/unictype/property-currency-symbol-tests: New file.
43315         * modules/unictype/property-dash-tests: New file.
43316         * modules/unictype/property-decimal-digit-tests: New file.
43317         * modules/unictype/property-default-ignorable-code-point-tests: New file.
43318         * modules/unictype/property-deprecated-tests: New file.
43319         * modules/unictype/property-diacritic-tests: New file.
43320         * modules/unictype/property-extender-tests: New file.
43321         * modules/unictype/property-format-control-tests: New file.
43322         * modules/unictype/property-grapheme-base-tests: New file.
43323         * modules/unictype/property-grapheme-extend-tests: New file.
43324         * modules/unictype/property-grapheme-link-tests: New file.
43325         * modules/unictype/property-hex-digit-tests: New file.
43326         * modules/unictype/property-hyphen-tests: New file.
43327         * modules/unictype/property-id-continue-tests: New file.
43328         * modules/unictype/property-id-start-tests: New file.
43329         * modules/unictype/property-ideographic-tests: New file.
43330         * modules/unictype/property-ids-binary-operator-tests: New file.
43331         * modules/unictype/property-ids-trinary-operator-tests: New file.
43332         * modules/unictype/property-ignorable-control-tests: New file.
43333         * modules/unictype/property-iso-control-tests: New file.
43334         * modules/unictype/property-join-control-tests: New file.
43335         * modules/unictype/property-left-of-pair-tests: New file.
43336         * modules/unictype/property-line-separator-tests: New file.
43337         * modules/unictype/property-logical-order-exception-tests: New file.
43338         * modules/unictype/property-lowercase-tests: New file.
43339         * modules/unictype/property-math-tests: New file.
43340         * modules/unictype/property-non-break-tests: New file.
43341         * modules/unictype/property-not-a-character-tests: New file.
43342         * modules/unictype/property-numeric-tests: New file.
43343         * modules/unictype/property-other-alphabetic-tests: New file.
43344         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
43345         * modules/unictype/property-other-grapheme-extend-tests: New file.
43346         * modules/unictype/property-other-id-continue-tests: New file.
43347         * modules/unictype/property-other-id-start-tests: New file.
43348         * modules/unictype/property-other-lowercase-tests: New file.
43349         * modules/unictype/property-other-math-tests: New file.
43350         * modules/unictype/property-other-uppercase-tests: New file.
43351         * modules/unictype/property-paired-punctuation-tests: New file.
43352         * modules/unictype/property-paragraph-separator-tests: New file.
43353         * modules/unictype/property-pattern-syntax-tests: New file.
43354         * modules/unictype/property-pattern-white-space-tests: New file.
43355         * modules/unictype/property-private-use-tests: New file.
43356         * modules/unictype/property-punctuation-tests: New file.
43357         * modules/unictype/property-quotation-mark-tests: New file.
43358         * modules/unictype/property-radical-tests: New file.
43359         * modules/unictype/property-sentence-terminal-tests: New file.
43360         * modules/unictype/property-soft-dotted-tests: New file.
43361         * modules/unictype/property-space-tests: New file.
43362         * modules/unictype/property-terminal-punctuation-tests: New file.
43363         * modules/unictype/property-test-tests: New file.
43364         * modules/unictype/property-titlecase-tests: New file.
43365         * modules/unictype/property-unassigned-code-value-tests: New file.
43366         * modules/unictype/property-unified-ideograph-tests: New file.
43367         * modules/unictype/property-uppercase-tests: New file.
43368         * modules/unictype/property-variation-selector-tests: New file.
43369         * modules/unictype/property-white-space-tests: New file.
43370         * modules/unictype/property-xid-continue-tests: New file.
43371         * modules/unictype/property-xid-start-tests: New file.
43372         * modules/unictype/property-zero-width-tests: New file.
43373         * modules/unictype/scripts-tests: New file.
43374         * modules/unictype/syntax-c-ident-tests: New file.
43375         * modules/unictype/syntax-c-whitespace-tests: New file.
43376         * modules/unictype/syntax-java-ident-tests: New file.
43377         * modules/unictype/syntax-java-whitespace-tests: New file.
43378         * tests/unictype/test-bidi_byname.c: New file.
43379         * tests/unictype/test-bidi_name.c: New file.
43380         * tests/unictype/test-bidi_of.c: New file.
43381         * tests/unictype/test-bidi_test.c: New file.
43382         * tests/unictype/test-block_list.c: New file.
43383         * tests/unictype/test-block_of.c: New file.
43384         * tests/unictype/test-block_test.c: New file.
43385         * tests/unictype/test-categ_and.c: New file.
43386         * tests/unictype/test-categ_and_not.c: New file.
43387         * tests/unictype/test-categ_byname.c: New file.
43388         * tests/unictype/test-categ_name.c: New file.
43389         * tests/unictype/test-categ_none.c: New file.
43390         * tests/unictype/test-categ_of.c: New file.
43391         * tests/unictype/test-categ_or.c: New file.
43392         * tests/unictype/test-categ_test_withtable.c: New file.
43393         * tests/unictype/test-combining.c: New file.
43394         * tests/unictype/test-decdigit.c: New file.
43395         * tests/unictype/test-digit.c: New file.
43396         * tests/unictype/test-mirror.c: New file.
43397         * tests/unictype/test-numeric.c: New file.
43398         * tests/unictype/test-pr_byname.c: New file.
43399         * tests/unictype/test-pr_test.c: New file.
43400         * tests/unictype/test-predicate-part1.h: New file.
43401         * tests/unictype/test-predicate-part2.h: New file.
43402         * tests/unictype/test-scripts.c: New file.
43403         * tests/unictype/test-sy_c_ident.c: New file.
43404         * tests/unictype/test-sy_java_ident.c: New file.
43405
43406         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
43407         for Unicode 5.0.0.
43408         * tests/unictype/test-categ_Cc.c: Likewise.
43409         * tests/unictype/test-categ_Cf.c: Likewise.
43410         * tests/unictype/test-categ_Cn.c: Likewise.
43411         * tests/unictype/test-categ_Co.c: Likewise.
43412         * tests/unictype/test-categ_Cs.c: Likewise.
43413         * tests/unictype/test-categ_L.c: Likewise.
43414         * tests/unictype/test-categ_Ll.c: Likewise.
43415         * tests/unictype/test-categ_Lm.c: Likewise.
43416         * tests/unictype/test-categ_Lo.c: Likewise.
43417         * tests/unictype/test-categ_Lt.c: Likewise.
43418         * tests/unictype/test-categ_Lu.c: Likewise.
43419         * tests/unictype/test-categ_M.c: Likewise.
43420         * tests/unictype/test-categ_Mc.c: Likewise.
43421         * tests/unictype/test-categ_Me.c: Likewise.
43422         * tests/unictype/test-categ_Mn.c: Likewise.
43423         * tests/unictype/test-categ_N.c: Likewise.
43424         * tests/unictype/test-categ_Nd.c: Likewise.
43425         * tests/unictype/test-categ_Nl.c: Likewise.
43426         * tests/unictype/test-categ_No.c: Likewise.
43427         * tests/unictype/test-categ_P.c: Likewise.
43428         * tests/unictype/test-categ_Pc.c: Likewise.
43429         * tests/unictype/test-categ_Pd.c: Likewise.
43430         * tests/unictype/test-categ_Pe.c: Likewise.
43431         * tests/unictype/test-categ_Pf.c: Likewise.
43432         * tests/unictype/test-categ_Pi.c: Likewise.
43433         * tests/unictype/test-categ_Po.c: Likewise.
43434         * tests/unictype/test-categ_Ps.c: Likewise.
43435         * tests/unictype/test-categ_S.c: Likewise.
43436         * tests/unictype/test-categ_Sc.c: Likewise.
43437         * tests/unictype/test-categ_Sk.c: Likewise.
43438         * tests/unictype/test-categ_Sm.c: Likewise.
43439         * tests/unictype/test-categ_So.c: Likewise.
43440         * tests/unictype/test-categ_Z.c: Likewise.
43441         * tests/unictype/test-categ_Zl.c: Likewise.
43442         * tests/unictype/test-categ_Zp.c: Likewise.
43443         * tests/unictype/test-categ_Zs.c: Likewise.
43444         * tests/unictype/test-ctype_alnum.c: Likewise.
43445         * tests/unictype/test-ctype_alpha.c: Likewise.
43446         * tests/unictype/test-ctype_blank.c: Likewise.
43447         * tests/unictype/test-ctype_cntrl.c: Likewise.
43448         * tests/unictype/test-ctype_digit.c: Likewise.
43449         * tests/unictype/test-ctype_graph.c: Likewise.
43450         * tests/unictype/test-ctype_lower.c: Likewise.
43451         * tests/unictype/test-ctype_print.c: Likewise.
43452         * tests/unictype/test-ctype_punct.c: Likewise.
43453         * tests/unictype/test-ctype_space.c: Likewise.
43454         * tests/unictype/test-ctype_upper.c: Likewise.
43455         * tests/unictype/test-ctype_xdigit.c: Likewise.
43456         * tests/unictype/test-decdigit.h: Likewise.
43457         * tests/unictype/test-digit.h: Likewise.
43458         * tests/unictype/test-numeric.h: Likewise.
43459         * tests/unictype/test-pr_alphabetic.c: Likewise.
43460         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
43461         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
43462         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
43463         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
43464         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
43465         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
43466         * tests/unictype/test-pr_bidi_control.c: Likewise.
43467         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
43468         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
43469         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
43470         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
43471         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
43472         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
43473         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
43474         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
43475         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
43476         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
43477         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
43478         * tests/unictype/test-pr_combining.c: Likewise.
43479         * tests/unictype/test-pr_composite.c: Likewise.
43480         * tests/unictype/test-pr_currency_symbol.c: Likewise.
43481         * tests/unictype/test-pr_dash.c: Likewise.
43482         * tests/unictype/test-pr_decimal_digit.c: Likewise.
43483         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
43484         * tests/unictype/test-pr_deprecated.c: Likewise.
43485         * tests/unictype/test-pr_diacritic.c: Likewise.
43486         * tests/unictype/test-pr_extender.c: Likewise.
43487         * tests/unictype/test-pr_format_control.c: Likewise.
43488         * tests/unictype/test-pr_grapheme_base.c: Likewise.
43489         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
43490         * tests/unictype/test-pr_grapheme_link.c: Likewise.
43491         * tests/unictype/test-pr_hex_digit.c: Likewise.
43492         * tests/unictype/test-pr_hyphen.c: Likewise.
43493         * tests/unictype/test-pr_id_continue.c: Likewise.
43494         * tests/unictype/test-pr_id_start.c: Likewise.
43495         * tests/unictype/test-pr_ideographic.c: Likewise.
43496         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
43497         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
43498         * tests/unictype/test-pr_ignorable_control.c: Likewise.
43499         * tests/unictype/test-pr_iso_control.c: Likewise.
43500         * tests/unictype/test-pr_join_control.c: Likewise.
43501         * tests/unictype/test-pr_left_of_pair.c: Likewise.
43502         * tests/unictype/test-pr_line_separator.c: Likewise.
43503         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
43504         * tests/unictype/test-pr_lowercase.c: Likewise.
43505         * tests/unictype/test-pr_math.c: Likewise.
43506         * tests/unictype/test-pr_non_break.c: Likewise.
43507         * tests/unictype/test-pr_not_a_character.c: Likewise.
43508         * tests/unictype/test-pr_numeric.c: Likewise.
43509         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
43510         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
43511         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
43512         * tests/unictype/test-pr_other_id_continue.c: Likewise.
43513         * tests/unictype/test-pr_other_id_start.c: Likewise.
43514         * tests/unictype/test-pr_other_lowercase.c: Likewise.
43515         * tests/unictype/test-pr_other_math.c: Likewise.
43516         * tests/unictype/test-pr_other_uppercase.c: Likewise.
43517         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
43518         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
43519         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
43520         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
43521         * tests/unictype/test-pr_private_use.c: Likewise.
43522         * tests/unictype/test-pr_punctuation.c: Likewise.
43523         * tests/unictype/test-pr_quotation_mark.c: Likewise.
43524         * tests/unictype/test-pr_radical.c: Likewise.
43525         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
43526         * tests/unictype/test-pr_soft_dotted.c: Likewise.
43527         * tests/unictype/test-pr_space.c: Likewise.
43528         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
43529         * tests/unictype/test-pr_titlecase.c: Likewise.
43530         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
43531         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
43532         * tests/unictype/test-pr_uppercase.c: Likewise.
43533         * tests/unictype/test-pr_variation_selector.c: Likewise.
43534         * tests/unictype/test-pr_white_space.c: Likewise.
43535         * tests/unictype/test-pr_xid_continue.c: Likewise.
43536         * tests/unictype/test-pr_xid_start.c: Likewise.
43537         * tests/unictype/test-pr_zero_width.c: Likewise.
43538         * tests/unictype/test-sy_c_whitespace.c: Likewise.
43539         * tests/unictype/test-sy_java_whitespace.c: Likewise.
43540
43541 2007-11-12  Bruno Haible  <bruno@clisp.org>
43542
43543         Unicode character classification functions.
43544         * lib/unictype.h: New file.
43545         * modules/unictype/base: New file.
43546         * modules/unictype/category-L: New file.
43547         * modules/unictype/category-Lu: New file.
43548         * modules/unictype/category-Ll: New file.
43549         * modules/unictype/category-Lt: New file.
43550         * modules/unictype/category-Lm: New file.
43551         * modules/unictype/category-Lo: New file.
43552         * modules/unictype/category-M: New file.
43553         * modules/unictype/category-Mn: New file.
43554         * modules/unictype/category-Mc: New file.
43555         * modules/unictype/category-Me: New file.
43556         * modules/unictype/category-N: New file.
43557         * modules/unictype/category-Nd: New file.
43558         * modules/unictype/category-Nl: New file.
43559         * modules/unictype/category-No: New file.
43560         * modules/unictype/category-P: New file.
43561         * modules/unictype/category-Pc: New file.
43562         * modules/unictype/category-Pd: New file.
43563         * modules/unictype/category-Ps: New file.
43564         * modules/unictype/category-Pe: New file.
43565         * modules/unictype/category-Pi: New file.
43566         * modules/unictype/category-Pf: New file.
43567         * modules/unictype/category-Po: New file.
43568         * modules/unictype/category-S: New file.
43569         * modules/unictype/category-Sm: New file.
43570         * modules/unictype/category-Sc: New file.
43571         * modules/unictype/category-Sk: New file.
43572         * modules/unictype/category-So: New file.
43573         * modules/unictype/category-Z: New file.
43574         * modules/unictype/category-Zs: New file.
43575         * modules/unictype/category-Zl: New file.
43576         * modules/unictype/category-Zp: New file.
43577         * modules/unictype/category-C: New file.
43578         * modules/unictype/category-Cc: New file.
43579         * modules/unictype/category-Cf: New file.
43580         * modules/unictype/category-Cs: New file.
43581         * modules/unictype/category-Co: New file.
43582         * modules/unictype/category-Cn: New file.
43583         * modules/unictype/category-or: New file.
43584         * modules/unictype/category-of: New file.
43585         * modules/unictype/category-test: New file.
43586         * modules/unictype/category-test-withtable: New file.
43587         * modules/unictype/category-byname: New file.
43588         * modules/unictype/category-none: New file.
43589         * modules/unictype/category-and: New file.
43590         * modules/unictype/category-and-not: New file.
43591         * modules/unictype/category-name: New file.
43592         * modules/unictype/combining-class: New file.
43593         * modules/unictype/category-all: New file.
43594         * modules/unictype/bidicategory-all: New file.
43595         * modules/unictype/bidicategory-byname: New file.
43596         * modules/unictype/bidicategory-name: New file.
43597         * modules/unictype/bidicategory-of: New file.
43598         * modules/unictype/bidicategory-test: New file.
43599         * modules/unictype/decimal-digit: New file.
43600         * modules/unictype/digit: New file.
43601         * modules/unictype/numeric: New file.
43602         * modules/unictype/mirror: New file.
43603         * modules/unictype/property-white-space: New file.
43604         * modules/unictype/property-alphabetic: New file.
43605         * modules/unictype/property-other-alphabetic: New file.
43606         * modules/unictype/property-not-a-character: New file.
43607         * modules/unictype/property-default-ignorable-code-point: New file.
43608         * modules/unictype/property-other-default-ignorable-code-point: New
43609         file.
43610         * modules/unictype/property-deprecated: New file.
43611         * modules/unictype/property-logical-order-exception: New file.
43612         * modules/unictype/property-variation-selector: New file.
43613         * modules/unictype/property-private-use: New file.
43614         * modules/unictype/property-unassigned-code-value: New file.
43615         * modules/unictype/property-uppercase: New file.
43616         * modules/unictype/property-other-uppercase: New file.
43617         * modules/unictype/property-lowercase: New file.
43618         * modules/unictype/property-other-lowercase: New file.
43619         * modules/unictype/property-titlecase: New file.
43620         * modules/unictype/property-soft-dotted: New file.
43621         * modules/unictype/property-id-start: New file.
43622         * modules/unictype/property-other-id-start: New file.
43623         * modules/unictype/property-id-continue: New file.
43624         * modules/unictype/property-other-id-continue: New file.
43625         * modules/unictype/property-xid-start: New file.
43626         * modules/unictype/property-xid-continue: New file.
43627         * modules/unictype/property-pattern-white-space: New file.
43628         * modules/unictype/property-pattern-syntax: New file.
43629         * modules/unictype/property-join-control: New file.
43630         * modules/unictype/property-grapheme-base: New file.
43631         * modules/unictype/property-grapheme-extend: New file.
43632         * modules/unictype/property-other-grapheme-extend: New file.
43633         * modules/unictype/property-grapheme-link: New file.
43634         * modules/unictype/property-bidi-control: New file.
43635         * modules/unictype/property-bidi-left-to-right: New file.
43636         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
43637         * modules/unictype/property-bidi-arabic-right-to-left: New file.
43638         * modules/unictype/property-bidi-european-digit: New file.
43639         * modules/unictype/property-bidi-eur-num-separator: New file.
43640         * modules/unictype/property-bidi-eur-num-terminator: New file.
43641         * modules/unictype/property-bidi-arabic-digit: New file.
43642         * modules/unictype/property-bidi-common-separator: New file.
43643         * modules/unictype/property-bidi-block-separator: New file.
43644         * modules/unictype/property-bidi-segment-separator: New file.
43645         * modules/unictype/property-bidi-whitespace: New file.
43646         * modules/unictype/property-bidi-non-spacing-mark: New file.
43647         * modules/unictype/property-bidi-boundary-neutral: New file.
43648         * modules/unictype/property-bidi-pdf: New file.
43649         * modules/unictype/property-bidi-embedding-or-override: New file.
43650         * modules/unictype/property-bidi-other-neutral: New file.
43651         * modules/unictype/property-hex-digit: New file.
43652         * modules/unictype/property-ascii-hex-digit: New file.
43653         * modules/unictype/property-ideographic: New file.
43654         * modules/unictype/property-unified-ideograph: New file.
43655         * modules/unictype/property-radical: New file.
43656         * modules/unictype/property-ids-binary-operator: New file.
43657         * modules/unictype/property-ids-trinary-operator: New file.
43658         * modules/unictype/property-zero-width: New file.
43659         * modules/unictype/property-space: New file.
43660         * modules/unictype/property-non-break: New file.
43661         * modules/unictype/property-iso-control: New file.
43662         * modules/unictype/property-format-control: New file.
43663         * modules/unictype/property-dash: New file.
43664         * modules/unictype/property-hyphen: New file.
43665         * modules/unictype/property-punctuation: New file.
43666         * modules/unictype/property-line-separator: New file.
43667         * modules/unictype/property-paragraph-separator: New file.
43668         * modules/unictype/property-quotation-mark: New file.
43669         * modules/unictype/property-sentence-terminal: New file.
43670         * modules/unictype/property-terminal-punctuation: New file.
43671         * modules/unictype/property-currency-symbol: New file.
43672         * modules/unictype/property-math: New file.
43673         * modules/unictype/property-other-math: New file.
43674         * modules/unictype/property-paired-punctuation: New file.
43675         * modules/unictype/property-left-of-pair: New file.
43676         * modules/unictype/property-combining: New file.
43677         * modules/unictype/property-composite: New file.
43678         * modules/unictype/property-decimal-digit: New file.
43679         * modules/unictype/property-numeric: New file.
43680         * modules/unictype/property-diacritic: New file.
43681         * modules/unictype/property-extender: New file.
43682         * modules/unictype/property-ignorable-control: New file.
43683         * modules/unictype/property-test: New file.
43684         * modules/unictype/property-byname: New file.
43685         * modules/unictype/property-all: New file.
43686         * modules/unictype/scripts: New file.
43687         * modules/unictype/scripts-all: New file.
43688         * modules/unictype/block-of: New file.
43689         * modules/unictype/block-test: New file.
43690         * modules/unictype/block-list: New file.
43691         * modules/unictype/block-all: New file.
43692         * modules/unictype/syntax-c-whitespace: New file.
43693         * modules/unictype/syntax-java-whitespace: New file.
43694         * modules/unictype/syntax-c-ident: New file.
43695         * modules/unictype/syntax-java-ident: New file.
43696         * modules/unictype/ctype-alnum: New file.
43697         * modules/unictype/ctype-alpha: New file.
43698         * modules/unictype/ctype-cntrl: New file.
43699         * modules/unictype/ctype-digit: New file.
43700         * modules/unictype/ctype-graph: New file.
43701         * modules/unictype/ctype-lower: New file.
43702         * modules/unictype/ctype-print: New file.
43703         * modules/unictype/ctype-punct: New file.
43704         * modules/unictype/ctype-space: New file.
43705         * modules/unictype/ctype-upper: New file.
43706         * modules/unictype/ctype-xdigit: New file.
43707         * modules/unictype/ctype-blank: New file.
43708         * lib/unictype/bidi_byname.c: New file.
43709         * lib/unictype/bidi_name.c: New file.
43710         * lib/unictype/bidi_of.c: New file.
43711         * lib/unictype/bidi_test.c: New file.
43712         * lib/unictype/bitmap.h: New file.
43713         * lib/unictype/block_test.c: New file.
43714         * lib/unictype/blocks.c: New file.
43715         * lib/unictype/categ_C.c: New file.
43716         * lib/unictype/categ_Cc.c: New file.
43717         * lib/unictype/categ_Cf.c: New file.
43718         * lib/unictype/categ_Cn.c: New file.
43719         * lib/unictype/categ_Co.c: New file.
43720         * lib/unictype/categ_Cs.c: New file.
43721         * lib/unictype/categ_L.c: New file.
43722         * lib/unictype/categ_Ll.c: New file.
43723         * lib/unictype/categ_Lm.c: New file.
43724         * lib/unictype/categ_Lo.c: New file.
43725         * lib/unictype/categ_Lt.c: New file.
43726         * lib/unictype/categ_Lu.c: New file.
43727         * lib/unictype/categ_M.c: New file.
43728         * lib/unictype/categ_Mc.c: New file.
43729         * lib/unictype/categ_Me.c: New file.
43730         * lib/unictype/categ_Mn.c: New file.
43731         * lib/unictype/categ_N.c: New file.
43732         * lib/unictype/categ_Nd.c: New file.
43733         * lib/unictype/categ_Nl.c: New file.
43734         * lib/unictype/categ_No.c: New file.
43735         * lib/unictype/categ_P.c: New file.
43736         * lib/unictype/categ_Pc.c: New file.
43737         * lib/unictype/categ_Pd.c: New file.
43738         * lib/unictype/categ_Pe.c: New file.
43739         * lib/unictype/categ_Pf.c: New file.
43740         * lib/unictype/categ_Pi.c: New file.
43741         * lib/unictype/categ_Po.c: New file.
43742         * lib/unictype/categ_Ps.c: New file.
43743         * lib/unictype/categ_S.c: New file.
43744         * lib/unictype/categ_Sc.c: New file.
43745         * lib/unictype/categ_Sk.c: New file.
43746         * lib/unictype/categ_Sm.c: New file.
43747         * lib/unictype/categ_So.c: New file.
43748         * lib/unictype/categ_Z.c: New file.
43749         * lib/unictype/categ_Zl.c: New file.
43750         * lib/unictype/categ_Zp.c: New file.
43751         * lib/unictype/categ_Zs.c: New file.
43752         * lib/unictype/categ_and.c: New file.
43753         * lib/unictype/categ_and_not.c: New file.
43754         * lib/unictype/categ_byname.c: New file.
43755         * lib/unictype/categ_name.c: New file.
43756         * lib/unictype/categ_none.c: New file.
43757         * lib/unictype/categ_of.c: New file.
43758         * lib/unictype/categ_or.c: New file.
43759         * lib/unictype/categ_test.c: New file.
43760         * lib/unictype/combining.c: New file.
43761         * lib/unictype/ctype_alnum.c: New file.
43762         * lib/unictype/ctype_alpha.c: New file.
43763         * lib/unictype/ctype_blank.c: New file.
43764         * lib/unictype/ctype_cntrl.c: New file.
43765         * lib/unictype/ctype_digit.c: New file.
43766         * lib/unictype/ctype_graph.c: New file.
43767         * lib/unictype/ctype_lower.c: New file.
43768         * lib/unictype/ctype_print.c: New file.
43769         * lib/unictype/ctype_punct.c: New file.
43770         * lib/unictype/ctype_space.c: New file.
43771         * lib/unictype/ctype_upper.c: New file.
43772         * lib/unictype/ctype_xdigit.c: New file.
43773         * lib/unictype/decdigit.c: New file.
43774         * lib/unictype/digit.c: New file.
43775         * lib/unictype/identsyntaxmap.h: New file.
43776         * lib/unictype/mirror.c: New file.
43777         * lib/unictype/numeric.c: New file.
43778         * lib/unictype/pr_alphabetic.c: New file.
43779         * lib/unictype/pr_ascii_hex_digit.c: New file.
43780         * lib/unictype/pr_bidi_arabic_digit.c: New file.
43781         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
43782         * lib/unictype/pr_bidi_block_separator.c: New file.
43783         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
43784         * lib/unictype/pr_bidi_common_separator.c: New file.
43785         * lib/unictype/pr_bidi_control.c: New file.
43786         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
43787         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
43788         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
43789         * lib/unictype/pr_bidi_european_digit.c: New file.
43790         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
43791         * lib/unictype/pr_bidi_left_to_right.c: New file.
43792         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
43793         * lib/unictype/pr_bidi_other_neutral.c: New file.
43794         * lib/unictype/pr_bidi_pdf.c: New file.
43795         * lib/unictype/pr_bidi_segment_separator.c: New file.
43796         * lib/unictype/pr_bidi_whitespace.c: New file.
43797         * lib/unictype/pr_byname.c: New file.
43798         * lib/unictype/pr_byname.gperf: New file.
43799         * lib/unictype/pr_combining.c: New file.
43800         * lib/unictype/pr_composite.c: New file.
43801         * lib/unictype/pr_currency_symbol.c: New file.
43802         * lib/unictype/pr_dash.c: New file.
43803         * lib/unictype/pr_decimal_digit.c: New file.
43804         * lib/unictype/pr_default_ignorable_code_point.c: New file.
43805         * lib/unictype/pr_deprecated.c: New file.
43806         * lib/unictype/pr_diacritic.c: New file.
43807         * lib/unictype/pr_extender.c: New file.
43808         * lib/unictype/pr_format_control.c: New file.
43809         * lib/unictype/pr_grapheme_base.c: New file.
43810         * lib/unictype/pr_grapheme_extend.c: New file.
43811         * lib/unictype/pr_grapheme_link.c: New file.
43812         * lib/unictype/pr_hex_digit.c: New file.
43813         * lib/unictype/pr_hyphen.c: New file.
43814         * lib/unictype/pr_id_continue.c: New file.
43815         * lib/unictype/pr_id_start.c: New file.
43816         * lib/unictype/pr_ideographic.c: New file.
43817         * lib/unictype/pr_ids_binary_operator.c: New file.
43818         * lib/unictype/pr_ids_trinary_operator.c: New file.
43819         * lib/unictype/pr_ignorable_control.c: New file.
43820         * lib/unictype/pr_iso_control.c: New file.
43821         * lib/unictype/pr_join_control.c: New file.
43822         * lib/unictype/pr_left_of_pair.c: New file.
43823         * lib/unictype/pr_line_separator.c: New file.
43824         * lib/unictype/pr_logical_order_exception.c: New file.
43825         * lib/unictype/pr_lowercase.c: New file.
43826         * lib/unictype/pr_math.c: New file.
43827         * lib/unictype/pr_non_break.c: New file.
43828         * lib/unictype/pr_not_a_character.c: New file.
43829         * lib/unictype/pr_numeric.c: New file.
43830         * lib/unictype/pr_other_alphabetic.c: New file.
43831         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
43832         * lib/unictype/pr_other_grapheme_extend.c: New file.
43833         * lib/unictype/pr_other_id_continue.c: New file.
43834         * lib/unictype/pr_other_id_start.c: New file.
43835         * lib/unictype/pr_other_lowercase.c: New file.
43836         * lib/unictype/pr_other_math.c: New file.
43837         * lib/unictype/pr_other_uppercase.c: New file.
43838         * lib/unictype/pr_paired_punctuation.c: New file.
43839         * lib/unictype/pr_paragraph_separator.c: New file.
43840         * lib/unictype/pr_pattern_syntax.c: New file.
43841         * lib/unictype/pr_pattern_white_space.c: New file.
43842         * lib/unictype/pr_private_use.c: New file.
43843         * lib/unictype/pr_punctuation.c: New file.
43844         * lib/unictype/pr_quotation_mark.c: New file.
43845         * lib/unictype/pr_radical.c: New file.
43846         * lib/unictype/pr_sentence_terminal.c: New file.
43847         * lib/unictype/pr_soft_dotted.c: New file.
43848         * lib/unictype/pr_space.c: New file.
43849         * lib/unictype/pr_terminal_punctuation.c: New file.
43850         * lib/unictype/pr_test.c: New file.
43851         * lib/unictype/pr_titlecase.c: New file.
43852         * lib/unictype/pr_unassigned_code_value.c: New file.
43853         * lib/unictype/pr_unified_ideograph.c: New file.
43854         * lib/unictype/pr_uppercase.c: New file.
43855         * lib/unictype/pr_variation_selector.c: New file.
43856         * lib/unictype/pr_white_space.c: New file.
43857         * lib/unictype/pr_xid_continue.c: New file.
43858         * lib/unictype/pr_xid_start.c: New file.
43859         * lib/unictype/pr_zero_width.c: New file.
43860         * lib/unictype/scripts.c: New file.
43861         * lib/unictype/sy_c_ident.c: New file.
43862         * lib/unictype/sy_c_whitespace.c: New file.
43863         * lib/unictype/sy_java_ident.c: New file.
43864         * lib/unictype/sy_java_whitespace.c: New file.
43865
43866         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
43867         Unicode 5.0.0.
43868         * lib/unictype/blocks.h: Likewise.
43869         * lib/unictype/categ_C.h: Likewise.
43870         * lib/unictype/categ_Cc.h: Likewise.
43871         * lib/unictype/categ_Cf.h: Likewise.
43872         * lib/unictype/categ_Cn.h: Likewise.
43873         * lib/unictype/categ_Co.h: Likewise.
43874         * lib/unictype/categ_Cs.h: Likewise.
43875         * lib/unictype/categ_L.h: Likewise.
43876         * lib/unictype/categ_Ll.h: Likewise.
43877         * lib/unictype/categ_Lm.h: Likewise.
43878         * lib/unictype/categ_Lo.h: Likewise.
43879         * lib/unictype/categ_Lt.h: Likewise.
43880         * lib/unictype/categ_Lu.h: Likewise.
43881         * lib/unictype/categ_M.h: Likewise.
43882         * lib/unictype/categ_Mc.h: Likewise.
43883         * lib/unictype/categ_Me.h: Likewise.
43884         * lib/unictype/categ_Mn.h: Likewise.
43885         * lib/unictype/categ_N.h: Likewise.
43886         * lib/unictype/categ_Nd.h: Likewise.
43887         * lib/unictype/categ_Nl.h: Likewise.
43888         * lib/unictype/categ_No.h: Likewise.
43889         * lib/unictype/categ_P.h: Likewise.
43890         * lib/unictype/categ_Pc.h: Likewise.
43891         * lib/unictype/categ_Pd.h: Likewise.
43892         * lib/unictype/categ_Pe.h: Likewise.
43893         * lib/unictype/categ_Pf.h: Likewise.
43894         * lib/unictype/categ_Pi.h: Likewise.
43895         * lib/unictype/categ_Po.h: Likewise.
43896         * lib/unictype/categ_Ps.h: Likewise.
43897         * lib/unictype/categ_S.h: Likewise.
43898         * lib/unictype/categ_Sc.h: Likewise.
43899         * lib/unictype/categ_Sk.h: Likewise.
43900         * lib/unictype/categ_Sm.h: Likewise.
43901         * lib/unictype/categ_So.h: Likewise.
43902         * lib/unictype/categ_Z.h: Likewise.
43903         * lib/unictype/categ_Zl.h: Likewise.
43904         * lib/unictype/categ_Zp.h: Likewise.
43905         * lib/unictype/categ_Zs.h: Likewise.
43906         * lib/unictype/categ_of.h: Likewise.
43907         * lib/unictype/combining.h: Likewise.
43908         * lib/unictype/ctype_alnum.h: Likewise.
43909         * lib/unictype/ctype_alpha.h: Likewise.
43910         * lib/unictype/ctype_blank.h: Likewise.
43911         * lib/unictype/ctype_cntrl.h: Likewise.
43912         * lib/unictype/ctype_digit.h: Likewise.
43913         * lib/unictype/ctype_graph.h: Likewise.
43914         * lib/unictype/ctype_lower.h: Likewise.
43915         * lib/unictype/ctype_print.h: Likewise.
43916         * lib/unictype/ctype_punct.h: Likewise.
43917         * lib/unictype/ctype_space.h: Likewise.
43918         * lib/unictype/ctype_upper.h: Likewise.
43919         * lib/unictype/ctype_xdigit.h: Likewise.
43920         * lib/unictype/decdigit.h: Likewise.
43921         * lib/unictype/digit.h: Likewise.
43922         * lib/unictype/mirror.h: Likewise.
43923         * lib/unictype/numeric.h: Likewise.
43924         * lib/unictype/pr_alphabetic.h: Likewise.
43925         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43926         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43927         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43928         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43929         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43930         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43931         * lib/unictype/pr_bidi_control.h: Likewise.
43932         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43933         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43934         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43935         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43936         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43937         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43938         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43939         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43940         * lib/unictype/pr_bidi_pdf.h: Likewise.
43941         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43942         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43943         * lib/unictype/pr_combining.h: Likewise.
43944         * lib/unictype/pr_composite.h: Likewise.
43945         * lib/unictype/pr_currency_symbol.h: Likewise.
43946         * lib/unictype/pr_dash.h: Likewise.
43947         * lib/unictype/pr_decimal_digit.h: Likewise.
43948         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43949         * lib/unictype/pr_deprecated.h: Likewise.
43950         * lib/unictype/pr_diacritic.h: Likewise.
43951         * lib/unictype/pr_extender.h: Likewise.
43952         * lib/unictype/pr_format_control.h: Likewise.
43953         * lib/unictype/pr_grapheme_base.h: Likewise.
43954         * lib/unictype/pr_grapheme_extend.h: Likewise.
43955         * lib/unictype/pr_grapheme_link.h: Likewise.
43956         * lib/unictype/pr_hex_digit.h: Likewise.
43957         * lib/unictype/pr_hyphen.h: Likewise.
43958         * lib/unictype/pr_id_continue.h: Likewise.
43959         * lib/unictype/pr_id_start.h: Likewise.
43960         * lib/unictype/pr_ideographic.h: Likewise.
43961         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43962         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43963         * lib/unictype/pr_ignorable_control.h: Likewise.
43964         * lib/unictype/pr_iso_control.h: Likewise.
43965         * lib/unictype/pr_join_control.h: Likewise.
43966         * lib/unictype/pr_left_of_pair.h: Likewise.
43967         * lib/unictype/pr_line_separator.h: Likewise.
43968         * lib/unictype/pr_logical_order_exception.h: Likewise.
43969         * lib/unictype/pr_lowercase.h: Likewise.
43970         * lib/unictype/pr_math.h: Likewise.
43971         * lib/unictype/pr_non_break.h: Likewise.
43972         * lib/unictype/pr_not_a_character.h: Likewise.
43973         * lib/unictype/pr_numeric.h: Likewise.
43974         * lib/unictype/pr_other_alphabetic.h: Likewise.
43975         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43976         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43977         * lib/unictype/pr_other_id_continue.h: Likewise.
43978         * lib/unictype/pr_other_id_start.h: Likewise.
43979         * lib/unictype/pr_other_lowercase.h: Likewise.
43980         * lib/unictype/pr_other_math.h: Likewise.
43981         * lib/unictype/pr_other_uppercase.h: Likewise.
43982         * lib/unictype/pr_paired_punctuation.h: Likewise.
43983         * lib/unictype/pr_paragraph_separator.h: Likewise.
43984         * lib/unictype/pr_pattern_syntax.h: Likewise.
43985         * lib/unictype/pr_pattern_white_space.h: Likewise.
43986         * lib/unictype/pr_private_use.h: Likewise.
43987         * lib/unictype/pr_punctuation.h: Likewise.
43988         * lib/unictype/pr_quotation_mark.h: Likewise.
43989         * lib/unictype/pr_radical.h: Likewise.
43990         * lib/unictype/pr_sentence_terminal.h: Likewise.
43991         * lib/unictype/pr_soft_dotted.h: Likewise.
43992         * lib/unictype/pr_space.h: Likewise.
43993         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43994         * lib/unictype/pr_titlecase.h: Likewise.
43995         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43996         * lib/unictype/pr_unified_ideograph.h: Likewise.
43997         * lib/unictype/pr_uppercase.h: Likewise.
43998         * lib/unictype/pr_variation_selector.h: Likewise.
43999         * lib/unictype/pr_white_space.h: Likewise.
44000         * lib/unictype/pr_xid_continue.h: Likewise.
44001         * lib/unictype/pr_xid_start.h: Likewise.
44002         * lib/unictype/pr_zero_width.h: Likewise.
44003         * lib/unictype/scripts.h: Likewise.
44004         * lib/unictype/scripts_byname.gperf: Likewise.
44005         * lib/unictype/sy_c_ident.h: Likewise.
44006         * lib/unictype/sy_c_whitespace.h: Likewise.
44007         * lib/unictype/sy_java_ident.h: Likewise.
44008         * lib/unictype/sy_java_whitespace.h: Likewise.
44009
44010         * lib/unictype/Makefile: New file.
44011         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
44012         glibc.
44013         * lib/unictype/3level.h: New file, copied from glibc.
44014         * lib/unictype/3levelbit.h: New file.
44015
44016 2007-11-11  Bruno Haible  <bruno@clisp.org>
44017
44018         * modules/gperf: New file.
44019         * modules/iconv_open (Depends-on): Add it.
44020         (Makefile.am): Remove the GPERF definition.
44021
44022 2007-11-11  Bruno Haible  <bruno@clisp.org>
44023
44024         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
44025         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
44026
44027 2007-11-11  Bruno Haible  <bruno@clisp.org>
44028
44029         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
44030         (usage): Remove function.
44031
44032 2007-11-11  Bruno Haible  <bruno@clisp.org>
44033
44034         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
44035         gl_FUNC_CEILF_LIBS.
44036         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
44037         gl_FUNC_CEIL_LIBS.
44038         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
44039         gl_FUNC_CEILL_LIBS.
44040         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
44041         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
44042         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
44043
44044 2007-11-11  Bruno Haible  <bruno@clisp.org>
44045
44046         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
44047         roundf were declared but do not exist on functions.
44048         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
44049         roundl were declared but do not exist on functions.
44050         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
44051         HAVE_FLOORL_AND_CEILL, respectively.
44052         Needed for Sun C on Solaris 10.
44053
44054 2007-11-11  Bruno Haible  <bruno@clisp.org>
44055
44056         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
44057         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
44058         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
44059         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
44060         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
44061         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
44062         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
44063         HAVE_DECL_ROUNDF.
44064         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
44065         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
44066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
44067         of HAVE_DECL_ROUND*.
44068         * modules/math (Makefile.am): Update.
44069
44070 2007-11-10  Bruno Haible  <bruno@clisp.org>
44071
44072         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
44073         ptrdiff_t as m4/intl.m4.
44074
44075 2007-11-10  Jim Meyering  <meyering@redhat.com>
44076
44077         Avoid link failure for the argmatch test.
44078         * tests/test-argmatch.c (usage): Define function to avoid a link
44079         failure: argmatch_die requires a usage function.
44080
44081 2007-11-09  Bruno Haible  <bruno@clisp.org>
44082
44083         * doc/functions/snprintf.texi: Mention BeOS deficiency.
44084         * doc/functions/vsnprintf.texi: Likewise.
44085         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
44086         with a size argument < 2.
44087
44088 2007-11-09  Bruno Haible  <bruno@clisp.org>
44089
44090         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
44091         buffer. Fixes an inefficiency introduced on 2007-11-03.
44092
44093 2007-11-09  Bruno Haible  <bruno@clisp.org>
44094
44095         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
44096         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
44097
44098 2007-11-08  Jim Meyering  <meyering@redhat.com>
44099
44100         Change cache variable name prefix "jm_" to "gl_" everywhere.
44101         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
44102         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
44103         * m4/uptime.m4: s/gl_/jm_/
44104
44105 2007-11-07  Bruno Haible  <bruno@clisp.org>
44106
44107         Update to GNU gettext 0.17.
44108         * m4/intl.m4: Update to GNU gettext 0.17.
44109         * m4/po.m4: Likewise.
44110         * modules/gettext (Files): Remove m4/ulonglong.m4.
44111         (configure.ac): Require gettext infrastructure from version 0.17.
44112
44113 2007-11-06  Bruno Haible  <bruno@clisp.org>
44114
44115         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
44116         symbolic values are not defined in a public header.
44117         * lib/freadable.c (freadable) [QNX]: Likewise.
44118         * lib/freadahead.c (freadahead) [QNX]: Likewise.
44119         * lib/freading.c (freading) [QNX]: Likewise.
44120         * lib/fseterr.c (fseterr) [QNX]: Likewise.
44121         * lib/fwritable.c (fwritable) [QNX]: Likewise.
44122         * lib/fwriting.c (fwriting) [QNX]: Likewise.
44123         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
44124         Reported by Alain Magloire.
44125
44126         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
44127
44128 2007-11-05  Bruno Haible  <bruno@clisp.org>
44129
44130         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
44131         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
44132         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
44133         Reported by Eric Blake.
44134
44135 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44136             Bruno Haible  <bruno@clisp.org>
44137
44138         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
44139         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
44140         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
44141         (malloc): Undefine also before including <stdlib.h>.
44142         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
44143         Needed on OSF/1 4.0.
44144
44145 2007-11-05  Jim Meyering  <meyering@redhat.com>
44146
44147         git-version-gen: sync from coreutils.
44148         * build-aux/git-version-gen: Add comments.
44149         Change the first '-' to '.' in the snapshot version string,
44150         e.g., 6.9-377-08144 -> 6.9.377-08144
44151         Remove first parameter.
44152         Don't declare a version "-dirty" merely because a time
44153         stamp has changed.
44154
44155 2007-11-04  Bruno Haible  <bruno@clisp.org>
44156
44157         * lib/lock.h: Protect all macro definitions containing an 'if'
44158         statement through a "do { ... } while (0)".
44159         * lib/tls.h: Likewise.
44160
44161 2007-11-04  Bruno Haible  <bruno@clisp.org>
44162
44163         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
44164
44165 2007-11-04  Bruno Haible  <bruno@clisp.org>
44166
44167         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
44168         * modules/fprintf-posix (Depends-on): Add nocrash.
44169         * modules/snprintf-posix (Depends-on): Likewise.
44170         * modules/sprintf-posix (Depends-on): Likewise.
44171         * modules/vasnprintf-posix (Depends-on): Likewise.
44172         * modules/vasprintf-posix (Depends-on): Likewise.
44173         * modules/vfprintf-posix (Depends-on): Likewise.
44174         * modules/vsnprintf-posix (Depends-on): Likewise.
44175         * modules/vsprintf-posix (Depends-on): Likewise.
44176         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44177         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44178         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44179         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44180         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44181         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44182         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44183
44184 2007-11-04  Bruno Haible  <bruno@clisp.org>
44185
44186         * modules/nocrash: New file.
44187         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
44188         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
44189
44190 2007-11-04  Bruno Haible  <bruno@clisp.org>
44191
44192         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
44193         precision handling.
44194         * tests/test-vasprintf-posix.c (test_function): Likewise.
44195         * tests/test-snprintf-posix.h (test_function): Likewise.
44196         * tests/test-sprintf-posix.h (test_function): Likewise.
44197
44198         Fix *printf behaviour for large precisions on mingw and BeOS.
44199         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
44200         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
44201         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
44202         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44203         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44204         gl_PRINTF_PRECISION and test its result. Invoke
44205         gl_PREREQ_VASNPRINTF_PRECISION.
44206         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44207         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44208         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44209         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44210         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44211         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44212         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44213         * doc/functions/fprintf.texi: Update.
44214         * doc/functions/printf.texi: Update.
44215         * doc/functions/snprintf.texi: Update.
44216         * doc/functions/sprintf.texi: Update.
44217         * doc/functions/vfprintf.texi: Update.
44218         * doc/functions/vprintf.texi: Update.
44219         * doc/functions/vsnprintf.texi: Update.
44220         * doc/functions/vsprintf.texi: Update.
44221
44222 2007-11-04  Bruno Haible  <bruno@clisp.org>
44223
44224         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
44225
44226 2007-11-04  Bruno Haible  <bruno@clisp.org>
44227
44228         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
44229         Reported by Sylvain Beucler <beuc@gnu.org>.
44230
44231 2007-11-03  Bruno Haible  <bruno@clisp.org>
44232
44233         * tests/test-fprintf-posix2.sh: New file.
44234         * tests/test-fprintf-posix2.c: New file.
44235         * modules/fprintf-posix-tests (Files): Add them.
44236         (TESTS): Add test-fprintf-posix2.sh.
44237         (configure.ac): Check for getrlimit and setrlimit.
44238         (check_PROGRAMS): Add test-fprintf-posix2.
44239
44240         * tests/test-printf-posix2.sh: New file.
44241         * tests/test-printf-posix2.c: New file.
44242         * modules/printf-posix-tests (Files): Add them.
44243         (TESTS): Add test-printf-posix2.sh.
44244         (configure.ac): Check for getrlimit and setrlimit.
44245         (check_PROGRAMS): Add test-printf-posix2.
44246
44247         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
44248         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
44249         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
44250         (decode_double): New function, copied from decode_long_double.
44251         (scale10_round_decimal_decoded): New function, extracted from
44252         scale10_round_decimal_long_double.
44253         (scale10_round_decimal_long_double): Use it.
44254         (scale10_round_decimal_double): New function.
44255         (floorlog10): New function.
44256         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
44257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
44258         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44259         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44260         gl_PRINTF_ENOMEM and test its result. Invoke
44261         gl_PREREQ_VASNPRINTF_ENOMEM.
44262         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44263         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44264         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44265         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44266         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44267         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44268         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44269         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
44270         * modules/snprintf-posix (Depends-on): Likewise.
44271         * modules/sprintf-posix (Depends-on): Likewise.
44272         * modules/vasnprintf-posix (Depends-on): Likewise.
44273         * modules/vasprintf-posix (Depends-on): Likewise.
44274         * modules/vfprintf-posix (Depends-on): Likewise.
44275         * modules/vsnprintf-posix (Depends-on): Likewise.
44276         * modules/vsprintf-posix (Depends-on): Likewise.
44277         * doc/functions/fprintf.texi: Update.
44278         * doc/functions/printf.texi: Update.
44279         * doc/functions/snprintf.texi: Update.
44280         * doc/functions/sprintf.texi: Update.
44281         * doc/functions/vfprintf.texi: Update.
44282         * doc/functions/vprintf.texi: Update.
44283         * doc/functions/vsnprintf.texi: Update.
44284         * doc/functions/vsprintf.texi: Update.
44285
44286 2007-11-03  Bruno Haible  <bruno@clisp.org>
44287
44288         * modules/frexp-nolibm-tests: New file.
44289
44290         * modules/frexp-nolibm: New file.
44291         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
44292
44293 2007-11-03  Bruno Haible  <bruno@clisp.org>
44294
44295         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
44296         value is C99 compliant.
44297         Needed for OSF/1 5.1.
44298
44299 2007-11-03  Bruno Haible  <bruno@clisp.org>
44300
44301         Fix out-of-memory handling of vasnprintf.
44302         * lib/printf-parse.c: Include <errno.h>.
44303         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
44304         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
44305         is already set.
44306
44307 2007-11-02  Eric Blake  <ebb9@byu.net>
44308
44309         Fix tests on cygwin.
44310         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
44311
44312 2007-11-01  Bruno Haible  <bruno@clisp.org>
44313
44314         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
44315         warning.
44316         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
44317         needed for POSIX compatibility.
44318
44319 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44320
44321         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
44322         for compatibility with GNU.
44323
44324 2007-11-01  Bruno Haible  <bruno@clisp.org>
44325
44326         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
44327         (putenv): Renamed from rpl_putenv. Change argument type from
44328         'const char *' to 'char *'.
44329         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
44330         of defining putenv in config.h, just set REPLACE_PUTENV.
44331         * modules/putenv (Depends-on): Add stdlib.
44332         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44333         (Include): Use <stdlib.h>.
44334         * lib/stdlib.in.h (putenv): New declaration.
44335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
44336         REPLACE_PUTENV.
44337         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
44338         REPLACE_PUTENV.
44339         Needed for MacOS X 10.5.0.
44340         Reported by Peter O'Gorman <peter@pogma.com>.
44341
44342 2007-11-01  Jim Meyering  <meyering@redhat.com>
44343
44344         Treat an empty date string exactly like "0".
44345         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
44346         if the remaining date string (to be parsed) is empty, use "0".
44347         Reported by Mischa Molhoek and discussed in this thread:
44348         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
44349
44350 2007-10-31  Bruno Haible  <bruno@clisp.org>
44351
44352         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
44353         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
44354         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
44355         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
44356         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
44357         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
44358
44359 2007-10-31  Bruno Haible  <bruno@clisp.org>
44360
44361         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
44362         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
44363         (AC_TYPE_LONG_LONG_INT): Use it.
44364         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
44365         it as well.
44366         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
44367         to m4/longlong.m4.
44368         * modules/stdint (Files): Remove m4/ulonglong.m4.
44369         * modules/strtoull (Files): Use m4/longlong.m4 instead of
44370         m4/ulonglong.m4.
44371         * modules/strtoumax (Files): Likewise.
44372
44373 2007-10-30  Bruno Haible  <bruno@clisp.org>
44374
44375         * modules/xvasprintf-posix: New file.
44376         Suggested by Eric Blake.
44377
44378 2007-10-30  Bruno Haible  <bruno@clisp.org>
44379
44380         * modules/xprintf-posix-tests: New file.
44381         * tests/test-xprintf-posix.sh: New file.
44382         * tests/test-xprintf-posix.c: New file.
44383         * tests/test-xfprintf-posix.c: New file.
44384
44385         * modules/xprintf-posix: New file.
44386
44387 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44388
44389         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
44390         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
44391         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
44392
44393 2007-10-29  Bruno Haible  <bruno@clisp.org>
44394
44395         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
44396         contain the special marker '_cv_'.
44397         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44398         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44399         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44400         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
44401         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44402         Reported by Ralf Wildenhues.
44403
44404 2007-10-29  Bruno Haible  <bruno@clisp.org>
44405
44406         * gnulib-tool (func_import): When --lgpl is not specified, set
44407         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
44408         GPLv3.
44409         Reported by Simon Josefsson.
44410
44411 2007-10-28  Bruno Haible  <bruno@clisp.org>
44412
44413         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
44414         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
44415         HAVE_DECL_ISFINITE.
44416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44417         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
44418         HAVE_DECL_ISFINITE.
44419
44420 2007-10-28  Bruno Haible  <bruno@clisp.org>
44421
44422         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
44423         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
44424
44425 2007-10-28  Bruno Haible  <bruno@clisp.org>
44426
44427         Fix link errors with Sun C 5.0 on Solaris 10.
44428         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
44429         function is declared but not present in the compiler's libm.
44430         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44431         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44432         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
44433         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
44434         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
44435         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
44436         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
44437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44438         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
44439         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
44440         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
44441         HAVE_DECL_FLOORL.
44442
44443 2007-10-28  Bruno Haible  <bruno@clisp.org>
44444
44445         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
44446         gl_FUNC_FLOORL. Cache the result.
44447         (gl_FUNC_FLOORL): Use it.
44448         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
44449         gl_FUNC_CEILL. Cache the result.
44450         (gl_FUNC_CEILL): Use it.
44451
44452         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
44453         gl_FUNC_FLOOR. Cache the result.
44454         (gl_FUNC_FLOOR): Use it.
44455         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
44456         gl_FUNC_CEIL. Cache the result.
44457         (gl_FUNC_CEIL): Use it.
44458
44459         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
44460         gl_FUNC_FLOORF. Cache the result.
44461         (gl_FUNC_FLOORF): Use it.
44462         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
44463         gl_FUNC_CEILF. Cache the result.
44464         (gl_FUNC_CEILF): Use it.
44465
44466 2007-10-28  Bruno Haible  <bruno@clisp.org>
44467
44468         * gnulib-tool: Allow specifying the LGPL version number through
44469         --lgpl=2 or --lgpl=3.
44470         (func_usage): Document --lgpl with argument.
44471         Handle --lgpl=... arguments.
44472         (func_import): Recognize also gl_LGPL calls with an argument. When
44473         --lgpl=2 is used and the module's license is just LGPL, report an
44474         error. Set sed_transform_lib_file according to the lgpl variable. In
44475         the generated files, use --lgpl or gl_LGPL invocations with argument,
44476         if necessary.
44477         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
44478         an LGPv2+ license.
44479         * doc/gnulib-tool.texi (Modified imports): Update explanation of
44480         gl_LGPL macro.
44481
44482 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44483             Bruno Haible  <bruno@clisp.org>
44484
44485         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
44486         (u16_uctomb_aux): Likewise.
44487         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
44488         !HAVE_INLINE.
44489         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
44490
44491 2007-10-28  Bruno Haible  <bruno@clisp.org>
44492
44493         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
44494         Invoke AM_GETTEXT_OPTION if it exists.
44495         * modules/vasprintf: Likewise.
44496         * modules/verror: Likewise.
44497         * modules/xprintf: Likewise.
44498         * modules/xvasprintf: Likewise.
44499
44500 2007-10-27  Ben Pfaff  <blp@gnu.org>
44501
44502         * lib/math.in.h: Define isfinite macro and prototypes for
44503         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
44504         implementations.
44505         * m4/math_h.m4: New substitutions for isfinite module.
44506         * lib/isfinite.c: New file.
44507         * m4/isfinite.m4: New file.
44508         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
44509         * modules/isfinite: New file.
44510         * modules/isfinite-tests: New file.
44511         * tests/tests-isfinite.c: New file.
44512         * doc/functions/isfinite.texi: Mention isfinite module.
44513         * MODULES.html.sh: Mention new module.
44514
44515 2007-10-27  Ben Pfaff  <blp@gnu.org>
44516
44517         Ralf Wildenhues reported that Tru64 4.0D declares the round
44518         functions but does not have definitions.
44519         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
44520         cannot be found in any library, set the output variable to
44521         "missing" instead of "".
44522         * m4/round.m4: Also use our substitute if we cannot find round in
44523         any library, even if it is declared.
44524         * m4/roundf.m4: Likewise for roundf.
44525         * m4/roundl.m4: Likewise for roundl.
44526         * lib/math.in.h: Undefine roundf, round, roundl before defining
44527         their replacements, to allow for hypothetical systems where these
44528         may be defined as macros but not available in libraries.
44529
44530 2007-10-27  Bruno Haible  <bruno@clisp.org>
44531
44532         * doc/gnulib.texi: Invoke @firstparagraphindent.
44533         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
44534         changes in gnulib.
44535         (Source changes): New section.
44536
44537 2007-10-26  Bruno Haible  <bruno@clisp.org>
44538
44539         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
44540         borrowed from autoconf.
44541
44542 2007-10-26  Bruno Haible  <bruno@clisp.org>
44543
44544         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
44545         strerror returned the empty string. Needed on HP-UX 11.00.
44546
44547 2007-10-24  Micah Cowan  <micah@cowan.name>
44548
44549         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
44550         * build-aux/bootstrap: Remove support for now-unnecessary option,
44551         --cvs-user, and envvars CVS_USER, CVS_RSH.
44552
44553 2007-10-24  Jim Meyering  <meyering@redhat.com>
44554
44555         Avoid diagnostics from sha1sum when there is no cached checksum.
44556         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
44557         if the po.s1 file hasn't been created yet.
44558
44559         * build-aux/bootstrap: Sync from coreutils:
44560         2007-10-24  Jim Meyering  <meyering@redhat.com>
44561         Get gnulib from the git repository, not from an obsolete cvs one.
44562         * build-aux/bootstrap: Suggestion from Micah Cowan.
44563         2007-10-04  Jim Meyering  <jim@meyering.net>
44564         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
44565         (update_po_files): Work also when there are no .po files in po/.
44566
44567 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44568
44569         * README: Append ".git" to git and cg examples.
44570         Problem reported by Benoit Sigoure.
44571
44572 2007-10-23  Micah Cowan  <micah@cowan.name>
44573
44574         * users.txt: Add wget.
44575
44576 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44577
44578         Fix linking of some unistdio tests on FreeBSD.
44579         * modules/unistdio/u16-vsnprintf-tests
44580         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
44581         * modules/unistdio/u16-vsprintf-tests
44582         (test_u16_vsnprintf1_LDADD): Likewise.
44583         * modules/unistdio/u32-vsnprintf-tests
44584         (test_u32_vsnprintf1_LDADD): Likewise.
44585         * modules/unistdio/u32-vsprintf-tests
44586         (test_u32_vsprintf1_LDADD): Likewise.
44587         * modules/unistdio/u8-vsnprintf-tests
44588         (test_u8_vsnprintf1_LDADD): Likewise.
44589         * modules/unistdio/u8-vsprintf-tests
44590         (test_u8_vsprintf1_LDADD): Likewise.
44591         * modules/unistdio/ulc-vsnprintf-tests
44592         (test_ulc_vsnprintf1_LDADD): Likewise.
44593         * modules/unistdio/ulc-vsprintf-tests
44594         (test_ulc_vsprintf1_LDADD): Likewise.
44595
44596         Fix linking of some uniconv tests on FreeBSD.
44597         * modules/uniconv/u16-conv-from-enc-tests
44598         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
44599         * modules/uniconv/u16-conv-to-enc-tests
44600         (test_u16_conv_to_enc_LDADD): Likewise.
44601         * modules/uniconv/u16-strconv-from-enc-tests
44602         (test_u16_strconv_from_enc_LDADD): Likewise.
44603         * modules/uniconv/u16-strconv-to-enc-tests
44604         (test_u16_strconv_to_enc_LDADD): Likewise.
44605         * modules/uniconv/u32-conv-from-enc-tests
44606         (test_u32_conv_from_enc_LDADD): Likewise.
44607         * modules/uniconv/u32-conv-to-enc-tests
44608         (test_u32_conv_to_enc_LDADD): Likewise.
44609         * modules/uniconv/u32-strconv-from-enc-tests
44610         (test_u32_strconv_from_enc_LDADD): Likewise.
44611         * modules/uniconv/u32-strconv-to-enc-tests
44612         (test_u32_strconv_to_enc_LDADD): Likewise.
44613         * modules/uniconv/u8-conv-from-enc-tests
44614         (test_u8_conv_from_enc_LDADD): Likewise.
44615         * modules/uniconv/u8-conv-to-enc-tests
44616         (test_u8_conv_to_enc_LDADD): Likewise.
44617         * modules/uniconv/u8-strconv-from-enc-tests
44618         (test_u8_strconv_from_enc_LDADD): Likewise.
44619         * modules/uniconv/u8-strconv-to-enc-tests
44620         (test_u8_strconv_to_enc_LDADD): Likewise.
44621
44622 2007-10-22  Bruno Haible  <bruno@clisp.org>
44623
44624         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
44625         size.
44626
44627 2007-10-22  Eric Blake  <ebb9@byu.net>
44628
44629         Tweak x*printf documentation.
44630         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
44631         variable name and comments.
44632         Suggested by Bruno Haible.
44633
44634 2007-10-22  Bruno Haible  <bruno@clisp.org>
44635
44636         * lib/acl.c (copy_acl): Fix file name in comment.
44637
44638 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44639
44640         Fix Tru64 problem with stdbool.h.
44641         * lib/stdbool.in.h (false, true):
44642         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
44643         Don't declare as an enum in this situation; it runs afoul of Tru64.
44644         Problem reported by Steven M. Schweda in
44645         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
44646
44647 2007-10-22  Eric Blake  <ebb9@byu.net>
44648
44649         Also wrap vf?printf.
44650         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
44651         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
44652         (xvprintf, xvfprintf): New functions.
44653
44654 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44655
44656         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
44657         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
44658
44659         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
44660         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
44661
44662 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44663
44664         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
44665         by Bruno Haible.
44666
44667 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44668
44669         * lib/getloadavg.c
44670         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
44671         Undef `sys' after including sys/table.h, for Tru64 4.0D.
44672
44673         * tests/test-i-ring.c: Work for C89.
44674
44675 2007-10-22  Bruno Haible  <bruno@clisp.org>
44676
44677         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
44678         -1u, in preprocessor expression, so that we don't test for the bug
44679         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
44680         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
44681
44682 2007-10-22  Eric Blake  <ebb9@byu.net>
44683
44684         * tests/test-yesno.sh: Silence stderr during test.
44685
44686 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44687
44688         * modules/crypto/gc-camellia: New file.
44689
44690         * m4/gc-camellia.m4: New file.
44691
44692         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
44693
44694         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
44695
44696 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44697
44698         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
44699         --help to stdout.  Reported by sms@antinode.org (Steven
44700         M. Schweda).
44701
44702 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44703
44704         * users.txt: Fix link to libksba.
44705
44706 2007-10-21  Ben Pfaff  <blp@gnu.org>
44707
44708         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
44709         round.c roundf implementation that depends on floorf and ceilf to
44710         be tested unconditionally.
44711
44712 2007-10-21  Ben Pfaff  <blp@gnu.org>
44713
44714         * m4/check-libm-func.m4: Removed.
44715         * m4/check-math-lib.m4: New file.
44716         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
44717         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
44718         definition and lack of AC_LIBOBJ([roundf]).
44719         * m4/roundl.m4: Ditto, and similarly for roundl.
44720         * modules/round: Reference new m4 file.
44721         * modules/roundf: Ditto.
44722         * modules/roundl: Ditto.
44723         * tests/test-round2.c (main): Use ROUND instead of round.
44724         Bug report from Bruno Haible.
44725
44726 2007-10-21  Bruno Haible  <bruno@clisp.org>
44727
44728         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
44729         context.
44730
44731 2007-10-21  Bruno Haible  <bruno@clisp.org>
44732
44733         * tests/test-wcwidth.c (main): Allow negative result for some control
44734         characters.
44735
44736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
44737         Needed on OSF/1 5.1.
44738
44739 2007-10-21  Bruno Haible  <bruno@clisp.org>
44740
44741         * tests/test-floorf1.c: Include isnanf.h.
44742         (main): Use isnanf() instead of isnan().
44743         * tests/test-ceilf1.c: Include isnanf.h.
44744         (main): Use isnanf() instead of isnan().
44745         * tests/test-truncf1.c: Include isnanf.h.
44746         (main): Use isnanf() instead of isnan().
44747         * tests/test-roundf1.c: Include isnanf.h.
44748         (main): Use isnanf() instead of isnan().
44749
44750 2007-10-21  Eric Blake  <ebb9@byu.net>
44751
44752         * users.txt: Update URL for m4.
44753
44754 2007-10-21  Bruno Haible  <bruno@clisp.org>
44755
44756         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
44757
44758 2007-10-21  Bruno Haible  <bruno@clisp.org>
44759
44760         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
44761         Git's management files if the CVS files are not present.
44762
44763 2007-10-20  Bruno Haible  <bruno@clisp.org>
44764
44765         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
44766         gcc-3.4.x.
44767
44768 2007-10-20  Ben Pfaff  <blp@gnu.org>
44769
44770         * lib/math.in.h: Declare round, roundf, roundl if we are providing
44771         implementations.
44772         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
44773         * lib/round.c: New file.
44774         * lib/roundf.c: New file.
44775         * lib/roundl.c: New file.
44776         * m4/round.m4: New file.
44777         * m4/roundf.m4: New file.
44778         * m4/roundl.m4: New file.
44779         * m4/check-libm-func-m4: New file.
44780         * modules/math: Replace round, roundf, roundl related @VARS@ in
44781         math.in.h.
44782         * modules/round: New file.
44783         * modules/round-tests: New file.
44784         * modules/roundf: New file.
44785         * modules/roundf-tests: New file.
44786         * modules/roundl: New file.
44787         * modules/roundl-tests: New file.
44788         * tests/test-round1.c: New file.
44789         * tests/test-round2.c: New file.
44790         * tests/test-roundf1.c: New file.
44791         * tests/test-roundf2.c: New file.
44792         * tests/test-roundl.c: New file.
44793         * doc/functions/round.texi: Mention round module.
44794         * doc/functions/roundf.texi: Mention roundf module.
44795         * doc/functions/roundl.texi: Mention roundl module.
44796         * MODULES.html.sh: Mention new modules.
44797         Thanks to Bruno Haible for suggestions.
44798
44799 2007-10-20  Jim Meyering  <meyering@redhat.com>
44800
44801         * lib/xprintf.c: Include <config.h> unconditionally.
44802
44803         Change xprintf's license to GPL.
44804         * modules/xprintf (License): s/LGPL/GPL/, since this module
44805         depends on modules (exit and exitfail) which are GPL.
44806         Suggestion from Bruno Haible.
44807
44808         xprintf fixes.
44809         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
44810         Use a clearer diagnostic.
44811         Patch from Bruno Haible.
44812
44813 2007-10-20  Bruno Haible  <bruno@clisp.org>
44814
44815         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
44816         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
44817         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44818
44819 2007-10-20  Bruno Haible  <bruno@clisp.org>
44820
44821         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
44822         precision in the comparison result > x - 1 or similar.
44823         * tests/test-ceilf2.c (correct_result_p): Likewise.
44824         * tests/test-truncf2.c (correct_result_p): Likewise.
44825         * tests/test-trunc2.c (correct_result_p): Likewise.
44826         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44827
44828 2007-10-20  Bruno Haible  <bruno@clisp.org>
44829
44830         * modules/ceil: New file.
44831         * m4/ceil.m4: New file.
44832         * doc/functions/ceil.texi: Mention the 'ceil' module.
44833
44834 2007-10-20  Bruno Haible  <bruno@clisp.org>
44835
44836         * modules/floor: New file.
44837         * m4/floor.m4: New file.
44838         * doc/functions/floor.texi: Mention the 'floor' module.
44839
44840 2007-10-20  Bruno Haible  <bruno@clisp.org>
44841
44842         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
44843         of %a.
44844         * modules/floorf-tests (Depends-on): Likewise.
44845         * modules/truncf-tests (Depends-on): Likewise.
44846         * modules/trunc-tests (Depends-on): Likewise.
44847         Reported by Ben Pfaff.
44848
44849 2007-10-19  Jim Meyering  <meyering@redhat.com>
44850
44851         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
44852         Don't bother testing specific errno values.  Just test ferror.
44853
44854         New module: xprintf
44855         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
44856
44857 2007-10-19  Bruno Haible  <bruno@clisp.org>
44858
44859         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
44860         syntax.
44861         * modules/javaexec (Makefile.am): Likewise.
44862         * modules/relocatable-prog (Makefile.am): Likewise.
44863         Suggested by Jim Meyering.
44864
44865 2007-10-18  Bruno Haible  <bruno@clisp.org>
44866
44867         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
44868         Reported by Jim Meyering.
44869
44870 2007-10-18  Eric Blake  <ebb9@byu.net>
44871
44872         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
44873
44874 2007-10-18  Bruno Haible  <bruno@clisp.org>
44875
44876         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
44877         the format string into writable memory. Needed in Fortify conditions.
44878
44879 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
44880             Bruno Haible  <bruno@clisp.org>
44881
44882         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
44883         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
44884         * modules/trim (Depends-on): Add mbchar.
44885         (configure.ac): Add gl_FUNC_MBRTOWC.
44886         (Makefile.am): Augment lib_SOURCES.
44887
44888 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44889
44890         Modify glob.c to use fstatat and dirfd, to simplify it.
44891         Suggested by Eric Blake.
44892         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
44893         Don't include <stdbool.h>; not used.
44894         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
44895         (link_exists_p): Simplify implementation, since we can now assume
44896         dirfd and fstatat.
44897         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
44898
44899 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44900
44901         * gnulib-tool (func_get_dependencies): Fix sed script to
44902         match only tests.
44903
44904 2007-10-17  Bruno Haible  <bruno@clisp.org>
44905
44906         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
44907         allow locale names without encoding suffix.
44908         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44909         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44910
44911 2007-10-16  Bruno Haible  <bruno@clisp.org>
44912
44913         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
44914         * lib/getgroups.c (getgroups): Likewise.
44915         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
44916
44917 2007-10-16  Bruno Haible  <bruno@clisp.org>
44918
44919         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
44920         * modules/malloc-posix (License): Likewise.
44921         * modules/realloc-posix (License): Likewise.
44922         * modules/calloc-posix (License): Likewise.
44923         * modules/intprops (License): Change from GPL to LGPL, with
44924         Paul Eggert's approval.
44925
44926 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44927
44928         Merge glibc changes into lib/glob.c.
44929
44930         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
44931         2007-10-15 04:59:03 UTC.  Here are the changes:
44932
44933         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
44934
44935         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
44936
44937         * lib/glob.c: Add some branch prediction throughout.
44938
44939         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
44940
44941         [BZ #5103]
44942         * lib/glob.c (glob): Recognize patterns starting \/.
44943
44944         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
44945
44946         [BZ #3996]
44947         * lib/glob.c (attribute_hidden): Define if not defined.
44948         (glob): Unescape dirname, filename or username when needed and not
44949         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
44950         is NULL.  Handle unescaped [ in pattern without closing ].
44951         Don't pass GLOB_CHECK down to recursive glob for directories.
44952         (__glob_pattern_type): New function.
44953         (__glob_pattern_p): Implement using __glob_pattern_type.
44954         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
44955         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
44956         Remove unreachable code.
44957
44958         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
44959
44960         * lib/glob.c (glob_in_dir): Add some comments and asserts to
44961         explain why there are no leaks.
44962
44963         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
44964
44965         [BZ #3253]
44966         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
44967         time, rather allocate increasingly bigger arrays of pointers, if
44968         possible with alloca, if too large with malloc.
44969
44970 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44971
44972         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
44973         Problem reported by H.Merijn Brand in
44974         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
44975         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
44976         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44977
44978 2007-10-15  Bruno Haible  <bruno@clisp.org>
44979
44980         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
44981         with explicit rpl_ prefix.
44982         * lib/fopen.c (fopen): Likewise.
44983         * lib/freopen.c (freopen): Likewise.
44984         * lib/iconv.c (iconv): Likewise.
44985         * lib/iconv_close.c (iconv_close): Likewise.
44986
44987 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44988
44989         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
44990
44991 2007-10-15  Bruno Haible  <bruno@clisp.org>
44992
44993         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
44994         <stddef.h> instead of <stdlib.h> since we only need NULL.
44995         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44996
44997 2007-10-15  Bruno Haible  <bruno@clisp.org>
44998
44999         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
45000         Replace paragraph talking about LIBOBJS.
45001         Reported by Colin Watson <cjwatson@debian.org>.
45002
45003 2007-10-15  Bruno Haible  <bruno@clisp.org>
45004
45005         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
45006         <stdlib.h> before using NULL.
45007
45008 2007-10-15  Simon Josefsson  <simon@josefsson.org>
45009
45010         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
45011         Reported by Albert Chin <china@thewrittenword.com>.
45012
45013 2007-10-14  Bruno Haible  <bruno@clisp.org>
45014
45015         * modules/iconv_open-utf-tests: New file.
45016         * tests/test-iconv-utf.c: New file.
45017
45018         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
45019         * modules/iconv_open-utf: New file.
45020         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
45021         (iconv, iconv_close): New declarations.
45022         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
45023         be defined.
45024         (iconv_open): Add special handling of conversion between UTF-8 and
45025         UTF-{16,32}{BE,LE}.
45026         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
45027         * lib/iconv_close.c: New file.
45028         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
45029         gl_FUNC_ICONV_OPEN.
45030         (gl_FUNC_ICONV_OPEN): Use it.
45031         (gl_FUNC_ICONV_OPEN_UTF): New macro.
45032         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
45033         and REPLACE_ICONV_UTF.
45034         * modules/iconv_open (Depends-on): Add c-strcase.
45035         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
45036         ICONV_CONST.
45037         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
45038
45039 2007-10-13  Albert Chin  <china@thewrittenword.com>
45040             Bruno Haible  <bruno@clisp.org>
45041
45042         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
45043         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
45044
45045 2007-10-13  Bruno Haible  <bruno@clisp.org>
45046
45047         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
45048         defined, use the ISO C99 inline semantics.
45049         * lib/argp.h (ARGP_EI): Likewise.
45050
45051 2007-10-13  Bruno Haible  <bruno@clisp.org>
45052
45053         Handle 'inline' change in gcc 4.3.0.
45054         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
45055         argp_fmtstream_write, argp_fmtstream_set_lmargin,
45056         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
45057         argp_fmtstream_point): Disable 'extern' declaration if the function
45058         definition is going to be provided inline.
45059         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
45060         semantics, not the ISO C99 inline semantics.
45061         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
45062         'extern' declaration if the function definition is going to be provided
45063         inline.
45064         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
45065         the GNU C inline semantics, not the ISO C99 inline semantics. With
45066         GCC 4.2, avoid a warning.
45067
45068 2007-10-13  Bruno Haible  <bruno@clisp.org>
45069
45070         * lib/freading.h (freading): Enable the use of __freading for
45071         glibc >= 2.7.
45072         * lib/freading.c (freading): Likewise.
45073
45074 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45075
45076         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
45077         "warning: C99 inline functions are not supported; using GNU89".
45078
45079 2007-10-12  Bruno Haible  <bruno@clisp.org>
45080
45081         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
45082         of 2.
45083         * tests/test-ceilf2.c: New file.
45084         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
45085
45086         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
45087         * modules/ceilf-tests: Update.
45088
45089 2007-10-12  Bruno Haible  <bruno@clisp.org>
45090
45091         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
45092         of 2.
45093         * tests/test-floorf2.c: New file.
45094         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
45095
45096         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
45097         * modules/floorf-tests: Update.
45098
45099 2007-10-12  Bruno Haible  <bruno@clisp.org>
45100
45101         * tests/test-trunc2.c: New file.
45102         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
45103
45104         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
45105         * modules/trunc-tests: Update.
45106
45107 2007-10-12  Bruno Haible  <bruno@clisp.org>
45108
45109         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
45110         of 2.
45111         * tests/test-truncf2.c: New file.
45112         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
45113
45114         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
45115         * modules/truncf-tests: Update.
45116
45117 2007-10-11  Eric Blake  <ebb9@byu.net>
45118
45119         Don't claim strerror is broken on Interix.
45120         * doc/functions/strerror.texi (strerror): Known broken systems are
45121         now Solaris 8, and not Interix.
45122         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
45123         Interix on cross-compile.
45124         Reported by Martin Koeppe in
45125         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
45126
45127 2007-10-11  Bruno Haible  <bruno@clisp.org>
45128
45129         * modules/i-ring-tests: New file.
45130         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
45131         instead of assert.
45132
45133 2007-10-11  Bruno Haible  <bruno@clisp.org>
45134
45135         * modules/filenamecat-tests: New file.
45136         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
45137         * lib/filenamecat.c: Remove test code.
45138
45139 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45140
45141         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
45142
45143         * lib/strerror.c: Include <string.h> always, to test interface,
45144         and to remove the need for the dummy.
45145         Include intprops.h to compute width instead of doing it ourselves
45146         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
45147         (strerror): Define it to return NULL if there's no system strerror.
45148         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
45149         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
45150         ancient pre-strerror Unix systems well any more.  Saying "unknown
45151         system error" is enough.
45152         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
45153         simpler strerror.c implementation.
45154         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
45155         Simplify the tests to reflect the simpler strerror implementation.
45156         * modules/strerror (Depends-on): Add intprops.
45157
45158 2007-10-09  Eric Blake  <ebb9@byu.net>
45159
45160         Silence test-fpending.
45161         * modules/fpending-tests (Files): Add wrapper script.
45162         * tests/test-fpending.sh: New file.
45163
45164 2007-10-09  Bruno Haible  <bruno@clisp.org>
45165
45166         * MODULES.html.sh (func_module): Don't create a hyperlink for
45167         function names like 'printf_frexp'.
45168         (Misc): Add crc, memxor.
45169         (Characteristics of floating types): New section.
45170         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
45171         isnanf-nolibm, signbit, trunc, truncf, truncl.
45172         (Enhancements for ISO C 99 functions): New subsection Input/output.
45173         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
45174         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
45175         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
45176         (Compatibility checks for POSIX:2001 functions): Add clock-time.
45177         (Enhancements for POSIX:2001 functions): Add chdir-long.
45178         (File system functions): Add areadlink, chdir-safer, read-file.
45179         Remove cycle-check.
45180         (File system as inode set): New section.
45181         (Date and time): Add gethrxtime.
45182         (Multithreading): Add openmp.
45183         (Internationalization functions): Add localename.
45184         (Unicode string functions): Add unistr/u*-mbsnlen.
45185         (Support for maintaining and releasing projects): Add git-version-gen.
45186         (Lone files): Remove directories.
45187
45188 2007-10-08  Ben Pfaff  <blp@gnu.org>
45189
45190         * lib/xmalloca.h: Fix typo in comment.
45191
45192 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45193
45194         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
45195         when avoiding problems with integer overflow.  Use a portable test
45196         instead.
45197
45198 2007-10-08  Simon Josefsson  <simon@josefsson.org>
45199
45200         * modules/dummy (License): Change to LGPLv2+.
45201         * modules/float (License): Likewise
45202         * modules/realloc (License): Likewise
45203         * modules/stdlib (License): Likewise
45204
45205 2007-10-07  Bruno Haible  <bruno@clisp.org>
45206
45207         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
45208         * floor.c (TWO_MANT_DIG): Likewise.
45209         * ceil.c (TWO_MANT_DIG): Likewise.
45210         Reported by Ben Pfaff.
45211
45212 2007-10-07  Bruno Haible  <bruno@clisp.org>
45213
45214         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
45215         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
45216         * lib/frexp.c (FUNC): Likewise.
45217         * lib/printf-frexp.h (printf_frexp): Likewise.
45218         * lib/printf-frexpl.h (printf_frexpl): Likewise.
45219         * lib/printf-frexp.c (FUNC): Likewise.
45220         Suggested by Jim Meyering.
45221
45222 2007-10-07  Jim Meyering  <meyering@redhat.com>
45223
45224         Make xnanosleep's integer overflow test more robust.
45225         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
45226         so that gcc-4.3.0 doesn't optimize away this test for overflow.
45227
45228 2007-10-07  Bruno Haible  <bruno@clisp.org>
45229
45230         * NEWS: Mention the license change.
45231
45232         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
45233         abbreviations in the modules files.
45234
45235         Change copyright notice from GPLv2+ to GPLv3+.
45236         * README: Change copyright notice.
45237         * MODULES.html.sh: Likewise.
45238         * build-aux/bootstrap.conf: Likewise.
45239         * build-aux/config.libpath: Likewise.
45240         * build-aux/csharpcomp.sh.in: Likewise.
45241         * build-aux/csharpexec.sh.in: Likewise.
45242         * build-aux/install-reloc: Likewise.
45243         * build-aux/javacomp.sh.in: Likewise.
45244         * build-aux/javaexec.sh.in: Likewise.
45245         * build-aux/ldd.sh.in: Likewise.
45246         * build-aux/reloc-ldflags: Likewise.
45247         * build-aux/relocatable.sh.in: Likewise.
45248         * build-aux/x-to-1.in: Likewise.
45249         * check-module: Likewise.
45250         * config/srclistvars.sh: Likewise.
45251         * gnulib-tool: Likewise.
45252         * lib/acl-internal.h: Likewise.
45253         * lib/acl.c: Likewise.
45254         * lib/acl.h: Likewise.
45255         * lib/acl_entries.c: Likewise.
45256         * lib/areadlink-with-size.c: Likewise.
45257         * lib/areadlink.c: Likewise.
45258         * lib/areadlink.h: Likewise.
45259         * lib/argmatch.c: Likewise.
45260         * lib/argmatch.h: Likewise.
45261         * lib/argp-ba.c: Likewise.
45262         * lib/argp-eexst.c: Likewise.
45263         * lib/argp-fmtstream.c: Likewise.
45264         * lib/argp-fmtstream.h: Likewise.
45265         * lib/argp-fs-xinl.c: Likewise.
45266         * lib/argp-help.c: Likewise.
45267         * lib/argp-namefrob.h: Likewise.
45268         * lib/argp-parse.c: Likewise.
45269         * lib/argp-pin.c: Likewise.
45270         * lib/argp-pv.c: Likewise.
45271         * lib/argp-pvh.c: Likewise.
45272         * lib/argp-xinl.c: Likewise.
45273         * lib/argp.h: Likewise.
45274         * lib/at-func.c: Likewise.
45275         * lib/atanl.c: Likewise.
45276         * lib/backupfile.c: Likewise.
45277         * lib/backupfile.h: Likewise.
45278         * lib/basename.c: Likewise.
45279         * lib/binary-io.h: Likewise.
45280         * lib/byteswap.in.h: Likewise.
45281         * lib/c-stack.c: Likewise.
45282         * lib/c-stack.h: Likewise.
45283         * lib/c-strcasestr.c: Likewise.
45284         * lib/c-strcasestr.h: Likewise.
45285         * lib/c-strstr.c: Likewise.
45286         * lib/c-strstr.h: Likewise.
45287         * lib/c-strtod.c: Likewise.
45288         * lib/calloc.c: Likewise.
45289         * lib/canon-host.c: Likewise.
45290         * lib/canon-host.h: Likewise.
45291         * lib/canonicalize-lgpl.c: Likewise.
45292         * lib/canonicalize.c: Likewise.
45293         * lib/canonicalize.h: Likewise.
45294         * lib/ceil.c: Likewise.
45295         * lib/ceilf.c: Likewise.
45296         * lib/ceill.c: Likewise.
45297         * lib/chdir-long.c: Likewise.
45298         * lib/chdir-long.h: Likewise.
45299         * lib/chdir-safer.c: Likewise.
45300         * lib/chdir-safer.h: Likewise.
45301         * lib/chown.c: Likewise.
45302         * lib/classpath.c: Likewise.
45303         * lib/classpath.h: Likewise.
45304         * lib/clean-temp.c: Likewise.
45305         * lib/clean-temp.h: Likewise.
45306         * lib/cloexec.c: Likewise.
45307         * lib/close-stream.c: Likewise.
45308         * lib/closein.c: Likewise.
45309         * lib/closein.h: Likewise.
45310         * lib/closeout.c: Likewise.
45311         * lib/closeout.h: Likewise.
45312         * lib/concat-filename.c: Likewise.
45313         * lib/copy-file.c: Likewise.
45314         * lib/copy-file.h: Likewise.
45315         * lib/count-one-bits.h: Likewise.
45316         * lib/crc.c: Likewise.
45317         * lib/crc.h: Likewise.
45318         * lib/creat-safer.c: Likewise.
45319         * lib/csharpcomp.c: Likewise.
45320         * lib/csharpcomp.h: Likewise.
45321         * lib/csharpexec.c: Likewise.
45322         * lib/csharpexec.h: Likewise.
45323         * lib/cycle-check.c: Likewise.
45324         * lib/cycle-check.h: Likewise.
45325         * lib/diacrit.c: Likewise.
45326         * lib/diacrit.h: Likewise.
45327         * lib/diffseq.h: Likewise.
45328         * lib/dirchownmod.c: Likewise.
45329         * lib/dirent.in.h: Likewise.
45330         * lib/dirfd.c: Likewise.
45331         * lib/dirfd.h: Likewise.
45332         * lib/dirname.c: Likewise.
45333         * lib/dirname.h: Likewise.
45334         * lib/dummy.c: Likewise.
45335         * lib/dup-safer.c: Likewise.
45336         * lib/dup2.c: Likewise.
45337         * lib/eealloc.h: Likewise.
45338         * lib/error.c: Likewise.
45339         * lib/error.h: Likewise.
45340         * lib/euidaccess.c: Likewise.
45341         * lib/exclude.c: Likewise.
45342         * lib/exclude.h: Likewise.
45343         * lib/execute.c: Likewise.
45344         * lib/execute.h: Likewise.
45345         * lib/exitfail.c: Likewise.
45346         * lib/exitfail.h: Likewise.
45347         * lib/expl.c: Likewise.
45348         * lib/fatal-signal.c: Likewise.
45349         * lib/fatal-signal.h: Likewise.
45350         * lib/fbufmode.c: Likewise.
45351         * lib/fbufmode.h: Likewise.
45352         * lib/fchdir.c: Likewise.
45353         * lib/fchmodat.c: Likewise.
45354         * lib/fchownat.c: Likewise.
45355         * lib/fcntl--.h: Likewise.
45356         * lib/fcntl-safer.h: Likewise.
45357         * lib/fcntl.in.h: Likewise.
45358         * lib/fd-safer.c: Likewise.
45359         * lib/fflush.c: Likewise.
45360         * lib/file-has-acl.c: Likewise.
45361         * lib/file-set.c: Likewise.
45362         * lib/file-type.c: Likewise.
45363         * lib/file-type.h: Likewise.
45364         * lib/fileblocks.c: Likewise.
45365         * lib/filemode.c: Likewise.
45366         * lib/filemode.h: Likewise.
45367         * lib/filename.h: Likewise.
45368         * lib/filenamecat.c: Likewise.
45369         * lib/filenamecat.h: Likewise.
45370         * lib/findprog.c: Likewise.
45371         * lib/findprog.h: Likewise.
45372         * lib/float.in.h: Likewise.
45373         * lib/floor.c: Likewise.
45374         * lib/floorf.c: Likewise.
45375         * lib/floorl.c: Likewise.
45376         * lib/fopen-safer.c: Likewise.
45377         * lib/fopen.c: Likewise.
45378         * lib/fpending.c: Likewise.
45379         * lib/fpending.h: Likewise.
45380         * lib/fprintf.c: Likewise.
45381         * lib/fprintftime.h: Likewise.
45382         * lib/fpucw.h: Likewise.
45383         * lib/fpurge.c: Likewise.
45384         * lib/fpurge.h: Likewise.
45385         * lib/freadable.c: Likewise.
45386         * lib/freadable.h: Likewise.
45387         * lib/freadahead.c: Likewise.
45388         * lib/freadahead.h: Likewise.
45389         * lib/freading.c: Likewise.
45390         * lib/freading.h: Likewise.
45391         * lib/free.c: Likewise.
45392         * lib/freopen.c: Likewise.
45393         * lib/frexp.c: Likewise.
45394         * lib/frexpl.c: Likewise.
45395         * lib/fseek.c: Likewise.
45396         * lib/fseterr.c: Likewise.
45397         * lib/fseterr.h: Likewise.
45398         * lib/fstatat.c: Likewise.
45399         * lib/fstrcmp.c: Likewise.
45400         * lib/fstrcmp.h: Likewise.
45401         * lib/fsusage.c: Likewise.
45402         * lib/fsusage.h: Likewise.
45403         * lib/ftell.c: Likewise.
45404         * lib/ftello.c: Likewise.
45405         * lib/fts-cycle.c: Likewise.
45406         * lib/fts.c: Likewise.
45407         * lib/fts_.h: Likewise.
45408         * lib/full-read.c: Likewise.
45409         * lib/full-read.h: Likewise.
45410         * lib/full-write.c: Likewise.
45411         * lib/full-write.h: Likewise.
45412         * lib/fwritable.c: Likewise.
45413         * lib/fwritable.h: Likewise.
45414         * lib/fwriteerror.c: Likewise.
45415         * lib/fwriteerror.h: Likewise.
45416         * lib/fwriting.c: Likewise.
45417         * lib/fwriting.h: Likewise.
45418         * lib/gcd.c: Likewise.
45419         * lib/gcd.h: Likewise.
45420         * lib/getcwd.c: Likewise.
45421         * lib/getdate.h: Likewise.
45422         * lib/getdate.y: Likewise.
45423         * lib/getdomainname.c: Likewise.
45424         * lib/getdomainname.h: Likewise.
45425         * lib/getgroups.c: Likewise.
45426         * lib/gethostname.c: Likewise.
45427         * lib/gethrxtime.c: Likewise.
45428         * lib/gethrxtime.h: Likewise.
45429         * lib/getloadavg.c: Likewise.
45430         * lib/getndelim2.c: Likewise.
45431         * lib/getndelim2.h: Likewise.
45432         * lib/getnline.c: Likewise.
45433         * lib/getnline.h: Likewise.
45434         * lib/getopt.c: Likewise.
45435         * lib/getopt.in.h: Likewise.
45436         * lib/getopt1.c: Likewise.
45437         * lib/getopt_int.h: Likewise.
45438         * lib/getpagesize.h: Likewise.
45439         * lib/getsubopt.c: Likewise.
45440         * lib/gettime.c: Likewise.
45441         * lib/getugroups.c: Likewise.
45442         * lib/getugroups.h: Likewise.
45443         * lib/getusershell.c: Likewise.
45444         * lib/gl_anyavltree_list1.h: Likewise.
45445         * lib/gl_anyavltree_list2.h: Likewise.
45446         * lib/gl_anyhash_list1.h: Likewise.
45447         * lib/gl_anyhash_list2.h: Likewise.
45448         * lib/gl_anylinked_list1.h: Likewise.
45449         * lib/gl_anylinked_list2.h: Likewise.
45450         * lib/gl_anyrbtree_list1.h: Likewise.
45451         * lib/gl_anyrbtree_list2.h: Likewise.
45452         * lib/gl_anytree_list1.h: Likewise.
45453         * lib/gl_anytree_list2.h: Likewise.
45454         * lib/gl_anytree_oset.h: Likewise.
45455         * lib/gl_anytreehash_list1.h: Likewise.
45456         * lib/gl_anytreehash_list2.h: Likewise.
45457         * lib/gl_array_list.c: Likewise.
45458         * lib/gl_array_list.h: Likewise.
45459         * lib/gl_array_oset.c: Likewise.
45460         * lib/gl_array_oset.h: Likewise.
45461         * lib/gl_avltree_list.c: Likewise.
45462         * lib/gl_avltree_list.h: Likewise.
45463         * lib/gl_avltree_oset.c: Likewise.
45464         * lib/gl_avltree_oset.h: Likewise.
45465         * lib/gl_avltreehash_list.c: Likewise.
45466         * lib/gl_avltreehash_list.h: Likewise.
45467         * lib/gl_carray_list.c: Likewise.
45468         * lib/gl_carray_list.h: Likewise.
45469         * lib/gl_linked_list.c: Likewise.
45470         * lib/gl_linked_list.h: Likewise.
45471         * lib/gl_linkedhash_list.c: Likewise.
45472         * lib/gl_linkedhash_list.h: Likewise.
45473         * lib/gl_list.c: Likewise.
45474         * lib/gl_list.h: Likewise.
45475         * lib/gl_oset.c: Likewise.
45476         * lib/gl_oset.h: Likewise.
45477         * lib/gl_rbtree_list.c: Likewise.
45478         * lib/gl_rbtree_list.h: Likewise.
45479         * lib/gl_rbtree_oset.c: Likewise.
45480         * lib/gl_rbtree_oset.h: Likewise.
45481         * lib/gl_rbtreehash_list.c: Likewise.
45482         * lib/gl_rbtreehash_list.h: Likewise.
45483         * lib/gl_sublist.c: Likewise.
45484         * lib/gl_sublist.h: Likewise.
45485         * lib/group-member.c: Likewise.
45486         * lib/group-member.h: Likewise.
45487         * lib/hard-locale.c: Likewise.
45488         * lib/hard-locale.h: Likewise.
45489         * lib/hash-pjw.c: Likewise.
45490         * lib/hash-pjw.h: Likewise.
45491         * lib/hash-triple.c: Likewise.
45492         * lib/hash.c: Likewise.
45493         * lib/hash.h: Likewise.
45494         * lib/human.c: Likewise.
45495         * lib/human.h: Likewise.
45496         * lib/i-ring.c: Likewise.
45497         * lib/i-ring.h: Likewise.
45498         * lib/idcache.c: Likewise.
45499         * lib/imaxabs.c: Likewise.
45500         * lib/imaxdiv.c: Likewise.
45501         * lib/inet_pton.c: Likewise.
45502         * lib/inet_pton.h: Likewise.
45503         * lib/intprops.h: Likewise.
45504         * lib/inttostr.c: Likewise.
45505         * lib/inttostr.h: Likewise.
45506         * lib/inttypes.in.h: Likewise.
45507         * lib/isapipe.c: Likewise.
45508         * lib/isdir.c: Likewise.
45509         * lib/isnan.c: Likewise.
45510         * lib/isnan.h: Likewise.
45511         * lib/isnanf.c: Likewise.
45512         * lib/isnanf.h: Likewise.
45513         * lib/isnanl-nolibm.h: Likewise.
45514         * lib/isnanl.c: Likewise.
45515         * lib/isnanl.h: Likewise.
45516         * lib/javacomp.c: Likewise.
45517         * lib/javacomp.h: Likewise.
45518         * lib/javaexec.c: Likewise.
45519         * lib/javaexec.h: Likewise.
45520         * lib/javaversion.c: Likewise.
45521         * lib/javaversion.h: Likewise.
45522         * lib/javaversion.java: Likewise.
45523         * lib/lbrkprop.h: Likewise.
45524         * lib/lchmod.h: Likewise.
45525         * lib/lchown.c: Likewise.
45526         * lib/ldexpl.c: Likewise.
45527         * lib/linebreak.c: Likewise.
45528         * lib/linebreak.h: Likewise.
45529         * lib/linebuffer.c: Likewise.
45530         * lib/linebuffer.h: Likewise.
45531         * lib/locale.in.h: Likewise.
45532         * lib/logl.c: Likewise.
45533         * lib/long-options.c: Likewise.
45534         * lib/long-options.h: Likewise.
45535         * lib/lstat.c: Likewise.
45536         * lib/lstat.h: Likewise.
45537         * lib/math.in.h: Likewise.
45538         * lib/mbchar.c: Likewise.
45539         * lib/mbchar.h: Likewise.
45540         * lib/mbfile.h: Likewise.
45541         * lib/mbiter.h: Likewise.
45542         * lib/mbscasecmp.c: Likewise.
45543         * lib/mbscasestr.c: Likewise.
45544         * lib/mbschr.c: Likewise.
45545         * lib/mbscspn.c: Likewise.
45546         * lib/mbslen.c: Likewise.
45547         * lib/mbsncasecmp.c: Likewise.
45548         * lib/mbsnlen.c: Likewise.
45549         * lib/mbspbrk.c: Likewise.
45550         * lib/mbspcasecmp.c: Likewise.
45551         * lib/mbsrchr.c: Likewise.
45552         * lib/mbssep.c: Likewise.
45553         * lib/mbsspn.c: Likewise.
45554         * lib/mbsstr.c: Likewise.
45555         * lib/mbstok_r.c: Likewise.
45556         * lib/mbswidth.c: Likewise.
45557         * lib/mbswidth.h: Likewise.
45558         * lib/mbuiter.h: Likewise.
45559         * lib/memcasecmp.c: Likewise.
45560         * lib/memcasecmp.h: Likewise.
45561         * lib/memchr.c: Likewise.
45562         * lib/memcmp.c: Likewise.
45563         * lib/memcoll.c: Likewise.
45564         * lib/memcoll.h: Likewise.
45565         * lib/memcpy.c: Likewise.
45566         * lib/memrchr.c: Likewise.
45567         * lib/mkancesdirs.c: Likewise.
45568         * lib/mkdir-p.c: Likewise.
45569         * lib/mkdir-p.h: Likewise.
45570         * lib/mkdir.c: Likewise.
45571         * lib/mkdirat.c: Likewise.
45572         * lib/mkdtemp.c: Likewise.
45573         * lib/mkstemp-safer.c: Likewise.
45574         * lib/mkstemp.c: Likewise.
45575         * lib/modechange.c: Likewise.
45576         * lib/modechange.h: Likewise.
45577         * lib/mountlist.c: Likewise.
45578         * lib/mountlist.h: Likewise.
45579         * lib/mpsort.c: Likewise.
45580         * lib/nanosleep.c: Likewise.
45581         * lib/obstack.c: Likewise.
45582         * lib/obstack.h: Likewise.
45583         * lib/open-safer.c: Likewise.
45584         * lib/open.c: Likewise.
45585         * lib/openat-die.c: Likewise.
45586         * lib/openat-priv.h: Likewise.
45587         * lib/openat-proc.c: Likewise.
45588         * lib/openat.c: Likewise.
45589         * lib/openat.h: Likewise.
45590         * lib/pagealign_alloc.c: Likewise.
45591         * lib/pagealign_alloc.h: Likewise.
45592         * lib/physmem.c: Likewise.
45593         * lib/physmem.h: Likewise.
45594         * lib/pipe-safer.c: Likewise.
45595         * lib/pipe.c: Likewise.
45596         * lib/pipe.h: Likewise.
45597         * lib/posixtm.c: Likewise.
45598         * lib/posixtm.h: Likewise.
45599         * lib/posixver.c: Likewise.
45600         * lib/printf-frexp.c: Likewise.
45601         * lib/printf-frexp.h: Likewise.
45602         * lib/printf-frexpl.c: Likewise.
45603         * lib/printf-frexpl.h: Likewise.
45604         * lib/printf.c: Likewise.
45605         * lib/progname.c: Likewise.
45606         * lib/progname.h: Likewise.
45607         * lib/progreloc.c: Likewise.
45608         * lib/putenv.c: Likewise.
45609         * lib/quote.c: Likewise.
45610         * lib/quote.h: Likewise.
45611         * lib/quotearg.c: Likewise.
45612         * lib/quotearg.h: Likewise.
45613         * lib/raise.c: Likewise.
45614         * lib/readline.c: Likewise.
45615         * lib/readline.h: Likewise.
45616         * lib/readlink.c: Likewise.
45617         * lib/readtokens.c: Likewise.
45618         * lib/readtokens.h: Likewise.
45619         * lib/readtokens0.c: Likewise.
45620         * lib/readtokens0.h: Likewise.
45621         * lib/readutmp.c: Likewise.
45622         * lib/readutmp.h: Likewise.
45623         * lib/realloc.c: Likewise.
45624         * lib/relocwrapper.c: Likewise.
45625         * lib/rename-dest-slash.c: Likewise.
45626         * lib/rename.c: Likewise.
45627         * lib/rmdir.c: Likewise.
45628         * lib/rpmatch.c: Likewise.
45629         * lib/safe-read.c: Likewise.
45630         * lib/safe-read.h: Likewise.
45631         * lib/safe-write.c: Likewise.
45632         * lib/safe-write.h: Likewise.
45633         * lib/same-inode.h: Likewise.
45634         * lib/same.c: Likewise.
45635         * lib/same.h: Likewise.
45636         * lib/save-cwd.c: Likewise.
45637         * lib/save-cwd.h: Likewise.
45638         * lib/savedir.c: Likewise.
45639         * lib/savedir.h: Likewise.
45640         * lib/savewd.c: Likewise.
45641         * lib/savewd.h: Likewise.
45642         * lib/search.in.h: Likewise.
45643         * lib/setenv.c: Likewise.
45644         * lib/setenv.h: Likewise.
45645         * lib/settime.c: Likewise.
45646         * lib/sh-quote.c: Likewise.
45647         * lib/sh-quote.h: Likewise.
45648         * lib/sig2str.c: Likewise.
45649         * lib/sig2str.h: Likewise.
45650         * lib/signal.in.h: Likewise.
45651         * lib/signbitd.c: Likewise.
45652         * lib/signbitf.c: Likewise.
45653         * lib/signbitl.c: Likewise.
45654         * lib/sigprocmask.c: Likewise.
45655         * lib/sincosl.c: Likewise.
45656         * lib/sleep.c: Likewise.
45657         * lib/sprintf.c: Likewise.
45658         * lib/sqrtl.c: Likewise.
45659         * lib/stat-time.h: Likewise.
45660         * lib/stdio--.h: Likewise.
45661         * lib/stdio-safer.h: Likewise.
45662         * lib/stdlib--.h: Likewise.
45663         * lib/stdlib-safer.h: Likewise.
45664         * lib/stdlib.in.h: Likewise.
45665         * lib/stpcpy.c: Likewise.
45666         * lib/stpncpy.c: Likewise.
45667         * lib/strchrnul.c: Likewise.
45668         * lib/strcspn.c: Likewise.
45669         * lib/strerror.c: Likewise.
45670         * lib/strftime.c: Likewise.
45671         * lib/strftime.h: Likewise.
45672         * lib/striconveh.c: Likewise.
45673         * lib/striconveh.h: Likewise.
45674         * lib/striconveha.c: Likewise.
45675         * lib/striconveha.h: Likewise.
45676         * lib/stripslash.c: Likewise.
45677         * lib/strnlen1.c: Likewise.
45678         * lib/strnlen1.h: Likewise.
45679         * lib/strtod.c: Likewise.
45680         * lib/strtoimax.c: Likewise.
45681         * lib/strtok_r.c: Likewise.
45682         * lib/strtol.c: Likewise.
45683         * lib/strtoll.c: Likewise.
45684         * lib/strtoul.c: Likewise.
45685         * lib/strtoull.c: Likewise.
45686         * lib/sysexits.in.h: Likewise.
45687         * lib/tempname.c: Likewise.
45688         * lib/tempname.h: Likewise.
45689         * lib/timespec.h: Likewise.
45690         * lib/tls.c: Likewise.
45691         * lib/tls.h: Likewise.
45692         * lib/tmpdir.c: Likewise.
45693         * lib/tmpdir.h: Likewise.
45694         * lib/tmpfile-safer.c: Likewise.
45695         * lib/tmpfile.c: Likewise.
45696         * lib/trigl.c: Likewise.
45697         * lib/trigl.h: Likewise.
45698         * lib/trim.c: Likewise.
45699         * lib/trim.h: Likewise.
45700         * lib/trunc.c: Likewise.
45701         * lib/truncf.c: Likewise.
45702         * lib/truncl.c: Likewise.
45703         * lib/tsearch.c: Likewise.
45704         * lib/unicodeio.c: Likewise.
45705         * lib/unicodeio.h: Likewise.
45706         * lib/unistd--.h: Likewise.
45707         * lib/unistd-safer.h: Likewise.
45708         * lib/unistdio/ulc-fprintf.c: Likewise.
45709         * lib/unistdio/ulc-vfprintf.c: Likewise.
45710         * lib/unlinkdir.c: Likewise.
45711         * lib/unlinkdir.h: Likewise.
45712         * lib/unlocked-io.h: Likewise.
45713         * lib/unsetenv.c: Likewise.
45714         * lib/userspec.c: Likewise.
45715         * lib/utime.c: Likewise.
45716         * lib/utimecmp.c: Likewise.
45717         * lib/utimecmp.h: Likewise.
45718         * lib/utimens.c: Likewise.
45719         * lib/verify.h: Likewise.
45720         * lib/verror.c: Likewise.
45721         * lib/verror.h: Likewise.
45722         * lib/version-etc-fsf.c: Likewise.
45723         * lib/version-etc.c: Likewise.
45724         * lib/version-etc.h: Likewise.
45725         * lib/vfprintf.c: Likewise.
45726         * lib/vprintf.c: Likewise.
45727         * lib/vsprintf.c: Likewise.
45728         * lib/w32spawn.h: Likewise.
45729         * lib/wait-process.c: Likewise.
45730         * lib/wait-process.h: Likewise.
45731         * lib/wcwidth.c: Likewise.
45732         * lib/write-any-file.c: Likewise.
45733         * lib/xalloc-die.c: Likewise.
45734         * lib/xalloc.h: Likewise.
45735         * lib/xasprintf.c: Likewise.
45736         * lib/xgetcwd.c: Likewise.
45737         * lib/xgetcwd.h: Likewise.
45738         * lib/xgetdomainname.c: Likewise.
45739         * lib/xgetdomainname.h: Likewise.
45740         * lib/xgethostname.c: Likewise.
45741         * lib/xmalloc.c: Likewise.
45742         * lib/xmalloca.c: Likewise.
45743         * lib/xmalloca.h: Likewise.
45744         * lib/xmemcoll.c: Likewise.
45745         * lib/xnanosleep.c: Likewise.
45746         * lib/xreadlink.c: Likewise.
45747         * lib/xreadlink.h: Likewise.
45748         * lib/xsetenv.c: Likewise.
45749         * lib/xsetenv.h: Likewise.
45750         * lib/xstriconv.c: Likewise.
45751         * lib/xstriconv.h: Likewise.
45752         * lib/xstrndup.c: Likewise.
45753         * lib/xstrndup.h: Likewise.
45754         * lib/xstrtod.c: Likewise.
45755         * lib/xstrtod.h: Likewise.
45756         * lib/xstrtol-error.c: Likewise.
45757         * lib/xstrtol.c: Likewise.
45758         * lib/xstrtol.h: Likewise.
45759         * lib/xtime.h: Likewise.
45760         * lib/xvasprintf.c: Likewise.
45761         * lib/xvasprintf.h: Likewise.
45762         * lib/yesno.c: Likewise.
45763         * lib/yesno.h: Likewise.
45764         * posix-modules: Likewise.
45765         * tests/test-alloca-opt.c: Likewise.
45766         * tests/test-arcfour.c: Likewise.
45767         * tests/test-arctwo.c: Likewise.
45768         * tests/test-argmatch.c: Likewise.
45769         * tests/test-argp-2.sh: Likewise.
45770         * tests/test-argp.c: Likewise.
45771         * tests/test-arpa_inet.c: Likewise.
45772         * tests/test-array_list.c: Likewise.
45773         * tests/test-array_oset.c: Likewise.
45774         * tests/test-atexit.c: Likewise.
45775         * tests/test-avltree_list.c: Likewise.
45776         * tests/test-avltree_oset.c: Likewise.
45777         * tests/test-avltreehash_list.c: Likewise.
45778         * tests/test-base64.c: Likewise.
45779         * tests/test-binary-io.c: Likewise.
45780         * tests/test-byteswap.c: Likewise.
45781         * tests/test-c-ctype.c: Likewise.
45782         * tests/test-c-strcasecmp.c: Likewise.
45783         * tests/test-c-strcasestr.c: Likewise.
45784         * tests/test-c-strncasecmp.c: Likewise.
45785         * tests/test-c-strstr.c: Likewise.
45786         * tests/test-canonicalize-lgpl.c: Likewise.
45787         * tests/test-canonicalize.c: Likewise.
45788         * tests/test-carray_list.c: Likewise.
45789         * tests/test-ceilf.c: Likewise.
45790         * tests/test-ceill.c: Likewise.
45791         * tests/test-count-one-bits.c: Likewise.
45792         * tests/test-crc.c: Likewise.
45793         * tests/test-dirname.c: Likewise.
45794         * tests/test-fbufmode.c: Likewise.
45795         * tests/test-fcntl.c: Likewise.
45796         * tests/test-fflush.c: Likewise.
45797         * tests/test-floorf.c: Likewise.
45798         * tests/test-floorl.c: Likewise.
45799         * tests/test-fopen.c: Likewise.
45800         * tests/test-fprintf-posix.c: Likewise.
45801         * tests/test-fprintf-posix.h: Likewise.
45802         * tests/test-fpurge.c: Likewise.
45803         * tests/test-freadable.c: Likewise.
45804         * tests/test-freadahead.c: Likewise.
45805         * tests/test-freading.c: Likewise.
45806         * tests/test-freopen.c: Likewise.
45807         * tests/test-frexp.c: Likewise.
45808         * tests/test-frexpl.c: Likewise.
45809         * tests/test-fseek.c: Likewise.
45810         * tests/test-fseeko.c: Likewise.
45811         * tests/test-fseterr.c: Likewise.
45812         * tests/test-fstrcmp.c: Likewise.
45813         * tests/test-ftell.c: Likewise.
45814         * tests/test-ftello.c: Likewise.
45815         * tests/test-fwritable.c: Likewise.
45816         * tests/test-fwriting.c: Likewise.
45817         * tests/test-getaddrinfo.c: Likewise.
45818         * tests/test-getpass.c: Likewise.
45819         * tests/test-gettimeofday.c: Likewise.
45820         * tests/test-hmac-md5.c: Likewise.
45821         * tests/test-hmac-sha1.c: Likewise.
45822         * tests/test-iconv.c: Likewise.
45823         * tests/test-iconvme.c: Likewise.
45824         * tests/test-inttypes.c: Likewise.
45825         * tests/test-isnan.c: Likewise.
45826         * tests/test-isnanf.c: Likewise.
45827         * tests/test-isnanl-nolibm.c: Likewise.
45828         * tests/test-isnanl.c: Likewise.
45829         * tests/test-isnanl.h: Likewise.
45830         * tests/test-ldexpl.c: Likewise.
45831         * tests/test-linked_list.c: Likewise.
45832         * tests/test-linkedhash_list.c: Likewise.
45833         * tests/test-locale.c: Likewise.
45834         * tests/test-localename.c: Likewise.
45835         * tests/test-lock.c: Likewise.
45836         * tests/test-lseek.c: Likewise.
45837         * tests/test-malloca.c: Likewise.
45838         * tests/test-math.c: Likewise.
45839         * tests/test-mbscasecmp.c: Likewise.
45840         * tests/test-mbscasestr1.c: Likewise.
45841         * tests/test-mbscasestr2.c: Likewise.
45842         * tests/test-mbscasestr3.c: Likewise.
45843         * tests/test-mbscasestr4.c: Likewise.
45844         * tests/test-mbschr.c: Likewise.
45845         * tests/test-mbscspn.c: Likewise.
45846         * tests/test-mbsncasecmp.c: Likewise.
45847         * tests/test-mbspbrk.c: Likewise.
45848         * tests/test-mbspcasecmp.c: Likewise.
45849         * tests/test-mbsrchr.c: Likewise.
45850         * tests/test-mbsspn.c: Likewise.
45851         * tests/test-mbsstr1.c: Likewise.
45852         * tests/test-mbsstr2.c: Likewise.
45853         * tests/test-mbsstr3.c: Likewise.
45854         * tests/test-md5.c: Likewise.
45855         * tests/test-memmem.c: Likewise.
45856         * tests/test-netinet_in.c: Likewise.
45857         * tests/test-open.c: Likewise.
45858         * tests/test-printf-frexp.c: Likewise.
45859         * tests/test-printf-frexpl.c: Likewise.
45860         * tests/test-printf-posix.c: Likewise.
45861         * tests/test-printf-posix.h: Likewise.
45862         * tests/test-rbtree_list.c: Likewise.
45863         * tests/test-rbtree_oset.c: Likewise.
45864         * tests/test-rbtreehash_list.c: Likewise.
45865         * tests/test-read-file.c: Likewise.
45866         * tests/test-rijndael.c: Likewise.
45867         * tests/test-search.c: Likewise.
45868         * tests/test-signbit.c: Likewise.
45869         * tests/test-sleep.c: Likewise.
45870         * tests/test-snprintf-posix.c: Likewise.
45871         * tests/test-snprintf-posix.h: Likewise.
45872         * tests/test-snprintf.c: Likewise.
45873         * tests/test-sprintf-posix.c: Likewise.
45874         * tests/test-sprintf-posix.h: Likewise.
45875         * tests/test-stat-time.c: Likewise.
45876         * tests/test-stdbool.c: Likewise.
45877         * tests/test-stdint.c: Likewise.
45878         * tests/test-stdio.c: Likewise.
45879         * tests/test-stdlib.c: Likewise.
45880         * tests/test-stpncpy.c: Likewise.
45881         * tests/test-strcasestr.c: Likewise.
45882         * tests/test-striconv.c: Likewise.
45883         * tests/test-striconveh.c: Likewise.
45884         * tests/test-striconveha.c: Likewise.
45885         * tests/test-string.c: Likewise.
45886         * tests/test-sys_select.c: Likewise.
45887         * tests/test-sys_socket.c: Likewise.
45888         * tests/test-sys_stat.c: Likewise.
45889         * tests/test-sys_time.c: Likewise.
45890         * tests/test-sysexits.c: Likewise.
45891         * tests/test-time.c: Likewise.
45892         * tests/test-tls.c: Likewise.
45893         * tests/test-trunc.c: Likewise.
45894         * tests/test-truncf.c: Likewise.
45895         * tests/test-truncl.c: Likewise.
45896         * tests/test-unistd.c: Likewise.
45897         * tests/test-vasnprintf-posix.c: Likewise.
45898         * tests/test-vasnprintf-posix2.c: Likewise.
45899         * tests/test-vasnprintf.c: Likewise.
45900         * tests/test-vasprintf-posix.c: Likewise.
45901         * tests/test-vasprintf.c: Likewise.
45902         * tests/test-verify.c: Likewise.
45903         * tests/test-vfprintf-posix.c: Likewise.
45904         * tests/test-vprintf-posix.c: Likewise.
45905         * tests/test-vsnprintf-posix.c: Likewise.
45906         * tests/test-vsnprintf.c: Likewise.
45907         * tests/test-vsprintf-posix.c: Likewise.
45908         * tests/test-wchar.c: Likewise.
45909         * tests/test-wctype.c: Likewise.
45910         * tests/test-wcwidth.c: Likewise.
45911         * tests/test-xstrtol.c: Likewise.
45912         * tests/test-xvasprintf.c: Likewise.
45913         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
45914         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
45915         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45916         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45917         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45918         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
45919         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45920         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45921         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45922         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
45923         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45924         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45925         * tests/uniname/test-uninames.c: Likewise.
45926         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
45927         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
45928         * tests/unistdio/test-u16-printf1.h: Likewise.
45929         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
45930         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
45931         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
45932         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
45933         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
45934         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
45935         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
45936         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
45937         * tests/unistdio/test-u32-printf1.h: Likewise.
45938         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
45939         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
45940         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
45941         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
45942         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
45943         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
45944         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
45945         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
45946         * tests/unistdio/test-u8-printf1.h: Likewise.
45947         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
45948         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
45949         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
45950         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
45951         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
45952         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
45953         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
45954         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
45955         * tests/unistdio/test-ulc-printf1.h: Likewise.
45956         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
45957         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
45958         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
45959         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
45960         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
45961         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
45962         * tests/uniwidth/test-u16-strwidth.c: Likewise.
45963         * tests/uniwidth/test-u16-width.c: Likewise.
45964         * tests/uniwidth/test-u32-strwidth.c: Likewise.
45965         * tests/uniwidth/test-u32-width.c: Likewise.
45966         * tests/uniwidth/test-u8-strwidth.c: Likewise.
45967         * tests/uniwidth/test-u8-width.c: Likewise.
45968         * tests/uniwidth/test-uc_width.c: Likewise.
45969         * config/srclist-update: Likewise.
45970         (fixlicense): Update to GPLv3+.
45971
45972         Change copyright notice from LGPLv2.1+ to LGPLv3+.
45973         * tests/test-tsearch.c: Change copyright notice.
45974
45975         Change copyright notice from LGPLv2.0+ to LGPLv3+.
45976         * lib/c-strcaseeq.h: Change copyright notice.
45977         * lib/streq.h: Likewise.
45978         * lib/uniconv.h: Likewise.
45979         * lib/uniconv/u-conv-from-enc.h: Likewise.
45980         * lib/uniconv/u-conv-to-enc.h: Likewise.
45981         * lib/uniconv/u-strconv-from-enc.h: Likewise.
45982         * lib/uniconv/u-strconv-to-enc.h: Likewise.
45983         * lib/uniconv/u16-conv-from-enc.c: Likewise.
45984         * lib/uniconv/u16-conv-to-enc.c: Likewise.
45985         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
45986         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
45987         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
45988         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
45989         * lib/uniconv/u32-conv-from-enc.c: Likewise.
45990         * lib/uniconv/u32-conv-to-enc.c: Likewise.
45991         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
45992         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
45993         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
45994         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
45995         * lib/uniconv/u8-conv-from-enc.c: Likewise.
45996         * lib/uniconv/u8-conv-to-enc.c: Likewise.
45997         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
45998         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
45999         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
46000         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
46001         * lib/uniname.h: Likewise.
46002         * lib/uniname/uniname.c: Likewise.
46003         * lib/unistdio.h: Likewise.
46004         * lib/unistdio/u-asnprintf.h: Likewise.
46005         * lib/unistdio/u-asprintf.h: Likewise.
46006         * lib/unistdio/u-printf-args.c: Likewise.
46007         * lib/unistdio/u-printf-args.h: Likewise.
46008         * lib/unistdio/u-printf-parse.h: Likewise.
46009         * lib/unistdio/u-snprintf.h: Likewise.
46010         * lib/unistdio/u-sprintf.h: Likewise.
46011         * lib/unistdio/u-vasprintf.h: Likewise.
46012         * lib/unistdio/u-vsnprintf.h: Likewise.
46013         * lib/unistdio/u-vsprintf.h: Likewise.
46014         * lib/unistdio/u16-asnprintf.c: Likewise.
46015         * lib/unistdio/u16-asprintf.c: Likewise.
46016         * lib/unistdio/u16-printf-parse.c: Likewise.
46017         * lib/unistdio/u16-snprintf.c: Likewise.
46018         * lib/unistdio/u16-sprintf.c: Likewise.
46019         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
46020         * lib/unistdio/u16-u16-asprintf.c: Likewise.
46021         * lib/unistdio/u16-u16-snprintf.c: Likewise.
46022         * lib/unistdio/u16-u16-sprintf.c: Likewise.
46023         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
46024         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
46025         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
46026         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
46027         * lib/unistdio/u16-vasnprintf.c: Likewise.
46028         * lib/unistdio/u16-vasprintf.c: Likewise.
46029         * lib/unistdio/u16-vsnprintf.c: Likewise.
46030         * lib/unistdio/u16-vsprintf.c: Likewise.
46031         * lib/unistdio/u32-asnprintf.c: Likewise.
46032         * lib/unistdio/u32-asprintf.c: Likewise.
46033         * lib/unistdio/u32-printf-parse.c: Likewise.
46034         * lib/unistdio/u32-snprintf.c: Likewise.
46035         * lib/unistdio/u32-sprintf.c: Likewise.
46036         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
46037         * lib/unistdio/u32-u32-asprintf.c: Likewise.
46038         * lib/unistdio/u32-u32-snprintf.c: Likewise.
46039         * lib/unistdio/u32-u32-sprintf.c: Likewise.
46040         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
46041         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
46042         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
46043         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
46044         * lib/unistdio/u32-vasnprintf.c: Likewise.
46045         * lib/unistdio/u32-vasprintf.c: Likewise.
46046         * lib/unistdio/u32-vsnprintf.c: Likewise.
46047         * lib/unistdio/u32-vsprintf.c: Likewise.
46048         * lib/unistdio/u8-asnprintf.c: Likewise.
46049         * lib/unistdio/u8-asprintf.c: Likewise.
46050         * lib/unistdio/u8-printf-parse.c: Likewise.
46051         * lib/unistdio/u8-snprintf.c: Likewise.
46052         * lib/unistdio/u8-sprintf.c: Likewise.
46053         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
46054         * lib/unistdio/u8-u8-asprintf.c: Likewise.
46055         * lib/unistdio/u8-u8-snprintf.c: Likewise.
46056         * lib/unistdio/u8-u8-sprintf.c: Likewise.
46057         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
46058         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
46059         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
46060         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
46061         * lib/unistdio/u8-vasnprintf.c: Likewise.
46062         * lib/unistdio/u8-vasprintf.c: Likewise.
46063         * lib/unistdio/u8-vsnprintf.c: Likewise.
46064         * lib/unistdio/u8-vsprintf.c: Likewise.
46065         * lib/unistdio/ulc-asnprintf.c: Likewise.
46066         * lib/unistdio/ulc-asprintf.c: Likewise.
46067         * lib/unistdio/ulc-printf-parse.c: Likewise.
46068         * lib/unistdio/ulc-snprintf.c: Likewise.
46069         * lib/unistdio/ulc-sprintf.c: Likewise.
46070         * lib/unistdio/ulc-vasnprintf.c: Likewise.
46071         * lib/unistdio/ulc-vasprintf.c: Likewise.
46072         * lib/unistdio/ulc-vsnprintf.c: Likewise.
46073         * lib/unistdio/ulc-vsprintf.c: Likewise.
46074         * lib/unistr.h: Likewise.
46075         * lib/unistr/u-cpy-alloc.h: Likewise.
46076         * lib/unistr/u-cpy.h: Likewise.
46077         * lib/unistr/u-endswith.h: Likewise.
46078         * lib/unistr/u-move.h: Likewise.
46079         * lib/unistr/u-set.h: Likewise.
46080         * lib/unistr/u-startswith.h: Likewise.
46081         * lib/unistr/u-stpcpy.h: Likewise.
46082         * lib/unistr/u-stpncpy.h: Likewise.
46083         * lib/unistr/u-strcat.h: Likewise.
46084         * lib/unistr/u-strcpy.h: Likewise.
46085         * lib/unistr/u-strcspn.h: Likewise.
46086         * lib/unistr/u-strdup.h: Likewise.
46087         * lib/unistr/u-strlen.h: Likewise.
46088         * lib/unistr/u-strncat.h: Likewise.
46089         * lib/unistr/u-strncpy.h: Likewise.
46090         * lib/unistr/u-strnlen.h: Likewise.
46091         * lib/unistr/u-strpbrk.h: Likewise.
46092         * lib/unistr/u-strspn.h: Likewise.
46093         * lib/unistr/u-strstr.h: Likewise.
46094         * lib/unistr/u-strtok.h: Likewise.
46095         * lib/unistr/u16-check.c: Likewise.
46096         * lib/unistr/u16-chr.c: Likewise.
46097         * lib/unistr/u16-cmp.c: Likewise.
46098         * lib/unistr/u16-cpy-alloc.c: Likewise.
46099         * lib/unistr/u16-cpy.c: Likewise.
46100         * lib/unistr/u16-endswith.c: Likewise.
46101         * lib/unistr/u16-mblen.c: Likewise.
46102         * lib/unistr/u16-mbsnlen.c: Likewise.
46103         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46104         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46105         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46106         * lib/unistr/u16-mbtouc.c: Likewise.
46107         * lib/unistr/u16-mbtoucr.c: Likewise.
46108         * lib/unistr/u16-move.c: Likewise.
46109         * lib/unistr/u16-next.c: Likewise.
46110         * lib/unistr/u16-prev.c: Likewise.
46111         * lib/unistr/u16-set.c: Likewise.
46112         * lib/unistr/u16-startswith.c: Likewise.
46113         * lib/unistr/u16-stpcpy.c: Likewise.
46114         * lib/unistr/u16-stpncpy.c: Likewise.
46115         * lib/unistr/u16-strcat.c: Likewise.
46116         * lib/unistr/u16-strchr.c: Likewise.
46117         * lib/unistr/u16-strcmp.c: Likewise.
46118         * lib/unistr/u16-strcpy.c: Likewise.
46119         * lib/unistr/u16-strcspn.c: Likewise.
46120         * lib/unistr/u16-strdup.c: Likewise.
46121         * lib/unistr/u16-strlen.c: Likewise.
46122         * lib/unistr/u16-strmblen.c: Likewise.
46123         * lib/unistr/u16-strmbtouc.c: Likewise.
46124         * lib/unistr/u16-strncat.c: Likewise.
46125         * lib/unistr/u16-strncmp.c: Likewise.
46126         * lib/unistr/u16-strncpy.c: Likewise.
46127         * lib/unistr/u16-strnlen.c: Likewise.
46128         * lib/unistr/u16-strpbrk.c: Likewise.
46129         * lib/unistr/u16-strrchr.c: Likewise.
46130         * lib/unistr/u16-strspn.c: Likewise.
46131         * lib/unistr/u16-strstr.c: Likewise.
46132         * lib/unistr/u16-strtok.c: Likewise.
46133         * lib/unistr/u16-to-u32.c: Likewise.
46134         * lib/unistr/u16-to-u8.c: Likewise.
46135         * lib/unistr/u16-uctomb-aux.c: Likewise.
46136         * lib/unistr/u16-uctomb.c: Likewise.
46137         * lib/unistr/u32-check.c: Likewise.
46138         * lib/unistr/u32-chr.c: Likewise.
46139         * lib/unistr/u32-cmp.c: Likewise.
46140         * lib/unistr/u32-cpy-alloc.c: Likewise.
46141         * lib/unistr/u32-cpy.c: Likewise.
46142         * lib/unistr/u32-endswith.c: Likewise.
46143         * lib/unistr/u32-mblen.c: Likewise.
46144         * lib/unistr/u32-mbsnlen.c: Likewise.
46145         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46146         * lib/unistr/u32-mbtouc.c: Likewise.
46147         * lib/unistr/u32-mbtoucr.c: Likewise.
46148         * lib/unistr/u32-move.c: Likewise.
46149         * lib/unistr/u32-next.c: Likewise.
46150         * lib/unistr/u32-prev.c: Likewise.
46151         * lib/unistr/u32-set.c: Likewise.
46152         * lib/unistr/u32-startswith.c: Likewise.
46153         * lib/unistr/u32-stpcpy.c: Likewise.
46154         * lib/unistr/u32-stpncpy.c: Likewise.
46155         * lib/unistr/u32-strcat.c: Likewise.
46156         * lib/unistr/u32-strchr.c: Likewise.
46157         * lib/unistr/u32-strcmp.c: Likewise.
46158         * lib/unistr/u32-strcpy.c: Likewise.
46159         * lib/unistr/u32-strcspn.c: Likewise.
46160         * lib/unistr/u32-strdup.c: Likewise.
46161         * lib/unistr/u32-strlen.c: Likewise.
46162         * lib/unistr/u32-strmblen.c: Likewise.
46163         * lib/unistr/u32-strmbtouc.c: Likewise.
46164         * lib/unistr/u32-strncat.c: Likewise.
46165         * lib/unistr/u32-strncmp.c: Likewise.
46166         * lib/unistr/u32-strncpy.c: Likewise.
46167         * lib/unistr/u32-strnlen.c: Likewise.
46168         * lib/unistr/u32-strpbrk.c: Likewise.
46169         * lib/unistr/u32-strrchr.c: Likewise.
46170         * lib/unistr/u32-strspn.c: Likewise.
46171         * lib/unistr/u32-strstr.c: Likewise.
46172         * lib/unistr/u32-strtok.c: Likewise.
46173         * lib/unistr/u32-to-u16.c: Likewise.
46174         * lib/unistr/u32-to-u8.c: Likewise.
46175         * lib/unistr/u32-uctomb.c: Likewise.
46176         * lib/unistr/u8-check.c: Likewise.
46177         * lib/unistr/u8-chr.c: Likewise.
46178         * lib/unistr/u8-cmp.c: Likewise.
46179         * lib/unistr/u8-cpy-alloc.c: Likewise.
46180         * lib/unistr/u8-cpy.c: Likewise.
46181         * lib/unistr/u8-endswith.c: Likewise.
46182         * lib/unistr/u8-mblen.c: Likewise.
46183         * lib/unistr/u8-mbsnlen.c: Likewise.
46184         * lib/unistr/u8-mbtouc-aux.c: Likewise.
46185         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46186         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46187         * lib/unistr/u8-mbtouc.c: Likewise.
46188         * lib/unistr/u8-mbtoucr.c: Likewise.
46189         * lib/unistr/u8-move.c: Likewise.
46190         * lib/unistr/u8-next.c: Likewise.
46191         * lib/unistr/u8-prev.c: Likewise.
46192         * lib/unistr/u8-set.c: Likewise.
46193         * lib/unistr/u8-startswith.c: Likewise.
46194         * lib/unistr/u8-stpcpy.c: Likewise.
46195         * lib/unistr/u8-stpncpy.c: Likewise.
46196         * lib/unistr/u8-strcat.c: Likewise.
46197         * lib/unistr/u8-strchr.c: Likewise.
46198         * lib/unistr/u8-strcmp.c: Likewise.
46199         * lib/unistr/u8-strcpy.c: Likewise.
46200         * lib/unistr/u8-strcspn.c: Likewise.
46201         * lib/unistr/u8-strdup.c: Likewise.
46202         * lib/unistr/u8-strlen.c: Likewise.
46203         * lib/unistr/u8-strmblen.c: Likewise.
46204         * lib/unistr/u8-strmbtouc.c: Likewise.
46205         * lib/unistr/u8-strncat.c: Likewise.
46206         * lib/unistr/u8-strncmp.c: Likewise.
46207         * lib/unistr/u8-strncpy.c: Likewise.
46208         * lib/unistr/u8-strnlen.c: Likewise.
46209         * lib/unistr/u8-strpbrk.c: Likewise.
46210         * lib/unistr/u8-strrchr.c: Likewise.
46211         * lib/unistr/u8-strspn.c: Likewise.
46212         * lib/unistr/u8-strstr.c: Likewise.
46213         * lib/unistr/u8-strtok.c: Likewise.
46214         * lib/unistr/u8-to-u16.c: Likewise.
46215         * lib/unistr/u8-to-u32.c: Likewise.
46216         * lib/unistr/u8-uctomb-aux.c: Likewise.
46217         * lib/unistr/u8-uctomb.c: Likewise.
46218         * lib/unitypes.h: Likewise.
46219         * lib/uniwidth.h: Likewise.
46220         * lib/uniwidth/cjk.h: Likewise.
46221         * lib/uniwidth/u16-strwidth.c: Likewise.
46222         * lib/uniwidth/u16-width.c: Likewise.
46223         * lib/uniwidth/u32-strwidth.c: Likewise.
46224         * lib/uniwidth/u32-width.c: Likewise.
46225         * lib/uniwidth/u8-strwidth.c: Likewise.
46226         * lib/uniwidth/u8-width.c: Likewise.
46227         * lib/uniwidth/width.c: Likewise.
46228
46229 2007-10-07  Bruno Haible  <bruno@clisp.org>
46230
46231         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
46232         The file is still under LGPL (see modules/inttypes).
46233
46234 2007-10-06  Bruno Haible  <bruno@clisp.org>
46235
46236         * modules/trunc (Dependencies): Add 'extensions'.
46237         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
46238         Reported by Ben Pfaff <blp@gnu.org>.
46239
46240 2007-10-06  Bruno Haible  <bruno@clisp.org>
46241
46242         * modules/freopen-tests: New file.
46243         * tests/test-freopen.c: New file.
46244
46245         * modules/fopen-tests: New file.
46246         * tests/test-fopen.c: New file.
46247
46248         * modules/fopen: New file.
46249         * lib/fopen.c: New file.
46250         * m4/fopen.m4: New file.
46251         * modules/freopen: New file.
46252         * lib/freopen.c: New file.
46253         * m4/freopen.m4: New file.
46254         * lib/stdio.in.h (fopen, freopen): New declarations.
46255         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
46256         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46257         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
46258         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46259         * doc/functions/fopen.texi: Mention the 'fopen' module.
46260         * doc/functions/freopen.texi: Mention the 'freopen' module.
46261
46262 2007-10-06  Bruno Haible  <bruno@clisp.org>
46263
46264         * modules/open-tests: New file.
46265         * tests/test-open.c: New file.
46266
46267         * modules/open: New file.
46268         * lib/open.c: New file.
46269         * m4/open.m4: New file.
46270         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
46271         lib/open.c does.
46272         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
46273         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
46274         macros.
46275         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
46276         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
46277         REPLACE_OPEN.
46278         * doc/functions/open.texi: Mention the 'open' module.
46279
46280 2007-10-04  Bruno Haible  <bruno@clisp.org>
46281
46282         * modules/ceill-tests: New file.
46283         * tests/test-ceill.c: New file.
46284
46285         * modules/ceill: New file.
46286         * lib/ceill.c: Replace entire file.
46287         * m4/ceill.m4: New file.
46288         * lib/math.in.h (ceill): Replace declaration.
46289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
46290         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
46291         * doc/functions/ceill.texi: Mention the 'ceill' module.
46292         * modules/mathl (Files): Remove lib/ceill.c.
46293         (Depends-on): Add ceill.
46294
46295 2007-10-04  Bruno Haible  <bruno@clisp.org>
46296
46297         * modules/ceilf-tests: New file.
46298         * tests/test-ceilf.c: New file.
46299
46300         * modules/ceilf: New file.
46301         * lib/ceil.c: New file.
46302         * lib/ceilf.c: New file.
46303         * m4/ceilf.m4: New file.
46304         * lib/math.in.h (ceilf): New declaration.
46305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
46306         HAVE_DECL_CEILF.
46307         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
46308         HAVE_DECL_CEILF.
46309         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
46310
46311 2007-10-04  Bruno Haible  <bruno@clisp.org>
46312
46313         * modules/floorl-tests: New file.
46314         * tests/test-floorl.c: New file.
46315
46316         * modules/floorl: New file.
46317         * lib/floorl.c: Replace entire file.
46318         * m4/floorl.m4: New file.
46319         * lib/math.in.h (floorl): Replace declaration.
46320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
46321         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
46322         * doc/functions/floorl.texi: Mention the 'floorl' module.
46323         * modules/mathl (Files): Remove lib/floorl.c.
46324         (Depends-on): Add floorl.
46325
46326 2007-10-04  Bruno Haible  <bruno@clisp.org>
46327
46328         * modules/floorf-tests: New file.
46329         * tests/test-floorf.c: New file.
46330
46331         * modules/floorf: New file.
46332         * lib/floor.c: New file.
46333         * lib/floorf.c: New file.
46334         * m4/floorf.m4: New file.
46335         * lib/math.in.h (floorf): New declaration.
46336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
46337         HAVE_DECL_FLOORF.
46338         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
46339         HAVE_DECL_FLOORF.
46340         * doc/functions/floorf.texi: Mention the 'floorf' module.
46341
46342 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
46343             Bruno Haible  <bruno@clisp.org>
46344
46345         Advertise for the Git server instead of the CVS server.
46346         * doc/gnulib-intro.texi (Steady Development): Mention the Git
46347         repository instead of the CVS one.
46348         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
46349         about all VCS systems generically.
46350         * doc/gnulib.texi (Introduction): Capitalize `Git'.
46351
46352 2007-10-04  Bruno Haible  <bruno@clisp.org>
46353
46354         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
46355         means.
46356         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
46357
46358 2007-10-04  Bruno Haible  <bruno@clisp.org>
46359
46360         * modules/truncl-tests: New file.
46361         * tests/test-truncl.c: New file.
46362
46363         * modules/truncl: New file.
46364         * lib/truncl.c: New file.
46365         * m4/truncl.m4: New file.
46366         * lib/math.in.h (truncl): New declaration.
46367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
46368         HAVE_DECL_TRUNCL.
46369         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
46370         HAVE_DECL_TRUNCL.
46371         * doc/functions/truncl.texi: Mention the 'truncl' module.
46372
46373 2007-10-04  Bruno Haible  <bruno@clisp.org>
46374
46375         * modules/truncf-tests: New file.
46376         * tests/test-truncf.c: New file.
46377
46378         * modules/truncf: New file.
46379         * lib/trunc.c: Make paramerizable through USE_* macros.
46380         * lib/truncf.c: New file.
46381         * m4/truncf.m4: New file.
46382         * lib/math.in.h (truncf): New declaration.
46383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
46384         HAVE_DECL_TRUNCF.
46385         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
46386         HAVE_DECL_TRUNCF.
46387         * doc/functions/truncf.texi: Mention the 'truncf' module.
46388
46389 2007-10-03  Bruno Haible  <bruno@clisp.org>
46390
46391         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46392         augmentation also for tests modules.
46393         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
46394         * modules/atexit-tests (Makefile.am): Likewise.
46395         * modules/binary-io-tests (Makefile.am): Likewise.
46396         * modules/c-strcase-tests (Makefile.am): Likewise.
46397         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
46398         * modules/canonicalize-tests (Makefile.am): Likewise.
46399         * modules/closein-tests (Makefile.am): Likewise.
46400         * modules/fprintf-posix-tests (Makefile.am): Likewise.
46401         * modules/freadahead-tests (Makefile.am): Likewise.
46402         * modules/fseek-tests (Makefile.am): Likewise.
46403         * modules/fseeko-tests (Makefile.am): Likewise.
46404         * modules/ftell-tests (Makefile.am): Likewise.
46405         * modules/ftello-tests (Makefile.am): Likewise.
46406         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
46407         * modules/isnanl-tests (Makefile.am): Likewise.
46408         * modules/lseek-tests (Makefile.am): Likewise.
46409         * modules/mbscasecmp-tests (Makefile.am): Likewise.
46410         * modules/mbscasestr-tests (Makefile.am): Likewise.
46411         * modules/mbschr-tests (Makefile.am): Likewise.
46412         * modules/mbscspn-tests (Makefile.am): Likewise.
46413         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
46414         * modules/mbspbrk-tests (Makefile.am): Likewise.
46415         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
46416         * modules/mbsrchr-tests (Makefile.am): Likewise.
46417         * modules/mbsspn-tests (Makefile.am): Likewise.
46418         * modules/mbsstr-tests (Makefile.am): Likewise.
46419         * modules/printf-posix-tests (Makefile.am): Likewise.
46420         * modules/snprintf-posix-tests (Makefile.am): Likewise.
46421         * modules/sprintf-posix-tests (Makefile.am): Likewise.
46422         * modules/tsearch-tests (Makefile.am): Likewise.
46423         * modules/uniname/uniname-tests (Makefile.am): Likewise.
46424         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
46425         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
46426         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
46427         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
46428         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
46429         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
46430         * modules/vprintf-posix-tests (Makefile.am): Likewise.
46431         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
46432         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
46433         * modules/xstrtoimax-tests (Makefile.am): Likewise.
46434         * modules/xstrtol-tests (Makefile.am): Likewise.
46435         * modules/xstrtoumax-tests (Makefile.am): Likewise.
46436         * modules/yesno-tests (Makefile.am): Likewise.
46437
46438 2007-10-03  Bruno Haible  <bruno@clisp.org>
46439
46440         * modules/trunc-tests: New file.
46441         * tests/test-trunc.c: New file.
46442
46443         * modules/trunc: New file.
46444         * lib/trunc.c: New file.
46445         * m4/trunc.m4: New file.
46446         * lib/math.in.h (trunc): New declaration.
46447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
46448         HAVE_DECL_TRUNC.
46449         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
46450         HAVE_DECL_TRUNC.
46451         * doc/functions/trunc.texi: Mention the 'trunc' module.
46452
46453 2007-10-03  Bruno Haible  <bruno@clisp.org>
46454
46455         * tests/test-fpending.c: New file, mostly copied
46456         from coreutils/lib/t-fpending.c.
46457         * modules/fpending-tests: New file.
46458
46459 2007-10-03  Bruno Haible  <bruno@clisp.org>
46460
46461         Port the stdio extensions to QNX (untested).
46462         * lib/fseterr.c (fseterr): Add support for QNX.
46463         * lib/fbufmode.c (fbufmode): Likewise.
46464         * lib/freadable.c (freadable): Likewise.
46465         * lib/fwritable.c (fwritable): Likewise.
46466         * lib/freading.c (freading): Likewise.
46467         * lib/fwriting.c (fwriting): Likewise.
46468         * lib/freadahead.c (freadahed): Likewise.
46469         * lib/fpurge.c (fpurge): Likewise.
46470         * lib/fseeko.c (rpl_fseeko): Likewise.
46471
46472 2007-10-03  Bruno Haible  <bruno@clisp.org>
46473             Jim Meyering  <jim@meyering.net>
46474             Eric Blake  <ebb9@byu.net>
46475
46476         * doc/relocatable.texi: Use @command instead of @program.
46477
46478 2007-10-02  Jim Meyering  <jim@meyering.net>
46479
46480         Perform one more "_.h" -> ".in.h" substitution.
46481         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
46482         instead of unistd_.h here, too.
46483
46484 2007-10-01  Bruno Haible  <bruno@clisp.org>
46485
46486         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
46487         Needed for the alloca-opt module.
46488
46489 2007-09-30  Bruno Haible  <bruno@clisp.org>
46490
46491         * lib/alloca.in.h: Renamed from lib/alloca_.h.
46492         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
46493         alloca_.h.
46494         * lib/argz.in.h: Renamed from lib/argz_.h.
46495         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
46496         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
46497         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
46498         byteswap_.h.
46499         * lib/dirent.in.h: Renamed from lib/dirent_.h.
46500         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
46501         dirent_.h.
46502         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
46503         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
46504         fcntl_.h.
46505         * lib/float.in.h: Renamed from lib/float_.h.
46506         * modules/float (Files, Makefile.am): Use float.in.h instead of
46507         float_.h.
46508         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
46509         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
46510         fnmatch_.h.
46511         * lib/getopt.in.h: Renamed from lib/getopt_.h.
46512         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
46513         getopt_.h.
46514         * lib/glob.in.h: Renamed from lib/glob_.h.
46515         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
46516         * lib/iconv.in.h: Renamed from lib/iconv_.h.
46517         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
46518         iconv_.h.
46519         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
46520         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
46521         inttypes_.h.
46522         * lib/locale.in.h: Renamed from lib/locale_.h.
46523         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
46524         locale_.h.
46525         * lib/math.in.h: Renamed from lib/math_.h.
46526         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
46527         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
46528         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
46529         of netinet_in_.h. Add dependency.
46530         * lib/poll.in.h: Renamed from lib/poll_.h.
46531         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
46532         * lib/search.in.h: Renamed from lib/search_.h.
46533         * modules/search (Files, Makefile.am): Use search.in.h instead of
46534         search_.h.
46535         * lib/signal.in.h: Renamed from lib/signal_.h.
46536         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
46537         _signal.h.
46538         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
46539         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
46540         stdbool_.h.
46541         * lib/stdint.in.h: Renamed from lib/stdint_.h.
46542         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
46543         stdint_.h.
46544         * lib/stdio.in.h: Renamed from lib/stdio_.h.
46545         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
46546         stdio_.h.
46547         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
46548         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
46549         stdlib_.h.
46550         * lib/string.in.h: Renamed from lib/string_.h.
46551         * modules/string (Files, Makefile.am): Use string.in.h instead of
46552         string_.h.
46553         * doc/gnulib-tool.texi (Initial import): Update.
46554         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
46555         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
46556         of sys_select_.h. Add dependency.
46557         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
46558         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
46559         of sys_socket_.h.
46560         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
46561         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
46562         sys_stat_.h.
46563         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
46564         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
46565         sys_time_.h.
46566         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
46567         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
46568         sysexits_.h.
46569         * lib/time.in.h: Renamed from lib/time_.h.
46570         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
46571         * lib/unistd.in.h: Renamed from lib/unistd_.h.
46572         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
46573         unistd_.h.
46574         * lib/wchar.in.h: Renamed from lib/wchar_.h.
46575         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
46576         wchar_.h.
46577         * lib/wctype.in.h: Renamed from lib/wctype_.h.
46578         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
46579         wctype_.h.
46580         * build-aux/bootstrap (slurp): Update.
46581         * lib/.cppi-disable: Update.
46582
46583 2007-09-30  Bruno Haible  <bruno@clisp.org>
46584
46585         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
46586         Needed on BeOS.
46587
46588 2007-09-30  Bruno Haible  <bruno@clisp.org>
46589
46590         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
46591
46592 2007-09-29  Bruno Haible  <bruno@clisp.org>
46593
46594         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
46595
46596 2007-09-29  Bruno Haible  <bruno@clisp.org>
46597
46598         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
46599         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
46600         * build-aux/install-reloc: Compile also areadlink.c.
46601         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
46602
46603 2007-09-29  Bruno Haible  <bruno@clisp.org>
46604
46605         * gnulib-tool (func_emit_initmacro_done): Indentation.
46606
46607 2007-09-29  Bruno Haible  <bruno@clisp.org>
46608
46609         * README: Add CVS checkout update instructions.
46610         Info from Bob Proulx <bob@proulx.com>.
46611
46612 2007-09-28  Eric Blake  <ebb9@byu.net>
46613
46614         Provide move-if-change.
46615         * build-aux/move-if-change: New file, based on best practice
46616         rather than any canonical upstream location.
46617
46618 2007-09-28  Jim Meyering  <jim@meyering.net>
46619
46620         Fix canonicalize loop-detection corner case.
46621         Do not attempt to stat the symlink values stored via seen_triple.
46622         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
46623         on linux-2.6.18, (but not 2.6.22).
46624         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
46625         triple_compare.  The former compares dev,ino,filename, while the latter
46626         would actually stat dirname(filename) when dev and ino were equal.
46627         * lib/hash-triple.c: Install <string.h>.
46628         (STREQ): Define.
46629         (triple_compare_ino_str): New function.
46630         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
46631
46632 2007-09-28  Eric Blake  <ebb9@byu.net>
46633
46634         Enforce that AC_REPLACE_FUNCS files exist.
46635         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
46636         override check for typos.
46637
46638         Fix test-closein on Solaris 10.
46639         * tests/test-closein.c (main): Don't assume stdin can be inherited
46640         closed on all systems.
46641         * tests/test-closein.sh: Likewise.
46642         Reported by Piotr Tarnowski.
46643
46644 2007-09-28  Jim Meyering  <jim@meyering.net>
46645
46646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
46647
46648 2007-09-27  Jim Meyering  <jim@meyering.net>
46649
46650         canonicalize: Avoid a false-positive cycle failure.
46651         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
46652         Sort.  Remove cycle-check.
46653         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
46654         not cycle-check.h.
46655         (seen_triple): New function.
46656         (canonicalize_filename_mode): Use it instead of cycle-check.
46657         * tests/test-canonicalize.c: Add a test for this bug.
46658         * tests/test-canonicalize.sh: Set up and run the test.
46659
46660         New module, file-set, from coreutils.
46661         * modules/file-set: Define it.
46662         * lib/file-set.c, lib/file-set.h: Implement.
46663
46664         New module, hash-triple, from coreutils.
46665         * modules/hash-triple: Define it.
46666         * lib/hash-triple.c, lib/hash-triple.h: Implement.
46667
46668 2007-09-25  Eric Blake  <ebb9@byu.net>
46669
46670         Fix strerror on Interix.
46671         * lib/string_.h (strerror): Declare replacement.
46672         * doc/functions/strerror.texi (strerror): Document the Interix
46673         shortcoming.
46674         * modules/string (Makefile.am): Support new hooks.
46675         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
46676         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
46677         gl_FUNC_STRERROR_SEPARATE.
46678         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
46679         * lib/strerror.c (rpl_strerror): Provide replacement.
46680         * modules/strerror (Depends-on): Add string.
46681         (configure.ac): Detect use of module.
46682         * tests/test-strerror.c: New file.
46683         * modules/strerror-tests: New test module.
46684         * modules/argp (Depends-on): Add strerror.
46685         * modules/error (Depends-on): Likewise.
46686         Reported by Martin Koeppe.
46687
46688 2007-09-24  Bruno Haible  <bruno@clisp.org>
46689
46690         * README: Update git instructions.
46691
46692 2007-09-24  Eric Blake  <ebb9@byu.net>
46693
46694         Revert fpending breakage from 2007-09-08.
46695         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
46696         __fpending.c.
46697
46698 2007-09-24  Jim Meyering  <jim@meyering.net>
46699
46700         filenamecat.c: Add a test.
46701         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
46702         showing how the function works when DIR is the empty string.
46703
46704 2007-09-21  Simon Josefsson  <simon@josefsson.org>
46705
46706         * tests/test-canonicalize.sh: Turn on executable bit.
46707
46708 2007-09-19  Eric Blake  <ebb9@byu.net>
46709
46710         * README: Update CVS instructions.
46711
46712 2007-09-18  Bruno Haible  <bruno@clisp.org>
46713
46714         * modules/areadlink: New file.
46715         * lib/areadlink.h (areadlink): New declaration.
46716         * lib/areadlink.c: New file, based on lib/xreadlink.c.
46717
46718 2007-09-17  Jim Meyering  <jim@meyering.net>
46719
46720         * lib/savewd.c (ESTALE) [!defined]: Define.
46721         Reported to be required on Interix by Martin Koeppe.
46722
46723 2007-09-17  Bruno Haible  <bruno@clisp.org>
46724
46725         * gnulib-tool (func_version): Use $version.
46726
46727 2007-09-16  Bruno Haible  <bruno@clisp.org>
46728
46729         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
46730         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
46731         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
46732         Reported by Greg Schafer <gschafer@zip.com.au>.
46733
46734 2007-09-15  Bruno Haible  <bruno@clisp.org>
46735
46736         * gnulib-tool (sed): Try a little harder to make bash understand the
46737         alias.
46738         Reported by Bruce Korb <bruce.korb@gmail.com>.
46739
46740 2007-09-13  Eric Blake  <ebb9@byu.net>
46741
46742         * ChangeLog: Remove conflict markers.
46743
46744 2007-09-13  Simon Josefsson  <simon@josefsson.org>
46745
46746         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
46747         Reported by Bruno Haible <bruno@clisp.org>.
46748
46749 2007-09-12  Bruno Haible  <bruno@clisp.org>
46750
46751         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
46752         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
46753         is not defined.
46754
46755 2007-09-12  Eric Blake  <ebb9@byu.net>
46756
46757         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
46758         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
46759         Autoconf definition.
46760         * modules/euidaccess (Depends-on): Add extensions, for
46761         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
46762         * modules/fnmatch (Depends-on): Likewise.
46763         * modules/getaddrinfo (Depends-on): Likewise.
46764         * modules/getdelim (Depends-on): Likewise.
46765         * modules/getline (Depends-on): Likewise.
46766         * modules/getsubopt (Depends-on): Likewise.
46767         * modules/gettext (Depends-on): Likewise.
46768         * modules/group-member (Depends-on): Likewise.
46769         * modules/mbchar (Depends-on): Likewise.
46770         * modules/memmem (Depends-on): Likewise.
46771         * modules/mempcpy (Depends-on): Likewise.
46772         * modules/memrchr (Depends-on): Likewise.
46773         * modules/pagealign_alloc (Depends-on): Likewise.
46774         * modules/readutmp (Depends-on): Likewise.
46775         * modules/stpcpy (Depends-on): Likewise.
46776         * modules/stpncpy (Depends-on): Likewise.
46777         * modules/strchrnul (Depends-on): Likewise.
46778         * modules/strndup (Depends-on): Likewise.
46779         * modules/strsep (Depends-on): Likewise.
46780         * modules/strverscmp (Depends-on): Likewise.
46781         * modules/vasprintf (Depends-on): Likewise.
46782         * modules/wcwidth (Depends-on): Likewise.
46783         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
46784         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
46785         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
46786         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
46787         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46788         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46789         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
46790         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46791         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
46792         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
46793         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46794         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46795         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46796         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
46797         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
46798         * m4/readutmp.m4 (gl_READUTMP): Likewise.
46799         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46800         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46801         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46802         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46803         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46804         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46805         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46806         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
46807         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
46808         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46809         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
46810         so that lock.m4 can be used in gettext without extensions module.
46811
46812 2007-09-11  Bruno Haible  <bruno@clisp.org>
46813
46814         * m4/isc-posix.m4: Remove file.
46815         Suggested by Eric Blake.
46816
46817 2007-09-11  Eric Blake  <ebb9@byu.net>
46818
46819         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
46820
46821 2007-09-10  Bruno Haible  <bruno@clisp.org>
46822
46823         * posix-modules: Fix typo in error message.
46824         Reported by Matt <mkraai@beckman.com>.
46825
46826 2007-09-09  Bruno Haible  <bruno@clisp.org>
46827
46828         * doc/functions/getdelim.texi: Update list of platforms lacking the
46829         function.
46830         * doc/functions/getline.texi: Likewise.
46831
46832 2007-09-09  Jim Meyering  <jim@meyering.net>
46833
46834         * lib/hash.c (hash_initialize): Detect calloc failure.
46835         Reported by Bruno Haible.
46836
46837 2007-09-09  Bruno Haible  <bruno@clisp.org>
46838
46839         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
46840         malloc or realloc fails.
46841
46842 2007-09-09  Bruno Haible  <bruno@clisp.org>
46843
46844         * modules/getcwd (Depends-on): Add malloc-posix.
46845         * modules/glob (Depends-on): Likewise.
46846         * modules/putenv (Depends-on): Likewise.
46847         * modules/strdup (Depends-on): Likewise.
46848         * modules/getdelim (Depends-on): Add realloc-posix.
46849         * modules/read-file (Depends-on): Likewise.
46850
46851 2007-09-09  Bruno Haible  <bruno@clisp.org>
46852
46853         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
46854         (gl_FUNC_MALLOC_POSIX): Require it.
46855         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
46856         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
46857         * modules/realloc (Files): Add m4/malloc.m4.
46858         * modules/calloc (Files): Likewise.
46859
46860 2007-09-09  Bruno Haible  <bruno@clisp.org>
46861
46862         * modules/malloc-posix: New file.
46863         * modules/malloc (Depends-on): Add malloc-posix.
46864         * lib/malloc.c: Include errno.h.
46865         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
46866         and a POSIX-compatible malloc into a single function. Set ENOMEM
46867         when returning NULL.
46868         * m4/malloc.m4: New file.
46869         * doc/functions/malloc.texi: Mention the malloc-posix module.
46870         * lib/stdlib_.h (malloc): New declaration.
46871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46872         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
46873         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
46874         and HAVE_MALLOC_POSIX.
46875
46876 2007-09-09  Bruno Haible  <bruno@clisp.org>
46877
46878         * modules/realloc-posix: New file.
46879         * modules/realloc (Depends-on): Add realloc-posix.
46880         * lib/realloc.c: Include errno.h.
46881         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
46882         and a POSIX-compatible realloc into a single function. Set ENOMEM
46883         when returning NULL.
46884         * m4/realloc.m4: New file.
46885         * doc/functions/realloc.texi: Mention the realloc-posix module.
46886         * lib/stdlib_.h (realloc): New declaration.
46887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46888         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
46889         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
46890         and HAVE_REALLOC_POSIX.
46891
46892 2007-09-09  Bruno Haible  <bruno@clisp.org>
46893
46894         * modules/calloc-posix: New file.
46895         * modules/calloc (Depends-on): Add calloc-posix.
46896         * lib/calloc.c: Include errno.h.
46897         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
46898         and a POSIX-compatible calloc into a single function. Set ENOMEM
46899         when returning NULL.
46900         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46901         * doc/functions/calloc.texi: Mention the calloc-posix module.
46902         * lib/stdlib_.h (calloc): New declaration.
46903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46904         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
46905         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
46906         and HAVE_CALLOC_POSIX.
46907
46908 2007-09-09  Bruno Haible  <bruno@clisp.org>
46909
46910         Allow for modules to show an arbitrary notice.
46911         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
46912         * gnulib-tool: New option --extract-notice.
46913         (func_usage): Document it.
46914         (sed_extract_prog): Update.
46915         (func_get_notice): New function.
46916         (func_modules_notice): New function.
46917         (func_import, func_create_testdir): Invoke it.
46918         Suggested by Jim Meyering.
46919
46920 2007-09-09  Bruno Haible  <bruno@clisp.org>
46921
46922         * gnulib-tool: New options --verbose, --quiet.
46923         (func_usage): Document them.
46924         (verbose): New variable.
46925         (func_execute_command): New function.
46926         (func_import): Don't show the module list and the file list if
46927         $verbose < 0.
46928         (func_create_testdir): Likewise. Use func_execute_command.
46929         (func_create_megatestdir): Use func_execute_command.
46930
46931 2007-09-08  Bruno Haible  <bruno@clisp.org>
46932
46933         * gnulib-tool (func_import): Prefer rsync over wget when available,
46934         for fetching the PO files.
46935
46936 2007-09-08  Bruno Haible  <bruno@clisp.org>
46937
46938         * posix-modules: New file. Portions copied from gnulib-tool.
46939         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
46940
46941 2007-09-08  Jim Meyering  <jim@meyering.net>
46942
46943         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
46944         * lib/fpending.h: Rename from __fpending.h.
46945         * lib/fpending.c: Rename from __fpending.c.
46946         Include "fpending.h", not "__fpending.h".
46947         * lib/__fpending.h, lib/__fpending.c: Remove files.
46948         * modules/fpending (Files): Reflect new file names.
46949         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
46950
46951 2007-09-08  Bruno Haible  <bruno@clisp.org>
46952
46953         * m4/inttypes-h.m4: Remove stub file.
46954
46955 2007-09-07  Simon Josefsson  <simon@josefsson.org>
46956
46957         * doc/headers/stdint.texi: Discuss #include_next issue.
46958
46959 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46960
46961         * build-aux/bootstrap: Remove obsolete comment about wget --help.
46962
46963 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46964
46965         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
46966         in variable name.
46967
46968 2007-09-03  Jim Meyering  <jim@meyering.net>
46969
46970         New module: git-version-gen.
46971         * modules/git-version-gen: New file.
46972
46973         Import changes from coreutils for bootstrap script.
46974
46975         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
46976
46977         bootstrap: uses rsync to download the .po files
46978         * build-aux/bootstrap (po_download_command_format): New global.
46979         (download_po_files): Use rsync.
46980         (update_po_files): Don't remove .po files after download,
46981         so future rsync runs can take advantage of the copies.
46982
46983         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
46984
46985         Solve the unnecessary-.po-file-regeneration problem once and for all.
46986         * build-aux/bootstrap (download_po_files): New function, renamed from
46987         get_translations.  Now, downloads, but doesn't update LINGUAS.
46988         (update_po_files): New function.
46989
46990         bootstrap: Ignore more.
46991         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
46992         uniwidth to e.g., lib/.gitignore.
46993         (slurp): Handle the sys_stat_.h -> sys mapping, too.
46994
46995         * build-aux/bootstrap: New setting: vc_ignore.
46996         (insert_sorted_if_absent): Create $file if absent.
46997         Adapt to new, possibly empty, list: $vc_ignore.
46998
46999         bootstrap: generate more ignorable names
47000         * build-aux/bootstrap (slurp): When generating ignorable names,
47001         also map .sin to .sed, .gperf to .c, and .y to .c.
47002
47003 2007-09-03  Jim Meyering  <jim@meyering.net>
47004
47005         * build-aux/git-version-gen: New file, from coreutils.  For details, see
47006         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
47007
47008 2007-09-02  Bruno Haible  <bruno@clisp.org>
47009
47010         Fix mis-recognition of 'mcs' on QNX 6.
47011         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
47012         output contains the string "Mono".
47013         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
47014         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
47015
47016 2007-09-01  Bruno Haible  <bruno@clisp.org>
47017
47018         Fix collision between uniwidth/* and linebreak modules.
47019         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
47020         u32_width): Remove declarations.
47021         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
47022         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
47023         streq3, streq2, streq1, streq0): Remove functions.
47024         (STREQ): Remove macro.
47025         (is_cjk_encoding): Remove function.
47026         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
47027         (uc_width, u8_width, u16_width, u32_width): Remove functions.
47028         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
47029         * NEWS: Document the change.
47030
47031 2007-09-01  Bruno Haible  <bruno@clisp.org>
47032
47033         * lib/streq.h: Add double-inclusion guard.
47034
47035 2007-09-01  Karl Berry  <karl@gnu.org>
47036
47037         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
47038
47039 2007-08-28  Jim Meyering  <jim@meyering.net>
47040
47041         Rename mreadlink_with_size to areadlink_with_size.
47042         * NEWS: Document the change.
47043         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
47044         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
47045         * lib/mreadlink.h: Rename this to...
47046         * lib/areadlink.h: ...this.
47047         * modules/mreadlink-with-size: Rename this to...
47048         * modules/areadlink-with-size: ...this.
47049         * lib/canonicalize.c: Reflect the renaming.
47050         * modules/canonicalize: Likewise.
47051
47052 2007-08-26  Bruno Haible  <bruno@clisp.org>
47053
47054         * gnulib-tool (func_import): When deciding which files to remove,
47055         consider also dangling symbolic links.
47056         Reported by Eric Blake.
47057
47058 2007-08-26  Bruno Haible  <bruno@clisp.org>
47059
47060         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
47061
47062 2007-08-23  Simon Josefsson  <simon@josefsson.org>
47063
47064         * lib/readline.c: Don't include getline.h, the prototype is now
47065         found in stdio.h.
47066
47067 2007-08-23  Jim Meyering  <jim@meyering.net>
47068
47069         Getdelim touchup.
47070         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
47071         around the funlockfile call, since funlockfile never sets errno.
47072         Don't set errno upon failed realloc.
47073
47074 2007-08-22  Eric Blake  <ebb9@byu.net>
47075
47076         Getline touchups.
47077         * lib/getdelim.c (getdelim): Revert regression that required *n to
47078         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
47079         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
47080         getdelim, rather than whether implementation is missing.
47081         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
47082         * lib/stdio_.h (getline): Also declare if replacement is
47083         required.
47084         * doc/functions/getdelim.texi: New file.
47085         * doc/functions/getline.texi: Likewise.
47086         * doc/gnulib.texi (Function Substitutes): Add new files.
47087         Reported by Bruno Haible.
47088
47089 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
47090
47091         * users.txt: Add Guile.
47092
47093 2007-08-22  Eric Blake  <ebb9@byu.net>
47094
47095         * tests/test-getdelim.c (main): Use remove, not unlink.
47096         * tests/test-getline.c (main): Likewise.
47097
47098         Move getline and getdelim into stdio.h, per POSIX 200x.
47099         * modules/getline (Files): Remove getline.h.
47100         (Depends-on): Add stdio.
47101         (configure.ac): Add module indicator.
47102         * modules/getdelim (Files): Remove getdelim.h.
47103         (Depends-on): Add stdio.
47104         (configure.ac): Add module indicator.
47105         * modules/stdio (Makefile.am): Work with new indicators.
47106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
47107         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
47108         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47109         * lib/getdelim.h: Delete.
47110         * lib/getline.h: Delete.
47111         * lib/stdio_.h (getdelim, getline): Declare.
47112         * modules/getdelim-tests: New module.
47113         * modules/getline-tests: Likewise.
47114         * tests/test-getdelim.c: New file.
47115         * tests/test-getline.c: Likewise.
47116         * NEWS: Document the change.
47117         * lib/getline.c: Update choice of header.
47118         * lib/csharpcomp.c: Likewise.
47119         * lib/getpass.c: Likewise.
47120         * lib/javacomp.c: Likewise.
47121         * lib/javaversion.c: Likewise.
47122         * lib/yesno.c: Likewise.
47123         * lib/getdelim.c: Likewise.
47124         (getdelim): Set errno on failure, and avoid memory leak.
47125
47126 2007-08-19  Bruno Haible  <bruno@clisp.org>
47127
47128         * modules/closein (Depends-on): Add freadahead.
47129         * lib/closein.c: Include freadahead.h.
47130         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
47131         is zero.
47132
47133 2007-08-19  Bruno Haible  <bruno@clisp.org>
47134
47135         * modules/freadahead-tests: New file.
47136         * tests/test-freadahead.sh: New file.
47137         * tests/test-freadahead.c: New file.
47138
47139         * modules/freadahead: New file.
47140         * lib/freadahead.h: New file.
47141         * lib/freadahead.c: New file.
47142         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
47143         fbufmode, fpurge, freadable, fwritable.
47144
47145 2007-08-19  Eric Blake  <ebb9@byu.net>
47146
47147         Test yesno in combination with closein.
47148         * lib/yesno.c (yesno): Document use of stdin.
47149         * modules/yesno-tests (Files): New module.
47150         * tests/test-yesno.c (main): New file.
47151         * tests/test-yesno.sh: Likewise.
47152
47153 2007-08-19  Bruno Haible  <bruno@clisp.org>
47154
47155         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
47156         * lib/fseeko.c (rpl_fseeko): Likewise.
47157         * lib/fseterr.c (fseterr): Likewise.
47158
47159 2007-08-19  Bruno Haible  <bruno@clisp.org>
47160
47161         * tests/test-lseek.c (main): Disable a test for BeOS.
47162         * doc/functions/lseek.texi: Document the BeOS bug.
47163
47164 2007-08-19  Bruno Haible  <bruno@clisp.org>
47165             Eric Blake  <ebb9@byu.net>
47166
47167         * lib/lseek.c: Include <sys/stat.h>.
47168         (rpl_lseek): Add workaround code also for Unix platforms.
47169         Needed for BeOS.
47170         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
47171         * doc/functions/lseek.texi: Document BeOS definiency.
47172
47173 2007-08-18  Bruno Haible  <bruno@clisp.org>
47174
47175         * modules/fstrcmp-tests: New file.
47176         * tests/test-fstrcmp.c: New file.
47177
47178 2007-08-18  Bruno Haible  <bruno@clisp.org>
47179
47180         * modules/fstrcmp: New file, from GNU gettext with modifications.
47181         * lib/fstrcmp.h: New file, from GNU gettext.
47182         * lib/fstrcmp.c: New file, from GNU gettext.
47183         * MODULES.html.sh (String handling): Add fstrcmp.
47184
47185 2007-08-18  Bruno Haible  <bruno@clisp.org>
47186
47187         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
47188         'bool'.
47189         (diag, compareseq): Remove const from the ctxt argument.
47190         (USE_HEURISTIC): Undefine at the end.
47191
47192 2007-08-18  Jim Meyering  <jim@meyering.net>
47193
47194         New file: lib/idcache.h
47195         * NEWS: Mention the addition.
47196         * modules/idcache (Files): Add lib/idcache.h
47197         * lib/idcache.c: Include "idcache.h".
47198         Don't include <sys/types.h>.
47199         Add a FIXME comment.
47200         Move file-scoped "static" declarations to the top.
47201         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
47202
47203 2007-08-17  Bruno Haible  <bruno@clisp.org>
47204         and Paul Eggert  <eggert@cs.ucla.edu>
47205
47206         * MODULES.html.sh: Add diffseq.
47207         * modules/diffseq: New file.
47208         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
47209         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
47210
47211 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47212
47213         Import changes from coreutils for bootstrap script.
47214
47215         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
47216
47217         * build-aux/bootstrap (slurp): Work even in environments where
47218         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
47219         current code does not slurp files whose names start with ".", and
47220         this looks like it might be a troublesome area.
47221
47222         2007-07-11  Jim Meyering  <jim@meyering.net>
47223
47224         If there's a GPL vN copyright comment, require that N == 3.
47225
47226         2007-07-08  Jim Meyering  <jim@meyering.net>
47227
47228         Run the coreutils-specific code only if tests/Makefile.am.in exists.
47229         * build-aux/bootstrap (mam_template): Move definition out of loop.
47230
47231         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
47232
47233         * build-aux/bootstrap (symlink_to_dir): Rename function from
47234         symlink_to_gnulib.  Add a directory parameter.  Update all
47235         callers.
47236         (cp_mark_as_generated): Also check for -- and link to -- files in
47237         gl/.
47238
47239         2007-07-08  Jim Meyering  <jim@meyering.net>
47240
47241         Adapt to deeper hierarchy in gnulib.
47242         * build-aux/bootstrap (symlink_to_dir): If the destination
47243         directory doesn't exist, create it. This is required at least for
47244         "lib/uniwidth/cjk.h".
47245
47246         2007-05-15  Jim Meyering  <jim@meyering.net>
47247
47248         * build-aux/bootstrap: Now that generated Makefile.am files
47249         are no longer under version control, they must be created at
47250         bootstrap time.
47251
47252 2007-08-14  Ben Pfaff  <blp@gnu.org>
47253
47254         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
47255
47256 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47257
47258         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
47259         given the changes below.
47260         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
47261         even on hosts that have padding bits beyond the supported 64.
47262
47263 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47264
47265         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
47266         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
47267         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
47268         depends on it.
47269         (xstrtol_error): Remove.
47270         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
47271         but with a different signature.
47272         (ATTRIBUTE_NORETURN, __attribute__): New macros.
47273         * lib/xstrtol-error.c: Include exitfail.h.
47274         (xstrtol_fatal): New function, with a different signature from the
47275         old xstrtol_error, so that the caller need not worry about passing
47276         in an exit status, or about storage management of the option argument.
47277         (xstrtol_error): Now a static function.  Redo signature to
47278         implement xstrtol_fatal.  Output the correct number of hyphens in
47279         front of the option so that the caller need not worry about
47280         storage management.
47281         (N_): New macro.
47282         (_): Remove; not used now.
47283         * modules/xstrtol: Depend on getopt.
47284         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
47285         of old STRTOL_FATAL_ERROR macro.
47286         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
47287         of test program.
47288         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
47289         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
47290
47291 2007-08-08  Eric Blake  <ebb9@byu.net>
47292
47293         * lib/xstrtol-error.c: Add missing include.
47294
47295         Move xstrtol messages into gnulib domain, when --pobase is used.
47296         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
47297         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
47298         * modules/xstrtol (Files): Distribute new file.
47299         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
47300         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
47301         * tests/test-xstrtol.c: ...into new file.
47302         * tests/test-xstrtoul.c: Also test xstrtoul.
47303         * tests/test-xstrtoimax.c: Also test xstrtoimax.
47304         * tests/test-xstrtoumax.c: Also test xstrtoumax.
47305         * tests/test-xstrtol.sh: Drive the tests.
47306         * tests/test-xstrtoimax.sh: Likewise.
47307         * tests/test-xstrtoumax.sh: Likewise.
47308         * modules/xstrtol-tests: New module.
47309         * modules/xstrtoimax-tests: Likewise.
47310         * modules/xstrtoumax-tests: Likewise.
47311
47312 2007-08-08  Jim Meyering  <jim@meyering.net>
47313
47314         New function: mfile_name_concat.
47315         * lib/filenamecat.c (mfile_name_concat): New function, just like
47316         file_name_concat, but return NULL upon failure rather than exiting
47317         with a diagnostic.
47318         * lib/filenamecat.h: Declare it.
47319
47320 2007-08-07  Bruno Haible  <bruno@clisp.org>
47321
47322         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
47323         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
47324         warning from gcc.
47325         Reported by Eric Blake.
47326
47327 2007-08-07  Simon Josefsson  <simon@josefsson.org>
47328
47329         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
47330         * modules/crypto/arcfour (License): Likewise.
47331         * modules/crypto/des-tests (License): Likewise.
47332         * modules/crypto/gc-arctwo-tests (License): Likewise.
47333         * modules/crypto/gc-des-tests (License): Likewise.
47334         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
47335         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
47336         * modules/crypto/gc-md2-tests (License): Likewise.
47337         * modules/crypto/gc-md4-tests (License): Likewise.
47338         * modules/crypto/gc-md5-tests (License): Likewise.
47339         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
47340         * modules/crypto/gc-rijndael-tests (License): Likewise.
47341         * modules/crypto/gc-sha1-tests (License): Likewise.
47342         * modules/crypto/gc-tests (License): Likewise.
47343         * modules/crypto/hmac-md5 (License): Likewise.
47344         * modules/crypto/hmac-sha1 (License): Likewise.
47345         * modules/crypto/md2-tests (License): Likewise.
47346         * modules/crypto/md4-tests (License): Likewise.
47347         * modules/crypto/md5 (License): Likewise.
47348         * modules/crypto/rijndael (License): Likewise.
47349         * modules/crypto/sha1 (License): Likewise.
47350         * modules/memxor (License): Likewise.
47351
47352 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
47353         and Bruno Haible  <bruno@clisp.org>
47354
47355         * NEWS: Describe interface changes to human, xstrtol.
47356         * lib/human.h: Include <xstrtol.h>.
47357         (human_options): Return enum strtol_error, not int.  Remove
47358         bool arg; take int * instead.
47359         * lib/human.c: Don't include "gettext.h".
47360         (_): Remove; no longer used.
47361         Don't include <xstrtol.h>, since human.h does it.
47362         (human_options): Adjust to abovementioned interface changes.
47363         Do not report error to stderr; that's now the caller's
47364         responsibility.
47365         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
47366         interface change.
47367         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
47368         Str, Argument_type_string.  All uses changed.  Put " argument"
47369         in diagnostics to make them clearer.  Change wording of suffix
47370         message for clarity.
47371         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
47372         Argument_type_string.
47373         (STRTOL_FATAL_WARN): Remove; no longer used.
47374         * modules/human (Depends-on): Remove gettext-h.
47375
47376 2007-08-06  Simon Josefsson  <simon@josefsson.org>
47377
47378         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
47379
47380 2007-07-31  Bruno Haible  <bruno@clisp.org>
47381
47382         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
47383         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
47384         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
47385
47386 2007-07-31  Bruno Haible  <bruno@clisp.org>
47387
47388         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
47389         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
47390
47391 2007-07-30  Bruno Haible  <bruno@clisp.org>
47392
47393         * modules/base64 (License): Use the synonymous term "LGPLv2+".
47394         * modules/c-ctype (License): Likewise.
47395         * modules/c-strcase (License): Likewise.
47396         * modules/check-version (License): Likewise.
47397         * modules/iconv (License): Likewise.
47398         * modules/iconv_open (License): Likewise.
47399         * modules/read-file (License): Likewise.
47400         * modules/striconv (License): Likewise.
47401         * modules/strverscmp (License): Likewise.
47402         * modules/vasprintf (License): Likewise.
47403         * modules/crypto/des (License): Likewise.
47404         * modules/crypto/gc (License): Likewise.
47405         * modules/crypto/gc-arcfour (License): Likewise.
47406         * modules/crypto/gc-arctwo (License): Likewise.
47407         * modules/crypto/gc-des (License): Likewise.
47408         * modules/crypto/gc-hmac-md5 (License): Likewise.
47409         * modules/crypto/gc-hmac-sha1 (License): Likewise.
47410         * modules/crypto/gc-md2 (License): Likewise.
47411         * modules/crypto/gc-md4 (License): Likewise.
47412         * modules/crypto/gc-md5 (License): Likewise.
47413         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
47414         * modules/crypto/gc-random (License): Likewise.
47415         * modules/crypto/gc-rijndael (License): Likewise.
47416         * modules/crypto/gc-sha1 (License): Likewise.
47417         * modules/crypto/md2 (License): Likewise.
47418         * modules/crypto/md4 (License): Likewise.
47419
47420 2007-07-30  Jim Meyering  <jim@meyering.net>
47421
47422         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
47423         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
47424         it has valid stat data.  This bug would cause du not to count the
47425         sizes of inaccessible directories.
47426         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
47427         in <http://bugzilla.redhat.com/250077>.
47428
47429 2007-07-25  Peter O'Gorman  <peter@pogma.com>
47430             Bruno Haible  <bruno@clisp.org>
47431
47432         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
47433         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
47434         #include_next, gives a diagnostic about it, but reports no error in
47435         the exit code.
47436         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47437
47438 2007-07-24  Ben Pfaff  <blp@gnu.org>
47439
47440         Improve name: "count-one-bits" is better than "popcount".
47441         * MODULES.html.sh: Update name.
47442         * lib/popcount.h: Renamed lib/count-one-bits.h.
47443         (popcount): Renamed count_one_bits.
47444         (popcountl): Renamed count_one_bits_l.
47445         (popcountll): Renamed count_one_bits_ll.
47446         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
47447         * modules/popcount: Renamed module/count-one-bits.
47448         * modules/popcount-tests: Renamed module/count-one-bits-tests.
47449         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
47450
47451 2007-07-23  Ben Pfaff  <blp@gnu.org>
47452
47453         * lib/popcount.h (popcount32): Reduce size of constants, to allow
47454         better code generation, and add U to large constants to avoid
47455         warnings, in non-GCC case.
47456         Suggested by Bruno Haible.
47457
47458 2007-07-23  Ben Pfaff  <blp@gnu.org>
47459
47460         * lib/popcount.h: Use verify_true instead of if...abort.
47461         * modules/popcount: Depend on verify module.
47462         Suggested by Jim Meyering.
47463
47464 2007-07-23  Bruno Haible  <bruno@clisp.org>
47465
47466         * gnulib-tool (func_import): Create a .cvsignore file also when the
47467         directory is not yet in CVS but the toplevel directory is. When
47468         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
47469         Reported by Karl Berry.
47470
47471 2007-07-22  Ben Pfaff  <blp@gnu.org>
47472
47473         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
47474         case.
47475         Suggested by Eric Blake.
47476
47477 2007-07-22  Ben Pfaff  <blp@gnu.org>
47478
47479         New module: popcount.
47480         * MODULES.html.sh: Add popcount.
47481         * modules/popcount: New file.
47482         * modules/popcount-tests: New file.
47483         * tests/test-popcount.c: New file.
47484         * lib/popcount.h: New file.
47485         * m4/popcount.m4: New file.
47486
47487 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47488
47489         * build-aux/announce-gen: Update to GPLv3.
47490
47491         * build-aux/config.guess: Update from config.
47492
47493 2007-07-21  Bruno Haible  <bruno@clisp.org>
47494
47495         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
47496         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
47497
47498 2007-07-20  Jim Meyering  <jim@meyering.net>
47499
47500         * check-module: Diagnose a self-dependency.
47501
47502 2007-07-19  Bruno Haible  <bruno@clisp.org>
47503
47504         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
47505         empty.
47506         Reported by Eric Blake.
47507
47508 2007-07-18  Bruno Haible  <bruno@clisp.org>
47509
47510         * gnulib-tool: New options --po-base, --po-domain.
47511         (func_usage): Document them.
47512         (pobase, po_domain): New variables.
47513         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
47514         DEFAULT_TEXT_DOMAIN.
47515         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
47516         (func_import): Consider pobase and po_domain. Create a po/ directory.
47517         (func_create_testdir): Set pobase and po_domain to empty.
47518         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
47519         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
47520
47521 2007-07-18  Bruno Haible  <bruno@clisp.org>
47522
47523         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47524         EXTRA_DIST augmentation for files in build-aux/.
47525
47526 2007-07-16  Bruno Haible  <bruno@clisp.org>
47527
47528         * modules/lseek (License): Use the synonymous term "LGPLv2+".
47529         * modules/getdelim (License): Likewise.
47530
47531 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47532
47533         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
47534         * modules/d-type (License): Likewise.
47535         * modules/extensions (License): Likewise.
47536         * modules/fnmatch (License): Likewise.
47537         * modules/fseeko (License): Likewise.
47538         * modules/getaddrinfo (License): Likewise.
47539         * modules/getline (License): Likewise.
47540         * modules/getlogin_r (License): Likewise.
47541         * modules/getpass (License): Likewise.
47542         * modules/gettimeofday (License): Likewise.
47543         * modules/glob (License): Likewise.
47544         * modules/inet_ntop (License): Likewise.
47545         * modules/malloc (License): Likewise.
47546         * modules/malloca (License): Likewise.
47547         * modules/memmem (License): Likewise.
47548         * modules/mempcpy (License): Likewise.
47549         * modules/memset (License): Likewise.
47550         * modules/minmax (License): Likewise.
47551         * modules/mktime (License): Likewise.
47552         * modules/netinet_in (License): Likewise.
47553         * modules/pathmax (License): Likewise.
47554         * modules/poll (License): Likewise.
47555         * modules/regex (License): Likewise.
47556         * modules/snprintf (License): Likewise.
47557         * modules/stdbool (License): Likewise.
47558         * modules/stdint (License): Likewise.
47559         * modules/stdio (License): Likewise.
47560         * modules/strcase (License): Likewise.
47561         * modules/strcasestr (License): Likewise.
47562         * modules/strdup (License): Likewise.
47563         * modules/string (License): Likewise.
47564         * modules/strndup (License): Likewise.
47565         * modules/strnlen (License): Likewise.
47566         * modules/strpbrk (License): Likewise.
47567         * modules/strptime (License): Likewise.
47568         * modules/strsep (License): Likewise.
47569         * modules/sys_select (License): Likewise.
47570         * modules/sys_socket (License): Likewise.
47571         * modules/sys_stat (License): Likewise.
47572         * modules/sys_time (License): Likewise.
47573         * modules/time (License): Likewise.
47574         * modules/time_r (License): Likewise.
47575         * modules/timegm (License): Likewise.
47576         * modules/unistd (License): Likewise.
47577         * modules/vsnprintf (License): Likewise.
47578         * modules/wctype (License): Likewise.
47579
47580 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47581
47582         * modules/argz (License): LGPLv2+.
47583
47584 2007-07-15  Karl Berry  <karl@gnu.org>
47585
47586         * doc/gnulib.texi: revise node structure per new fdl.texi.
47587
47588 2007-07-14  Bruno Haible  <bruno@clisp.org>
47589
47590         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
47591         the output file.
47592         * lib/uniname/uninames.h: Regenerated.
47593
47594 2007-07-14  Karl Berry  <karl@gnu.org>
47595
47596         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
47597         omitting sectioning and index commands.
47598
47599 2007-07-13  Bruno Haible  <bruno@clisp.org>
47600
47601         New gnulib-tool option --more-symlinks.
47602         * gnulib-tool (func_usage): Document --more-symlinks.
47603         (do_copyrights): New variable.
47604         Recognize option --more-symlinks.
47605         (func_import): Don't add a copyright notice transform to
47606         sed_transform_lib_file if do_copyrights is empty.
47607
47608 2007-07-13  Bruno Haible  <bruno@clisp.org>
47609
47610         * lib/vasnprintf.c (decimal_point_char): Define also if
47611         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
47612         && !NEED_PRINTF_DIRECTIVE_A.
47613         Reported by Clemens Koller <clemens.koller@anagramm.de> via
47614         Gary V. Vaughan <gary@gnu.org>.
47615
47616 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
47617
47618         * lib/inttypes_.h: Undo previous change, since it was fixed
47619         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
47620
47621 2007-07-13  Bruno Haible  <bruno@clisp.org>
47622
47623         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
47624         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
47625
47626 2007-07-13  Jim Meyering  <jim@meyering.net>
47627
47628         df: Don't fail for Tru64's "file-on-file mount".
47629         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
47630         so we fall through and use statfs instead.  Details here:
47631         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
47632         Reported by Albert Chin.
47633
47634 2007-07-13  Bruno Haible  <bruno@clisp.org>
47635
47636         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
47637         * modules/configmake (License): Likewise.
47638         * modules/gettext (License): Likewise.
47639         * modules/gettext-h (License): Likewise.
47640         * modules/include_next (License): Likewise.
47641         * modules/link-warning (License): Likewise.
47642         * modules/localcharset (License): Likewise.
47643         * modules/localename (License): Likewise.
47644         * modules/lock (License): Likewise.
47645         * modules/relocatable-lib-lgpl (License): Likewise.
47646         * modules/size_max (License): Likewise.
47647         * modules/vasnprintf (License): Likewise.
47648         * modules/wchar (License): Likewise.
47649         * modules/xsize (License): Likewise.
47650
47651 2007-07-13  Bruno Haible  <bruno@clisp.org>
47652
47653         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
47654         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
47655
47656 2007-07-12  Bruno Haible  <bruno@clisp.org>
47657
47658         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
47659         in the modules files.
47660
47661 2007-07-11  Karl Berry  <karl@gnu.org>
47662
47663         * MODULES.html.sh (func_module): use
47664          sed -e '\|^'"${includefile}"'$|d'
47665          instead of /.../d, to avoid errors on $includefile's containing /.
47666
47667 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47668
47669         * gnulib-tool (func_import): Avoid duplication of --avoid
47670         statements
47671         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
47672         names to `_' in variable names.
47673
47674 2007-07-10  Eric Blake  <ebb9@byu.net>
47675
47676         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
47677         * NEWS: Document this change.
47678
47679 2007-07-08  Bruno Haible  <bruno@clisp.org>
47680
47681         Update to Unicode 5.0.
47682         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
47683         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
47684         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
47685         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
47686         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
47687         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
47688         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
47689         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
47690         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
47691         U+10A3F, U+1D242..U+1D244.
47692         (nonspacing_table_ind): Update.
47693         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
47694         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
47695
47696 2007-07-08  Bruno Haible  <bruno@clisp.org>
47697
47698         Update to Unicode 5.0.
47699         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
47700         code transform. Extend the name index field of unicode_name_to_code and
47701         unicode_code_to_name from 16 to 24 bits.
47702         * lib/uniname/uniname.c (unicode_character_name,
47703         unicode_name_character): Add the range 0x12xxx to the code transform.
47704         * lib/uniname/uninames.h: Regenerated.
47705         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
47706
47707 2007-07-07  Bruno Haible  <bruno@clisp.org>
47708
47709         * modules/wcwidth-tests: New file.
47710         * tests/test-wcwidth.c: New file.
47711
47712         Work around MacOS X wcwidth() bug.
47713         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
47714         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
47715         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
47716         original wcwidth in non-UTF-8 locales.
47717         * modules/wcwidth (Depends-on): Add localcharset, streq,
47718         uniwidth/width.
47719         * doc/functions/wcwidth.texi: Update.
47720
47721 2007-07-07  Bruno Haible  <bruno@clisp.org>
47722
47723         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
47724         (wcwidth): New declaration.
47725         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
47726         macros.
47727         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
47728         here. Prepare for creating <wchar.h> unconditionally.
47729         * modules/wchar (Depends-on): Add link-warning.
47730         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
47731         REPLACE_WCWIDTH, and GL_LINK_WARNING.
47732         * lib/wcwidth.h: Remove file.
47733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
47734         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
47735         * modules/wcwidth (Files): Remove lib/wcwidth.h.
47736         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
47737         (Include): Replace wcwidth.h with <wchar.h>.
47738         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
47739         * lib/mbchar.h: Don't include wcwidth.h.
47740         * lib/mbswidth.c: Likewise.
47741         * NEWS: Mention the change.
47742
47743 2007-07-07  Bruno Haible  <bruno@clisp.org>
47744
47745         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
47746         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
47747         definition with an external declaration.
47748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
47749         defined as a function. Remove AC_C_INLINE requirement.
47750         * modules/wcwidth (Files): Add lib/wcwidth.c.
47751         (Makefile.am): Remove redundant statement.
47752
47753 2007-07-07  Bruno Haible  <bruno@clisp.org>
47754
47755         * MODULES.html.sh (Unicode string functions): Add the new modules.
47756
47757         * tests/uniwidth/test-u32-strwidth.c: New file.
47758         * modules/uniwidth/u32-strwidth-tests: New file.
47759
47760         * lib/uniwidth/u32-strwidth.c: New file.
47761         * modules/uniwidth/u32-strwidth: New file.
47762
47763         * tests/uniwidth/test-u16-strwidth.c: New file.
47764         * modules/uniwidth/u16-strwidth-tests: New file.
47765
47766         * lib/uniwidth/u16-strwidth.c: New file.
47767         * modules/uniwidth/u16-strwidth: New file.
47768
47769         * tests/uniwidth/test-u8-strwidth.c: New file.
47770         * modules/uniwidth/u8-strwidth-tests: New file.
47771
47772         * lib/uniwidth/u8-strwidth.c: New file.
47773         * modules/uniwidth/u8-strwidth: New file.
47774
47775         * tests/uniwidth/test-u32-width.c: New file.
47776         * modules/uniwidth/u32-width-tests: New file.
47777
47778         * lib/uniwidth/u32-width.c: New file.
47779         * modules/uniwidth/u32-width: New file.
47780
47781         * tests/uniwidth/test-u16-width.c: New file.
47782         * modules/uniwidth/u16-width-tests: New file.
47783
47784         * lib/uniwidth/u16-width.c: New file.
47785         * modules/uniwidth/u16-width: New file.
47786
47787         * tests/uniwidth/test-u8-width.c: New file.
47788         * modules/uniwidth/u8-width-tests: New file.
47789
47790         * lib/uniwidth/u8-width.c: New file.
47791         * modules/uniwidth/u8-width: New file.
47792
47793         * tests/uniwidth/test-uc_width.c: New file.
47794         * modules/uniwidth/width-tests: New file.
47795
47796         * lib/uniwidth/width.c: New file, from GNU libiconv.
47797         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
47798         * modules/uniwidth/width: New file.
47799
47800         * lib/uniwidth.h: New file, from GNU libiconv.
47801         * modules/uniwidth/base: New file.
47802
47803 2007-07-07  Bruno Haible  <bruno@clisp.org>
47804
47805         * lib/uniname.h: New file, from GNU gettext.
47806         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
47807         * lib/uniname/uninames.h: New file, from GNU gettext.
47808         * lib/uniname/uniname.c: New file, from GNU gettext.
47809         * tests/uniname/test-uninames.sh: New file.
47810         * tests/uniname/test-uninames.c: New file, from GNU gettext.
47811         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
47812         * modules/uniname/base: New file.
47813         * modules/uniname/uniname: New file.
47814         * modules/uniname/uniname-tests: New file.
47815         * MODULES.html.sh (Unicode string functions): Add the new modules.
47816
47817 2007-07-06  Bruno Haible  <bruno@clisp.org>
47818
47819         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
47820
47821 2007-07-06  Bruno Haible  <bruno@clisp.org>
47822
47823         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
47824         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
47825         includes <cygwin/sys_time.h> which includes <sys/select.h> which
47826         include <sys/time.h>.
47827         Reported by Eric Blake.
47828
47829 2007-07-06  Eric Blake  <ebb9@byu.net>
47830
47831         Fix testing canonicalize on cygwin.
47832         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47833         Revert patch from 2007-06-19.
47834         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
47835         canonicalize module is also in use.
47836         * tests/test-canonicalize.c: New file.
47837         * tests/test-canonicalize.sh: Likewise.
47838         * modules/canonicalize-tests: Likewise.
47839
47840 2007-07-06  Jim Meyering  <jim@meyering.net>
47841
47842         * lib/getugroups.c (getugroups): Detect getgrent failure.
47843         Adjust comment to reflect reality: this function may return -1.
47844
47845 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47846
47847         * build-aux/bootstrap (TP_URL,get_translations): Update to use
47848         the new TP address.
47849         (usage): Fix typo
47850         (gnulib_mk): New variable.
47851
47852 2007-07-05  Jim Meyering  <jim@meyering.net>
47853
47854         Don't let endgrent clobber errno, no matter how improbable.
47855         * lib/getugroups.c (getugroups): Save and restore errno around
47856         endgrent call.
47857
47858         Close the group DB even when failing with 2^31 or more members.
47859         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
47860
47861 2007-07-04  Jim Meyering  <jim@meyering.net>
47862
47863         * lib/getugroups.h: New file.
47864         * lib/getugroups.c: Include "getugroups.h".
47865         Remove uses of "register" keyword.
47866         Move local variable, "cp", down into scope where used.
47867         Give "username" parameter the "const" attribute.
47868         * modules/getugroups (Files): Add lib/getugroups.h
47869
47870 2007-07-04  Karl Berry  <karl@gnu.org>
47871
47872         * MODULES.html.sh (func_all_modules): Complete rename of
47873         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
47874
47875 2007-07-02  Bruno Haible  <bruno@clisp.org>
47876
47877         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
47878         mode, when inttypes.h comes from gnulib.
47879         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47880
47881 2007-07-02  Simon Josefsson  <simon@josefsson.org>
47882
47883         * NEWS: Mention lgpl module name change.
47884
47885         * modules/lgpl-2.1: Renamed from lgpl.
47886
47887         * NEWS: Mention gpl module name change.
47888
47889         * modules/gpl-3.0: New file, based on gpl-2.0.
47890
47891         * modules/gpl-2.0: Renamed from gpl.
47892
47893         * modules/gpl: Fix filename, doc/gpl.texi is now found at
47894         doc/gpl-2.0.texi.
47895
47896 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47897
47898         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
47899         #define __STDC_LIMIT_MACROS temporarily while including
47900         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47901         Problem reported by Joel E. Denny in
47902         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47903
47904 2007-07-01  Bruno Haible  <bruno@clisp.org>
47905
47906         * lib/unistdio.h: New file.
47907         * lib/unistdio/u-asnprintf.h: New file.
47908         * lib/unistdio/u-asprintf.h: New file.
47909         * lib/unistdio/u-printf-args.c: New file.
47910         * lib/unistdio/u-printf-args.h: New file.
47911         * lib/unistdio/u-printf-parse.h: New file.
47912         * lib/unistdio/u-snprintf.h: New file.
47913         * lib/unistdio/u-sprintf.h: New file.
47914         * lib/unistdio/u-vasprintf.h: New file.
47915         * lib/unistdio/u-vsnprintf.h: New file.
47916         * lib/unistdio/u-vsprintf.h: New file.
47917         * lib/unistdio/ulc-asnprintf.c: New file.
47918         * lib/unistdio/ulc-asprintf.c: New file.
47919         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
47920         * lib/unistdio/ulc-printf-parse.c: New file.
47921         * lib/unistdio/ulc-snprintf.c: New file.
47922         * lib/unistdio/ulc-sprintf.c: New file.
47923         * lib/unistdio/ulc-vasnprintf.c: New file.
47924         * lib/unistdio/ulc-vasprintf.c: New file.
47925         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
47926         * lib/unistdio/ulc-vsnprintf.c: New file.
47927         * lib/unistdio/ulc-vsprintf.c: New file.
47928         * lib/unistdio/u8-asnprintf.c: New file.
47929         * lib/unistdio/u8-asprintf.c: New file.
47930         * lib/unistdio/u8-printf-parse.c: New file.
47931         * lib/unistdio/u8-snprintf.c: New file.
47932         * lib/unistdio/u8-sprintf.c: New file.
47933         * lib/unistdio/u8-vasnprintf.c: New file.
47934         * lib/unistdio/u8-vasprintf.c: New file.
47935         * lib/unistdio/u8-vsnprintf.c: New file.
47936         * lib/unistdio/u8-vsprintf.c: New file.
47937         * lib/unistdio/u8-u8-asnprintf.c: New file.
47938         * lib/unistdio/u8-u8-asprintf.c: New file.
47939         * lib/unistdio/u8-u8-snprintf.c: New file.
47940         * lib/unistdio/u8-u8-sprintf.c: New file.
47941         * lib/unistdio/u8-u8-vasnprintf.c: New file.
47942         * lib/unistdio/u8-u8-vasprintf.c: New file.
47943         * lib/unistdio/u8-u8-vsnprintf.c: New file.
47944         * lib/unistdio/u8-u8-vsprintf.c: New file.
47945         * lib/unistdio/u16-asnprintf.c: New file.
47946         * lib/unistdio/u16-asprintf.c: New file.
47947         * lib/unistdio/u16-printf-parse.c: New file.
47948         * lib/unistdio/u16-snprintf.c: New file.
47949         * lib/unistdio/u16-sprintf.c: New file.
47950         * lib/unistdio/u16-vasnprintf.c: New file.
47951         * lib/unistdio/u16-vasprintf.c: New file.
47952         * lib/unistdio/u16-vsnprintf.c: New file.
47953         * lib/unistdio/u16-vsprintf.c: New file.
47954         * lib/unistdio/u16-u16-asnprintf.c: New file.
47955         * lib/unistdio/u16-u16-asprintf.c: New file.
47956         * lib/unistdio/u16-u16-snprintf.c: New file.
47957         * lib/unistdio/u16-u16-sprintf.c: New file.
47958         * lib/unistdio/u16-u16-vasnprintf.c: New file.
47959         * lib/unistdio/u16-u16-vasprintf.c: New file.
47960         * lib/unistdio/u16-u16-vsnprintf.c: New file.
47961         * lib/unistdio/u16-u16-vsprintf.c: New file.
47962         * lib/unistdio/u32-asnprintf.c: New file.
47963         * lib/unistdio/u32-asprintf.c: New file.
47964         * lib/unistdio/u32-printf-parse.c: New file.
47965         * lib/unistdio/u32-snprintf.c: New file.
47966         * lib/unistdio/u32-sprintf.c: New file.
47967         * lib/unistdio/u32-vasnprintf.c: New file.
47968         * lib/unistdio/u32-vasprintf.c: New file.
47969         * lib/unistdio/u32-vsnprintf.c: New file.
47970         * lib/unistdio/u32-vsprintf.c: New file.
47971         * lib/unistdio/u32-u32-asnprintf.c: New file.
47972         * lib/unistdio/u32-u32-asprintf.c: New file.
47973         * lib/unistdio/u32-u32-snprintf.c: New file.
47974         * lib/unistdio/u32-u32-sprintf.c: New file.
47975         * lib/unistdio/u32-u32-vasnprintf.c: New file.
47976         * lib/unistdio/u32-u32-vasprintf.c: New file.
47977         * lib/unistdio/u32-u32-vsnprintf.c: New file.
47978         * lib/unistdio/u32-u32-vsprintf.c: New file.
47979         * tests/unistdio/test-ulc-asnprintf1.c: New file.
47980         * tests/unistdio/test-ulc-asnprintf1.h: New file.
47981         * tests/unistdio/test-ulc-printf1.h: New file.
47982         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
47983         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
47984         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
47985         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
47986         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
47987         * tests/unistdio/test-ulc-vasprintf1.c: New file.
47988         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
47989         * tests/unistdio/test-ulc-vsprintf1.c: New file.
47990         * tests/unistdio/test-u8-asnprintf1.c: New file.
47991         * tests/unistdio/test-u8-asnprintf1.h: New file.
47992         * tests/unistdio/test-u8-printf1.h: New file.
47993         * tests/unistdio/test-u8-vasnprintf1.c: New file.
47994         * tests/unistdio/test-u8-vasnprintf2.c: New file.
47995         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
47996         * tests/unistdio/test-u8-vasnprintf3.c: New file.
47997         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
47998         * tests/unistdio/test-u8-vasprintf1.c: New file.
47999         * tests/unistdio/test-u8-vsnprintf1.c: New file.
48000         * tests/unistdio/test-u8-vsprintf1.c: New file.
48001         * tests/unistdio/test-u16-asnprintf1.c: New file.
48002         * tests/unistdio/test-u16-asnprintf1.h: New file.
48003         * tests/unistdio/test-u16-printf1.h: New file.
48004         * tests/unistdio/test-u16-vasnprintf1.c: New file.
48005         * tests/unistdio/test-u16-vasnprintf2.c: New file.
48006         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
48007         * tests/unistdio/test-u16-vasnprintf3.c: New file.
48008         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
48009         * tests/unistdio/test-u16-vasprintf1.c: New file.
48010         * tests/unistdio/test-u16-vsnprintf1.c: New file.
48011         * tests/unistdio/test-u16-vsprintf1.c: New file.
48012         * tests/unistdio/test-u32-asnprintf1.c: New file.
48013         * tests/unistdio/test-u32-asnprintf1.h: New file.
48014         * tests/unistdio/test-u32-printf1.h: New file.
48015         * tests/unistdio/test-u32-vasnprintf1.c: New file.
48016         * tests/unistdio/test-u32-vasnprintf2.c: New file.
48017         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
48018         * tests/unistdio/test-u32-vasnprintf3.c: New file.
48019         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
48020         * tests/unistdio/test-u32-vasprintf1.c: New file.
48021         * tests/unistdio/test-u32-vsnprintf1.c: New file.
48022         * tests/unistdio/test-u32-vsprintf1.c: New file.
48023         * modules/unistdio/base: New file.
48024         * modules/unistdio/u-printf-args: New file.
48025         * modules/unistdio/ulc-asnprintf: New file.
48026         * modules/unistdio/ulc-asprintf: New file.
48027         * modules/unistdio/ulc-fprintf: New file.
48028         * modules/unistdio/ulc-printf-parse: New file.
48029         * modules/unistdio/ulc-snprintf: New file.
48030         * modules/unistdio/ulc-sprintf: New file.
48031         * modules/unistdio/ulc-vasnprintf: New file.
48032         * modules/unistdio/ulc-vasprintf: New file.
48033         * modules/unistdio/ulc-vfprintf: New file.
48034         * modules/unistdio/ulc-vsnprintf: New file.
48035         * modules/unistdio/ulc-vsprintf: New file.
48036         * modules/unistdio/u8-asnprintf: New file.
48037         * modules/unistdio/u8-asprintf: New file.
48038         * modules/unistdio/u8-printf-parse: New file.
48039         * modules/unistdio/u8-snprintf: New file.
48040         * modules/unistdio/u8-sprintf: New file.
48041         * modules/unistdio/u8-vasnprintf: New file.
48042         * modules/unistdio/u8-vasprintf: New file.
48043         * modules/unistdio/u8-vsnprintf: New file.
48044         * modules/unistdio/u8-vsprintf: New file.
48045         * modules/unistdio/u8-u8-asnprintf: New file.
48046         * modules/unistdio/u8-u8-asprintf: New file.
48047         * modules/unistdio/u8-u8-snprintf: New file.
48048         * modules/unistdio/u8-u8-sprintf: New file.
48049         * modules/unistdio/u8-u8-vasnprintf: New file.
48050         * modules/unistdio/u8-u8-vasprintf: New file.
48051         * modules/unistdio/u8-u8-vsnprintf: New file.
48052         * modules/unistdio/u8-u8-vsprintf: New file.
48053         * modules/unistdio/u16-asnprintf: New file.
48054         * modules/unistdio/u16-asprintf: New file.
48055         * modules/unistdio/u16-printf-parse: New file.
48056         * modules/unistdio/u16-snprintf: New file.
48057         * modules/unistdio/u16-sprintf: New file.
48058         * modules/unistdio/u16-vasnprintf: New file.
48059         * modules/unistdio/u16-vasprintf: New file.
48060         * modules/unistdio/u16-vsnprintf: New file.
48061         * modules/unistdio/u16-vsprintf: New file.
48062         * modules/unistdio/u16-u16-asnprintf: New file.
48063         * modules/unistdio/u16-u16-asprintf: New file.
48064         * modules/unistdio/u16-u16-snprintf: New file.
48065         * modules/unistdio/u16-u16-sprintf: New file.
48066         * modules/unistdio/u16-u16-vasnprintf: New file.
48067         * modules/unistdio/u16-u16-vasprintf: New file.
48068         * modules/unistdio/u16-u16-vsnprintf: New file.
48069         * modules/unistdio/u16-u16-vsprintf: New file.
48070         * modules/unistdio/u32-asnprintf: New file.
48071         * modules/unistdio/u32-asprintf: New file.
48072         * modules/unistdio/u32-printf-parse: New file.
48073         * modules/unistdio/u32-snprintf: New file.
48074         * modules/unistdio/u32-sprintf: New file.
48075         * modules/unistdio/u32-vasnprintf: New file.
48076         * modules/unistdio/u32-vasprintf: New file.
48077         * modules/unistdio/u32-vsnprintf: New file.
48078         * modules/unistdio/u32-vsprintf: New file.
48079         * modules/unistdio/u32-u32-asnprintf: New file.
48080         * modules/unistdio/u32-u32-asprintf: New file.
48081         * modules/unistdio/u32-u32-snprintf: New file.
48082         * modules/unistdio/u32-u32-sprintf: New file.
48083         * modules/unistdio/u32-u32-vasnprintf: New file.
48084         * modules/unistdio/u32-u32-vasprintf: New file.
48085         * modules/unistdio/u32-u32-vsnprintf: New file.
48086         * modules/unistdio/u32-u32-vsprintf: New file.
48087         * modules/unistdio/ulc-asnprintf-tests: New file.
48088         * modules/unistdio/ulc-vasnprintf-tests: New file.
48089         * modules/unistdio/ulc-vasprintf-tests: New file.
48090         * modules/unistdio/ulc-vsnprintf-tests: New file.
48091         * modules/unistdio/ulc-vsprintf-tests: New file.
48092         * modules/unistdio/u8-asnprintf-tests: New file.
48093         * modules/unistdio/u8-vasnprintf-tests: New file.
48094         * modules/unistdio/u8-vasprintf-tests: New file.
48095         * modules/unistdio/u8-vsnprintf-tests: New file.
48096         * modules/unistdio/u8-vsprintf-tests: New file.
48097         * modules/unistdio/u16-asnprintf-tests: New file.
48098         * modules/unistdio/u16-vasnprintf-tests: New file.
48099         * modules/unistdio/u16-vasprintf-tests: New file.
48100         * modules/unistdio/u16-vsnprintf-tests: New file.
48101         * modules/unistdio/u16-vsprintf-tests: New file.
48102         * modules/unistdio/u32-asnprintf-tests: New file.
48103         * modules/unistdio/u32-vasnprintf-tests: New file.
48104         * modules/unistdio/u32-vasprintf-tests: New file.
48105         * modules/unistdio/u32-vsnprintf-tests: New file.
48106         * modules/unistdio/u32-vsprintf-tests: New file.
48107         * MODULES.html.sh (Unicode string functions): Add the new modules.
48108
48109 2007-07-01  Bruno Haible  <bruno@clisp.org>
48110
48111         * lib/sprintf.c (sprintf): Limit the available length estimation,
48112         to avoid address wraparound.
48113         * lib/vsprintf.c (vsprintf): Likewise.
48114         * modules/sprintf-posix (Dependencies): Add stdint.
48115         * modules/vsprintf-posix (Dependencies): Likewise.
48116
48117 2007-07-01  Bruno Haible  <bruno@clisp.org>
48118
48119         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
48120         Windows PATH as well. Conservative double-quoting. Comments.
48121
48122 2007-07-01  Bruno Haible  <bruno@clisp.org>
48123             Eric Blake  <ebb9@byu.net>
48124             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48125
48126         * gnulib-tool (self_abspathname): Fix algorithm to cope with
48127         empty components in $PATH, denoting '.'.
48128
48129 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48130
48131         * gnulib-tool: Fix indentation.
48132         (func_create_megatestdir): Likewise.
48133         Report by Bruno Haible.
48134
48135 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48136
48137         Sync from Automake.
48138         * build-aux/gnupload: Fix shell portability issues with for loops.
48139         Report by Karl Berry.
48140
48141 2007-06-29  Simon Josefsson  <simon@josefsson.org>
48142
48143         * build-aux/maint.mk (POURL): Use translationproject.org.
48144
48145 2007-06-27  Simon Josefsson  <simon@josefsson.org>
48146             Bruno Haible  <bruno@clisp.org>
48147
48148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
48149         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
48150         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
48151         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
48152         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
48153
48154 2007-06-27  Bruno Haible  <bruno@clisp.org>
48155
48156         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
48157         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
48158
48159 2007-06-26  Karl Berry  <karl@gnu.org>
48160
48161         * MODULES.html.sh: remove xreadlink-with-size.
48162
48163 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48164
48165         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
48166         method that I hope also handles the double-include problem noted
48167         by Bruno Haible in
48168         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
48169
48170 2007-06-23  Bruno Haible  <bruno@clisp.org>
48171
48172         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48173         Don't let the 'mostlyclean' target fail if the last subdirectory could
48174         not be removed.
48175         Reported by Karl Berry.
48176
48177 2007-06-23  Bruno Haible  <bruno@clisp.org>
48178
48179         * gnulib-tool (echo): Add a speedier workaround for ksh.
48180         * tests/test-echo.sh: Likewise.
48181
48182 2007-06-23  Bruno Haible  <bruno@clisp.org>
48183
48184         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
48185         * tests/test-echo.sh: Likewise.
48186
48187 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48188
48189         * gnulib-tool (IFS): Initialize early, so we don't set it to
48190         empty later.
48191         (self_abspathname): Rewrite algorithm to set it, reindent.
48192         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
48193         (func_create_megatestdir): Merge some sed scripts.
48194
48195 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48196
48197         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
48198         exposed by Sun Studio 11 cc on Solaris 8.
48199
48200 2007-06-22  Bruno Haible  <bruno@clisp.org>
48201
48202         * gnulib-tool (echo): Ensure the echo primitive does not interpret
48203         backslashes.
48204         * tests/test-echo.sh: New file.
48205
48206 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48207
48208         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
48209         simplify `sed_replace_build_aux' scripts, they are portable but
48210         echoing them with `echo' is not.
48211         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
48212
48213 2007-06-21  Karl Berry  <karl@gnu.org>
48214
48215         * config/srclist.txt: guess we can't handle the licenses via
48216         srclist at the moment.
48217
48218 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
48219
48220         * MODULES.html.sh: Add include_next.
48221         * modules/include_next: New file.
48222
48223 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48224
48225         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
48226         INCLUDE_NEXT.
48227         (gl_CHECK_NEXT_HEADERS): New macro.
48228         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
48229         the obsolescent gl_ABSOLUTE_HEADER.
48230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
48231         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
48232         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
48233         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48234         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
48235         * m4/math_h.m4 (gl_MATH_H): Likewise.
48236         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48237         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
48238         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48239         * m4/stdint.m4 (gl_STDINT_H): Likewise.
48240         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
48241         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
48242         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
48243         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48244         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48245         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48246         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
48247         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
48248         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48249         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48250         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48251         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48252         * m4/inttypes.m4 (gl_INTTYPES_H): Define
48253         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
48254         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
48255         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
48256         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
48257         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
48258         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
48259         * lib/float_.h: Likewise.
48260         * lib/inttypes_.h: Likewise.
48261         * lib/math_.h: Likewise.
48262         * lib/search_.h: Likewise.
48263         * lib/signal_.h: Likewise.
48264         * lib/stdint_.h: Likewise.
48265         * lib/stdio_.h: Likewise.
48266         * lib/stdlib_.h: Likewise.
48267         * lib/string_.h: Likewise.
48268         * lib/sys_stat_.h: Likewise.
48269         * lib/sys_time_.h: Likewise.
48270         * lib/time_.h: Likewise.
48271         * lib/unistd_.h: Likewise.
48272         * lib/wchar_.h: Likewise.
48273         * lib/wctype_.h: Likewise.
48274         * lib/dirent_.h: Likewise.
48275         * lib/iconv_.h: Likewise.
48276         * lib/locale_.h: Likewise.
48277         * lib/netinet_in_.h: Likewise.
48278         * lib/sys_select_.h: Likewise.
48279         * lib/sys_socket_.h: Likewise.
48280         * lib/sysexits_.h: Likewise.
48281         * modules/fcntl (Depends-on): Depend on include_next, not
48282         absolute_header.
48283         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
48284         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
48285         * modules/fchdir: Likewise.
48286         * modules/float: Likewise.
48287         * modules/iconv_open: Likewise.
48288         * modules/inttypes: Likewise.
48289         * modules/locale: Likewise.
48290         * modules/math: Likewise.
48291         * modules/netinet_in: Likewise.
48292         * modules/search: Likewise.
48293         * modules/signal: Likewise.
48294         * modules/stdint: Likewise.
48295         * modules/stdio: Likewise.
48296         * modules/stdlib: Likewise.
48297         * modules/string: Likewise.
48298         * modules/sys_select: Likewise.
48299         * modules/sys_socket: Likewise.
48300         * modules/sys_stat: Likewise.
48301         * modules/sys_time: Likewise.
48302         * modules/sysexits: Likewise.
48303         * modules/time: Likewise.
48304         * modules/unistd: Likewise.
48305         * modules/wchar: Likewise.
48306         * modules/wctype: Likewise.
48307         * modules/sys_stat: Change maintainer to "all".
48308         * modules/unistd: Likewise.
48309
48310 2007-06-20  Karl Berry  <karl@gnu.org>
48311
48312         * config/srclist.txt: track www changes in license files.
48313
48314 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
48315
48316         * build-aux/bootstrap: Remove stray dot.
48317         Make sure build_aux settings are honored when linking
48318         gnulib_extra_files.
48319
48320 2007-06-19  Eric Blake  <ebb9@byu.net>
48321
48322         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48323         Allow compilation on cygwin.
48324
48325 2007-06-19  Jim Meyering  <jim@meyering.net>
48326
48327         xreadlink-with-size: Remove module.  No longer used.
48328         Ex-callers now use xreadlink or mreadlink-with-size.
48329         * modules/xreadlink-with-size: Remove module.
48330         * lib/xreadlink-with-size.c: Remove file.
48331         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
48332         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
48333         just before the function definition *is* accurate.
48334
48335         Eliminate one way canonicalize_filename_mode could exit.
48336         * lib/canonicalize.c (canonicalize_filename_mode):
48337         Use mreadlink_with_size, not xreadlink_with_size.
48338
48339 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
48340
48341         Detect porting problems to FreeBSD/arm, which has time_t wider than
48342         long int.  Original problem reported for GNU diff by Xin Li in
48343         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
48344         * modules/getdate (Depends-on): Add intprops, verify.
48345         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
48346         is an integer type no wider than long int.
48347
48348 2007-06-18  Jim Meyering  <jim@meyering.net>
48349
48350         New module: mreadlink-with-size.
48351         * MODULES.html.sh: Add mreadlink-with-size.
48352         * modules/mreadlink-with-size: New module
48353         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
48354         not xreadlink-with-size.
48355         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
48356
48357 2007-06-16  Bruno Haible  <bruno@clisp.org>
48358
48359         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
48360         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
48361         Reported by Gary V. Vaughan <gary@gnu.org>.
48362
48363 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
48364
48365         Revamp lchown so that it lives in unistd.h where it belongs.
48366         * lib/lchown.h: Remove.
48367         * lib/dirchownmod.c: Don't include lib/lchown.h.
48368         * lib/fchownat.c: Likewise.
48369         * lib/openat.c: Likewise.
48370         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
48371         does not follow symlinks.
48372         (EOPNOTSUPP): Define if not defined.
48373         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
48374         is defined to 0.
48375         (lchown): New decl.
48376         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
48377         Do not check for lchown decl.
48378         Set REPLACE_LCHOWN.
48379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
48380         REPLACE_LCHOWN.
48381         * modules/chown: Make it clear it follows symlinks.
48382         * modules/lchown: Make it clear it doesn't follow symlinks.
48383         (Files): Remove lib/lchown.h
48384         (Depends-on): Add unistd.
48385         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
48386         (Include): Include <unistd.h>, not "lchown.h".
48387         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
48388         REPLACE_LCHOWN.
48389
48390 2007-06-15  Jim Meyering  <jim@meyering.net>
48391
48392         Change license (GPL to LGPL) of fsusage and dependents.
48393         * modules/fsusage (License): Change to LGPL.
48394         * modules/full-read (License): Likewise.
48395         * modules/full-write (License): Likewise.
48396         * modules/safe-read (License): Likewise.
48397         * modules/safe-write (License): Likewise.
48398
48399 2007-06-14  Ben Pfaff  <blp@gnu.org>
48400
48401         Missing part of allocsa -> malloca transition.
48402         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
48403         gl_MALLOCA.
48404
48405 2007-06-12  Bruno Haible  <bruno@clisp.org>
48406
48407         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
48408         to ia64, x86_64, i386.
48409         Reported by Eric Blake.
48410
48411 2007-06-12  Bruno Haible  <bruno@clisp.org>
48412
48413         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
48414         cross-compiling to x86_64.
48415
48416 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
48417
48418         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
48419         glitch reported by Ralf Wildenhues in
48420         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
48421
48422         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
48423         Vin Shelton.
48424
48425 2007-06-11  Bruno Haible  <bruno@clisp.org>
48426
48427         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
48428         replacement string.
48429         Reported by Eric Blake.
48430
48431 2007-06-10  Bruno Haible  <bruno@clisp.org>
48432
48433         Prepare vasnprintf code for use with Unicode strings.
48434         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
48435         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
48436         TYPE_U32_STRING.
48437         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
48438         a_u32_string variants.
48439         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48440         * lib/printf-args.c: Don't include config.h and the specification
48441         header if PRINTF_FETCHARGS is already defined.
48442         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48443         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
48444         TYPE_U16_STRING, TYPE_U32_STRING.
48445         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
48446         u16_directive, u16_directives, u32_directive, u32_directives): New
48447         types.
48448         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
48449         New declarations.
48450         * lib/printf-parse.c: Don't include config.h and the specification
48451         header if PRINTF_PARSE is already defined. Eliminate the set of
48452         parameters for WIDE_CHAR_VERSION; the user of this file must provide
48453         them now. Include c-ctype.h.
48454         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
48455         directive and CHAR_T_ONLY_ASCII.
48456         * lib/vasnprintf.c: Don't include config.h and the specification header
48457         if VASNPRINTF is already defined.
48458         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
48459         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
48460         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
48461         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
48462         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
48463         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
48464         code accordingly.
48465         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
48466         pad_ourselves also in this case, with the 'c' and 's' directives, and
48467         with a different notion of "width".
48468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
48469
48470 2007-06-10  Bruno Haible  <bruno@clisp.org>
48471
48472         * modules/unistr/u32-mbsnlen: New file.
48473         * lib/unistr/u32-mbsnlen.c: New file.
48474
48475         * modules/unistr/u16-mbsnlen: New file.
48476         * lib/unistr/u16-mbsnlen.c: New file.
48477
48478         * modules/unistr/u8-mbsnlen: New file.
48479         * lib/unistr/u8-mbsnlen.c: New file.
48480
48481         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
48482         declarations.
48483
48484 2007-06-10  Bruno Haible  <bruno@clisp.org>
48485
48486         * lib/string_.h (mbsnlen): New declaration.
48487         * lib/mbsnlen.c: New file.
48488         * m4/mbsnlen.m4: New file.
48489         * modules/mbsnlen: New file.
48490         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
48491         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
48492         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
48493
48494 2007-06-10  Bruno Haible  <bruno@clisp.org>
48495
48496         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
48497
48498 2007-06-10  Bruno Haible  <bruno@clisp.org>
48499
48500         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
48501         * lib/mbuiter.h: Likewise.
48502
48503 2007-06-10  Bruno Haible  <bruno@clisp.org>
48504
48505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
48506         declaration.
48507
48508 2007-06-10  Karl Berry  <karl@gnu.org>
48509
48510         * config/srclist.txt: remove gettext entries, Bruno prefers
48511         to update individually.
48512
48513 2007-06-10  Bruno Haible  <bruno@clisp.org>
48514
48515         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
48516         'maxlen'. Ensure only length + width bytes are allocated, not
48517         length + 1 + width.
48518
48519 2007-06-09  Bruno Haible  <bruno@clisp.org>
48520
48521         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
48522         (CHAR_T): Remove macro.
48523         (VASNPRINTF): Update.
48524
48525 2007-06-09  Bruno Haible  <bruno@clisp.org>
48526
48527         * MODULES.html.sh (Unicode string functions): Add the new modules.
48528
48529         * modules/uniconv/u32-conv-to-enc: New file.
48530         * lib/uniconv/u32-conv-to-enc.c: New file.
48531         * modules/uniconv/u32-conv-to-enc-tests: New file.
48532         * tests/uniconv/test-u32-conv-to-enc.c: New file.
48533
48534         * modules/uniconv/u16-conv-to-enc: New file.
48535         * lib/uniconv/u16-conv-to-enc.c: New file.
48536         * lib/uniconv/u-conv-to-enc.h: New file.
48537         * modules/uniconv/u16-conv-to-enc-tests: New file.
48538         * tests/uniconv/test-u16-conv-to-enc.c: New file.
48539
48540         * modules/uniconv/u8-conv-to-enc: New file.
48541         * lib/uniconv/u8-conv-to-enc.c: New file.
48542         * modules/uniconv/u8-conv-to-enc-tests: New file.
48543         * tests/uniconv/test-u8-conv-to-enc.c: New file.
48544
48545         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48546         u32_conv_to_encoding): New declarations.
48547
48548 2007-06-09  Bruno Haible  <bruno@clisp.org>
48549
48550         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
48551
48552 2007-06-09  Bruno Haible  <bruno@clisp.org>
48553
48554         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
48555         * modules/malloca: Renamed from modules/allocsa, updated.
48556         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
48557         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
48558         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
48559         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
48560         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
48561         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
48562         * modules/xmalloca: Renamed from modules/xallocsa, updated.
48563         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
48564         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
48565         * modules/c-strcasestr (Depends-on): Update.
48566         * lib/c-strcasestr.c: Update.
48567         * modules/c-strstr (Depends-on): Update.
48568         * lib/c-strstr.c: Update.
48569         * modules/canonicalize-lgpl (Depends-on): Update.
48570         * lib/canonicalize-lgpl.c: Update.
48571         * modules/clean-temp (Depends-on): Update.
48572         * lib/clean-temp.c: Update.
48573         * modules/csharpcomp (Depends-on): Update.
48574         * lib/csharpcomp.c: Update.
48575         * modules/csharpexec (Depends-on): Update.
48576         * lib/csharpexec.c: Update.
48577         * modules/javacomp (Depends-on): Update.
48578         * lib/javacomp.c: Update.
48579         * modules/javaexec (Depends-on): Update.
48580         * lib/javaexec.c: Update.
48581         * modules/mbscasestr (Depends-on): Update.
48582         * lib/mbscasestr.c: Update.
48583         * modules/mbsstr (Depends-on): Update.
48584         * lib/mbsstr.c: Update.
48585         * modules/setenv (Depends-on): Update.
48586         * lib/setenv.c: Update.
48587         * modules/strcasestr (Depends-on): Update.
48588         * lib/strcasestr.c: Update.
48589         * modules/striconveha (Depends-on): Update.
48590         * lib/striconveha.c: Update.
48591         * modules/relocatable-prog-wrapper (Files): Update.
48592         * lib/relocwrapper.c: Update.
48593         * build-aux/install-reloc: Update.
48594         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
48595
48596 2007-06-08  Bruno Haible  <bruno@clisp.org>
48597
48598         Port to uClibc.
48599         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
48600         * lib/fpurge.c (fpurge): Likewise.
48601         * lib/freading.c (freading): Likewise.
48602         * lib/fseeko.c (rpl_fseeko): Likewise.
48603         * lib/fseterr.c (fseterr): Likewise.
48604         * lib/fwriting.c (fwriting): Likewise.
48605         * tests/test-fflush.c (main): Avoid a failure on uClibc.
48606
48607 2007-06-08  Bruno Haible  <bruno@clisp.org>
48608
48609         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
48610         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
48611         * modules/gettext (Files): Add m4/intlmacosx.m4.
48612
48613 2007-06-07  Bruno Haible  <bruno@clisp.org>
48614
48615         * modules/localename-tests: New file.
48616         * tests/test-localename.c: New file.
48617
48618         New module 'localename'.
48619         * lib/localename.h: New file.
48620         * lib/localename.c: New file, from GNU gettext.
48621         * m4/localename.m4: New file.
48622         * modules/localename: New file.
48623
48624 2007-06-07  Bruno Haible  <bruno@clisp.org>
48625
48626         Work around the lack of <wchar.h> on some builds of uClibc.
48627         * doc/headers/wchar.texi: Update.
48628         * lib/wchar_.h: Include <wchar.h> only if it exists.
48629         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
48630         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
48631         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
48632         doesn't exist.
48633         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
48634         * modules/mbfile (Depends-on): Add wchar.
48635         * modules/mbiter (Depends-on): Likewise.
48636         * modules/mbuiter (Depends-on): Likewise.
48637         Reported by Simon Josefsson.
48638
48639 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
48640
48641         Work around problem reported by Steven M. Schweda in
48642         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
48643         Tru64 5.1B with the Compaq compiler environment installed declares
48644         an 'isblank' function but does not define it in the C library.
48645         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
48646         * lib/regex_internal.h (isblank): Likewise.
48647         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
48648         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48649
48650 2007-06-05  Bruno Haible  <bruno@clisp.org>
48651
48652         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
48653         ia64.
48654         * modules/printf-safe: New file.
48655         * modules/fprintf-posix (Depends-on): Add printf-safe.
48656         * modules/printf-posix (Depends-on): Likewise.
48657         * modules/snprintf-posix (Depends-on): Likewise.
48658         * modules/sprintf-posix (Depends-on): Likewise.
48659         * modules/vasnprintf-posix (Depends-on): Likewise.
48660         * modules/vasprintf-posix (Depends-on): Likewise.
48661         * modules/vfprintf-posix (Depends-on): Likewise.
48662         * modules/vprintf-posix (Depends-on): Likewise.
48663         * modules/vsnprintf-posix (Depends-on): Likewise.
48664         * modules/vsprintf-posix (Depends-on): Likewise.
48665         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
48666         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
48667         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
48668         "no" on i386, x86_64, ia64.
48669         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
48670         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48671         on i386, x86_64, ia64.
48672         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
48673         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48674         on i386, x86_64, ia64.
48675         * tests/test-vasnprintf-posix.c: Include float.h.
48676         (LDBL80_WORDS): New macro.
48677         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48678         on i386, x86_64, ia64.
48679         * tests/test-vasprintf-posix.c: Include float.h.
48680         (LDBL80_WORDS): New macro.
48681         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48682         on i386, x86_64, ia64.
48683         * tests/test-snprintf-posix.c: Include float.h.
48684         * tests/test-sprintf-posix.c: Likewise.
48685         * tests/test-vsnprintf-posix.c: Likewise.
48686         * tests/test-vsprintf-posix.c: Likewise.
48687
48688 2007-06-05  Bruno Haible  <bruno@clisp.org>
48689
48690         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
48691         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
48692         non-IEEE numbers on i386, x86_64, ia64.
48693         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
48694         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
48695         * tests/test-isnanl.h: Include float.h.
48696         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
48697
48698 2007-06-05  Bruno Haible  <bruno@clisp.org>
48699
48700         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
48701         also the %a / %A. Handle the %a / %A code before this extra handling.
48702
48703 2007-06-05  Bruno Haible  <bruno@clisp.org>
48704
48705         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
48706         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
48707
48708 2007-06-05  Bruno Haible  <bruno@clisp.org>
48709
48710         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
48711         typo in variable name.
48712
48713 2007-06-05  Eric Blake  <ebb9@byu.net>
48714
48715         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
48716         Reported by Simon Josefsson.
48717
48718 2007-06-04  Bruno Haible  <bruno@clisp.org>
48719
48720         Avoid test failures on some PowerPC platforms.
48721         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
48722         Define differently for PowerPC.
48723         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
48724         Reported by Gary V. Vaughan <gary@gnu.org>.
48725
48726 2007-06-02  Bruno Haible  <bruno@clisp.org>
48727
48728         Fix test-stdint failure on FreeBSD/ia64.
48729         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
48730         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
48731         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
48732         * doc/headers/stdint.texi: Update.
48733
48734 2007-06-01  Bruno Haible  <bruno@clisp.org>
48735
48736         * tests/test-binary-io.c (main): Pass a third argument to open().
48737         Reported by Gary V. Vaughan <gary@gnu.org>.
48738
48739 2007-06-01  Bruno Haible  <bruno@clisp.org>
48740
48741         * doc/functions/frexpl.texi: Update for mingw.
48742
48743 2007-06-01  Bruno Haible  <bruno@clisp.org>
48744
48745         * tests/test-lseek.c (main): Disable test of errno for invalid third
48746         argument.
48747         * doc/functions/lseek.texi: Update.
48748         Reported by Gary V. Vaughan <gary@gnu.org>.
48749
48750 2007-05-28  Bruno Haible  <bruno@clisp.org>
48751
48752         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
48753
48754 2007-05-31  Eric Blake  <ebb9@byu.net>
48755
48756         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
48757         cross compiling.
48758
48759 2007-05-30  Eric Blake  <ebb9@byu.net>
48760         and Bruno Haible  <bruno@clisp.org>
48761
48762         Work around mingw test failures exposed by m4-1.4.9b.
48763         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
48764         * tests/test-unistd.c: Disable uid_t and git_t tests for the
48765         moment.
48766
48767 2007-05-30  Bruno Haible  <bruno@clisp.org>
48768
48769         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
48770         assuming that they are closed. Needed on HP-UX 11.
48771
48772 2007-05-29  Bruno Haible  <bruno@clisp.org>
48773
48774         Fix a problem with #include_next.
48775         * lib/dirent_.h: Split the double-inclusion guard.
48776         * lib/fcntl_.h: Likewise.
48777         * lib/float_.h: Likewise.
48778         * lib/iconv_.h: Likewise.
48779         * lib/inttypes_.h: Likewise.
48780         * lib/locale_.h: Likewise.
48781         * lib/math_.h: Likewise.
48782         * lib/netinet_in_.h: Likewise.
48783         * lib/search_.h: Likewise.
48784         * lib/signal_.h: Likewise.
48785         * lib/stdint_.h: Likewise.
48786         * lib/stdio_.h: Likewise.
48787         * lib/stdlib_.h: Likewise.
48788         * lib/string_.h: Likewise.
48789         * lib/sys_select_.h: Likewise.
48790         * lib/sys_socket_.h: Likewise.
48791         * lib/sys_stat_.h: Likewise.
48792         * lib/sys_time_.h: Likewise.
48793         * lib/sysexits_.h: Likewise.
48794         * lib/time_.h: Likewise.
48795         * lib/unistd_.h: Likewise.
48796         * lib/wchar_.h: Likewise.
48797         * lib/wctype_.h: Likewise.
48798
48799 2007-05-29  Bruno Haible  <bruno@clisp.org>
48800
48801         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
48802         for the moment.
48803
48804 2007-05-29  Bruno Haible  <bruno@clisp.org>
48805
48806         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
48807         invocation.
48808         Reported by Eric Blake.
48809
48810 2007-05-29  Bruno Haible  <bruno@clisp.org>
48811
48812         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
48813         compiling case.
48814
48815 2007-05-29  Eric Blake  <ebb9@byu.net>
48816             Bruno Haible  <bruno@clisp.org>
48817
48818         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
48819         cross compiles.
48820
48821 2007-05-28  Eric Blake  <ebb9@byu.net>
48822
48823         * modules/closein-tests (test_closein_LDADD): Support test on
48824         cygwin with libtool.
48825
48826 2007-05-28  Bruno Haible  <bruno@clisp.org>
48827
48828         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
48829         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48830         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48831         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48832         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48833         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48834         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48835         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48836         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48837
48838 2007-05-28  Eric Blake  <ebb9@byu.net>
48839
48840         Unconditionally include <config.h> in unit tests.
48841         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
48842         * tests/test-allocsa.c, tests/test-arcfour.c,
48843         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
48844         tests/test-array_list.c, tests/test-array_oset.c,
48845         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
48846         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
48847         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
48848         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
48849         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
48850         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
48851         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
48852         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
48853         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
48854         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
48855         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
48856         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
48857         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
48858         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
48859         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
48860         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
48861         test-md5.c, test-memmem.c, test-printf-posix.c,
48862         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
48863         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
48864         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
48865         test-strcasestr.c, test-striconv.c, test-striconveh.c,
48866         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
48867         test-vasnprintf-posix2.c, test-vasnprintf.c,
48868         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
48869         test-vfprintf-posix.c, test-vprintf-posix.c,
48870         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
48871         test-xvasprintf.c: Likewise.
48872
48873 2007-05-28  Bruno Haible  <bruno@clisp.org>
48874
48875         * gnulib-tool (func_import): Remember the --with-tests command-line
48876         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
48877         Reported by Eric Blake.
48878
48879 2007-05-28  Bruno Haible  <bruno@clisp.org>
48880
48881         * modules/ftell-tests: New file.
48882         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
48883         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
48884
48885         * lib/ftell.c: New file.
48886         * modules/ftell: New file.
48887         * m4/ftell.m4: New file.
48888         * doc/functions/ftell.texi: Update.
48889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
48890         REPLACE_FTELL.
48891         * lib/stdio_.h (rpl_ftell): New declaration.
48892         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
48893         REPLACE_FTELL.
48894
48895 2007-05-28  Eric Blake  <ebb9@byu.net>
48896
48897         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
48898
48899 2007-05-28  Bruno Haible  <bruno@clisp.org>
48900
48901         * modules/fseek-tests: New file.
48902         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48903         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48904
48905         * lib/fseek.c: New file.
48906         * modules/fseek: New file.
48907         * m4/fseek.m4: New file.
48908         * doc/functions/fseek.texi: Update.
48909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
48910         REPLACE_FSEEK.
48911         * lib/stdio_.h (rpl_fseek): New declaration.
48912         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
48913         REPLACE_FSEEK.
48914
48915 2007-05-28  Bruno Haible  <bruno@clisp.org>
48916
48917         * lib/stdio_.h (fflush): More comments.
48918
48919 2007-05-28  Bruno Haible  <bruno@clisp.org>
48920
48921         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
48922         runtime test.
48923
48924 2007-05-28  Eric Blake  <ebb9@byu.net>
48925
48926         Improve lseek module.
48927         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
48928         * lib/unistd_.h (lseek): Scale back link warning message.
48929         * tests/test-lseek.c: Beef up test.
48930         * tests/test-lseek.sh: Exercise more facets of lseek.
48931         Reported by Bruno Haible.
48932
48933 2007-05-28  Bruno Haible  <bruno@clisp.org>
48934
48935         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
48936         to define.
48937
48938 2007-05-27  Bruno Haible  <bruno@clisp.org>
48939
48940         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
48941
48942 2007-05-27  Bruno Haible  <bruno@clisp.org>
48943
48944         * modules/openmp: New file.
48945         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
48946         Noah Misch.
48947
48948 2007-05-26  Bruno Haible  <bruno@clisp.org>
48949
48950         * modules/chdir-long (Depends-on): Add fchdir.
48951         * modules/chdir-safer (Depends-on): Likewise.
48952         * modules/fts (Depends-on): Likewise.
48953         * modules/fts-lgpl (Depends-on): Likewise.
48954         * modules/openat (Depends-on): Likewise.
48955         * modules/savewd (Depends-on): Likewise.
48956
48957 2007-05-24  Eric Blake  <ebb9@byu.net>
48958
48959         Fix lseek on mingw.
48960         * modules/lseek: New module.
48961         * m4/lseek.m4: New file.
48962         * lib/lseek.c: New file.
48963         * modules/lseek-tests: New file.
48964         * tests/test-lseek.c: New file.
48965         * tests/test-lseek.sh: New file.
48966         * MODULES.html.sh: Document lseek module.
48967         * modules/fflush (Depends-on): Add lseek, fseeko.
48968         * modules/fseeko (Depends-on): Likewise.
48969         * modules/ftello (Depends-on): Likewise.
48970         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
48971         broken.
48972         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
48973         broken.
48974         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
48975         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
48976         * lib/ftello.c (rpl_ftello): Likewise.
48977         * tests/test-fseeko.c (main): Test this.
48978         * tests/test-fseeko.sh: Likewise.
48979         * tests/test-ftello.c (main): Likewise.
48980         * tests/test-ftello.sh: Likewise.
48981         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
48982         implies replacing fseek.
48983         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
48984         HAVE_FTELLO.
48985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
48986         * modules/unistd (Makefile.am): Likewise.
48987         * lib/unistd_.h (lseek): Declare a replacement.
48988         * doc/functions/lseek.texi (lseek): Document this fix.
48989         * doc/functions/fseek.texi (fseek): Likewise.
48990         * doc/functions/ftell.texi (ftell): Likewise.
48991
48992 2007-05-24  Bruno Haible  <bruno@clisp.org>
48993
48994         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
48995         in the printed representation of a NaN.
48996         * tests/test-vasprintf-posix.c (test_function): Likewise.
48997         * tests/test-snprintf-posix.h (test_function): Likewise.
48998         * tests/test-sprintf-posix.h (test_function): Likewise.
48999         Reported by Eric Blake.
49000
49001 2007-05-23  Eric Blake  <ebb9@byu.net>
49002
49003         Fix fseeko/ftello on cygwin 1.5.24.
49004         * doc/functions/fseeko.texi (fseeko): Document the fix.
49005         * doc/functions/ftello.texi (ftello): Document the fix.
49006         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
49007         * doc/functions/stdout.text (stdout): New file.
49008         * doc/functions/stderr.text (stderr): New file.
49009         * doc/gnulib.texi (Function Substitutes): Use new files.
49010         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
49011         prior to 1.7.0.
49012         * tests/test-ftello.c (main): Likewise for ftello.
49013         * tests/test-fseeko.sh: New file.
49014         * tests/test-ftello.sh: New file.
49015         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
49016         with seekable stdin.
49017         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
49018         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
49019         (gl_REPLACE_FSEEKO): New macro.
49020         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
49021         * modules/fseeko (Files): Distribute fseeko.c.
49022         * modules/ftello (Files): Distribute ftello.c.
49023         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
49024         mode.
49025         * lib/ftello.c (rpl_ftello): New file.
49026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
49027         fseeko, ftello.
49028         (gl_STDIN_LARGE_OFFSET): New macro.
49029         * modules/stdio (Makefile.am): Perform the replacement.
49030         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
49031
49032 2007-05-23  Bruno Haible  <bruno@clisp.org>
49033
49034         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
49035         GNULIB_POSIXCHECK is defined.
49036
49037 2007-05-21  Bruno Haible  <bruno@clisp.org>
49038
49039         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
49040         Check also the output for NaN arguments. When cross-compiling, guess
49041         no on IRIX.
49042         * lib/vasnprintf.c: Update comments.
49043         * tests/test-vasnprintf-posix.c (strisnan): New function.
49044         (test_function): Use it.
49045         * tests/test-vasprintf-posix.c (strisnan): New function.
49046         (test_function): Use it.
49047         * tests/test-snprintf-posix.h (strisnan): New function.
49048         (test_function): Use it.
49049         * tests/test-sprintf-posix.h (strisnan): New function.
49050         (test_function): Use it.
49051         Reported by Eric Blake.
49052
49053 2007-05-20  Bruno Haible  <bruno@clisp.org>
49054
49055         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
49056         numbers that fails on BeOS.
49057         * doc/functions/frexpl.texi: Update.
49058
49059 2007-05-20  Jim Meyering  <jim@meyering.net>
49060
49061         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
49062         forced upon us by glibc-2.6.
49063
49064 2007-05-20  Bruno Haible  <bruno@clisp.org>
49065
49066         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
49067         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
49068         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
49069         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
49070         NEED_PRINTF_INFINITE.
49071         (is_infinitel): New function.
49072         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
49073         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
49074         gl_PREREQ_VASNPRINTF_INFINITE.
49075         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
49076         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49077         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
49078         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
49079         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
49080         gl_PREREQ_VASNPRINTF_INFINITE.
49081         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49082         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49083         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49084         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49085         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49086         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49087         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49088         * doc/functions/fprintf.texi: Update.
49089         * doc/functions/printf.texi: Update.
49090         * doc/functions/snprintf.texi: Update.
49091         * doc/functions/sprintf.texi: Update.
49092         * doc/functions/vfprintf.texi: Update.
49093         * doc/functions/vprintf.texi: Update.
49094         * doc/functions/vsnprintf.texi: Update.
49095         * doc/functions/vsprintf.texi: Update.
49096
49097 2007-05-20  Bruno Haible  <bruno@clisp.org>
49098
49099         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
49100         was not found in libc.
49101         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49102
49103 2007-05-20  Bruno Haible  <bruno@clisp.org>
49104
49105         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49106         printed as "-nan" instead of "nan".
49107         * tests/test-vasprintf-posix.c (test_function): Likewise.
49108         * tests/test-snprintf-posix.h (test_function): Likewise.
49109         * tests/test-sprintf-posix.h (test_function): Likewise.
49110         Needed for HP-UX 11.
49111
49112 2007-05-20  Jim Meyering  <jim@meyering.net>
49113
49114         Fix buggy test for the fchownat-deref bug.
49115         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
49116         symlink required for the run-test.  Without it, this test would
49117         always declare that fchownat doesn't work, and client code would
49118         unnecessarily use the replacement function with fixed libc.
49119         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
49120         Reported by Greg Schafer.
49121
49122 2007-05-19  Bruno Haible  <bruno@clisp.org>
49123
49124         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
49125         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
49126         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
49127         Needed for IRIX 6.5 and Solaris 2.5.1.
49128
49129 2007-05-19  Bruno Haible  <bruno@clisp.org>
49130
49131         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
49132         (test_function): Skip tests involving -0.0 on platforms where
49133         -0.0 = 0.0.
49134         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
49135         (test_function): Skip tests involving -0.0 on platforms where
49136         -0.0 = 0.0.
49137         * tests/test-snprintf-posix.h (have_minus_zero): New function.
49138         (test_function): Skip tests involving -0.0 on platforms where
49139         -0.0 = 0.0.
49140         * tests/test-sprintf-posix.h (have_minus_zero): New function.
49141         (test_function): Skip tests involving -0.0 on platforms where
49142         -0.0 = 0.0.
49143         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
49144         tests.
49145         * tests/test-printf-posix.h (test_function): Likewise.
49146         * tests/test-printf-posix.output: Remove all -0.0 related results.
49147         Needed for IRIX 6.5.
49148
49149 2007-05-19  Bruno Haible  <bruno@clisp.org>
49150
49151         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49152         printed as "nan0x7fffffff" instead of "nan".
49153         * tests/test-vasprintf-posix.c (test_function): Likewise.
49154         * tests/test-snprintf-posix.h (test_function): Likewise.
49155         * tests/test-sprintf-posix.h (test_function): Likewise.
49156         * tests/test-fprintf-posix.h (NaN): Remove macro.
49157         (test_function): Remove all NaN related tests.
49158         * tests/test-printf-posix.h (NaN): Remove macro.
49159         (test_function): Remove all NaN related tests.
49160         * tests/test-printf-posix.output: Remove all NaN related results.
49161         Needed for IRIX 6.5.
49162
49163 2007-05-19  Bruno Haible  <bruno@clisp.org>
49164
49165         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
49166         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49167
49168 2007-05-19  Bruno Haible  <bruno@clisp.org>
49169
49170         * lib/float_.h: New file.
49171         * m4/float_h.m4: New file.
49172         * modules/float: New file.
49173         * modules/isnanl (Dependencies): Add float.
49174         * modules/isnanl-nolibm (Dependencies): Likewise.
49175         * modules/mathl (Dependencies): Likewise.
49176         * modules/printf-frexpl (Dependencies): Likewise.
49177         * modules/signbit (Dependencies): Likewise.
49178         * modules/vasnprintf (Dependencies): Likewise.
49179         * doc/headers/float.texi: Update.
49180
49181 2007-05-19  Jim Meyering  <jim@meyering.net>
49182
49183         * lib/utimens.c (gl_futimens): Rename from futimens,
49184         now that glibc-2.6 declares futimens.
49185         * lib/utimens.h: Likewise.
49186
49187 2007-05-19  Bruno Haible  <bruno@clisp.org>
49188
49189         Avoid test failures on mingw.
49190         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
49191         * tests/test-printf-posix.sh: Likewise.
49192         * tests/test-vfprintf-posix.sh: Likewise.
49193         * tests/test-vprintf-posix.sh: Likewise.
49194
49195 2007-05-19  Bruno Haible  <bruno@clisp.org>
49196
49197         Fix *printf result for NaN, Inf, -0.0 on mingw.
49198         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
49199         * lib/vasnprintf.c: Include math.h and isnan.h.
49200         (is_infinite_or_zero): New function.
49201         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
49202         values in the %f, %F, %e, %E, %g, %G directives.
49203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
49204         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49205         gl_PRINTF_INFINITE and test its result. Invoke
49206         gl_PREREQ_VASNPRINTF_INFINITE.
49207         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49208         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49209         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49210         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49211         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49212         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49213         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49214         * doc/functions/fprintf.texi: Update.
49215         * doc/functions/printf.texi: Update.
49216         * doc/functions/snprintf.texi: Update.
49217         * doc/functions/sprintf.texi: Update.
49218         * doc/functions/vfprintf.texi: Update.
49219         * doc/functions/vprintf.texi: Update.
49220         * doc/functions/vsnprintf.texi: Update.
49221         * doc/functions/vsprintf.texi: Update.
49222
49223 2007-05-19  Bruno Haible  <bruno@clisp.org>
49224
49225         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
49226         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
49227         Instead of multiplying with 10^k, set extra_zeroes to k.
49228         (scale10_round_long_double): Remove function.
49229
49230 2007-05-18  Bruno Haible  <bruno@clisp.org>
49231
49232         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
49233         introduced on 2007-05-06.
49234
49235 2007-05-18  Bruno Haible  <bruno@clisp.org>
49236
49237         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
49238         %g directives.
49239         * tests/test-vasprintf-posix.c (test_function): Likewise.
49240         * tests/test-snprintf-posix.h (test_function): Likewise.
49241         * tests/test-sprintf-posix.h (test_function): Likewise.
49242
49243 2007-05-18  Bruno Haible  <bruno@clisp.org>
49244
49245         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
49246         (strmatch): New function.
49247         (test_function): Test the %f directive on numbers of various exponents.
49248         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
49249         (strmatch): New function.
49250         (test_function): Test the %f directive on numbers of various exponents.
49251         * tests/test-snprintf-posix.h (strmatch): New function.
49252         (test_function): Test the %f directive on numbers of various exponents.
49253         * tests/test-sprintf-posix.h (strmatch): New function.
49254         (test_function): Test the %f directive on numbers of various exponents.
49255         * tests/test-snprintf-posix.c (SIZEOF): New macro.
49256         * tests/test-sprintf-posix.c (SIZEOF): New macro.
49257         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
49258         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
49259
49260 2007-05-18  Bruno Haible  <bruno@clisp.org>
49261
49262         Add support for 'long double' number output.
49263         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
49264         * lib/vasnprintf.c: Include math.h and float+.h.
49265         (mp_limb_t): New type.
49266         (GMP_LIMB_BITS): New macro.
49267         (mp_twolimb_t): New type.
49268         (GMP_TWOLIMB_BITS): New macro.
49269         (mpn_t): New type.
49270         (multiply, divide, convert_to_decimal, decode_long_double,
49271         scale10_round_long_double, scale10_round_decimal_long_double,
49272         floorlog10l): New functions.
49273         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
49274         for the %f, %F, %e, %E, %g, %G directives.
49275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
49276         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49277         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
49278         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
49279         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49280         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49281         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49282         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49283         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49285         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49286         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
49287         * modules/snprintf-posix (Depends-on): Likewise.
49288         * modules/sprintf-posix (Depends-on): Likewise.
49289         * modules/vasnprintf-posix (Depends-on): Likewise.
49290         * modules/vasprintf-posix (Depends-on): Likewise.
49291         * modules/vfprintf-posix (Depends-on): Likewise.
49292         * modules/vsnprintf-posix (Depends-on): Likewise.
49293         * modules/vsprintf-posix (Depends-on): Likewise.
49294         * modules/vasnprintf (Files): Add lib/float+.h.
49295         * doc/functions/fprintf.texi: Update.
49296         * doc/functions/printf.texi: Update.
49297         * doc/functions/snprintf.texi: Update.
49298         * doc/functions/sprintf.texi: Update.
49299         * doc/functions/vfprintf.texi: Update.
49300         * doc/functions/vprintf.texi: Update.
49301         * doc/functions/vsnprintf.texi: Update.
49302         * doc/functions/vsprintf.texi: Update.
49303
49304 2007-05-18  Bruno Haible  <bruno@clisp.org>
49305
49306         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
49307
49308 2007-05-18  Bruno Haible  <bruno@clisp.org>
49309
49310         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
49311         for printing 64-bit integers. Needed for mingw.
49312
49313 2007-05-18  Bruno Haible  <bruno@clisp.org>
49314
49315         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49316         gl_FUNC_FREXPL_WORKS.
49317         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
49318
49319 2007-05-18  Bruno Haible  <bruno@clisp.org>
49320
49321         * modules/frexpl-nolibm-tests: New file.
49322
49323         * modules/frexpl-nolibm: New file.
49324         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
49325
49326 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
49327
49328         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
49329         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49330         GCC 4.2, which otherwise issues a lot of warnings.
49331         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
49332         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
49333         Likewise.
49334         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
49335         * modules/iconv_open (iconv.h): Likewise.
49336         * modules/locale (locale.h): Likewise.
49337         * modules/netinet_in (netinet/in.h): Likewise.
49338         * modules/sys_select (sys_select.h): Likewise.
49339         * modules/sys_socket (sys/socket.h): Likewise.
49340         * modules/sys_stat (sys/stat.h): Likewise.
49341         * modules/sysexits (sysexits.h): Likewise.
49342         * modules/unistd (unistd.h): Likewise.
49343
49344 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49345
49346         * modules/closein-tests (Makefile.am): Distribute
49347         `test-closein.sh'.
49348
49349 2007-05-17  Bruno Haible  <bruno@clisp.org>
49350
49351         * tests/test-printf-posix.output: Renamed from
49352         tests/test-fprintf-posix.out.
49353         * modules/fprintf-posix-tests: Update.
49354         * modules/printf-posix-tests: Update.
49355         * modules/vfprintf-posix-tests: Update.
49356         * modules/vprintf-posix-tests: Update.
49357         * tests/test-fprintf-posix.sh: Update.
49358         * tests/test-printf-posix.sh: Update.
49359         * tests/test-vfprintf-posix.sh: Update.
49360         * tests/test-vprintf-posix.sh: Update.
49361         Reported by Ralf Wildenhues.
49362
49363 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49364
49365         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
49366         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49367         GCC 4.2, which otherwise issues a lot of warnings.
49368         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
49369         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
49370         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
49371         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
49372         it should no longer be needed.
49373         * lib/string_.h: Likewise.
49374         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
49375         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
49376         * modules/inttypes (inttypes.h): Likewise.
49377         * modules/math (math.h): Likewise.
49378         * modules/search (search.h): Likewise.
49379         * modules/signal (signal.h): Likewise.
49380         * modules/stdint (stdint.h): Likewise.
49381         * modules/stdio (stdio.h): Likewise.
49382         * modules/stdlib (stdlib.h): Likewise.
49383         * modules/string (string.h): Likewise.
49384         * modules/sys_time (sys/time.h): Likewise.
49385         * modules/time (time.h): Likewise.
49386         * modules/wchar (wchar.h): Likewise.
49387         * modules/wctype (wtype.h): Likewise.
49388
49389 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49390
49391         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
49392
49393 2007-05-13  Bruno Haible  <bruno@clisp.org>
49394
49395         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
49396         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49397         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
49398         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49399         (gl_PREREQ_STRTOK_R): Don't require it here.
49400
49401 2007-05-13  Bruno Haible  <bruno@clisp.org>
49402
49403         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
49404         when used in C++ mode.
49405
49406 2007-05-12  Bruno Haible  <bruno@clisp.org>
49407
49408         * lib/linebuffer.h: Tweak doc.
49409         * lib/linebuffer.c: Likewise.
49410
49411 2007-05-12  James Youngman  <jay@gnu.org>
49412
49413         * lib/linebuffer.c (readlinebuffer_delim): New function,
49414         like readlinebuffer, but use a caller-specified delimiter.
49415         (readlinebuffer): Just call readlinebuffer_delim with '\n'
49416         as the delimiter.
49417         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
49418
49419 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49420
49421         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
49422         * modules/openat (Files): Remove openat-die.c.
49423         (Depends-on): Add openat-die.
49424         * modules/openat-die: New module.
49425
49426 2007-05-06  Bruno Haible  <bruno@clisp.org>
49427
49428         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
49429         Update with info about Cygwin.
49430         * doc/functions/fprintf.texi: Update.
49431         * doc/functions/printf.texi: Update.
49432         * doc/functions/snprintf.texi: Update.
49433         * doc/functions/sprintf.texi: Update.
49434         * doc/functions/vfprintf.texi: Update.
49435         * doc/functions/vprintf.texi: Update.
49436         * doc/functions/vsnprintf.texi: Update.
49437         * doc/functions/vsprintf.texi: Update.
49438         Reported by Eric Blake.
49439
49440 2007-05-06  Bruno Haible  <bruno@clisp.org>
49441
49442         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
49443         padding ourselves for the floating-point directives.
49444         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
49445         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
49446         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49447         gl_PRINTF_FLAG_ZERO and test its result. Invoke
49448         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
49449         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49450         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49451         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49452         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49453         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49454         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49455         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49456         * tests/test-snprintf-posix.h (test_function): Also check the width
49457         and some flags in the %f directive.
49458         * tests/test-sprintf-posix.h (test_function): Likewise.
49459         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49460         * tests/test-vasprintf-posix.c (test_function): Likewise.
49461         * doc/functions/fprintf.texi: Update.
49462         * doc/functions/printf.texi: Update.
49463         * doc/functions/snprintf.texi: Update.
49464         * doc/functions/sprintf.texi: Update.
49465         * doc/functions/vfprintf.texi: Update.
49466         * doc/functions/vprintf.texi: Update.
49467         * doc/functions/vsnprintf.texi: Update.
49468         * doc/functions/vsprintf.texi: Update.
49469
49470 2007-05-06  Bruno Haible  <bruno@clisp.org>
49471
49472         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
49473         pass the ' flag character to sprintf or snprintf.
49474         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
49475         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
49476         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49477         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
49478         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
49479         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49480         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49481         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49482         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49483         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49484         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49485         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49486         * tests/test-snprintf-posix.h (test_function): Also check the grouping
49487         flag.
49488         * tests/test-sprintf-posix.h (test_function): Likewise.
49489         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49490         * tests/test-vasprintf-posix.c (test_function): Likewise.
49491         * doc/functions/fprintf.texi: Update.
49492         * doc/functions/printf.texi: Update.
49493         * doc/functions/snprintf.texi: Update.
49494         * doc/functions/sprintf.texi: Update.
49495         * doc/functions/vfprintf.texi: Update.
49496         * doc/functions/vprintf.texi: Update.
49497         * doc/functions/vsnprintf.texi: Update.
49498         * doc/functions/vsprintf.texi: Update.
49499
49500 2007-05-01  Bruno Haible  <bruno@clisp.org>
49501
49502         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
49503
49504 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
49505
49506         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
49507         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
49508
49509 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49510
49511         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
49512         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
49513         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
49514
49515 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
49516
49517         * lib/argp-help.c (struct hol_entry): New member `ord'.
49518         (HOL_ENTRY_PTRCMP): Use ord for comparison
49519         (hol_sort): Initialize ord.
49520
49521 2007-05-01  Bruno Haible  <bruno@clisp.org>
49522
49523         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
49524         Reported by Eric Blake.
49525         * doc/gnulib.texi (Function Substitutes): Update.
49526
49527 2007-05-01  Bruno Haible  <bruno@clisp.org>
49528
49529         * doc/functions.texi: Remove file, now redundant through
49530         doc/functions/*.texi.
49531
49532 2007-05-01  Bruno Haible  <bruno@clisp.org>
49533
49534         * modules/argp (Depends-on): Add sleep.
49535
49536 2007-05-01  Bruno Haible  <bruno@clisp.org>
49537
49538         * modules/sleep-tests: New file.
49539         * tests/test-sleep.c: New file.
49540
49541         * modules/sleep: New file.
49542         * lib/sleep.c: New file.
49543         * m4/sleep.m4: New file.
49544         * lib/unistd_.h (sleep): New declaration.
49545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
49546         HAVE_SLEEP.
49547         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
49548         * doc/functions/sleep.texi: Document the sleep module.
49549
49550 2007-05-01  Bruno Haible  <bruno@clisp.org>
49551
49552         * lib/sigprocmask.h: Remove file.
49553         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
49554         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
49555         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
49556         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
49557         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
49558         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
49559         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
49560         HAVE_SIGSET_T as a shell variable.
49561         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
49562         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
49563         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
49564         (Depends-on): Add signal. Remove verify.
49565         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
49566         (Include): Mention <signal.h> instead of sigprocmask.h.
49567         * NEWS: Mention the change.
49568         * lib/fatal-signal.c: Don't include sigprocmask.h.
49569
49570 2007-05-01  Bruno Haible  <bruno@clisp.org>
49571
49572         * modules/signal: New file.
49573         * lib/signal_.h: New file.
49574         * m4/signal_h.m4: New file.
49575
49576 2007-05-01  Bruno Haible  <bruno@clisp.org>
49577
49578         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
49579         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
49580         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
49581         HAVE_WCTYPE_CTMP_BUG into wctype.h.
49582
49583 2007-05-01  Bruno Haible  <bruno@clisp.org>
49584
49585         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
49586         configure time.
49587         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
49588         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
49589         * modules/sys_stat (Makefile.am): Substitute their values into
49590         sys/stat.h.
49591
49592 2007-05-01  Bruno Haible  <bruno@clisp.org>
49593
49594         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
49595         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
49596         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
49597
49598 2007-05-01  Bruno Haible  <bruno@clisp.org>
49599
49600         * doc/header/assert.texi: Undo last change: don't mention the gnulib
49601         'assert' module here.
49602
49603 2007-05-01  Bruno Haible  <bruno@clisp.org>
49604
49605         * doc/functions/*.texi: New files.
49606         * doc/functions/google-ranking.txt: New file.
49607         * doc/gnulib.texi (Function Substitutes): New chapter.
49608         (ctime, inet_ntoa): Remove sections.
49609         * doc/ctime.texi: Remove file.
49610         * doc/inet_ntoa.texi: Remove file.
49611         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
49612         dependencies.
49613         (%.info): New rule, specifying a --reference-limit.
49614
49615 2007-05-01  Bruno Haible  <bruno@clisp.org>
49616
49617         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
49618
49619 2007-05-01  Bruno Haible  <bruno@clisp.org>
49620
49621         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
49622         the portability of 'mkdir' to mingw systems.
49623
49624 2007-05-01  Bruno Haible  <bruno@clisp.org>
49625
49626         * doc/headers/google-ranking.txt: New file.
49627
49628 2007-04-30  Eric Blake  <ebb9@byu.net>
49629
49630         Prefer fseeko to fseek.
49631         * modules/getpass (Depends-on): Add fseeko.
49632         * lib/getpass.c (getpass): Use fseeko, not fseek.
49633
49634 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
49635
49636         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
49637         assumes the sorting is stable, while most qsort implementations
49638         are not.  Use argument addresses to ensure they never compare as
49639         equal.
49640
49641         * tests/test-argp-2.sh (usage-indent test): Fix output
49642         (func_compare): Restore diff options
49643         * tests/test-argp.c: Restore #include "progname.h"
49644
49645 2007-04-29  Bruno Haible  <bruno@clisp.org>
49646
49647         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
49648         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49649         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
49650         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49651         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
49652         (configure.ac): Define CHECK_SNPRINTF_POSIX.
49653         (TESTS, check_PROGRAMS): Add test-snprintf.
49654         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
49655         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
49656         (TESTS, check_PROGRAMS): Add test-vsnprintf.
49657         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
49658         assertions that fail on HP-UX, OSF/1, or IRIX.
49659         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
49660
49661 2007-04-29  Bruno Haible  <bruno@clisp.org>
49662
49663         * MODULES.html.sh (posix_functions): Remove 'contents'.
49664
49665 2007-04-29  Karl Berry  <karl@gnu.org>
49666
49667         * config/srclist.txt (gendocs_template_min): new entry.
49668
49669 2007-04-29  Bruno Haible  <bruno@clisp.org>
49670
49671         Work around fpurge bug on BSD systems.
49672         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
49673         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
49674         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
49675         fpurge to rpl_fpurge if the system already has this function.
49676         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
49677         the case where the system already has this function. Correct invariants
49678         on BSD systems.
49679         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
49680         BSD systems.
49681
49682 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49683
49684         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
49685         proposed by Sven Verdoolaege.
49686
49687         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
49688         options.
49689         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
49690         (usage and help tests): Update
49691
49692 2007-04-29  Bruno Haible  <bruno@clisp.org>
49693
49694         * tests/test-fflush.c (main): Use a file of size 17, not 10.
49695         Print more information in case of failure. Disable a test on BeOS.
49696
49697 2007-04-29  Bruno Haible  <bruno@clisp.org>
49698
49699         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
49700         This helps debugging on systems on which no gdb is available.
49701
49702 2007-04-29  Bruno Haible  <bruno@clisp.org>
49703
49704         * lib/freading.h: Improve comments.
49705         * lib/fwriting.h: Likewise.
49706         * tests/test-freading.c (main): Don't check freading immediately after
49707         repositioning. Needed for glibc.
49708
49709 2007-04-29  Bruno Haible  <bruno@clisp.org>
49710
49711         * lib/freading.c (freading): Trivial simplification.
49712
49713 2007-04-28  Bruno Haible  <bruno@clisp.org>
49714
49715         * tests/test-fwriting.c (main): Also test the interaction between
49716         fflush and fwriting.
49717         * modules/fwriting-tests (Depends-on): Add fflush.
49718
49719         * tests/test-freading.c (main): Also test the interaction between
49720         fflush and freading.
49721         * modules/freading-tests (Depends-on): Add fflush.
49722
49723 2007-04-28  Bruno Haible  <bruno@clisp.org>
49724
49725         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
49726         fseeko and ftello.
49727         Suggested by Eric Blake.
49728
49729 2007-04-28  Jim Meyering  <jim@meyering.net>
49730
49731         Avoid false-negative in gl_STDINT_H's C99 conformance test.
49732         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
49733         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
49734
49735 2007-04-27  Eric Blake  <ebb9@byu.net>
49736
49737         * doc/headers/assert.texi (assert.h): Document assert module use.
49738
49739 2007-04-27  Bruno Haible  <bruno@clisp.org>
49740
49741         * doc/headers/*.texi: New files.
49742         * doc/gnulib.texi (Header File Substitutes): New chapter.
49743         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
49744         dependencies.
49745         (standards.info ,standards.html, standards.dvi): Update dependencies.
49746         (mostlyclean, clean): New targets.
49747
49748 2007-04-27  Bruno Haible  <bruno@clisp.org>
49749
49750         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
49751         * modules/sysexits (Files, Makefile.am): Update.
49752
49753         * lib/sys_socket_.h: Renamed from lib/socket_.h.
49754         * modules/sys_socket (Files, Makefile.am): Update.
49755
49756         * lib/sys_stat_.h: Renamed from lib/stat_.h.
49757         * modules/sys_stat (Files, Makefile.am): Update.
49758
49759 2007-04-27  Eric Blake  <ebb9@byu.net>
49760
49761         * lib/freading.h: Improve comments.
49762         * lib/fwriting.h: Likewise.
49763         * lib/fflush.c: Likewise.
49764
49765         Fix closein for mingw.
49766         * modules/closein-tests: Add tests for closein.
49767         * tests/test-closein.c: New file.
49768         * tests/test-closein.sh: Likewise.
49769         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
49770         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
49771
49772 2007-04-27  Bruno Haible  <bruno@clisp.org>
49773
49774         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
49775         version is < 6.
49776         * lib/math_.h [__DECC]: Likewise.
49777         * lib/stdio_.h [__DECC]: Likewise.
49778         * lib/stdlib_.h [__DECC]: Likewise.
49779         * lib/string_.h [__DECC]: Likewise.
49780         * lib/time_.h [__DECC]: Likewise.
49781         * lib/wchar_.h [__DECC]: Likewise.
49782         * lib/wctype_.h [__DECC]: Likewise.
49783
49784 2007-04-27  Bruno Haible  <bruno@clisp.org>
49785
49786         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
49787
49788 2007-04-27  Bruno Haible  <bruno@clisp.org>
49789
49790         * lib/fflush.c: Add comments.
49791         * modules/fpurge-tests (Depends-on): Add fflush.
49792         * modules/freadable-tests (Depends-on): Likewise.
49793         * modules/fwritable-tests (Depends-on): Likewise.
49794
49795 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
49796
49797         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
49798         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
49799         Report by Bruno Haible <bruno@clisp.org>.
49800
49801 2007-04-26  Eric Blake  <ebb9@byu.net>
49802
49803         Fix fflush on mingw.
49804         * modules/fflush (Depends-on): Add freading.
49805         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
49806         but unread data.
49807
49808 2007-04-26  Eric Blake  <ebb9@byu.net>
49809         and Bruno Haible  <bruno@clisp.org>
49810
49811         Implement freading and fwriting.
49812         * lib/freading.c: New file.
49813         * lib/freading.h: Likewise.
49814         * m4/freading.m4: Likewise.
49815         * modules/freading: Likewise.
49816         * modules/freading-tests: Likewise.
49817         * tests/test-freading.c: Likewise.
49818         * lib/fwriting.c: New file.
49819         * lib/fwriting.h: Likewise.
49820         * m4/fwriting.m4: Likewise.
49821         * modules/fwriting: Likewise.
49822         * modules/fwriting-tests: Likewise.
49823         * tests/test-fwriting.c: Likewise.
49824         * MODULES.html.sh (File stream based Input/Output): Mention them.
49825
49826 2007-04-26  Bruno Haible  <bruno@clisp.org>
49827
49828         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
49829         'long' when we assume it.
49830         Suggested by Eric Blake.
49831
49832 2007-04-26  Bruno Haible  <bruno@clisp.org>
49833
49834         Ensure fseeko, ftello are declared on glibc systems.
49835         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
49836         * modules/fseeko (configure.ac-early): Likewise.
49837         * modules/ftello (configure.ac-early): Likewise.
49838         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
49839         AC_FUNC_FSEEKO for this.
49840         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
49841         (gl_CHECK_FSEEKO): Remove macro.
49842
49843 2007-04-26  Bruno Haible  <bruno@clisp.org>
49844
49845         * tests/test-fflush.c (main): Also check the ftell result after
49846         fflush and fseek/fseeko.
49847         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
49848         file descriptor position cache in the stream.
49849         * lib/fseeko.c (rpl_fseeko): Likewise.
49850
49851 2007-04-26  Bruno Haible  <bruno@clisp.org>
49852
49853         * modules/fflush-tests (Depends-on): Add fseeko.
49854
49855 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
49856             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49857
49858         * lib/argz_.h: ensure error_t definition is obtained in same
49859         mechanism system argz.h would have.
49860         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
49861         argz facilities are known bad.  Err on the side of caution if
49862         cross-compiling.
49863
49864 2007-04-25  Eric Blake  <ebb9@byu.net>
49865
49866         * lib/fpurge.c (includes): Use stdlib.h for free.
49867         * tests/test-fflush.c (main): Also test fflush-fseeko.
49868
49869 2007-04-25  Bruno Haible  <bruno@clisp.org>
49870
49871         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
49872         * lib/fseeko.c: New file.
49873         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
49874         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
49875         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
49876         gl_FUNC_FSEEKO.
49877         (gl_FUNC_FSEEKO): Invoke it.
49878         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
49879         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49880         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
49881
49882 2007-04-25  Bruno Haible  <bruno@clisp.org>
49883
49884         * modules/fflush (Depends-on): Add ftello.
49885
49886 2007-04-25  Bruno Haible  <bruno@clisp.org>
49887
49888         * modules/ftello-tests: New file.
49889         * tests/test-ftello.c: New file.
49890
49891         * modules/ftello: New file.
49892         * m4/ftello.m4: New file.
49893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
49894         HAVE_FTELLO.
49895         * lib/stdio_.h (ftello): New declaration.
49896         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
49897         HAVE_FTELLO.
49898
49899 2007-04-25  Bruno Haible  <bruno@clisp.org>
49900
49901         * modules/fseeko-tests: New file.
49902         * tests/test-fseeko.c: New file.
49903
49904         * modules/fseeko: New file.
49905         * m4/fseeko.m4: New file.
49906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
49907         HAVE_FSEEKO.
49908         * lib/stdio_.h (fseeko): New declaration.
49909         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
49910         HAVE_FSEEKO.
49911
49912 2007-04-25  Bruno Haible  <bruno@clisp.org>
49913
49914         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
49915
49916 2007-04-25  Bruno Haible  <bruno@clisp.org>
49917
49918         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
49919         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
49920         * tests/test-unistd.c: Likewise.
49921         * tests/test-fcntl.c: Likewise.
49922
49923 2007-04-23  Eric Blake  <ebb9@byu.net>
49924
49925         * lib/fflush.c: Fix missing include.
49926         Reported by Bruno Haible.
49927
49928 2007-04-23  Bruno Haible  <bruno@clisp.org>
49929
49930         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
49931         Reported by Eric Blake.
49932
49933 2007-04-23  Bruno Haible  <bruno@clisp.org>
49934
49935         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
49936
49937 2007-04-23  Bruno Haible  <bruno@clisp.org>
49938
49939         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
49940
49941 2007-04-23  Bruno Haible  <bruno@clisp.org>
49942
49943         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
49944         Needed on HP-UX 11.
49945
49946 2007-04-16  Eric Blake  <ebb9@byu.net>
49947
49948         Make fflush rely on fpurge.
49949         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
49950         open coding all variants.
49951         * modules/fflush (Depends-on): Add fpurge and unistd.
49952         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
49953         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
49954
49955         Fix --with-tests compilation on cygwin.
49956         * modules/argmatch-tests (Makefile.am): List gnulib library first
49957         in LDADD.
49958         * modules/argp-tests (Makefile.am): Likewise.
49959         * modules/array-list-tests (Makefile.am): Likewise.
49960         * modules/array-oset-tests (Makefile.am): Likewise.
49961         * modules/avltree-list-tests (Makefile.am): Likewise.
49962         * modules/avltree-oset-tests (Makefile.am): Likewise.
49963         * modules/avltreehash-list-tests (Makefile.am): Likewise.
49964         * modules/carray-list-tests (Makefile.am): Likewise.
49965         * modules/dirname-tests (Makefile.am): Likewise.
49966         * modules/frexp-tests (Makefile.am): Likewise.
49967         * modules/isnanl-tests (Makefile.am): Likewise.
49968         * modules/linked-list-tests (Makefile.am): Likewise.
49969         * modules/linkedhash-list-tests (Makefile.am): Likewise.
49970         * modules/lock-tests (Makefile.am): Likewise.
49971         * modules/rbtree-list-tests (Makefile.am): Likewise.
49972         * modules/rbtree-oset-tests (Makefile.am): Likewise.
49973         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
49974         * modules/tls-tests (Makefile.am): Likewise.
49975         * modules/tsearch-tests (Makefile.am): Likewise.
49976         * modules/xvasprintf-tests (Makefile.am): Likewise.
49977
49978         Fix fpurge for cygwin.
49979         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
49980         value.
49981         * modules/fpurge-tests (Depends-on): Clean up trash.
49982
49983 2007-04-16  Simon Josefsson  <simon@josefsson.org>
49984
49985         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
49986
49987         * m4/autobuild.m4: Re-indent.
49988
49989 2007-04-13  Bruno Haible  <bruno@clisp.org>
49990
49991         * modules/fpurge-tests: New file.
49992         * tests/test-fpurge.c: New file.
49993
49994         * modules/fpurge: New file.
49995         * lib/fpurge.h: New file.
49996         * lib/fpurge.c: New file.
49997         * m4/fpurge.m4: New file.
49998
49999 2007-04-13  Bruno Haible  <bruno@clisp.org>
50000
50001         * modules/fbufmode-tests: New file.
50002         * tests/test-fbufmode.c: New file.
50003
50004         * modules/fbufmode: New file.
50005         * lib/fbufmode.h: New file.
50006         * lib/fbufmode.c: New file.
50007         * m4/fbufmode.m4: New file.
50008
50009 2007-04-13  Bruno Haible  <bruno@clisp.org>
50010
50011         * modules/fwritable-tests: New file.
50012         * tests/test-fwritable.c: New file.
50013
50014         * modules/fwritable: New file.
50015         * lib/fwritable.h: New file.
50016         * lib/fwritable.c: New file.
50017         * m4/fwritable.m4: New file.
50018
50019 2007-04-13  Bruno Haible  <bruno@clisp.org>
50020
50021         * modules/freadable-tests: New file.
50022         * tests/test-freadable.c: New file.
50023
50024         * modules/freadable: New file.
50025         * lib/freadable.h: New file.
50026         * lib/freadable.c: New file.
50027         * m4/freadable.m4: New file.
50028
50029 2007-04-13  Bruno Haible  <bruno@clisp.org>
50030
50031         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
50032         MOSTLYCLEANFILES.
50033
50034 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50035
50036         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
50037         gzip bootstrap.conf to avoid dragging in i18n machinery.
50038         (gnulib_tool_option): Use it.
50039
50040 2007-04-13  Bruno Haible  <bruno@clisp.org>
50041
50042         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
50043         %F directives.
50044         * tests/test-vasprintf-posix.c (test_function): Likewise.
50045         * tests/test-snprintf-posix.h (test_function): Likewise.
50046         * tests/test-sprintf-posix.h (test_function): Likewise.
50047         * tests/test-fprintf-posix.h (test_function): Likewise.
50048         * tests/test-printf-posix.h (test_function): Likewise.
50049         * tests/test-fprintf-posix.out: Likewise.
50050
50051 2007-04-13  Bruno Haible  <bruno@clisp.org>
50052
50053         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
50054         * modules/tls-tests (configure.ac): Likewise.
50055         Reported by Arto C. Nirkko <anirkko@insel.ch>.
50056
50057 2007-04-13  Bruno Haible  <bruno@clisp.org>
50058
50059         * lib/tls.c (glthread_tls_get): Fix return type.
50060         Patch by Arto C. Nirkko <anirkko@insel.ch>.
50061
50062 2007-04-12  Eric Blake  <ebb9@byu.net>
50063
50064         * modules/gettime (Depends-on): Remove gettime.
50065         Reported by Dmitry V. Levin.
50066
50067 2007-04-12  Bruno Haible  <bruno@clisp.org>
50068
50069         * modules/fflush (Include): Mention <stdio.h>.
50070         * modules/strtoimax (Include): Mention <inttypes.h>.
50071         * modules/strtoumax (Include): Likewise.
50072
50073 2007-04-12  Eric Blake  <ebb9@byu.net>
50074
50075         * .cvsignore: New file.
50076         * .gitignore: Likewise.
50077
50078 2007-04-12  Bruno Haible  <bruno@clisp.org>
50079
50080         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
50081         not before, since $(LDADD) often contains libgnu.a.
50082         * modules/striconv-tests (test_striconv_LDADD): Likewise.
50083         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
50084         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
50085         Needed on Cygwin.
50086
50087 2007-04-12  Eric Blake  <ebb9@byu.net>
50088
50089         Work around glibc's failure to flush stdin on fclose.
50090         * lib/closein.c (close_stdin): Flush stdin before closing.
50091
50092         Work around glibc's failure to reset seekable stdin on exit.
50093         * modules/closein: New module.
50094         * lib/closein.c: New file.
50095         * lib/closein.h: Likewise.
50096         * m4/closein.m4: Likewise.
50097         * MODULES.html.sh (File stream based Input/Output): Document it.
50098
50099 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50100
50101         * gnulib-tool: Rename generated 'autobuild' script to
50102         'do-autobuild' in --create-megatestdir output.
50103
50104         * doc/gnulib.texi (Build robot for gnulib): Fix.
50105
50106 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50107
50108         * modules/sysexits (Depends-on): Add absolute-header.
50109
50110 2007-04-12  Eric Blake  <ebb9@byu.net>
50111
50112         No need to preserve errno on success.
50113         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
50114         Reported by Bruno Haible.
50115
50116 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50117
50118         * MODULES.html.sh (Support for maintaining and releasing
50119         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
50120
50121 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50122
50123         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
50124
50125 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50126
50127         * modules/autobuild: New module.
50128
50129         * m4/autobuild.m4: New file.
50130
50131 2007-04-11  Bruno Haible  <bruno@clisp.org>
50132
50133         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
50134         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
50135         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
50136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
50137         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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/snprintf-posix.m4 (gl_FUNC_SNPRINTF_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/sprintf-posix.m4 (gl_FUNC_SPRINTF_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/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_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/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_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         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
50156         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50157         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50158         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
50159         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50160         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50161         Reported by Eric Blake.
50162
50163 2007-04-11  Bruno Haible  <bruno@clisp.org>
50164
50165         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
50166
50167 2007-04-10  Bruno Haible  <bruno@clisp.org>
50168
50169         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
50170         for NaN and Infinity. Needed on FreeBSD 6.1.
50171         * tests/test-vasnprintf-posix.c (test_function): Undo last change
50172         regarding results for "%010a" of Infinity and NaN.
50173         * tests/test-vasprintf-posix.c (test_function): Likewise.
50174         * tests/test-snprintf-posix.h (test_function): Likewise.
50175         * tests/test-sprintf-posix.h (test_function): Likewise.
50176         * tests/test-fprintf-posix.h (test_function): Likewise.
50177         * tests/test-printf-posix.h (test_function): Likewise.
50178         * tests/test-fprintf-posix.out: Likewise.
50179
50180 2007-04-10  Bruno Haible  <bruno@clisp.org>
50181
50182         * modules/locale-tests: New file.
50183         * tests/test-locale.c: New file.
50184
50185         * modules/locale: New file.
50186         * lib/locale_.h: New file.
50187         * m4/locale_h.m4: New file.
50188
50189 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
50190             Bruno Haible  <bruno@clisp.org>
50191
50192         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
50193         be determined, test for availability of the copysignf, copysign,
50194         copysignl functions.
50195         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
50196         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
50197         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
50198
50199 2007-04-09  Eric Blake  <ebb9@byu.net>
50200
50201         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
50202         * modules/stdio (Makefile.am): Support fflush.
50203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50204         * modules/fflush: New file.
50205         * lib/fflush.c: Likewise.
50206         * m4/fflush.m4: Likewise.
50207         * modules/fflush-tests: New test.
50208         * tests/test-fflush.c: Likewise.
50209         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
50210
50211 2007-04-06  Bruno Haible  <bruno@clisp.org>
50212
50213         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
50214         (VASNPRINTF): Use signbit for faster determination whether to print a
50215         minus sign.
50216         * modules/vasnprintf (Files): Remove lib/float+.h.
50217         * modules/fprintf-posix (Depends-on): Add signbit.
50218         * modules/snprintf-posix (Depends-on): Likewise.
50219         * modules/sprintf-posix (Depends-on): Likewise.
50220         * modules/vasnprintf-posix (Depends-on): Likewise.
50221         * modules/vasprintf-posix (Depends-on): Likewise.
50222         * modules/vfprintf-posix (Depends-on): Likewise.
50223         * modules/vsnprintf-posix (Depends-on): Likewise.
50224         * modules/vsprintf-posix (Depends-on): Likewise.
50225
50226 2007-04-06  Bruno Haible  <bruno@clisp.org>
50227
50228         * tests/test-frexp.c (main): Test also the sign bit of zero results.
50229         * tests/test-frexpl.c (main): Likewise.
50230         * tests/test-ldexpl.c (main): Likewise.
50231         * modules/frexp-tests (Depends-on): Add signbit.
50232         * modules/frexpl-tests (Depdends-on): Likewise.
50233         * modules/ldexpl-tests (Depdends-on): Likewise.
50234
50235 2007-04-06  Bruno Haible  <bruno@clisp.org>
50236
50237         * modules/signbit-tests: New file.
50238         * tests/test-signbit.c: New file.
50239
50240         * modules/signbit: New file.
50241         * lib/signbitf.c: New file.
50242         * lib/signbitd.c: New file.
50243         * lib/signbitl.c: New file.
50244         * m4/signbit.m4: New file.
50245         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
50246         (signbit): New macro.
50247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
50248         REPLACE_SIGNBIT.
50249         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
50250         REPLACE_FREXPL into math.h.
50251
50252 2007-04-06  Bruno Haible  <bruno@clisp.org>
50253
50254         * modules/isnanf-nolibm-tests: New file.
50255         * tests/test-isnanf.c: New file.
50256
50257         * modules/isnanf-nolibm: New file.
50258         * lib/isnanf.h: New file.
50259         * lib/isnanf.c: New file.
50260         * lib/isnan.c: Consider the USE_FLOAT macro.
50261         * m4/isnanf.m4: New file.
50262
50263 2007-04-06  Bruno Haible  <bruno@clisp.org>
50264
50265         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
50266         (Link): New section.
50267
50268         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
50269
50270 2007-04-06  Bruno Haible  <bruno@clisp.org>
50271
50272         Assume the 'long double' type.
50273         * m4/longdouble.m4: Remove file.
50274         * config/srclist.txt: Don't mention longdouble.m4.
50275         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
50276         * lib/float+.h: Likewise.
50277         * lib/frexp.c: Likewise.
50278         * lib/printf-args.h: Likewise.
50279         * lib/printf-args.c: Likewise.
50280         * lib/printf-frexp.c: Likewise.
50281         * lib/printf-parse.c: Likewise.
50282         * lib/vasnprintf.c: Likewise.
50283         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
50284         * m4/intl.m4: Likewise.
50285         * m4/isnanl.m4: Likewise.
50286         * m4/printf.m4: Likewise.
50287         * m4/printf-frexpl.m4: Likewise.
50288         * m4/vasnprintf.m4: Likewise.
50289         * modules/allocsa (Files): Remove m4/longdouble.m4.
50290         * modules/gettext (Files): Likewise.
50291         * modules/relocatable-prog-wrapper (Files): Likewise.
50292         * modules/vasnprintf (Files): Likewise.
50293         * modules/isnanl (Files): Likewise.
50294         (Include): Simplify.
50295         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
50296         (Include): Simplify.
50297         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
50298         (Include): Simplify.
50299         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
50300         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50301         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
50302         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50303         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50304         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50305         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
50306         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50307         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50308         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50309         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
50310         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50311         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
50312         * tests/test-isnanl.c: Likewise.
50313         * tests/test-snprintf-posix.h: Likewise.
50314         * tests/test-sprintf-posix.h: Likewise.
50315         * tests/test-vasnprintf-posix.c: Likewise.
50316         * tests/test-vasnprintf-posix2.c: Likewise.
50317         * tests/test-vasprintf-posix.c: Likewise.
50318
50319 2007-04-06  Bruno Haible  <bruno@clisp.org>
50320
50321         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
50322         * lib/math_.h [__DECC]: Include the overridden include file through
50323         #include_next, outside the double-inclusion guard.
50324         * lib/stdio_.h [__DECC]: Likewise.
50325         * lib/stdlib_.h [__DECC]: Likewise.
50326         * lib/string_.h [__DECC]: Likewise.
50327         * lib/time_.h [__DECC]: Likewise.
50328         * lib/wchar_.h [__DECC]: Likewise.
50329         * lib/wctype_.h [__DECC]: Likewise.
50330         * lib/inttypes_.h [__DECC]: Likewise.
50331         Reported by Albert Chin <china@thewrittenword.com> in
50332         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
50333
50334 2007-04-04  Eric Blake  <ebb9@byu.net>
50335
50336         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
50337         1.5.x.
50338
50339 2007-04-04  Bruno Haible  <bruno@clisp.org>
50340
50341         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
50342         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
50343
50344 2007-04-04  Bruno Haible  <bruno@clisp.org>
50345
50346         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
50347         results for "%010a" of Infinity and NaN.
50348         * tests/test-vasprintf-posix.c (test_function): Likewise.
50349         * tests/test-snprintf-posix.h (test_function): Likewise.
50350         * tests/test-sprintf-posix.h (test_function): Likewise.
50351         * tests/test-fprintf-posix.h (test_function): Remove these tests.
50352         * tests/test-printf-posix.h (test_function): Likewise.
50353         * tests/test-fprintf-posix.out: Update.
50354         Needed for FreeBSD 6.1.
50355
50356 2007-04-04  Bruno Haible  <bruno@clisp.org>
50357
50358         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
50359         directly used by the gnulib modules nor by gnulib-tool.
50360
50361 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50362
50363         * DEPENDENCIES: Give overall description of version dependency
50364         desirability.  Use more-typical names for apps.
50365         Add shell, coreutils, diffutils, grep, tar, gzip.
50366
50367 2007-04-04  Simon Josefsson  <simon@josefsson.org>
50368
50369         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
50370
50371 2007-04-04  Karl Berry  <karl@gnu.org>
50372
50373         * MODULES.html.sh (func_module): missing '.
50374
50375 2007-04-03  Bruno Haible  <bruno@clisp.org>
50376
50377         * modules/argmatch-tests (Makefile.am): New variable
50378         test_argmatch_LDADD.
50379         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
50380         * modules/array-list-tests (Makefile.am): New variable
50381         test_array_list_LDADD.
50382         * modules/array-oset-tests (Makefile.am): New variable
50383         test_array_oset_LDADD.
50384         * modules/avltree-list-tests (Makefile.am): New variable
50385         test_avltree_list_LDADD.
50386         * modules/avltree-oset-tests (Makefile.am): New variable
50387         test_avltree_oset_LDADD.
50388         * modules/avltreehash-list-tests (Makefile.am): New variable
50389         test_avltreehash_list_LDADD.
50390         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
50391         test_canonicalize_lgpl_LDADD.
50392         * modules/carray-list-tests (Makefile.am): New variable
50393         test_carray_list_LDADD.
50394         * modules/dirname-tests (Makefile.am): New variable
50395         test_dirname_LDADD.
50396         * modules/linked-list-tests (Makefile.am): New variable
50397         test_linked_list_LDADD.
50398         * modules/linkedhash-list-tests (Makefile.am): New variable
50399         test_linkedhash_list_LDADD.
50400         * modules/rbtree-list-tests (Makefile.am): New variable
50401         test_rbtree_list_LDADD.
50402         * modules/rbtree-oset-tests (Makefile.am): New variable
50403         test_rbtree_oset_LDADD.
50404         * modules/rbtreehash-list-tests (Makefile.am): New variable
50405         test_rbtreehash_list_LDADD.
50406         * modules/xvasprintf-tests (Makefile.am): New variable
50407         test_xvasprintf_LDADD.
50408         Reported by Eric Blake.
50409
50410 2007-04-03  Eric Blake  <ebb9@byu.net>
50411
50412         * DEPENDENCIES: Weaken m4 requirements.
50413
50414 2007-04-03  Bruno Haible  <bruno@clisp.org>
50415
50416         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
50417         * modules/isnanl-tests (configure.ac): Likewise.
50418
50419 2007-04-03  Ben Pfaff  <blp@gnu.org>
50420
50421         * modules/iconv_open: Add $(srcdir)/ to source directory
50422         references in Makefile fragments that call gperf, to fix VPATH
50423         builds.
50424
50425 2007-04-03  Bruno Haible  <bruno@clisp.org>
50426
50427         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
50428         * lib/ldexpl.c: Undo last change.
50429
50430 2007-04-03  Bruno Haible  <bruno@clisp.org>
50431
50432         * modules/printf-frexpl (Depends-on): Undo last change.
50433         (Files): Add m4/ldexpl.m4.
50434
50435 2007-04-03  Bruno Haible  <bruno@clisp.org>
50436
50437         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
50438         * modules/isnanl (Link): New section.
50439
50440         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
50441         * modules/frexp (Link): New section.
50442
50443         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
50444         * modules/frexpl (Link): New section.
50445
50446         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
50447         * modules/ldexpl (Link): New section.
50448
50449 2007-04-03  Bruno Haible  <bruno@clisp.org>
50450
50451         * modules/TEMPLATE-EXTENDED: New file.
50452         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
50453
50454 2007-04-03  Bruno Haible  <bruno@clisp.org>
50455
50456         * DEPENDENCIES: New file.
50457         Suggested by Simon Josefsson.
50458
50459 2007-04-03  Bruno Haible  <bruno@clisp.org>
50460
50461         * doc/gnulib.texi: Escape @.
50462
50463 2007-04-03  James Youngman  <jay@gnu.org>
50464         and Paul Eggert  <eggert@cs.ucla.edu>
50465
50466         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
50467         birthtime on all systems that have birthtime, not just those which
50468         use st_birthtimensec rather than st_birthtim.  Putting zero in
50469         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
50470         that the birth time is not available for files on an NFS mount.
50471
50472 2007-04-03  Simon Josefsson  <simon@josefsson.org>
50473
50474         * modules/memxor: Move back from crypto/, suggested by Bruno.
50475         * modules/crypto/hmac-sha1: Fix memxor dependency.
50476
50477         * modules/crypto/gc: Moved from ../.
50478
50479 2007-04-02  Eric Blake  <ebb9@byu.net>
50480
50481         * lib/ldexpl.c (includes): Avoid libm.
50482
50483         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
50484
50485 2007-04-02  Bruno Haible  <bruno@clisp.org>
50486
50487         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
50488         on IRIX.
50489
50490 2007-04-02  Bruno Haible  <bruno@clisp.org>
50491
50492         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
50493         x86 or x86_64 platforms running MacOS X.
50494         Reported by Ryan Schmidt <@ryandesign.com>.
50495
50496 2007-04-02  Bruno Haible  <bruno@clisp.org>
50497
50498         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
50499         i386.
50500
50501 2007-04-01  Simon Josefsson  <simon@josefsson.org>
50502
50503         * modules/crypto/arcfour: Moved from ../.
50504         * modules/crypto/arcfour-tests: Moved from ../.
50505         * modules/crypto/arctwo: Moved from ../.
50506         * modules/crypto/arctwo-tests: Moved from ../.
50507         * modules/crypto/des: Moved from ../.
50508         * modules/crypto/des-tests: Moved from ../.
50509         * modules/crypto/gc-arcfour: Moved from ../.
50510         * modules/crypto/gc-arcfour-tests: Moved from ../.
50511         * modules/crypto/gc-arctwo: Moved from ../.
50512         * modules/crypto/gc-arctwo-tests: Moved from ../.
50513         * modules/crypto/gc-des: Moved from ../.
50514         * modules/crypto/gc-des-tests: Moved from ../.
50515         * modules/crypto/gc-hmac-md5: Moved from ../.
50516         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
50517         * modules/crypto/gc-hmac-sha1: Moved from ../.
50518         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
50519         * modules/crypto/gc-md2: Moved from ../.
50520         * modules/crypto/gc-md2-tests: Moved from ../.
50521         * modules/crypto/gc-md4: Moved from ../.
50522         * modules/crypto/gc-md4-tests: Moved from ../.
50523         * modules/crypto/gc-md5: Moved from ../.
50524         * modules/crypto/gc-md5-tests: Moved from ../.
50525         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
50526         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
50527         * modules/crypto/gc-random: Moved from ../.
50528         * modules/crypto/gc-rijndael: Moved from ../.
50529         * modules/crypto/gc-rijndael-tests: Moved from ../.
50530         * modules/crypto/gc-sha1: Moved from ../.
50531         * modules/crypto/gc-sha1-tests: Moved from ../.
50532         * modules/crypto/gc-tests: Moved from ../.
50533         * modules/crypto/hmac-md5: Moved from ../.
50534         * modules/crypto/hmac-md5-tests: Moved from ../.
50535         * modules/crypto/hmac-sha1: Moved from ../.
50536         * modules/crypto/hmac-sha1-tests: Moved from ../.
50537         * modules/crypto/md2: Moved from ../.
50538         * modules/crypto/md2-tests: Moved from ../.
50539         * modules/crypto/md4: Moved from ../.
50540         * modules/crypto/md4-tests: Moved from ../.
50541         * modules/crypto/md5: Moved from ../.
50542         * modules/crypto/md5-tests: Moved from ../.
50543         * modules/crypto/memxor: Moved from ../.
50544         * modules/crypto/rijndael: Moved from ../.
50545         * modules/crypto/rijndael-tests: Moved from ../.
50546         * modules/crypto/sha1: Moved from ../.
50547
50548 2007-03-30  James Youngman  <jay@gnu.org>
50549
50550         * tests/test-stat-time.c (prepare_test): use chmod() rather than
50551         rename() to change the ctime of a file (because ctime is unaffected
50552         by rename on jfs2 on AIX 5.1).
50553         (main): Start by doing cleanup, in case a previous run failed leaving
50554         test files behind.
50555
50556 2007-03-31  Bruno Haible  <bruno@clisp.org>
50557
50558         Support old proprietary implementations of iconv.
50559         * modules/iconv_open: New file.
50560         * lib/iconv_.h: New file.
50561         * m4/iconv_h.m4: New file.
50562         * lib/iconv_open.c: New file.
50563         * lib/iconv_open-aix.gperf: New file.
50564         * lib/iconv_open-hpux.gperf: New file.
50565         * lib/iconv_open-irix.gperf: New file.
50566         * lib/iconv_open-osf.gperf: New file.
50567         * m4/iconv_open.m4: New file.
50568         * modules/linebreak (Depends-on): Add iconv_open.
50569         * modules/striconv (Depends-on): Likewise.
50570         * modules/striconveh (Depends-on): Likewise.
50571         * modules/unicodeio (Depends-on): Likewise.
50572         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
50573         (iconv_t)(-1).
50574         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
50575         conversion if cd is (iconv_t)(-1).
50576         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
50577         is not possible.
50578
50579 2007-03-31  Bruno Haible  <bruno@clisp.org>
50580
50581         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50582         work on Solaris either. Protect also second use of "autodetect_jp".
50583
50584 2007-03-31  Bruno Haible  <bruno@clisp.org>
50585
50586         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
50587         the function is not present.
50588
50589 2007-03-31  Bruno Haible  <bruno@clisp.org>
50590
50591         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
50592         the function is not present.
50593
50594 2007-03-31  Bruno Haible  <bruno@clisp.org>
50595
50596         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
50597         a bug in HP-UX iconv_open().
50598
50599 2007-03-31  Bruno Haible  <bruno@clisp.org>
50600
50601         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
50602         (Mathematics <math.h>): New section, add fpieee.
50603         (Input/output <stdio.h>): Add fseterr.
50604         (Mathematics <math.h>): New section, add printf-frexp.
50605         (Container data structures): Add sublist.
50606         (Core language properties): Add fpucw, inline.
50607         (Functions for greatest-width integer types <inttypes.h>): Add
50608         imaxabs, imaxdiv, inttypes.
50609         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
50610         isnanl-nolibm, ldexp.
50611         (Mathematics <math.h>): New section, add printf-frexpl.
50612         (Support for systems lacking POSIX:2001): Add fprintf-posix,
50613         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
50614         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
50615         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
50616         (Unicode string functions): Add unistr/u*-mbtoucr.
50617         (Java): Add javacomp-script, javaexec-script.
50618         (C#): Add csharpcomp-script, csharpexec-script.
50619         (Support for building libraries and executables): Add havelib,
50620         relocatable-*.
50621         (Support for maintaining and releasing projects): Renamed from
50622         'Support for maintaining and release projects'. Add announce-gen.
50623
50624 2007-03-31  Bruno Haible  <bruno@clisp.org>
50625
50626         * README: Talk primarily about git.
50627         (git and CVS): Renamed from CVS.
50628         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
50629         gnulib is available through git.
50630         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
50631
50632 2007-03-30  Bruno Haible  <bruno@clisp.org>
50633
50634         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
50635         * lib/poll_.h: Likewise.
50636         * lib/stat_.h: Likewise.
50637         * lib/sys_time_.h: Likewise.
50638         * lib/sysexit_.h: Likewise.
50639         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
50640         * lib/stdbool_.h: Likewise.
50641         * lib/byteswap_.h: Add double-inclusion guard.
50642
50643 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
50644
50645         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
50646
50647 2007-03-30  Karl Berry  <karl@gnu.org>
50648
50649         * config/srclist-update: double space after USA in the license
50650         substitution, since that's how it's usually (?) written.
50651
50652 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50653
50654         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
50655         reported by Bruno Haible.
50656
50657 2007-03-29  Bruno Haible  <bruno@clisp.org>
50658
50659         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
50660         a bug in AIX iconv().
50661
50662 2007-03-29  Bruno Haible  <bruno@clisp.org>
50663
50664         * modules/ldexpl-tests: New file.
50665         * tests/test-ldexpl.c: New file.
50666
50667 2007-03-29  Bruno Haible  <bruno@clisp.org>
50668
50669         * lib/ldexpl.c: Include fpucw.h.
50670         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
50671         multiplication.
50672         * modules/ldexpl (Depends-on): Add fpucw.
50673
50674 2007-03-29  Bruno Haible  <bruno@clisp.org>
50675
50676         * modules/ldexpl: New file.
50677         * m4/ldexpl.m4: New file.
50678         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
50679         set.
50680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
50681         REPLACE_LDEXPL.
50682         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
50683         REPLACE_LDEXPL.
50684         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50685         gl_FUNC_LDEXPL_WORKS.
50686         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
50687         * modules/mathl (Files): Remove lib/ldexpl.c.
50688         (Depends-on): Add ldexpl.
50689
50690 2007-03-29  Bruno Haible  <bruno@clisp.org>
50691
50692         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
50693
50694 2007-03-29  Bruno Haible  <bruno@clisp.org>
50695
50696         * tests/test-striconveh.c (main): Don't assume that a direct conversion
50697         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
50698         and possibly also HP-UX.
50699         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50700         work on AIX, IRIX, HP-UX, OSF/1.
50701         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
50702         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
50703         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
50704         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
50705         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
50706         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
50707
50708 2007-03-29  Bruno Haible  <bruno@clisp.org>
50709
50710         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
50711
50712 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50713
50714         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
50715         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
50716
50717 2007-03-29  Eric Blake  <ebb9@byu.net>
50718
50719         * lib/acl-internal.h: Remove redundant include.
50720         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
50721         Cygwin when a file is locked.
50722
50723 2007-03-29  Bruno Haible  <bruno@clisp.org>
50724
50725         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
50726         file.
50727         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
50728
50729 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50730
50731         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
50732         try to remove a parent directory if the child couldn't be removed
50733         (except for the first rmdir, which could fail because the child
50734         doesn't exist).  Problem reported by Jeff Blaine in
50735         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
50736
50737 2007-03-28  Bruno Haible  <bruno@clisp.org>
50738
50739         * lib/striconveh.c (utf8conv_carefully): New function.
50740         (mem_cd_iconveh_internal): Invoke it.
50741
50742 2007-03-28  Bruno Haible  <bruno@clisp.org>
50743
50744         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
50745         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
50746         input.
50747         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
50748         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
50749         unistr/u8-uctomb.
50750
50751 2007-03-28  Bruno Haible  <bruno@clisp.org>
50752
50753         * modules/unistr/u8-mbtoucr: New file.
50754         * lib/unistr/u8-mbtoucr.c: New file.
50755         * modules/unistr/u16-mbtoucr: New file.
50756         * lib/unistr/u16-mbtoucr.c: New file.
50757         * modules/unistr/u16-mbtoucr: New file.
50758         * lib/unistr/u16-mbtoucr.c: New file.
50759         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
50760
50761 2007-03-27  Simon Josefsson  <simon@josefsson.org>
50762             Bruno Haible  <bruno@clisp.org>
50763
50764         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
50765         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
50766         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
50767
50768         * m4/stdio_h.m4: Add stubs for vasprintf too.
50769
50770         * modules/stdio: Support vasprintf in sed command.
50771
50772         * modules/vasprintf: Depend on stdio for prototypes.  Remove
50773         vasprintf.h.  Add stdio module indicator.
50774
50775         * lib/stdio_.h: Declare asprintf and vasprintf, based on
50776         vasprintf.h.
50777
50778         * lib/vasprintf.h: File removed.
50779
50780         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
50781         * lib/vasprintf.c: Ditto.
50782         * lib/xvasprintf.c: Ditto.
50783         * tests/test-vasprintf-posix.c: Ditto.
50784         * tests/test-vasprintf.c: Ditto.
50785
50786 2007-03-27  Bruno Haible  <bruno@clisp.org>
50787
50788         Make vasnprintf multithread-safe.
50789         * lib/vasnprintf.c (decimal_point_char): New function.
50790         (VASNPRINTF): Use it.
50791         Suggested by Simon Josefsson.
50792
50793 2007-03-27  Eric Blake  <ebb9@byu.net>
50794
50795         Support sub-second birthtime on cygwin.
50796         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
50797         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
50798         (get_stat_birthtime): Also work with st_birthtim.
50799
50800 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
50801
50802         * lib/stat-time.h (USE_BIRTHTIME): Remove.
50803         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
50804         (get_stat_birthtime_ns): Do not try to use "spare" fields.
50805         (get_stat_birthtime_ns): Simplify compile-time tests.
50806         (get_stat_birthtime): Change the API to look like
50807         get_stat_mtime etc., except return a negative tv_nsec on error.
50808         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
50809         Don't check for "spare" fields.
50810         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
50811         or for struct stat.st_birthtime, as these tests aren't used.
50812         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
50813
50814 2007-03-27  Bruno Haible  <bruno@clisp.org>
50815
50816         * lib/stat-time.h: Include <sys/stat.h>.
50817
50818 2007-03-27  James Youngman  <jay@gnu.org>
50819
50820         * lib/stat-time.h (get_stat_birthtime): New function for
50821           retrieving st_birthtime as provided by UFS2 (hence *BSD).
50822         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
50823           and its variants.
50824         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
50825         * modules/stat-time-test: New file.
50826         * tests/test-stat-time.c: New test, devised by Bruno Haible.
50827
50828 2007-03-26  Bruno Haible  <bruno@clisp.org>
50829
50830         Better support of signalling NaNs.
50831         * lib/atanl.c: Include isnanl.h.
50832         (atanl): Perform test for NaN at the beginning of the function and
50833         through a call to isnanl.
50834         * lib/cosl.c: Include isnanl.h.
50835         (cosl): Perform test for NaN at the beginning of the function and
50836         through a call to isnanl.
50837         * lib/ldexpl.c: Include isnanl.h.
50838         (ldexpl): Perform test for NaN through a call to isnanl.
50839         * lib/logl.c: Include isnanl.h.
50840         (logl): Perform test for NaN at the beginning of the function and
50841         through a call to isnanl.
50842         * lib/sinl.c: Include isnanl.h.
50843         (sinl): Perform test for NaN at the beginning of the function and
50844         through a call to isnanl.
50845         * lib/sqrtl.c: Include isnanl.h.
50846         (sqrtl): Perform test for NaN at the beginning of the function and
50847         through a call to isnanl.
50848         * lib/tanl.c: Include isnanl.h.
50849         (tanl): Perform test for NaN at the beginning of the function and
50850         through a call to isnanl.
50851         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
50852         * modules/mathl (Depends-on): Add isnanl.
50853
50854 2007-03-26  Eric Blake  <ebb9@byu.net>
50855
50856         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
50857         regression in logic sense of previous patch.
50858
50859 2007-03-26  Bruno Haible  <bruno@clisp.org>
50860
50861         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
50862         unportable shell command "if ! ...".
50863         Reported by Ralf Wildenhues.
50864
50865 2007-03-25  Bruno Haible  <bruno@clisp.org>
50866
50867         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
50868         <sysexits.h> file, and only add EX_CONFIG.
50869         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
50870         absolute file name and whether it is sufficient. Substitute also
50871         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
50872         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
50873         ABSOLUTE_SYSEXITS_H into sysexits.h.
50874
50875 2007-03-25  Bruno Haible  <bruno@clisp.org>
50876
50877         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
50878         hints is NULL.
50879
50880 2007-03-25  Bruno Haible  <bruno@clisp.org>
50881
50882         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
50883         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
50884
50885 2007-03-25  Bruno Haible  <bruno@clisp.org>
50886
50887         * lib/vasnprintf.c: Include langinfo.h.
50888         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
50889         multithread-safe.
50890         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
50891         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
50892         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50893         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50894         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50895         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50896         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50897         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
50898         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50899         Reported by Simon Josefsson.
50900
50901 2007-03-25  Bruno Haible  <bruno@clisp.org>
50902
50903         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50904         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
50905         * modules/vasnprintf (Depends-on): Add stdint.
50906
50907 2007-03-25  Bruno Haible  <bruno@clisp.org>
50908
50909         * modules/fpieee: New file.
50910         * m4/fpieee.m4: New file.
50911         * modules/isnan-nolibm (Depends-on): Add fpieee.
50912         * modules/isnanl-nolibm (Depends-on): Add fpieee.
50913         * modules/isnanl (Depends-on): Add fpieee.
50914
50915 2007-03-25  Bruno Haible  <bruno@clisp.org>
50916
50917         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
50918
50919 2007-03-25  Bruno Haible  <bruno@clisp.org>
50920
50921         Avoid test failures on IRIX 6.5.
50922         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
50923         (main): Use it.
50924         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
50925         macros.
50926         (main): Use them.
50927
50928 2007-03-25  Bruno Haible  <bruno@clisp.org>
50929
50930         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
50931         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
50932         exists but doesn't work.
50933         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
50934         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
50935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
50936         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
50937         math.h.
50938
50939 2007-03-25  Bruno Haible  <bruno@clisp.org>
50940
50941         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
50942         returns inf. Needed on IRIX 6.5.
50943
50944 2007-03-25  Bruno Haible  <bruno@clisp.org>
50945
50946         * tests/test-frexpl.c: Include isnanl-nolibm.h.
50947         (main): Use isnanl instead of x != x idiom.
50948         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
50949
50950         * tests/test-frexp.c: Include isnan.h.
50951         (main): Use isnan instead of x != x idiom.
50952         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
50953
50954 2007-03-25  Bruno Haible  <bruno@clisp.org>
50955
50956         * tests/test-frexp.c (NaN): New function/macro.
50957         (main): Use it instead of 0.0 / 0.0.
50958         * tests/test-isnan.c (NaN): New function/macro.
50959         (main): Use it instead of 0.0 / 0.0.
50960         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
50961         (test_function): Use it instead of 0.0 / 0.0.
50962         * tests/test-vasprintf-posix.c (NaN): New function/macro.
50963         (test_function): Use it instead of 0.0 / 0.0.
50964         * tests/test-snprintf-posix.h (NaN): New function/macro.
50965         (test_function): Use it instead of 0.0 / 0.0.
50966         * tests/test-sprintf-posix.h (NaN): New function/macro.
50967         (test_function): Use it instead of 0.0 / 0.0.
50968         * tests/test-fprintf-posix.h (NaN): New function/macro.
50969         (test_function): Use it instead of 0.0 / 0.0.
50970         * tests/test-printf-posix.h (NaN): New function/macro.
50971         (test_function): Use it instead of 0.0 / 0.0.
50972
50973         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
50974
50975 2007-03-25  Bruno Haible  <bruno@clisp.org>
50976
50977         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
50978
50979 2007-03-25  Bruno Haible  <bruno@clisp.org>
50980
50981         * lib/regexec.c (merge_state_with_log): Make static.
50982
50983 2007-03-25  Bruno Haible  <bruno@clisp.org>
50984
50985         * lib/trigl.c (kernel_rem_pio2): Make static.
50986
50987 2007-03-25  Bruno Haible  <bruno@clisp.org>
50988
50989         * lib/sincosl.c (sincosl_table): Make static.
50990
50991 2007-03-25  Bruno Haible  <bruno@clisp.org>
50992
50993         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
50994         if the compiler does not support C99.
50995
50996 2007-03-25  Bruno Haible  <bruno@clisp.org>
50997
50998         * modules/time (Makefile.am): Ensure all rule action lines start with a
50999         tab.
51000
51001 2007-03-24  Bruno Haible  <bruno@clisp.org>
51002
51003         * modules/tsearch-tests: New file.
51004         * tests/test-tsearch.sh: New file.
51005         * tests/test-tsearch.c: New file, mostly copied from glibc.
51006
51007         * modules/search-tests: New file.
51008         * tests/test-search.c: New file.
51009
51010         * modules/search: New file.
51011         * lib/search_.h: New file, incorporating lib/tsearch.h.
51012         * m4/search_h.m4: New file.
51013         * lib/tsearch.h: Remove file.
51014         * lib/tsearch.c: Include search.h instead of tsearch.h.
51015         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
51016         HAVE_TSEARCH.
51017         * modules/tsearch (Files): Remove lib/tsearch.h.
51018         (Depends-on): Add search.
51019         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
51020         (Include): Change tsearch.h into search.h.
51021
51022 2007-03-24  Bruno Haible  <bruno@clisp.org>
51023
51024         * modules/fpucw: New file.
51025         * lib/fpucw.h: New file.
51026         * lib/frexp.c: Include fpucw.h.
51027         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51028         (FUNC): Use them.
51029         * lib/printf-frexp.c: Include fpucw.h.
51030         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51031         (FUNC): Use them.
51032         * lib/vasnprintf.c: Include fpucw.h.
51033         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
51034         'long double' calculations.
51035         * tests/test-frexpl.c: Include fpucw.h.
51036         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51037         * tests/test-printf-frexpl.c: Include fpucw.h.
51038         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51039         * modules/frexpl (Depends-on): Add fpucw.
51040         * modules/printf-frexpl (Depends-on): Likewise.
51041         * modules/fprintf-posix (Depends-on): Likewise.
51042         * modules/snprintf-posix (Depends-on): Likewise.
51043         * modules/sprintf-posix (Depends-on): Likewise.
51044         * modules/vasnprintf-posix (Depends-on): Likewise.
51045         * modules/vasprintf-posix (Depends-on): Likewise.
51046         * modules/vfprintf-posix (Depends-on): Likewise.
51047         * modules/vsnprintf-posix (Depends-on): Likewise.
51048         * modules/vsprintf-posix (Depends-on): Likewise.
51049         * modules/frexpl-tests (Depends-on): Likewise.
51050         * modules/printf-frexpl-tests (Depends-on): Likewise.
51051
51052 2007-03-24  Bruno Haible  <bruno@clisp.org>
51053
51054         * lib/float+.h: New file.
51055         * lib/isnan.c: Include float+.h.
51056         (SIZE): New macro.
51057         (FUNC): Compare only SIZE bytes of the value.
51058         * lib/vasnprintf.c: Include float+.h.
51059         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
51060         SIZEOF_LDBL or SIZEOF_DBL bytes.
51061         * modules/isnan-nolibm (Files): Add lib/float+.h.
51062         * modules/isnanl-nolibm (Files): Add lib/float+.h.
51063         * modules/isnanl (Files): Add lib/float+.h.
51064         * modules/vasnprintf (Files): Add lib/float+.h.
51065
51066 2007-03-24  Bruno Haible  <bruno@clisp.org>
51067
51068         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
51069         include isnanl-nolibm.h.
51070
51071 2007-03-24  Bruno Haible  <bruno@clisp.org>
51072
51073         * tests/test-read-file.c (main): Don't produce spurious output for
51074         expected situations. Make the test fail if it encountered unexpected
51075         results.
51076
51077 2007-03-24  Bruno Haible  <bruno@clisp.org>
51078
51079         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
51080         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
51081
51082 2007-03-24  Bruno Haible  <bruno@clisp.org>
51083
51084         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
51085
51086 2007-03-24  Bruno Haible  <bruno@clisp.org>
51087
51088         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
51089         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
51090
51091         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
51092         * modules/utf8-ucs4: Turn into a symbolic link to module
51093         unistr/u8-mbtouc.
51094
51095         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
51096         utf8-ucs4-unsafe.
51097         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
51098         unistr/u8-mbtouc-unsafe.
51099
51100         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
51101         * modules/utf16-ucs4: Turn into a symbolic link to module
51102         unistr/u16-mbtouc.
51103
51104         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
51105         utf16-ucs4-unsafe.
51106         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
51107         unistr/u16-mbtouc-unsafe.
51108
51109         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
51110         * modules/ucs4-utf8: Turn into a symbolic link to module
51111         unistr/u8-ubtomb.
51112
51113         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
51114         * modules/ucs4-utf16: Turn into a symbolic link to module
51115         unistr/u16-ubtomb.
51116
51117 2007-03-24  Bruno Haible  <bruno@clisp.org>
51118
51119         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
51120         Enable the function only if HAVE_INLINE.
51121         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
51122         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51123         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
51124         Enable the function only if HAVE_INLINE.
51125         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
51126         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51127         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
51128         Enable the function only if HAVE_INLINE.
51129         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
51130         Enable the function only if HAVE_INLINE.
51131         * modules/utf8-ucs4: Update.
51132         * modules/utf8-ucs4-unsafe: Update.
51133         * modules/utf16-ucs4: Update.
51134         * modules/utf16-ucs4-unsafe: Update.
51135         * modules/ucs4-utf8: Update.
51136         * modules/ucs4-utf16: Update.
51137
51138 2007-03-24  Bruno Haible  <bruno@clisp.org>
51139
51140         * lib/utf8-ucs4.h: Remove file.
51141         * lib/utf8-ucs4-unsafe.h: Remove file.
51142         * lib/utf16-ucs4.h: Remove file.
51143         * lib/utf16-ucs4-unsafe.h: Remove file.
51144         * lib/ucs4-utf8.h: Remove file.
51145         * lib/ucs4-utf16.h: Remove file.
51146         * lib/unistr.h: Include their previous contents.
51147         * m4/utf-ucs4.m4: Remove file.
51148         * m4/ucs4-utf.m4: Remove file.
51149         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
51150         (Depends-on): Add unistr/base.
51151         (configure.ac): Remove gl_UTF_UCS4.
51152         (Makefile.am): Update.
51153         (Include): Change to unistr.h.
51154         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
51155         (Depends-on): Add unistr/base.
51156         (configure.ac): Remove gl_UTF_UCS4.
51157         (Makefile.am): Update.
51158         (Include): Change to unistr.h.
51159         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
51160         (Depends-on): Add unistr/base.
51161         (configure.ac): Remove gl_UTF_UCS4.
51162         (Makefile.am): Update.
51163         (Include): Change to unistr.h.
51164         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
51165         (Depends-on): Add unistr/base.
51166         (configure.ac): Remove gl_UTF_UCS4.
51167         (Makefile.am): Update.
51168         (Include): Change to unistr.h.
51169         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
51170         (Depends-on): Add unistr/base.
51171         (configure.ac): Remove gl_UCS4_UTF.
51172         (Makefile.am): Update.
51173         (Include): Change to unistr.h.
51174         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
51175         (Depends-on): Add unistr/base.
51176         (configure.ac): Remove gl_UCS4_UTF.
51177         (Makefile.am): Update.
51178         (Include): Change to unistr.h.
51179         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
51180         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
51181         utf8-ucs4-unsafe.h.
51182         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
51183         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
51184         utf16-ucs4-unsafe.h.
51185         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
51186         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
51187         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
51188         * lib/unistr/u8-strchr.c: Likewise.
51189         * lib/unistr/u8-strrchr.c: Likewise.
51190         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
51191         * lib/unistr/u16-strchr.c: Likewise.
51192         * lib/unistr/u16-strrchr.c: Likewise.
51193         * lib/striconveh.c: Update.
51194         * lib/linebreak.c: Update.
51195
51196 2007-03-24  Bruno Haible  <bruno@clisp.org>
51197
51198         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
51199         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
51200
51201 2007-03-22  Bruno Haible  <bruno@clisp.org>
51202
51203         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
51204
51205 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51206
51207         * MODULES.html.sh (File system functions): New module write-any-file.
51208         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
51209         * m4/write-any-file.m4: New files.
51210
51211 2007-03-23  Eric Blake  <ebb9@byu.net>
51212
51213         * gnulib-tool: Rearrange space-tab sequences, since some editors
51214         like to eat them.
51215
51216 2007-03-23  Eric Blake  <ebb9@byu.net>
51217
51218         * lib/version-etc.c (version_etc_va): Update license wording to
51219         be more concise.  Recommended by Richard Stallman.
51220
51221 2007-03-22  Bruno Haible  <bruno@clisp.org>
51222
51223         * lib/poll.c (MSG_PEEK): New fallback definition.
51224
51225 2007-03-22  Bruno Haible  <bruno@clisp.org>
51226
51227         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
51228         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
51229         (main): Update.
51230         Fixes a compilation error on BeOS.
51231
51232 2007-03-22  Bruno Haible  <bruno@clisp.org>
51233
51234         * modules/frexpl-tests: New file.
51235         * tests/test-frexpl.c: New file.
51236
51237         * modules/frexpl: New file.
51238         * m4/frexpl.m4: New file.
51239         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
51240         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
51241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
51242         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
51243         (Depends-on): Add frexpl. Remove isnanl-nolibm.
51244         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
51245
51246 2007-03-22  Bruno Haible  <bruno@clisp.org>
51247
51248         * lib/frexpl.c: Share code with lib/frexp.c.
51249         * modules/mathl (Files): Add lib/frexp.c.
51250         (Depends-on): Add isnanl-nolibm.
51251
51252 2007-03-22  Bruno Haible  <bruno@clisp.org>
51253
51254         * modules/printf-frexp (Files): Add m4/frexp.m4.
51255         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
51256         only if the found frexp function actually works.
51257
51258 2007-03-22  Bruno Haible  <bruno@clisp.org>
51259
51260         * lib/frexp.c: Remove older implementation that uses divisions.
51261
51262 2007-03-21  Bruno Haible  <bruno@clisp.org>
51263
51264         * modules/frexp-tests: New file.
51265         * tests/test-frexp.c: New file.
51266
51267         * modules/frexp: New file.
51268         * lib/frexp.c: New file.
51269         * m4/frexp.m4: New file.
51270         * lib/math_.h (frexp): New declaration.
51271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
51272         REPLACE_FREXP.
51273         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
51274
51275 2007-03-21  Bruno Haible  <bruno@clisp.org>
51276
51277         * modules/isnanl-tests: New file.
51278         * tests/test-isnanl.c: New file.
51279
51280         * modules/isnanl: New file.
51281         * lib/isnanl.h: New file.
51282         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
51283         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
51284         gl_FUNC_ISNANL_WORKS.
51285         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
51286         New macros.
51287
51288 2007-03-21  Bruno Haible  <bruno@clisp.org>
51289
51290         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
51291         lib/isnanl.h.
51292         (Include): Update.
51293         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
51294         * lib/vasnprintf.c: Update.
51295         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
51296         tests/test-isnanl.h, remove tests/test-isnanl.c.
51297         (Makefile.am): Update.
51298         * tests/test-isnanl-nolibm.c: New file.
51299         * tests/test-isnanl.h: New file.
51300         * tests/test-isnanl.c: Remove file.
51301
51302 2007-03-21  Jim Meyering  <jim@meyering.net>
51303
51304         When trying to open ".", treat ESTALE like EACCES.
51305         * lib/savewd.c (savewd_save): Resort to forking not just upon
51306         failure with EACCES, but also when errno is ESTALE.
51307
51308 2007-03-20  Bruno Haible  <bruno@clisp.org>
51309
51310         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
51311         Needed on AIX 5.1. Reported by Matthew Woehlke.
51312
51313 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51314
51315         Suggestions by Bruno Haible:
51316         * lib/acl-internal.h: Include "gettext.h" rather than rolling
51317         our own.
51318         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
51319         * modules/acl (Depends-on): Add gettext.
51320
51321 2007-03-19  Bruno Haible  <bruno@clisp.org>
51322
51323         * modules/iconvme: Remove file.
51324         * lib/iconvme.h: Remove file.
51325         * lib/iconvme.c: Remove file.
51326         * m4/iconvme.m4: Remove file.
51327
51328 2007-03-19  Bruno Haible  <bruno@clisp.org>
51329
51330         * doc/relocatable-maint.texi: Break long shell script line.
51331         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51332
51333 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51334
51335         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
51336         handle file_has_acl.
51337         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
51338         * lib/acl.c: Move header inclusions and related macro defns into
51339         lib/acl-internal.h.
51340         (S_ISLNK): Remove defn, since that's now done for us.
51341         (file_has_acl): Move to lib/file-has-acl.c.
51342         Call acl_trivial if available.  This is the crucial part of the fix.
51343         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
51344         shared within the library.  Rewrite a bit, partly to make it compatible
51345         with the GNU coding style.
51346         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
51347         Remove unnecessary double-quotes.
51348         Don't test for acl_to_text; the build will catch that.
51349         Replace acl_entries if it doesn't exist and it is needed.
51350         Check for -lsec and acl_trivial (as used on Solaris 10).
51351         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
51352         lib/file-has-acl.c.
51353         (Depends-on): Add sys_stat, for S_ISLNK.
51354
51355 2007-03-19  Ben Pfaff  <blp@gnu.org>
51356
51357         * doc/gnulib.texi: Fix typos.
51358         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51359
51360 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51361
51362         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
51363         If size is zero here, buf must be zero.
51364
51365 2007-03-19  Simon Josefsson  <simon@josefsson.org>
51366
51367         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
51368         <bruno@clisp.org>.
51369
51370 2007-03-18  Bruno Haible  <bruno@clisp.org>
51371
51372         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
51373         Suggested by Eric Blake.
51374
51375 2007-03-18  Ben Pfaff  <blp@gnu.org>
51376
51377         * doc/relocatable.texi: Recommend using as prefix a directory
51378         that does not exist and will never be created.  Based on
51379         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
51380         and others.
51381
51382 2007-03-17  Bruno Haible  <bruno@clisp.org>
51383
51384         * lib/fchownat.c: Include lchown.h.
51385
51386 2007-03-17  Bruno Haible  <bruno@clisp.org>
51387
51388         Fix endless loop when the given allocated size was > INT_MAX.
51389         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
51390         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
51391         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
51392         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
51393         * lib/sprintf.c (sprintf): Likewise.
51394
51395 2007-03-17  Bruno Haible  <bruno@clisp.org>
51396
51397         * tests/test-argp-2.sh (func_compare): Output a context diff.
51398
51399 2007-03-17  Bruno Haible  <bruno@clisp.org>
51400
51401         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
51402         locale's decimal-point character.
51403
51404 2007-03-17  Bruno Haible  <bruno@clisp.org>
51405
51406         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
51407         before comparing it. Needed because on some platforms (e.g. x86) a
51408         'long double' occupies less bytes than sizeof (long double).
51409
51410 2007-03-17  Bruno Haible  <bruno@clisp.org>
51411
51412         * tests/test-crc.c (main): Make printf statements 64-bit clean.
51413         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
51414         * tests/test-getaddrinfo.c (simple): Likewise.
51415         * tests/test-read-file.c (main): Likewise.
51416
51417 2007-03-17  Bruno Haible  <bruno@clisp.org>
51418
51419         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
51420
51421 2007-03-17  Bruno Haible  <bruno@clisp.org>
51422
51423         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
51424         unused variable.
51425
51426 2007-03-17  Bruno Haible  <bruno@clisp.org>
51427
51428         * tests/test-c-strcasecmp.c: Include c-strcase.h.
51429         * tests/test-c-strncasecmp.c: Likewise.
51430
51431 2007-03-17  Bruno Haible  <bruno@clisp.org>
51432
51433         * modules/stdlib (Depends-on): Add unistd.
51434         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
51435         Needed for MacOS X 10.3.
51436
51437 2007-03-17  Bruno Haible  <bruno@clisp.org>
51438
51439         * lib/unistr/u-strdup.h: Include <stdlib.h>.
51440
51441 2007-03-17  Bruno Haible  <bruno@clisp.org>
51442
51443         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
51444
51445 2007-03-17  Bruno Haible  <bruno@clisp.org>
51446
51447         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
51448         to reflect files copied from gnulib (with or without modifications).
51449         Suggested by Jim Meyering.
51450
51451 2007-03-17  Eric Blake  <ebb9@byu.net>
51452
51453         * NEWS: Document stdlib change from 2007-02-18.
51454
51455 2007-03-17  Jim Meyering  <jim@meyering.net>
51456
51457         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
51458         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
51459         someone uses a name containing shell meta-characters.
51460         Reported by Alfred M. Szmidt.
51461
51462         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
51463
51464 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51465
51466         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
51467         and copy gettext configuration files only if configure.ac contains
51468         a use of AM_GNU_GETTEXT_VERSION.
51469
51470 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51471
51472         * build-aux/bootstrap (gnulib_name): New variable.
51473         (gnulib_tool_options): Use it.
51474
51475 2007-03-13  Simon Josefsson  <simon@josefsson.org>
51476
51477         * tests/test-des.c: Use new namespace.
51478
51479 2007-03-15  Bruno Haible  <bruno@clisp.org>
51480
51481         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
51482         Reported by James Youngman <jay@gnu.org>.
51483
51484 2007-03-15  Bruno Haible  <bruno@clisp.org>
51485
51486         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
51487         declared prototype. Needed with cc on OSF/1 5.1.
51488
51489 2007-03-15  Bruno Haible  <bruno@clisp.org>
51490
51491         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
51492         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
51493         (struct gl_list_implementation): Add dispose_fn argument to the
51494         'create_empty', 'create' methods.
51495         (struct gl_list_impl_base): Add field 'dispose_fn'.
51496         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
51497         argument.
51498         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
51499         dispose_fn argument.
51500         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
51501         dispose_fn on the dropped values.
51502         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
51503         dispose_fn argument.
51504         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
51505         dropped values.
51506         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
51507         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51508         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
51509         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51510         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
51511         argument.
51512         (gl_tree_list_free): Call dispose_fn on the dropped values.
51513         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
51514         the dropped values.
51515         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51516         Add dispose_fn argument.
51517         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
51518         Call dispose_fn on the dropped values.
51519         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
51520         Add dispose_fn argument.
51521         (gl_sublist_create): Initialize the 'dispose_fn' field.
51522         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
51523         * tests/test-array_list.c (main): Update.
51524         * tests/test-carray_list.c (main): Update.
51525         * tests/test-avltree_list.c (main): Update.
51526         * tests/test-rbtree_list.c (main): Update.
51527         * tests/test-avltreehash_list.c (main): Update.
51528         * tests/test-rbtreehash_list.c (main): Update.
51529         * tests/test-linked_list.c (main): Update.
51530         * tests/test-linkedhash_list.c (main): Update.
51531         * tests/test-array_oset.c (main): Update.
51532
51533 2007-03-15  Bruno Haible  <bruno@clisp.org>
51534
51535         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
51536         (gl_oset_create_empty): Add dispose_fn argument.
51537         (struct gl_oset_implementation): Add dispose_fn argument to
51538         'create_empty' method.
51539         (struct gl_oset_impl_base): Add dispose_fn field.
51540         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
51541         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
51542         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
51543         values.
51544         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
51545         (gl_tree_oset_free): Call dispose_fn on the dropped values.
51546         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51547         dropped value.
51548         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51549         dropped value.
51550         * tests/test-array_oset.c (main): Update.
51551         * tests/test-avltree_oset.c (main): Update.
51552         * tests/test-rbtree_oset.c (main): Update.
51553         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
51554
51555 2007-03-13  Bruno Haible  <bruno@clisp.org>
51556
51557         * tests/test-stdbool.c (i): Update after last patch.
51558
51559 2007-03-12  Bruno Haible  <bruno@clisp.org>
51560
51561         * lib/quotearg.c: Include <wctype.h> early, before the definition of
51562         the iswprint macro. Needed on Solaris 2.5.1.
51563
51564 2007-03-12  Bruno Haible  <bruno@clisp.org>
51565
51566         * tests/test-printf-frexp.c (main): Declare x as volatile.
51567
51568 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51569
51570         * doc/gnulib.texi (Build robot for gnulib): New section.
51571
51572 2007-03-12  Jim Meyering  <jim@meyering.net>
51573
51574         * build-aux/bootstrap: New file.
51575         * build-aux/bootstrap.conf: New file, from coreutils.
51576
51577 2007-03-11  Bruno Haible  <bruno@clisp.org>
51578
51579         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
51580
51581 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51582
51583         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
51584         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
51585         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
51586
51587 2007-03-11  Bruno Haible  <bruno@clisp.org>
51588
51589         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
51590         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
51591
51592 2007-03-11  Bruno Haible  <bruno@clisp.org>
51593
51594         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
51595         formula. Needed for SunPRO C 5.0.
51596
51597 2007-03-11  Bruno Haible  <bruno@clisp.org>
51598
51599         * modules/long-options (Depends-on): Add getopt.
51600
51601 2007-03-11  Bruno Haible  <bruno@clisp.org>
51602
51603         * modules/modechange (Depends-on): Add stdbool.
51604
51605 2007-03-11  Bruno Haible  <bruno@clisp.org>
51606
51607         * modules/i-ring (Depends-on): Add stdbool.
51608
51609 2007-03-11  Bruno Haible  <bruno@clisp.org>
51610
51611         * modules/gc-des (Depends-on): Add stdbool.
51612
51613 2007-03-11  Bruno Haible  <bruno@clisp.org>
51614
51615         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
51616
51617 2007-03-11  Bruno Haible  <bruno@clisp.org>
51618
51619         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
51620
51621 2007-03-11  Bruno Haible  <bruno@clisp.org>
51622
51623         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
51624
51625 2007-03-11  Bruno Haible  <bruno@clisp.org>
51626
51627         * lib/vasnprintf.c (sprintf): Undefine.
51628
51629 2007-03-11  Bruno Haible  <bruno@clisp.org>
51630
51631         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
51632         initializers in SunPRO C and Compaq C compilers.
51633
51634 2007-03-11  Bruno Haible  <bruno@clisp.org>
51635
51636         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
51637         decrementing code ANSI C compliant.
51638
51639 2007-03-11  Bruno Haible  <bruno@clisp.org>
51640
51641         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
51642         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
51643
51644 2007-03-11  Bruno Haible  <bruno@clisp.org>
51645
51646         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
51647         <stdbool.h> substitute doesn't pass.
51648
51649 2007-03-11  Bruno Haible  <bruno@clisp.org>
51650
51651         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
51652
51653 2007-03-11  Bruno Haible  <bruno@clisp.org>
51654
51655         * gnulib-tool (func_create_megatestdir): Create also an autobuild
51656         script, for submission to autobuild.josefsson.org.
51657
51658 2007-03-10  Bruno Haible  <bruno@clisp.org>
51659
51660         * modules/canonicalize-lgpl-tests: New file.
51661         * tests/test-canonicalize-lgpl.sh: New file.
51662         * tests/test-canonicalize-lgpl.c: New file.
51663
51664         * modules/c-strcase-tests: New file.
51665         * tests/test-c-strcase.sh: New file.
51666         * tests/test-c-strcasecmp.c: New file.
51667         * tests/test-c-strncasecmp.c: New file.
51668
51669         * modules/atexit-tests: New file.
51670         * tests/test-atexit.sh: New file.
51671         * tests/test-atexit.c: New file.
51672
51673 2007-03-10  Bruno Haible  <bruno@clisp.org>
51674
51675         * tests/test-binary-io.sh: Use temporary filenames that are not so
51676         likely to clash with those of other tests (in a parallel make).
51677         * tests/test-binary-io.c: Likewise.
51678
51679 2007-03-10  Bruno Haible  <bruno@clisp.org>
51680
51681         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
51682         fallback; use #error instead.
51683         Suggested by Simon Josefsson.
51684
51685 2007-03-10  Bruno Haible  <bruno@clisp.org>
51686
51687         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
51688         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
51689         first and the last.
51690
51691 2007-03-10  Bruno Haible  <bruno@clisp.org>
51692
51693         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
51694
51695 2007-03-10  Bruno Haible  <bruno@clisp.org>
51696
51697         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
51698         "make distcheck".
51699         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
51700         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
51701         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
51702
51703 2007-03-10  Bruno Haible  <bruno@clisp.org>
51704
51705         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
51706         variable.
51707         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
51708         variable.
51709
51710 2007-03-09  Eric Blake  <ebb9@byu.net>
51711         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
51712
51713         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
51714         types are not being provided by gnulib.
51715         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
51716         types are supported.
51717
51718 2007-03-10  Bruno Haible  <bruno@clisp.org>
51719
51720         * lib/stdio_.h (__attribute__): New macro.
51721         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
51722         vsprintf): Specify __attribute__ __format__ for GCC.
51723         Suggested by Eric Blake.
51724
51725 2007-03-09  Bruno Haible  <bruno@clisp.org>
51726
51727         * modules/printf-posix-tests: New file.
51728         * tests/test-printf-posix.sh: New file.
51729         * tests/test-printf-posix.c: New file.
51730
51731         * modules/printf-posix: New file.
51732         * lib/printf.c: New file.
51733         * m4/printf-posix-rpl.m4: New file.
51734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
51735         REPLACE_PRINTF.
51736         * lib/stdio_.h (printf): New declaration.
51737         (format, __format__, ____printf____, ____scanf____, ____strftime____,
51738         ____strfmon____): New macros.
51739         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
51740         REPLACE_PRINTF.
51741
51742 2007-03-09  Bruno Haible  <bruno@clisp.org>
51743
51744         * tests/test-vasnprintf-posix2.sh: New file.
51745         * tests/test-vasnprintf-posix2.c: New file.
51746         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
51747         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51748         (Makefile.am): Activate test-vasnprintf-posix2.sh.
51749
51750         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
51751         a locale dependent decimal point, rather than always '.'.
51752
51753 2007-03-09  Eric Blake  <ebb9@byu.net>
51754
51755         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
51756         spite of platforms like Tandem/NSK that define it to -1.
51757
51758 2007-03-08  Bruno Haible  <bruno@clisp.org>
51759
51760         * modules/vprintf-posix-tests: New file.
51761         * tests/test-vprintf-posix.sh: New file.
51762         * tests/test-vprintf-posix.c: New file.
51763         * tests/test-printf-posix.h: New file.
51764
51765         * modules/vprintf-posix: New file.
51766         * lib/vprintf.c: New file.
51767         * m4/vprintf-posix.m4: New file.
51768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
51769         REPLACE_VPRINTF.
51770         * lib/stdio_.h (vprintf): New declaration.
51771         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
51772         REPLACE_VPRINTF.
51773
51774 2007-03-08  Bruno Haible  <bruno@clisp.org>
51775
51776         * modules/fprintf-posix-tests: New file.
51777         * tests/test-fprintf-posix.sh: New file.
51778         * tests/test-fprintf-posix.c: New file.
51779
51780         * modules/fprintf-posix: New file.
51781         * lib/fprintf.c: New file.
51782         * m4/fprintf-posix.m4: New file.
51783         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
51784         REPLACE_FPRINTF.
51785         * lib/stdio_.h (fprintf): New declaration.
51786         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
51787         REPLACE_FPRINTF.
51788
51789 2007-03-08  Bruno Haible  <bruno@clisp.org>
51790
51791         * modules/vfprintf-posix-tests: New file.
51792         * tests/test-vfprintf-posix.sh: New file.
51793         * tests/test-vfprintf-posix.c: New file.
51794         * tests/test-fprintf-posix.h: New file.
51795         * tests/test-fprintf-posix.out: New file.
51796
51797         * modules/vfprintf-posix: New file.
51798         * lib/vfprintf.c: New file.
51799         * m4/vfprintf-posix.m4: New file.
51800         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
51801         REPLACE_VFPRINTF.
51802         * lib/stdio_.h (vfprintf): New declaration.
51803         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
51804         REPLACE_VFPRINTF.
51805
51806 2007-03-08  Bruno Haible  <bruno@clisp.org>
51807
51808         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
51809
51810 2007-03-08  Bruno Haible  <bruno@clisp.org>
51811
51812         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
51813         instead of 'expr' invocations.
51814         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51815         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51816         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51817         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51818         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51819         Suggested by Paul Eggert.
51820
51821 2007-03-08  Bruno Haible  <bruno@clisp.org>
51822
51823         * modules/fseterr-tests: New file.
51824         * tests/test-fseterr.c: New file.
51825
51826         * modules/fseterr: New file.
51827         * lib/fseterr.h: New file.
51828         * lib/fseterr.c: New file.
51829
51830 2007-03-08  Bruno Haible  <bruno@clisp.org>
51831
51832         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
51833         * lib/getopt_.h: Likewise.
51834         * lib/mbswidth.h: Likewise.
51835         * lib/setenv.h: Likewise.
51836         * lib/vasnprintf.h: Likewise.
51837         * lib/vasprintf.h: Likewise.
51838         * lib/verror.h: Likewise.
51839         * lib/xsetenv.h: Likewise.
51840         * lib/xvasprintf.h: Likewise.
51841
51842 2007-03-08  Jim Meyering  <jim@meyering.net>
51843
51844         * users.txt: Add parted.
51845
51846         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
51847
51848 2007-03-07  Bruno Haible  <bruno@clisp.org>
51849
51850         * m4/printf.m4: Make the shell script snippets copy&pastable.
51851
51852 2007-03-02  Bruno Haible  <bruno@clisp.org>
51853
51854         * lib/netinet_in_.h: New file.
51855         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
51856         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
51857         * modules/netinet_in (Files): Add lib/netinet_in_.h.
51858         (Depends-on): Add absolute-header.
51859         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
51860         into netinet/in.h.
51861
51862 2007-03-03  Bruno Haible  <bruno@clisp.org>
51863
51864         * lib/sys_select_.h: New file.
51865         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
51866         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
51867         * modules/sys_select (Files): Add lib/sys_select_.h.
51868         (Depends-on): Add absolute-header.
51869         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
51870         into sys/select.h.
51871
51872 2007-03-02  Bruno Haible  <bruno@clisp.org>
51873
51874         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
51875         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
51876         values.
51877         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
51878         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
51879         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
51880         * modules/sys_socket (Depends-on): Add absolute-header.
51881         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
51882         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
51883         (Include): Remove requirement of inclusion of <sys/types.h>.
51884
51885 2007-03-02  Bruno Haible  <bruno@clisp.org>
51886
51887         * lib/byteswap_.h (bswap_32): Fix formula.
51888
51889 2007-03-06  Bruno Haible  <bruno@clisp.org>
51890
51891         * modules/sprintf-posix-tests: New file.
51892         * tests/test-sprintf-posix.c: New file.
51893
51894         * modules/sprintf-posix: New file.
51895         * lib/sprintf.c: New file.
51896         * m4/sprintf-posix.m4: New file.
51897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
51898         REPLACE_SPRINTF.
51899         * lib/stdio_.h (sprintf): New declaration.
51900         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51901         REPLACE_SPRINTF.
51902
51903 2007-03-06  Bruno Haible  <bruno@clisp.org>
51904
51905         * modules/vsprintf-posix-tests: New file.
51906         * tests/test-vsprintf-posix.c: New file.
51907         * tests/test-sprintf-posix.h: New file.
51908
51909         * modules/vsprintf-posix: New file.
51910         * lib/vsprintf.c: New file.
51911         * m4/vsprintf-posix.m4: New file.
51912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
51913         REPLACE_VSPRINTF.
51914         * lib/stdio_.h (vsprintf): New declaration.
51915         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
51916         REPLACE_VSPRINTF.
51917
51918 2007-03-06  Bruno Haible  <bruno@clisp.org>
51919
51920         * modules/vsnprintf (Depend-on): Remove minmax.
51921
51922 2007-03-06  Bruno Haible  <bruno@clisp.org>
51923
51924         * modules/snprintf-posix-tests: New file.
51925         * tests/test-snprintf-posix.c: New file.
51926
51927         * modules/snprintf-posix: New file.
51928         * m4/snprintf-posix.m4: New file.
51929         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
51930         gl_FUNC_SNPRINTF.
51931         (gl_FUNC_SNPRINTF): Invoke it.
51932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
51933         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
51934         is set.
51935         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
51936
51937 2007-03-06  Bruno Haible  <bruno@clisp.org>
51938
51939         * modules/vsnprintf-posix-tests: New file.
51940         * tests/test-vsnprintf-posix.c: New file.
51941         * tests/test-snprintf-posix.h: New file.
51942
51943         * modules/vsnprintf-posix: New file.
51944         * m4/vsnprintf-posix.m4: New file.
51945         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
51946         gl_FUNC_VSNPRINTF.
51947         (gl_FUNC_VSNPRINTF): Invoke it.
51948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
51949         * lib/stdio_.h (vsnprintf): Define as a replacement if
51950         REPLACE_VSNPRINTF is set.
51951         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
51952
51953 2007-03-06  Bruno Haible  <bruno@clisp.org>
51954
51955         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
51956         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
51957
51958 2007-03-06  Bruno Haible  <bruno@clisp.org>
51959
51960         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
51961         (asinl): Declare also if HAVE_DECL_ASINL is set.
51962         (atanl): Declare also if HAVE_DECL_ATANL is set.
51963         (ceill): Declare also if HAVE_DECL_CEILL is set.
51964         (cosl): Declare also if HAVE_DECL_COSL is set.
51965         (expl): Declare also if HAVE_DECL_EXPL is set.
51966         (floorl): Declare also if HAVE_DECL_FLOORL is set.
51967         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
51968         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
51969         (logl): Declare also if HAVE_DECL_LOGL is set.
51970         (sinl): Declare also if HAVE_DECL_SINL is set.
51971         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
51972         (tanl): Declare also if HAVE_DECL_TANL is set.
51973         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
51974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
51975         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
51976         declaration of frexpl, ldexpl.
51977         * modules/printf-frexpl (Depends-on): Add math.
51978         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
51979
51980 2007-03-05  Bruno Haible  <bruno@clisp.org>
51981
51982         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
51983         frexpl and ldexpl are declared.
51984         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
51985
51986 2007-03-05  Bruno Haible  <bruno@clisp.org>
51987
51988         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
51989         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
51990
51991 2007-03-05  Bruno Haible  <bruno@clisp.org>
51992
51993         * lib/stdio_.h: Include <stddef.h>.
51994
51995 2007-03-05  Bruno Haible  <bruno@clisp.org>
51996
51997         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
51998
51999 2007-03-05  Bruno Haible  <bruno@clisp.org>
52000
52001         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
52002         NetBSD 4, from Ralf Wildenhues.
52003
52004 2007-03-04  Bruno Haible  <bruno@clisp.org>
52005
52006         * lib/vasprintf.h: Update #if logic for the case when the functions
52007         exist but are overridden.
52008
52009 2007-03-04  Bruno Haible  <bruno@clisp.org>
52010
52011         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
52012         implementations: glibc-2.4 and MacOS X 10.3.
52013         * tests/test-vasnprintf-posix.c (test_function): Test also the case
52014         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
52015         * tests/test-vasprintf-posix.c (test_function): Likewise.
52016
52017 2007-03-04  Bruno Haible  <bruno@clisp.org>
52018
52019         * modules/vasprintf-posix-tests: New file.
52020         * tests/test-vasprintf-posix.c: New file.
52021
52022         * modules/vasprintf-posix: New file.
52023         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
52024         defined.
52025         * m4/vasprintf-posix.m4: New file.
52026         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
52027         gl_FUNC_VASPRINTF.
52028         (gl_FUNC_VASPRINTF): Invoke it.
52029         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
52030         here.
52031         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
52032
52033 2007-03-04  Bruno Haible  <bruno@clisp.org>
52034
52035         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
52036         REPLACE_GETTIMEOFDAY.
52037         * modules/sys_time (Makefile.am): Likewise.
52038         * m4/sys_time_h.m4: Likewise.
52039         * m4/gettimeofday.m4: Likewise.
52040
52041 2007-03-04  Bruno Haible  <bruno@clisp.org>
52042
52043         * modules/vasnprintf-posix-tests: New file.
52044         * tests/test-vasnprintf-posix.c: New file.
52045
52046         * modules/vasnprintf-posix: New file.
52047         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
52048         printf-frexpl.h.
52049         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
52050         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
52051         REPLACE_VASNPRINTF is defined.
52052         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
52053         gl_FUNC_VASNPRINTF.
52054         (gl_FUNC_VASNPRINTF): Invoke it.
52055         * m4/vasnprintf-posix.m4: New file.
52056         * m4/printf.m4: New file.
52057
52058 2007-03-04  Bruno Haible  <bruno@clisp.org>
52059
52060         Compile progreloc.c only if --enable-relocatable is specified.
52061         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
52062         if --enable-relocatable was specified.
52063         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
52064         lib_SOURCES.
52065
52066 2007-03-04  Jim Meyering  <jim@meyering.net>
52067
52068         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
52069         Use it consistently, rather than enumerating errno constants.
52070
52071 2007-03-04  Bruno Haible  <bruno@clisp.org>
52072
52073         * modules/xvasprintf-tests: New file.
52074         * tests/test-xvasprintf.c: New file.
52075
52076         * modules/vasprintf-tests: New file.
52077         * tests/test-vasprintf.c: New file.
52078
52079         * modules/vasnprintf-tests: New file.
52080         * tests/test-vasnprintf.c: New file.
52081
52082         * modules/vsnprintf-tests: New file.
52083         * tests/test-vsnprintf.c: New file.
52084
52085         * modules/snprintf-tests: New file.
52086         * tests/test-snprintf.c: New file.
52087
52088 2007-03-04  Bruno Haible  <bruno@clisp.org>
52089
52090         Compile relocatable.c only if --enable-relocatable is specified.
52091         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
52092         gl_RELOCATABLE_LIBRARY.
52093         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
52094         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
52095         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
52096         gl_RELOCATABLE_LIBRARY.
52097         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
52098         (Makefile.am): Remove lib_SOURCES.
52099         * modules/relocatable-lib-lgpl (configure.ac): Invoke
52100         gl_RELOCATABLE_LIBRARY.
52101         (Makefile.am): Remove lib_SOURCES.
52102         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
52103         always.
52104         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52105         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
52106
52107 2007-03-04  Bruno Haible  <bruno@clisp.org>
52108
52109         * modules/argmatch-tests: New file.
52110         * tests/test-argmatch.c: New file.
52111
52112         * tests/test-allocsa.c (main): Halve the number of loop runs.
52113
52114         * modules/alloca-opt-tests: New file.
52115         * tests/test-alloca-opt.c: New file.
52116
52117 2007-03-04  Jim Meyering  <jim@meyering.net>
52118
52119         Work around difference between Linux ACLs and Solaris 10 ZFS.
52120         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
52121         for EINVAL.
52122
52123 2007-03-03  Bruno Haible  <bruno@clisp.org>
52124
52125         * modules/relocatable-prog (Depends-on): Add back progreloc's
52126         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
52127
52128 2007-03-03  Bruno Haible  <bruno@clisp.org>
52129
52130         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
52131         * modules/relocatable-lib: New file.
52132
52133 2007-03-03  Bruno Haible  <bruno@clisp.org>
52134
52135         * modules/relocatable-prog: Renamed from modules/relocatable.
52136         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
52137
52138 2007-03-03  Bruno Haible  <bruno@clisp.org>
52139
52140         * modules/relocatable-script (Files): Add doc/relocatable.texi,
52141         m4/relocatable-lib.m4.
52142         (Depends-on): Remove 'relocatable'.
52143         (configure.ac): Add gl_RELOCATABLE_NOP.
52144
52145 2007-03-03  Bruno Haible  <bruno@clisp.org>
52146
52147         * modules/relocatable-prog-wrapper: New file.
52148         * modules/relocatable (Depends-on): Add it. Remove all other
52149         dependencies except progname.
52150         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
52151
52152         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
52153         (gl_FUNC_STRERROR): Nop.
52154         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
52155
52156         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
52157         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
52158
52159         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
52160         (gl_FUNC_READLINK): Update.
52161
52162         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
52163
52164 2007-03-03  Bruno Haible  <bruno@clisp.org>
52165
52166         * lib/xreadlink.c: Include <unistd.h> unconditionally.
52167         * modules/xreadlink (Depends-on): Add unistd.
52168         * modules/xreadlink-with-size (Depends-on): Likewise.
52169
52170 2007-03-03  Bruno Haible  <bruno@clisp.org>
52171
52172         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
52173         extracted from gt_FUNC_SETENV.
52174         (gt_FUNC_SETENV): Remove macro.
52175         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
52176         remove gt_FUNC_SETENV.
52177
52178 2007-03-03  Bruno Haible  <bruno@clisp.org>
52179
52180         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
52181         ENABLE_RELOCATABLE here.
52182         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
52183
52184 2007-03-03  Bruno Haible  <bruno@clisp.org>
52185
52186         * modules/rbtreehash-list-tests (Depends-on): Add progname.
52187         * tests/test-rbtreehash_list.c: Include progname.h.
52188         (main): Call set_program_name.
52189
52190         * modules/rbtree-oset-tests (Depends-on): Add progname.
52191         * tests/test-rbtree_oset.c: Include progname.h.
52192         (main): Call set_program_name.
52193
52194         * modules/rbtree-list-tests (Depends-on): Add progname.
52195         * tests/test-rbtree_list.c: Include progname.h.
52196         (main): Call set_program_name.
52197
52198         * modules/linked-list-tests (Depends-on): Add progname.
52199         * tests/test-linked_list.c: Include progname.h.
52200         (main): Call set_program_name.
52201
52202 2007-03-03  Bruno Haible  <bruno@clisp.org>
52203
52204         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
52205         All uses of __restrict changed to _Restrict_.
52206         * lib/glob_.h (__restrict): Remove macro.
52207
52208 2007-03-02  Bruno Haible  <bruno@clisp.org>
52209
52210         * modules/gettext (configure.ac): Require gettext infrastructure
52211         from version 0.16.1.
52212
52213 2007-03-02  Bruno Haible  <bruno@clisp.org>
52214
52215         * modules/linkedhash-list-tests (Depends-on): Add progname.
52216         * tests/test-linkedhash_list.c: Include progname.h.
52217         (main): Call set_program_name.
52218
52219         * modules/carray-list-tests (Depends-on): Add progname.
52220         * tests/test-carray_list.c: Include progname.h.
52221         (main): Call set_program_name.
52222
52223         * modules/avltreehash-list-tests (Depends-on): Add progname.
52224         * tests/test-avltreehash_list.c: Include progname.h.
52225         (main): Call set_program_name.
52226
52227         * modules/avltree-oset-tests (Depends-on): Add progname.
52228         * tests/test-avltree_oset.c: Include progname.h.
52229         (main): Call set_program_name.
52230
52231         * modules/avltree-list-tests (Depends-on): Add progname.
52232         * tests/test-avltree_list.c: Include progname.h.
52233         (main): Call set_program_name.
52234
52235         * modules/array-oset-tests (Depends-on): Add progname.
52236         * tests/test-array_oset.c: Include progname.h.
52237         (main): Call set_program_name.
52238
52239         * modules/array-list-tests (Depends-on): Add progname.
52240         * tests/test-array_list.c: Include progname.h.
52241         (main): Call set_program_name.
52242
52243         * modules/argp-tests (Depends-on): Add progname.
52244         * tests/test-argp.c: Include argp.h first. Include progname.h.
52245         (main): Call set_program_name.
52246
52247 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
52248
52249         * doc/gnulib-tool.texi (Initial import): Reword description of
52250         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
52251         limited effect even if defined after the first system include.
52252
52253 2007-03-01  Bruno Haible  <bruno@clisp.org>
52254
52255         * build-aux/config.libpath: Update to libtool-1.5.22.
52256         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52257
52258 2007-03-01  Bruno Haible  <bruno@clisp.org>
52259
52260         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
52261         foo_CFLAGS.
52262         Reported by Ralf Wildenhues.
52263
52264 2007-03-01  Bruno Haible  <bruno@clisp.org>
52265
52266         * build-aux/install-reloc: Remove object files left over by some
52267         compilers.
52268         Reported by Ralf Wildenhues.
52269
52270 2007-03-01  Bruno Haible  <bruno@clisp.org>
52271
52272         * build-aux/install-reloc: Break long lines.
52273
52274 2007-03-01  Bruno Haible  <bruno@clisp.org>
52275
52276         * doc/relocatable.texi: Document that it may not work on OpenBSD.
52277         Reported by Ralf Wildenhues.
52278
52279 2007-03-01  Bruno Haible  <bruno@clisp.org>
52280
52281         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
52282         include ordering constraints.
52283
52284 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52285
52286         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
52287         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
52288         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
52289         as another example.
52290         * lib/time_.h: Fix misspelling.
52291         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52292         Require gl_HEADER_TIME_H_DEFAULTS.
52293         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
52294         * m4/time_r.m4 (gl_TIME_R): Likewise.
52295         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
52296
52297 2007-03-01  Bruno Haible  <bruno@clisp.org>
52298
52299         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
52300         * m4/utimens.m4 (gl_UTIMENS): Likewise.
52301
52302 2007-03-01  Jim Meyering  <jim@meyering.net>
52303
52304         * modules/xreadlink (Maintainer): Add my name.
52305         * modules/xreadlink-with-size (Depends-on): Alphabetize.
52306
52307 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
52308             Bruno Haible  <bruno@clisp.org>
52309
52310         * build-aux/install-reloc: Compile also c-ctype.c.
52311         * build-aux/relocatable.sh.in: New file.
52312         * doc/relocatable.texi: New file.
52313         * doc/relocatable-maint.texi: New file.
52314         * doc/gnulib.texi: Include relocatable-maint.texi.
52315         * lib/progreloc.c: Include unistd.h unconditionally.
52316         * lib/relocwrapper.c: Include unistd.h unconditionally.
52317         Include c-ctype.h.
52318         (add_dotbin): Use c_tolower.
52319         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
52320         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
52321         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
52322         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
52323         to m4/relocatable-lib.m4.
52324         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
52325         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
52326         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
52327         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
52328         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
52329         * modules/relocatable: New file.
52330         * modules/relocatable-lib: New file.
52331         * modules/relocatable-script: New file.
52332
52333 2007-02-28  Bruno Haible  <bruno@clisp.org>
52334
52335         Import --enable-relocatable infrastructure.
52336         * build-aux/config.libpath: New file, from GNU gettext.
52337         * build-aux/install-reloc: New file, from GNU gettext.
52338         * build-aux/reloc-ldflags: New file, from GNU gettext.
52339         * lib/relocatable.h: New file, from GNU gettext.
52340         * lib/relocatable.c: New file, from GNU gettext.
52341         * lib/relocwrapper.c: New file, from GNU gettext.
52342         * m4/relocatable.m4: New file, from GNU gettext.
52343
52344 2007-02-28  Bruno Haible  <bruno@clisp.org>
52345
52346         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
52347
52348         * modules/xreadlink: New file, from GNU gettext with modifications.
52349         * lib/xreadlink.c: New file, from GNU gettext.
52350         * lib/xreadlink.h: Add comments.
52351         (xreadlink): New declaration.
52352
52353         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
52354         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
52355         lib/xreadlink-with-size.c.
52356         (configure.ac): Remove gl_XREADLINK invocation.
52357         (Makefile.am): Augment lib_SOURCES.
52358         * m4/xreadlink.m4: Remove file.
52359         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
52360         (xreadlink_with_size): Renamed from xreadink.
52361         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
52362         * modules/canonicalize (Depends-on): Replace xreadlink with
52363         xreadlink-with-size.
52364         * lib/canonicalize.c (canonicalize_filename_mode): Update.
52365
52366 2007-02-25  Jim Meyering  <jim@meyering.net>
52367
52368         * build-aux/announce-gen: When complaining about excess arguments,
52369         list them.
52370
52371 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52372
52373         * README: Document signed integer overflow situation more
52374         accurately.
52375
52376 2007-02-25  Bruno Haible  <bruno@clisp.org>
52377
52378         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
52379         'a' or 'A' conversion.
52380
52381 2007-02-25  Bruno Haible  <bruno@clisp.org>
52382
52383         * modules/filename: Renamed from modules/pathname.
52384         (Files): Replace lib/pathname.h with lib/filename.h. Replace
52385         lib/concatpath.c with lib/concat-filename.c.
52386         (Makefile.am): Update.
52387         (Include): Replace pathname.h with filename.h.
52388         * lib/filename.h: Renamed from lib/pathname.h.
52389         (concatenated_filename): Renamed from concatenated_pathname.
52390         * lib/concat-filename.c: Renamed from lib/concatpath.c.
52391         (concatenated_filename): Renamed from concatenated_pathname.
52392         * lib/findprog.c: Include filename.h instead of pathname.h.
52393         (find_in_path): Update.
52394         * lib/javacomp.c: Include filename.h instead of pathname.h.
52395         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52396         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52397         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52398         is_oldgcj_14_13_usable, is_javac_usable): Update.
52399         * lib/javaexec.c: Include filename.h instead of pathname.h.
52400         (execute_java_class): Update.
52401         * modules/findprog: Update.
52402         * modules/javacomp: Update.
52403         * modules/javaexec: Update.
52404         * MODULES.html.sh (File system functions): Add 'filename', remove
52405         'pathname'.
52406
52407 2007-02-25  Bruno Haible  <bruno@clisp.org>
52408
52409         * modules/printf-frexpl-tests: New file.
52410         * tests/test-printf-frexpl.c: New file.
52411
52412         * modules/printf-frexpl: New file.
52413         * lib/printf-frexpl.h: New file.
52414         * lib/printf-frexpl.c: New file.
52415         * m4/printf-frexpl.m4: New file.
52416
52417 2007-02-25  Bruno Haible  <bruno@clisp.org>
52418
52419         * modules/printf-frexp-tests: New file.
52420         * tests/test-printf-frexp.c: New file.
52421
52422         * modules/printf-frexp: New file.
52423         * lib/printf-frexp.h: New file.
52424         * lib/printf-frexp.c: New file.
52425         * m4/printf-frexp.m4: New file.
52426
52427 2007-02-25  Bruno Haible  <bruno@clisp.org>
52428
52429         Assume automake >= 1.10 for the tests.
52430         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
52431         * modules/arctwo-tests: Likewise.
52432         * modules/argp-tests: Likewise.
52433         * modules/avltree-list-tests: Likewise.
52434         * modules/avltree-oset-tests: Likewise.
52435         * modules/avltreehash-list-tests: Likewise.
52436         * modules/carray-list-tests: Likewise.
52437         * modules/crc-tests: Likewise.
52438         * modules/des-tests: Likewise.
52439         * modules/gc-arcfour-tests: Likewise.
52440         * modules/gc-arctwo-tests: Likewise.
52441         * modules/gc-des-tests: Likewise.
52442         * modules/gc-hmac-md5-tests: Likewise.
52443         * modules/gc-hmac-sha1-tests: Likewise.
52444         * modules/gc-md2-tests: Likewise.
52445         * modules/gc-md4-tests: Likewise.
52446         * modules/gc-md5-tests: Likewise.
52447         * modules/gc-pbkdf2-sha1-tests: Likewise.
52448         * modules/gc-rijndael-tests: Likewise.
52449         * modules/gc-sha1-tests: Likewise.
52450         * modules/gc-tests: Likewise.
52451         * modules/getaddrinfo-tests: Likewise.
52452         * modules/hmac-md5-tests: Likewise.
52453         * modules/hmac-sha1-tests: Likewise.
52454         * modules/linked-list-tests: Likewise.
52455         * modules/linkedhash-list-tests: Likewise.
52456         * modules/lock-tests: Likewise.
52457         * modules/md2-tests: Likewise.
52458         * modules/md4-tests: Likewise.
52459         * modules/md5-tests: Likewise.
52460         * modules/rbtree-list-tests: Likewise.
52461         * modules/rbtree-oset-tests: Likewise.
52462         * modules/rbtreehash-list-tests: Likewise.
52463         * modules/read-file-tests: Likewise.
52464         * modules/rijndael-tests: Likewise.
52465         * modules/stdint-tests: Likewise.
52466         * modules/tls-tests: Likewise.
52467
52468 2007-02-24  Bruno Haible  <bruno@clisp.org>
52469
52470         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
52471         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
52472         function; instead check whether isnan with a double argument links.
52473         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
52474         function; instead check whether isnan with a 'long double' argument
52475         links.
52476         Reported by Eric Blake <ebb9@byu.net>.
52477
52478 2007-02-24  Bruno Haible  <bruno@clisp.org>
52479
52480         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
52481         defined.
52482         * lib/isnanl.c: Remove all code. Just include isnan.c.
52483         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
52484
52485 2007-02-25  Jim Meyering  <jim@meyering.net>
52486
52487         Avoid conflicting types for 'unsetenv' on FreeBSD.
52488         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
52489         conflicting with FreeBSD's (5.0 and 6.1) function declaration
52490         in stdlib.h.
52491
52492 2007-02-24  Bruno Haible  <bruno@clisp.org>
52493
52494         * modules/isnanl-nolibm-tests: New file.
52495         * tests/test-isnanl.c: New file.
52496
52497         * modules/isnanl-nolibm: New file.
52498         * lib/isnanl.h: New file.
52499         * lib/isnanl.c: New file.
52500         * m4/isnanl.m4: New file.
52501
52502 2007-02-24  Bruno Haible  <bruno@clisp.org>
52503
52504         * modules/isnan-nolibm-tests: New file.
52505         * tests/test-isnan.c: New file.
52506
52507         * modules/isnan-nolibm: New file.
52508         * lib/isnan.h: New file.
52509         * lib/isnan.c: New file.
52510         * m4/isnan.m4: New file.
52511
52512 2007-02-24  Bruno Haible  <bruno@clisp.org>
52513
52514         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
52515         assume that an exponent fits in 20 bits.
52516
52517 2007-02-24  Jim Meyering  <jim@meyering.net>
52518
52519         * m4/regex.m4: Update the description of the configure-time option,
52520         --without-included-regex, to state accurately what the defaults are,
52521         and perhaps to give people an idea why using this option is risky.
52522
52523 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52524
52525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
52526         loops on small arguments.  This attempts to avoid the problem
52527         Bruno Haible reported for AIX 4.3.2 in
52528         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
52529
52530 2007-02-23  Bruno Haible  <bruno@clisp.org>
52531
52532         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
52533         Needed for help2man.
52534
52535 2007-02-23  Karl Berry  <karl@gnu.org>
52536
52537         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
52538         exists, foo.h should be cvs-ignored, not committed.
52539
52540 2007-02-23  Eric Blake  <ebb9@byu.net>
52541
52542         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
52543         * lib/stat-time.h (includes): Likewise.
52544         * lib/utimecmp.c (includes): Likewise.
52545         * lib/utimens.h (includes): Likewise.
52546         * lib/getdate.y (includes): Also include "timespec.h" for use
52547         internal to the module.
52548         * modules/utimens (Depends-on): Revert yesterday's patch.
52549         * modules/nanosleep (Depends-on): Add missing dependency.
52550
52551 2007-02-22  Bruno Haible  <bruno@clisp.org>
52552
52553         * lib/glob.c: Don't include getlogin_r.h.
52554
52555 2007-02-22  Jim Meyering  <jim@meyering.net>
52556
52557         * modules/utimens (Depends-on): Add timespec, required for
52558         utimens.h's inclusion of timespec.h.
52559
52560 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
52561
52562         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
52563         long unreadable paths in GNU/Linux.  Problem reported by Andreas
52564         Schwab in
52565         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
52566         I'll try to think of a better way to fix the Solaris problem.
52567
52568         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
52569         like glibc; on Solaris 10, it fails with errno == EINVAL.
52570         POSIX says the behavior is unspecified if the first argument is NULL,
52571         so play it safe and never pass NULL to the system getcwd.
52572
52573 2007-02-21  Jim Meyering  <jim@meyering.net>
52574
52575         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
52576         of gettimeofday.  It would conflict with the one now always
52577         provided via sys_time_.h.  Reported by Matthew Woehlke, as
52578         an IRIX 6.5 build failure.
52579
52580 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52581
52582         Minor fixups to port to Solaris 10 with Sun C 5.8.
52583         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
52584         * modules/getcwd (Depends-on): Add dirfd.
52585         * lib/putenv.c (putenv): #undef it.
52586         (rpl_putenv): New decl.
52587         (malloc, free): Include <stdlib.h> rather than prototyping separately.
52588
52589 2007-02-20  Bruno Haible  <bruno@clisp.org>
52590
52591         * modules/stdio-tests: New file.
52592         * tests/test-stdio.c: New file.
52593
52594         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
52595         (Depends-on): Add stdio.
52596         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52597         (Include): Use <stdio.h> instead of vsnprintf.h.
52598         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52599         HAVE_DECL_VSNPRINTF.
52600         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
52601
52602         * modules/snprintf (Files): Remove lib/snprintf.h.
52603         (Depends-on): Add stdio.
52604         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52605         (Include): Use <stdio.h> instead of snprintf.h.
52606         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52607         HAVE_DECL_SNPRINTF.
52608         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
52609         * lib/getaddrinfo.c: Likewise.
52610
52611         * modules/stdio: New file.
52612         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
52613         * lib/snprintf.h: Remove file.
52614         * lib/vsnprintf.h: Remove file.
52615         * lib/.cppi-disable: Remove snprintf.h.
52616         * m4/stdio_h.m4: New file.
52617         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
52618
52619 2007-02-20  Jim Meyering  <jim@meyering.net>
52620
52621         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
52622         used by e.g., mingw.  From Bruno Haible.
52623
52624 2007-02-19  Bruno Haible  <bruno@clisp.org>
52625
52626         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
52627         warnings.
52628         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52629
52630 2007-02-19  Bruno Haible  <bruno@clisp.org>
52631
52632         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
52633         from mingw users.
52634
52635 2007-02-19  Bruno Haible  <bruno@clisp.org>
52636
52637         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
52638         warnings.
52639         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
52640
52641 2007-02-19  Jim Meyering  <jim@meyering.net>
52642
52643         Don't use FD after a successful "fdopendir (fd)".
52644         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
52645         Reset it by calling dirfd on the just-obtained DIR*.
52646
52647         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
52648         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
52649
52650 2007-02-18  Bruno Haible  <bruno@clisp.org>
52651
52652         * lib/readlink.c: Include <unistd.h>.
52653         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
52654         HAVE_READLINK.
52655         * modules/readlink (Depends-on): Add unistd.
52656         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52657         (Include): Add <unistd.h>.
52658
52659         * lib/getlogin_r.h: Remove file.
52660         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
52661         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
52662         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
52663         HAVE_DECL_GETLOGIN_R.
52664         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
52665         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52666         (Include): Use <unistd.h> instead of getlogin_r.h.
52667
52668         * lib/getcwd.h: Remove file.
52669         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
52670         * lib/xgetcwd.c: Likewise.
52671         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
52672         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
52673         * modules/getcwd (Files): Remove lib/getcwd.h.
52674         (Depends-on): Add unistd.
52675         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52676         (Include): Use <unistd.h> instad of getcwd.h.
52677
52678         * lib/ftruncate.c: Include <unistd.h> first.
52679         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
52680         Set HAVE_FTRUNCATE.
52681         * modules/ftruncate (Depends-on): Add unistd.
52682         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52683
52684         * lib/fchdir.c: Include <unistd.h> first.
52685         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
52686         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
52687         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
52688         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52689         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
52690
52691         * lib/dup2.c: Include <unistd.h> first.
52692         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
52693         HAVE_DUP2.
52694         * modules/dup2 (Depends-on): Add unistd.
52695         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52696
52697         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
52698         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
52699         REPLACE_CHOWN. Don't define chown as a macro here.
52700         * modules/chown (Depends-on): Add unistd.
52701         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52702
52703         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
52704         Add definition for GL_LINK_WARNING.
52705         (chown, dup2): New declarations.
52706         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
52707         link warning.
52708         (ftruncate): New declaration.
52709         (getcwd): New declaration, taken from old getcwd.h.
52710         (getlogin_r): New declaration, taken from old getlogin_r.h.
52711         (readlink): New declaration.
52712         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
52713         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
52714         (gl_PREREQ_UNISTD): Remove macro.
52715         (gl_UNISTD_MODULE_INDICATOR): New macro.
52716         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
52717         many new variables. Don't set UNISTD_H.
52718         * modules/unistd (Description): Change.
52719         (Depends-on): Add link-warning.
52720         (configure.ac): Update.
52721         (Makefile.am): Create unistd.h always. Substitute many new variables
52722         into it.
52723
52724 2007-02-18  Bruno Haible  <bruno@clisp.org>
52725
52726         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
52727         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
52728         HAVE_GETSUBOPT.
52729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
52730         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
52731         * lib/getsubopt.h: Remove file.
52732         * modules/getsubopt (Files): Remove lib/getsubopt.h.
52733         (Depends-on): Add stdlib.
52734         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52735         (Includes): Use <stdlib.h> instead of getsubopt.h.
52736         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
52737         Set HAVE_GETSUBOPT.
52738         * lib/getsubopt.c: Don't include getsubopt.h.
52739
52740 2007-02-18  Bruno Haible  <bruno@clisp.org>
52741
52742         * modules/fchdir (Depends-on): Add dup2.
52743
52744 2007-02-18  Bruno Haible  <bruno@clisp.org>
52745
52746         * lib/stdlib_.h: Handle glibc's special invocation convention
52747         specially.
52748
52749 2007-02-18  Bruno Haible  <bruno@clisp.org>
52750
52751         * modules/stdlib-tests: New file.
52752         * tests/test-stdlib.c: New file.
52753
52754         * modules/mkstemp (Files): Remove lib/mkstemp.h.
52755         (Depends-on): Add stdlib.
52756         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52757         (Includes): Use <stdlib.h> instead of mkstemp.h.
52758         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52759         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
52760         * lib/mkstemp.c: Don't include mkstemp.h.
52761         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
52762         * lib/stdlib--.h: Don't include mkstemp.h.
52763
52764         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
52765         (Depends-on): Add stdlib.
52766         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52767         (Includes): Use <stdlib.h> instead of mkdtemp.h.
52768         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52769         HAVE_MKDTEMP.
52770         * lib/mkdtemp.c: Don't include mkdtemp.h.
52771         * lib/clean-temp.c: Don't include mkdtemp.h.
52772
52773         * modules/exit (Files): Remove lib/exit.h.
52774         (Depends-on): Add stdlib.
52775         (Makefile.am): Remove lib_SOURCES.
52776         (Include): Use <stdlib.h> instead of exit.h.
52777         * lib/argmatch.c: Don't include exit.h.
52778         * lib/execute.c: Likewise.
52779         * lib/pagealign_alloc.c: Likewise.
52780         * lib/pipe.c: Likewise.
52781         * lib/wait-process.c: Likewise.
52782         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
52783         * lib/exitfail.c: Likewise.
52784         * lib/savewd.c: Likewise.
52785         * lib/xsetenv.c: Likewise.
52786
52787         * modules/stdlib: New file.
52788         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
52789         and extra comments about mkstemp().
52790         * lib/exit.h: Remove file.
52791         * lib/mkdtemp.h: Remove file.
52792         * lib/mkstemp.h: Remove file.
52793         * m4/stdlib_h.m4: New file.
52794         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
52795
52796 2007-02-18  Bruno Haible  <bruno@clisp.org>
52797
52798         * modules/math-tests: New file.
52799         * tests/test-math.c: New file.
52800
52801         * modules/math: New file.
52802         * modules/mathl (Files): Remove lib/mathl.h.
52803         (Depends-on): Add math.
52804         (Makefile.am): Don't mention mathl.h.
52805         (Include): Use <math.h> instead of mathl.h.
52806         * lib/math_.h: New file.
52807         * lib/mathl.h: Remove file.
52808         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
52809         mathl.h.
52810         * lib/asinl.c: Likewise.
52811         * lib/atanl.c: Likewise.
52812         * lib/ceill.c: Likewise.
52813         * lib/cosl.c: Likewise.
52814         * lib/expl.c: Likewise.
52815         * lib/floorl.c: Likewise.
52816         * lib/frexpl.c: Likewise.
52817         * lib/ldexpl.c: Likewise.
52818         * lib/logl.c: Likewise.
52819         * lib/sincosl.c: Likewise.
52820         * lib/sinl.c: Likewise.
52821         * lib/sqrtl.c: Likewise.
52822         * lib/tanl.c: Likewise.
52823         * lib/trigl.c: Likewise.
52824         * m4/math_h.m4: New file.
52825         * MODULES.html.sh (Mathematics): Add math.
52826
52827 2007-02-17  Bruno Haible  <bruno@clisp.org>
52828
52829         * modules/wctype-tests: New file.
52830         * tests/test-wctype.c: New file.
52831
52832         * modules/wchar-tests: New file.
52833         * tests/test-wchar.c: New file.
52834
52835         * modules/unistd-tests: New file.
52836         * tests/test-unistd.c: New file.
52837
52838         * modules/time-tests: New file.
52839         * tests/test-time.c: New file.
52840
52841         * modules/sysexits-tests: New file.
52842         * tests/test-sysexits.c: New file.
52843
52844         * modules/sys_time-tests: New file.
52845         * tests/test-sys_time.c: New file.
52846
52847         * modules/sys_stat-tests: New file.
52848         * tests/test-sys_stat.c: New file.
52849
52850         * modules/sys_socket-tests: New file.
52851         * tests/test-sys_socket.c: New file.
52852
52853         * modules/sys_select-tests: New file.
52854         * tests/test-sys_select.c: New file.
52855
52856         * modules/string-tests: New file.
52857         * tests/test-string.c: New file.
52858
52859         * modules/stdbool-tests: New file.
52860         * tests/test-stdbool.c: New file.
52861
52862         * modules/netinet_in-tests: New file.
52863         * tests/test-netinet_in.c: New file.
52864
52865         * modules/inttypes-tests: New file.
52866         * tests/test-inttypes.c: New file.
52867
52868         * modules/fcntl-tests: New file.
52869         * tests/test-fcntl.c: New file.
52870
52871         * modules/byteswap-tests: New file.
52872         * tests/test-byteswap.c: New file.
52873
52874         * modules/arpa_inet-tests: New file.
52875         * tests/test-arpa_inet.c: New file.
52876
52877 2007-02-17  Bruno Haible  <bruno@clisp.org>
52878
52879         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
52880         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
52881         if the corresponding module is not enabled. Emit link warnings if
52882         the function is used nevertheless.
52883         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
52884         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
52885         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
52886         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
52887         * modules/inttypes (Depends-on): Add link-warning.
52888         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52889         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
52890         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
52891         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
52892         * modules/imaxdiv (configure.ac): Likewise.
52893         * modules/strtoimax (configure.ac): Likewise.
52894         * modules/strtoumax (configure.ac): Likewise.
52895
52896 2007-02-17  Bruno Haible  <bruno@clisp.org>
52897
52898         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
52899         gl_STRING_MODULE_INDICATOR_DEFAULTS.
52900         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52901         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52902
52903 2007-02-17  Bruno Haible  <bruno@clisp.org>
52904
52905         * modules/link-warning: New file.
52906         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
52907         * lib/string_.h (GL_LINK_WARNING): Remove definition.
52908         * modules/string (Depends-on): Add link-warning.
52909         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52910         string.h.
52911         * MODULES.html.sh (Support for building libraries and executables): Add
52912         link-warning.
52913
52914 2007-02-17  Bruno Haible  <bruno@clisp.org>
52915
52916         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
52917         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
52918         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
52919         long lines.
52920
52921 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
52922             Bruno Haible  <bruno@clisp.org>
52923
52924         * modules/tmpfile: New file.
52925         * lib/tmpfile.c: New file.
52926         * m4/tmpfile.m4: New file.
52927         * MODULES.html.sh (func_all_modules): New section "Input/output".
52928
52929 2007-02-15  Bruno Haible  <bruno@clisp.org>
52930
52931         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
52932         (supports_delete_on_close): New function.
52933         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
52934
52935 2007-02-14  Bruno Haible  <bruno@clisp.org>
52936
52937         * modules/mbspcasecmp-tests: New file.
52938         * tests/test-mbspcasecmp.sh: New file.
52939         * tests/test-mbspcasecmp.c: New file.
52940
52941         New module mbspcasecmp.
52942         * modules/mbspcasecmp: New file.
52943         * lib/mbspcasecmp.c: New file.
52944         * lib/string_.h (strncasecmp): Change warning message.
52945         (mbspcasecmp): New declaration.
52946         * m4/mbspcasecmp.m4: New file.
52947         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52948         GNULIB_MBSPCASECMP.
52949         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
52950         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
52951
52952 2007-02-14  Bruno Haible  <bruno@clisp.org>
52953
52954         * modules/mbsncasecmp-tests: New file.
52955         * tests/test-mbsncasecmp.sh: New file.
52956         * tests/test-mbsncasecmp.c: New file.
52957
52958         New module mbsncasecmp.
52959         * modules/mbsncasecmp: New file.
52960         * lib/mbsncasecmp.c: New file.
52961         * lib/string_.h (mbsncasecmp): New declaration.
52962         * m4/mbsncasecmp.m4: New file.
52963         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52964         GNULIB_MBSNCASECMP.
52965         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
52966         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
52967
52968 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52969
52970         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
52971         Verify that it doesn't overlap with our flags.
52972         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
52973         do not have the desired effect in multibyte locales; instead, use
52974         mbscasecmp.
52975         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
52976         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
52977         we don't require GNU fnmatch ourselves (if our users require it, they
52978         should do so explicitly).
52979
52980         Fix regex code so it doesn't rely on strcasecmp.
52981         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
52982         Otherwise, include gnulib's langinfo.h.
52983         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
52984         undesirable behavior in non-C locales.  Instead, rely on localecharset.
52985         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
52986         * modules/regex (FILES): Remove m4/codeset.m4.
52987         (Depends-on): Add localcharset.  Remove strcase.
52988
52989 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52990
52991         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
52992         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52993
52994 2007-02-13  Bruno Haible  <bruno@clisp.org>
52995
52996         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
52997         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52998
52999 2007-02-12  Bruno Haible  <bruno@clisp.org>
53000
53001         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53002         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
53003         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
53004         time warning rather than a link error.
53005
53006 2007-02-12  Bruno Haible  <bruno@clisp.org>
53007
53008         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
53009         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53010         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53011
53012 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53013
53014         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
53015         args, not 2.
53016
53017 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53018
53019         New module 'time', so that apps can include <time.h> as per
53020         POSIX and GNU instead of separate include files like time_r.h
53021         and timegm.h.  This implementation tries out a simpler approach
53022         for replacing decls in standard include files (as compared to
53023         the string module), somewhat as an experiment.
53024
53025         * config/srclist.txt: Comment out mktime.c for now.
53026         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
53027         since it doesn't apply any more.  Use generic wording instead.
53028         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
53029         'time'.
53030         * lib/time_.h, m4/time_h.m4, modules/time: New files.
53031         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
53032         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
53033         Don't include <sys/types.h>; no longer needed since we assume C89.
53034         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
53035         * lib/strftime.c: Likewise.
53036         * lib/time_r.c: Likewise.
53037         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
53038         * lib/nanosleep.c: Include <time.h> first, to check interface.
53039         * lib/strptime.c: Likewise.
53040         * lib/time_r.c: Likewise.
53041         * lib/timegm.c: Likewise.
53042         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
53043         needed.
53044         * lib/timegm.c: Don't include timegm.h; no longer needed.
53045         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
53046         time.h now handles any problems in that area.
53047         (struct timespec, nanosleep): Remove; time.h now arranges for these.
53048         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
53049         that time.h defines struct timespec.
53050         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
53051         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
53052         handles that.
53053         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
53054         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
53055         needed.  Set REPLACE_LOCALTIME.
53056         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
53057         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
53058         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
53059         nanosleep; time_h.m4 now does that.  Don't require
53060         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
53061         module handles this now.
53062         * modules/getdate (Depends-on): Remove timespec.  Add time.
53063         * modules/nanosleep (Depends-on): Likewise.
53064         * modules/stat-time (Depends-on): Likewise.
53065         * modules/nanosleep (Include): Include time.h, not timespec.h.
53066         * modules/strptime (Files): Remove lib/strptime.h.
53067         (Depends-on): Add extensions, time.
53068         (Include): Include time.h, not strptime.h.
53069         * modules/time_r (Files): Remove lib/time_r.h.
53070         (Depends-on): Add time.
53071         (Include): Include time.h, not time_r.h.
53072         * modules/timegm: Likewise.
53073         * modules/timespec (Description): Now does timespec-related decls
53074         of our own, instead of struct timespec itself.
53075         (Depends-on): Add time; remove extensions.
53076         (Maintainer): Add self.
53077         * modules/utimecmp (Depends-on): Add time; remove timespec.
53078         * modules/utimens (Depends-on): Likewise.
53079         * modules/xnanosleep (Depends-on): Likewise.
53080
53081 2007-02-11  Bruno Haible  <bruno@clisp.org>
53082
53083         * lib/c-strstr.c: Include allocsa.h.
53084         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53085         * lib/c-strcasestr.c: Include allocsa.h.
53086         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53087         * lib/strcasestr.c: Include allocsa.h.
53088         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53089         * lib/mbsstr.c: Include allocsa.h.
53090         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53091         allocsa/freesa instead of malloc/free.
53092         * lib/mbscasestr.c: Include allocsa.h.
53093         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53094         allocsa/freesa instead of malloc/free.
53095         * modules/c-strstr (Depends-on): Add allocsa.
53096         * modules/c-strcasestr (Depends-on): Likewise.
53097         * modules/strcasestr (Depends-on): Likewise.
53098         * modules/mbsstr (Depends-on): Likewise.
53099         * modules/mbscasestr (Depends-on): Likewise.
53100
53101 2007-02-11  Bruno Haible  <bruno@clisp.org>
53102
53103         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
53104
53105         * modules/mbsspn-tests: New file.
53106         * tests/test-mbsspn.sh: New file.
53107         * tests/test-mbsspn.c: New file.
53108
53109 2007-02-11  Bruno Haible  <bruno@clisp.org>
53110
53111         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
53112
53113         * modules/mbspbrk-tests: New file.
53114         * tests/test-mbspbrk.sh: New file.
53115         * tests/test-mbspbrk.c: New file.
53116
53117 2007-02-11  Bruno Haible  <bruno@clisp.org>
53118
53119         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
53120         unneeded cast.
53121
53122         * modules/mbscspn-tests: New file.
53123         * tests/test-mbscspn.sh: New file.
53124         * tests/test-mbscspn.c: New file.
53125
53126 2007-02-11  Bruno Haible  <bruno@clisp.org>
53127
53128         * modules/mbscasecmp-tests: New file.
53129         * tests/test-mbscasecmp.sh: New file.
53130         * tests/test-mbscasecmp.c: New file.
53131
53132 2007-02-11  Bruno Haible  <bruno@clisp.org>
53133
53134         Ensure O(n) worst-case complexity of mbscasestr.
53135         * lib/mbscasestr.c: Include stdbool.h.
53136         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53137         functions.
53138         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
53139         the bookkeeping indicates that it's worth it.
53140         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
53141
53142         * modules/mbscasestr-tests: New file.
53143         * tests/test-mbscasestr1.c: New file.
53144         * tests/test-mbscasestr2.sh: New file.
53145         * tests/test-mbscasestr2.c: New file.
53146         * tests/test-mbscasestr3.sh: New file.
53147         * tests/test-mbscasestr3.c: New file.
53148         * tests/test-mbscasestr4.sh: New file.
53149         * tests/test-mbscasestr4.c: New file.
53150         * m4/locale-tr.m4: New file.
53151
53152 2007-02-11  Bruno Haible  <bruno@clisp.org>
53153
53154         Ensure O(n) worst-case complexity of mbsstr.
53155         * lib/mbsstr.c: Include stdbool.h.
53156         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53157         functions.
53158         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
53159         bookkeeping indicates that it's worth it.
53160         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
53161
53162         * modules/mbsstr-tests: New file.
53163         * tests/test-mbsstr1.c: New file.
53164         * tests/test-mbsstr2.sh: New file.
53165         * tests/test-mbsstr2.c: New file.
53166         * tests/test-mbsstr3.sh: New file.
53167         * tests/test-mbsstr3.c: New file.
53168         * m4/locale-fr.m4: New file.
53169
53170 2007-02-11  Bruno Haible  <bruno@clisp.org>
53171
53172         * lib/mbsrchr.c (mbsrchr): Fix bug.
53173
53174         * modules/mbsrchr-tests: New file.
53175         * tests/test-mbsrchr.sh: New file.
53176         * tests/test-mbsrchr.c: New file.
53177
53178 2007-02-11  Bruno Haible  <bruno@clisp.org>
53179
53180         * lib/mbschr.c (mbschr): Fix bug.
53181
53182         * modules/mbschr-tests: New file.
53183         * tests/test-mbschr.sh: New file.
53184         * tests/test-mbschr.c: New file.
53185         * m4/locale-zh.m4: New file.
53186
53187 2007-02-11  Bruno Haible  <bruno@clisp.org>
53188
53189         Support for copying multibyte string iterators.
53190         * lib/mbiter.h: Include <string.h>.
53191         (mbiter_multi_copy): New function.
53192         (mbi_copy): New macro.
53193         * lib/mbuiter.h: Include <string.h>.
53194         (mbuiter_multi_copy): New function.
53195         (mbui_copy): New macro.
53196
53197 2007-02-11  Bruno Haible  <bruno@clisp.org>
53198
53199         New module mbslen.
53200         * modules/mbslen: New file.
53201         * lib/mbslen.c: New file.
53202         * lib/string_.h (mbslen): New declaration.
53203         * m4/mbslen.m4: New file.
53204         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53205         GNULIB_MBSLEN.
53206         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
53207         * MODULES.html.sh (Internationalization functions): Add mbslen.
53208
53209 2007-02-11  Bruno Haible  <bruno@clisp.org>
53210
53211         Ensure O(n) worst-case complexity of strcasestr substitute.
53212         * lib/strcasestr.c: Include stdbool.h.
53213         (knuth_morris_pratt): New function.
53214         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53215         bookkeeping indicates that it's worth it.
53216         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
53217
53218         * modules/strcasestr-tests: New file.
53219         * tests/test-strcasestr.c: New file.
53220
53221 2007-02-11  Bruno Haible  <bruno@clisp.org>
53222
53223         Ensure O(n) worst-case complexity of c_strcasestr.
53224         * lib/c-strcasestr.c: Include stdbool.h, string.h.
53225         (knuth_morris_pratt): New function.
53226         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
53227         the bookkeeping indicates that it's worth it.
53228         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
53229
53230         * modules/c-strcasestr-tests: New file.
53231         * tests/test-c-strcasestr.c: New file.
53232
53233 2007-02-11  Bruno Haible  <bruno@clisp.org>
53234
53235         Ensure O(n) worst-case complexity of c_strstr.
53236         * lib/c-strstr.c: Include stdbool.h, string.h.
53237         (knuth_morris_pratt): New function.
53238         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53239         bookkeeping indicates that it's worth it.
53240         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
53241
53242         * lib/c-strstr.c: Complete rewrite for maintainability.
53243
53244         * modules/c-strstr-tests: New file.
53245         * tests/test-c-strstr.c: New file.
53246
53247 2007-02-11  Bruno Haible  <bruno@clisp.org>
53248
53249         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
53250         5.2.1 and earlier, whereby \055 was treated just like the range
53251         delimiter '-'.
53252         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53253
53254 2007-02-08  Bruno Haible  <bruno@clisp.org>
53255
53256         * modules/regex (Depends-on): Add stdbool.
53257         Reported by Dalibor Topic <robilad@kaffe.org>.
53258
53259 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53260
53261         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
53262         Prefer returning from main to exiting from it.
53263         Remove unnecessary parens after sizeof.
53264
53265 2007-02-05  Bruno Haible  <bruno@clisp.org>
53266
53267         New module mbssep.
53268         * modules/mbssep: New file.
53269         * lib/mbssep.c: New file.
53270         * lib/string_.h (strsep): Add a conditional link warning.
53271         (mbssep): New declaration.
53272         * m4/mbssep.m4: New file.
53273         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53274         GNULIB_MBSSEP.
53275         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
53276         * MODULES.html.sh (Internationalization functions): Add mbssep.
53277
53278 2007-02-05  Bruno Haible  <bruno@clisp.org>
53279
53280         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
53281         Optimize search in case of 1 delimiter.
53282
53283 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53284
53285         * lib/acl.h: Include sys/types.h before sys/acl.h.
53286
53287 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53288
53289         Merge upstream fix for glibc bugzilla #3957:
53290
53291         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
53292
53293         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
53294         bit for RE_HAT_LISTS_NOT_NEWLINE.
53295         (build_charclass_op): Remove bogus comment.
53296
53297 2007-02-05  Simon Josefsson  <simon@josefsson.org>
53298
53299         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
53300
53301 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53302
53303         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
53304         * lib/memmem.c [!defined _LIBC]: Include config.h.
53305
53306 2007-02-04  Bruno Haible  <bruno@clisp.org>
53307
53308         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
53309         warning message.
53310
53311 2007-02-04  Bruno Haible  <bruno@clisp.org>
53312
53313         New module mbstok_r.
53314         * modules/mbstok_r: New file.
53315         * lib/mbstok_r.c: New file.
53316         * lib/string_.h (strtok_r): Change argument names to match the
53317         comments. Add a conditional link warning.
53318         (mbstok_r): New declaration.
53319         * m4/mbstok_r.m4: New file.
53320         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53321         GNULIB_MBSTOK_R.
53322         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
53323         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
53324
53325 2007-02-04  Bruno Haible  <bruno@clisp.org>
53326
53327         New module mbsspn.
53328         * modules/mbsspn: New file.
53329         * lib/mbsspn.c: New file.
53330         * lib/string_.h (strspn): Add a conditional link warning.
53331         (mbsspn): New declaration.
53332         * m4/mbsspn.m4: New file.
53333         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53334         GNULIB_MBSSPN.
53335         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
53336         * MODULES.html.sh (Internationalization functions): Add mbsspn.
53337
53338 2007-02-04  Bruno Haible  <bruno@clisp.org>
53339
53340         New module mbspbrk.
53341         * modules/mbspbrk: New file.
53342         * lib/mbspbrk.c: New file.
53343         * lib/string_.h (strpbrk): Add a conditional link warning.
53344         (mbspbrk): New declaration.
53345         * m4/mbspbrk.m4: New file.
53346         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53347         GNULIB_MBSPBRK.
53348         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
53349         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
53350
53351 2007-02-04  Bruno Haible  <bruno@clisp.org>
53352
53353         New module mbscspn.
53354         * modules/mbscspn: New file.
53355         * lib/mbscspn.c: New file.
53356         * lib/string_.h (strcspn): Add a conditional link warning.
53357         (mbscspn): New declaration.
53358         * m4/mbscspn.m4: New file.
53359         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53360         GNULIB_MBSCSPN.
53361         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
53362         * MODULES.html.sh (Internationalization functions): Add mbscspn.
53363
53364 2007-02-04  Bruno Haible  <bruno@clisp.org>
53365
53366         New module mbscasestr, reduced goal of strcasestr.
53367         * modules/mbscasestr: New file.
53368         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
53369         (mbscasestr): Renamed from strcasestr.
53370         * lib/strcasestr.c: Don't include mbuiter.h.
53371         (strcasestr): Remove support for multibyte locales.
53372         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
53373         Change the conditional link warning.
53374         (mbscasestr): New declaration.
53375         * m4/mbscasestr.m4: New file.
53376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
53377         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
53378         REPLACE_STRCASESTR.
53379         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
53380         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53381         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53382         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
53383         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
53384         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53385         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
53386         (Depends-on): Remove mbuiter.
53387         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
53388
53389 2007-02-04  Bruno Haible  <bruno@clisp.org>
53390
53391         Simplify handling of strncasecmp.
53392         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
53393         the conditional link warning.
53394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53395         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
53396         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
53397         * modules/strcase (configure.ac): Don't invoke
53398         gl_STRING_MODULE_INDICATOR.
53399         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
53400
53401 2007-02-04  Bruno Haible  <bruno@clisp.org>
53402
53403         New module mbscasecmp, reduced goal of strcasecmp.
53404         * modules/mbscasecmp: New file.
53405         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
53406         (mbscasecmp): Renamed from strcasecmp.
53407         * lib/strcasecmp.c: Don't include mbuiter.h.
53408         (strcasecmp): Remove support for multibyte locales.
53409         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
53410         Change the conditional link warning.
53411         (mbscasecmp): New declaration.
53412         * m4/mbscasecmp.m4: New file.
53413         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
53414         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
53415         REPLACE_STRCASECMP.
53416         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
53417         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53418         GNULIB_MBSCASECMP.
53419         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
53420         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
53421         * modules/strcase (Files): Remove m4/mbrtowc.m4.
53422         (Depends-on): Remove mbuiter.
53423         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
53424
53425 2007-02-04  Bruno Haible  <bruno@clisp.org>
53426
53427         New module mbsstr. Remove module strstr.
53428         * modules/mbsstr: New file.
53429         * modules/strstr: Remove file.
53430         * lib/mbsstr.c: Renamed from lib/strstr.c.
53431         (mbsstr): Renamed from strstr.
53432         * lib/string_.h (strstr): Remove declaration. Change the conditional
53433         link warning.
53434         (mbsstr): New declaration.
53435         * m4/mbsstr.m4: New file.
53436         * m4/strstr.m4: Remove file.
53437         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53438         REPLACE_STRSTR.
53439         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
53440         Don't initialize GNULIB_STRSTR.
53441         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
53442         substitute GNULIB_STRSTR and REPLACE_STRSTR.
53443         * MODULES.html.sh (Internationalization functions): Add mbsstr.
53444         (Support for systems lacking ANSI C 89): Remove strstr.
53445
53446 2007-02-04  Bruno Haible  <bruno@clisp.org>
53447
53448         New module mbsrchr.
53449         * modules/mbsrchr: New file.
53450         * lib/mbsrchr.c: New file.
53451         * lib/string_.h (strrchr): Add a conditional link warning.
53452         (mbsrchr): New declaration.
53453         * m4/mbsrchr.m4: New file.
53454         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53455         GNULIB_MBSRCHR.
53456         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
53457         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
53458
53459 2007-02-04  Bruno Haible  <bruno@clisp.org>
53460
53461         New module mbschr.
53462         * modules/mbschr: New file.
53463         * lib/mbschr.c: New file.
53464         * lib/string_.h (strchr): Add a conditional link warning.
53465         (mbschr): New declaration.
53466         * m4/mbschr.m4: New file.
53467         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53468         GNULIB_MBSCHR.
53469         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
53470         * MODULES.html.sh (Internationalization functions): Add mbschr.
53471
53472 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53473
53474         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
53475
53476         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
53477
53478 2007-02-04  Bruno Haible  <bruno@clisp.org>
53479
53480         New module description section 'configure.ac-early'.
53481         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
53482         (func_get_autoconf_early_snippet): New function.
53483         (func_import, func_create_testdir): Use it. Remove special cases for
53484         modules 'extensions' and 'lock'.
53485         * modules/extensions (configure.ac-early): Require
53486         gl_USE_SYSTEM_EXTENSIONS.
53487         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
53488
53489 2007-02-04  Bruno Haible  <bruno@clisp.org>
53490
53491         Make use of gcj-4.3's -fsource and -ftarget option.
53492         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
53493         and if so try the options -fsource and -ftarget.
53494         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
53495         source_version, ftarget_option, target_version arguments.
53496         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
53497         (is_envjavac_oldgcj_14_14_usable): Renamed from
53498         is_envjavac_gcj_14_14_usable.
53499         (is_envjavac_oldgcj_14_13_usable): Renamed from
53500         is_envjavac_gcj_14_13_usable.
53501         (is_gcj_present): Update.
53502         (is_gcj_43, is_gcj43_usable): New functions.
53503         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
53504         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
53505         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
53506         try the options -fsource and -ftarget.
53507
53508 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53509
53510         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
53511         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
53512         larger value.
53513
53514 2007-02-03  Jim Meyering  <jim@meyering.net>
53515
53516         Give tools a better chance to allocate space for very large buffers.
53517         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
53518
53519         Make pwd and readlink work also when run with an unreadable parent dir
53520         on systems with openat support.
53521         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
53522         provided getcwd function, even when we have openat support.
53523         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
53524
53525 2007-02-02  Bruno Haible  <bruno@clisp.org>
53526
53527         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53528         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
53529         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
53530         portability problems if one of these functions is only used on specific
53531         platforms.
53532         Reported by Paul Eggert.
53533
53534 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
53535
53536         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
53537         is causing more trouble than it's curing.
53538         * lib/regex_internal.h (__mempcpy): Remove.
53539         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
53540         (and make the code a tad smaller to boot).
53541         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
53542
53543 2007-02-02  Jim Meyering  <jim@meyering.net>
53544
53545         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
53546         section, not in the Makefile.am: one.
53547
53548 2007-02-02  Eric Blake  <ebb9@byu.net>
53549
53550         * lib/strchrnul.c: Always include config.h first.
53551
53552         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
53553         gnulib strstr is not necessary here.
53554
53555 2007-02-02  Simon Josefsson  <simon@josefsson.org>
53556
53557         * m4/socklen.m4: Fix typo.
53558
53559 2007-02-02  Eric Blake  <ebb9@byu.net>
53560
53561         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
53562         * modules/netinet_in (Makefile.am): Likewise.
53563
53564 2007-02-01  Bruno Haible  <bruno@clisp.org>
53565
53566         * lib/string_.h (GL_LINK_WARNING): New macro.
53567         (strcasecmp, strstr, strcasestr): If provided by the system,
53568         conditionally define as a macro that leads to a warning instead of to
53569         an error.
53570         (strncasecmp): Conditionally define as a macro that leads to a warning.
53571
53572 2007-02-01  Karl Berry  <karl@gnu.org>
53573
53574         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
53575
53576 2007-02-01  Bruno Haible  <bruno@clisp.org>
53577
53578         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
53579         renamings.
53580
53581 2007-02-01  Eric Blake  <ebb9@byu.net>
53582
53583         * modules/regex (Depends-on): Revert dependence on mempcpy.
53584         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
53585         module's definition of mempcpy.
53586         Reported by Paul Eggert.
53587
53588 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53589
53590         * lib/string_.h: If the gnulib module XYZ is not present, undefine
53591         the symbol XYZ before redefining it.  This fixes a problem with
53592         programs that don't use XYZ, when compiled on systems that define
53593         XYZ to something else.
53594
53595 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
53596
53597         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
53598         occurs when "mkdir -m foo" creates a setgid directory that is (1)
53599         writeable to group or other and (2) is intended to have a special
53600         mode bit that is set or cleared.  In such a case, the directory
53601         should be neither group- nor other-writeable until the special
53602         mode bits are right.
53603
53604 2007-01-31  Eric Blake  <ebb9@byu.net>
53605
53606         * modules/mountlist (Depends-on): Add strstr.
53607
53608         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
53609         bug.
53610         * modules/string (Makefile.am): Remove redundant replacement.
53611         * modules/regex (Depends-on): Add mempcpy.
53612
53613 2007-01-31  Bruno Haible  <bruno@clisp.org>
53614
53615         New module description field 'Link'.
53616         * gnulib-tool (func_usage): Document --extract-link-directive.
53617         (sed_extract_prog): Recognize 'Link' directive.
53618         (func_get_link_directive): New function.
53619         (func_import): Show summary of link directives.
53620         Handle --extract-link-directive option.
53621         * modules/acl (Link): New section.
53622         * modules/clock-time (Link): New section.
53623         * modules/euidaccess (Link): New section.
53624         * modules/gettext (Link): New section.
53625         * modules/iconv (Link): New section.
53626         * modules/lock (Link): New section.
53627         * modules/nanosleep (Link): New section.
53628         * modules/readline (Link): New section.
53629
53630 2007-01-27  Bruno Haible  <bruno@clisp.org>
53631
53632         Enforce the use of gnulib modules for unportable <string.h> functions.
53633         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
53634         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
53635         (gl_HEADER_STRING_H_BODY): Require it.
53636         * lib/string_.h: If the gnulib module XYZ is not present, redefine
53637         the symbol XYZ to one that gives a link error.
53638         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
53639         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
53640         * modules/mempcpy (configure.ac): Likewise.
53641         * modules/memrchr (configure.ac): Likewise.
53642         * modules/stpcpy (configure.ac): Likewise.
53643         * modules/stpncpy (configure.ac): Likewise.
53644         * modules/strcase (configure.ac): Likewise.
53645         * modules/strcasestr (configure.ac): Likewise.
53646         * modules/strchrnul (configure.ac): Likewise.
53647         * modules/strdup (configure.ac): Likewise.
53648         * modules/strndup (configure.ac): Likewise.
53649         * modules/strnlen (configure.ac): Likewise.
53650         * modules/strpbrk (configure.ac): Likewise.
53651         * modules/strsep (configure.ac): Likewise.
53652         * modules/strstr (configure.ac): Likewise.
53653         * modules/strtok_r (configure.ac): Likewise.
53654
53655 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
53656
53657         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
53658
53659 2007-01-30  Jim Meyering  <jim@meyering.net>
53660
53661         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
53662
53663 2007-01-29  Bruno Haible  <bruno@clisp.org>
53664
53665         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
53666         * lib/execute.c: Likewise.
53667         * lib/pipe.c: Likewise.
53668         * lib/printf-args.h: Likewise.
53669         * lib/printf-args.c: Likewise.
53670         * lib/printf-parse.c: Likewise.
53671         * lib/vasnprintf.c: Likewise.
53672
53673 2007-01-29  Eric Blake  <ebb9@byu.net>
53674
53675         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
53676         declaration.
53677
53678 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
53679
53680         * lib/strptime.h (strptime): Use 'restrict' for args where
53681         POSIX requires this.
53682         * lib/strptime.c (strptime): Likewise.
53683         Change license notice from LGPL to GPL, since gnulib-tool will
53684         change this as needed.
53685         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
53686         defined.
53687         Include "strptime.h" first, to check interface.
53688         Do not #undef _LIBC and _NL_CURRENT.
53689         Do not include <stdlib.h>; no longer needed.
53690         Include "time_r.h" and declare ptime_locale_status
53691         only if _LIBC is not defined.
53692         (__P): Remove unused macro.
53693         (match_string): Bring back glibc version, but use it only if _LIBC
53694         is defined.
53695         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
53696         Remove unnecessary assertion and abort() call.
53697         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
53698         * m4/strptime.m4: Fix serial number comment.
53699         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
53700         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
53701         (Depends-on): Add time_r.
53702
53703 2007-01-29  Bruno Haible  <bruno@clisp.org>
53704
53705         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53706         strptime.
53707         * modules/strptime (Depends-on): Add stdbool.
53708         * lib/strptime.h: Include <time.h> always. Add comments.
53709
53710 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53711
53712         * modules/strptime: New file.
53713         * lib/strptime.h: New file.
53714         * lib/strptime.c: New file.
53715         * m4/strptime.m4: New file.
53716
53717 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53718
53719         * MODULES.html.sh: New module mpsort.
53720         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
53721
53722         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
53723         a circularity problem with HP-UX ia64 reported by Bob Proulx in
53724         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
53725         All uses changed.
53726         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
53727         All uses changed.
53728         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
53729         to _Restrict_.
53730         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
53731         the parameter matches the prototype.
53732
53733 2007-01-28  Jim Meyering  <jim@meyering.net>
53734
53735         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
53736         sys/time.h here, reverting that part of the previous patch:
53737         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
53738
53739 2007-01-28  Bruno Haible  <bruno@clisp.org>
53740
53741         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
53742         value of $(SYS_TIME_H).
53743         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
53744         remove it conditionally, too. [added by Jim Meyering]
53745         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
53746         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53747         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
53748         GETTIMEOFDAY_REPLACEMENT to 1.
53749
53750 2007-01-28  Bruno Haible  <bruno@clisp.org>
53751
53752         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
53753         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
53754         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
53755         Set UNISTD_H instead of UNISTD_H2.
53756         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
53757
53758 2007-01-28  Bruno Haible  <bruno@clisp.org>
53759
53760         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
53761         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
53762
53763 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53764
53765         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
53766         (func_create_testdir): Ensure C locale for `grep' and `tr'
53767         character ranges.
53768         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
53769         ACLOCAL_AMFLAGS parsing state machine.
53770
53771 2007-01-27  Bruno Haible  <bruno@clisp.org>
53772
53773         * modules/unistr/base: Update.
53774
53775 2007-01-27  Bruno Haible  <bruno@clisp.org>
53776
53777         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
53778         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
53779         * modules/unistr/u32-mbtouc-unsafe: Renamed from
53780         modules/unistr/u32-mbtouc.
53781         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
53782         * lib/unistr.h: Update.
53783         * lib/linebreak.c: Update.
53784         * modules/unistr/u32-mbtouc: Renamed from
53785         modules/unistr/u32-mbtouc-safe.
53786         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
53787         * lib/unistr.h: Update.
53788         * lib/unistr/u32-to-u8.c: Update.
53789         * lib/unistr/u32-to-u16.c: Update.
53790
53791 2007-01-27  Bruno Haible  <bruno@clisp.org>
53792
53793         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
53794         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
53795         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
53796         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
53797         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
53798         * modules/unistr/u16-mbtouc-unsafe: Renamed from
53799         modules/unistr/u16-mbtouc.
53800         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
53801         * lib/unistr.h: Update.
53802         * lib/linebreak.c: Update.
53803         * modules/linebreak: Update.
53804         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
53805         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
53806         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
53807         * modules/unistr/u16-mbtouc: Renamed from
53808         modules/unistr/u16-mbtouc-safe.
53809         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
53810         * lib/unistr.h: Update.
53811         * lib/unistr/u16-to-u8.c: Update.
53812         * modules/unistr/u16-to-u8: Update.
53813         * lib/unistr/u16-to-u32.c: Update.
53814         * modules/unistr/u16-to-u32: Update.
53815
53816 2007-01-27  Bruno Haible  <bruno@clisp.org>
53817
53818         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
53819         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
53820         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
53821         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
53822         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
53823         * modules/unistr/u8-mbtouc-unsafe: Renamed from
53824         modules/unistr/u8-mbtouc.
53825         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
53826         * lib/unistr.h: Update.
53827         * lib/striconveh.c: Update.
53828         * modules/striconveh: Update.
53829         * lib/linebreak.c: Update.
53830         * modules/linebreak: Update.
53831         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
53832         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
53833         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
53834         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
53835         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
53836         * lib/unistr.h: Update.
53837         * lib/striconveh.c: Update.
53838         * modules/striconveh: Update.
53839         * lib/unistr/u8-to-u16.c: Update.
53840         * modules/unistr/u8-to-u16: Update.
53841         * lib/unistr/u8-to-u32.c: Update.
53842         * modules/unistr/u8-to-u32: Update.
53843
53844 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53845
53846         Sync from Libtool.
53847         * lib/argz.c: Do not include strings.h nor memory.h, include
53848         string.h unconditionally.  Patch by Simon Josefsson.
53849
53850 2007-01-27  Bruno Haible  <bruno@clisp.org>
53851
53852         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
53853         from gl_HEADER_STRING_H_BODY.
53854         (gl_HEADER_STRING_H_BODY): Require it.
53855         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
53856         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53857         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53858         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53859         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53860         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
53861         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53862         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53863         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
53864         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53865         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53866         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
53867         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53868         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53869         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53870
53871 2007-01-27  Bruno Haible  <bruno@clisp.org>
53872
53873         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
53874         check_PROGRAMS into noinst_PROGRAMS.
53875         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
53876         check_PROGRAMS in this case.
53877         (func_import): Set for_test to false.
53878         (func_create_testdir): Set for_test to true.
53879
53880 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53881             Bruno Haible  <bruno@clisp.org>
53882
53883         * modules/strcasestr (Files): Remove lib/strcasestr.h.
53884         (Depends-on): Add string.
53885         (Includes): Use <string.h> instead of strcasestr.h.
53886         * modules/string (Makefile.am): Also substitute the value of
53887         REPLACE_STRCASESTR.
53888         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
53889         assume strcasestr is declared in <string.h> not <strings.h>. Also
53890         set REPLACE_STRCASESTR.
53891         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
53892         REPLACE_STRCASESTR.
53893         * lib/strcasestr.h: Remove file.
53894         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
53895         * lib/string_.h (strcasestr): New declaration.
53896
53897 2007-01-27  Bruno Haible  <bruno@clisp.org>
53898
53899         * lib/string_.h: Use 'extern'.
53900
53901 2007-01-27  Jim Meyering  <jim@meyering.net>
53902
53903         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53904         of set-but-not-used local, "q".
53905
53906         * lib/mempcpy.c: Include <config.h> before <string.h>.
53907         This fixes a compilation error on HP-UX, due to the system's
53908         "restrict"-using mempcpy prototype.
53909
53910 2007-01-26  Bruno Haible  <bruno@clisp.org>
53911
53912         Small optimization.
53913         * lib/javacomp.c: Include c-strstr.h.
53914          (is_envjavac_gcj): Use c_strstr instead of strstr.
53915         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
53916
53917 2007-01-26  Bruno Haible  <bruno@clisp.org>
53918
53919         * MODULES.html.sh (Unicode string functions): Add the new modules.
53920
53921         * modules/uniconv/u32-strconv-to-locale: New file.
53922         * lib/uniconv/u32-strconv-to-locale.c: New file.
53923
53924         * modules/uniconv/u16-strconv-to-locale: New file.
53925         * lib/uniconv/u16-strconv-to-locale.c: New file.
53926
53927         * modules/uniconv/u8-strconv-to-locale: New file.
53928         * lib/uniconv/u8-strconv-to-locale.c: New file.
53929
53930         * modules/uniconv/u32-strconv-from-locale: New file.
53931         * lib/uniconv/u32-strconv-from-locale.c: New file.
53932
53933         * modules/uniconv/u16-strconv-from-locale: New file.
53934         * lib/uniconv/u16-strconv-from-locale.c: New file.
53935
53936         * modules/uniconv/u8-strconv-from-locale: New file.
53937         * lib/uniconv/u8-strconv-from-locale.c: New file.
53938
53939         * modules/uniconv/u32-strconv-to-enc: New file.
53940         * lib/uniconv/u32-strconv-to-enc.c: New file.
53941         * modules/uniconv/u32-strconv-to-enc-tests: New file.
53942         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
53943
53944         * modules/uniconv/u16-strconv-to-enc: New file.
53945         * lib/uniconv/u16-strconv-to-enc.c: New file.
53946         * lib/uniconv/u-strconv-to-enc.h: New file.
53947         * modules/uniconv/u16-strconv-to-enc-tests: New file.
53948         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
53949
53950         * modules/uniconv/u8-strconv-to-enc: New file.
53951         * lib/uniconv/u8-strconv-to-enc.c: New file.
53952         * modules/uniconv/u8-strconv-to-enc-tests: New file.
53953         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
53954
53955         * modules/uniconv/u32-strconv-from-enc: New file.
53956         * lib/uniconv/u32-strconv-from-enc.c: New file.
53957         * modules/uniconv/u32-strconv-from-enc-tests: New file.
53958         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
53959
53960         * modules/uniconv/u16-strconv-from-enc: New file.
53961         * lib/uniconv/u16-strconv-from-enc.c: New file.
53962         * modules/uniconv/u16-strconv-from-enc-tests: New file.
53963         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
53964
53965         * modules/uniconv/u8-strconv-from-enc: New file.
53966         * lib/uniconv/u8-strconv-from-enc.c: New file.
53967         * lib/uniconv/u-strconv-from-enc.h: New file.
53968         * modules/uniconv/u8-strconv-from-enc-tests: New file.
53969         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
53970
53971         * modules/uniconv/u32-conv-from-enc: New file.
53972         * lib/uniconv/u32-conv-from-enc.c: New file.
53973         * modules/uniconv/u32-conv-from-enc-tests: New file.
53974         * tests/uniconv/test-u32-conv-from-enc.c: New file.
53975
53976         * modules/uniconv/u16-conv-from-enc: New file.
53977         * lib/uniconv/u16-conv-from-enc.c: New file.
53978         * lib/uniconv/u-conv-from-enc.h: New file.
53979         * modules/uniconv/u16-conv-from-enc-tests: New file.
53980         * tests/uniconv/test-u16-conv-from-enc.c: New file.
53981
53982         * modules/uniconv/u8-conv-from-enc: New file.
53983         * lib/uniconv/u8-conv-from-enc.c: New file.
53984         * modules/uniconv/u8-conv-from-enc-tests: New file.
53985         * tests/uniconv/test-u8-conv-from-enc.c: New file.
53986
53987         * modules/uniconv/base: New file.
53988         * lib/uniconv.h: New file.
53989
53990 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53991
53992         * doc/gnulib-tool.texi (Initial import): Update to match current
53993         behavior with strdup module.
53994         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
53995         * lib/memmem.h: Remove; all uses removed.  This is now done
53996         by <string.h>.
53997         * lib/mempcpy.h: Likewise.
53998         * lib/memrchr.h: Likewise.
53999         * lib/stpcpy.h: Likewise.
54000         * lib/stpncpy.h: Likewise.
54001         * lib/strcase.h: Likewise.
54002         * lib/strchrnul.h: Likewise.
54003         * lib/strdup.h: Likewise.
54004         * lib/strndup.h: Likewise.
54005         * lib/strnlen.h: Likewise.
54006         * lib/strpbrk.h: Likewise.
54007         * lib/strsep.h: Likewise.
54008         * lib/strstr.h: Likewise.
54009         * lib/strtok_r.h: Likewise.
54010         * lib/string_.h: New file.
54011         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
54012         Rely on <string.h> instead.
54013         * lib/canon-host.c: Likewise.
54014         * lib/chdir-long.c: Likewise.
54015         * lib/concatpath.c: Likewise.
54016         * lib/exclude.c: Likewise.
54017         * lib/fchdir.c: Likewise.
54018         * lib/getaddrinfo.c: Likewise.
54019         * lib/getcwd.c: Likewise.
54020         * lib/getsubopt.c: Likewise.
54021         * lib/glob.c: Likewise.
54022         * lib/hard-locale.c: Likewise.
54023         * lib/iconvme.c: Likewise.
54024         * lib/javacomp.c: Likewise.
54025         * lib/mempcpy.c: Likewise.
54026         * lib/memrchr.c: Likewise.
54027         * lib/regex_internal.h: Likewise.
54028         * lib/stpncpy.c: Likewise.
54029         * lib/strcasecmp.c: Likewise.
54030         * lib/strchrnul.c: Likewise.
54031         * lib/strdup.c: Likewise.
54032         * lib/striconv.c: Likewise.
54033         * lib/striconveh.c: Likewise.
54034         * lib/striconveha.c: Likewise.
54035         * lib/strncasecmp.c: Likewise.
54036         * lib/strndup.c: Likewise.
54037         * lib/strnlen.c: Likewise.
54038         * lib/strsep.c: Likewise.
54039         * lib/strstr.c: Likewise.
54040         * lib/strtok_r.c: Likewise.
54041         * lib/userspec.c: Likewise.
54042         * lib/w32spawn.h: Likewise.
54043         * lib/xstrndup.c: Likewise.
54044         * lib/mountlist.c (strstr): Remove decl.
54045         * m4/string_h.m4: New file.
54046         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
54047         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
54048         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
54049         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
54050         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
54051         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
54052         Set REPLACE_STRCASECMP if necessary.
54053         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
54054         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
54055         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
54056         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
54057         HAVE_DECL_STRDUP if necessary.
54058         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
54059         since gl_FUNC_STRNDUP does that now.
54060         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
54061         Check for decl here...
54062         (gl_PREREQ_STRNLEN): ... not here.
54063         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
54064         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
54065         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
54066         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
54067         necessary.
54068         * modules/string: New file.
54069         * modules/memmem (Files): Remove special-purpose include file.
54070         (Depends-on): Add string.
54071         (Include): Include <string.h>, not the removed file.
54072         * modules/mempcpy: Likewise.
54073         * modules/memrchr: Likewise.
54074         * modules/stpcpy: Likewise.
54075         * modules/stpncpy: Likewise.
54076         * modules/strcase: Likewise.
54077         * modules/strchrnul: Likewise.
54078         * modules/strdup: Likewise.
54079         * modules/strndup: Likewise.
54080         * modules/strnlen: Likewise.
54081         * modules/strpbrk: Likewise.
54082         * modules/strsep: Likewise.
54083         * modules/strstr: Likewise.
54084         * modules/strtok_r: Likewise.
54085         * tests/test-dirname.c: Don't include "strdup.h", since
54086         <string.h> now suffices.
54087         * tests/test-memmem.c: Don't include "memmem.h", since
54088         <string.h> now suffices.
54089
54090 2007-01-25  Bruno Haible  <bruno@clisp.org>
54091
54092         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
54093         *resultp is 0.
54094
54095         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
54096         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
54097         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
54098         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
54099
54100         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
54101         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
54102         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
54103         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
54104         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
54105         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
54106
54107 2007-01-24  Bruno Haible  <bruno@clisp.org>
54108
54109         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
54110         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
54111         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
54112         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
54113         gl_FUNC_FTS_CORE.
54114         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
54115         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
54116         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54117         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
54118         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
54119         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
54120         gl_FUNC_FCHOWNAT.
54121         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
54122         gl_FUNC_STRFTIME.
54123         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
54124         Reported by Ralf Wildenhues.
54125
54126 2007-01-24  Bruno Haible  <bruno@clisp.org>
54127
54128         Drop AC_REQUIRE calls that are redundant with the module dependencies.
54129         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
54130         gl_GETADDRINFO.
54131         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
54132         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
54133         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
54134
54135 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
54136
54137         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
54138         Don't use 'exit'; just return from 'main'.
54139         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
54140
54141         * lib/fnmatch_.h: Readjust white space and comments to match
54142         glibc, to avoid spurious diffs.
54143
54144 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54145
54146         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
54147         2004-12-01 change by Jakub Jelinek, since this code won't compile
54148         if !LIBC.  Problem reported by Bob Proulx.
54149
54150 2007-01-23  Bruno Haible  <bruno@clisp.org>
54151
54152         * lib/striconveh.c: Include c-strcaseeq.h.
54153         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
54154         * modules/striconveh (Depends-on): Add c-strcaseeq.
54155
54156 2007-01-23  Bruno Haible  <bruno@clisp.org>
54157
54158         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
54159
54160         * modules/c-strcaseeq: New file.
54161         * lib/c-strcaseeq.h: New file.
54162
54163         * modules/streq: New file.
54164         * lib/streq.h: New file.
54165
54166 2007-01-23  Bruno Haible  <bruno@clisp.org>
54167
54168         * modules/striconveha-tests: New file.
54169         * tests/test-striconveha.c: New file.
54170
54171         * lib/striconveha.h: Include <stdbool.h>.
54172         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
54173         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
54174         (mem_iconveha_notranslit): Renamed from mem_iconveha.
54175         (mem_iconveha): New function.
54176         (str_iconveha_notranslit): Renamed from str_iconveha.
54177         (str_iconveha): New function.
54178         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
54179         c-strcase.
54180
54181 2007-01-23  Bruno Haible  <bruno@clisp.org>
54182
54183         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
54184         encodings without forgiving before trying any encoding with handler.
54185         (str_iconveha): Try all encodings without forgiving before trying any
54186         encoding with handler.
54187
54188 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54189
54190         Import the following changes from libc.
54191
54192         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54193
54194         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
54195
54196         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54197
54198         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
54199         normal_bracket label.
54200
54201         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
54202
54203         [BZ #361]
54204         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
54205         to normal_bracket after fetching the next character.
54206
54207 2007-01-22  Bruno Haible  <bruno@clisp.org>
54208
54209         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
54210         argument.
54211         * lib/striconveh.c (iconv_carefully_1): New function.
54212         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
54213         argument.
54214         (str_cd_iconveh): Update.
54215         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
54216         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
54217         * tests/test-striconveh.c (MAGIC): New macro.
54218         (new_offsets): New function.
54219         (main): Test call with and without offsets.
54220
54221 2007-01-22  Bruno Haible  <bruno@clisp.org>
54222
54223         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
54224         * modules/sys_select (Makefile.am): Likewise.
54225         * modules/sys_socket (Makefile.am): Likewise.
54226         * modules/sys_time (Makefile.am): Likewise.
54227
54228 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54229
54230         * modules/gettimeofday (License): Change from GPL to LGPL, since
54231         gettimeofday is a library function.
54232
54233 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54234
54235         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
54236
54237 2007-01-21  Bruno Haible  <bruno@clisp.org>
54238
54239         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
54240
54241 2007-01-21  Bruno Haible  <bruno@clisp.org>
54242
54243         * modules/striconveha: New file.
54244         * lib/striconveha.h: New file.
54245         * lib/striconveha.c: New file.
54246         * MODULES.html.sh (Internationalization functions): Add striconveha.
54247         * lib/striconv.c (str_iconv): Optimize the case of an empty input
54248         string.
54249         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
54250
54251 2007-01-21  Bruno Haible  <bruno@clisp.org>
54252
54253         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
54254         * lib/striconveh.c (str_iconveh): Likewise.
54255
54256 2007-01-21  Bruno Haible  <bruno@clisp.org>
54257
54258         * lib/striconveh.h (mem_iconveh): New declaration.
54259         * lib/striconveh.c (mem_iconveh): New function.
54260         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
54261
54262 2007-01-21  Bruno Haible  <bruno@clisp.org>
54263
54264         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
54265
54266         * lib/striconveh.h (mem_cd_iconveh): Change specification.
54267         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
54268         original result buffer.
54269         (str_cd_iconveh): Update.
54270         * tests/test-striconveh.c (main): Update.
54271
54272         * lib/striconv.h (mem_cd_iconv): Change specification.
54273         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
54274         result buffer.
54275         (str_cd_iconv): Update.
54276         * tests/test-striconv.c (main): Update.
54277
54278 2007-01-21  Bruno Haible  <bruno@clisp.org>
54279
54280         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
54281
54282 2007-01-20  Jim Meyering  <jim@meyering.net>
54283
54284         * lib/userspec.c (parse_with_separator): If a user or group string
54285         starts with "+", skip the corresponding name-to-ID look-up, since
54286         such a look-up must fail: user and group names may not include "+".
54287
54288 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54289
54290         * lib/poll.c: Include sys/time.h and time.h unconditionally,
54291         since we now assume the sys_time module.
54292         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
54293         check for sys/time.h; no longer needed.
54294         * modules/poll (Depends-on): Depend on sys_time.
54295
54296 2007-01-18  Bruno Haible  <bruno@clisp.org>
54297
54298         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
54299         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54300
54301         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
54302         gettimeofday.
54303
54304         * tests/test-gettimeofday.c: Include <time.h>.
54305         (dummy): Remove variable.
54306
54307         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
54308         gl_HEADER_SYS_TIME_H.
54309         (gl_HEADER_SYS_TIME_H): New macro.
54310
54311         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
54312         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54313         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54314         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
54315         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54316         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
54317         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
54318         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54319         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
54320         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
54321         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54322
54323         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
54324         last change; it caused a compilation error when cross-compiling to
54325         Cygwin.
54326
54327 2007-01-18  Jim Meyering  <jim@meyering.net>
54328
54329         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
54330         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
54331         than the race-prone "test -d sys || mkdir sys".
54332         (configure.ac): Use AC_PROG_MKDIR_P.
54333         * modules/sys_select: Likewise.
54334         * modules/sys_socket: Likewise.
54335         * modules/sys_time: Likewise.
54336
54337 2007-01-18  Eric Blake  <ebb9@byu.net>
54338
54339         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
54340         replace gettimeofday.
54341         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
54342         name, to avoid infinite recursion.
54343
54344 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
54345
54346         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
54347         module sys_time.
54348         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
54349         assume timespec.h defines struct timeval.
54350         * lib/settime.c: Likewise.
54351         * lib/utimens.c: Likewise.
54352         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
54353         since we now assume the gettimeofday module.
54354         * lib/tempname.c (__gen_tempname): Likewise.
54355         * lib/gettimeofday.h: Remove.
54356         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
54357         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
54358         Include <time.h>, for 'time()'.
54359         (localtime_buffer_addr): Also use this workaround if
54360         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
54361         to simplify the uses.  All uses changed.
54362         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
54363         that #undef is inside {}, and 'const' follows type name consistently.
54364         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
54365         (gettimeofday): Do not use the maximum possible value for
54366         tv->tv_usec, since that might break usages other than ls.c.
54367         Instead, we'll leave ls.c alone.  This undoes today's patch
54368         by Bruno.  Add a compile-time warning for 1s-clock resolution;
54369         we've never observed the problem but might as well keep the
54370         canary.
54371         * lib/nanosleep.c: Include timespec.h first, for interface check.
54372         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
54373         now assume the sys_time module.
54374         * lib/tempname.c: Likewise.
54375         * lib/timespec.h: Likewise.
54376         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
54377         needed.
54378         * lib/strftime.c: Likewise.
54379         * lib/timespec.h: Likewise.
54380         * lib/posixtm.c: Include posixtm.h first, for interface check.
54381         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
54382         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
54383         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
54384         * lib/sys_time_.h: New file.
54385         * lib/timespec.h (struct timespec): Use long int, not long.
54386         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54387         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
54388         Remove obsolescent call to AC_HEADER_TIME.
54389         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54390         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54391         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54392         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
54393         Likewise.
54394         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
54395         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
54396         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
54397         into the sys_time module.  Check for gettimeofday just once.
54398         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
54399         for gettimeofday signature to just check the signature.  Merely
54400         compile it, since linking doesn't test signature.  Improve test for
54401         whether gettimeofday.o is actually needed.
54402         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
54403         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
54404         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
54405         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54406         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
54407         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
54408         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
54409         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
54410         than worrying about sys/time.h.
54411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54412         Don't bother worrying about TIME_WITH_SYS_TIME.
54413         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
54414         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
54415         * m4/sys_time_h.m4: New file.
54416         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
54417         Don't include sys/time.h.  Return from main rather than exiting.
54418         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
54419         all uses changed.
54420         * modules/gethrxtime (Depends-on): Add sys_time.
54421         * modules/gettime (Depends-on): Likewise.
54422         * modules/gettimeofday (Depends-on): Likewise.
54423         * modules/nanosleep (Depends-on): Likewise.
54424         * modules/settime (Depends-on): Likewise.
54425         * modules/tempname (Depends-on): Likewise.
54426         * modules/utimens (Depends-on): Likewise.
54427         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
54428         (Include): Change back to <sys/time.h>.
54429         (Maintainer): Add self.
54430         * modules/sys_time: New file.
54431         * modules/tempname (Depends-on): Add gettimeofday.
54432         * tests/test-gettimeofday.c: Include <sys/time.h>
54433         rather than gettimeofday.h.
54434
54435 2007-01-17  Bruno Haible  <bruno@clisp.org>
54436
54437         * gnulib-tool (func_get_license): Revert last patch. Instead, let
54438         the license default to GPL.
54439         (func_create_testdir): Don't complain if a module is LGPL and its
54440         tests module depends on GPLed modules.
54441
54442 2007-01-17  Bruno Haible  <bruno@clisp.org>
54443
54444         * lib/gettimeofday.c (gettimeofday): Add code for the case
54445         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
54446         maximum possible value for tv->tv_usec, rather than the minimum one.
54447
54448 2005-10-08  Martin Lambers  <marlam@marlam.de>
54449 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54450 2007-01-16  Bruno Haible  <bruno@clisp.org>
54451
54452         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
54453         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
54454         gl_FUNC_GETTIMEOFDAY.
54455         (Include): Add gettimeofday.h.
54456         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
54457         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
54458         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
54459         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
54460         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
54461         * lib/gettimeofday.h: New file.
54462         * lib/gettimeofday.c: Include <sys/timeb.h>.
54463         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
54464         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54465         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
54466         fall back on time().
54467
54468         * tests/test-gettimeofday.c: New file.
54469         * modules/gettimeofday-tests: New file.
54470
54471 2007-01-16  Eric Blake  <ebb9@byu.net>
54472
54473         * modules/fnmatch (Depends-on): Depend on wchar.
54474         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
54475         * m4/fnmatch.m4: Likewise.
54476         * modules/mbchar (Makefile.am): Assume <wchar.h>.
54477         * m4/mbchar.m4: Likewise.
54478         * modules/mbswidth (Depends-on): Depend on wchar.
54479         * lib/mbswidth.c: Assume <wchar.h>.
54480         * m4/mbswidth.m4: Likewise.
54481         * modules/quotearg (Depends-on): Depend on wchar.
54482         * lib/quotearg.c: Assume <wchar.h>.
54483         * m4/quotearg.m4: Likewise.
54484         * modules/regex (Depends-on): Depend on wchar.
54485         * lib/regex_internal.h: Assume <wchar.h>.
54486         * m4/regex.m4: Likewise.
54487         * modules/stdint (Depends-on): Depend on wchar.
54488         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
54489         * m4/stdint.m4: Likewise.
54490         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
54491         * modules/strftime (Depends-on): Depend on wchar.
54492         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
54493         * modules/strtol (Depends-on): Depend on wchar.
54494         * lib/strtol.c: Assume <wchar.h>.
54495         * modules/wcwidth (Depends-on): Depend on wchar.
54496         * lib/wcwidth.h: Assume <wchar.h>.
54497         * m4/wcwidth.m4: Likewise.
54498
54499 2007-01-16  Bruno Haible  <bruno@clisp.org>
54500
54501         * modules/csharpexec-script: New, created from...
54502         * modules/csharpexec: ... this.
54503
54504 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54505
54506         * modules/javaexec-script: New, created from...
54507         * modules/javaexec: ... this.
54508
54509 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54510
54511         * modules/poll (Dependencies): Add sys_select.
54512
54513 2007-01-15  Jim Meyering  <jim@meyering.net>
54514
54515         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
54516         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
54517         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
54518         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
54519
54520 2007-01-15  Bruno Haible  <bruno@clisp.org>
54521
54522         * modules/striconveh: New file.
54523         * lib/striconveh.h: New file.
54524         * lib/striconveh.c: New file.
54525         * MODULES.html.sh (Internationalization functions): Add striconveh.
54526
54527         * modules/striconveh-tests: New file.
54528         * tests/test-striconveh.c: New file.
54529
54530 2007-01-15  Bruno Haible  <bruno@clisp.org>
54531
54532         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
54533         not from GNU libiconv or GNU libc.
54534
54535 2007-01-15  Bruno Haible  <bruno@clisp.org>
54536
54537         * doc/gnulib-intro.texi (Copyright): Explain the different license
54538         terms for module descriptions, autoconf macros, tests, documentation.
54539
54540 2007-01-14  Bruno Haible  <bruno@clisp.org>
54541
54542         * modules/striconv-tests: New file.
54543         * tests/test-striconv.c: New file.
54544
54545 2007-01-14  Bruno Haible  <bruno@clisp.org>
54546
54547         * modules/iconv-tests: New file.
54548         * tests/test-iconv.c: New file.
54549
54550 2007-01-14  Bruno Haible  <bruno@clisp.org>
54551
54552         * gnulib-tool (func_get_license): For test modules, use the license of
54553         the main module.
54554
54555 2007-01-14  Bruno Haible  <bruno@clisp.org>
54556
54557         * modules/iconv (Include): Clarify that <iconv.h> can only be included
54558         if iconv is found to exist.
54559
54560 2007-01-14  Bruno Haible  <bruno@clisp.org>
54561
54562         * modules/c-ctype-tests: New file.
54563         * tests/test-c-ctype.c: New file.
54564
54565 2007-01-14  Bruno Haible  <bruno@clisp.org>
54566
54567         * modules/binary-io-tests: New file.
54568         * tests/test-binary-io.sh: New file.
54569         * tests/test-binary-io.c: New file.
54570
54571 2007-01-14  Bruno Haible  <bruno@clisp.org>
54572
54573         * modules/array-oset-tests: New file.
54574         * tests/test-array_oset.c: New file.
54575
54576 2007-01-14  Bruno Haible  <bruno@clisp.org>
54577
54578         * modules/array-list-tests: New file.
54579         * tests/test-array_list.c: New file.
54580
54581 2007-01-14  Bruno Haible  <bruno@clisp.org>
54582
54583         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
54584         and make.
54585         Reported by Simon Josefsson in
54586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
54587
54588 2007-01-14  Bruno Haible  <bruno@clisp.org>
54589
54590         * modules/allocsa-tests: New file.
54591         * tests/test-allocsa.c: New file.
54592
54593 2007-01-14  Bruno Haible  <bruno@clisp.org>
54594
54595         * modules/fchdir (Depends-on): Add absolute-header.
54596         * modules/unistd (Depends-on): Likewise.
54597
54598 2006-12-30  Bruno Haible  <bruno@clisp.org>
54599
54600         * modules/fchdir: New file.
54601         * modules/unistd (Files): Add lib/unistd_.h.
54602         (Makefile.am): Generate unistd.h from unistd_.h.
54603         * lib/fchdir.c: New file.
54604         * lib/dirent_.h: New file.
54605         * lib/unistd_.h: New file.
54606         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
54607         * m4/fchdir.m4: New file.
54608         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
54609         (gl_HEADER_UNISTD): Invoke it.
54610         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
54611         function.
54612         * lib/backupfile.c (opendir, closedir): Undefine.
54613         * lib/chown.c (open, close): Undefine.
54614         * lib/clean-temp.c (open, close): Undefine.
54615         * lib/copy-file.c (open, close): Undefine.
54616         * lib/execute.c (open, close): Undefine.
54617         * lib/fsusage.c (open, close): Undefine.
54618         * lib/gc-gnulib.c (open, close): Undefine.
54619         * lib/getcwd.c (opendir, closedir): Undefine.
54620         * lib/glob.c (opendir, closedir): Undefine.
54621         * lib/javacomp.c (open, close): Undefine.
54622         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
54623         * lib/openat-proc.c (open, close): Undefine.
54624         * lib/pagealign_alloc.c (open, close): Undefine.
54625         * lib/pipe.c (open, close): Undefine.
54626         * lib/progreloc.c (open, close): Undefine.
54627         * lib/savedir.c (opendir, closedir): Undefine.
54628         * lib/utime.c (open, close): Undefine.
54629         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
54630
54631 2007-01-10  Bruno Haible  <bruno@clisp.org>
54632
54633         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
54634
54635 2007-01-12  Eric Blake  <ebb9@byu.net>
54636
54637         Provide a robust <wchar.h>.  Further simplifications are now
54638         possible in other modules, but not included here.
54639         * modules/wchar: New module.
54640         * m4/wchar.m4: New file.
54641         * lib/wchar_.h: Likewise.
54642         * modules/mbchar (Depends-on): Depend on wchar, as the first use
54643         of the new module.
54644         * MODULES.html.sh (Extended multibyte and wide character utilities):
54645         New section.
54646
54647 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
54648
54649         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
54650         to a reasonable default for memory allocation.
54651         (xreadlink): Don't allocate a huge buffer, to work around a buggy
54652         file system that reports garbage st_size values for symlinks.
54653         Problem reported by Liyang Hu.
54654
54655 2007-01-11  Simon Josefsson  <simon@josefsson.org>
54656
54657         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
54658         Emacs .#* auto-save files).
54659
54660 2007-01-11  Bruno Haible  <bruno@clisp.org>
54661
54662         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
54663         directory.
54664
54665 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54666
54667         Use @...@ consistently in lib/wctype_.h.
54668         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
54669         on it being set to 1 or 0.
54670         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
54671         go back to AC_SUBSTing it.
54672         * modules/wctype (Makefile.am): Undo previous change.
54673
54674 2007-01-10  Eric Blake  <ebb9@byu.net>
54675
54676         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
54677         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
54678         * modules/wctype (Makefile.am): Likewise.
54679         Reported by Chris McGuire.
54680
54681 2007-01-10  Jim Meyering  <jim@meyering.net>
54682
54683         fts.c: a small readability/maintainability improvement
54684         * lib/fts.c (fts_read): Make this code slightly more readable and
54685         maintainable by hoisting the "sp->fts_cur = p" assignments to
54686         immediately follow the statements that set P.  Derived from
54687         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
54688
54689 2007-01-10  Eric Blake  <ebb9@byu.net>
54690
54691         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
54692         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
54693         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54694         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
54695         Reported by Chris McGuire.
54696
54697 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54698
54699         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
54700         in sed script.
54701
54702 2007-01-09  Bruno Haible  <bruno@clisp.org>
54703
54704         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
54705         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
54706         variables.
54707         (func_module): Use them.
54708
54709 2007-01-09  Bruno Haible  <bruno@clisp.org>
54710
54711         * modules/unistr/base: New file.
54712         * lib/unistr.h: New file.
54713
54714         * modules/unistr/u8-to-u16: New file.
54715         * lib/unistr/u8-to-u16.c: New file.
54716
54717         * modules/unistr/u8-to-u32: New file.
54718         * lib/unistr/u8-to-u32.c: New file.
54719
54720         * modules/unistr/u16-to-u8: New file.
54721         * lib/unistr/u16-to-u8.c: New file.
54722
54723         * modules/unistr/u16-to-u32: New file.
54724         * lib/unistr/u16-to-u32.c: New file.
54725
54726         * modules/unistr/u32-to-u8: New file.
54727         * lib/unistr/u32-to-u8.c: New file.
54728
54729         * modules/unistr/u32-to-u16: New file.
54730         * lib/unistr/u32-to-u16.c: New file.
54731
54732         * modules/unistr/u8-check: New file.
54733         * modules/unistr/u16-check: New file.
54734         * modules/unistr/u32-check: New file.
54735         * lib/unistr/u8-check.c: New file.
54736         * lib/unistr/u16-check.c: New file.
54737         * lib/unistr/u32-check.c: New file.
54738
54739         * modules/unistr/u8-chr: New file.
54740         * modules/unistr/u16-chr: New file.
54741         * modules/unistr/u32-chr: New file.
54742         * lib/unistr/u8-chr.c: New file.
54743         * lib/unistr/u16-chr.c: New file.
54744         * lib/unistr/u32-chr.c: New file.
54745
54746         * modules/unistr/u8-cmp: New file.
54747         * modules/unistr/u16-cmp: New file.
54748         * modules/unistr/u32-cmp: New file.
54749         * lib/unistr/u8-cmp.c: New file.
54750         * lib/unistr/u16-cmp.c: New file.
54751         * lib/unistr/u32-cmp.c: New file.
54752
54753         * modules/unistr/u8-cpy: New file.
54754         * modules/unistr/u16-cpy: New file.
54755         * modules/unistr/u32-cpy: New file.
54756         * lib/unistr/u8-cpy.c: New file.
54757         * lib/unistr/u16-cpy.c: New file.
54758         * lib/unistr/u32-cpy.c: New file.
54759         * lib/unistr/u-cpy.h: New file.
54760
54761         * modules/unistr/u8-cpy-alloc: New file.
54762         * modules/unistr/u16-cpy-alloc: New file.
54763         * modules/unistr/u32-cpy-alloc: New file.
54764         * lib/unistr/u8-cpy-alloc.c: New file.
54765         * lib/unistr/u16-cpy-alloc.c: New file.
54766         * lib/unistr/u32-cpy-alloc.c: New file.
54767         * lib/unistr/u-cpy-alloc.h: New file.
54768
54769         * modules/unistr/u8-endswith: New file.
54770         * modules/unistr/u16-endswith: New file.
54771         * modules/unistr/u32-endswith: New file.
54772         * lib/unistr/u8-endswith.c: New file.
54773         * lib/unistr/u16-endswith.c: New file.
54774         * lib/unistr/u32-endswith.c: New file.
54775         * lib/unistr/u-endswith.h: New file.
54776
54777         * modules/unistr/u8-mblen: New file.
54778         * modules/unistr/u16-mblen: New file.
54779         * modules/unistr/u32-mblen: New file.
54780         * lib/unistr/u8-mblen.c: New file.
54781         * lib/unistr/u16-mblen.c: New file.
54782         * lib/unistr/u32-mblen.c: New file.
54783
54784         * modules/unistr/u8-mbtouc: New file.
54785         * modules/unistr/u16-mbtouc: New file.
54786         * modules/unistr/u32-mbtouc: New file.
54787         * lib/unistr/u8-mbtouc.c: New file.
54788         * lib/unistr/u16-mbtouc.c: New file.
54789         * lib/unistr/u32-mbtouc.c: New file.
54790
54791         * modules/unistr/u8-mbtouc-safe: New file.
54792         * modules/unistr/u16-mbtouc-safe: New file.
54793         * modules/unistr/u32-mbtouc-safe: New file.
54794         * lib/unistr/u8-mbtouc-safe.c: New file.
54795         * lib/unistr/u16-mbtouc-safe.c: New file.
54796         * lib/unistr/u32-mbtouc-safe.c: New file.
54797
54798         * modules/unistr/u8-move: New file.
54799         * modules/unistr/u16-move: New file.
54800         * modules/unistr/u32-move: New file.
54801         * lib/unistr/u8-move.c: New file.
54802         * lib/unistr/u16-move.c: New file.
54803         * lib/unistr/u32-move.c: New file.
54804         * lib/unistr/u-move.h: New file.
54805
54806         * modules/unistr/u8-next: New file.
54807         * modules/unistr/u16-next: New file.
54808         * modules/unistr/u32-next: New file.
54809         * lib/unistr/u8-next.c: New file.
54810         * lib/unistr/u16-next.c: New file.
54811         * lib/unistr/u32-next.c: New file.
54812
54813         * modules/unistr/u8-prev: New file.
54814         * modules/unistr/u16-prev: New file.
54815         * modules/unistr/u32-prev: New file.
54816         * lib/unistr/u8-prev.c: New file.
54817         * lib/unistr/u16-prev.c: New file.
54818         * lib/unistr/u32-prev.c: New file.
54819
54820         * modules/unistr/u8-set: New file.
54821         * modules/unistr/u16-set: New file.
54822         * modules/unistr/u32-set: New file.
54823         * lib/unistr/u8-set.c: New file.
54824         * lib/unistr/u16-set.c: New file.
54825         * lib/unistr/u32-set.c: New file.
54826         * lib/unistr/u-set.h: New file.
54827
54828         * modules/unistr/u8-startswith: New file.
54829         * modules/unistr/u16-startswith: New file.
54830         * modules/unistr/u32-startswith: New file.
54831         * lib/unistr/u8-startswith.c: New file.
54832         * lib/unistr/u16-startswith.c: New file.
54833         * lib/unistr/u32-startswith.c: New file.
54834         * lib/unistr/u-startswith.h: New file.
54835
54836         * modules/unistr/u8-stpcpy: New file.
54837         * modules/unistr/u16-stpcpy: New file.
54838         * modules/unistr/u32-stpcpy: New file.
54839         * lib/unistr/u8-stpcpy.c: New file.
54840         * lib/unistr/u16-stpcpy.c: New file.
54841         * lib/unistr/u32-stpcpy.c: New file.
54842         * lib/unistr/u-stpcpy.h: New file.
54843
54844         * modules/unistr/u8-stpncpy: New file.
54845         * modules/unistr/u16-stpncpy: New file.
54846         * modules/unistr/u32-stpncpy: New file.
54847         * lib/unistr/u8-stpncpy.c: New file.
54848         * lib/unistr/u16-stpncpy.c: New file.
54849         * lib/unistr/u32-stpncpy.c: New file.
54850         * lib/unistr/u-stpncpy.h: New file.
54851
54852         * modules/unistr/u8-strcat: New file.
54853         * modules/unistr/u16-strcat: New file.
54854         * modules/unistr/u32-strcat: New file.
54855         * lib/unistr/u8-strcat.c: New file.
54856         * lib/unistr/u16-strcat.c: New file.
54857         * lib/unistr/u32-strcat.c: New file.
54858         * lib/unistr/u-strcat.h: New file.
54859
54860         * modules/unistr/u8-strchr: New file.
54861         * modules/unistr/u16-strchr: New file.
54862         * modules/unistr/u32-strchr: New file.
54863         * lib/unistr/u8-strchr.c: New file.
54864         * lib/unistr/u16-strchr.c: New file.
54865         * lib/unistr/u32-strchr.c: New file.
54866
54867         * modules/unistr/u8-strcmp: New file.
54868         * modules/unistr/u16-strcmp: New file.
54869         * modules/unistr/u32-strcmp: New file.
54870         * lib/unistr/u8-strcmp.c: New file.
54871         * lib/unistr/u16-strcmp.c: New file.
54872         * lib/unistr/u32-strcmp.c: New file.
54873
54874         * modules/unistr/u8-strcpy: New file.
54875         * modules/unistr/u16-strcpy: New file.
54876         * modules/unistr/u32-strcpy: New file.
54877         * lib/unistr/u8-strcpy.c: New file.
54878         * lib/unistr/u16-strcpy.c: New file.
54879         * lib/unistr/u32-strcpy.c: New file.
54880         * lib/unistr/u-strcpy.h: New file.
54881
54882         * modules/unistr/u8-strcspn: New file.
54883         * modules/unistr/u16-strcspn: New file.
54884         * modules/unistr/u32-strcspn: New file.
54885         * lib/unistr/u8-strcspn.c: New file.
54886         * lib/unistr/u16-strcspn.c: New file.
54887         * lib/unistr/u32-strcspn.c: New file.
54888         * lib/unistr/u-strcspn.h: New file.
54889
54890         * modules/unistr/u8-strdup: New file.
54891         * modules/unistr/u16-strdup: New file.
54892         * modules/unistr/u32-strdup: New file.
54893         * lib/unistr/u8-strdup.c: New file.
54894         * lib/unistr/u16-strdup.c: New file.
54895         * lib/unistr/u32-strdup.c: New file.
54896         * lib/unistr/u-strdup.h: New file.
54897
54898         * modules/unistr/u8-strlen: New file.
54899         * modules/unistr/u16-strlen: New file.
54900         * modules/unistr/u32-strlen: New file.
54901         * lib/unistr/u8-strlen.c: New file.
54902         * lib/unistr/u16-strlen.c: New file.
54903         * lib/unistr/u32-strlen.c: New file.
54904         * lib/unistr/u-strlen.h: New file.
54905
54906         * modules/unistr/u8-strmblen: New file.
54907         * modules/unistr/u16-strmblen: New file.
54908         * modules/unistr/u32-strmblen: New file.
54909         * lib/unistr/u8-strmblen.c: New file.
54910         * lib/unistr/u16-strmblen.c: New file.
54911         * lib/unistr/u32-strmblen.c: New file.
54912
54913         * modules/unistr/u8-strmbtouc: New file.
54914         * modules/unistr/u16-strmbtouc: New file.
54915         * modules/unistr/u32-strmbtouc: New file.
54916         * lib/unistr/u8-strmbtouc.c: New file.
54917         * lib/unistr/u16-strmbtouc.c: New file.
54918         * lib/unistr/u32-strmbtouc.c: New file.
54919
54920         * modules/unistr/u8-strncat: New file.
54921         * modules/unistr/u16-strncat: New file.
54922         * modules/unistr/u32-strncat: New file.
54923         * lib/unistr/u8-strncat.c: New file.
54924         * lib/unistr/u16-strncat.c: New file.
54925         * lib/unistr/u32-strncat.c: New file.
54926         * lib/unistr/u-strncat.h: New file.
54927
54928         * modules/unistr/u8-strncmp: New file.
54929         * modules/unistr/u16-strncmp: New file.
54930         * modules/unistr/u32-strncmp: New file.
54931         * lib/unistr/u8-strncmp.c: New file.
54932         * lib/unistr/u16-strncmp.c: New file.
54933         * lib/unistr/u32-strncmp.c: New file.
54934
54935         * modules/unistr/u8-strncpy: New file.
54936         * modules/unistr/u16-strncpy: New file.
54937         * modules/unistr/u32-strncpy: New file.
54938         * lib/unistr/u8-strncpy.c: New file.
54939         * lib/unistr/u16-strncpy.c: New file.
54940         * lib/unistr/u32-strncpy.c: New file.
54941         * lib/unistr/u-strncpy.h: New file.
54942
54943         * modules/unistr/u8-strnlen: New file.
54944         * modules/unistr/u16-strnlen: New file.
54945         * modules/unistr/u32-strnlen: New file.
54946         * lib/unistr/u8-strnlen.c: New file.
54947         * lib/unistr/u16-strnlen.c: New file.
54948         * lib/unistr/u32-strnlen.c: New file.
54949         * lib/unistr/u-strnlen.h: New file.
54950
54951         * modules/unistr/u8-strpbrk: New file.
54952         * modules/unistr/u16-strpbrk: New file.
54953         * modules/unistr/u32-strpbrk: New file.
54954         * lib/unistr/u8-strpbrk.c: New file.
54955         * lib/unistr/u16-strpbrk.c: New file.
54956         * lib/unistr/u32-strpbrk.c: New file.
54957         * lib/unistr/u-strpbrk.h: New file.
54958
54959         * modules/unistr/u8-strrchr: New file.
54960         * modules/unistr/u16-strrchr: New file.
54961         * modules/unistr/u32-strrchr: New file.
54962         * lib/unistr/u8-strrchr.c: New file.
54963         * lib/unistr/u16-strrchr.c: New file.
54964         * lib/unistr/u32-strrchr.c: New file.
54965
54966         * modules/unistr/u8-strspn: New file.
54967         * modules/unistr/u16-strspn: New file.
54968         * modules/unistr/u32-strspn: New file.
54969         * lib/unistr/u8-strspn.c: New file.
54970         * lib/unistr/u16-strspn.c: New file.
54971         * lib/unistr/u32-strspn.c: New file.
54972         * lib/unistr/u-strspn.h: New file.
54973
54974         * modules/unistr/u8-strstr: New file.
54975         * modules/unistr/u16-strstr: New file.
54976         * modules/unistr/u32-strstr: New file.
54977         * lib/unistr/u8-strstr.c: New file.
54978         * lib/unistr/u16-strstr.c: New file.
54979         * lib/unistr/u32-strstr.c: New file.
54980         * lib/unistr/u-strstr.h: New file.
54981
54982         * modules/unistr/u8-strtok: New file.
54983         * modules/unistr/u16-strtok: New file.
54984         * modules/unistr/u32-strtok: New file.
54985         * lib/unistr/u8-strtok.c: New file.
54986         * lib/unistr/u16-strtok.c: New file.
54987         * lib/unistr/u32-strtok.c: New file.
54988         * lib/unistr/u-strtok.h: New file.
54989
54990         * modules/unistr/u8-uctomb: New file.
54991         * modules/unistr/u16-uctomb: New file.
54992         * modules/unistr/u32-uctomb: New file.
54993         * lib/unistr/u8-uctomb.c: New file.
54994         * lib/unistr/u16-uctomb.c: New file.
54995         * lib/unistr/u32-uctomb.c: New file.
54996
54997         * MODULES.html.sh (Unicode string functions): Add the new modules.
54998
54999 2007-01-08  Bruno Haible  <bruno@clisp.org>
55000
55001         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
55002         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
55003         subdirectories.
55004
55005 2007-01-08  Karl Berry  <karl@gnu.org>
55006
55007         * doc/error.texi: mention that main() fns must set program_name
55008         when progname is used.
55009
55010 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
55011
55012         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
55013         WCTYPE_H is empty, for the benefit of builds from non-distclean
55014         directories.  Problem reported by Eric Blake in
55015         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
55016
55017 2007-01-08  Bruno Haible  <bruno@clisp.org>
55018
55019         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
55020         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
55021         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
55022         PROVIDE_CANONICALIZE_FILENAME_MODE.
55023         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
55024
55025 2007-01-08  Bruno Haible  <bruno@clisp.org>
55026
55027         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
55028         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
55029         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
55030         * lib/fts.c: Likewise.
55031         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
55032
55033 2006-12-25  Bruno Haible  <bruno@clisp.org>
55034
55035         * modules/utf8-ucs4-safe: New file.
55036         * lib/utf8-ucs4-safe.h: New file.
55037         * lib/unistr/utf8-ucs4-safe.c: New file.
55038
55039         * modules/utf16-ucs4-safe: New file.
55040         * lib/utf16-ucs4-safe.h: New file.
55041         * lib/unistr/utf16-ucs4-safe.c: New file.
55042
55043         * MODULES.html.sh (Unicode string functions): Add the new modules.
55044
55045 2007-01-08  Bruno Haible  <bruno@clisp.org>
55046
55047         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
55048         (Depends-on): Add unitypes.
55049         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55050         (u8_mbtouc_aux): Move out to separate file.
55051         (u8_mbtouc): Use ucs4_t, uint8_t types.
55052         * lib/unistr/utf8-ucs4.c: New file.
55053
55054         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
55055         (Depends-on): Add unitypes.
55056         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55057         (u16_mbtouc_aux): Move out to separate file.
55058         (u16_mbtouc): Use ucs4_t, uint16_t types.
55059         * lib/unistr/utf16-ucs4.c: New file.
55060
55061         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
55062         (Depends-on): Add unitypes.
55063         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
55064         (u8_uctomb_aux): Move out to separate file.
55065         (u8_uctomb): Use ucs4_t, uint8_t types.
55066         * lib/unistr/ucs4-utf8.c: New file.
55067
55068         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
55069         (Depends-on): Add unitypes.
55070         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
55071         (u16_uctomb_aux): Move out to separate file.
55072         (u16_uctomb): Use ucs4_t, uint16_t types.
55073         * lib/unistr/ucs4-utf16.c: New file.
55074
55075 2006-12-25  Bruno Haible  <bruno@clisp.org>
55076
55077         * modules/unitypes: New file.
55078         * lib/unitypes.h: New file.
55079         * MODULES.html.sh (func_all_modules): New section "Unicode string
55080         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
55081         this section. Add unitypes.
55082
55083 2007-01-08  Bruno Haible  <bruno@clisp.org>
55084
55085         Avoid variable names that conflict with those from libtool.
55086         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
55087         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
55088         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
55089         library_names_spec to acl_library_names_spec, hardcode_* to
55090         acl_hardcode_*.
55091         Reported by Ralf Wildenhues.
55092
55093 2007-01-08  Bruno Haible  <bruno@clisp.org>
55094
55095         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
55096         definition.
55097         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
55098         definition.
55099         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
55100         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
55101         definition.
55102         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
55103         definition.
55104         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
55105         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
55106         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
55107         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
55108         definition.
55109         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
55110         definition.
55111         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
55112         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
55113         GC_USE_<algorithm>.
55114         * lib/gc-libgcrypt.c: Likewise.
55115         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
55116         * modules/gc-arctwo (configure.ac): Likewise.
55117         * modules/gc-des (configure.ac): Likewise.
55118         * modules/gc-hmac-md5 (configure.ac): Likewise.
55119         * modules/gc-hmac-sha1 (configure.ac): Likewise.
55120         * modules/gc-md2 (configure.ac): Likewise.
55121         * modules/gc-md4 (configure.ac): Likewise.
55122         * modules/gc-md5 (configure.ac): Likewise.
55123         * modules/gc-random (configure.ac): Likewise.
55124         * modules/gc-rijndael (configure.ac): Likewise.
55125         * modules/gc-sha1 (configure.ac): Likewise.
55126
55127 2007-01-08  Bruno Haible  <bruno@clisp.org>
55128
55129         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
55130         macro definition.
55131         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
55132         definition.
55133         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
55134         definition.
55135         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
55136         * modules/fcntl-safer (configure.ac): Likewise.
55137         * modules/fopen-safer (configure.ac): Likewise.
55138         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
55139         GNULIB_FWRITEERROR macro definition.
55140
55141 2007-01-08  Bruno Haible  <bruno@clisp.org>
55142
55143         * m4/gnulib-common.m4: New file.
55144         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
55145         (func_get_filelist): Add m4/gnulib-common.m4.
55146
55147 2007-01-08  Bruno Haible  <bruno@clisp.org>
55148
55149         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
55150         command.
55151
55152 2007-01-08  Jim Meyering  <jim@meyering.net>
55153
55154         Use a more robust test for a "can't happen" condition.
55155         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
55156         narrowed the st_size value.  Presuming the "can't happen" condition
55157         is true, that narrowing could conceivably convert an invalid st_size
55158         value into a valid one.  Instead, use a change based on Matthew
55159         Woehlke's original patch.
55160
55161         Slight readability improvement: use an assert-like macro
55162         in place of literal "abort ()" uses.
55163         * lib/fts.c (fts_assert): Define.
55164         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
55165         Use this macro instead of a bare 'abort'.
55166
55167 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
55168
55169         Don't worry about using IRIX 5.3's wctype.h broken definitions;
55170         simply work around them.
55171         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
55172         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
55173         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
55174         declaring.
55175         Don't bother to define as macros, since the standard doesn't require it.
55176         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
55177         longer worry about IRIX 5.3.
55178         (HAVE_WCTYPE_CTMP_BUG): Remove.
55179
55180 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55181
55182         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
55183         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
55184         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55185         Problems reported by Georg Schwarz for IRIX 5.3.
55186
55187         * gnulib-tool (autoconf_minversion): Take the maximum version number
55188         found, not the minimum.  Problem reported by James Youngman.
55189
55190 2007-01-03  Karl Berry  <karl@gnu.org>
55191
55192         * doc/error.texi: new file, explaining interaction with progname.
55193         * doc/gnulib.texi: include it.  Update copyright.
55194
55195 2007-01-03  Simon Josefsson  <simon@josefsson.org>
55196
55197         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
55198         AC_CANONICAL_HOST, to improve autobuild outputs.
55199
55200 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
55201             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55202
55203         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
55204         sockets, server sockets, and other file descriptors.  Count errors
55205         to compute the return value.  Reorder the code a bit to be easier
55206         to follow.  Don't set event bits that were not requested (except
55207         POLLERR and POLLHUP).
55208
55209 2007-01-01  Bruno Haible  <bruno@clisp.org>
55210
55211         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
55212
55213 2007-01-03  Jim Meyering  <jim@meyering.net>
55214
55215         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
55216
55217 2007-01-02  Bruno Haible  <bruno@clisp.org>
55218
55219         * modules/settime (Include): Require timespec.h.
55220         * modules/nanosleep (Include): Likewise.
55221
55222 2007-01-01  Bruno Haible  <bruno@clisp.org>
55223
55224         * gnulib-tool (func_emit_copyright_notice): Bump year.
55225         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
55226
55227 2007-01-01  Bruno Haible  <bruno@clisp.org>
55228
55229         Improve support for OpenBSD.
55230         * build-aux/config.rpath (libname_spec): Export.
55231         (library_names_spec): New variable. Export.
55232         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
55233         library_names_spec from the config.rpath output. Locate shared library
55234         through the name pattern in library_names_spec.
55235
55236 2007-01-01  Eric Blake  <ebb9@byu.net>
55237
55238         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
55239
55240 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
55241
55242         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
55243         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
55244         assume the C locale, and avoid an "eval" that could cause trouble.
55245         Problem with SORT reported by Bob Proulx.
55246
55247         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
55248         Define.  Trivial patch from Henning Nielsen Lund, originally
55249         sent to bug-grep@gnu.org today.
55250
55251 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55252
55253         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
55254         struct stat.  Problem reported by Henning Nielsen Lund.
55255         * lib/acl.c: Include acl.h first, to check interface.  Don't
55256         bother to include sys/types.h and sys/stat.h again.
55257
55258 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
55259
55260         Import the following change from libc; problem reported by
55261         Sven Verdoolaege.
55262
55263         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
55264
55265         [BZ #1373]
55266         * lib/argp.h: Remove __NTH for __argp_usage inline function.
55267
55268 2006-12-28  Jim Meyering  <jim@meyering.net>
55269
55270         * build-aux/announce-gen: Do not assume that the package
55271         builds any of tar.gz, tar.bz2, and .xdelta files.
55272         Suggestion from Simon Josefsson.
55273
55274 2006-12-28  Simon Josefsson  <simon@josefsson.org>
55275
55276         * modules/announce-gen: New file.
55277
55278 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
55279
55280         * lib/mbchar.h: Just include <wctype.h>; the wctype module
55281         handles its gotchas now.
55282         * lib/mbswidth.c: Likewise.
55283         * lib/wcwidth.h: Likewise.
55284         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
55285         and iswcntrl; the wctype module does this stuff now.
55286         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55287         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55288         * modules/mbchar (Depends-on): Add wctype.
55289         * modules/mbswidth (Depends-on): Likewise.
55290         * modules/wcwidth (Depends-on): Likewise.
55291
55292 2006-12-27  Eric Blake  <ebb9@byu.net>
55293
55294         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
55295         module uses more than what <wctype.h> is required to provide.
55296
55297 2006-12-26  Eric Blake  <ebb9@byu.net>
55298
55299         * gnulib-tool (sed_extract_prog): Avoid space-tab.
55300
55301 2006-12-26  Eric Blake  <ebb9@byu.net>
55302
55303         * modules/absolute-header: New module.
55304         * modules/fcntl (Depends-on): Depend on it.
55305         * modules/inttypes (Depends-on): Likewise.
55306         * modules/stdint (Depends-on): Likewise.
55307         * modules/sys_stat (Depends-on): Likewise.
55308         * modules/wctype (Depends-on): Likewise.
55309         * MODULES.html.sh (Support for building libraries and
55310         executables): Document it.
55311
55312 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55313
55314         * gnulib-tool (SED): Remove, undoing previous change.
55315         The problem was that it broke coreutils on Solaris, because
55316         "sed --posix" leaked into a makefile.
55317         (sed): New alias, if 'alias' and GNU sed.
55318
55319 2006-12-24  Jim Meyering  <jim@meyering.net>
55320
55321         Work around an fchownat bug in glibc-2.4:
55322         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
55323         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
55324         in spite of the -P option.
55325         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
55326         New macros.
55327         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
55328         * modules/openat (Files): Add lib/fchownat.c.
55329         * lib/openat.c (fchownat): Don't define here.  Move to...
55330         * lib/fchownat.c: ...this new file.
55331
55332 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
55333
55334         Fix bug reported by Bruno Haible in
55335         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
55336         where quotearg.c didn't compile on Mac OS X 10.2 because it
55337         lacks <wchar.h> and wint_t.
55338         * lib/wctype_.h (__wctype_wint_t): New type.
55339         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
55340         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
55341         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
55342         Arg is now of type __wctype_wint_t, not wint_t.
55343         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
55344         substitute HAVE_WINT_T.
55345         * modules/wctype (Files): Add m4/wint_t.m4.
55346         (wctype.h): Substitute HAVE_WINT_T.
55347
55348 2006-12-23  Bruno Haible  <bruno@clisp.org>
55349
55350         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
55351
55352 2006-12-23  Bruno Haible  <bruno@clisp.org>
55353
55354         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
55355         S_ISLNK.
55356         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
55357         mingw.
55358
55359 2006-12-22  Bruno Haible  <bruno@clisp.org>
55360
55361         * lib/copy-file.c: Include acl.h.
55362         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
55363         Close the file descriptors only after being done with copy_acl.
55364         * modules/copy-file (Depends-on): Add acl.
55365
55366 2006-12-22  Bruno Haible  <bruno@clisp.org>
55367
55368         * gnulib-tool (SED): New variable.
55369         Use $SED instead of sed everywhere.
55370
55371 2006-12-22  Bruno Haible  <bruno@clisp.org>
55372
55373         * modules/no-c++: New file.
55374         * m4/no-c++.m4: New file.
55375         * MODULES.html.sh (Support for building libraries and executables):
55376         Add no-c++.
55377
55378 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
55379
55380         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55381         Include <limits.h>, and use its INT_MAX to rewrite the
55382         j loop so that it does not overflow 'int'.  Problem reported by
55383         Ralf Wildenhues in
55384         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
55385         Play it safe by shifting left by 1 rather than multiplying by 2,
55386         as GCC is less likely to optimize this away when the value
55387         is signed (when it assumes overflow leads to undefined behavior).
55388         Also, don't assume time_t uses two's complement.
55389
55390 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
55391
55392         * MODULES.html.sh: New module wctype.
55393         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
55394         * lib/fnmatch.c: Don't bother to include <wchar.h> before
55395         <wctype.h>, since the new wctype module should fix this.
55396         * lib/quotearg.c: Include <wctype.h> unconditionally, since
55397         the wctype module should arrange for it.
55398         * lib/regex_internal.h: Likewise.
55399         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
55400         since the wctype module should handle this now.
55401         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
55402         * modules/fnmatch (Depends-on): Add wctype.
55403         * modules/quotearg (Depends-on): Likewise.
55404         * modules/regex (Depends-on): Likewise.
55405
55406 2006-12-19  Bruno Haible  <bruno@clisp.org>
55407
55408         * lib/strdup.h [C++]: Wrap definitions in extern "C".
55409         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
55410
55411 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55412
55413         * modules/savewd (Depends-on): Fix dependency on fcntl.
55414
55415 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55416
55417         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
55418         conforms to C99, rather than relying on the user's environment
55419         setting of STDINT_H.
55420
55421 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55422         and Eric Blake  <ebb9@byu.net>
55423
55424         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
55425         This is more consistent with the other defines here.
55426         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
55427         Port to z/OS.  Problem reported by Paul Gilmartin.
55428         Change local vars to use gl_ prefix rather than ac_.
55429         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
55430         with other defines.
55431         * modules/double-slash-root: New module.
55432         * modules/dirname (Files): Remove m4/double-slash-root.m4.
55433         (Depends-on): Add double-slash-root.
55434         * MODULES.html.sh (File system functions): Mention new module.
55435
55436 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
55437
55438         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
55439         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
55440         This is for the benefit of gzip, which doesn't do i18n.
55441
55442 2006-12-12  Jim Meyering  <jim@meyering.net>
55443
55444         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
55445         Reported by Andreas Schwab <schwab@suse.de>.
55446
55447 2006-12-12  Bruno Haible  <bruno@clisp.org>
55448
55449         Merge these changes.
55450         2006-09-05  Bruno Haible  <bruno@clisp.org>
55451         * lib/iconvme.c (iconv_string): No need to save and restore errno when
55452         iconv_alloc succeeded.
55453         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
55454         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
55455         test for " && dest " at the end - dest is always != NULL there. Call
55456         iconv with 4xNULL arguments initially, to reset the state. Call iconv
55457         with 2xNULL arguments, also to flush the state storage. Handle the
55458         IRIX iconv behaviour. Realloc the final result, to throw away unused
55459         memory.
55460
55461 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
55462
55463         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
55464         and fchmodat unconditionally, since glibc 2.4 has them.
55465         Problem reported by Arkadiusz Miskiewicz.
55466
55467 2006-12-10  Bruno Haible  <bruno@clisp.org>
55468
55469         * gnulib-tool (func_import): Show the include files only for those
55470         modules that are copied and specified.
55471         Reported by Karl Berry.
55472
55473 2006-12-08  Jim Meyering  <jim@meyering.net>
55474
55475         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
55476         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
55477
55478         * build-aux/announce-gen: Add two new options, both optional:
55479         --bootstrap-tools=TOOL_LIST
55480               a comma-separated list of tools, e.g.,
55481               autoconf,automake,bison,gnulib
55482         --gnulib-snapshot-date=DATE
55483               if gnulib is in the bootstrap tool list,
55484               then report this as the snapshot date.
55485               If not specified, use the current date/time.
55486               If you specify a date here, be sure it's UTC.
55487
55488 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55489
55490         * tests/test-argp-2.sh: Fix test to match actual output.
55491         (func_compare): Fix sed script to be portable.
55492
55493 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
55494
55495         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
55496         workaround for this case.  It is not autoconfigured now; offhand
55497         it's hard to see how to autoconfigure it.
55498
55499 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55500
55501         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
55502         a directory that is about to be chowned.  Such a directory's
55503         initial file permissions should permit the owner only and this
55504         should not be changed until after the chown, since the group and
55505         other bits would be incorrect if they granted permission before
55506         the chown.
55507
55508         Fix porting problem for iswctype reported by Georg Schwarz in:
55509         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
55510         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
55511         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
55512         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
55513         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55514
55515 2006-12-03  Jim Meyering  <jim@meyering.net>
55516
55517         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
55518         p->fts_statp may not yet be defined.
55519         (fts_read): Instead, set it in the caller, once p->fts_statp is
55520         sure to be defined, and corresponds to a top-level directory.
55521         This bug made du -x fail.  Here's the coreutils test case:
55522         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
55523         Reported by Mike Frysinger.
55524
55525 2006-12-01  Jim Meyering  <jim@meyering.net>
55526
55527         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
55528         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
55529         Reported by Simon Josefsson.
55530
55531 2006-11-30  Jim Meyering  <jim@meyering.net>
55532
55533         * m4/warning.m4: Use the all-permissive copyright notice
55534         recommended by RMS (rather than LGPL).
55535         * m4/vararrays.m4: Likewise.
55536         * m4/flexmember.m4: Likewise.
55537
55538 2006-11-29  Bruno Haible  <bruno@clisp.org>
55539
55540         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55541         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
55542         using +=.
55543         Reported by Simon Josefsson <simon@josefsson.org>.
55544
55545 2006-11-28  James Youngman <jay@gnu.org>
55546
55547         * README: Advise users that they might find the bug-gnulib@gnu.org
55548         and autotools-announce@gnu.org mailing lists useful.
55549
55550 2006-11-28  Bruno Haible  <bruno@clisp.org>
55551
55552         * m4/ptrdiff_max.m4: Remove file.
55553
55554 2006-11-21  Bruno Haible  <bruno@clisp.org>
55555
55556         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
55557         _AC_COMPUTE_INT.
55558         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55559         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
55560         _AC_COMPUTE_INT.
55561         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55562         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
55563         _AC_COMPUTE_INT.
55564         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55565
55566 2006-11-28  Jim Meyering  <jim@meyering.net>
55567
55568         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
55569         warning from "gcc -Wshadow" about shadowing the builtin.
55570
55571 2006-11-27  Bruno Haible  <bruno@clisp.org>
55572
55573         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
55574         _AC_COMPUTE_INT.
55575         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55576
55577 2006-11-27  Bruno Haible  <bruno@clisp.org>
55578             Paul Eggert  <eggert@cs.ucla.edu>
55579
55580         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
55581
55582 2006-11-26  Bruno Haible  <bruno@clisp.org>
55583
55584         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55585         noinst_LTLIBRARIES.
55586
55587 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
55588             Bruno Haible  <bruno@clisp.org>
55589
55590         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
55591         if compiling with "gcc -ansi".
55592
55593 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
55594
55595         Fix some incompatibilities with gcc -ansi -pedantic.
55596         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
55597         if compiling pedantically with GCC, unless it's C99 or later.
55598         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
55599         it mishandles gcc -ansi -pedantic as well.
55600         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
55601         if gcc -pedantic.
55602         * lib/regexec.c (check_node_accept_bytes): Don't use auto
55603         initializers for struct if -pedantic, unless it's C99 or later.
55604
55605 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
55606
55607         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
55608         Don't close an fd more than once. Identical atimes indicate
55609         success, not failure.
55610
55611 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
55612
55613         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
55614
55615 2006-11-23  Jim Meyering  <jim@meyering.net>
55616
55617         * build-aux/announce-gen: New file.  From coreutils.
55618
55619 2006-11-22  Jim Meyering  <jim@meyering.net>
55620
55621         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
55622         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
55623         (fts_read): Use a temporary to narrow the overused st_size member
55624         before using it in a switch statement.  Reported by Matthew Woehlke.
55625
55626         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
55627         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
55628
55629 2006-11-20  Bruno Haible  <bruno@clisp.org>
55630
55631         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
55632         changequote instead of pairs of brackets.
55633         Reported by Andreas Schwab <schwab@suse.de>.
55634
55635 2006-11-21  Jim Meyering  <jim@meyering.net>
55636
55637         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
55638         so as to remain compatible with older compilers.
55639         Patch from Michael Deutschmann.
55640
55641 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55642
55643         * MODULES.html.sh (File system functions): Add openat.
55644
55645         * lib/openat.h (rpl_fstatat): New macro, if
55646         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
55647         (fstatat): Define to rpl_fstatat under the same conditions,
55648         unless COMPILING_FSTATAT.
55649         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
55650         seems to have the bug.
55651         * lib/fstatat.c: New file.
55652         * modules/openat (Files): Add it.
55653
55654 2006-11-20  Bruno Haible  <bruno@clisp.org>
55655
55656         * Makefile: New file.
55657
55658 2006-11-20  Jim Meyering  <jim@meyering.net>
55659
55660         The beginnings of syntax-related checks for gnulib.
55661         * lib/Makefile: New file.
55662         * lib/t-idcache: New script.  Ensure that the two halves of
55663         idcache.c stay in sync.
55664
55665         * lib/idcache.c: Adjust comments in user- and group- portions to
55666         be more accurate, and to be consistent with one another.
55667
55668 2006-11-20  Jim Meyering  <jim@meyering.net>
55669
55670         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
55671         continue using the flexible array member (thus, this module performs
55672         half as many malloc calls), with the addition that...
55673         (getgroup, getuser): Consistently record a non-match via an empty
55674         "name" string, and map an empty string match to a NULL return value.
55675         * modules/idcache (Depends-on): Re-add flexmember.
55676
55677         * lib/idcache.c (getuser): Remove all uses of the register keyword.
55678         (getuidbyname, getgroup, getgidbyname): Likewise.
55679
55680         Use cleaner syntax: NULL rather than 0.
55681         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
55682
55683 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55684
55685         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
55686         It mishandled the case where the group was missing.
55687         Problem reported by Greg Schafer.
55688         * modules/idcache: Likewise.
55689
55690 2006-11-18  Jim Meyering  <jim@meyering.net>
55691
55692         * check-module (%exempt_header): Add exception for some
55693         conditionally-included headers.
55694
55695         * modules/i-ring (Depends-on): Add verify.
55696         (License): Change to LGPL.
55697
55698 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55699
55700         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
55701         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
55702         and inttostr.h.  Use snprintf rather than uinttostr, so that
55703         LGPLed code doesn't depend on GPLed.
55704
55705 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55706
55707         * modules/inline (License): Change from GPL to LGPL.
55708
55709 2006-11-17  Jim Meyering  <jim@meyering.net>
55710
55711         * modules/d-type (License): Switch to LGPL.
55712
55713 2006-11-15  Bruno Haible  <bruno@clisp.org>
55714
55715         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
55716
55717 2006-11-15  Eric Blake  <ebb9@byu.net>
55718
55719         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
55720         the module dependency.
55721
55722 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55723             Bruno Haible  <bruno@clisp.org>
55724
55725         * gnulib-tool (func_create_testdir): Add license consistency check.
55726
55727 2006-11-15  Eric Blake  <ebb9@byu.net>
55728
55729         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
55730         random "(cached)" in configure output.
55731
55732 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55733
55734         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
55735         test for conforming inttypes.h is both announced and cached.
55736
55737         * MODULES.html.sh (seen_modules, seen_files): New variables.
55738         (func_module): Rewrite to use a few less gnulib-tool and sed
55739         invocations.  Avoid a couple of quadratic algorithms for ...
55740         (missed_modules, missed_files): ... these, with ...
55741         (func_append, func_tmpdir): ... these new functions, from
55742         gnulib-tool.  Analogously, install traps for cleanup.
55743
55744         * tests/test-gc.c (main): Remove unused variables.
55745         * tests/test-read-file.c: Include stdlib.h, for 'free'.
55746
55747 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
55748
55749         * modules/inttostr (License): Change to LGPL.
55750
55751 2006-11-14  Eric Blake  <ebb9@byu.net>
55752
55753         * modules/tempname (License): Change to LGPL.
55754
55755 2006-11-14  Eric Blake  <ebb9@byu.net>
55756
55757         * doc/functions.texi (Function Portability): *printf functions on
55758         Cygwin now understand all POSIX size specifiers.
55759
55760 2006-11-14  Bruno Haible  <bruno@clisp.org>
55761
55762         * modules/c-ctype (License): Change to LGPL.
55763
55764 2006-11-12  Bruno Haible  <bruno@clisp.org>
55765
55766         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55767         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
55768         for GNOME libraries, for which the include files are installed in
55769         subdirectories of $prefix/include.
55770
55771 2006-11-12  Bruno Haible  <bruno@clisp.org>
55772
55773         * m4/lib-link.m4: Require at least autoconf-2.54.
55774         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
55775         name to underscores for the --with option.
55776
55777 2006-11-13  Bruno Haible  <bruno@clisp.org>
55778
55779         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
55780         the tests directory.
55781         Reported by Ralf Wildenhues.
55782
55783 2006-11-13  Bruno Haible  <bruno@clisp.org>
55784
55785         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
55786         (func_emit_initmacro_end): Undo the override here.
55787         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
55788         Works around the famous automake error in coreutils.
55789
55790 2006-11-13  Eric Blake  <ebb9@byu.net>
55791
55792         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
55793         element, not its node.
55794
55795 2006-11-12  Bruno Haible  <bruno@clisp.org>
55796
55797         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
55798         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
55799
55800 2006-11-12  Bruno Haible  <bruno@clisp.org>
55801
55802         * gnulib-tool: New option --local-symlink.
55803         (func_usage): Document it.
55804         (lsymbolic): New variable.
55805         (func_import, func_create_testdir): If --symlink was not specified,
55806         test whether --local-symlink was specified and the file comes from
55807         the local_gnulib_dir.
55808
55809 2006-11-12  Bruno Haible  <bruno@clisp.org>
55810
55811         * gnulib-tool (func_ln): New function.
55812         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
55813
55814 2006-11-12  Bruno Haible  <bruno@clisp.org>
55815
55816         Finish support for source files in subdirectories.
55817         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
55818         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
55819         AUTOMAKE_OPTIONS.
55820         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
55821
55822 2006-11-12  Bruno Haible  <bruno@clisp.org>
55823
55824         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55825         EXTRA_lib_SOURCES augmentation.
55826         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
55827
55828 2006-11-12  Jim Meyering  <jim@meyering.net>
55829
55830         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
55831         file descriptors.  This also averts a failure on systems with
55832         native openat support when a traversed directory lacks "x" access.
55833         * lib/fts_.h: Include "i-ring.h"
55834         (struct FTS) [fts_fd_ring]: New member.
55835         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
55836         (FCHDIR): Add parentheses.
55837         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
55838         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
55839         When descending, rather than simply closing the previous
55840         fts_cwd_fd value, push that file descriptor onto the ring.
55841         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
55842         (fts_open): Initialize the new fd_ring member.
55843         (fts_close): Clear the ring.
55844         (fts_safe_changedir): When possible, use our new fd_ring to skip
55845         the diropen and fstat and dev/ino comparison that would normally
55846         accompany a virtual `chdir ("..")'.
55847
55848         * modules/fts (Depends-on): Add i-ring.
55849         * modules/i-ring: New module.
55850         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
55851         * m4/i-ring.m4: New file.
55852
55853 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55854
55855         * gnulib-tool (func_create_testdir): Fix replacement of
55856         `build-aux' in configure.ac.  Run autotools in gltests
55857         subdirectory.
55858         (func_create_testdir, func_create_megatestdir, test): There is
55859         no need for '--force' in most autotool invocations in a new
55860         tree.  Actually fail the whole test if any of the tools, or the
55861         configure or make stages fail.
55862
55863         Sync from Automake.
55864         * build-aux/gnupload: Revert last change.  Add pointer to upload
55865         instructions of the GNU Maintenance Instructions.
55866         Suggestion by Karl Berry.
55867
55868 2006-11-10  Jim Meyering  <jim@meyering.net>
55869
55870         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
55871
55872 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55873
55874         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
55875         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
55876         (bind_textdomain_codeset) [! ENABLE_NLS]:
55877         Evaluate all the arguments.  That way, callers get compatible behavior
55878         if the arguments have side effects.  Also, it avoids some GCC
55879         diagnostics in some cases; Joel E. Denny reported problems when Bison
55880         was configured with --enable-gcc-warnigs.
55881
55882 2006-11-10  Jim Meyering  <jim@meyering.net>
55883
55884         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
55885         relevant options in CFLAGS (like -O, -fno-inline) are taken into
55886         account.
55887
55888 2006-11-10  Jim Meyering  <jim@meyering.net>
55889
55890         * modules/inline: New file/module.
55891         * modules/xalloc (Files): Remove m4/inline.m4.
55892         (Depends-on): Add inline, instead.
55893         * modules/oset: Likewise.
55894         * modules/list: Likewise.
55895
55896 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55897
55898         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
55899         Problem reported by Matthew Woehlke.
55900
55901 2006-11-09  Bruno Haible  <bruno@clisp.org>
55902
55903         * lib/tempname.c (gen_tempname): Remove variant that invokes
55904         __gen_tempname.
55905         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
55906         __gen_tempname.
55907
55908 2006-11-08  Bruno Haible  <bruno@clisp.org>
55909
55910         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
55911         to 'yes' instead of 'cross-compiling'.
55912
55913 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
55914
55915         * lib/quotearg.h (quotearg_free): New decl.
55916         * lib/quotearg.c (quotearg_free): New function.
55917         (slot0, nslots, slotvec0, slotvec):
55918         Now file-scope so that quotearg_free can get at them.
55919
55920 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55921
55922         Sync from Automake.
55923         * build-aux/gnupload: Add missing 'gnu' to example URL.
55924         Report by Karl Berry.
55925
55926 2006-11-08  Bruno Haible  <bruno@clisp.org>
55927
55928         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
55929         Suggested by Paul Eggert.
55930
55931 2006-11-08  Jim Meyering  <jim@meyering.net>
55932
55933         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
55934         It's already included if !_LIBC.
55935         (fts_safe_changedir): Add a comment.
55936
55937 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55938
55939         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
55940         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
55941         Matthew Woehlke.
55942
55943         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
55944         definitions up, to avoid colliding with change below.
55945         (static_inline) [HAVE_INLINE]: New macro.
55946         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
55947         Provide extern decls when !HAVE_INLINE.  Do not define unless
55948         static_inline is defined, either by us or by xmalloc.c.  Use
55949         static_inline rather than static inline.
55950         (XCALLOC): Optimize sizeof(T) = 1 case.
55951         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
55952
55953 2006-11-07  Bruno Haible  <bruno@clisp.org>
55954
55955         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
55956         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
55957         AC_C_INLINE.
55958         * modules/xalloc (Files): Add m4/inline.m4.
55959
55960 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55961
55962         * README: Fix typo.
55963         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
55964         (Miscellanous Notes): ...from this.
55965
55966 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55967
55968         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
55969         Mention that offsetof should be used instead of sizeof.
55970         From Bruno Haible.
55971
55972 2006-11-07  Bruno Haible  <bruno@clisp.org>
55973
55974         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
55975
55976 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55977
55978         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55979         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
55980         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55981         (gl_tree_add_before, gl_tree_add_after):
55982         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
55983         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
55984         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55985         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
55986         (gl_linked_add_after, gl_linked_add_at): Likewise.
55987         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
55988         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55989         (gl_tree_add_before, gl_tree_add_after): Likewise.
55990         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
55991         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
55992         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
55993
55994 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55995
55996         * lib/gl_oset.h: Use C comment style, not C++ comment style.
55997
55998 2006-11-06  Bruno Haible  <bruno@clisp.org>
55999
56000         * m4/inline.m4: New file.
56001         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
56002         * modules/list (Files): Add m4/inline.m4.
56003         * modules/oset (Files): Likewise.
56004
56005 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56006
56007         * lib/idcache.c: Include <stddef.h>, for offsetof.
56008         (struct userid.name): Change from char * to a flexible array member.
56009         All uses changed.
56010         * modules/idcache (Depends-on): Add flexmember.
56011
56012         * MODULES.html.sh (Core language properties): New module flexmember.
56013         * modules/flexmember, m4/flexmember.m4: New files.
56014
56015         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
56016         inline functions that are identical with the old xnmalloc_inline,
56017         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
56018         that we can avoid some unnecessary integer multiplications and
56019         divisions in the common case where the element size is known at
56020         compile time.
56021         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
56022         needed.
56023         (xnboundedmalloc): Remove.
56024         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
56025         arguments, for consistency with rest of this header.
56026         (xcharalloc): Rewrite using XNMALLOC.
56027         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
56028         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
56029         versions have been moved to lib/xalloc.h and renamed to be the
56030         non-*_inline versions.
56031         (xmalloc, xrealloc): Implement without reference to the xnmalloc
56032         and xnrealloc functions, since those functions are now inline and
56033         now call us.
56034         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
56035         renaming described above.
56036         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
56037         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
56038         captures the dependency in AC_C_INLINE.
56039
56040         New module canonicalize-lgpl, proposed by Charles Wilson in
56041         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
56042         with a few small changes afterwards.
56043         * MODULES.html.sh (File system functions): New module
56044         canonicalize-lgpl.
56045         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
56046         and canonicalize_file_name.
56047         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
56048         * modules/canonicalize-lgpl: New files.
56049
56050 2006-11-05  Bruno Haible  <bruno@clisp.org>
56051
56052         * gnulib-tool (func_import, func_create_testdir): Create directories
56053         also for files in subdirectories of lib/.
56054
56055 2006-11-05  Bruno Haible  <bruno@clisp.org>
56056
56057         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
56058         ANSI C compliant.
56059
56060 2006-11-03  Bruno Haible  <bruno@clisp.org>
56061
56062         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56063         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
56064         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
56065         (xnboundedmalloc): New inline function.
56066         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
56067         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
56068         xmalloc.
56069         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
56070         xmalloc.
56071         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
56072         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
56073         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
56074         xmalloc.
56075         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56076         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
56077         xmalloc.
56078         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
56079         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56080         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
56081         xmalloc.
56082         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56083         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
56084         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56085         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
56086         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
56087         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
56088         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
56089
56090 2006-11-03  Bruno Haible  <bruno@clisp.org>
56091
56092         * lib/c-ctype.h [C++]: Define functions without name mangling.
56093         * lib/fwriteerror.h [C++]: Likewise.
56094         * lib/gcd.h [C++]: Likewise.
56095         * lib/linebreak.h [C++]: Likewise.
56096
56097 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
56098
56099         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
56100         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
56101         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
56102         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56103         Check for functions and headers just once.
56104         Check for declaration of canonicalize_file_name.
56105         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
56106
56107 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56108
56109         * gnulib-tool (func_import): Fix typo in actioncmd.
56110
56111 2006-11-02  Bruno Haible  <bruno@clisp.org>
56112
56113         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
56114         newline sequence in the Makefile.am snippet as a space, like "make"
56115         does.
56116         Reported by Roger Persson <perrog@gmail.com>.
56117
56118 2006-11-01  Bruno Haible  <bruno@clisp.org>
56119
56120         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
56121         already declared in <string.h>.
56122         * lib/strcase.h (strncasecmp): Don't declare it if yes.
56123
56124 2006-11-01  Bruno Haible  <bruno@clisp.org>
56125
56126         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
56127         * lib/strcase.h: Include <string.h>.
56128         (strcasecmp): Define to rpl_strcasecmp here.
56129
56130 2006-11-01  Bruno Haible  <bruno@clisp.org>
56131
56132         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
56133
56134 2006-11-01  Eric Blake  <ebb9@byu.net>
56135
56136         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
56137
56138         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
56139
56140 2006-10-29  Bruno Haible  <bruno@clisp.org>
56141
56142         Make it compile in C++ mode.
56143         * lib/full-write.c (full_rw): Add a cast.
56144
56145 2006-11-01  Bruno Haible  <bruno@clisp.org>
56146
56147         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
56148         be POSIX compliant.
56149         Reported by Roger Persson <perrog@gmail.com>.
56150
56151 2006-11-01  Eric Blake  <ebb9@byu.net>
56152
56153         * lib/getopt_.h: Fix comments.
56154
56155 2006-10-31  Eric Blake  <ebb9@byu.net>
56156
56157         * modules/tmpdir (Depends-on): Add sys_stat.
56158         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
56159         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
56160         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
56161         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
56162         tempname.
56163
56164 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
56165
56166         Avoid some C++ diagnostics reported by Bruno Haible.
56167         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
56168         xmalloc.
56169         (quotearg_alloc): Use xcharalloc rather than xmalloc.
56170         (struct slotvec): Move to top level.
56171         (quotearg_n_options): Rewrite to avoid xmalloc.
56172         * lib/xalloc.h (xcharalloc): New function.
56173         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
56174         [defined __cplusplus]: Add function template that provides result
56175         type propagation.  This part of the change is from Bruno Haible.
56176
56177 2006-10-29  Bruno Haible  <bruno@clisp.org>
56178
56179         Make it compile in C++ mode.
56180         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
56181         * lib/strnlen1.c (strnlen1): Cast memchr result.
56182         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
56183         * lib/clean-temp.c (string_equals, string_hash): Add casts.
56184         (create_temp_dir): Rename local variable 'template'.
56185         (compile_csharp_using_sscli): Add cast.
56186         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
56187         * lib/findprog.c (find_in_path): Likewise.
56188         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
56189         * lib/wait-process.c (register_slave_subprocess): Likewise.
56190
56191 2006-10-22  Bruno Haible  <bruno@clisp.org>
56192
56193         * modules/tsearch: New file.
56194         * lib/tsearch.h: New file.
56195         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
56196         * m4/tsearch.m4: New file.
56197         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
56198
56199 2006-10-29  Eric Blake  <ebb9@byu.net>
56200
56201         * lib/arcfour.c: Assume config.h.
56202         * lib/arctwo.c: Likewise.
56203         * lib/base64.c: Likewise.
56204         * lib/check-version.c: Likewise.
56205         * lib/crc.c: Likewise.
56206         * lib/des.c: Likewise.
56207         * lib/gc-gnulib.c: Likewise.
56208         * lib/gc-libgcrypt.c: Likewise.
56209         * lib/gc-pbkdf2-sha1.c: Likewise.
56210         * lib/getaddrinfo.c: Likewise.
56211         * lib/getdelim.c: Likewise.
56212         * lib/getline.c: Likewise.
56213         * lib/hmac-md5.c: Likewise.
56214         * lib/hmac-sha1.c: Likewise.
56215         * lib/iconvme.c: Likewise.
56216         * lib/md2.c: Likewise.
56217         * lib/md4.c: Likewise.
56218         * lib/memxor.c: Likewise.
56219         * lib/read-file.c: Likewise.
56220         * lib/readline.c: Likewise.
56221         * lib/rijndael-alg-fst.c: Likewise.
56222         * lib/rijndael-api-fst.c: Likewise.
56223         * lib/xgetdomainname.c: Likewise.
56224
56225 2006-10-28  Eric Blake  <ebb9@byu.net>
56226
56227         * lib/xstrndup.c: Assume config.h.
56228
56229 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56230
56231         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
56232         stat-macros.h is now for our own macros, whereas stat_h is for
56233         macros in the <sys/stat.h> name space.
56234         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
56235         (STAT_MACROS_H): Remove.
56236         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
56237         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
56238         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
56239         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
56240         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
56241         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
56242         Move these macros to ...
56243         * lib/stat_.h: here.  Don't include stat-macros.h.
56244         * lib/canonicalize.c: Don't include stat-macros.h.
56245         * lib/chown.c: Likewise.
56246         * lib/euidaccess.c: Likewise.
56247         * lib/file-type.c: Likewise.
56248         * lib/filemode.c: Likewise.
56249         * lib/glob.c: Likewise.
56250         * lib/isapipe.c: Likewise.
56251         * lib/lchown.c: Likewise.
56252         * lib/lstat.c: Likewise.
56253         * lib/mkdir-p.c: Likewise.
56254         * lib/rmdir.c: Likewise.
56255         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
56256         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
56257         unless mkdir isn't declared, to speed up 'configure'.
56258         Always create sys/stat.h, since it's unlikely any real sys/stat.h
56259         would define all the S_* symbols.
56260         * modules/canonicalize (Depends-on):
56261         Depend on sys_stat, not stat-macros.
56262         * modules/chown: Likewise.
56263         * modules/euidaccess: Likewise.
56264         * modules/filemode: Likewise.
56265         * modules/file-type: Likewise.
56266         * modules/glob: Likewise.
56267         * modules/isapipe: Likewise.
56268         * modules/lchown: Likewise.
56269         * modules/lstat: Likewise.
56270         * modules/mkancesdirs: Likewise.
56271         * modules/rmdir: Likewise.
56272         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
56273         * modules/modechange: Likewise.
56274         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
56275         (configure.ac): Remove gl_STAT_MACROS.
56276         * modules/sys_stat (Depends-on): Remove stat-macros.
56277
56278 2006-10-27  Bruno Haible  <bruno@clisp.org>
56279
56280         * m4/signed.m4: Remove file.
56281         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
56282         invocation.
56283         * modules/vasnprintf (Files): Remove m4/signed.m4.
56284
56285 2006-10-27  Bruno Haible  <bruno@clisp.org>
56286
56287         Update to GNU gettext 0.16.
56288         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
56289         m4/inttypes-h.m4, m4/signed.m4.
56290         * m4/gettext.m4: Update to GNU gettext 0.16.
56291         * m4/intl.m4: New file, from GNU gettext.
56292         * m4/intldir.m4: New file, from GNU gettext.
56293         * config/srclist.txt: Update
56294
56295 2006-10-27  Eric Blake  <ebb9@byu.net>
56296
56297         * MODULES.html.sh: Document tempname.
56298         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
56299         dependencies.
56300         (Files): Move lib/tempname.c...
56301         * modules/tempname: ...to this new module.
56302         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
56303         (gl_PREREQ_TEMPNAME): Move...
56304         * m4/tempname.m4: ...to this new file.
56305         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
56306         * modules/sys_stat (Depends-on): Add stat-macros.
56307         * lib/stat_.h (includes): Pick up stat macros.
56308         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
56309         if stat macros are broken.
56310         * lib/tempname.c (includes): No need to include "stat-macros.h".
56311         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
56312         (direxists, __path_search) [!_LIBC]: Don't compile these in
56313         gnulib; the tmpdir module covers that.
56314         * lib/tempname.h: New file.
56315
56316 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
56317
56318         * COPYING: Explain how gnulib-tool converts licence headers.
56319         Almost all wording by Eric Blake.
56320
56321 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
56322
56323         * lib/mbchar.h (is_basic_table): Make read-only.
56324         * lib/mbchar.c (is_basic_table): Likewise.
56325         Reported by John Darrington.
56326
56327 2006-10-25  Bruno Haible  <bruno@clisp.org>
56328
56329         * lib/progname.h (set_program_name): Undefine before defining.
56330
56331 2006-10-25  Bruno Haible  <bruno@clisp.org>
56332
56333         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
56334         false for non-gcc C++ compilers.
56335         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56336
56337 2006-10-24  Bruno Haible  <bruno@clisp.org>
56338
56339         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
56340         iconv implementations like Irix iconv.
56341
56342 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56343
56344         * modules/vararrays: New file.
56345         * m4/vararrays.m4: New file, taken from diffutils.
56346         * MODULES.html.sh: New module vararrays.
56347
56348 2006-10-24  Karl Berry  <karl@gnu.org>
56349
56350         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
56351         Don't call GNU Unix.
56352
56353 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56354
56355         * users.txt: Add Libtool.
56356
56357         Sync from Libtool:
56358
56359         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56360
56361         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
56362         to gnulib's policy of including config.h unconditionally.
56363
56364 2006-10-24  Bruno Haible  <bruno@clisp.org>
56365
56366         * modules/wcwidth (Files): Add m4/wint_t.m4.
56367         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
56368         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
56369
56370 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56371
56372         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
56373         to pacify GCC with some -W flags enabled.  Problem reported by
56374         Bruno Haible.
56375
56376 2006-10-24  Jim Meyering  <jim@meyering.net>
56377
56378         * MODULES.html.sh: Remove uinttostr.  It's not a module.
56379         Reported by Karl Berry.
56380
56381 2006-10-23  Bruno Haible  <bruno@clisp.org>
56382
56383         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
56384
56385 2006-10-24  Bruno Haible  <bruno@clisp.org>
56386
56387         * lib/gl_list.h: Use C comment style, not C++ comment style.
56388
56389 2006-10-23  Eric Blake  <ebb9@byu.net>
56390
56391         * lib/getaddrinfo.c (includes): Add missing include.
56392
56393 2006-10-23  Bruno Haible  <bruno@clisp.org>
56394             Paul Eggert  <eggert@cs.ucla.edu>
56395
56396         Ability to rename obstack_free.
56397         * lib/obstack.h (__obstack_free): New macro. Declare instead of
56398         obstack_free.
56399         (obstack_free): Invoke the __obstack_free macro.
56400         * lib/obstack.c (obstack_free): Use __obstack_free macro.
56401
56402 2006-10-23  Bruno Haible  <bruno@clisp.org>
56403             Paul Eggert  <eggert@cs.ucla.edu>
56404
56405         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
56406         __argc, __argv from the declaration. (They are defined as macros on
56407         mingw.)
56408
56409 2006-10-22  Bruno Haible  <bruno@clisp.org>
56410
56411         * doc/gnulib-intro.texi: New file.
56412         * doc/gnulib.texi: Include it.
56413
56414 2006-10-21  Bruno Haible  <bruno@clisp.org>
56415
56416         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
56417         "Introduction", "Miscellanous Notes", "Particular Modules".
56418
56419 2006-10-21  Bruno Haible  <bruno@clisp.org>
56420
56421         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56422         Change mostlyclean-local rule to avoid sh syntax error from bash
56423         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
56424
56425 2006-10-23  Jim Meyering  <jim@meyering.net>
56426
56427         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
56428         in place of snprintf.
56429
56430         * modules/inttostr (Files): Add lib/uinttostr.c.
56431         * lib/uinttostr.c (inttostr): New file/function.
56432         * lib/inttostr.h (uinttostr): Declare.
56433         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
56434         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
56435         Add uinttostr.
56436         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
56437
56438 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56439
56440         * lib/canonicalize.c (ELOOP): Define if not already defined.
56441         Problem reported by Bruno Haible in
56442         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
56443
56444 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56445
56446         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
56447         Problem reported by Perry Smith and Ville Laurikari.
56448
56449         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
56450         uses.
56451
56452 2006-10-19  Bruno Haible  <bruno@clisp.org>
56453
56454         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
56455         for mingw.
56456
56457 2006-10-19  Bruno Haible  <bruno@clisp.org>
56458
56459         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
56460         Needed for mingw.
56461
56462 2006-10-19  Bruno Haible  <bruno@clisp.org>
56463
56464         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
56465
56466 2006-10-19  Bruno Haible  <bruno@clisp.org>
56467
56468         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
56469         it.
56470
56471 2006-10-19  Bruno Haible  <bruno@clisp.org>
56472
56473         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
56474         invocation.
56475
56476 2006-10-19  Bruno Haible  <bruno@clisp.org>
56477
56478         * gnulib-tool (func_create_testdir): Don't include ftruncate and
56479         mountlist by default.
56480
56481 2006-10-16  Bruno Haible  <bruno@clisp.org>
56482
56483         * lib/c-strstr.c: Include c-strstr.h.
56484
56485 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56486
56487         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
56488         in a slash.
56489
56490 2006-10-18  Bruno Haible  <bruno@clisp.org>
56491
56492         * lib/lock.h [C++]: Wrap definitions in extern "C".
56493
56494 2006-10-18  Bruno Haible  <bruno@clisp.org>
56495
56496         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
56497         gl_LIBOBJS list.
56498
56499 2006-10-18  Bruno Haible  <bruno@clisp.org>
56500
56501         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
56502
56503 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
56504
56505         * lib/xstrtol.h: Include gettext.h.
56506         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
56507         Problem reported by Eric Blake.
56508         * modules/xstrtol (Depends-on): Add gettext-h.
56509
56510 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
56511
56512         * lib/strftime.c (advance): New macro.
56513         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
56514         incomplete type, so you can't add 0 to it.  Problem and patch
56515         reported by Eelco Dolstra for dietlibc.
56516
56517 2006-10-18  Jim Meyering  <jim@meyering.net>
56518
56519         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
56520         type for a local, and rename it: s/up/user_proc/.
56521
56522 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56523
56524         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
56525         READ_UTMP_USER_PROCESS.
56526         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
56527
56528 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56529
56530         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
56531         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
56532
56533 2006-10-17  Eric Blake  <ebb9@byu.net>
56534
56535         * lib/sigprocmask.c (sigprocmask): Fix typo.
56536
56537         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
56538
56539         * modules/clean-temp (Makefile.am): Don't add to make output...
56540         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
56541         config.h.
56542
56543 2006-10-17  Bruno Haible  <bruno@clisp.org>
56544
56545         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
56546         differently if DEFAULT_TEXT_DOMAIN is set.
56547
56548 2006-10-16  Bruno Haible  <bruno@clisp.org>
56549
56550         * lib/clean-temp.c: Include fwriteerror.h.
56551
56552 2006-10-16  Bruno Haible  <bruno@clisp.org>
56553
56554         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
56555
56556 2006-10-16  Bruno Haible  <bruno@clisp.org>
56557
56558         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
56559         * lib/sigprocmask.h: Include <sys/types.h>.
56560         (sigset_t): Use the system's definition if present.
56561
56562 2006-10-17  Eric Blake  <ebb9@byu.net>
56563
56564         * lib/xvasprintf.c (includes): Assume config.h.
56565         * lib/xasprintf.c (includes): Likewise.
56566
56567 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56568
56569         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
56570         at least as wide as intmax_t.
56571
56572 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
56573
56574         (Imported from Automake.)
56575         * build-aux/gnupload: Update to version 1.1 of directive file.
56576
56577 2006-10-16  Eric Blake  <ebb9@byu.net>
56578
56579         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
56580         match Automake 1.10a.
56581
56582 2006-10-14  Bruno Haible  <bruno@clisp.org>
56583
56584         * modules/sigprocmask: New file.
56585         * lib/sigprocmask.h: New file.
56586         * lib/sigprocmask.c: New file.
56587         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
56588         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
56589         request sigprocmask.o.
56590         (gl_PREREQ_SIGPROCMASK): New macro.
56591         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
56592         (Depends-on): Add sigprocmask.
56593         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
56594         gt_SIGNALBLOCKING. Test for 'raise' only once.
56595         * lib/fatal-signal.c: Include sigprocmask.h.
56596         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
56597         unblock_fatal_signals): Define always.
56598         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56599         sigprocmask.
56600
56601 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56602
56603         Sync from Automake.
56604         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
56605         which incorrectly sets the mode of an existing destination
56606         directory.  In some cases the unpatched install-sh could do the
56607         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
56608         system.  We hope this is rare in practice, but it's clearly worth
56609         fixing.  Problem reported by Alex Unleashed in
56610         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
56611         Also, don't bother to check for -m bugs unless we're using -m;
56612         suggested by Stepan Kasal.
56613
56614 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56615
56616         Sync from Automake.
56617         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
56618         `-c' flag, so they appear at the same position as in %FASTDEP%
56619         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
56620         which ignores unknown options only after the first non-option.
56621         Bug report against M4 by Nelson H. F. Beebe.
56622
56623 2006-10-13  Jim Meyering  <jim@meyering.net>
56624
56625         Fix a bug in yesterday's change.
56626         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
56627         p->fts_statp->st_dev would be used uninitialized.
56628         Ensures that we always call fts_stat on the very first entry.
56629         Miklos Szeredi reported that find -xdev stopped working.
56630
56631 2006-10-12  Bruno Haible  <bruno@clisp.org>
56632
56633         * gnulib-tool (func_get_automake_snippet): Append an automatically
56634         computed EXTRA_DIST augmentation.
56635         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
56636         * modules/alloca-opt (Makefile.am): Likewise.
56637         * modules/allocsa (Makefile.am): Likewise.
56638         * modules/arcfour (Makefile.am): Likewise.
56639         * modules/arctwo (Makefile.am): Likewise.
56640         * modules/argmatch (Makefile.am): Likewise.
56641         * modules/argz (Makefile.am): Likewise.
56642         * modules/atexit (Makefile.am): Likewise.
56643         * modules/backupfile (Makefile.am): Likewise.
56644         * modules/byteswap (Makefile.am): Likewise.
56645         * modules/c-strtod (Makefile.am): Likewise.
56646         * modules/c-strtold (Makefile.am): Likewise.
56647         * modules/calloc (Makefile.am): Likewise.
56648         * modules/canon-host (Makefile.am): Likewise.
56649         * modules/canonicalize (Makefile.am): Likewise.
56650         * modules/chdir-long (Makefile.am): Likewise.
56651         * modules/chdir-safer (Makefile.am): Likewise.
56652         * modules/check-version (Makefile.am): Likewise.
56653         * modules/chown (Makefile.am): Likewise.
56654         * modules/cloexec (Makefile.am): Likewise.
56655         * modules/close-stream (Makefile.am): Likewise.
56656         * modules/closeout (Makefile.am): Likewise.
56657         * modules/crc (Makefile.am): Likewise.
56658         * modules/csharpexec (Makefile.am): Likewise.
56659         * modules/cycle-check (Makefile.am): Likewise.
56660         * modules/des (Makefile.am): Likewise.
56661         * modules/dev-ino (Makefile.am): Likewise.
56662         * modules/dirfd (Makefile.am): Likewise.
56663         * modules/dirname (Makefile.am): Likewise.
56664         * modules/dup2 (Makefile.am): Likewise.
56665         * modules/eealloc (Makefile.am): Likewise.
56666         * modules/error (Makefile.am): Likewise.
56667         * modules/euidaccess (Makefile.am): Likewise.
56668         * modules/exclude (Makefile.am): Likewise.
56669         * modules/exitfail (Makefile.am): Likewise.
56670         * modules/fcntl-safer (Makefile.am): Likewise.
56671         * modules/fcntl (Makefile.am): Likewise.
56672         * modules/file-type (Makefile.am): Likewise.
56673         * modules/fileblocks (Makefile.am): Likewise.
56674         * modules/filemode (Makefile.am): Likewise.
56675         * modules/filenamecat (Makefile.am): Likewise.
56676         * modules/fnmatch (Makefile.am): Likewise.
56677         * modules/fopen-safer (Makefile.am): Likewise.
56678         * modules/fpending (Makefile.am): Likewise.
56679         * modules/fprintftime (Makefile.am): Likewise.
56680         * modules/free (Makefile.am): Likewise.
56681         * modules/fsusage (Makefile.am): Likewise.
56682         * modules/ftruncate (Makefile.am): Likewise.
56683         * modules/fts (Makefile.am): Likewise.
56684         * modules/gc-arcfour (Makefile.am): Likewise.
56685         * modules/gc-des (Makefile.am): Likewise.
56686         * modules/gc-hmac-md5 (Makefile.am): Likewise.
56687         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
56688         * modules/gc-md4 (Makefile.am): Likewise.
56689         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56690         * modules/gc-sha1 (Makefile.am): Likewise.
56691         * modules/gc (Makefile.am): Likewise.
56692         * modules/getaddrinfo (Makefile.am): Likewise.
56693         * modules/getcwd (Makefile.am): Likewise.
56694         * modules/getdelim (Makefile.am): Likewise.
56695         * modules/getdomainname (Makefile.am): Likewise.
56696         * modules/getgroups (Makefile.am): Likewise.
56697         * modules/gethostname (Makefile.am): Likewise.
56698         * modules/gethrxtime (Makefile.am): Likewise.
56699         * modules/getline (Makefile.am): Likewise.
56700         * modules/getloadavg (Makefile.am): Likewise.
56701         * modules/getlogin_r (Makefile.am): Likewise.
56702         * modules/getndelim2 (Makefile.am): Likewise.
56703         * modules/getopt (Makefile.am): Likewise.
56704         * modules/getpagesize (Makefile.am): Likewise.
56705         * modules/getpass-gnu (Makefile.am): Likewise.
56706         * modules/getpass (Makefile.am): Likewise.
56707         * modules/getsubopt (Makefile.am): Likewise.
56708         * modules/gettime (Makefile.am): Likewise.
56709         * modules/gettimeofday (Makefile.am): Likewise.
56710         * modules/getugroups (Makefile.am): Likewise.
56711         * modules/getusershell (Makefile.am): Likewise.
56712         * modules/glob (Makefile.am): Likewise.
56713         * modules/group-member (Makefile.am): Likewise.
56714         * modules/hard-locale (Makefile.am): Likewise.
56715         * modules/hash (Makefile.am): Likewise.
56716         * modules/hmac-md5 (Makefile.am): Likewise.
56717         * modules/hmac-sha1 (Makefile.am): Likewise.
56718         * modules/human (Makefile.am): Likewise.
56719         * modules/idcache (Makefile.am): Likewise.
56720         * modules/imaxabs (Makefile.am): Likewise.
56721         * modules/imaxdiv (Makefile.am): Likewise.
56722         * modules/inet_ntop (Makefile.am): Likewise.
56723         * modules/inet_pton (Makefile.am): Likewise.
56724         * modules/intprops (Makefile.am): Likewise.
56725         * modules/inttostr (Makefile.am): Likewise.
56726         * modules/inttypes (Makefile.am): Likewise.
56727         * modules/isapipe (Makefile.am): Likewise.
56728         * modules/javaversion (Makefile.am): Likewise.
56729         * modules/lchmod (Makefile.am): Likewise.
56730         * modules/lchown (Makefile.am): Likewise.
56731         * modules/localcharset (Makefile.am): Likewise.
56732         * modules/long-options (Makefile.am): Likewise.
56733         * modules/lstat (Makefile.am): Likewise.
56734         * modules/malloc (Makefile.am): Likewise.
56735         * modules/mathl (Makefile.am): Likewise.
56736         * modules/mbchar (Makefile.am): Likewise.
56737         * modules/md2 (Makefile.am): Likewise.
56738         * modules/md4 (Makefile.am): Likewise.
56739         * modules/md5 (Makefile.am): Likewise.
56740         * modules/memcasecmp (Makefile.am): Likewise.
56741         * modules/memchr (Makefile.am): Likewise.
56742         * modules/memcmp (Makefile.am): Likewise.
56743         * modules/memcoll (Makefile.am): Likewise.
56744         * modules/memcpy (Makefile.am): Likewise.
56745         * modules/memmem (Makefile.am): Likewise.
56746         * modules/memmove (Makefile.am): Likewise.
56747         * modules/mempcpy (Makefile.am): Likewise.
56748         * modules/memrchr (Makefile.am): Likewise.
56749         * modules/memset (Makefile.am): Likewise.
56750         * modules/memxor (Makefile.am): Likewise.
56751         * modules/mkancesdirs (Makefile.am): Likewise.
56752         * modules/mkdir-p (Makefile.am): Likewise.
56753         * modules/mkdir (Makefile.am): Likewise.
56754         * modules/mkdtemp (Makefile.am): Likewise.
56755         * modules/mkstemp (Makefile.am): Likewise.
56756         * modules/mktime (Makefile.am): Likewise.
56757         * modules/modechange (Makefile.am): Likewise.
56758         * modules/mountlist (Makefile.am): Likewise.
56759         * modules/nanosleep (Makefile.am): Likewise.
56760         * modules/obstack (Makefile.am): Likewise.
56761         * modules/openat (Makefile.am): Likewise.
56762         * modules/pagealign_alloc (Makefile.am): Likewise.
56763         * modules/pathmax (Makefile.am): Likewise.
56764         * modules/physmem (Makefile.am): Likewise.
56765         * modules/poll (Makefile.am): Likewise.
56766         * modules/posixtm (Makefile.am): Likewise.
56767         * modules/posixver (Makefile.am): Likewise.
56768         * modules/putenv (Makefile.am): Likewise.
56769         * modules/quote (Makefile.am): Likewise.
56770         * modules/quotearg (Makefile.am): Likewise.
56771         * modules/raise (Makefile.am): Likewise.
56772         * modules/read-file (Makefile.am): Likewise.
56773         * modules/readline (Makefile.am): Likewise.
56774         * modules/readlink (Makefile.am): Likewise.
56775         * modules/readtokens (Makefile.am): Likewise.
56776         * modules/readutmp (Makefile.am): Likewise.
56777         * modules/realloc (Makefile.am): Likewise.
56778         * modules/regex (Makefile.am): Likewise.
56779         * modules/rename-dest-slash (Makefile.am): Likewise.
56780         * modules/rename (Makefile.am): Likewise.
56781         * modules/rijndael (Makefile.am): Likewise.
56782         * modules/rmdir (Makefile.am): Likewise.
56783         * modules/rpmatch (Makefile.am): Likewise.
56784         * modules/safe-read (Makefile.am): Likewise.
56785         * modules/safe-write (Makefile.am): Likewise.
56786         * modules/same-inode (Makefile.am): Likewise.
56787         * modules/same (Makefile.am): Likewise.
56788         * modules/save-cwd (Makefile.am): Likewise.
56789         * modules/savedir (Makefile.am): Likewise.
56790         * modules/setenv (Makefile.am): Likewise.
56791         * modules/settime (Makefile.am): Likewise.
56792         * modules/sha1 (Makefile.am): Likewise.
56793         * modules/sig2str (Makefile.am): Likewise.
56794         * modules/snprintf (Makefile.am): Likewise.
56795         * modules/stat-macros (Makefile.am): Likewise.
56796         * modules/stat-time (Makefile.am): Likewise.
56797         * modules/stdbool (Makefile.am): Likewise.
56798         * modules/stdint (Makefile.am): Likewise.
56799         * modules/stdlib-safer (Makefile.am): Likewise.
56800         * modules/stpcpy (Makefile.am): Likewise.
56801         * modules/stpncpy (Makefile.am): Likewise.
56802         * modules/strcase (Makefile.am): Likewise.
56803         * modules/strcasestr (Makefile.am): Likewise.
56804         * modules/strchrnul (Makefile.am): Likewise.
56805         * modules/strcspn (Makefile.am): Likewise.
56806         * modules/strdup (Makefile.am): Likewise.
56807         * modules/strerror (Makefile.am): Likewise.
56808         * modules/strftime (Makefile.am): Likewise.
56809         * modules/strndup (Makefile.am): Likewise.
56810         * modules/strnlen (Makefile.am): Likewise.
56811         * modules/strpbrk (Makefile.am): Likewise.
56812         * modules/strsep (Makefile.am): Likewise.
56813         * modules/strstr (Makefile.am): Likewise.
56814         * modules/strtod (Makefile.am): Likewise.
56815         * modules/strtoimax (Makefile.am): Likewise.
56816         * modules/strtok_r (Makefile.am): Likewise.
56817         * modules/strtol (Makefile.am): Likewise.
56818         * modules/strtoll (Makefile.am): Likewise.
56819         * modules/strtoul (Makefile.am): Likewise.
56820         * modules/strtoull (Makefile.am): Likewise.
56821         * modules/strtoumax (Makefile.am): Likewise.
56822         * modules/strverscmp (Makefile.am): Likewise.
56823         * modules/sys_socket (Makefile.am): Likewise.
56824         * modules/sys_stat (Makefile.am): Likewise.
56825         * modules/sysexits (Makefile.am): Likewise.
56826         * modules/time_r (Makefile.am): Likewise.
56827         * modules/timegm (Makefile.am): Likewise.
56828         * modules/timespec (Makefile.am): Likewise.
56829         * modules/tmpfile-safer (Makefile.am): Likewise.
56830         * modules/trim (Makefile.am): Likewise.
56831         * modules/unistd-safer (Makefile.am): Likewise.
56832         * modules/unlinkdir (Makefile.am): Likewise.
56833         * modules/unlocked-io (Makefile.am): Likewise.
56834         * modules/userspec (Makefile.am): Likewise.
56835         * modules/utime (Makefile.am): Likewise.
56836         * modules/utimecmp (Makefile.am): Likewise.
56837         * modules/utimens (Makefile.am): Likewise.
56838         * modules/vasnprintf (Makefile.am): Likewise.
56839         * modules/vasprintf (Makefile.am): Likewise.
56840         * modules/vsnprintf (Makefile.am): Likewise.
56841         * modules/xalloc (Makefile.am): Likewise.
56842         * modules/xgetcwd (Makefile.am): Likewise.
56843         * modules/xnanosleep (Makefile.am): Likewise.
56844         * modules/xreadlink (Makefile.am): Likewise.
56845         * modules/xstrtod (Makefile.am): Likewise.
56846         * modules/xstrtol (Makefile.am): Likewise.
56847         * modules/xstrtold (Makefile.am): Likewise.
56848         * modules/yesno (Makefile.am): Likewise.
56849         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
56850
56851 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56852
56853         * modules/error (Makefile.am): Distribute files through
56854         EXTRA_DIST, not lib_SOURCES.
56855
56856 2006-10-12  Eric Blake  <ebb9@byu.net>
56857
56858         * modules/error (Makefile.am): Distribute files in /lib.
56859         * modules/obstack (Makefile.am): Likewise.
56860
56861 2006-10-12  Bruno Haible  <bruno@clisp.org>
56862
56863         * modules/acl (Makefile.am): Distribute all files in lib/ through
56864         EXTRA_DIST.
56865         * modules/arcfour (Makefile.am): Likewise.
56866         * modules/arctwo (Makefile.am): Likewise.
56867         * modules/argmatch (Makefile.am): Likewise.
56868         * modules/argz (Makefile.am): Likewise.
56869         * modules/atexit (Makefile.am): Likewise.
56870         * modules/backupfile (Makefile.am): Likewise.
56871         * modules/c-strtod (Makefile.am): Likewise.
56872         * modules/c-strtold (Makefile.am): Likewise.
56873         * modules/calloc (Makefile.am): Likewise.
56874         * modules/canon-host (Makefile.am): Likewise.
56875         * modules/canonicalize (Makefile.am): Likewise.
56876         * modules/chdir-long (Makefile.am): Likewise.
56877         * modules/chdir-safer (Makefile.am): Likewise.
56878         * modules/check-version (Makefile.am): Likewise.
56879         * modules/chown (Makefile.am): Likewise.
56880         * modules/cloexec (Makefile.am): Likewise.
56881         * modules/close-stream (Makefile.am): Likewise.
56882         * modules/closeout (Makefile.am): Likewise.
56883         * modules/crc (Makefile.am): Likewise.
56884         * modules/cycle-check (Makefile.am): Likewise.
56885         * modules/des (Makefile.am): Likewise.
56886         * modules/dirfd (Makefile.am): Likewise.
56887         * modules/dirname (Makefile.am): Likewise.
56888         * modules/dup2 (Makefile.am): Likewise.
56889         * modules/euidaccess (Makefile.am): Likewise.
56890         * modules/exclude (Makefile.am): Likewise.
56891         * modules/exitfail (Makefile.am): Likewise.
56892         * modules/fcntl-safer (Makefile.am): Likewise.
56893         * modules/file-type (Makefile.am): Likewise.
56894         * modules/fileblocks (Makefile.am): Likewise.
56895         * modules/filemode (Makefile.am): Likewise.
56896         * modules/filenamecat (Makefile.am): Likewise.
56897         * modules/fnmatch (Makefile.am): Likewise.
56898         * modules/fopen-safer (Makefile.am): Likewise.
56899         * modules/fpending (Makefile.am): Likewise.
56900         * modules/fprintftime (Makefile.am): Likewise.
56901         * modules/free (Makefile.am): Likewise.
56902         * modules/fsusage (Makefile.am): Likewise.
56903         * modules/ftruncate (Makefile.am): Likewise.
56904         * modules/fts (Makefile.am): Likewise.
56905         * modules/gc (Makefile.am): Likewise.
56906         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56907         * modules/getaddrinfo (Makefile.am): Likewise.
56908         * modules/getcwd (Makefile.am): Likewise.
56909         * modules/getdelim (Makefile.am): Likewise.
56910         * modules/getdomainname (Makefile.am): Likewise.
56911         * modules/getgroups (Makefile.am): Likewise.
56912         * modules/gethostname (Makefile.am): Likewise.
56913         * modules/gethrxtime (Makefile.am): Likewise.
56914         * modules/getline (Makefile.am): Likewise.
56915         * modules/getloadavg (Makefile.am): Likewise.
56916         * modules/getlogin_r (Makefile.am): Likewise.
56917         * modules/getopt (Makefile.am): Likewise.
56918         * modules/getpass (Makefile.am): Likewise.
56919         * modules/getpass-gnu (Makefile.am): Likewise.
56920         * modules/getsubopt (Makefile.am): Likewise.
56921         * modules/gettime (Makefile.am): Likewise.
56922         * modules/gettimeofday (Makefile.am): Likewise.
56923         * modules/getugroups (Makefile.am): Likewise.
56924         * modules/getusershell (Makefile.am): Likewise.
56925         * modules/glob (Makefile.am): Likewise.
56926         * modules/group-member (Makefile.am): Likewise.
56927         * modules/hard-locale (Makefile.am): Likewise.
56928         * modules/hash (Makefile.am): Likewise.
56929         * modules/hmac-md5 (Makefile.am): Likewise.
56930         * modules/hmac-sha1 (Makefile.am): Likewise.
56931         * modules/human (Makefile.am): Likewise.
56932         * modules/idcache (Makefile.am): Likewise.
56933         * modules/imaxabs (Makefile.am): Likewise.
56934         * modules/imaxdiv (Makefile.am): Likewise.
56935         * modules/inet_ntop (Makefile.am): Likewise.
56936         * modules/inet_pton (Makefile.am): Likewise.
56937         * modules/inttostr (Makefile.am): Likewise.
56938         * modules/isapipe (Makefile.am): Likewise.
56939         * modules/lchown (Makefile.am): Likewise.
56940         * modules/long-options (Makefile.am): Likewise.
56941         * modules/lstat (Makefile.am): Likewise.
56942         * modules/malloc (Makefile.am): Likewise.
56943         * modules/mathl (Makefile.am): Likewise.
56944         * modules/mbchar (Makefile.am): Likewise.
56945         * modules/md2 (Makefile.am): Likewise.
56946         * modules/md4 (Makefile.am): Likewise.
56947         * modules/md5 (Makefile.am): Likewise.
56948         * modules/memcasecmp (Makefile.am): Likewise.
56949         * modules/memchr (Makefile.am): Likewise.
56950         * modules/memcmp (Makefile.am): Likewise.
56951         * modules/memcoll (Makefile.am): Likewise.
56952         * modules/memcpy (Makefile.am): Likewise.
56953         * modules/memmem (Makefile.am): Likewise.
56954         * modules/memmove (Makefile.am): Likewise.
56955         * modules/mempcpy (Makefile.am): Likewise.
56956         * modules/memrchr (Makefile.am): Likewise.
56957         * modules/memset (Makefile.am): Likewise.
56958         * modules/memxor (Makefile.am): Likewise.
56959         * modules/mkancesdirs (Makefile.am): Likewise.
56960         * modules/mkdir (Makefile.am): Likewise.
56961         * modules/mkdir-p (Makefile.am): Likewise.
56962         * modules/mkdtemp (Makefile.am): Likewise.
56963         * modules/mkstemp (Makefile.am): Likewise.
56964         * modules/mktime (Makefile.am): Likewise.
56965         * modules/modechange (Makefile.am): Likewise.
56966         * modules/mountlist (Makefile.am): Likewise.
56967         * modules/nanosleep (Makefile.am): Likewise.
56968         * modules/openat (Makefile.am): Likewise.
56969         * modules/pagealign_alloc (Makefile.am): Likewise.
56970         * modules/physmem (Makefile.am): Likewise.
56971         * modules/poll (Makefile.am): Likewise.
56972         * modules/posixtm (Makefile.am): Likewise.
56973         * modules/posixver (Makefile.am): Likewise.
56974         * modules/putenv (Makefile.am): Likewise.
56975         * modules/quote (Makefile.am): Likewise.
56976         * modules/quotearg (Makefile.am): Likewise.
56977         * modules/raise (Makefile.am): Likewise.
56978         * modules/read-file (Makefile.am): Likewise.
56979         * modules/readline (Makefile.am): Likewise.
56980         * modules/readlink (Makefile.am): Likewise.
56981         * modules/readtokens (Makefile.am): Likewise.
56982         * modules/readutmp (Makefile.am): Likewise.
56983         * modules/realloc (Makefile.am): Likewise.
56984         * modules/regex (Makefile.am): Likewise.
56985         * modules/rename (Makefile.am): Likewise.
56986         * modules/rename-dest-slash (Makefile.am): Likewise.
56987         * modules/rijndael (Makefile.am): Likewise.
56988         * modules/rmdir (Makefile.am): Likewise.
56989         * modules/rpmatch (Makefile.am): Likewise.
56990         * modules/safe-read (Makefile.am): Likewise.
56991         * modules/safe-write (Makefile.am): Likewise.
56992         * modules/same (Makefile.am): Likewise.
56993         * modules/save-cwd (Makefile.am): Likewise.
56994         * modules/savedir (Makefile.am): Likewise.
56995         * modules/setenv (Makefile.am): Likewise.
56996         * modules/settime (Makefile.am): Likewise.
56997         * modules/sha1 (Makefile.am): Likewise.
56998         * modules/sig2str (Makefile.am): Likewise.
56999         * modules/snprintf (Makefile.am): Likewise.
57000         * modules/stdlib-safer (Makefile.am): Likewise.
57001         * modules/stpcpy (Makefile.am): Likewise.
57002         * modules/stpncpy (Makefile.am): Likewise.
57003         * modules/strcase (Makefile.am): Likewise.
57004         * modules/strcasestr (Makefile.am): Likewise.
57005         * modules/strchrnul (Makefile.am): Likewise.
57006         * modules/strcspn (Makefile.am): Likewise.
57007         * modules/strdup (Makefile.am): Likewise.
57008         * modules/strerror (Makefile.am): Likewise.
57009         * modules/strftime (Makefile.am): Likewise.
57010         * modules/strndup (Makefile.am): Likewise.
57011         * modules/strnlen (Makefile.am): Likewise.
57012         * modules/strpbrk (Makefile.am): Likewise.
57013         * modules/strsep (Makefile.am): Likewise.
57014         * modules/strstr (Makefile.am): Likewise.
57015         * modules/strtod (Makefile.am): Likewise.
57016         * modules/strtoimax (Makefile.am): Likewise.
57017         * modules/strtok_r (Makefile.am): Likewise.
57018         * modules/strtol (Makefile.am): Likewise.
57019         * modules/strtoll (Makefile.am): Likewise.
57020         * modules/strtoul (Makefile.am): Likewise.
57021         * modules/strtoull (Makefile.am): Likewise.
57022         * modules/strtoumax (Makefile.am): Likewise.
57023         * modules/strverscmp (Makefile.am): Likewise.
57024         * modules/time_r (Makefile.am): Likewise.
57025         * modules/timegm (Makefile.am): Likewise.
57026         * modules/tmpfile-safer (Makefile.am): Likewise.
57027         * modules/unistd-safer (Makefile.am): Likewise.
57028         * modules/unlinkdir (Makefile.am): Likewise.
57029         * modules/userspec (Makefile.am): Likewise.
57030         * modules/utime (Makefile.am): Likewise.
57031         * modules/utimecmp (Makefile.am): Likewise.
57032         * modules/utimens (Makefile.am): Likewise.
57033         * modules/vasnprintf (Makefile.am): Likewise.
57034         * modules/vasprintf (Makefile.am): Likewise.
57035         * modules/vsnprintf (Makefile.am): Likewise.
57036         * modules/xalloc (Makefile.am): Likewise.
57037         * modules/xgetcwd (Makefile.am): Likewise.
57038         * modules/xnanosleep (Makefile.am): Likewise.
57039         * modules/xreadlink (Makefile.am): Likewise.
57040         * modules/xstrtod (Makefile.am): Likewise.
57041         * modules/xstrtol (Makefile.am): Likewise.
57042         * modules/xstrtold (Makefile.am): Likewise.
57043         * modules/yesno (Makefile.am): Likewise.
57044
57045 2006-10-12  Jim Meyering  <jim@meyering.net>
57046
57047         * m4/getloadavg.m4: Revert the change below.
57048
57049         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
57050         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
57051         fail with a symlink, which is what coreutils' ./bootstrap now
57052         creates by default.
57053
57054 2006-10-12  Bruno Haible  <bruno@clisp.org>
57055
57056         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
57057         mingw.
57058         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
57059         MSVC and mingw explicitly.
57060
57061 2006-10-11  Simon Josefsson  <jas@extundo.com>
57062             Bruno Haible  <bruno@clisp.org>
57063
57064         Add support for multiple gnulib-tool invocations in the scope of a
57065         single configure.ac file.
57066         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
57067         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
57068         with the same contents as the _LIBADD variable.
57069         (func_emit_initmacro_start, func_emit_initmacro_end,
57070         func_emit_initmacro_done): New functions.
57071         (func_import, func_create_testdir): Invoke them. Allow the identifiers
57072         gl_LIBOBJS and gl_LTLIBOBJS.
57073
57074 2006-10-11  Bruno Haible  <bruno@clisp.org>
57075
57076         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
57077         (func_create_testdir): Don't create po/Makefile.am, don't invoke
57078         autoreconf. Instead, invoke autopoint explicitly but move back the
57079         *.m4 files from gnulib.
57080
57081 2006-10-11  Bruno Haible  <bruno@clisp.org>
57082
57083         * gnulib-tool (func_usage): Make module names after --create-testdir
57084         optional.
57085         (func_create_testdir): If no module was specified, use nearly all
57086         modules.
57087
57088 2006-10-12  Jim Meyering  <jim@meyering.net>
57089
57090         Big performance improvement for fts-based tools that use FTS_NOSTAT.
57091         Avoid spurious inode-mismatch problems on non-POSIX file systems.
57092         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
57093         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
57094         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
57095         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
57096         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
57097         (fts_set_stat_required): New function.
57098         (fts_open): Defer the calls to fts_stat, if possible or requested.
57099         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
57100         into fts_stat itself.
57101         (fts_read): Perform any required (deferred) fts_stat call.
57102         (fts_build): Likewise, for the directory we're about to open and read.
57103         In the readdir loop, carefully decide whether each entry will require
57104         an eventual call to fts_stat, using dirent.d_type info if available.
57105         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
57106         a command line argument into this function.  Update all callers.
57107         Map a return value of FTS_DOT to FTS_D for a command line argument.
57108         * modules/fts (Depends-on): Add d-type.  Alphabetize.
57109         Thanks to Miklos Szeredi for his tenacity and for the initial
57110         bug report about "find" failing on a FUSE-based file system.
57111
57112         * lib/fts.c (fts_open): Use consistent indentation.
57113
57114 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57115
57116         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
57117         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
57118         reported by Jim Meyering.  All uses of cache variables renamed
57119         to match Autoconf's.
57120         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
57121         the other one.
57122
57123         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
57124         Fix misspelling in diagnostic.
57125
57126 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57127
57128         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
57129         defined.  Problem reported by Matthew Woehlke.
57130
57131         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
57132         Add support for Tandem NonStop R series.
57133         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
57134         Use new macro.
57135
57136         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
57137         (has_trailing_slash): Omit size arg; all callers changed.
57138         Omit 'inline', since it doesn't help performance and we'd
57139         need to configure it.
57140         Don't count //, ///, etc. as having a trailing slash.
57141         As a side effect, this removes a C99ism reported by Matthew Woehlke.
57142         (rpl_rename_dest_slash): On failure, use rename's errno rather
57143         than (in some cases) an incorrect or junk errno.
57144         Simplify code by removing need to compute length; this does
57145         cause it to make two passes instead of one over the file name,
57146         but it's worth it.
57147
57148         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
57149         change, since Autoconf's version may no longer be appropriate now
57150         that we are using CVS Autoconf's version.  Add support for Tandem.
57151
57152 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57153             Bruno Haible  <bruno@clisp.org>
57154
57155         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
57156         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
57157         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
57158         gl_AC_TYPE_LONG_LONG.
57159
57160         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
57161         instead of HAVE_LONG_LONG.
57162         * lib/printf-args.c (printf_fetchargs): Likewise.
57163         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57164         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57165         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
57166         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
57167         gl_AC_TYPE_LONG_LONG.
57168
57169 2006-10-11  Bruno Haible  <bruno@clisp.org>
57170
57171         * m4/longlong.m4: Add comments.
57172         * m4/ulonglong.m4: Likewise.
57173
57174 2006-10-10  Bruno Haible  <bruno@clisp.org>
57175
57176         Make it possible to #define stpcpy, strdup to aliases.
57177         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
57178         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
57179
57180 2006-10-10  Bruno Haible  <bruno@clisp.org>
57181
57182         Make it possible to #define gcd to an alias.
57183         * lib/gcd.c: Include config.h.
57184
57185 2006-10-10  Bruno Haible  <bruno@clisp.org>
57186
57187         Make it possible to #define c_isascii to an alias.
57188         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
57189         defined. Undefine the macros before defining them, to avoid gcc
57190         warnings.
57191         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
57192         define NO_C_CTYPE_MACROS early.
57193
57194 2006-10-10  Bruno Haible  <bruno@clisp.org>
57195
57196         Make it possible to #define set_program_name to an alias.
57197         * lib/progname.c: Don't undefine set_program_name; instead, undefine
57198         ENABLE_RELOCATABLE early.
57199
57200 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57201
57202         Port to Tandem NSK OSS, which has 64-bit signed int but at most
57203         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
57204         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
57205         More generally, don't assume that 64-bit signed int is available
57206         if unsigned int is, and vice versa.
57207         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
57208         unsigned symbols, not on their signed counterparts.
57209         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
57210         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
57211         (UINT64_C, UINTMAX_C):
57212         Likewise.
57213         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
57214         unsigned counterparts.
57215         (Have_long_long, Unsigned): New macros.
57216         (Int): Renamed from INT.
57217         (strtoimax): Use the new macros.
57218         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
57219         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
57220         * modules/inttypes (inttypes.h): Substitute
57221         HAVE_UNSIGNED_LONG_LONG_INT.
57222         * modules/stdint (stdint.h): Likewise.
57223         (Files): Add m4/ulonglong.m4.
57224
57225 2006-10-10  Bruno Haible  <bruno@clisp.org>
57226
57227         Fix a gcc -Wshadow warning.
57228         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
57229         to 'bucket'.
57230         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
57231         gl_linked_indexof_from_to): Likewise.
57232         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
57233         Likewise.
57234         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
57235         Likewise.
57236         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
57237         Reported by Eric Blake.
57238
57239 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
57240
57241         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
57242         for NetBSD.  Problem reported by Bruno Haible.
57243
57244 2006-10-09  Jim Meyering  <jim@meyering.net>
57245
57246         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
57247         Patch from Bruno Haible.
57248
57249 2006-10-09  Jim Meyering  <jim@meyering.net>
57250
57251         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
57252         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
57253         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
57254
57255 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57256
57257         Don't include <config.h> twice; this doesn't work in some cases,
57258         e.g., when config.h has "#define intmax_t long long int" and
57259         we include <config.h>, <inttypes.h>, <config.h> in that order.
57260         Problem reported by Matthew Woehlke in:
57261         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
57262         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
57263         * lib/fts-cycle.c: Don't include config.h.
57264         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
57265         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
57266         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
57267         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
57268         inttypes.h.
57269         * lib/xstrtoumax.c: Likewise.
57270         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
57271         __strtol and the like, so that this module is more like its siblings.
57272         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
57273         Remove; no longer needed now that we assume gnulib inttypes.h.
57274
57275 2006-10-08  Bruno Haible  <bruno@clisp.org>
57276
57277         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
57278         option.
57279
57280 2006-10-07  Jim Meyering  <jim@meyering.net>
57281
57282         * modules/inttypes (inttypes.h): Revert what seems to have been
57283         an inadvertent part of today's change: use "|", not "/" in the
57284         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
57285
57286 2006-10-07  Bruno Haible  <bruno@clisp.org>
57287
57288         * modules/sublist: New file.
57289
57290 2006-10-07  Bruno Haible  <bruno@clisp.org>
57291
57292         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
57293         * modules/argz (argz.h): Likewise.
57294         * modules/arpa_inet (arpa/inet.h): Likewise.
57295         * modules/byteswap (byteswap.h): Likewise.
57296         * modules/configmake (configmake.h): Likewise.
57297         * modules/fcntl (fcntl.h): Likewise.
57298         * modules/fnmatch (fnmatch.h): Likewise.
57299         * modules/getopt (getopt.h): Likewise.
57300         * modules/glob (glob.h): Likewise.
57301         * modules/inttypes (inttypes.h): Likewise.
57302         * modules/netinet_in (netinet/in.h): Likewise.
57303         * modules/poll (poll.h): Likewise.
57304         * modules/stdbool (stdbool.h): Likewise.
57305         * modules/stdint (stdint.h): Likewise.
57306         * modules/sys_select (sys/select.h): Likewise.
57307         * modules/sys_socket (sys/socket.h): Likewise.
57308         * modules/sys_stat (sys/stat.h): Likewise.
57309         * modules/sysexits (sysexits.h): Likewise.
57310         * modules/unistd (unistd.h): Likewise.
57311         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57312         Add a "DO NOT EDIT" comment to the generated file.
57313         (func_import): Likewise for gnulib-comp.m4.
57314
57315 2006-10-07  Bruno Haible  <bruno@clisp.org>
57316
57317         * lib/gl_sublist.h: New file.
57318         * lib/gl_sublist.c: New file.
57319
57320 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57321
57322         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
57323         name (relative to the original working directory) and the file
57324         name component (relative to the temporary working directory).  All
57325         callers changed.
57326         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
57327         * lib/mkdir-p.c (make_dir_parents): Likewise.
57328         * lib/mkdir-p.h (make_dir_parents): Likewise.
57329
57330 2006-10-06  Eric Blake  <ebb9@byu.net>
57331
57332         Define several macros for use by the clean-temp module.
57333         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
57334         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
57335         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
57336
57337         * lib/clean-temp.h (close_stream_temp): New declaration.
57338         * lib/clean-temp.c (includes): Pull in headers according to what
57339         other modules are in use.
57340         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
57341
57342 2006-10-06  Bruno Haible  <bruno@clisp.org>
57343
57344         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
57345         instead of fopen, fwriteerror.
57346
57347 2006-10-06  Bruno Haible  <bruno@clisp.org>
57348
57349         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
57350         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
57351         int.
57352         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
57353         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
57354         Return an error indicator.
57355         Suggested by Eric Blake.
57356
57357 2006-10-06  Bruno Haible  <bruno@clisp.org>
57358
57359         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
57360         Reported by Eric Blake.
57361
57362 2006-10-06  Bruno Haible  <bruno@clisp.org>
57363
57364         * modules/closeout (Description): Mention stderr too.
57365
57366 2006-10-06  Bruno Haible  <bruno@clisp.org>
57367         and Paul Eggert  <eggert@cs.ucla.edu>
57368
57369         * lib/closeout.c (close_stdout): Also close stderr.
57370         * lib/closeout.h: Update comment.
57371
57372 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57373
57374         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
57375         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
57376         * lib/dirchownmod.c: Include lchown.h.
57377         * lib/lchown.c: Don't include files that lchown.h now includes.
57378         Don't declare chown, since lchown.h now does that.
57379         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
57380         (lchown): Define to rpl_chown if lchown is declared but
57381         does not exist.  Declare using a prototype if lchown is not
57382         declared.  Add a copyright notice.
57383         * lib/mkstemp.h: Include <unistd.h>.
57384         * lib/openat.c: Include lchown.h.
57385
57386         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
57387         we now test for that separately.
57388         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
57389         rather than O_NOFOLLOW, when testing whether it's possible to
57390         avoid a race condition reliably.
57391         * lib/savewd.c (savewd_chdir): Likewise.
57392
57393         Remove macros that are no longer needed now that stdint.h is
57394         reliable.
57395         * lib/fsusage.c (UINTMAX_MAX): Remove.
57396         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
57397         * lib/utimecmp.c (SIZE_MAX): Remove.
57398
57399         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
57400
57401         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
57402         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
57403         O_NOATIME works.
57404
57405 2006-10-05  Bruno Haible  <bruno@clisp.org>
57406
57407         * lib/gl_list.h (gl_sortedlist_search_from_to,
57408         gl_sortedlist_indexof_from_to): New declarations.
57409         (gl_list_implementation): New fields sortedlist_search_from_to,
57410         sortedlist_indexof_from_to.
57411         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
57412         inline functions.
57413         * lib/gl_list.c (gl_sortedlist_search_from_to,
57414         gl_sortedlist_indexof_from_to): New functions.
57415         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
57416         function.
57417         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
57418         (gl_array_sortedlist_search_from_to): New function.
57419         (gl_array_list_implementation): Update.
57420         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
57421         function.
57422         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
57423         (gl_carray_sortedlist_search_from_to): New function.
57424         (gl_carray_list_implementation): Update.
57425         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
57426         gl_linked_sortedlist_indexof_from_to): New functions.
57427         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57428         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57429         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
57430         gl_tree_sortedlist_indexof_from_to): New functions.
57431         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57432         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57433         Update.
57434         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57435         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
57436         Update.
57437
57438 2006-10-05  Bruno Haible  <bruno@clisp.org>
57439
57440         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
57441         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
57442         (struct gl_list_implementation): Add fields search_from_to,
57443         indexof_from_to. Remove fields search, indexof.
57444         (gl_list_search): Use the search_from_to method.
57445         (gl_list_search_from, gl_list_search_from_to): New functions.
57446         (gl_list_indexof): Use the indexof_from_to method.
57447         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57448         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
57449         (gl_list_search_from, gl_list_search_from_to): New functions.
57450         (gl_list_indexof): Use the indexof_from_to method.
57451         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57452         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
57453         gl_array_indexof. Add start_index, end_index arguments.
57454         (gl_array_search_from_to): Renamed from gl_array_search. Add
57455         start_index, end_index arguments.
57456         (gl_array_remove, gl_array_list_implementation): Update.
57457         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
57458         gl_carray_indexof. Add start_index, end_index arguments.
57459         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
57460         start_index, end_index arguments.
57461         (gl_carray_remove, gl_carray_list_implementation): Update.
57462         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
57463         gl_linked_search. Add start_index, end_index arguments.
57464         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
57465         start_index, end_index arguments.
57466         (gl_linked_remove): Update.
57467         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57468         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57469         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
57470         field to 'size_t'.
57471         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
57472         gl_tree_search. Add start_index, end_index arguments.
57473         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57474         start_index, end_index arguments.
57475         (gl_tree_remove): Update.
57476         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57477         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57478         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
57479         function.
57480         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
57481         gl_tree_search. Add start_index, end_index arguments.
57482         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57483         start_index, end_index arguments.
57484         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57485         Update.
57486         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57487
57488 2006-10-05  Bruno Haible  <bruno@clisp.org>
57489
57490         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
57491
57492         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
57493         fwriteerror_temp): New declarations.
57494         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
57495         (descriptors): New variable.
57496         (cleanup): First, close the descriptors.
57497         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
57498         fclose_temp, fwriteerror_temp): New functions.
57499
57500 2006-10-04  Jim Meyering  <jim@meyering.net>
57501
57502         * lib/fts.c (fts_open): Tiny comment change.
57503
57504 2006-10-04  Bruno Haible  <bruno@clisp.org>
57505
57506         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
57507         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
57508         gl_LOCK_BODY.
57509         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
57510         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
57511         gl_LOCK_EARLY_BODY.
57512         (gl_LOCK): Require gl_LOCK_BODY.
57513
57514 2006-10-04  Bruno Haible  <bruno@clisp.org>
57515
57516         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
57517         (gl_oset_search_atleast): New declaration.
57518         (struct gl_oset_implementation): Add field 'search_atleast'.
57519         (gl_oset_search_atleast): New inline function.
57520         * lib/gl_oset.c (gl_oset_search_atleast): New function.
57521         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
57522         (gl_array_oset_implementation): Update.
57523         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
57524         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
57525         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
57526
57527 2006-10-04  Bruno Haible  <bruno@clisp.org>
57528
57529         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
57530
57531 2006-10-03  Bruno Haible  <bruno@clisp.org>
57532
57533         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
57534         from gl_avltreehash_list_implementation.
57535
57536 2006-10-03  Bruno Haible  <bruno@clisp.org>
57537
57538         * lib/gl_oset.c (gl_oset_add): Fix return type.
57539
57540 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
57541
57542         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
57543
57544 2006-10-02  Eric Blake  <ebb9@byu.net>
57545
57546         * modules/strnlen (Depends-on): Add extensions.
57547
57548 2006-10-02  Eric Blake  <ebb9@byu.net>
57549
57550         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
57551         definition in 2.60+.
57552
57553 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57554
57555         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
57556         checks.
57557
57558 2006-10-02  Bruno Haible  <bruno@clisp.org>
57559
57560         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
57561         to the AUTOMAKE_OPTIONS.
57562         Reported by Jim Meyering.
57563
57564 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57565
57566         Work around bug in Solaris 10 /proc file system:
57567         /proc/self/fd/NNN/.. isn't the parent directory of
57568         the directory whose file descriptor is NNN.  This needs to
57569         be worked around at run time, not compile time, since a
57570         program might be built on Solaris 8, where things work, and
57571         run on Solaris 10.
57572         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
57573         to use the following interface instead:
57574         (OPENAT_BUFFER_SIZE): New macro.
57575         (openat_proc_name): New function.
57576         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
57577         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
57578         Likewise.
57579         * lib/openat-proc.c: New file.
57580         * modules/openat (Files): Add lib/openat-proc.c.
57581         (Depends-on): Add same-inode, stdbool.
57582         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
57583
57584 2006-09-29  Bruno Haible  <bruno@clisp.org>
57585
57586         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
57587         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
57588         argument. Set stdout_closed before testing for ferror, not after.
57589         (fwriteerror, fwriteerror_no_ebadf): New functions.
57590
57591 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57592
57593         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
57594
57595 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
57596
57597         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
57598         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
57599
57600 2006-09-28  Jim Meyering  <jim@meyering.net>
57601
57602         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
57603         Include <unistd.h>.
57604
57605 2006-09-28  Bruno Haible  <bruno@clisp.org>
57606
57607         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
57608         * modules/linkedhash-list (Depends-on): Likewise.
57609         * modules/rbtreehash-list (Depends-on): Likewise.
57610
57611 2006-09-28  Bruno Haible  <bruno@clisp.org>
57612
57613         * lib/strndup.h: Simplify the redefinition of strndup.
57614         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
57615         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
57616
57617 2006-09-28  Bruno Haible  <bruno@clisp.org>
57618
57619         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
57620         * lib/gl_linkedhash_list.c: Likewise.
57621         * lib/gl_rbtreehash_list.c: Likewise.
57622
57623 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57624
57625         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
57626         getaddrinfo.
57627
57628         * lib/__fpending.h: Don't include <stdio_ext.h> unless
57629         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
57630         it causes <stdio_ext.h> to cause a compile-time error.
57631         Problem reported by Nelson H. F. Beebe.
57632         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
57633         of HAVE_DECL___PENDING.
57634
57635         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
57636         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
57637         declaration.
57638
57639 2006-09-27  Jim Meyering  <jim@meyering.net>
57640
57641         This file could end up with a definition for a function
57642         named __strndup, rather than rpl_strndup on a system with
57643         incomplete weak_alias support.
57644         * lib/strndup.c (strndup): Rename from __strndup.
57645         Remove #defines that used to map __strndup to strndup.
57646         Don't use K&R prototypes.
57647         Remove LIBC-related code, since this file is not sync'd with glibc.
57648         * lib/strndup.h: Revamp, accordingly.
57649         * m4/strndup.m4: Modernize.
57650
57651 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57652
57653         * modules/savewd (Depends-on): Add 'raise'.
57654         * lib/savewd.c: Include <signal.h>, for 'raise'.
57655
57656 2006-09-26  Jim Meyering  <jim@meyering.net>
57657
57658         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
57659         when we detect Darwin 8.7.0's acl_get_file bug.
57660         Rearrange to perform the new (below) run-test while $LIBS
57661         contains any acl-related library.  Set USE_ACL at the end.
57662         (gl_ACL_GET_FILE): New function.
57663
57664 2006-09-26  Eric Blake  <ebb9@byu.net>
57665
57666         * lib/verror.c: Include <config.h> unconditionally.
57667
57668 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
57669
57670         * modules/clock-time (Maintainer): Add self.
57671         * modules/getlogin_r (Depends-on): Add extensions.
57672
57673 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57674
57675         * modules/clock-time: New module.
57676         * modules/nanosleep (Depends-on): Add clock-time.
57677         * modules/gethrxtime (Depends-on): Likewise.
57678         * modules/gettime (Depends-on): Likewise.
57679         * modules/settime (Depends-on): Likewise.
57680
57681         * modules/fts-lgpl: Depend on openat.
57682         * modules/mkancesdirs: Depend on savewd.
57683         * modules/mkdir-p: Likewise.
57684
57685 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57686
57687         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
57688
57689         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
57690         `gl_have_arbitrary_file_name_length_limit' to
57691         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
57692         actually works between configure runs.
57693
57694 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57695             Bruno Haible  <bruno@clisp.org>
57696
57697         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
57698
57699 2006-09-25  Jim Meyering  <jim@meyering.net>
57700
57701         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
57702         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
57703
57704 2006-09-25  Eric Blake  <ebb9@byu.net>
57705
57706         * gnulib-tool (func_import, func_create_testdir): Fix typos in
57707         exec's in 2006-09-18 patch when shuffling fds.
57708
57709 2006-09-25  Bruno Haible  <bruno@clisp.org>
57710
57711         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
57712         Reported by Jim Meyering.
57713
57714 2006-09-24  Jim Meyering  <jim@meyering.net>
57715
57716         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
57717         compare a pointer against a literal "0".  That caused failures with
57718         at least HP-UX's hpcc.
57719
57720 2006-09-22  Simon Josefsson  <jas@extundo.com>
57721
57722         * modules/gc-sha1:
57723         * modules/gc-md4:
57724         * modules/gc-hmac-sha1:
57725         * modules/gc-hmac-md5:
57726         * modules/gc-des:
57727         * modules/gc-arcfour: Distribute more files.
57728
57729 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57730
57731         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
57732         (gl_linked_iterator_from_to): Initialize struct completely.
57733         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
57734         (gl_tree_iterator_from_to): Likewise
57735         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
57736         * lib/gl_array_list.c [lint] (gl_array_iterator)
57737         (gl_array_iterator_from_to): Likewise.
57738         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
57739         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
57740         (gl_carray_iterator_from_to): Likewise.
57741
57742         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
57743         * lib/md4.c (md4_process_block): Remove unused variable.
57744         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
57745         parentheses for clarity.
57746
57747 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57748
57749         * modules/bison-i18n (Depends-on): Add gettext.
57750
57751 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57752
57753         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
57754         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
57755         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
57756         also add missing comma that caused broken test.
57757         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
57758         stdlib.h, for `abort'.
57759         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
57760         variables.
57761         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
57762         include unistd.h if present, for `rmdir'.
57763         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
57764         variables.
57765         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
57766         in the process include standard headers for prototypes.
57767         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
57768         gets declared on GNU/Linux.
57769         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
57770         unistd.h, for `rmdir'.
57771         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
57772
57773         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
57774         always true.
57775         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
57776
57777         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
57778
57779 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57780
57781         * gnulib-tool (func_version): Create output all at once.  This
57782         may help avoid triggering unnecessary SIGPIPEs, and at any
57783         rate it doesn't hurt.
57784
57785 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57786             Bruno Haible  <bruno@clisp.org>
57787
57788         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
57789         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57790         * m4/signed.m4 (bh_C_SIGNED): Likewise.
57791
57792         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
57793         (gl_FUNC_VASPRINTF): Invoke it.
57794
57795 2006-09-22  Bruno Haible  <bruno@clisp.org>
57796
57797         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
57798         getloadavg.c as first argument.
57799
57800 2006-09-22  Bruno Haible  <bruno@clisp.org>
57801
57802         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
57803         at the beginning of the gl_INIT macro.
57804         * modules/getloadavg (configure.ac): Pass $gl_source_base to
57805         gl_GETLOADAVG.
57806
57807 2006-09-22  Bruno Haible  <bruno@clisp.org>
57808
57809         * gnulib-tool (func_create_megatestdir): Don't include the config-h
57810         module.
57811         Suggested by Ralf Wildenhues.
57812
57813 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57814
57815         Import this patch from libc:
57816
57817         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
57818
57819         * lib/regex_internal.c (re_string_reconstruct): Handle
57820         offset < pstr->valid_raw_len && pstr->offsets_needed case.
57821         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
57822         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
57823         re_string_context_at.
57824
57825         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
57826         now requires it.
57827         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
57828         gl_REGEX now does it for us.
57829         (gl_REGEX): Add test taken from
57830         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
57831
57832         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
57833         Check that large offsets work.  Modernize Autoconf usages.
57834         Prefer "yes" to mean a good thing rather than a bad.
57835         Don't put "#define mkstemp" in config.h, as this might interfere
57836         with standard system headers that "#define mkstemp mkstemp64".
57837
57838         * modules/mkstemp (Depends-on): Add extensions, so that
57839         mkstemp is visible on some platforms.
57840         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
57841         (Include): Change to "mkstemp.h" from <stdlib.h>.
57842         (Files): Add mkstemp.h.
57843
57844         * lib/mkstemp.h: New file, since some standard headers
57845         #define mkstemp.
57846         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
57847         Include "mkstemp.h".
57848         Make the _LIBC code resemble glibc original more,
57849         e.g., use K&R style.
57850         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
57851         (mkstemp): Remove, since mkstemp.h does this for us.
57852         * lib/stdlib--.h: Include mkstemp.h.
57853
57854         Import this patch from libc:
57855
57856         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57857
57858         * lib/tempname.c (__gen_tempname): Change attempts_min
57859         into a macro.  Use preprocessor to decide how to initialize
57860         attempts [Coverity CID 67].
57861
57862 2006-09-20  Bruno Haible  <bruno@clisp.org>
57863
57864         * lib/mkdtemp.c: Import from libc.
57865         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57866                 * sysdeps/posix/tempname.c (__gen_tempname): Change
57867                 attempts_min into a macro.  Use preprocessor to decide how to
57868                 initialize attempts [Coverity CID 67].
57869         2001-11-27  Paul Eggert  <eggert@twinsun.com>
57870                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
57871                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
57872
57873 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57874
57875         * gnulib-tool (func_exit): New function, to allow to pass the
57876         exit status portably through the trap.  Use everywhere.
57877         (--help, --version): Signal a write error.
57878         (trap): catch SIGPIPE, for write errors.
57879         Exit at the end of the trap, with the correct exit status.
57880
57881 2006-09-19  Karl Berry  <karl@gnu.org>
57882
57883         * doc/gnulib.texi: note about the license texinfo files.
57884
57885 2006-09-19  Eric Blake  <ebb9@byu.net>
57886
57887         * gnulib-tool: Avoid space-tab.
57888
57889 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57890
57891         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
57892         that prevented coreutils 6.1 from building.  Problem reported
57893         by Petter Reinholdtsen.
57894
57895 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57896
57897         * gnulib-tool (avoidlist): Fix typo that broke options like
57898         --avoid=lock that are used by coreutils bootstrap.
57899
57900 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57901
57902         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57903         more systematically.
57904
57905 2006-09-18  Jim Meyering  <jim@meyering.net>
57906
57907         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
57908
57909 2006-09-18  Bruno Haible  <bruno@clisp.org>
57910
57911         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
57912
57913 2006-09-18  Bruno Haible  <bruno@clisp.org>
57914
57915         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
57916         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
57917         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
57918         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
57919         * m4/gettext.m4: Require autoconf >= 2.52.
57920         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
57921         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
57922         of gl_cv_header_inttypes_h.
57923
57924 2006-09-18  Bruno Haible  <bruno@clisp.org>
57925
57926         * lib/javaversion.c: Include configmake.h.
57927
57928 2006-09-18  Bruno Haible  <bruno@clisp.org>
57929
57930         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
57931         avoid that the while loops be executed in a subshell.
57932
57933 2006-09-18  Bruno Haible  <bruno@clisp.org>
57934
57935         * MODULES.html.sh (func_module): Break long lines.
57936         Suggested by Bruce Korb <bkorb@gnu.org>.
57937
57938 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57939
57940         Speed up by a factor of 1.12.
57941         * gnulib-tool (nl): New variable.
57942         (func_import): Rewrite include directive extraction to only read each
57943         directive once.
57944
57945 2006-09-17  Bruno Haible  <bruno@clisp.org>
57946
57947         * modules/javaversion (Makefile.am): Remove DEFS setting.
57948         (Depends-on): Add configmake, for PKGDATADIR definition.
57949
57950 2006-09-17  Bruno Haible  <bruno@clisp.org>
57951
57952         * gnulib-tool (func_create_testdir): Rewrite all files at once.
57953
57954 2006-09-17  Bruno Haible  <bruno@clisp.org>
57955
57956         * gnulib-tool (func_append): New function, stolen from libtool.m4.
57957         (func_modules_transitive_closure, func_modules_add_dummy,
57958         func_modules_to_filelist, func_import, func_create_testdir,
57959         func_create_megatestdir, ...): Use it wherever possible.
57960         Suggested by Ralf Wildenhues.
57961
57962 2006-09-16  Karl Berry  <karl@gnu.org>
57963
57964         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
57965         to avoid sectioning errors.
57966         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
57967         [ifinfo]: blank line after @center-ed titles.
57968         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
57969         Spell FSF address consistently with others.
57970         (These changes approved by rms.)
57971
57972 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57973
57974         Speed up by a factor of 1.61.
57975         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
57976         already checked module names again.
57977
57978 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57979
57980         Speed up by a factor of 1.13.
57981         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
57982         for new_files, and the input to func_add_or_update.
57983
57984 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57985
57986         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
57987         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
57988
57989 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57990
57991         * modules/mkancesdirs (Depends-on): Add fcntl.
57992         * modules/savewd: New file.
57993         * MODULES.html.sh (File system functions): Add savewd.
57994
57995         * modules/configmake (Makefile.am): Add support for the
57996         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
57997
57998 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57999
58000         * m4/savewd.m4: New file.
58001
58002 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58003
58004         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
58005         (dirchownmod): New arg FD.  All callers changed.
58006         Use FD rather than opening the directory ourself, as opening is
58007         now the caller's responsibility.
58008         * lib/dirchownmod.h: Likewise.
58009         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
58010         hosts that require <sys/types.h> before <sys/stat.h>.  Include
58011         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
58012         (test_dir): Remove.
58013         (mkancesdirs): Return length of prefix of FILE that has already
58014         been made, or -2 if there is a child doing the work.  Redo
58015         algorithm so that it is O(N) rather than O(N**2).  Optimize away
58016         ".", and treat ".." specially since it might stray back into
58017         already-created areas.  Use a subprocess if necessary.  New arg
58018         WD; all users changed.  MAKE_DIR function should now return 1
58019         if it creates a directory that is not readable.  Return -2 if
58020         a child process is spun off.
58021         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
58022         Adjust signature to match code.
58023         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
58024         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
58025         all users changed.
58026         * lib/savewd.c, lib/savewd.h: New files.
58027
58028 2006-09-15  Jim Meyering  <jim@meyering.net>
58029
58030         * modules/rename-dest-slash: New module.
58031         * MODULES.html.sh (posix_compat): Add it here.
58032
58033         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
58034
58035 2006-09-15  Jim Meyering  <jim@meyering.net>
58036
58037         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
58038         file.
58039
58040         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
58041
58042 2006-09-15  Jim Meyering  <jim@meyering.net>
58043
58044         * lib/rename-dest-slash.c (has_trailing_slash): Use
58045         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
58046         (rpl_rename_dest_slash): Perform the cheaper trailing slash
58047         test before testing whether SRC is a directory.
58048         Suggestions from Bruno Haible.
58049
58050         Avoid a warning about an unused variable.
58051         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
58052         into the #ifdef block where it's used.
58053
58054         * lib/rename-dest-slash.c: New file.
58055
58056 2006-09-14  Bruno Haible  <bruno@clisp.org>
58057
58058         * lib/allocsa.c: Include <config.h> unconditionally.
58059         * lib/asnprintf.c: Likewise.
58060         * lib/asprintf.c: Likewise.
58061         * lib/c-strcasecmp.c: Likewise.
58062         * lib/c-strcasestr.c: Likewise.
58063         * lib/c-strncasecmp.c: Likewise.
58064         * lib/c-strstr.c: Likewise.
58065         * lib/classpath.c: Likewise.
58066         * lib/clean-temp.c: Likewise.
58067         * lib/concatpath.c: Likewise.
58068         * lib/copy-file.c: Likewise.
58069         * lib/csharpcomp.c: Likewise.
58070         * lib/csharpexec.c: Likewise.
58071         * lib/execute.c: Likewise.
58072         * lib/fatal-signal.c: Likewise.
58073         * lib/findprog.c: Likewise.
58074         * lib/fwriteerror.c: Likewise.
58075         * lib/gl_array_list.c: Likewise.
58076         * lib/gl_array_oset.c: Likewise.
58077         * lib/gl_avltree_list.c: Likewise.
58078         * lib/gl_avltree_oset.c: Likewise.
58079         * lib/gl_avltreehash_list.c: Likewise.
58080         * lib/gl_carray_list.c: Likewise.
58081         * lib/gl_linked_list.c: Likewise.
58082         * lib/gl_linkedhash_list.c: Likewise.
58083         * lib/gl_list.c: Likewise.
58084         * lib/gl_oset.c: Likewise.
58085         * lib/gl_rbtree_list.c: Likewise.
58086         * lib/gl_rbtree_oset.c: Likewise.
58087         * lib/gl_rbtreehash_list.c: Likewise.
58088         * lib/imaxabs.c: Likewise.
58089         * lib/imaxdiv.c: Likewise.
58090         * lib/javacomp.c: Likewise.
58091         * lib/javaexec.c: Likewise.
58092         * lib/javaversion.c: Likewise.
58093         * lib/linebreak.c: Likewise.
58094         * lib/localcharset.c: Likewise.
58095         * lib/lock.c: Likewise.
58096         * lib/mbchar.c: Likewise.
58097         * lib/mbswidth.c: Likewise.
58098         * lib/mkdtemp.c: Likewise.
58099         * lib/pipe.c: Likewise.
58100         * lib/printf-args.c: Likewise.
58101         * lib/printf-parse.c: Likewise.
58102         * lib/progname.c: Likewise.
58103         * lib/progreloc.c: Likewise.
58104         * lib/readlink.c: Likewise.
58105         * lib/sh-quote.c: Likewise.
58106         * lib/stpcpy.c: Likewise.
58107         * lib/stpncpy.c: Likewise.
58108         * lib/strcasecmp.c: Likewise.
58109         * lib/strcasestr.c: Likewise.
58110         * lib/strcspn.c: Likewise.
58111         * lib/striconv.c: Likewise.
58112         * lib/strncasecmp.c: Likewise.
58113         * lib/strnlen1.c: Likewise.
58114         * lib/strstr.c: Likewise.
58115         * lib/strtok_r.c: Likewise.
58116         * lib/tls.c: Likewise.
58117         * lib/tmpdir.c: Likewise.
58118         * lib/unicodeio.c: Likewise.
58119         * lib/unsetenv.c: Likewise.
58120         * lib/vasnprintf.c: Likewise.
58121         * lib/vasprintf.c: Likewise.
58122         * lib/wait-process.c: Likewise.
58123         * lib/xallocsa.c: Likewise.
58124         * lib/xsetenv.c: Likewise.
58125         * lib/xstriconv.c: Likewise.
58126
58127 2006-09-13  Simon Josefsson  <jas@extundo.com>
58128
58129         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
58130         that internally, suggested by Ralf Wildenhues
58131         <Ralf.Wildenhues@gmx.de>.
58132
58133 2006-09-13  Simon Josefsson  <jas@extundo.com>
58134
58135         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
58136         @LIBOBJS@.
58137         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58138
58139 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58140
58141         * lib/_fpending.c: Include <config.h> unconditionally, since we no
58142         longer worry about uses that don't define HAVE_CONFIG_H.
58143         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
58144         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
58145         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
58146         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
58147         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
58148         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
58149         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
58150         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
58151         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
58152         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
58153         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
58154         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
58155         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
58156         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
58157         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
58158         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
58159         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
58160         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
58161         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
58162         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
58163         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
58164         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
58165         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
58166         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
58167         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
58168         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
58169         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
58170         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
58171         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
58172         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
58173         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
58174         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
58175         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
58176         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
58177         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
58178         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
58179         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
58180         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
58181         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
58182         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
58183         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
58184         Likewise.
58185
58186 2006-09-13  Eric Blake  <ebb9@byu.net>
58187
58188         * lib/getopt.c: Fix typo in last commit.
58189
58190 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58191
58192         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
58193         dgettext.
58194
58195 2006-09-12  Jim Meyering  <jim@meyering.net>
58196
58197         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
58198         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
58199         Reported by Nelson H. F. Beebe.
58200
58201 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58202
58203         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
58204         program_invocation_name and program_invocation_short_name are
58205         initialized.
58206         * lib/argp-namefrob.h: Move declarations of program_invocation_name
58207         and program_invocation_short_name to argp.h, so they are visible
58208         to user programs.
58209         * lib/argp.h: Likewise
58210
58211 2006-09-10  Bruno Haible  <bruno@clisp.org>
58212
58213         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58214         m4/inttypes_h.m4, m4/uintmax_t.m4.
58215
58216 2006-09-10  Bruno Haible  <bruno@clisp.org>
58217
58218         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
58219         gl_AC_TYPE_UINTMAX_T.
58220
58221 2006-09-10  Bruno Haible  <bruno@clisp.org>
58222
58223         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
58224
58225 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58226
58227         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
58228         convention.  Text proposed by Bruno Haible.
58229         (struct argp_option): Document the use of N_() wrappers.
58230
58231         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
58232         '\v', and translate the two parts separately, instead of feeding
58233         the whole string to gettext.  This allows to exclude
58234         '\v' from the strings visible to the translator by writing doc
58235         strings as N_("..") "\v" N_("..").
58236
58237 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
58238
58239         * config/srclist.txt: Undo latest change; the bug was fixed.
58240
58241 2006-09-09  Bruno Haible  <bruno@clisp.org>
58242
58243         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
58244         assignments if building a library without libtool.
58245         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
58246         in func_emit_lib_Makefile_am.
58247         (func_import): When building a static library libfoo.a, arrange to
58248         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
58249         (func_create_testdir): Likewise.
58250         * modules/gc (configure.ac, Makefile.am): If building statically,
58251         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
58252         * modules/iconvme (configure.ac, Makefile.am): Likewise.
58253         * modules/striconv (configure.ac, Makefile.am): Likewise.
58254         Based on a suggestion by Ralf Wildenhues.
58255
58256 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58257
58258         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58259         Check for unistd.h too, since Autoconf doesn't assume POSIX.
58260         Also:
58261
58262         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58263         Add year_2050_test to catch glibc bug 2821
58264         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58265
58266         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58267         Prefer #ifdef to #if.
58268
58269         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
58270         Return from 'main' instead of calling 'exit'.
58271
58272 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58273
58274         * lib/mktime.c (guess_time_tm): Fix bug where mktime
58275         returned the maximum time_t value rather than (time_t) -1.
58276         Problem originally reported by William Bardwell
58277         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58278
58279         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58280         Moved to here ...
58281         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58282         ... from here.
58283
58284 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58285
58286         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
58287         2821 is fixed.
58288
58289 2006-09-08  Jim Meyering  <jim@meyering.net>
58290
58291         Don't make generated files read-only.  That would bother too many
58292         people.  However, do retain the ability to work when targets are
58293         read-only: remove the destination and temporary files before writing
58294         them (when generated via sed or echo), or by using the -f option for
58295         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
58296         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58297         * modules/byteswap, modules/configmake, modules/fcntl:
58298         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58299         * modules/localcharset, modules/netinet_in, modules/poll:
58300         * modules/stdbool, modules/stdint, modules/sys_select:
58301         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58302
58303 2006-09-08  Jim Meyering  <jim@meyering.net>
58304
58305         Avoid new build failure on FreeBSD 6.0.
58306         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
58307         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
58308         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
58309
58310 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58311
58312         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
58313
58314 2006-09-07  Jim Meyering  <jim@meyering.net>
58315
58316         Fix global typo in last change: use chmod u-w, not chmod u-x.
58317         Spotted by Paul Eggert and Bruce Korb.
58318         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58319         * modules/byteswap, modules/configmake, modules/fcntl:
58320         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58321         * modules/localcharset, modules/netinet_in, modules/poll:
58322         * modules/stdbool, modules/stdint, modules/sys_select:
58323         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58324
58325 2006-09-06  Jim Meyering  <jim@meyering.net>
58326
58327         Make generated files be read-only.
58328         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
58329         Ensure that each generated file is now read-only.
58330         * modules/argz: Likewise.
58331         * modules/arpa_inet: Likewise.
58332         * modules/byteswap: Likewise.
58333         * modules/configmake: Likewise.
58334         * modules/fcntl: Likewise.
58335         * modules/fnmatch: Likewise.
58336         * modules/getopt: Likewise.
58337         * modules/glob: Likewise.
58338         * modules/inttypes: Likewise.
58339         * modules/netinet_in: Likewise.
58340         * modules/poll: Likewise.
58341         * modules/stdbool: Likewise.
58342         * modules/stdint: Likewise.
58343         * modules/sys_select: Likewise.
58344         * modules/sys_socket: Likewise.
58345         * modules/sys_stat: Likewise.
58346         * modules/sysexits: Likewise.
58347         * modules/localcharset: Same as above, but continue using temporary
58348         file named "t-$@" (why different?) rather than the "$@-t" used
58349         everywhere else.
58350
58351         * modules/sysexits (Makefile.am): Replace literal occurrences
58352         of "sysexit.h" more readable, and more consistent, "$@".
58353
58354 2006-09-06  Bruno Haible  <bruno@clisp.org>
58355
58356         * modules/striconv: New file.
58357         * modules/xstriconv: New file.
58358         * MODULES.html.sh (Internationalization functions): Add striconv,
58359         xstriconv.
58360
58361 2006-09-06  Bruno Haible  <bruno@clisp.org>
58362
58363         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
58364         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
58365         not using libtool correctly.
58366
58367 2006-09-06  Bruno Haible  <bruno@clisp.org>
58368
58369         * lib/striconv.h: New file.
58370         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
58371         iconvstring.c.
58372         * lib/xstriconv.h: New file.
58373         * lib/xstriconv.c: New file.
58374
58375 2006-09-06  Bruno Haible  <bruno@clisp.org>
58376
58377         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58378         lib_..._LDFLAGS.
58379
58380 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58381
58382         * lib/argz_.h: Sync from Libtool.
58383
58384         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
58385                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58386
58387         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
58388
58389 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58390
58391         * modules/trim: New file.
58392
58393 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58394
58395         * lib/trim.h: New file.
58396         * lib/trim.c: New file.
58397
58398 2006-09-05  Bruno Haible  <bruno@clisp.org>
58399
58400         * MODULES.html.sh (String handling): Add trim.
58401
58402 2006-09-04  Karl Berry  <karl@gnu.org>
58403
58404         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
58405         until next release.
58406
58407 2006-09-03  Bruno Haible  <bruno@clisp.org>
58408
58409         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
58410         correctly.
58411
58412 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58413
58414         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
58415         not gl_GETLOADAVG.  Omit unneeded semicolons.
58416         Problems reported by Ralf Wildenhues in
58417         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58418         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
58419         at the end, which is the usual gnulib style.
58420
58421         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
58422         of doing all the work ourselves.
58423         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
58424         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
58425
58426 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58427
58428         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
58429         Problem reported by Ralf Wildenhues in
58430         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58431
58432         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
58433         HAVE_STRUCT_STATFS_F_FSTYPENAME.
58434
58435 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58436
58437         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
58438         yesterday's patch by changing test -n to test -z.
58439
58440 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58441
58442         * modules/getloadavg (Files): Add m4/getloadavg.m4.
58443         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
58444         the former is now obsolescent.
58445
58446         * modules/chdir-long (Depends-on): Add fcntl.
58447
58448 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58449
58450         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
58451         obsolescent, and programs should use gnulib instead.
58452         * m4/getloadavg.m4: New file, with contents taken from Autoconf
58453         but with prefixes changed.
58454
58455 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58456
58457         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
58458         or stdbool.h, because they might not exist while configuring.
58459
58460         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
58461         Don't include unistd.h or limits.h; not needed, since chdir-long.h
58462         does that for us.
58463         (O_DIRECTORY): Remove.
58464
58465 2006-08-31  Eric Blake  <ebb9@byu.net>
58466
58467         * gnulib-tool: Don't let emacs change spaces to TAB.
58468
58469 2006-08-31  Bruno Haible  <bruno@clisp.org>
58470
58471         * gnulib-tool: When calling func_import more than once, do it in a
58472         subshell.
58473         Reported by Eric Blake <ebb9@byu.net>.
58474
58475 2006-08-31  Bruno Haible  <bruno@clisp.org>
58476
58477         * gnulib-tool (nl): Remove variable.
58478         (sed_transform_lib_file): Use more robust test for config-h module.
58479         (func_import): Fix typo in 2006-08-25 patch.
58480
58481 2006-08-31  Bruno Haible  <bruno@clisp.org>
58482
58483         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
58484         specified, augment Makefile.am variables instead of assigning them.
58485
58486 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58487
58488         Work around a bug in both the Linux and SunOS 64-bit kernels:
58489         nanosleep mishandles sleeps for longer than 2**31 seconds.
58490         Problem reported by Frank v Waveren in
58491         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58492         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
58493         Check for nanosleep bug.
58494         (LIB_NANOSLEEP): Append clock_gettime library if needed.
58495
58496 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58497
58498         Work around a bug in both the Linux and SunOS 64-bit kernels:
58499         nanosleep mishandles sleeps for longer than 2**31 seconds.
58500         Problem reported by Frank v Waveren in
58501         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58502         * lib/nanosleep.c (BILLION): New constant.
58503         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
58504         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
58505         implementation.
58506
58507 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58508
58509         * modules/nanosleep (Depends-on): Add gettime.
58510
58511 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58512         and Simon Josefsson  <jas@extundo.com>
58513         and Oskar Liljeblad  <oskar@osk.mine.nu>
58514
58515         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
58516         * gnulib-tool (func_import): New license type 'unmodifiable license
58517         text'.
58518         * modules/fdl: Use it.  Longer description.
58519         * module/gpl, module/lgpl: New files.
58520
58521 2006-08-30  Jim Meyering  <jim@meyering.net>
58522
58523         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
58524         shadowing the parameter.
58525
58526 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58527
58528         Sync from Libtool:
58529
58530         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58531
58532         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
58533         sharing with gnulib.  Report by Eric Blake.
58534
58535 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58536
58537         * modules/isapipe: New file.
58538         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
58539
58540 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58541
58542         * modules/configmake (Makefile.am): Add a comment, and omit
58543         the CONFIGMAKE_ prefix from generated macro names.  Suggested
58544         by Bruno Haible.
58545
58546 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58547
58548         * m4/isapipe.m4: New file.
58549
58550 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58551
58552         * lib/isapipe.c, lib/isapipe.h: New files.
58553
58554 2006-08-29  Jim Meyering  <jim@meyering.net>
58555
58556         * modules/configmake (Makefile.am): Make configmake.h depend on
58557         Makefile.  Otherwise, a stale configmake.h could hang around.
58558
58559 2006-08-29  Eric Blake  <ebb9@byu.net>
58560
58561         * lib/error.c (error_at_line, print_errno_message): Match libc, after
58562         resolution of upstream bug 3044.
58563
58564 2006-08-29  Bruno Haible  <bruno@clisp.org>
58565
58566         * modules/localcharset (Depends-on): Add configmake.
58567         (Makefile.am): Remove setting of LIBDIR through DEFS.
58568
58569 2006-08-29  Bruno Haible  <bruno@clisp.org>
58570
58571         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
58572         defined.
58573
58574 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58575
58576         * modules/fcntl: New file.
58577         * modules/chdir-safer (Depends-on): Add fcntl.
58578         * modules/fts: Likewise.
58579         * modules/mkdir-p: Likewise.
58580
58581         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
58582         This undoes the most recent change, since we're now addressing the
58583         problem in a different way.
58584
58585         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
58586         into output, since the output might be called Makefile.am even
58587         if $makefile_name is something different.
58588         (func_import): Use $makefile_am rather than
58589         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
58590         empty.
58591
58592         * modules/inttypes (Files): Add m4/inttypes-h.m4.
58593
58594 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58595
58596         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
58597         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
58598         recent change to stdint.m4, since we're now addressing the problem in a
58599         different way.
58600
58601 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58602
58603         * m4/fcntl_h.m4: New file.
58604
58605 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58606
58607         * lib/fcntl_.h: New file.
58608         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
58609         the fcntl module.
58610         * lib/dirchownmod.c: Likewise.
58611         * lib/fts.c: Likewise.
58612
58613         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
58614         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
58615         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
58616         just before including <inttypes.h>, to avoid circular inclusion.
58617
58618 2006-08-28  Jim Meyering  <jim@meyering.net>
58619
58620         * doc/visibility.texi: Actually read and correct the grammar of the
58621         sentence affected by yesterday's change.
58622
58623 2006-08-28  Eric Blake  <ebb9@byu.net>
58624
58625         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
58626         needs wrapper.
58627
58628 2006-08-28  Eric Blake  <ebb9@byu.net>
58629
58630         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
58631
58632 2006-08-28  Eric Blake  <ebb9@byu.net>
58633
58634         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
58635
58636 2006-08-28  Bruno Haible  <bruno@clisp.org>
58637
58638         * modules/c-strstr: New file, from GNU gettext.
58639         * MODULES.html.sh (String handling): Add c-strstr.
58640
58641 2006-08-28  Bruno Haible  <bruno@clisp.org>
58642
58643         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
58644         macros.
58645         Reported by Eric Blake.
58646
58647 2006-08-28  Bruno Haible  <bruno@clisp.org>
58648
58649         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
58650         (VASNPRINTF): Return a string of length > INT_MAX without failing.
58651         * lib/vasprintf.c: Include errno.h, limits.h.
58652         (EOVERFLOW): New fallback definition.
58653         (vasprintf): Test here whether the string length is > INT_MAX.
58654         * lib/vsnprintf.c: Include errno.h, limits.h.
58655         (EOVERFLOW): New fallback definition.
58656         (vsnprintf): Fix bug when generated string was too long for the buffer.
58657         Test here whether the string length is > INT_MAX.
58658
58659 2006-08-28  Bruno Haible  <bruno@clisp.org>
58660
58661         * lib/inttypes_.h (SCNX*): Remove definitions.
58662         Reported by Eric Blake.
58663
58664 2006-08-28  Bruno Haible  <bruno@clisp.org>
58665
58666         * lib/c-strstr.h: New file, from GNU gettext.
58667         * lib/c-strstr.c: New file, from GNU gettext.
58668
58669 2006-08-28  Bruno Haible  <bruno@clisp.org>
58670
58671         * gnulib-tool: Reorder some statements.
58672
58673 2006-08-28  Bruno Haible  <bruno@clisp.org>
58674
58675         * gnulib-tool: New option --makefile-name.
58676         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
58677         $makefile_name.
58678         (func_import): Write $makefile_name to the cache file, and read it from
58679         there unless explicitly specified. Use $makefile_name as file name
58680         instead of Makefile.am. Adjust the recommendations accordingly.
58681
58682 2006-08-28  Bruno Haible  <bruno@clisp.org>
58683
58684         * gnulib-tool (func_verify_module): Check against misapplying patch.
58685
58686 2006-08-28  Bruno Haible  <bruno@clisp.org>
58687
58688         * gnulib-tool (func_relativize, func_relconcat): New functions.
58689         Give an error if --local-dir is given with --update.
58690         Remove trailing slashes from $local_gnulib_dir.
58691         (func_import): Store the relativized $local_gnulib_dir in
58692         gnulib-cache.m4, and read it from there if not specified explicitly.
58693
58694 2006-08-28  Bruno Haible  <bruno@clisp.org>
58695
58696         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
58697         is the current directory. Respect also $local_gnulib_dir.
58698
58699 2006-08-28  Bruno Haible  <bruno@clisp.org>
58700             Simon Josefsson  <jas@extundo.com>
58701
58702         BeOS portability.
58703         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
58704
58705 2006-08-27  Jim Meyering  <jim@meyering.net>
58706
58707         * doc/visibility.texi: Remove duplicate word: "pointer".
58708
58709 2006-08-26  Bruno Haible  <bruno@clisp.org>
58710
58711         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
58712         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
58713         (Makefile.am): Create inttypes.h from inttypes_.h.
58714         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
58715
58716         * modules/imaxabs: New file.
58717
58718         * modules/imaxdiv: New file.
58719
58720 2006-08-26  Bruno Haible  <bruno@clisp.org>
58721
58722         * m4/inttypes.m4: New file.
58723         * m4/_inttypes_h.m4: Remove file.
58724         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
58725         PRI_MACROS_BROKEN.
58726         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
58727
58728         * m4/imaxabs.m4: New file.
58729
58730         * m4/imaxdiv.m4: New file.
58731
58732 2006-08-26  Bruno Haible  <bruno@clisp.org>
58733
58734         * lib/inttypes_.h: New file.
58735         * lib/inttypes.h: Remove file.
58736         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
58737
58738         * lib/imaxabs.c: New file.
58739
58740         * lib/imaxdiv.c: New file.
58741
58742 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58743
58744         New config-h module, so that "make" output needn't be cluttered
58745         by -DHAVE_CONFIG_H.
58746         * MODULES.html.sh (Support for building libraries and executables):
58747         Add config-h.
58748         * modules/config-h: New file.
58749         * gnulib-tool (nl, sed_transform_lib_file): New vars.
58750         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
58751         the config-h module is used.
58752
58753         New configmake module, so that "make" output needn't be cluttered
58754         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
58755         * MODULES.html.sh (Support for building libraries and executables):
58756         Add configmake.
58757         * modules/configmake: New file.
58758
58759 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58760
58761         * m4/config-h.m4: New file.
58762
58763 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58764
58765         * config/srclist.txt: Add elisp-comp.
58766
58767 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58768
58769         * MODULES.html.sh (Support for building libraries and executables):
58770         Add elisp-comp.
58771         * build-aux/elisp-comp: New file.
58772         * modules/elisp-comp: New file.
58773
58774 2006-08-24  Bruno Haible  <bruno@clisp.org>
58775
58776         * gnulib-tool (func_create_testdir): Use non-default values of
58777         sourcebase and m4base.
58778
58779 2006-08-24  Bruno Haible  <bruno@clisp.org>
58780
58781         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
58782         HTML structure.
58783
58784 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58785
58786         * modules/openat (Depends-on): Add lchown.
58787
58788 2006-08-23  Bruno Haible  <bruno@clisp.org>
58789
58790         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
58791         of gl_LOCK_EARLY instead of gl_LOCK.
58792
58793 2006-08-23  Bruno Haible  <bruno@clisp.org>
58794
58795         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
58796         on OSF/1 to no.
58797         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
58798
58799 2006-08-23  Bruno Haible  <bruno@clisp.org>
58800
58801         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
58802         as unusable.
58803
58804         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
58805         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
58806         (gl_LOCK): New macro.
58807
58808 2006-08-22  Simon Josefsson  <jas@extundo.com>
58809
58810         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
58811         to md5 module.
58812
58813 2006-08-22  Simon Josefsson  <jas@extundo.com>
58814
58815         * MODULES.html.sh: Add "Support for maintaining and release
58816         projects".
58817
58818         * build-aux/gnupload: New file, from coreutils.
58819
58820 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58821
58822         Avoid the need for AC_LIBSOURCES in m4 macros.
58823         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
58824         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
58825         * modules/check-version (EXTRA_DIST): Add check-version.h.
58826         * modules/crc (EXTRA_DIST): Add crc.h.
58827         * modules/des (EXTRA_DIST): Add des.h.
58828         * modules/gc (EXTRA_DIST): Add gc.h.
58829         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
58830         * modules/getline (EXTRA_DIST): Add getline.h.
58831         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
58832         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
58833         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
58834         * modules/md2 (EXTRA_DIST): Add md2.h.
58835         * modules/md4 (EXTRA_DIST): Add md4.h.
58836         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
58837         * modules/read-file (EXTRA_DIST): Add read-file.h.
58838         * modules/readline (EXTRA_DIST): Add readline.h.
58839         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
58840         rijndael-api-fst.h.
58841
58842 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58843
58844         * m4/rijndael.m4 (gl_ARCFOUR):
58845         * m4/arctwo.m4 (gl_ARCTWO):
58846         * m4/check-version.m4 (gl_CHECK_VERSION):
58847         * m4/crc.m4 (gl_CRC):
58848         * m4/des.m4 (gl_DES):
58849         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
58850         * m4/gc.m4 (gl_GC):
58851         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
58852         * m4/getline.m4 (gl_FUNC_GETLINE):
58853         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
58854         * m4/hmac-md5.m4 (gl_HMAC_MD5):
58855         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
58856         * m4/md2.m4 (gl_MD2):
58857         * m4/md4.m4 (gl_MD4):
58858         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
58859         * m4/read-file.m4 (gl_FUNC_READ_FILE):
58860         * m4/readline.m4 (gl_FUNC_READLINE):
58861         * m4/rijndael.m4 (gl_RIJNDAEL):
58862         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58863         to get the necessary .h files and whatnot.
58864
58865 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58866
58867         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
58868         gnulib rather than the other way around.
58869         * config/srclistvars.sh (COREUTILS): Remove.
58870
58871 2006-08-22  Jim Meyering  <jim@meyering.net>
58872
58873         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
58874
58875         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
58876
58877 2006-08-22  Eric Blake  <ebb9@byu.net>
58878
58879         * modules/regexprops-generic: New file.
58880         * MODULES.html.sh (Support for building documentation): List it.
58881
58882 2006-08-22  Eric Blake  <ebb9@byu.net>
58883
58884         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
58885         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
58886         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
58887         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
58888
58889 2006-08-22  Bruno Haible  <bruno@clisp.org>
58890
58891         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
58892         and lib_LTLIBRARIES like the other lib_* variables.
58893
58894 2006-08-22  Bruno Haible  <bruno@clisp.org>
58895
58896         * build-aux/x-to-1.in: New file, from GNU gettext.
58897
58898 2006-08-22  Bruno Haible  <bruno@clisp.org>
58899
58900         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58901         <utmpx.h> exists.
58902
58903 2006-08-22  Bruno Haible  <bruno@clisp.org>
58904
58905         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
58906         <utmpx.h> exists.
58907
58908 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58909
58910         BeOS portability.
58911         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
58912         exist.
58913         Problem reported by Bruno Haible.
58914
58915 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58916
58917         Avoid the need for AC_LIBSOURCES in m4 macros.
58918         * modules/acl (EXTRA_DIST): Add acl.h.
58919         * modules/argmatch (Files): Add m4/argmatch.m4.
58920         (configure.ac): Add gl_ARGMATCH.
58921         (EXTRA_DIST): Renamed from lib_SOURCES, for
58922         consistency with the other modules.  Remove argmatch.c.
58923         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
58924         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
58925         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
58926         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
58927         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
58928         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
58929         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
58930         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
58931         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
58932         * modules/closeout (EXTRA_DIST): Add closeout.h.
58933         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
58934         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
58935         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
58936         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
58937         dirname.h; remove basename.c and stripslash.c.
58938         * modules/exclude (EXTRA_DIST): Add exclude.h.
58939         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
58940         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
58941         * modules/file-type (EXTRA_DIST): Add file-type.h.
58942         * modules/filemode (EXTRA_DIST): Add filemode.h.
58943         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
58944         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58945         * modules/fpending (EXTRA_DIST): Add __fpending.h.
58946         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
58947         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
58948         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
58949         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
58950         * modules/getdate (EXTRA_DIST): Add getdate.c.
58951         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
58952         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
58953         * modules/getpass (EXTRA_DIST): Add getpass.h.
58954         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
58955         * modules/group-member (EXTRA_DIST): Add group-member.h.
58956         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
58957         * modules/hash (EXTRA_DIST): Add hash.h.
58958         * modules/human (EXTRA_DIST): Add human.h.
58959         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
58960         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
58961         * modules/lchown (EXTRA_DIST): Add lchown.h.
58962         * modules/long-options (EXTRA_DIST): Add long-options.h.
58963         * modules/lstat (EXTRA_DIST): Add lstat.h.
58964         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
58965         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
58966         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
58967         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
58968         * modules/memxor (EXTRA_DIST): Add memxor.h.
58969         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
58970         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
58971         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
58972         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
58973         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
58974         * modules/physmem (EXTRA_DIST): Add physmem.h.
58975         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
58976         * modules/posixver (EXTRA_DIST): Add posixver.h.
58977         * modules/quote (EXTRA_DIST): Add quote.h.
58978         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
58979         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
58980         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
58981         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
58982         regex_internal.h regexec.c.
58983         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
58984         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
58985         * modules/same (EXTRA_DIST): Add same.h.
58986         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
58987         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
58988         * modules/savedir (EXTRA_DIST): Add savedir.h.
58989         * modules/sha1 (EXTRA_DIST): Add sha1.h.
58990         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
58991         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
58992         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
58993         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
58994         * modules/strdup (EXTRA_DIST): Add strdup.h.
58995         * modules/strftime (EXTRA_DIST): Add strftime.h.
58996         * modules/strndup (EXTRA_DIST): Add strndup.h.
58997         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
58998         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
58999         * modules/time_r (EXTRA_DIST): Add time_r.h.
59000         * modules/timespec (EXTRA_DIST): Add timespec.h.
59001         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59002         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
59003         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
59004         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
59005         * modules/userspec (EXTRA_DIST): Add userspec.h.
59006         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
59007         * modules/utimens (EXTRA_DIST): Add utimens.h.
59008         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
59009         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
59010         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
59011         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
59012         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
59013         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
59014         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
59015         * modules/yesno (EXTRA_DIST): Add yesno.h.
59016
59017 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59018
59019         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
59020
59021         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
59022         * m4/dev-ino.m4, same-inode.m4: Remove.
59023
59024         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
59025         * m4/acl.m4 (AC_FUNC_ACL):
59026         * m4/backupfile.m4 (gl_BACKUPFILE):
59027         * m4/c-strtod.m4 (gl_C99_STRTOLD):
59028         * m4/canon-host.m4 (gl_CANON_HOST):
59029         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59030         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
59031         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
59032         * m4/cloexec.m4 (gl_CLOEXEC):
59033         * m4/close-stream.m4 (gl_CLOSE_STREAM):
59034         * m4/closeout.m4 (gl_CLOSEOUT):
59035         * m4/dirfd.m4 (gl_FUNC_DIRFD):
59036         * m4/dirname.m4 (gl_DIRNAME):
59037         * m4/exclude.m4 (gl_EXCLUDE):
59038         * m4/exitfail.m4 (gl_EXITFAIL):
59039         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
59040         * m4/file-type.m4 (gl_FILE_TYPE):
59041         * m4/filemode.m4 (gl_FILEMODE):
59042         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
59043         * m4/fpending.m4 (gl_FUNC_FPENDING):
59044         * m4/fprintftime.m4 (gl_FPRINTFTIME):
59045         * m4/fts.m4 (gl_FUNC_FTS):
59046         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
59047         * m4/getdate.m4 (gl_GETDATE):
59048         * m4/gethrxtime.m4 (gl_GETHRXTIME):
59049         * m4/getpagesize.m4 (gl_GETPAGESIZE):
59050         * m4/getpass.m4 (gl_FUNC_GETPASS):
59051         * m4/gettime.m4 (gl_GETTIME):
59052         * m4/getugroups.m4 (gl_GETUGROUPS):
59053         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
59054         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
59055         * m4/hard-locale.m4 (gl_HARD_LOCALE):
59056         * m4/hash.m4 (gl_HASH):
59057         * m4/idcache.m4 (gl_IDCACHE):
59058         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
59059         * m4/lchown.m4 (gl_FUNC_LCHOWN):
59060         * m4/long-options.m4 (gl_LONG_OPTIONS):
59061         * m4/lstat.m4 (gl_FUNC_LSTAT):
59062         * m4/md5.m4 (gl_MD5):
59063         * m4/memcasecmp.m4 (gl_MEMCASECMP):
59064         * m4/memcoll.m4 (gl_MEMCOLL):
59065         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
59066         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
59067         * m4/memxor.m4 (gl_MEMXOR):
59068         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
59069         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
59070         * m4/modechange.m4 (gl_MODECHANGE):
59071         * m4/mountlist.m4 (gl_MOUNTLIST):
59072         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59073         * m4/openat.m4 (gl_FUNC_OPENAT):
59074         * m4/pathmax.m4 (gl_PATHMAX):
59075         * m4/physmem.m4 (gl_PHYSMEM):
59076         * m4/posixtm.m4 (gl_POSIXTM):
59077         * m4/posixver.m4 (gl_POSIXVER):
59078         * m4/quote.m4 (gl_QUOTE):
59079         * m4/quotearg.m4 (gl_QUOTEARG):
59080         * m4/readtokens.m4 (gl_READTOKENS):
59081         * m4/readutmp.m4 (gl_READUTMP):
59082         * m4/regex.m4 (gl_REGEX):
59083         * m4/safe-read.m4 (gl_SAFE_READ):
59084         * m4/safe-write.m4 (gl_SAFE_WRITE):
59085         * m4/same.m4 (gl_SAME):
59086         * m4/save-cwd.m4 (gl_SAVE_CWD):
59087         * m4/savedir.m4 (gl_SAVEDIR):
59088         * m4/settime.m4 (gl_SETTIME):
59089         * m4/sha1.m4 (gl_SHA1):
59090         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
59091         * m4/stat-macros.m4 (gl_STAT_MACROS):
59092         * m4/stat-time.m4 (gl_STAT_TIME):
59093         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
59094         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
59095         * m4/strdup.m4 (gl_FUNC_STRDUP):
59096         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
59097         * m4/strndup.m4 (gl_FUNC_STRNDUP):
59098         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
59099         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
59100         * m4/time_r.m4 (gl_TIME_R):
59101         * m4/timespec.m4 (gl_TIMESPEC):
59102         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
59103         * m4/unlinkdir.m4 (gl_UNLINKDIR):
59104         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
59105         * m4/userspec.m4 (gl_USERSPEC):
59106         * m4/utimecmp.m4 (gl_UTIMECMP):
59107         * m4/utimens.m4 (gl_UTIMENS):
59108         * m4/xalloc.m4 (gl_XALLOC):
59109         * m4/xgetcwd.m4 (gl_XGETCWD):
59110         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
59111         * m4/xreadlink.m4 (gl_XREADLINK):
59112         * m4/xstrtod.m4 (gl_XSTRTOD):
59113         * m4/yesno.m4 (gl_YESNO):
59114         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59115         to get the necessary .h files and whatnot.
59116
59117 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
59118             Bruno Haible  <bruno@clisp.org>
59119
59120         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
59121         /bin/sh understanding of '!' conditional negation.
59122
59123 2006-08-21  Jim Meyering  <jim@meyering.net>
59124
59125         * modules/openat (Depends-on): Really alphabetize.
59126
59127         * modules/acl (Depends-on): Add error and quote.
59128
59129         * check-module (find_included_lib_files): Add at-func.c to the
59130         ok-to-include-more-than-once white list.
59131
59132         * modules/openat (Depends-on): Add lstat.  Alphabetize.
59133
59134 2006-08-21  Bruno Haible  <bruno@clisp.org>
59135
59136         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59137         Emit a pkgdata_DATA variable only if some snippets add contents to it.
59138         Reported by Martin Lambers <marlam@marlam.de>.
59139
59140 2006-08-21  Bruno Haible  <bruno@clisp.org>
59141
59142         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
59143         specify an installation location, don't emit a noinst_LIBRARIES or
59144         noinst_LTLIBRARIES assignment.
59145
59146 2006-08-21  Bruno Haible  <bruno@clisp.org>
59147
59148         BeOS portability.
59149         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
59150         BeOS has mbrtowc() but no <wctype.h>.
59151
59152 2006-08-21  Bruno Haible  <bruno@clisp.org>
59153
59154         BeOS portability.
59155         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
59156         exist.
59157
59158 2006-08-21  Bruno Haible  <bruno@clisp.org>
59159
59160         BeOS portability.
59161         * lib/mbchar.h: Include <wctype.h> only if it exists.
59162
59163 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59164
59165         Remove files that are no longer needed by their respective modules.
59166         * m4/obstack.m4: Remove.
59167         * m4/strerror_r.m4: Remove.
59168         * m4/uint32_t.m4: Remove.
59169         * m4/uintptr_t.m4: Remove.
59170         * m4/ullong_max.m4: Remove.
59171         * m4/xstrtoimax.m4: Remove.
59172         * m4/xstrtoumax.m4: Remove.
59173
59174         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
59175         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
59176         dependencies now capture this.
59177
59178         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
59179         Do not use AC_LIBSOURCES, since gnulib modules now do this.
59180         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
59181         * m4/human.m4 (gl_HUMAN): Likewise.
59182         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
59183         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
59184
59185         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
59186
59187         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
59188         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
59189         stdint.
59190         * m4/human.m4 (gl_HUMAN): Likewise.
59191         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
59192         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
59193         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59194         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59195         * m4/xstrtol (gl_XSTRTOL): Likewise.
59196
59197         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
59198         AC_TYPE_LONG_LONG_INT.
59199         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59200         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
59201         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
59202         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59203
59204         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
59205         on stdbool.
59206
59207         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
59208         (gl_PREREQ_XSTRTOUL): Remove.
59209
59210         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
59211
59212         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
59213         mode.
59214
59215 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59216
59217         Add and change modules to make it easier for coreutils to use
59218         gnulib-tool.
59219         * modules/backupfile (Files): Remove m4/d-ino.m4.
59220         (Depends-on): Add d-ino.
59221         * modules/cycle-check (Depends-on): Add stdint.
59222         (lib_SOURCES): Add cycle-check.h.
59223         * modules/d-ino: New module.
59224         * modules/d-type: New module.
59225         * modules/error (Files): Remove m4/strerror_r.m4.
59226         * modules/filemode (Files): Add m4/st_dm_mode.m4.
59227         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59228         m4/inttypes_h.m4, m4/uintmax_t.m4.
59229         (Depends-on): Add stdint.
59230         (lib_SOURCES): Add fsusage.h.
59231         * modules/getcwd (Files): Remove d-ino.m4.
59232         (Depends-on): Add d-ino.
59233         * modules/getndelim2 (Depends-on): Add stdint.
59234         * modules/glob (Files): Remove m4/d-type.m4.
59235         (Depends-on): Add d-type.
59236         * modules/host-os: New module.
59237         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
59238         m4/inttypes_h.m4, m4/uintmax_t.m4.
59239         * Depends-on: Add stdint.
59240         (lib_SOURCES): Add human.h.
59241         * modules/inttostr (Files): Remove m4/intmax_t.m4,
59242         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
59243         m4/uintmax_t.m4, m4/ulonglong.m4.
59244         (Depends-on): Add stdint.
59245         (EXTRA_DIST): Add inttostr.h.
59246         * modules/lchmod: New module.
59247         * modules/link-follow: New module.
59248         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
59249         (Depends-on): Add lchmod.
59250         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
59251         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
59252         (Depends-on): Add stdint.
59253         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
59254         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
59255         (Depends-on): Add stdint.
59256         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
59257         * modules/perl: New module.
59258         * modules/regex (Depends-on): Add stdint.
59259         * modules/rmdir-errno: New module.
59260         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59261         m4/intmax_t.m4.
59262         (Depends-on): Add stdint.
59263         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59264         m4/uintmax_t.m4.
59265         (Depends-on): Add stdint.
59266         * modules/unlink-busy: New module.
59267         * modules/utimecmp (Depends-on): Add stdint.
59268         * modules/uptime: New module.
59269         * modules/winsz-ioctl: New module.
59270         * modules/winsz-termios: New module.
59271         * modules/xnanosleep (Depends-on): Add nanosleep.
59272         * modules/ullong_max: Remove.
59273         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
59274         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
59275         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
59276         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
59277         (Depends-on): Add inttypes.
59278         (lib_SOURCES): Add xstrtol.h.
59279         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
59280         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
59281         * MODULES.html.sh: Move 'assert' into the assert section.
59282         Move 'dummy' into the linking section.
59283         Remove ullong_max.
59284         Add section for compatibility checks for POSIX:2001 functions,
59285         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
59286         winsz-ioctl, and winsz-termios into it.
59287         Add lchmod.
59288         Add top-level Misc section and put host-os, perl, and uptime
59289         into it.
59290
59291 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59292
59293         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
59294         now assume the stdint module.  Do not include inttypes.h.
59295         * lib/fsusage.h: Likewise.
59296         * lib/getndelim2.c: Likewise.
59297         * lib/human.h: Likewise.
59298         * lib/inttostr.h: Likewise.
59299         * lib/obstack.c: Likewise.
59300         * lib/regex_internal.h: Likewise.
59301         * lib/tempname.c: Likewise.
59302         * lib/utimecmp.c: Likewise.
59303         * lib/xstrtol.h: Likewise.
59304
59305         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
59306
59307         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
59308         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
59309         * lib/xtime.h: Likewise.
59310
59311 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59312
59313         * modules/openat (Files): Add lib/fchmodat.c.
59314         Fixes problem reported by Jay Youngman.
59315
59316 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59317
59318         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
59319         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
59320
59321 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
59322             Bruno Haible  <bruno@clisp.org>
59323
59324         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
59325         and is a script that invokes bison. Tighten the code. Add comments.
59326
59327 2006-08-18  Jim Meyering  <jim@meyering.net>
59328
59329         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
59330         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
59331         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
59332         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
59333
59334 2006-08-18  Bruno Haible  <bruno@clisp.org>
59335
59336         * modules/bison-i18n: New file.
59337         * MODULES.html.sh (Internationalization functions): Add it.
59338
59339 2006-08-18  Bruno Haible  <bruno@clisp.org>
59340
59341         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
59342         sys/statvfs.h. When getmntinfo was found, check its declaration and
59343         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
59344
59345 2006-08-18  Bruno Haible  <bruno@clisp.org>
59346
59347         * m4/bison-i18n.m4: New file, from bison.
59348
59349 2006-08-18  Bruno Haible  <bruno@clisp.org>
59350
59351         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
59352         (ME_DUMMY): Treat "kernfs" as a dummy.
59353         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
59354
59355 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59356
59357         Update from coreutils.
59358
59359         2006-08-15  Jim Meyering  <jim@meyering.net>
59360
59361         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
59362
59363         2006-01-17  Jim Meyering  <jim@meyering.net>
59364
59365         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
59366
59367         2006-01-11  Jim Meyering  <jim@meyering.net>
59368
59369         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
59370         Check for the lchmod function.
59371
59372 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59373
59374         Update from coreutils.
59375
59376         * lib/__fpending.h: Add copyright notice.
59377         * lib/fprintftime.h: Likewise.
59378         * lib/savedir.c: Use (C) in copyright notice.
59379         * lib/savedir.h: Likewise.
59380
59381         2006-08-15  Jim Meyering  <jim@meyering.net>
59382
59383         * lib/at-func.c: New file, with the logic of all emulated at-functions.
59384         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
59385         in support of the EXPECTED_ERRNO macro.
59386         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
59387         definitions.  Instead, define the appropriate symbols and include
59388         "at-func.c".
59389         * lib/mkdirat.c (mkdirat): Likewise.
59390         * lib/fchmodat.c (fchmodat): Likewise.
59391         (ENOSYS): Remove definition.
59392         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
59393         it.  Don't include "unistd--.h" -- it wasn't ever used.
59394
59395         2006-01-17  Jim Meyering  <jim@meyering.net>
59396
59397         Rewrite fts.c not to change the current working directory,
59398         by using openat, fstatat, fdopendir, etc..
59399
59400         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
59401         (HAVE_OPENAT_SUPPORT): Define.
59402         [_LIBC] (fchdir): Don't undef or define; no longer used.
59403         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
59404         Now, this `function' always succeeds, and consumes its file descriptor
59405         parameter -- so callers must not close such FDs.  Update callers.
59406         (diropen_fd, opendirat, cwd_advance_fd): New functions.
59407         (diropen): Add parameter, SP.  Adjust all callers.
59408         Implement using diropen_fd, rather than open.
59409         (fts_open): Initialize new member, fts_cwd_fd.
59410         Remove fts_rft-setting code.
59411         (fts_close): Close fts_cwd_fd, if necessary.
59412         (__opendir2): Define in terms of opendir or opendirat,
59413         depending on whether the FST_NOCHDIR flag is set.
59414         (fts_build): Since fts_safe_changedir consumes its FD, and since
59415         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
59416         and close the dup'd file descriptor upon failure.
59417         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
59418         (fts_safe_changedir): Tweak semantics to reflect that this function
59419         now calls cwd_advance_fd and hence consumes its FD argument.
59420         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
59421         [struct FTS] (fts_rft): Remove now-unused member.
59422         [struct FTS] (fts_cycle.state): Improve comment.
59423
59424         * lib/openat.c (openat_needs_fchdir): New function.
59425         * lib/openat.h (openat_needs_fchdir): Declare it.
59426
59427 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59428
59429         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
59430         Problem and fix reported by Pádraig Brady in
59431         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
59432
59433 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59434
59435         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
59436
59437 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59438
59439         * lib/memcoll.c (memcoll): Optimize for the common case where the
59440         arguments are bytewise equal.
59441
59442 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59443
59444         * doc/regexprops-generic.texi: Add a copyright notice.
59445
59446 2006-08-15  Bruno Haible  <bruno@clisp.org>
59447
59448         * modules/tmpdir (License): Change to LGPL.
59449
59450 2006-08-15  Bruno Haible  <bruno@clisp.org>
59451
59452         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
59453         module.
59454
59455 2006-08-14  Simon Josefsson  <jas@extundo.com>
59456
59457         * config/srclist.txt: Add gnupload.
59458
59459 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59460
59461         Change copyright notice from LGPL 2 to GPL 2, since that's the
59462         standard form used in the gnulib repository.
59463         * tests/test-lock.c: Likewise.
59464         * tests/test-stdint.c: Likewise.
59465         * tests/test-tls.c: Likewise.
59466
59467         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
59468         prelude-manager.  User shorter URLs for GNU projects, without '?'.
59469         Add copyright notice.
59470
59471         * check-module: Add copyright notice.  Output a copyright
59472         notice if "--version" is specified.
59473         * modules/COPYING: New file.
59474         * tests/test-getaddrinfo.c: Add copyright notice.
59475         * tests/test-verify.c: Likewise.
59476
59477 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59478
59479         Change copyright notice from LGPL 2 to GPL 2, since that's the
59480         standard form used in the gnulib repository.
59481         * lib/lock.c: LGPL -> GPL.
59482         * lib/lock.h: Likewise.
59483         * lib/strnlen1.c: Likewise.
59484         * lib/strnlen1.h: Likewise.
59485         * lib/tls.c: Likewise.
59486         * lib/tls.h: Likewise.
59487         * lib/tmpdir.c: Likewise.
59488
59489         * lib/TODO: Remove; this belongs only in coreutils.
59490
59491 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59492
59493         Add copyright notices to long-enough files that lack them, since
59494         otherwise the files aren't clearly free.  Use the same notice that
59495         getdate.texi already uses.
59496         * doc/alloca-opt.texi: Add copyright notice.
59497         * doc/alloca.texi: Likewise.
59498         * doc/ctime.texi: Likewise.
59499         * doc/functions.texi: Likewise.
59500         * doc/gcd.texi: Likewise.
59501         * doc/gnulib-tool.texi: Likewise.
59502         * doc/inet_ntoa.texi: Likewise.
59503         * doc/visibility.texi: Likewise.
59504
59505         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
59506         * doc/quote.texi: Add copyright notice.
59507
59508         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
59509         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
59510         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
59511         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
59512         is now obsolete, and give a pointer to the Sun list.
59513         Add copyright notice.
59514
59515 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59516
59517         * config/srclistvars.sh: Add copyright notice.
59518
59519 2006-08-14  Eric Blake  <ebb9@byu.net>
59520
59521         Import the following change from libc:
59522
59523         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
59524
59525         Upstream bug 2997.
59526         * lib/misc/error.c: Add space between program name and message if file
59527         name is missing.
59528
59529 2006-08-12  Karl Berry  <karl@gnu.org>
59530
59531         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
59532         remove, these originate in gnulib now.
59533
59534 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59535
59536         * doc/Makefile (standards.info standards.html standards.dvi):
59537         Also depend on make-stds.texi.
59538
59539 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59540
59541         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
59542         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
59543
59544         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
59545         in wchar_t.  Problem reported by Eric Blake.
59546
59547         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
59548         LEN is smaller than SIZE.  Suggested by Bruno Haible.
59549         Also, help the compiler to keep LEN in a register.
59550
59551 2006-08-11  Eric Blake  <ebb9@byu.net>
59552
59553         * users.txt: Sort.  Add tar.
59554
59555 2006-08-11  Bruno Haible  <bruno@clisp.org>
59556
59557         * users.txt: New file.
59558
59559 2006-08-11  Bruno Haible  <bruno@clisp.org>
59560
59561         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
59562         before <wchar.h>. Needed for OSF/1 and BSD/OS.
59563
59564 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59565
59566         * modules/snprintf (Depends-on): Remove minmax.
59567         (Maintainer): Add self and Bruno.
59568
59569 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59570
59571         * lib/.cppi-disable: Add snprintf.h, socket_.h.
59572         * lib/snprintf.c: Include <errno.h> and <limits.h>.
59573         (EOVERFLOW): Define if the system does not.
59574         Do not include "minmax.h"; it wasn't used.
59575         (snprintf): Don't assume size_t promotes to an unsigned type.
59576         Fix bug when generated string was too long for the buffer: the
59577         buffer's contents are supposed to be the initial prefix of the
59578         output.  Don't assume vasnprintf returns EOVERFLOW if the size
59579         exceeds INT_MAX; do the check ourselves.
59580
59581         Import the following changes from libc:
59582
59583         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
59584
59585         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
59586         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
59587         set wc to the byte which couldn't be converted.
59588         (re_string_reconstruct): Don't clear valid_raw_len before calling
59589         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
59590         tip_context using re_string_context_at.
59591
59592         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
59593
59594         * lib/posix/regex.h: g++ still cannot handled [restrict].
59595
59596         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
59597
59598         * lib/posix/regex.h: Remove special handling for VMS.
59599
59600 2006-08-10  Jim Meyering  <jim@meyering.net>
59601
59602         * modules/same-inode: New module.
59603         * modules/dev-ino: New module.
59604         * modules/cycle-check: Depend on these modules, rather than simply
59605         including their .h files.
59606         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
59607         required via m4/cycle-check.m4.
59608         * modules/same: Depend on new same-inode module, rather than
59609         including same-inode.h.
59610         * modules/chdir-safer: New file.
59611
59612         * modules/chown (Depends-on): Add stat-macros.
59613
59614 2006-08-10  Jim Meyering  <jim@meyering.net>
59615
59616         * m4/cycle-check.m4: New file.
59617         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
59618         * m4/dev-ino.m4, m4/same-inode.m4: New files.
59619
59620 2006-08-10  Eric Blake  <ebb9@byu.net>
59621
59622         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
59623         in from original proposal.
59624
59625 2006-08-10  Eric Blake  <ebb9@byu.net>
59626         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59627
59628         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
59629         namespace.
59630
59631 2006-08-10  Bruno Haible  <bruno@clisp.org>
59632
59633         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
59634         as well.
59635
59636 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59637
59638         Sync from coreutils.
59639
59640         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
59641
59642         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
59643         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
59644
59645 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59646
59647         * modules/restrict: Remove; no longer needed now that we assume
59648         Autoconf 2.59 or later.
59649         * MODULES.html.sh: Remove 'restrict'.
59650         * modules/argp (Depends-on): Remove 'restrict'.
59651         * modules/base64 (Depends-on): Likewise.
59652         * modules/gc (Depends-on): Likewise.
59653         * modules/getaddrinfo (Depends-on): Likewise.
59654         * modules/glob (Depends-on): Likewise.
59655         * modules/inet_ntop (Depends-on): Likewise.
59656         * modules/inet_pton (Depends-on): Likewise.
59657         * modules/memxor (Depends-on): Likewise.
59658         * modules/regex (Depends-on): Likewise.
59659         * modules/strtok_r (Depends-on): Likewise.
59660         * modules/time_r (Depends-on): Likewise.
59661
59662 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59663
59664         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
59665         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
59666         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59667         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
59668         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
59669         * m4/memxor.m4 (gl_MEMXOR): Likewise.
59670         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
59671         gl_C_RESTRICT replaced by AC_C_RESTRICT.
59672
59673         Merge from coreutils.
59674         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
59675         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
59676         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59677         * m4/time_r.m4 (gl_TIME_R): Likewise.
59678
59679 2006-08-09  Karl Berry  <karl@gnu.org>
59680
59681         * config/srclist.txt: no more gettext-tools, per Bruno.
59682
59683 2006-08-08  Eric Blake  <ebb9@byu.net>
59684
59685         * modules/verror: New module.
59686         * MODULES.html.sh: Document it.
59687
59688 2006-08-08  Eric Blake  <ebb9@byu.net>
59689
59690         * lib/verror.h, lib/verror.c: New files.
59691
59692 2006-08-08  Eric Blake  <ebb9@byu.net>
59693
59694         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
59695         verror_at_line output complies with GNU Coding Standards even when
59696         file is NULL.
59697
59698 2006-08-07  Bruno Haible  <bruno@clisp.org>
59699
59700         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
59701         versions of AIX.
59702         Reported by Ralf Wildenhues.
59703
59704 2006-08-07  Bruno Haible  <bruno@clisp.org>
59705
59706         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
59707         in an AC_DEFUN. Needed so that the autoconf snippets can use
59708         AC_REQUIRE.
59709
59710 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59711
59712         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59713         Initialize pkgdata_DATA.
59714         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
59715         overriding it.
59716
59717 2006-08-06  Eric Blake  <ebb9@byu.net>
59718
59719         * lib/error.h: Fold in some upstream changes from glibc.
59720         * lib/error.c: Likewise.
59721
59722 2006-08-04  Bruno Haible  <bruno@clisp.org>
59723
59724         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59725         Make the mostlyclean-local rule depend on mostlyclean-generic.
59726         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
59727
59728 2006-07-31  Bruno Haible  <bruno@clisp.org>
59729
59730         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
59731         <stdlib.h>, <string.h>.
59732
59733 2006-07-30  Bruno Haible  <bruno@clisp.org>
59734
59735         * modules/readlink (License): Change to LGPL.
59736
59737 2006-07-30  Bruno Haible  <bruno@clisp.org>
59738
59739         * modules/javaversion (Makefile.am): Distribute javaversion.java and
59740         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
59741         set PKGDATADIR to point to it.
59742
59743 2006-07-30  Bruno Haible  <bruno@clisp.org>
59744
59745         * modules/csharpexec (configure.ac): Comment out macro invocation.
59746         * modules/javaexec (configure.ac): Likewise.
59747         * modules/javacomp-script (configure.ac): Likewise.
59748
59749         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
59750
59751 2006-07-30  Bruno Haible  <bruno@clisp.org>
59752
59753         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
59754         linked-list.
59755
59756 2006-07-30  Bruno Haible  <bruno@clisp.org>
59757
59758         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
59759
59760 2006-07-30  Bruno Haible  <bruno@clisp.org>
59761
59762         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59763         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
59764         get removed.
59765
59766 2006-07-29  Bruno Haible  <bruno@clisp.org>
59767
59768         Make it possible for gnulib-tool to work with locally modified or
59769         augmented gnulib repositories.
59770         * gnulib-tool (func_usage): Document --local-dir option.
59771         (local_gnulib_dir): New variable.
59772         Handle --local-dir option.
59773         (func_lookup_file): New function.
59774         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
59775         (func_get_description, func_get_filelist, func_get_description,
59776         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
59777         func_get_automake_snippet, func_get_include_directive,
59778         func_get_license, func_get_maintainer): Use func_lookup_file.
59779         (func_import, func_create_testdir): Use func_lookup_file.
59780
59781 2006-07-29  Bruno Haible  <bruno@clisp.org>
59782
59783         * modules/setenv (Depends-on): Add unistd.
59784
59785 2006-07-29  Bruno Haible  <bruno@clisp.org>
59786
59787         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
59788
59789 2006-07-29  Bruno Haible  <bruno@clisp.org>
59790
59791         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
59792
59793 2006-07-29  Bruno Haible  <bruno@clisp.org>
59794
59795         * gnulib-tool (import, update): If there is no Makefile.am, look at
59796         aclocal.m4, instead of bailing out.
59797
59798 2006-07-29  Bruno Haible  <bruno@clisp.org>
59799
59800         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
59801         Categorize the options by when they are useful.
59802
59803 2006-07-29  Bruno Haible  <bruno@clisp.org>
59804
59805         * gnulib-tool (func_usage): Document option --no-libtool.
59806         Handle option --no-libtool.
59807         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
59808         for changed semantics of $libtool variable.
59809         (func_import): Likewise. If libtool is not used, show this through
59810         an option --no-libtool.
59811         (func_create_testdir): Update.
59812
59813 2006-07-29  Bruno Haible  <bruno@clisp.org>
59814
59815         * gnulib-tool (func_import): Extend error message about missing
59816         --doc-base.
59817
59818 2006-07-29  Bruno Haible  <bruno@clisp.org>
59819
59820         * gnulib-tool (func_import): Don't create the $docbase directory if
59821         there is no file to store there.
59822
59823 2006-07-29  Bruno Haible  <bruno@clisp.org>
59824
59825         * gnulib-tool (autoconf_minversion): If a --dir option is given and
59826         relevant, look for configure.ac there, not in the current directory.
59827         Also use a simple search for AC_PREREQ, not "autoconf --trace".
59828
59829 2006-07-29  Bruno Haible  <bruno@clisp.org>
59830
59831         * gnulib-tool (SORT): New variable.
59832         (func_usage): Undocument --assume-autoconf option.
59833         Remove --assume-autoconf option handling.
59834         (autoconf_minversion): Determine from the contents of configure.ac.
59835         (func_import): Remove autoconf_minversion handling.
59836         Suggested by Eric Blake.
59837
59838 2006-07-29  Bruno Haible  <bruno@clisp.org>
59839
59840         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
59841
59842 2006-07-29  Bruno Haible  <bruno@clisp.org>
59843
59844         * config/srclist.txt (*setenv.[ch]): Remove rules.
59845
59846 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59847
59848         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
59849
59850 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59851
59852         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
59853         arpa/inet.h.
59854
59855 2006-07-28  Simon Josefsson  <jas@extundo.com>
59856
59857         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
59858         * modules/inet_pton (Depends-on): Likewise.
59859
59860 2006-07-28  Simon Josefsson  <jas@extundo.com>
59861
59862         * m4/netinet_in_h.m4: New file.
59863
59864 2006-07-28  Simon Josefsson  <jas@extundo.com>
59865
59866         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
59867         #include's.
59868
59869 2006-07-28  Simon Josefsson  <jas@extundo.com>
59870
59871         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
59872         #include's.
59873
59874 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
59875
59876         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
59877         setgid on directories only if they set these bits.
59878         * lib/modechange.h: Remove obsolete comment about masks.
59879
59880 2006-07-28  Eric Blake  <ebb9@byu.net>
59881
59882         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
59883         macro expansion.
59884
59885 2006-07-28  Bruno Haible  <bruno@clisp.org>
59886
59887         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
59888
59889 2006-07-28  Bruno Haible  <bruno@clisp.org>
59890
59891         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
59892
59893 2006-07-28  Bruno Haible  <bruno@clisp.org>
59894
59895         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59896         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59897         Define fallbacks.
59898         Avoids link error on FreeBSD 4.x.
59899         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59900
59901         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59902         encoding.
59903         * lib/mbswidth.c (iswcntrl): Likewise.
59904
59905 2006-07-27  Bruno Haible  <bruno@clisp.org>
59906
59907         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
59908         test.
59909
59910 2006-07-27  Bruno Haible  <bruno@clisp.org>
59911
59912         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
59913         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
59914         defined.
59915
59916 2006-07-26  Eric Blake  <ebb9@byu.net>
59917
59918         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
59919
59920 2006-07-26  Eric Blake  <ebb9@byu.net>
59921
59922         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
59923         like mingw that lack mkstemp.
59924         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
59925         avoid compilation warning on mingw.
59926
59927 2006-07-26  Bruno Haible  <bruno@clisp.org>
59928
59929         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
59930         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
59931         INT_FAST*_MIN, INTPTR_MIN.
59932
59933 2006-07-25  Bruno Haible  <bruno@clisp.org>
59934
59935         * modules/version-etc (Depends-on): Add stdarg.
59936
59937 2006-07-25  Bruno Haible  <bruno@clisp.org>
59938
59939         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
59940         complex commands.
59941
59942 2006-07-25  Bruno Haible  <bruno@clisp.org>
59943
59944         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
59945         defined in <stdarg.h> or config.h.
59946
59947 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59948
59949         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
59950         (gl_STDIO_SAFER): Remove.
59951
59952 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59953
59954         * MODULES.html.sh (File stream based Input/Output):
59955         Add fopen-safer, tmpfile-safer; remove stdio-safer.
59956         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
59957         * modules/fopen-safer, modules/tmpfile-safer: New files.
59958         * modules/stdio-safer: Remove.
59959
59960 2006-07-24  Bruno Haible  <bruno@clisp.org>
59961
59962         * modules/tmpdir: New file.
59963         * MODULES.html.sh (File system functions): Add it.
59964
59965 2006-07-24  Bruno Haible  <bruno@clisp.org>
59966
59967         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
59968         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
59969
59970 2006-07-24  Bruno Haible  <bruno@clisp.org>
59971
59972         * modules/clean-temp: New file.
59973
59974 2006-07-24  Bruno Haible  <bruno@clisp.org>
59975
59976         * m4/tmpdir.m4: New file, from GNU gettext.
59977
59978 2006-07-24  Bruno Haible  <bruno@clisp.org>
59979
59980         * lib/tmpdir.h: New file, from GNU gettext.
59981         * lib/tmpdir.c: New file, from GNU gettext.
59982
59983 2006-07-24  Bruno Haible  <bruno@clisp.org>
59984
59985         * lib/clean-temp.h: New file, from GNU gettext.
59986         * lib/clean-temp.c: New file, from GNU gettext.
59987
59988 2006-07-23  Eric Blake  <ebb9@byu.net>
59989
59990         * modules/stdio-safer (Files): Add tmpfile-safer.c.
59991         (Depends-on): Add binary-io.
59992
59993 2006-07-23  Eric Blake  <ebb9@byu.net>
59994
59995         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
59996
59997 2006-07-23  Eric Blake  <ebb9@byu.net>
59998
59999         * lib/tmpfile-safer.c: New file.
60000         * lib/stdio-safer.h (fopen_safer): Add prototype.
60001         * lib/stdio--.h (tmpfile): Make safer.
60002
60003 2006-07-23  Bruno Haible  <bruno@clisp.org>
60004
60005         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
60006         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
60007         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
60008         gl_linked_remove_at): Use it.
60009
60010 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60011         and Simon Josefsson <jas@extundo.com>
60012
60013         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
60014
60015         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
60016
60017 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60018
60019         * modules/close-stream: New file.
60020         * modules/closeout (Description): Make it clear that it exits
60021         with a diagnostic on error.
60022         (Depends-on): Add close-stream.  Remove fpending, stdbool.
60023         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
60024
60025 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60026
60027         * m4/close-stream.m4: New file.
60028
60029 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60030
60031         * lib/close-stream.c, lib/close-stream.h: New files.
60032
60033 2006-07-22  Bruno Haible  <bruno@clisp.org>
60034
60035         Merge from GNU gettext 0.15.
60036
60037         2006-05-01  Bruno Haible  <bruno@clisp.org>
60038
60039                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
60040
60041         2006-07-22  Bruno Haible  <bruno@clisp.org>
60042
60043                 * modules/javaversion: New file.
60044                 * MODULES.html.sh (Java): Add javaversion.
60045
60046         2006-03-12  Bruno Haible  <bruno@clisp.org>
60047
60048                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
60049
60050         2005-12-04  Bruno Haible  <bruno@clisp.org>
60051
60052                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
60053                 (untested).
60054
60055         2006-06-21  Bruno Haible  <bruno@clisp.org>
60056
60057                 Avoid warnings from recent versions of mcs.
60058                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
60059                 -o, -L, -r any more. Use options documented since mcs-1.0
60060                 instead. Similarly for -g.
60061
60062         2005-12-04  Bruno Haible  <bruno@clisp.org>
60063
60064                 * build-aux/csharpcomp.sh.in: Suffix for resources is
60065                 .resources, not .resource.
60066
60067         2005-07-09  Bruno Haible  <bruno@clisp.org>
60068
60069                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
60070                 add a .dll suffix.
60071                 Reported by Mark Junker <mjscod@gmx.de>.
60072
60073         2006-07-22  Bruno Haible  <bruno@clisp.org>
60074
60075                 * modules/gettext: Upgrade to gettext-0.15.
60076                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
60077                 m4/visibility.m4.
60078                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
60079
60080 2006-07-22  Bruno Haible  <bruno@clisp.org>
60081
60082         Merge from GNU gettext 0.15.
60083
60084         2006-03-25  Bruno Haible  <bruno@clisp.org>
60085
60086                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
60087
60088         2006-07-21  Bruno Haible  <bruno@clisp.org>
60089
60090                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
60091                 "1.1".
60092
60093         2006-05-09  Bruno Haible  <bruno@clisp.org>
60094
60095                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
60096                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
60097                 for the conftestver execution.
60098
60099         2006-05-01  Bruno Haible  <bruno@clisp.org>
60100
60101                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
60102                 optional target-version argument. Verify that the compiler
60103                 groks source of the specified source-version, or add -source
60104                 option as necessary. Verify that the compiler produces
60105                 bytecode in the specified target-version, or add -target and
60106                 -source options as necessary. Make the result of the test
60107                 available as variable CONF_JAVAC. Also log error output in
60108                 config.log.
60109
60110         2006-03-11  Bruno Haible  <bruno@clisp.org>
60111
60112                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
60113
60114         2006-05-09  Bruno Haible  <bruno@clisp.org>
60115
60116                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
60117                 CLASSPATH_SEPARATOR to a semicolon.
60118
60119         2006-03-12  Bruno Haible  <bruno@clisp.org>
60120
60121                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
60122                 available as variable CONF_JAVA, for subsequent autoconf
60123                 tests. Also log error output in config.log.
60124
60125         2006-07-19  Bruno Haible  <bruno@clisp.org>
60126
60127                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
60128                 that getline works on glibc2 systems. Needed to avoid trouble
60129                 in relocatable.c.
60130                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
60131
60132         2005-12-04  Bruno Haible  <bruno@clisp.org>
60133
60134                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
60135                 launcher (untested).
60136
60137         2005-12-04  Bruno Haible  <bruno@clisp.org>
60138
60139                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
60140
60141         2006-07-22  Bruno Haible  <bruno@clisp.org>
60142
60143                 * gettext.m4: Update from GNU gettext-0.15.
60144                 * nls.m4: Likewise.
60145                 * po.m4: Likewise.
60146                 * inttypes-pri.m4: Likewise.
60147                 * inttypes-h.m4: Renamed from inttypes.m4.
60148                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
60149
60150 2006-07-22  Bruno Haible  <bruno@clisp.org>
60151
60152         Merge from GNU gettext 0.15.
60153
60154         2005-07-05  Bruno Haible  <bruno@clisp.org>
60155
60156                 * printf-args.c (printf_fetchargs): Work around broken
60157                 definition of wint_t on mingw.
60158
60159         2005-02-12  Bruno Haible  <bruno@clisp.org>
60160
60161                 * xallocsa.h: Add extern "C" for C++.
60162
60163         2006-05-17  Bruno Haible  <bruno@clisp.org>
60164
60165                 Cygwin portability.
60166                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
60167
60168         2006-04-30  Bruno Haible  <bruno@clisp.org>
60169
60170                 * progreloc.c: Include <mach-o/dyld.h> if available.
60171                 (find_executable): Use _NSGetExecutablePath when possible.
60172
60173         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60174
60175                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
60176                 function.
60177
60178         2005-12-29  Bruno Haible  <bruno@clisp.org>
60179
60180                 * progreloc.c (set_program_name_and_installdir): Fix
60181                 compilation error.
60182
60183         2005-12-04  Bruno Haible  <bruno@clisp.org>
60184
60185                 Cygwin portability.
60186                 * progreloc.c: Include <windows.h> also on Cygwin.
60187                 (find_executable): Add support for Cygwin.
60188                 (set_program_name_and_installdir): Handle also platforms with
60189                 nonempty EXEEXT.
60190
60191         2006-07-11  Bruno Haible  <bruno@clisp.org>
60192
60193                 * javacomp.c: Fix a comment.
60194                 Reported by Jim Meyering.
60195
60196         2006-04-30  Bruno Haible  <bruno@clisp.org>
60197
60198                 * javacomp.h (compile_java_class): Add source_version,
60199                 target_version arguments.
60200                 * javacomp.c: Rewritten to choose only a compiler that
60201                 respects the specified source_version and target_version.
60202
60203         2006-06-27  Bruno Haible  <bruno@clisp.org>
60204
60205                 Assume correct S_ISDIR macro.
60206                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
60207
60208         2006-07-22  Bruno Haible  <bruno@clisp.org>
60209
60210                 * javaversion.h: New file, from GNU gettext.
60211                 * javaversion.c: New file, from GNU gettext.
60212                 * javaversion.java: New file, from GNU gettext.
60213                 * javaversion.class: New file, from GNU gettext.
60214
60215         2006-05-17  Bruno Haible  <bruno@clisp.org>
60216
60217                 Cygwin portability.
60218                 * javaexec.c (execute_java_class): Test for jview program
60219                 also on Cygwin.
60220
60221         2006-04-09  Bruno Haible  <bruno@clisp.org>
60222
60223                 * fatal-signal.c: Don't include string.h.
60224                 (at_fatal_signal): Use a copying loop instead of memcpy.
60225
60226         2005-12-04  Bruno Haible  <bruno@clisp.org>
60227
60228                 * csharpexec.c: Add support for 'clix' launcher (untested).
60229                 (execute_csharp_using_sscli): New function.
60230                 (execute_csharp_program): Call it.
60231
60232         2006-06-21  Bruno Haible  <bruno@clisp.org>
60233
60234                 Avoid warnings from recent versions of mcs.
60235                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
60236                 -o, -L, -r any more. Use options documented since mcs-1.0
60237                 instead. Similarly for -g.
60238
60239         2005-07-09  Bruno Haible  <bruno@clisp.org>
60240
60241                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
60242                 add a .dll suffix.
60243                 Reported by Mark Junker <mjscod@gmx.de>.
60244
60245         2006-06-17  Bruno Haible  <bruno@clisp.org>
60246
60247                 * config.charset: Update for NetBSD 3.0.
60248
60249         2006-05-17  Bruno Haible  <bruno@clisp.org>
60250
60251                 Cygwin portability.
60252                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
60253
60254         2006-05-16  Bruno Haible  <bruno@clisp.org>
60255
60256                 * localcharset.c [CYGWIN]: Include <windows.h>.
60257                 (get_charset_aliases): For Cygwin, return the same CPxxx
60258                 aliases list as under WIN32.
60259                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
60260                 the environment variables. Fall back to GetACP().
60261
60262         2006-04-05  Bruno Haible  <bruno@clisp.org>
60263
60264                 * config.charset: Update Juan Manuel Guerrero's address.
60265
60266         2005-02-12  Bruno Haible  <bruno@clisp.org>
60267
60268                 * allocsa.h: Add extern "C" for C++.
60269
60270         2005-02-10  Bruno Haible  <bruno@clisp.org>
60271
60272                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
60273                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
60274
60275         2006-07-22  Bruno Haible  <bruno@clisp.org>
60276
60277                 * gettext.h: Update to GNU gettext-0.15.
60278
60279 2006-07-22  Bruno Haible  <bruno@clisp.org>
60280
60281         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
60282         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
60283         lib-prefix.m4, longdouble.m4, ssize_t.m4.
60284
60285 2006-07-21  Eric Blake  <ebb9@byu.net>
60286
60287         * modules/stdlib-safer: New file.
60288         * MODULES.html.sh (File stream based Input/Output): Add
60289         stdlib-safer.
60290
60291 2006-07-21  Eric Blake  <ebb9@byu.net>
60292
60293         * lib/stdlib-safer.h: New file from coreutils, required by
60294         stdlib--.h.
60295
60296 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
60297
60298         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
60299
60300 2006-07-20  Bruno Haible  <bruno@clisp.org>
60301
60302         * gnulib-tool: Recognize new option --assume-autoconf.
60303         (autoconf_minversion): New variable.
60304         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
60305
60306 2006-07-20  Bruno Haible  <bruno@clisp.org>
60307
60308         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
60309
60310 2006-07-19  Derek R. Price  <derek@ximbiot.com>
60311
60312         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
60313         Reindent and repaginate.
60314
60315 2006-07-19  Derek Price  <derek@ximbiot.com>
60316
60317         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
60318         Correct grammar.
60319
60320 2006-07-17  Bruno Haible  <bruno@clisp.org>
60321
60322         * modules/list: New file.
60323         * modules/array-list: New file.
60324         * modules/carray-list, modules/carray-list-tests: New files.
60325         * modules/linked-list, modules/linked-list-tests: New files.
60326         * modules/avltree-list, modules/avltree-list-tests: New files.
60327         * modules/rbtree-list, modules/rbtree-list-tests: New files.
60328         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
60329         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
60330         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
60331         * modules/oset: New file.
60332         * modules/array-oset: New file.
60333         * modules/avltree-oset, modules/avltree-oset-tests: New files.
60334         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
60335         * tests/test-carray_list.c: New file.
60336         * tests/test-linked_list.c: New file.
60337         * tests/test-avltree_list.c: New file.
60338         * tests/test-rbtree_list.c: New file.
60339         * tests/test-linkedhash_list.c: New file.
60340         * tests/test-avltreehash_list.c: New file.
60341         * tests/test-rbtreehash_list.c: New file.
60342         * tests/test-avltree_oset.c: New file.
60343         * tests/test-rbtree_oset.c: New file.
60344         * MODULES.html.sh (Container data structures): New section.
60345
60346 2006-07-17  Bruno Haible  <bruno@clisp.org>
60347
60348         * m4/gl_list.m4: New file.
60349
60350 2006-07-17  Bruno Haible  <bruno@clisp.org>
60351
60352         * lib/gl_list.h: New file.
60353         * lib/gl_list.c: New file.
60354         * lib/gl_array_list.h: New file.
60355         * lib/gl_array_list.c: New file.
60356         * lib/gl_carray_list.h: New file.
60357         * lib/gl_carray_list.c: New file.
60358         * lib/gl_linked_list.h: New file.
60359         * lib/gl_linked_list.c: New file.
60360         * lib/gl_anylinked_list1.h: New file.
60361         * lib/gl_anylinked_list2.h: New file.
60362         * lib/gl_avltree_list.h: New file.
60363         * lib/gl_avltree_list.c: New file.
60364         * lib/gl_anyavltree_list1.h: New file.
60365         * lib/gl_anyavltree_list2.h: New file.
60366         * lib/gl_rbtree_list.h: New file.
60367         * lib/gl_rbtree_list.c: New file.
60368         * lib/gl_anyrbtree_list1.h: New file.
60369         * lib/gl_anyrbtree_list2.h: New file.
60370         * lib/gl_anytree_list1.h: New file.
60371         * lib/gl_anytree_list2.h: New file.
60372         * lib/gl_linkedhash_list.h: New file.
60373         * lib/gl_linkedhash_list.c: New file.
60374         * lib/gl_anyhash_list1.h: New file.
60375         * lib/gl_anyhash_list2.h: New file.
60376         * lib/gl_avltreehash_list.h: New file.
60377         * lib/gl_avltreehash_list.c: New file.
60378         * lib/gl_rbtreehash_list.h: New file.
60379         * lib/gl_rbtreehash_list.c: New file.
60380         * lib/gl_anytreehash_list1.h: New file.
60381         * lib/gl_anytreehash_list2.h: New file.
60382
60383         * lib/gl_oset.h: New file.
60384         * lib/gl_oset.c: New file.
60385         * lib/gl_array_oset.h: New file.
60386         * lib/gl_array_oset.c: New file.
60387         * lib/gl_avltree_oset.h: New file.
60388         * lib/gl_avltree_oset.c: New file.
60389         * lib/gl_rbtree_oset.h: New file.
60390         * lib/gl_rbtree_oset.c: New file.
60391         * lib/gl_anytree_oset.h: New file.
60392
60393 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60394
60395         * m4/mkancesdirs.m4: New file.
60396         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
60397         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
60398         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
60399         it.
60400
60401 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60402
60403         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
60404         * lib/mkancesdirs.h: New files.
60405         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
60406         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
60407         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
60408         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
60409         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
60410         callers changed.  Revamp internals significantly, by not
60411         attempting to create directories that are temporarily more
60412         permissive than the final results.  Do not attempt to use
60413         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
60414         This removes some race conditions, fixes some bugs, and simplifies
60415         things.  Use new dirchownmod function to do owner and mode changes.
60416         * lib/mkdir-p.h: Likewise.
60417         * lib/modechange.c (octal_to_mode): New function.
60418         (struct mode_change): New member mentioned.
60419         (make_node_op_equals): New arg mentioned.  All callers changed.
60420         (mode_compile): Keep track of which mode bits the user has explicitly
60421         mentioned.
60422         (mode_adjust): New arg DIR, so that we implement the X op correctly.
60423         New arg PMODE_BITS, to keep track of which mode bits the user
60424         mentioned; it treats S_ISUID and S_ISGID speciall.
60425         All callers changed.
60426         * lib/modechange.h: Likewise.
60427
60428 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60429
60430         * MODULES.html.sh: Add mkancestors.
60431         * modules/mkancesdirs: New module.
60432         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
60433         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
60434         The chdir-safer and afs files are now orphans; I'll remove them
60435         unless someone speaks up.
60436         Add lib/dirchownmod.c, lib/dirchownmod.h.
60437         (Depends-on): Remove alloca, chown, save-cwd, dirname.
60438         Add lchown, mkancesdirs.
60439         (Maintainer): Add self.
60440
60441 2006-07-15  Karl Berry  <karl@gnu.org>
60442
60443         * gnulib-tool: help message wording/arrangement.
60444
60445 2006-07-14  Simon Josefsson  <jas@extundo.com>
60446
60447         * doc/gnulib.texi (Libtool and Windows): New section.
60448
60449 2006-07-12  Simon Josefsson  <jas@extundo.com>
60450
60451         * modules/gendocs (License): Fix license, approved by Karl.
60452
60453 2006-07-12  Eric Blake  <ebb9@byu.net>
60454
60455         * MODULES.html.sh: Add gendocs.
60456
60457 2006-07-11  Eric Blake  <ebb9@byu.net>
60458
60459         * modules/fdl: New module, to install doc/fdl.texi.
60460         * MODULES.html.sh: Add new section for documentation modules.
60461         * gnulib-tool: Avoid space-tab.
60462         (--doc-base): New option, to manage files from doc.
60463
60464 2006-07-11  Eric Blake  <ebb9@byu.net>
60465
60466         * m4/absolute-header.m4: Fix comments to match recent change.
60467
60468 2006-07-11  Eric Blake  <ebb9@byu.net>
60469
60470         * gnulib-tool: List --doc-base before --tests-base.
60471
60472 2006-07-11  Derek R. Price  <derek@ximbiot.com>
60473
60474         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
60475
60476 2006-07-11  Bruno Haible  <bruno@clisp.org>
60477
60478         * README: Mention where to put documentation.
60479
60480 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60481
60482         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
60483
60484 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60485
60486         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
60487         to stdint.m4.
60488
60489 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60490
60491         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
60492         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
60493         "no/such/file/stdint.h" when there is no such file, so that
60494         the resulting C code can be parsed by dodgy compilers.
60495         Problems reported by Bob Proulx.
60496
60497 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60498
60499         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
60500         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60501         macros into the GNU _D_EXACT_NAMLEN.
60502         * lib/savedir.c:  Likewise.
60503         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
60504
60505 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60506         and Paul Eggert  <eggert@cs.ucla.edu>
60507
60508         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
60509         * m4/savedir.m4:
60510         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60511         macros into the GNU _D_EXACT_NAMLEN.
60512
60513 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60514
60515         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
60516         around the absolute name, to work around a problem with the HP-UX
60517         11.23 native C compiler, reported by Bob Proulx.
60518
60519 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60520
60521         * doc/maintain.texi, make-stds.texi: Sync from
60522         <http://savannah.gnu.org/projects/gnustandards>.
60523
60524 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60525
60526         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
60527
60528 2006-07-09  Jim Meyering  <jim@meyering.net>
60529
60530         * m4/glob.m4: Remove a doubled word in a comment.
60531
60532 2006-07-09  Jim Meyering  <jim@meyering.net>
60533
60534         * lib/argp-pv.c: Remove a doubled word in a comment.
60535         * lib/check-version.c (check_version): Likewise.
60536         * lib/javacomp.c (compile_java_class): Likewise.
60537
60538 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60539
60540         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
60541         for the benefit of people using Autoconf 2.60.  If you want to
60542         support older Autoconf versions you can copy m4/onceonly_2_57.m4
60543         (or m4/onceonly.m4, if pre-2.57) manually.
60544
60545 2006-07-08  Jim Meyering  <jim@meyering.net>
60546
60547         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
60548         comment.
60549         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
60550         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
60551         comment.
60552
60553 2006-07-08  Jim Meyering  <jim@meyering.net>
60554
60555         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
60556
60557 2006-07-07  Simon Josefsson  <jas@extundo.com>
60558
60559         * tests/test-crc.c: Change expected crc value, the test vector
60560         were probably computed using the old broken crc.c?
60561
60562 2006-07-06  Simon Josefsson  <jas@extundo.com>
60563
60564         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
60565         now the canonical place for the M4 file).
60566
60567         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
60568         from the sys_socket dependency now.
60569
60570         * modules/inet_pton (Files): Ditto.
60571
60572         * modules/inet_ntop (Files): Ditto.
60573
60574 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60575
60576         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
60577         not gl_PREREQ_GETUSERSHELL.
60578
60579 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60580
60581         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
60582         with only one argument, for Autoconf 2.60.
60583         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
60584         expand to nothing, so add a shell command to avoid syntax error.
60585         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60586
60587 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60588
60589         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
60590
60591 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60592
60593         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
60594         no longer needed.  Check for isblank decl.
60595         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
60596         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
60597         of existence.
60598
60599 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60600
60601         * lib/getloadavg.c: Use __VMS, not VMS.
60602         * lib/getopt.c: Likewise.
60603         * lib/getpagesize.h: Likewise.
60604         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
60605         and probably does not work.
60606
60607 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60608
60609         * lib/.cppi-disable: Add wcwidth.
60610         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
60611         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
60612         (ISGRAPH): Remove.  All uses changed to isgraph.
60613         (FOLD) [!defined _LIBC]: Remove special case.
60614         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
60615         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
60616         HAVE_ISBLANK.
60617         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
60618         case.
60619
60620 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60621
60622         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
60623         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
60624         brackets.  Other minor changes to suppress some compiler
60625         warnings.
60626
60627 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60628         and Paul Eggert  <eggert@cs.ucla.edu>
60629
60630         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
60631         of invoking obsolescent AC_HEADER_DIRENT macro.
60632         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
60633         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
60634         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60635         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
60636         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
60637         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60638         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
60639         * m4/readdir.m4: Remove; no longer needed.
60640
60641 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60642         and Paul Eggert  <eggert@cs.ucla.edu>
60643
60644         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
60645         Don't worry about this obsolete case any more.
60646         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
60647         directories.
60648         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
60649         worry about this obsolete case any more.
60650         * lib/fts.c: Likewise.
60651         * lib/getcwd.c: Likewise.
60652         * lib/glob.h: Likewise.
60653         * lib/savedir.c: Likewise.
60654
60655 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60656
60657         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
60658         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
60659         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
60660         needed.
60661         All uses removed.
60662         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60663         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60664         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
60665         needed.
60666         * m4/getdate.m4 (gl_GETDATE): Likewise.
60667         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60668         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60669         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60670         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60671         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60672         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60673         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
60674         needed.
60675
60676 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60677
60678         * lib/memcasecmp.c: Include <limits.h>.
60679         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
60680         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
60681         Don't assume isdigit succeeds only on '0' through '9'.
60682
60683 2006-07-05  Eric Blake  <ebb9@byu.net>
60684
60685         * modules/getaddrinfo (Depends-on): Add snprintf.
60686
60687 2006-07-05  Eric Blake  <ebb9@byu.net>
60688
60689         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
60690         to avoid 'header present but could not be compiled' on cygwin.
60691
60692 2006-07-05  Eric Blake  <ebb9@byu.net>
60693
60694         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
60695         missing from netdb.h.
60696         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
60697
60698 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60699
60700         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
60701         no longer needed.
60702         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
60703         * m4/getdate.m4 (gl_GETDATE): Likewise.
60704         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60705         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60706         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60707         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60708         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60709
60710 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60711
60712         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
60713         All uses of is_space replaced by isspace.
60714         * lib/exit.h: Don't talk about STDC_HEADERS.
60715         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
60716         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
60717         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
60718         replaced by isprint etc.
60719         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
60720         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60721         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
60722         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
60723         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
60724         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60725
60726 2006-07-05  Bruno Haible  <bruno@clisp.org>
60727
60728         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
60729         the function exists, before testing against AIX.
60730         Reported by Martin Lambers <marlam@marlam.de>.
60731
60732 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60733
60734         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
60735         From Mark D. Baushke.
60736
60737 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60738
60739         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
60740         to the absolute name, not just one, to bypass Sun C 5.8's
60741         "warning: #include of /usr/include/... may be non-portable".
60742
60743 2006-07-04  Eric Blake  <ebb9@byu.net>
60744
60745         * modules/dirname-tests: New test module.
60746         * tests/test-dirname.c: New file, replacing dirname.c
60747         TEST_DIRNAME section that was recently deleted.
60748
60749 2006-07-04  Bruno Haible  <bruno@clisp.org>
60750
60751         Assume ANSI C header files and <ctype.h> functions.
60752         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
60753         (mbsnwidth): Use isprint, iscntrl instead.
60754
60755 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60756
60757         Merge from coreutils.
60758         * MODULES.html.sh: Add xstrtold.
60759         * modules/xstrtold: New file.
60760         * modules/cycle-check (Files): Add lib/same-inode.h.
60761         * modules/dirname (Files): Add m4/double-slash-root.m4.
60762         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
60763         * modules/mkdir-p (Files): Add lib/same-inode.h.
60764         * modules/same (Files): Add lib/same-inode.h.
60765
60766 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60767
60768         * m4/absolute-header.m4: Renamed from full-header-path.m4.
60769         This is to keep the terminology clean; POSIX talks about
60770         "absolute pathnames", not "full pathnames", but the GNU
60771         Coding Standards say to use "path" for something else;
60772         so use "absolute" to keep both sides happy.
60773         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
60774         Set gl_absolute_header, not gl_full_header_path.
60775         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
60776         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
60777         All uses changed.
60778
60779         Merge from coreutils.
60780
60781         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60782
60783         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
60784         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
60785         want to require the building of c-strtod.o.
60786         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
60787         needs -lm directly.
60788         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
60789
60790         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60791
60792         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
60793         --as-needed option if available.  Problem reported by Albert Chin in
60794         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
60795         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
60796         cc merely issues a bunch of annoying warnings for --as-needed
60797         (this problem was reported by Bob Proulx).  Also, try linking with
60798         -lm to detect a bug in binutils 2.16 (this problem was reported
60799         by Ralf Wildenhues).
60800
60801         2006-06-18  Jim Meyering  <jim@meyering.net>
60802
60803         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
60804         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
60805         macro.
60806         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
60807         also check for glibc-2.4's abort-inducing bug.
60808
60809         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
60810         Low-probability clean-up should be to use rmdir to get rid of
60811         the just-created directory, not unlink.
60812
60813         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
60814         configure fail, and request a bug report to inform us about it.
60815         Add a comment that, barring reports to the contrary, in 2007 we'll
60816         assume ftruncate is universally available.
60817
60818         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60819
60820         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
60821
60822         2006-03-12  Jim Meyering  <jim@meyering.net>
60823
60824         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
60825         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
60826         * m4/same.m4 (gl_SAME): Likewise.
60827         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
60828
60829         2006-03-11  Eric Blake  <ebb9@byu.net>
60830
60831         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
60832         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
60833         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
60834         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
60835
60836 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60837
60838         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
60839         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
60840         reported by Mark D. Baushke, one in
60841         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
60842
60843         Merge from coreutils.
60844
60845         * lib/.cppi-disable: Add stdint_.h.
60846         * lib/.cvsignore: Add stdint.h.
60847
60848         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60849
60850         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
60851         both double and long double versions.
60852         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
60853         * lib/xstrtold.c: New file.
60854         * lib/xstrtod.h (xstrtold): New decl.
60855
60856         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60857
60858         * lib/filemode.c (setst): Remove.
60859         (strmode): Rewrite to avoid setst.  This makes the code shorter,
60860         (arguably) clearer, and the generated code is a bit smaller on my
60861         Debian GNU/Linux stable x86 host.
60862
60863         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60864
60865         * lib/filemode.c: Include "filemode.h" first, to test the interface.
60866         Assume that filemode.h includes sys/types.h and sys/stat.h.
60867         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
60868         (ftypelet): Reorder to put common cases first, for efficiency.
60869         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
60870         to do 'M'.
60871         (strmode): Renamed from mode_string, and now stores 12 bytes instead
60872         of 10, for compatibility with FreeBSD.  All callers changed.
60873         (filemodestring): Now stores 12 bytes instead of 10, and sets file
60874         types that can't be deduced solely from st_mode.  First arg is now a
60875         const pointer.
60876         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
60877         (strmode): Renamed from mode_string.
60878         (filemodestring): New decl.
60879         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
60880         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
60881         needed.
60882         (S_ISPORT, S_ISWHT): New macros, if not already defined.
60883
60884         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60885
60886         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
60887         fsusage.h now does that.  Include fsusage.h first, to test interface.
60888         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
60889         at most one method (the old code could have generated decls that
60890         didn't conform to C89, not that this was ever exercised).
60891         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
60892
60893         2006-03-19  Jim Meyering  <jim@meyering.net>
60894
60895         Work even in a chroot where d_ino values for entries in "/"
60896         don't match the stat.st_ino values for the same names.
60897         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
60898         number, iterate through all entries again, using lstat instead.
60899         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
60900         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60901
60902         * lib/getcwd.c (__getcwd): Clarify a comment.
60903         Use memcpy in place of a call to strcpy.
60904
60905         2006-03-12  Jim Meyering  <jim@meyering.net>
60906
60907         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
60908         matches that of the current directory (which we're about to chdir ".."
60909         out of), then save the dev-ino of the parent, instead.
60910
60911         * lib/same-inode.h (SAME_INODE): New file/macro.
60912         * lib/chdir-safer.c (SAME_INODE): Remove definition.
60913         Include "same-inode.h", instead.
60914         * lib/same.c: Likewise.
60915         * lib/cycle-check.h: Include "same-inode.h".
60916         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
60917         * lib/cycle-check.c (SAME_INODE): Remove definition.
60918         * lib/root-dev-ino.h: Include "same-inode.h".
60919
60920         2006-03-11  Eric Blake  <ebb9@byu.net>
60921
60922         * lib/same.c (same_name): s/base_name/last_component/
60923         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
60924         * lib/filenamecat.c (file_name_concat): Likewise.
60925
60926         2006-03-11  Eric Blake  <ebb9@byu.net>,
60927                     Paul Eggert  <eggert@cs.ucla.edu>
60928
60929         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
60930         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
60931         drive prefix.
60932         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
60933         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
60934         (last_component): New method.
60935         * lib/dirname.c (dir_len): Determine when drive letters need a
60936         subsequent slash.  Preserve // when it is special.
60937         (dir_name): Don't append dot when drive letter is absolute.
60938         [TEST_DIRNAME]: Move into a full-blown gnulib test.
60939         * lib/basename.c (base_name): New semantics - malloc the result.
60940         Preserve // when it is special.  Preserve relative files that look
60941         like drive letters.
60942         (base_len): Preserve // when it is special.
60943         (last_component): New method, similar to old base_name semantics.
60944         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
60945         base_name.  Strip redundant slashes from ///.
60946
60947 2006-07-03  Jim Meyering  <jim@meyering.net>
60948
60949         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
60950         macro is used before the first cycle_check call.
60951
60952 2006-07-03  Eric Blake  <ebb9@byu.net>
60953
60954         * modules/dirname (Depends-on): Add xstrndup.
60955
60956 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60957
60958         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
60959         test cases, so that config.log is a bit easier to follow.
60960
60961 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60962
60963         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
60964         both are 64 bits, since this seems to be the tradition, and this
60965         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
60966         we ever run into a host that prefers long long to long in this
60967         case, we'll need another configure-time test.  Problem reported by
60968         Jim Meyering.
60969
60970 2006-07-02  Eric Blake  <ebb9@byu.net>
60971
60972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
60973
60974 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60975
60976         * modules/inttypes (Depends-on): No longer depends on stdint.
60977         * modules/stdint (Description): Say more about assumptions.
60978         Say that the fast types might differ.  Say macros are used.
60979         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
60980         (Makefile.am): Revise list of substituted symbols to match
60981         new stdint.m4.
60982         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
60983         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
60984         * tests/test-stdint.c (verify_same_types)
60985         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
60986         the code conforms to C99/C89.
60987         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
60988         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
60989
60990 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60991
60992         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
60993         but fix a bug, by requiring at least 64 bits.
60994         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60995         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
60996         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
60997         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60998
60999         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
61000         changes.  Make 2.59 a prerequisite.  Check and substitute for
61001         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
61002         inttypes.h.  Do not use special include files; just use the
61003         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
61004         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
61005         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
61006         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
61007         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
61008         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
61009         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
61010         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
61011         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
61012         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
61013         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
61014         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
61015         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
61016         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
61017         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
61018         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
61019         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
61020         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
61021         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
61022         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
61023         WINT_MAX.  Check for C99 conformance more strictly, by detecting
61024         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
61025         not check for things that C99 does not require, e.g., int8_t.  If
61026         a test isn't needed unless <stdint.h> isn't working, and is
61027         unlikely to be needed for any other reason, then don't do it
61028         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
61029         size_t, since we assume C89 freestanding at least.  Do not check
61030         for sig_atomic_t, wchar_t, or wint_t, since the code now does
61031         the right thing even if the types are not defined.  Instead use:
61032         (gl_STDINT_TYPE_PROPERTIES): New macro.
61033         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
61034         testing whether <sys/types.h> clashes, as Autoconf does this for
61035         us now.  All uses removed.
61036         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
61037         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
61038         (gl_CHECK_TYPE_SAME):
61039         Remove; no longer needed.
61040         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
61041         exists, since we'll return 0 anyway in that case.
61042         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
61043
61044 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61045
61046         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
61047         possible collision with system files.
61048         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
61049         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
61050         WCHAR_MIN and WCHAR_MAX in this case.
61051         (<stddef.h>): Do not include; no longer needed.
61052         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
61053         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
61054         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
61055         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
61056         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
61057         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
61058         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
61059         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
61060         !defined(__c99))]: Include in this case too, since it's harmless
61061         now.
61062         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
61063         dangerous to do so.
61064         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
61065         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
61066         (_STDINT_MIN, _STDINT_MAX): New macros.
61067         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
61068         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
61069         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
61070         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
61071         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
61072         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
61073         macros, not typedefs; this simplifies things quite a bit.
61074         Use long int for all types narrower than int64_t.
61075         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
61076         Define in terms of long long int or int64_t or long int,
61077         not int64_t or int32_t.  This saves some compile-time testing.
61078         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
61079         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
61080         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
61081         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
61082         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
61083         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
61084         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
61085         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
61086         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
61087         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
61088         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61089         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61090         undef any previous version and define our own version, for
61091         simplicity and consistency with the new macros for types.
61092         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61093         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61094         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
61095         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
61096         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
61097         @WINT_T_SUFFIX@ to keep things simple here.
61098         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
61099         Simplify by assuming typical 8/16/32/64 host, since we're
61100         already doing that elsewhere anyway.
61101         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
61102         and assume long long int is 64 bits if available.  This
61103         speeds up 'configure'.
61104
61105 2006-07-01  Eric Blake  <ebb9@byu.net>
61106
61107         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
61108         Reported by Andreas Buening.
61109
61110 2006-07-01  Eric Blake  <ebb9@byu.net>
61111
61112         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
61113
61114 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61115
61116         * lib/getaddrinfo.c: fixed typo
61117
61118 2006-06-29  Jim Meyering  <jim@meyering.net>
61119
61120         * modules/strftime (Maintainer): Add my name, since with the
61121         FPRINTFTIME changes strftime.c has forked from glibc.
61122
61123 2006-06-29  Eric Blake  <ebb9@byu.net>
61124
61125         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
61126
61127 2006-06-29  Eric Blake  <ebb9@byu.net>
61128
61129         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
61130
61131 2006-06-29  Eric Blake  <ebb9@byu.net>
61132
61133         * lib/stat_.h: New file.
61134
61135 2006-06-29  Eric Blake  <ebb9@byu.net>
61136
61137         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
61138         unused static function.
61139
61140 2006-06-29  Eric Blake  <ebb9@byu.net>
61141
61142         * doc/functions.texi (Function Portability): Document missing lstat
61143         on mingw.
61144
61145 2006-06-29  Eric Blake  <ebb9@byu.net>
61146
61147         * MODULES.html.sh: Add sys_stat.
61148         * modules/sys_stat: New module.
61149         * modules/mkstemp (Depends-on): Add sys_stat.
61150
61151 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61152
61153         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
61154
61155 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61156
61157         * m4/c-bs-a.m4: Removed.
61158
61159 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61160
61161         * lib/strftime.c: Assume strftime() exists.
61162
61163 2006-06-29  Derek Price  <derek@ximbiot.com>
61164
61165         * modules/c-bs-a: Removed - \a is C89.
61166         * MODULES.html.sh: Remove c-bs-a.
61167
61168 2006-06-29  Bruno Haible  <bruno@clisp.org>
61169
61170         * modules/wcwidth (License): Change to LGPL.
61171
61172 2006-06-28  Simon Josefsson  <jas@extundo.com>
61173
61174         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
61175         on _WIN32.
61176
61177         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
61178         getnameinfo.
61179
61180 2006-06-28  Simon Josefsson  <jas@extundo.com>
61181
61182         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
61183
61184 2006-06-28  Simon Josefsson  <jas@extundo.com>
61185
61186         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
61187         functions there.  It will succeed on Windows XP, but on Windows
61188         2000 and (presumably) earlier, it will fail, and use the internal
61189         re-implementation.
61190         (use_win32_p): New function.
61191         (getaddrinfo): Use strtoul on servname, to support numeric ports.
61192         Support AI_NUMERICSERV to disable getservbyname.
61193         (getnameinfo): New function, only supports
61194         NI_NUMERICHOST|NI_NUMERICSERV for now.
61195
61196         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
61197         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
61198         getnameinfo.
61199
61200 2006-06-28  Eric Blake  <ebb9@byu.net>
61201
61202         * modules/wcwidth: New file.
61203         * modules/mbchar (Depends-on): Add wcwidth.
61204         * modules/mbswidth (Depends-on): Add wcwidth.
61205         * MODULES.html.sh: Add wcwidth.
61206
61207 2006-06-28  Eric Blake  <ebb9@byu.net>
61208
61209         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
61210         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
61211
61212 2006-06-28  Eric Blake  <ebb9@byu.net>
61213
61214         * lib/xvasprintf.h: Fix comments.
61215
61216 2006-06-28  Eric Blake  <ebb9@byu.net>
61217
61218         * lib/mbchar.h (wcwidth): Include wcwidth.h.
61219         * lib/mbswidth.c (wcwidth): Move from here...
61220         * lib/wcwidth.h: ...to this new file.
61221
61222 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61223
61224         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
61225
61226         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
61227         it's obsolete.
61228         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
61229
61230 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61231
61232         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
61233         Autoconf 2.60 says this stuff was obsolete.
61234
61235 2006-06-28  Bruno Haible  <bruno@clisp.org>
61236
61237         * modules/wcwidth (Files): Add m4/wchar_t.m4.
61238
61239 2006-06-28  Bruno Haible  <bruno@clisp.org>
61240
61241         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
61242         gt_TYPE_WCHAR_T.
61243
61244 2006-06-28  Bruno Haible  <bruno@clisp.org>
61245
61246         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
61247         declaration for wcwidth.
61248         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
61249
61250 2006-06-28  Bruno Haible  <bruno@clisp.org>
61251
61252         * lib/mkdtemp.c [MINGW]: Include <io.h>.
61253         (mkdir): Define using _mkdir.
61254
61255 2006-06-28  Bruno Haible  <bruno@clisp.org>
61256
61257         * lib/getaddrinfo.h: Fix POSIX URL.
61258         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
61259         _WIN32.
61260         (use_win32_p): Make static.
61261         (getaddrinfo): Reject service name if it is empty or does not consist
61262         solely of decimal digits, or if its value is > 65535.
61263         (getnameinfo): Remove useless casts.
61264
61265 2006-06-27  Simon Josefsson  <jas@extundo.com>
61266
61267         * modules/sys_select: New file, suggested by Bruno Haible, Paul
61268         Eggert and Martin Lambers.
61269
61270 2006-06-27  Simon Josefsson  <jas@extundo.com>
61271
61272         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
61273         Eggert and Martin Lambers.
61274
61275 2006-06-27  Bruno Haible  <bruno@clisp.org>
61276
61277         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
61278         result to 0, not to empty.
61279         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
61280
61281 2006-06-27  Bruno Haible  <bruno@clisp.org>
61282
61283         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
61284
61285 2006-06-26  Simon Josefsson  <jas@extundo.com>
61286
61287         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
61288         present.
61289
61290 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
61291
61292         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
61293         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
61294         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
61295
61296 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
61297
61298         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
61299
61300 2006-06-26  Bruno Haible  <bruno@clisp.org>
61301
61302         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
61303
61304 2006-06-26  Bruno Haible  <bruno@clisp.org>
61305
61306         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
61307
61308 2006-06-26  Bruno Haible  <bruno@clisp.org>
61309
61310         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
61311         SGI C compiler in pre-C99 mode.
61312         Suggested by Mark D. Baushke and Larry Jones.
61313
61314 2006-06-26  Bruno Haible  <bruno@clisp.org>
61315
61316         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
61317         WCHAR_MAX.
61318         Reported by Mark D. Baushke and Larry Jones.
61319
61320 2006-06-26  Bruno Haible  <bruno@clisp.org>
61321
61322         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
61323         in pre-C99 mode.
61324         Suggested by Mark D. Baushke and Larry Jones.
61325
61326 2006-06-23  Simon Josefsson  <jas@extundo.com>
61327             Bruno Haible  <bruno@clisp.org>
61328
61329         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
61330         Emit mostlyclean-local rule.
61331         (func_emit_tests_Makefile_am): Likewise.
61332         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
61333
61334 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
61335
61336         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
61337
61338 2006-06-23  Bruno Haible  <bruno@clisp.org>
61339
61340         * tests/test-stdint.c: Update to match ISO C 99 Technical
61341         Corrigendum 1.
61342
61343 2006-06-23  Bruno Haible  <bruno@clisp.org>
61344
61345         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
61346
61347 2006-06-23  Bruno Haible  <bruno@clisp.org>
61348
61349         * lib/stdint_.h: Treat IRIX like OpenBSD.
61350
61351 2006-06-23  Bruno Haible  <bruno@clisp.org>
61352
61353         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
61354         ISO C 99 Technical Corrigendum 1.
61355
61356 2006-06-22  Simon Josefsson  <jas@extundo.com>
61357
61358         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
61359         MinGW.
61360
61361 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61362
61363         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
61364         needed.  Some compiler complained about some of them.  Problem reported
61365         by Larry Jones in
61366         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
61367
61368 2006-06-21  Simon Josefsson  <jas@extundo.com>
61369
61370         * tests/test-getaddrinfo.c: New file.
61371
61372         * modules/getaddrinfo-tests: New file.
61373
61374         * MODULES.html.sh: Add inet_pton.
61375
61376         * modules/inet_pton: New file.
61377
61378 2006-06-21  Simon Josefsson  <jas@extundo.com>
61379
61380         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
61381         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
61382         of using the (limited) gnulib implementation on Windows XP.
61383
61384         * m4/inet_pton.m4: New file.
61385
61386 2006-06-21  Simon Josefsson  <jas@extundo.com>
61387
61388         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
61389         variable.
61390
61391         * lib/socket_.h: Don't define WINVER.
61392
61393         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
61394         slightly modified to work in gnulib.
61395
61396 2006-06-21  Simon Josefsson  <jas@extundo.com>
61397
61398         * doc/gnulib.texi (Windows sockets): Add.
61399
61400 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61401
61402         * lib/read-file.c (fread_file): Start with buffer allocation of
61403         0 bytes rather than 1 byte; this simplifies the code.
61404         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
61405         code to free buffer and save/restore errno.
61406         (internal_read_file): Remove unused local.
61407
61408 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61409
61410         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
61411         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
61412         Problem reported by Denis Excoffier in
61413         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
61414
61415 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61416
61417         * modules/sys_socket, modules/socklen: Include sys/types since
61418         FreeBSD 4.x's sys/socket.h needs it.
61419
61420 2006-06-19  Simon Josefsson  <jas@extundo.com>
61421
61422         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
61423
61424 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61425
61426         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
61427
61428 2006-06-19  Bruno Haible  <bruno@clisp.org>
61429
61430         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
61431         and FULL_PATH_INTTYPES_H in angle brackets.
61432         Reported by Mark D. Baushke <mdb@gnu.org>.
61433
61434 2006-06-17  Eric Blake  <ebb9@byu.net>
61435
61436         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
61437         errno.
61438
61439 2006-06-17  Bruno Haible  <bruno@clisp.org>
61440
61441         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
61442         <sys/inttypes.h>.
61443
61444 2006-06-17  Bruno Haible  <bruno@clisp.org>
61445
61446         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
61447         whether errno is declared. Assume <errno.h> declares errno.
61448
61449 2006-06-17  Bruno Haible  <bruno@clisp.org>
61450
61451         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
61452
61453 2006-06-17  Bruno Haible  <bruno@clisp.org>
61454
61455         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
61456         problem on Solaris 2.5.1.
61457
61458 2006-06-16  Eric Blake  <ebb9@byu.net>
61459
61460         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
61461         * lib/unicodeio.c [!defined errno]: Likewise.
61462         * lib/strtol.c [!defined errno]: Likewise.
61463         * lib/strtod.c [!defined errno]: Likewise.
61464
61465 2006-06-15  Eric Blake  <ebb9@byu.net>
61466
61467         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
61468
61469 2006-06-15  Eric Blake  <ebb9@byu.net>
61470
61471         * config/srclist.txt (ssize_t.m4): Lose sync.
61472
61473 2006-06-15  Bruno Haible  <bruno@clisp.org>
61474
61475         * modules/stdint (Files): Include m4/full-header-path.m4,
61476         m4/size_max.m4, m4/wchar_t.m4.
61477         (Makefile.am): Many more substitutions.
61478         * modules/stdint-tests: New file.
61479         * tests/test-stdint.c: New file.
61480
61481 2006-06-15  Bruno Haible  <bruno@clisp.org>
61482
61483         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
61484         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
61485         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
61486         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
61487         gl_CHECK_TYPE_SAME): New macros.
61488
61489 2006-06-15  Bruno Haible  <bruno@clisp.org>
61490
61491         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
61492
61493 2006-06-15  Bruno Haible  <bruno@clisp.org>
61494
61495         * lib/stdint_.h: Rewritten to be fully auto-configured.
61496         Fixes bug on HP-UX/IA64.
61497
61498 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
61499
61500         * lib/getdate.y (__attribute__): Don't define if already defined.
61501         Problem reported by Larry Jones.
61502         * lib/utimens.c (__attribute__): Likewise.
61503
61504 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
61505
61506         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
61507         reported by Andreas Schwab.
61508
61509 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61510             Bruno Haible  <bruno@clisp.org>
61511
61512         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
61513         check for the declaration of strnlen and a run test that exposes the
61514         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
61515         rpl_strndup.
61516
61517 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61518             Bruno Haible  <bruno@clisp.org>
61519
61520         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
61521
61522 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61523
61524         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
61525         compile test, for Tru64 4.0D.
61526
61527 2006-05-28  Karl Berry  <karl@gnu.org>
61528
61529         * config/srclist.txt (printf-args.c): lose sync.
61530
61531 2006-05-26  Martin Lambers  <marlam@marlam.de>
61532
61533         * lib/getpass.c: Updates the test for the native W32 API, and adds
61534         missing includes, thus fixing compilation warnings.
61535
61536 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61537
61538         * lib/exclude.c (exclude_fnmatch): New function.
61539         (excluded_file_name): Call exclude_fnmatch.
61540         * lib/exclude.h (excluded_file_name): New prototype
61541
61542 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
61543
61544         * lib/tempname.c (small_open, large_open): New macros.
61545         (__open, __open64) [!_LIBC]: Remove.
61546         (__gen_tempname): Use small_open and large_open instead of __open
61547         and __open64.  This fixes a portability bug on HP-UX 11.11i
61548         reported by Simon Wing-Tang in
61549         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
61550
61551 2006-05-24  Bruno Haible  <bruno@clisp.org>
61552
61553         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
61554         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
61555         Reported by Thorsten Maerz <torte@netztorte.de> via
61556         Aaron Stone <aaron@serendipity.cx>.
61557
61558 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61559
61560         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
61561         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
61562         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
61563         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
61564         not really conditional on the cache.
61565         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
61566
61567 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61568
61569         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
61570         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
61571         (my_usleep): Don't mishandle maximum value.
61572
61573 2006-05-19  Jim Meyering  <jim@meyering.net>
61574
61575         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
61576
61577 2006-05-17  Bruno Haible  <bruno@clisp.org>
61578
61579         Cygwin portability.
61580         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
61581
61582 2006-05-17  Bruno Haible  <bruno@clisp.org>
61583
61584         * lib/stdint_.h: Fix recognition of Cygwin.
61585
61586 2006-05-15  Bruno Haible  <bruno@clisp.org>
61587
61588         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
61589         on libtool patch by Ralf Wildenhues.
61590
61591 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61592
61593         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
61594         test for C99 conformance; (bool) 0.5 is an integer constant
61595         expression, but (bool) -0.5 is not.  Problem reported by Fedor
61596         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
61597
61598 2006-05-11  Simon Josefsson  <jas@extundo.com>
61599
61600         * m4/xvasprintf.m4: Fix obvious typo.
61601
61602 2006-05-11  Jim Meyering  <jim@meyering.net>
61603
61604         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
61605         James Lemley.
61606
61607 2006-05-10  Simon Josefsson  <jas@extundo.com>
61608
61609         * lib/md4.c: Typo fix, update copyright years.
61610         (K1, K2): Don't use L because it turn computations into 64-bit on
61611         64-bit platforms.
61612
61613 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
61614
61615         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
61616         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
61617         unwanted sign propagation, e.g., on hosts with 64-bit int.
61618         There still are some problems with reeelly weird theoretical hosts
61619         (e.g., 33-bit int) but it's not worth worrying about now.
61620         * lib/sha1.c (rol): Likewise.
61621         (K1, K2, K3, K4): Remove unnecessary L suffix.
61622
61623 2006-05-10  Bruno Haible  <bruno@clisp.org>
61624
61625         * lib/des.c: Cast to avoid warnings.
61626
61627 2006-05-09  Bruno Haible  <bruno@clisp.org>
61628
61629         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
61630         (Depends-on): Depend also on xsize, stdarg.
61631         (configure.ac): Add gl_XVASPRINTF.
61632
61633 2006-05-09  Bruno Haible  <bruno@clisp.org>
61634
61635         * m4/xvasprintf.m4: New file.
61636
61637 2006-05-09  Bruno Haible  <bruno@clisp.org>
61638
61639         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
61640         (EOVERFLOW): Define fallback value.
61641         (xstrcat): New function.
61642         (xvasprintf): Recognize the special case of a string concatenation.
61643
61644 2006-05-08  Eric Blake  <ebb9@byu.net>
61645
61646         * gnulib-tool (func_version): Base copyright year on CVS date.
61647         (func_emit_copyright_notice): New function.
61648         (func_emit_lib_Makefile_am): Use it.
61649         (func_emit_tests_Makefile_am): Likewise.
61650         (func_import): Likewise.
61651
61652 2006-05-08  Bruno Haible  <bruno@clisp.org>
61653
61654         * modules/stdarg: New file.
61655         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
61656
61657 2006-05-08  Bruno Haible  <bruno@clisp.org>
61658
61659         * m4/stdarg.m4: New file, from GNU gettext.
61660
61661 2006-05-08  Bruno Haible  <bruno@clisp.org>
61662
61663         * config/srclist.txt (build-aux/config.rpath): different from latest
61664         release.
61665
61666 2006-05-08  Bruno Haible  <bruno@clisp.org>
61667
61668         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
61669
61670 2006-05-05  Jim Meyering  <jim@meyering.net>
61671
61672         * m4/warning.m4: New file, derived from bison's file by the same name.
61673
61674 2006-05-03  Bruno Haible  <bruno@clisp.org>
61675
61676         * lib/stdint_.h: Shorter URL.
61677         * lib/inttypes.h: Likewise.
61678
61679 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61680
61681         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
61682
61683 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61684
61685         * lib/verify.h: Document the internals better.  Most of this change
61686         was written by Bruno Haible.
61687
61688 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61689
61690         * doc/verify.texi: New file, partly based on a proposal by
61691         Bruno Haible.
61692
61693 2006-05-02  Bruno Haible  <bruno@clisp.org>
61694
61695         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
61696         test from here...
61697         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
61698
61699 2006-04-29  Bruno Haible  <bruno@clisp.org>
61700
61701         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
61702         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
61703
61704 2006-04-29  Bruno Haible  <bruno@clisp.org>
61705
61706         * gnulib-tool: Make --update option actually work.
61707
61708 2006-04-29  Bruno Haible  <bruno@clisp.org>
61709
61710         * doc/gcd.texi: New file.
61711         * doc/gnulib.texi: Include it.
61712
61713 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
61714
61715         * lib/getdate.y (get_date): When adding relative date, start with the
61716         initial time, not with the result of the first mktime call.
61717
61718 2006-04-25  Bruno Haible  <bruno@clisp.org>
61719
61720         * gnulib-tool (func_import): Output the include directives in three
61721         blocks, sorted separately.
61722         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61723
61724 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61725
61726         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
61727         to define main with arguments, for C++.  Reported by Eric Blake.
61728         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
61729         Prefer 'int main ()' to 'int main (void)', for C++.
61730         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61731         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
61732         for 'main', for C99 and C++.
61733
61734 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61735
61736         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
61737         Don't assume that exit status -1 is valid.
61738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61739         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61740         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
61741         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
61742         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
61743         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
61744         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
61745         functions can be used without declaring them, or that you can
61746         exit with status -1.
61747         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
61748
61749 2006-04-24  Karl Berry  <karl@gnu.org>
61750
61751         * config/srclist.txt (longdouble.m4): sync lost.
61752
61753 2006-04-24  Eric Blake  <ebb9@byu.net>
61754
61755         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
61756
61757 2006-04-24  Bruno Haible  <bruno@clisp.org>
61758
61759         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
61760         poll() implementation in AIX.
61761         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61762
61763 2006-04-24  Bruno Haible  <bruno@clisp.org>
61764
61765         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
61766         assigned exactly once.
61767
61768 2006-04-23  Claudio Fontana  <claudio@gnu.org>
61769             Bruno Haible  <bruno@clisp.org>
61770
61771         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
61772         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
61773         for AM_CPPFLAGS.
61774
61775 2006-04-23  Bruno Haible  <bruno@clisp.org>
61776
61777         * modules/copy-file: Depend on unistd.
61778         * modules/execute: Likewise.
61779         * modules/fatal-signal: Likewise.
61780         * modules/findprog: Likewise.
61781         * modules/mkdtemp : Likewise.
61782         * modules/pipe: Likewise.
61783         * modules/wait-process: Likewise.
61784
61785 2006-04-23  Bruno Haible  <bruno@clisp.org>
61786
61787         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
61788         condition was already detected.
61789         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61790
61791 2006-04-23  Bruno Haible  <bruno@clisp.org>
61792
61793         * lib/copy-file.c: Include <unistd.h> unconditionally.
61794         * lib/execute.c: Likewise.
61795         * lib/fatal-signal.c: Likewise.
61796         * lib/findprog.c: Likewise.
61797         * lib/mkdtemp.c: Likewise.
61798         * lib/pipe.h: Likewise.
61799         * lib/pipe.c: Likewise.
61800         * lib/wait-process.h: Likewise.
61801
61802 2006-04-23  Bruno Haible  <bruno@clisp.org>
61803
61804         * gnulib-tool (func_usage): Fix --import description. Document
61805         --update.
61806         (func_import): Create temporary file in a temporary directory, if
61807         --dry-run is specified. Silence errors from 'grep' when there are no
61808         m4 files in $m4dir.
61809         (func_create_testdir): Silence errors from 'grep' when there are no
61810         m4 files in $m4dir.
61811         Reported by Karl Berry <karl@freefriends.org>.
61812
61813 2006-04-20  Bruno Haible  <bruno@clisp.org>
61814
61815         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
61816         one argument, so that the code will be portable to Autoconf 2.60.
61817         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
61818         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61819         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
61820
61821 2006-04-19  Derek Price  <derek@ximbiot.com>
61822             Eric Blake  <ebb9@byu.net>
61823
61824         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
61825         rather than "/full/path.h".  Update comment to match.  Shorten &
61826         generalize m4_translit call via AS_TR_CPP.
61827
61828 2006-04-19  Derek Price  <derek@ximbiot.com>
61829             Eric Blake  <ebb9@byu.net>
61830
61831         * lib/inttypes.h: Correct grammar in comment.
61832
61833 2006-04-18  Derek Price  <derek@ximbiot.com>
61834             Paul Eggert  <eggert@cs.ucla.edu>
61835
61836         * modules/inttypes: New file.
61837         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
61838
61839 2006-04-18  Derek Price  <derek@ximbiot.com>
61840             Paul Eggert  <eggert@cs.ucla.edu>
61841
61842         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
61843         New files.
61844
61845 2006-04-18  Derek Price  <derek@ximbiot.com>
61846             Paul Eggert  <eggert@cs.ucla.edu>
61847
61848         * lib/inttypes.h: New file.
61849         * lib/strtoimax.c: Assume <inttypes.h>.
61850
61851 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
61852
61853         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
61854         isn't mounted.  Problem reported by Kir Kolyshkin.
61855
61856 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61857
61858         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
61859         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
61860         Derek R. Price.
61861         * lib/regex.h (RE_DUP_MAX): Update comment to match current
61862         implementation.
61863
61864 2006-04-12  Eric Blake  <ebb9@byu.net>
61865
61866         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
61867         is now done automatically by the corresponding Autoconf macro.
61868
61869 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
61870
61871         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
61872         time_r.h.
61873
61874 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61875
61876         Merge regex changes from libc, removing some of our
61877         POSIX-conformance changes that were rejected and redoing them in a
61878         less-intrusive way.
61879
61880         * lib/regcomp.c (re_compile_internal, init_dfa):
61881         Length arg is now size_t, not Idx.  All uses changed.
61882         (peek_token): Forward decl now says internal_function.
61883         (__re_error_msgid, __re_error_msgid_idx):
61884         Now static rather than extern with attribute_hidden.
61885         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
61886         For some reason libc prefers K&R style defns for external functions.
61887         (regerror) [!defined _LIBC]: Likewise.
61888         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
61889         (seek_collating_symbol_entry, lookup_collation_sequence_value):
61890         (build_range_exp, build_collating_symbol):
61891         Use K&R-style defn.
61892         (re_compile_fastmap): Use '\0' to memset, not 0.
61893         (utf8_sb_map): Make the calculations more obvious.
61894         (init_dfa, parse_bracket_exp, build_charclass_op):
61895         Call calloc and cast result, as glibc does.
61896         (init_word_char, fetch_token, peek_token, peek_token_bracket):
61897         (build_range_exp, build_collating_symbol):
61898         Now internal functions.
61899
61900         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61901
61902         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61903         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61904         Don't depend on VMS; depend on __VMS instead, for POSIX
61905         namespace cleanness.
61906         (regoff_t): Define to ssize_t, not long int.
61907
61908         Remove the REG_ macros named below.  Instead, make the old names
61909         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
61910         __USE_GNU_REGEX.
61911         (REG_BACKSLASH_ESCAPE_IN_LISTS):
61912         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
61913         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
61914         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
61915         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
61916         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
61917         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
61918         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
61919         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
61920         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
61921         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
61922         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
61923         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
61924         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
61925         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
61926         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
61927         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
61928         (REG_NREGS):
61929         Remove.  All uses replaced by the old RE_* names.
61930         (RE_BACKSLASH_ESCAPE_IN_LISTS):
61931         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
61932         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
61933         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
61934         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
61935         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
61936         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
61937         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
61938         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
61939         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
61940         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
61941         Don't bother having these macros be independent of each others'
61942         values, since they no longer exist in the POSIX name space.
61943
61944         Rename the following member names back to their old names,
61945         unless !__USE_GNU_REGEX.  All uses changed back.
61946         (buffer): Renamed from re_buffer.
61947         (allocated): Renamed from re_allocated.
61948         (used): Renamed from re_used.
61949         (syntax): Renamed from re_syntax.
61950         (fastmap): Renamed from re_fastmap.
61951         (translate): Renamed from re_translate.
61952         (can_be_null): Renamed from re_can_be_null.
61953         (regs_allocated): Renamed from re_regs_allocated.
61954         (fastmap_accurate): Renamed from re_fastmap_accurate.
61955         (no_sub): Renamed from re_no_sub.
61956         (not_bol): Renamed from re_not_bol.
61957         (not_eol): Renamed from re_not_eol.
61958         (newline_anchor): Renamed from re_newline_anchor.
61959         (num_regs): Renamed from rm_num_regs.
61960         (start): Renamed from rm_start.
61961         (end): Renamed from rm_end.
61962
61963         (free_state): Move up a bit.
61964
61965         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
61966         #define to be empty.
61967         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
61968         when that is what is intended.
61969         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
61970         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
61971         (MAX): New macro.
61972         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
61973         All uses changed back to re_malloc, etc.  It's now the caller's
61974         responsibility to check for overflow; all callers changed.
61975         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
61976         (re_x2nrealloc): Remove.
61977         (free_state): Remove decl.
61978
61979         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
61980         (re_set_registers, re_exec):
61981         Use K&R-style defn.
61982
61983         2006-01-31  Roland McGrath  <roland@redhat.com>
61984
61985         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
61986         Reported by Mike Frysinger <vapier@gentoo.org>.
61987
61988         2006-01-15  Andreas Jaeger  <aj@suse.de>
61989
61990         [BZ #1950]
61991         * lib/regex_internal.c (re_string_reconstruct): Adjust for
61992         build_wcs_upper_buffer change.
61993         (build_wcs_upper_buffer): Change return type.
61994
61995         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
61996
61997         * lib/regex_internal.h: Include <stdint.h> if available.
61998
61999         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
62000
62001         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
62002
62003         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62004
62005         * lib/regcomp.c: Adjust for changed secondary hash function.
62006
62007         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
62008
62009         * lib/regex.h: Pretty printing.
62010         Clean up namespace a bit.
62011
62012         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
62013
62014         * lib/regexec.c (update_cur_sifted_state, check_arrival,
62015         check_arrival_add_next_nodes): Avoid using uninitialized variable.
62016
62017         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62018                     Ulrich Drepper  <drepper@redhat.com>
62019
62020         [BZ #1302]
62021         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
62022         changed.
62023         (bitset_word_t): Renamed from bitset_word.  All uses changed.
62024
62025         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
62026
62027         [BZ #281]
62028         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
62029         * lib/regcomp.c: Remove unnecessary uses of
62030         unsigned RE_TRANSLATE_TYPE.
62031         * lib/regex_internal.h: Likewise.
62032         * lib/regex_internal.c: Likewise.
62033         * lib/regexec.c: Likewise.
62034         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
62035
62036         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
62037
62038         * lib/regexec.c (find_recover_state): Remove unnecessary
62039         initialization.
62040         (transit_state_bkref): Make DFA a const pointer.
62041         (get_subexp): Likewise.
62042         (check_arrival): Likewise.
62043         (update_cur_sifted_state): Likewise.
62044         (re_search_internal): Likewise.
62045         (prune_impossible_nodes): Likewise.
62046         (acquire_init_state_context): Likewise.
62047         (proceed_next_node): Likewise.
62048         (set_regs): Likewise.
62049         (free_fail_stack_return): Likewise.
62050         (check_arrival_expand_ecl): Mark DFA parameter as const.
62051         (check_arrival_expand_ecl_sub): Likewise.
62052         (check_subexp_limits): Likewise.
62053         (sub_epsilon_src_nodes):  Likewise.
62054         (add_epsilon_src_nodes):  Likewise.
62055         (merge_state_array): Likewise.
62056         (update_regs): Likewise.
62057         (build_trtable): Likewise.
62058         (sift_states_backward): Mark MCTX parameter as const.
62059         (build_sifted_states): Likewise.
62060         (update_cur_sifted_state): Likewise.
62061         (sift_states_mkref): Likewise.
62062         (check_arrival_expand_ecl): Mark eclosure as const.
62063         (check_dst_limits_calc_pos_1): Likewise.
62064         * lib/regex_internal.h (re_match_context_t): Make dfa a const
62065         pointer.
62066
62067         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
62068
62069         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
62070         (transit_state_sb): Likewise.
62071         (transit_state_mb): Likewise.
62072         (sift_states_iter_mb): Likewise.
62073         (check_arrival_add_next_nodes): Likewise.
62074         (check_node_accept_bytes): Change first parameter to pointer-to-const.
62075         [_LIBC] (re_search_2_stub): Use mempcpy.
62076
62077         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
62078         mbrtowc for very simple UTF-8 case.
62079
62080         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
62081         a pointer-to-const.
62082         (re_acquire_state_context): Likewise.
62083         * lib/regex_internal.h: Adjust prototypes.
62084
62085         * lib/regex.c: Prevent using C++ compilers.
62086
62087         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
62088         (re_acquire_state_context): Likewise.
62089
62090 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62091
62092         * modules/regex (Depends-on): Add ssize_t.
62093
62094 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62095
62096         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
62097         translation table.
62098
62099 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62100
62101         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
62102
62103 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
62104             Bruno Haible  <bruno@clisp.org>
62105
62106         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
62107         <sys/types.h> and <inttypes.h>.
62108
62109 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62110
62111         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
62112         `__error_t_defined', so argp.h will not typedef the former.
62113
62114 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62115
62116         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
62117         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
62118         glibc names.  Even if glibc is changed to conform to POSIX, the
62119         traditional names will be available anyway, since regex depends on
62120         the extensions module.  Also, fix a longstanding typo in the
62121         implementation of Spencer ERE test #75 from grep 2.3.  Problems
62122         reported by Emanuele Giaquinta.  Also, change sense of cached
62123         variable, so that the message makes sense.
62124
62125 2006-03-24  Simon Josefsson  <jas@extundo.com>
62126
62127         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
62128         including some doc fixes.
62129         (base64_encode_alloc): Fix +1 bug on allocation failures.
62130
62131 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62132
62133         * lib/base64.c (base64_encode): Do not read past end of array with
62134         unsanitized input on systems with CHAR_BIT > 8.
62135
62136 2006-03-24  Eric Blake  <ebb9@byu.net>
62137
62138         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
62139
62140 2006-03-22  Karl Berry  <karl@gnu.org>
62141
62142         * config/srclist.txt (*setenv.[ch]): get from coreutils.
62143         * config/srclistvars.sh (COREUTILS): new var.
62144
62145 2006-03-17  Jim Meyering  <jim@meyering.net>
62146
62147         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
62148         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
62149
62150 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62151
62152         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
62153         no longer needs it.  Instead, check that regoff_t is as least
62154         as wide as ptrdiff_t.
62155
62156         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
62157         so that our regex.h stays compatible with the installed regex.
62158         This is helpful for installers who configure --without-included-regex.
62159         Problem reported by Emanuele Giaquinta.
62160
62161 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62162
62163         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
62164         Typedef to long int, not to off_, as POSIX will likely change
62165         in that direction.
62166
62167 2006-03-15  Eric Blake  <ebb9@byu.net>
62168
62169         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
62170
62171 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62172
62173         * lib/argp-help.c (validate_uparams): Fix typo
62174         * lib/argp-parse.c (argp_default_options): Consistently begin help
62175         messages with a lowercase letter.
62176
62177 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
62178
62179         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
62180         overrun buffers and shouldn't be used (much as gets shouldn't be
62181         used).
62182         * lib/time_r.c (asctime_r, ctime_r): Likewise.
62183
62184 2006-03-08  Simon Josefsson  <jas@extundo.com>
62185
62186         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
62187         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62188
62189 2006-03-08  Simon Josefsson  <jas@extundo.com>
62190
62191         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
62192         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62193
62194 2006-03-08  Simon Josefsson  <jas@extundo.com>
62195
62196         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
62197         signal that configure disabled the device.
62198
62199 2006-03-08  Simon Josefsson  <jas@extundo.com>
62200
62201         * build-aux/maint.mk: Fix refresh-po, to handle no translated
62202         languages.
62203
62204 2006-03-07  Simon Josefsson  <jas@extundo.com>
62205
62206         * modules/getopt (Depends-on): Add unistd.
62207
62208         * modules/unistd: New file.
62209
62210 2006-03-07  Simon Josefsson  <jas@extundo.com>
62211
62212         * modules/gc-random: New file.
62213
62214 2006-03-07  Simon Josefsson  <jas@extundo.com>
62215
62216         * m4/unistd_h.m4: New file.
62217
62218 2006-03-07  Simon Josefsson  <jas@extundo.com>
62219
62220         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
62221         test to be side-effect free by storing the result in the cache
62222         variable gl_cv_lib_readline, and moving the assignment of
62223         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
62224         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62225
62226 2006-03-07  Simon Josefsson  <jas@extundo.com>
62227
62228         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
62229         error on missing devices (the functions will return an error).
62230
62231         * m4/gc.m4: Move random stuff to gc-random.m4
62232
62233 2006-03-07  Simon Josefsson  <jas@extundo.com>
62234
62235         * lib/unistd_.h: New file.
62236
62237 2006-03-07  Simon Josefsson  <jas@extundo.com>
62238
62239         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
62240
62241 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62242
62243         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
62244         Problem reported by Juan Manuel Guerrero.
62245
62246 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62247
62248         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
62249         the unistd module.
62250         * lib/getlogin_r.c: Likewise.
62251         * lib/getlogin_r.h: Likewise.
62252         * lib/glob.c: Likewise.
62253         * lib/pagealign_alloc.c: Likewise.
62254         * lib/unistd_.h: Remove; no longer needed.
62255
62256 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62257
62258         * MODULES.html.sh (Support for systems lacking POSIX:2001):
62259         Add unistd.
62260         * modules/c-stack (Depends-on): Add unistd.
62261         * modules/getlogin_r: Likewise.
62262         * modules/glob: Likewise.
62263         * modules/pagealign_alloc: Likewise.
62264         * modules/unistd (Files): Remove lib/unistd_.h.
62265         (EXTRA_DIST): Remove.
62266         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
62267         need unistd_.h.
62268         (MOSTLYCLEANFILES): Remove unistd.h-t.
62269
62270 2006-03-03  Simon Josefsson  <jas@extundo.com>
62271
62272         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
62273
62274 2006-03-03  Simon Josefsson  <jas@extundo.com>
62275
62276         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
62277         libidn and bison.
62278
62279 2006-03-03  Simon Josefsson  <jas@extundo.com>
62280
62281         * build-aux/maint.mk: Add indent target.
62282
62283 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
62284
62285         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
62286         our replacement poll.h in any case, to avoid a differing
62287         declaration from a system header.  Seen on AIX.
62288
62289 2006-03-01  Simon Josefsson  <jas@extundo.com>
62290
62291         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
62292         <kasal@ucw.cz>.
62293
62294 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62295
62296         * modules/gettime (Depends-on): Add extensions module.
62297         * modules/nanosleep (Depends-on): Likewise.
62298         * modules/settime (Depends-on): Likewise.
62299
62300 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62301
62302         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
62303         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
62304         pedantically.
62305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62306         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
62307
62308         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
62309         not "==".  Reported by Ralf Wildenhues.
62310
62311 2006-03-01  Karl Berry  <karl@gnu.org>
62312
62313         * doc/Copyright/request-*: new files, synced from gnuorg.
62314
62315 2006-03-01  Karl Berry  <karl@gnu.org>
62316
62317         * config/srclist.txt (Copyright/*): new entries.
62318
62319 2006-02-28  Simon Josefsson  <jas@extundo.com>
62320
62321         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
62322
62323 2006-02-27  Simon Josefsson  <jas@extundo.com>
62324
62325         * lib/base64.h: Indent #define's.  From Jim Meyering
62326         <jim@meyering.net>.
62327
62328 2006-02-27  Jim Meyering  <jim@meyering.net>
62329
62330         Revert the change of 2006-02-24, so these files can continue
62331         to be sync'd from gettext.
62332         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
62333         of `config.h'.
62334
62335 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62336
62337         * modules/intprops: New file.
62338         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62339         Add intprops.
62340         * modules/getloadavg (Files): Remove lib/intprops.h.
62341         (Depends-on): Add intprops.
62342         * modules/human: Likewise.
62343         * modules/inttostr: Likewise.
62344         * modules/openat: Likewise.
62345         * modules/sig2str: Likewise.
62346         * modules/userspec: Likewise.
62347         * modules/utimecmp: Likewise.
62348         * modules/xnanosleep: Likewise.
62349         * modules/xstrtol: Likewise.
62350
62351 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
62352
62353         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
62354         * modules/lock-tests (TESTS): Use $(EXEEXT).
62355         * modules/tls-tests: Likewise.
62356         * modules/argp-tests: Likewise.
62357         (check_PROGRAMS): New var, replacing...
62358         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
62359
62360 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62361
62362         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
62363         `config.h'.
62364
62365 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62366
62367         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
62368
62369 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62370
62371         Sync from coreutils.
62372         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
62373         gl_CHDIR_SAFER.
62374
62375 2006-02-22  Jim Meyering  <jim@meyering.net>
62376
62377         Sync from coreutils.
62378         * m4/chdir-safer.m4: New file.
62379
62380 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62381
62382         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
62383         AT_FDCWD exceeds INT_MAX.
62384         * lib/openat.h (AT_FDCWD): Likewise.
62385
62386 2006-02-17  Eric Blake  <address@hidden>
62387
62388         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
62389
62390 2006-02-16  Simon Josefsson  <jas@extundo.com>
62391
62392         * modules/getaddrinfo (Depends-on): Add sys_socket.
62393
62394 2006-02-15  Simon Josefsson  <jas@extundo.com>
62395
62396         * build-aux/maint.mk: Add dsyntax-check rule.
62397
62398 2006-02-15  Eric Blake  <ebb9@byu.net>
62399
62400         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
62401         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
62402         'present but cannot compile' warnings on cygwin.
62403         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
62404         use ws2tcpip.h if sys/socket.h works.
62405         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
62406         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
62407
62408 2006-02-14  Simon Josefsson  <jas@extundo.com>
62409
62410         * modules/maintainer-makefile (Files): Rename.
62411
62412         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
62413         and (the local) Makefile.cfg to maint-cfg.mk.
62414
62415         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
62416         to the latter.
62417
62418         * modules/maintainer-makefile: New module.
62419
62420         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
62421         severaly stripped to make it possible to build it up from scratch
62422         with reliable tests.
62423
62424         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
62425         fixes to permit overriding the default actions when configure and
62426         makefile are not available.
62427
62428 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62429
62430         Sync from coreutils.
62431         * modules/lstat (Depends-on): Don't depend on xalloc.
62432         (License): Change from GPL to LGPL, since this is now simply a
62433         replacement for a libc function.
62434
62435 2006-02-14  Jim Meyering  <jim@meyering.net>
62436
62437         Sync from coreutils.
62438
62439         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
62440         failure on deficient systems, and simplify gnulib lgpl dependencies.
62441         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
62442         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
62443
62444         * lib/xalloc-die.c: Remove unused definition of N_.
62445
62446 2006-02-14  Jim Meyering  <jim@meyering.net>
62447
62448         Sync from coreutils.
62449         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
62450         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
62451         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
62452         double-quote uses of that variable, to accommodate the rare case in
62453         which getmntent is available in none of the libraries checked.  This
62454         happens at least on FreeBSD 5.0.
62455
62456 2006-02-13  Simon Josefsson  <jas@extundo.com>
62457
62458         * gnulib-tool (Usage): Fix --import, from
62459         karl@freefriends.org (Karl Berry).
62460
62461 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62462
62463         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
62464
62465 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
62466
62467         * lib/argp-namefrob.h: Restore changes accidentally lost during the
62468         "autoupdate" on 2005-12-12.
62469
62470 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62471
62472         * modules/closeout (Depends-on): Remove atexit.
62473
62474 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62475
62476         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
62477         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
62478
62479 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62480
62481         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
62482         __EXTENSIONS__ if this causes compilation to fail.  Problem
62483         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
62484         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
62485
62486 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
62487
62488         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
62489         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
62490         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
62491         All uses changed.
62492
62493 2006-01-26  Simon Josefsson  <jas@extundo.com>
62494
62495         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
62496         prototype is visible on mingw32.
62497
62498         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
62499         for mingw32.
62500
62501         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
62502         mingw32).
62503
62504 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62505
62506         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
62507         attempt to open for write; this always fails, at least on POSIX
62508         hosts.  This reinstates the 2006-01-09 change, which was
62509         inadvertently removed.
62510
62511 2006-01-26  Bruno Haible  <bruno@clisp.org>
62512
62513         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
62514         Reported by Paul Eggert.
62515
62516 2006-01-26  Bruno Haible  <bruno@clisp.org>
62517             Paul Eggert  <eggert@cs.ucla.edu>
62518
62519         * lib/stdbool_.h (_Bool)
62520         [(! (defined __cplusplus || defined __BEOS__)
62521           && !defined __GNUC__
62522           && !(defined __HP_cc || defined __xlc__
62523                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
62524                || defined __sgi))]:
62525         #define to signed char in these cases too; this simplifies
62526         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
62527         etc., separately) and makes it more conservative.
62528
62529 2006-01-25  Simon Josefsson  <jas@extundo.com>
62530
62531         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
62532         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
62533         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
62534
62535 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62536
62537         * lib/argp-namefrob.h: Bugfix. Remove stray #
62538
62539 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62540
62541         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
62542         so that we test the test.
62543         Check for yet another HP-UX cc bug involving *bool |= bool.
62544
62545 2006-01-25  Karl Berry  <karl@gnu.org>
62546
62547         * config/srclist.txt (vasnprintf.c): sync lost.
62548
62549 2006-01-25  Jim Meyering  <jim@meyering.net>
62550
62551         Sync from the stable (b5) branch of coreutils:
62552
62553         * lib/fts.c (fts_children): Don't let close() clobber errno from
62554         failed fchdir().
62555
62556         * lib/fts.c (fts_stat): When following a symlink-to-directory,
62557         don't necessarily interpret stat-fails+lstat-succeeds as indicating
62558         a dangling symlink.  That can also happen at least for ELOOP.
62559         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
62560         FYI, this bug predates the inclusion of fts.c in coreutils.
62561
62562         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
62563         in their own block, so pre-c99 compilers don't object.
62564
62565         Avoid the double-free (first in fts_read, second in fts_close) that
62566         would occur when an `active' directory is made inaccessible (e.g.,
62567         via chmod a-x) during a traversal.
62568         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62569         before returning.  Reproduce this failure by
62570         mkdir -p a/b; cd a; chmod a-x . b
62571         Reported by Stavros Passas.
62572
62573 2006-01-25  Jim Meyering  <jim@meyering.net>
62574
62575         * lib/fileblocks.c: Remove more useless parentheses.
62576         * lib/readutmp.h: Likewise.
62577
62578 2006-01-25  Bruno Haible  <bruno@clisp.org>
62579
62580         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
62581         warnings.
62582         Reported by Paul Eggert.
62583
62584 2006-01-25  Bruno Haible  <bruno@clisp.org>
62585
62586         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
62587         rid of a trap command. For Solaris sh.
62588         Reported by Mark D. Baushke <mdb@gnu.org>.
62589
62590 2006-01-24  Simon Josefsson  <jas@extundo.com>
62591
62592         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
62593         Bruno.
62594
62595 2006-01-24  Karl Berry  <karl@gnu.org>
62596
62597         * config/srclist.txt (argp-namefrob.h): sync lost.
62598
62599 2006-01-24  Jim Meyering  <jim@meyering.net>
62600
62601         * modules/openat (Files): Add lib/intprops.h.
62602         From Mark D. Baushke.
62603
62604 2006-01-24  Jim Meyering  <jim@meyering.net>
62605
62606         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
62607         Reported by Mark D. Baushke.
62608
62609 2006-01-24  Jim Meyering  <jim@meyering.net>
62610
62611         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
62612
62613 2006-01-24  Bruno Haible  <bruno@clisp.org>
62614
62615         * modules/strnlen (Maintainer): Change from glibc to all.
62616
62617 2006-01-24  Bruno Haible  <bruno@clisp.org>
62618
62619         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
62620         Patch by Paul Eggert.
62621
62622 2006-01-24  Bruno Haible  <bruno@clisp.org>
62623
62624         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
62625         already has it.
62626         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
62627         2005-11-26.
62628
62629         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
62630         'signed char' to avoid problems with the built-in _Bool type.
62631         Reported by Paul Eggert on 2005-11-26.
62632
62633 2006-01-24  Bruno Haible  <bruno@clisp.org>
62634
62635         * gnulib-tool (func_import): Avoid constructing complicated sed
62636         expressions inside backquote.
62637         Report and solution by Mark D. Baushke <mdb@gnu.org>.
62638
62639 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
62640
62641         These changes imported from libc.
62642         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
62643         test and two separate function calls.
62644         * lib/strndup.c (__strndup): Add libc_hidden_def.
62645
62646 2006-01-23  Simon Josefsson  <jas@extundo.com>
62647
62648         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
62649         Remove the test_*_SOURCES variable: automake infers it by default.
62650         * modules/tls-tests: Likewise.
62651
62652 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62653
62654         Work around porting bugs reported by Dieter in
62655         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
62656         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
62657         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
62658         Include "getopt.h" first, to check interface.
62659         (getenv): Declare only if defined HAVE_DECL_GETENV &&
62660         !HAVE_DECL_GETENV.
62661         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
62662         (__strndup): Revert to K&R-style function dfns, the glibc style.
62663         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
62664         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
62665         Include strnlen.h first, to get prototype properly.
62666         (strnlen): Renamed from __strnlen.
62667         Remove weak alias.
62668
62669 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62670
62671         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
62672
62673 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62674
62675         * config/srclist.txt: Adjust to reflect glibc reorganization.
62676         This affects only comments.
62677
62678 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62679
62680          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
62681          Reported by Bruce Korb <bkorb@gnu.org>.
62682
62683 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62684
62685         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
62686         to pacify gcc -Wswitch-default.
62687
62688 2006-01-22  Bruno Haible  <bruno@clisp.org>
62689
62690         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
62691         temporary buffer for sprintf, take into account the precision also
62692         for 'd', 'i', 'u', 'o', 'x', 'X'.
62693
62694 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62695
62696         * modules/argp-tests: New module
62697         * tests/test-argp.c: New file
62698         * tests/test-argp-2.sh: New file
62699
62700 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62701
62702         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
62703         (__argp_base_name): Removed
62704         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
62705         typo.
62706         (__argp_base_name): Provide macro definition or extern declaration
62707         depending on the configuration
62708
62709 2006-01-20  Simon Josefsson  <jas@extundo.com>
62710
62711         * modules/inet_ntop (Depends-on): Depend on sys_socket.
62712
62713 2006-01-20  Simon Josefsson  <jas@extundo.com>
62714
62715         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
62716
62717 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62718
62719         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
62720         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
62721         Suggested by Bruno Haible.
62722
62723 2006-01-20  Karl Berry  <karl@gnu.org>
62724
62725         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
62726         until changes propagate, I guess.
62727
62728 2006-01-19  Simon Josefsson  <jas@extundo.com>
62729
62730         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
62731
62732 2006-01-19  Simon Josefsson  <jas@extundo.com>
62733
62734         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
62735
62736 2006-01-19  Simon Josefsson  <jas@extundo.com>
62737
62738         * gnulib-tool: Set check_PROGRAMS.
62739
62740         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62741         modules/des-tests, modules/gc-arcfour-tests,
62742         modules/gc-arctwo-tests, modules/gc-des-tests,
62743         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62744         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62745         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62746         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62747         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62748         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
62749         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
62750         test_*_SOURCES.
62751
62752 2006-01-18  Simon Josefsson  <jas@extundo.com>
62753
62754         * modules/socklen (Depends-on): Depend on sys_socket.
62755
62756 2006-01-18  Simon Josefsson  <jas@extundo.com>
62757
62758         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62759         modules/des-tests, modules/gc-arcfour-tests,
62760         modules/gc-arctwo-tests, modules/gc-des-tests,
62761         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62762         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62763         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62764         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62765         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62766         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
62767         $(EXEEXT) to automake TESTS variable, for mingw32.
62768
62769 2006-01-17  Simon Josefsson  <jas@extundo.com>
62770
62771         * modules/socklen (Include): Need sys/socket.h.
62772
62773 2006-01-17  Bruno Haible  <bruno@clisp.org>
62774
62775         * modules/ssize_t (Include): Add <sys/types.h>.
62776
62777 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
62778
62779         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
62780         it's not portable and it doesn't work with cross-compiles.
62781         Problem reported by Bruno Haible.  Fix missing-$ typo in
62782         'test "gl_cv_ignore_unused_libraries" ...' that prevented
62783         -zignore from being used with Sun's C compiler.
62784
62785 2006-01-12  Simon Josefsson  <jas@extundo.com>
62786
62787         * lib/base64.c: Fix warning, reported by Bruno Haible
62788         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
62789
62790 2006-01-12  Bruno Haible  <bruno@clisp.org>
62791
62792         * modules/ldd: New file.
62793         * build-aux/ldd.sh.in: New file.
62794         * MODULES.html.sh (Support for building libraries and executables): Add
62795         ldd.
62796
62797 2006-01-12  Bruno Haible  <bruno@clisp.org>
62798
62799         * m4/ldd.m4: New file.
62800
62801 2006-01-12  Bruno Haible  <bruno@clisp.org>
62802
62803         * gnulib-tool (func_import, func_create_testdir): Don't go into an
62804         endless loop while replacing $auxdir with build-aux.
62805
62806 2006-01-11  Simon Josefsson  <jas@extundo.com>
62807
62808         * lib/stdint_.h (SIZE_MAX): Add missing (.
62809
62810 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
62811
62812         Sync from coreutils.
62813         * lib/md5.c: Fix commentary typos.
62814         (alignof, UNALIGNED_P): No need for a GCC-specific version.
62815         * lib/md5.h (__attribute__): Remove; unused.
62816         * lib/sha1.c: Fix commentary to match md5 better.
62817         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
62818         so that we don't need to worry about alignment.  All uses changed.
62819         This merges the 2005-10-28 md5 change into sha1.
62820
62821 2006-01-11  Jim Meyering  <jim@meyering.net>
62822
62823         Sync from coreutils.
62824         * lib/md5.c (OP): Fix spacing.
62825
62826 2006-01-11  Bruno Haible  <bruno@clisp.org>
62827
62828         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62829         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
62830         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
62831
62832 2006-01-11  Bruno Haible  <bruno@clisp.org>
62833
62834         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62835         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
62836         the "early" section as well.
62837
62838 2006-01-11  Bruno Haible  <bruno@clisp.org>
62839
62840         Avoid "ar: no archive members specified" error on MacOS X.
62841         * gnulib-tool (func_modules_add_dummy): New function.
62842         (func_import, func_create_testdir): Invoke it.
62843
62844 2006-01-11  Bruno Haible  <bruno@clisp.org>
62845
62846         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
62847         with $auxdir in AC_CONFIG_FILES statements.
62848
62849 2006-01-11  Bruno Haible  <bruno@clisp.org>
62850
62851         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62852         Initialize also noinst_HEADERS to empty.
62853
62854 2006-01-11  Bruno Haible  <bruno@clisp.org>
62855
62856         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
62857         variables.
62858         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
62859         autoreconf.
62860
62861 2006-01-11  Bruno Haible  <bruno@clisp.org>
62862
62863         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
62864         overridable by the user.
62865         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62866
62867 2006-01-10  Simon Josefsson  <jas@extundo.com>
62868
62869         * modules/sys_socket: New file.
62870
62871 2006-01-10  Simon Josefsson  <jas@extundo.com>
62872
62873         * m4/sys_socket_h.m4: New file.
62874
62875 2006-01-10  Simon Josefsson  <jas@extundo.com>
62876
62877         * lib/socket_.h: New file.
62878
62879 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62880
62881         * modules/readutmp (Maintainer): Add myself.
62882
62883 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62884
62885         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
62886         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
62887         People who are still concerned with buggy memcmp implementations
62888         can invoke gl_FUNC_MEMCMP themselves.
62889
62890 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62891
62892         * lib/regex_internal.h (BITSET_WORD_BITS):
62893         Work around a bug in 64-bit PGC (before version 6.1-2), where the
62894         preprocessor mishandles large unsigned values as if they were signed.
62895         Problem reported by Claudio Fontana in
62896         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
62897
62898 2006-01-10  Jim Meyering  <jim@meyering.net>
62899
62900         Avoid the double-free (first in fts_read, second in fts_close) that
62901         would occur when an `active' directory is made inaccessible (e.g.,
62902         via chmod a-x) during a traversal.
62903         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62904         before returning.  Reproduce this failure by
62905         mkdir -p a/b; cd a; chmod a-x . b
62906         Reported by Stavros Passas.
62907
62908         Sync from coreutils.
62909         * lib/sha1.c: Tweak grammar in a comment.
62910
62911 2006-01-10  Jim Meyering  <jim@meyering.net>
62912
62913         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
62914         Patch by Joerg Sonnenberger.
62915
62916 2006-01-10  Bruno Haible  <bruno@clisp.org>
62917
62918         * modules/readutmp: Depend on module free.
62919         * modules/strtok_r: Depend on module restrict.
62920
62921 2006-01-10  Bruno Haible  <bruno@clisp.org>
62922
62923         * modules/gettext (configure.ac): Add an invocation of
62924         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
62925
62926 2006-01-10  Bruno Haible  <bruno@clisp.org>
62927
62928         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
62929         Reported by Werner Lemberg <wl@gnu.org>.
62930
62931 2006-01-10  Bruno Haible  <bruno@clisp.org>
62932
62933         * lib/localcharset.c: Update from GNU gettext.
62934
62935 2006-01-10  Bruno Haible  <bruno@clisp.org>
62936
62937         * lib/argp.h (__const): Remove macro. Use const instead.
62938         * lib/argp-fmtstream.h (__const): Likewise.
62939         * lib/glob_.h (__const): Remove macro.
62940         * lib/glob-libc.h: Use const instead of __const.
62941
62942 2006-01-10  Bruno Haible  <bruno@clisp.org>
62943
62944         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
62945         variable.
62946         Needed to avoid an automake error regarding the 'gettext' module.
62947
62948 2006-01-09  Simon Josefsson  <jas@extundo.com>
62949
62950         * modules/inet_ntop (Depends-on): Add restrict.
62951
62952 2006-01-09  Simon Josefsson  <jas@extundo.com>
62953
62954         * modules/gc-rijndael-tests (License): Put under LGPL.
62955
62956         * modules/gc-des-tests (License): Likewise.
62957
62958         * modules/gc-arcfour-tests (License): Likewise.
62959
62960         * modules/gc-arctwo-tests (License): Likewise.
62961
62962         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
62963
62964         * modules/gc-hmac-sha1-tests (Files): Likewise.
62965
62966         * modules/gc-hmac-md5-tests (License): Likewise.
62967
62968         * modules/gc-sha1-tests (License): Likewise.
62969
62970         * modules/gc-md5-tests (License): Likewise.
62971
62972         * modules/gc-md4-tests (License): Likewise.
62973
62974         * modules/gc-md2-tests (License): Likewise.
62975
62976         * modules/gc-tests (License): Likewise.
62977
62978         * modules/des-tests (License): Likewise.
62979
62980         * modules/md4-tests (License): Likewise.
62981
62982         * modules/md2-tests (License): Likewise.
62983
62984 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62985
62986         Sync from coreutils:
62987
62988         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
62989         * modules/lib-ignore: New file.
62990         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
62991         chdir-safer.m4, lchmod.m4.
62992         * modules/openat: Add mkdirat.c, openat-priv.h.
62993
62994 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62995
62996         Sync from coreutils.
62997         * m4/lib-ignore.m4: New file.
62998         * m4/lchmod.m4: New file.
62999
63000 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63001
63002         Sync from coreutils.
63003         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
63004         for write access: POSIX says that must fail.
63005         * lib/fts.c (diropen): Likewise.
63006         * lib/save-cwd.c (save_cwd): Likewise.
63007         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
63008         well, for minor improvements on hosts that lack O_DIRECTORY.
63009         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
63010         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
63011         Fall back on chown if open failed with EACCES.
63012
63013         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
63014         Report an error at compile-time if only a 1-second nominal clock
63015         resolution is found.
63016
63017         * lib/lchmod.h: New file.
63018         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
63019         (make_dir_parents): Use lchown rather than chown, and
63020         lchmod rather than chmod.
63021
63022         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
63023         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
63024         "proc" reported by n0dalus.
63025
63026         * lib/mountlist.c: Include <limits.h>.
63027         (dev_from_mount_options)
63028         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
63029         New function.  It no longer assumes "dev=" has the System V meaning
63030         on Linux (since it doesn't).  It also parses "dev=" more carefully.
63031         (read_file_system_list)
63032         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
63033         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
63034         dev= in that case.
63035
63036         * lib/posixtm.h (PDS_PRE_2000): New macro.
63037         * lib/posixtm.c (year): Arg is now syntax_bits rather than
63038         allow_century.  All usages changed.  Reject dates outside the range
63039         1969-1999 if PDS_PRE_2000 is used.
63040
63041 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63042
63043         Sync from coreutils.
63044         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
63045         (Time of day items): Mention the possibility of leap seconds.
63046         Problem reported by Dr. David Alan Gilbert.
63047
63048 2006-01-09  Jim Meyering  <jim@meyering.net>
63049
63050         Sync from coreutils.
63051
63052         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
63053
63054         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
63055
63056         * lib/modechange.c (mode_compile): Reject an invalid mode string
63057         that starts with an octal digit.  From Andreas Gruenbacher.
63058
63059         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
63060         and dup to open_safer and dup_safer, respectively.
63061         (openat_permissive): Fix typo in comment.
63062
63063         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
63064         "gettext.h"; either no longer needed or are guaranteed by openat.h.
63065         (_): Remove; no longer needed.
63066         (openat): Renamed from rpl_openat; no need for rpl_openat
63067         since openat.h renames openat for us.
63068         Replace most of the body with a call to openat_permissive,
63069         to avoid duplicate code.
63070         Port to (probably hypothetical) environments were mode_t is
63071         wider than int.
63072         (openat_permissive): Require mode arg, so that we can check
63073         types better.  Put it just after flags.  Change cwd failure
63074         indicator from pointer-to-bool to pointer-to-errno-value.
63075         All callers changed.
63076         Invoke openat_save_fail and/or openat_restore_fail if
63077         cwd_errno is null, so that openat can call us.
63078         (openat_permissive, fdopendir, fstatat, unlinkat):
63079         Simplify errno handling to avoid some duplicate code,
63080         as it's OK to set errno on success.
63081         * lib/openat.h: Revamp code so that function macros depend on
63082         __OPENAT_PREFIX only, not also on AT_FDCWD.
63083         (openat_ro): Remove.  Caller changed to use openat_permissive.
63084         (openat_permissive): Now a macro, if not a function.
63085         (openat_restore_fail, openat_save_fail): Now always functions,
63086         since mkdirat needs them even if __OPENAT_PREFIX is defined.
63087
63088         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
63089         and openat.c.
63090         * lib/mkdirat.c: Include openat-priv.h.
63091         Remove definitions of macros defined therein.
63092         * lib/openat.c: Likewise.
63093
63094         * lib/mkdirat.c (mkdirat): New file and function.
63095         * lib/openat.h (mkdirat): Declare.
63096
63097         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
63098
63099         * lib/openat.h (openat_permissive): Declare.
63100         (openat_ro): Define.
63101
63102         * lib/openat.c (EXPECTED_ERRNO): New macro.
63103         (openat_permissive): New function -- used in remove.c rewrite.
63104         (all functions): Set errno just before returning, only if there
63105         was an actual failure.
63106         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
63107
63108         Emulate openat-family functions using Linux's procfs, if possible.
63109         Idea and some code based on Ulrich Drepper's glibc changes.
63110
63111         * lib/openat.c: (BUILD_PROC_NAME): New macro.
63112         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
63113         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
63114         before falling back on save_cwd and restore_cwd.
63115         (fdopendir, fstatat, unlinkat): Likewise.
63116
63117         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
63118         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
63119
63120         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
63121         as second argument to va_arg.  Otherwise, some versions of gcc
63122         warn that `if this code is reached, the program will abort'.
63123
63124 2006-01-09  Jim Meyering  <jim@meyering.net>
63125
63126         Sync from coreutils.
63127         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
63128         Require openat-priv.h.
63129
63130 2006-01-09  Bruno Haible  <bruno@clisp.org>
63131
63132         * modules/strnlen (Include): Use strnlen.h.
63133
63134 2006-01-09  Bruno Haible  <bruno@clisp.org>
63135
63136         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
63137
63138 2006-01-09  Bruno Haible  <bruno@clisp.org>
63139
63140         * lib/sysexit_.h (EX_OK): New macro.
63141         Suggested by Martin Lambers <marlam@marlam.de>.
63142
63143 2006-01-09  Bruno Haible  <bruno@clisp.org>
63144
63145         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
63146         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
63147
63148 2006-01-09  Bruno Haible  <bruno@clisp.org>
63149
63150         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
63151         numbers.
63152
63153 2006-01-09  Bruno Haible  <bruno@clisp.org>
63154
63155         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
63156         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
63157         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
63158         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
63159
63160 2006-01-09  Bruno Haible  <bruno@clisp.org>
63161
63162         * build-aux/javacomp.sh.in: New file, moved from lib/.
63163         * modules/javacomp-script (Files): Update.
63164         (configure.ac): Add AC_CONFIG_FILES invocation.
63165         (EXTRA_DIST): Remove variable.
63166
63167         * build-aux/javaexec.sh.in: New file, moved from lib/.
63168         * modules/javaexec (Files): Update.
63169         (configure.ac): Add AC_CONFIG_FILES invocation.
63170         (EXTRA_DIST): Remove javaexec.sh.in.
63171
63172         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
63173         * modules/csharpcomp-script (Files): Update.
63174         (configure.ac): Add AC_CONFIG_FILES invocation.
63175         (EXTRA_DIST): Remove variable.
63176
63177         * build-aux/csharpexec.sh.in: New file, moved from lib/.
63178         * modules/csharpexec (Files): Update.
63179         (configure.ac): Add AC_CONFIG_FILES invocation.
63180         (EXTRA_DIST): Remove csharpexec.sh.in.
63181
63182 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63183
63184         Sync from coreutils.
63185
63186         Add POSIX ACL support
63187         * lib/acl.h (copy_acl, set_acl): Add declarations.
63188         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
63189         systems other than Linux.
63190         (chmod_or_fchmod): New function: use fchmod when possible,
63191         and chmod otherwise.
63192         (file_has_acl): Add a POSIX ACL implementation, with a
63193         Linux-specific subcase.
63194         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
63195         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
63196         acls are unsupported.
63197         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
63198         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
63199         are unsupported.
63200
63201 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63202
63203         Sync from coreutils.
63204         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
63205
63206 2006-01-07  Bruno Haible  <bruno@clisp.org>
63207
63208         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
63209         gl_EARLY.
63210
63211 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63212
63213         * lib/strftime.c (tzname): Don't declare if it is already #defined.
63214         Problem reported for Mingw by Mark Junker.
63215
63216 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63217
63218         * README: Gnulib normally doesn't generate a tarball.
63219
63220 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
63221
63222         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
63223         long int, not int, for nanosecond counts, so that people who are
63224         used to POSIX struct timespec won't be surprised.  Reported by Jim
63225         Meyering.
63226
63227 2005-12-28  Bruno Haible  <bruno@clisp.org>
63228
63229         * build-aux/config.rpath: Update from GNU gettext.
63230
63231 2005-12-16  Jim Meyering  <jim@meyering.net>
63232
63233         * modules/fprintftime: New module.
63234         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
63235
63236 2005-12-16  Jim Meyering  <jim@meyering.net>
63237
63238         * m4/fprintftime.m4: New file.
63239
63240 2005-12-16  Jim Meyering  <jim@meyering.net>
63241
63242         * lib/fprintftime.c, lib/fprintftime.h: New files.
63243
63244 2005-12-15  Simon Josefsson  <jas@extundo.com>
63245
63246         * modules/socklen (configure.ac): Fix M4 macro name, to align with
63247         new m4/socklen.m4.
63248
63249 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63250
63251         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
63252         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
63253
63254 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63255
63256         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
63257         * lib/argp-help.c (fill_in_uparams): Check if the constructed
63258         struct uparams is valid. Fall back to the default values if it is
63259         not.
63260
63261 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63262
63263         * modules/argp (Files): Add argp-pin.c
63264         (Depends-on): dirname
63265         (lib_SOURCES): Add argp-pin.c
63266
63267 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63268
63269         * m4/argp.m4:  Check if program_invocation_name and
63270         program_invocation_short_name are declared and define appropriate
63271         macros if they are not.
63272
63273 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63274
63275         * lib/argp-help.c (__argp_base_name): New function
63276         (__argp_short_program_name): Rewrite using __argp_base_name
63277         * lib/argp-namefrob.h: Define program_invocation_name and
63278         program_invocation_short_name if requested
63279         (__argp_base_name): Add prototype
63280         * lib/argp-parse.c (argp_def): Use gettext wrappers
63281         (argp_default_parser): Use __argp_base_name
63282         * lib/argp-pin.c: New file. Defines program_invocation_name and
63283         program_invocation_short_name on systems that lack them.
63284
63285 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63286
63287         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
63288         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63289         porting problem reported by Georg Schwarz in
63290         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63291
63292 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63293
63294         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
63295         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63296         porting problem reported by Georg Schwarz in
63297         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63298
63299 2005-12-05  Bruno Haible  <bruno@clisp.org>
63300
63301         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
63302         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
63303         Reported by Mark Junker <mjscod@gmx.de>.
63304
63305 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
63306
63307         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
63308         Use implementation from Albert Chin, with some
63309         comments/corrections by Stepan Kasal and myself.
63310
63311 2005-12-02  Bruno Haible  <bruno@clisp.org>
63312
63313         * gnulib-tool (func_import): Accept GPLed build tool modules when
63314         --lgpl is given.
63315         * modules/csharpcomp-script: New file.
63316         * modules/csharpcomp: Depend on it.
63317         * modules/javacomp-script: New file.
63318         * modules/javacomp: Depend on it.
63319         Suggested by Simon Josefsson.
63320
63321 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63322
63323         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
63324         statement, to work around an HP-UX 10.20 compiler bug reported by
63325         Peter O'Gorman.
63326
63327 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63328
63329         * modules/savedir (Depends-on): Add openat.
63330
63331 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63332
63333         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
63334         (uintmax_t) [defined uintmax_t]: Do not declare.
63335         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
63336         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
63337         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
63338         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
63339         sake of portability to weird hosts that C allows (though we don't
63340         know of any practical examples).
63341
63342         * lib/savedir.h (fdsavedir): New decl.
63343         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
63344         contains most of the former guts of savedir.
63345         (savedir): Use savedirstream.
63346         Include "openat.h".
63347
63348 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63349
63350         * modules/obstack (Files): Add m4/ulonglong.m4.
63351         Problem reported by Davide Angelocola.
63352
63353 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63354
63355         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
63356         coreutils no longer futzes with rounding modes.
63357
63358 2005-11-14  Jim Meyering  <jim@meyering.net>
63359
63360         * lib/mkstemp-safer.c: Include <config.h>, required for possible
63361         replacement of mkstemp.
63362
63363 2005-11-10  Simon Josefsson  <jas@extundo.com>
63364
63365         * lib/readline.c: Remove EOL.
63366
63367 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63368
63369         * modules/gethrxtime (Depends-on): Add gettime.
63370
63371 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63372
63373         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
63374         or gettimeofday; no longer needed.
63375
63376 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63377
63378         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
63379         time business.
63380         (gethrxtime) [! (HAVE_NANOUPTIME
63381         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
63382         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
63383         our own approximation.
63384
63385 2005-11-08  Eric Blake  <ebb9@byu.net>
63386
63387         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63388
63389 2005-11-08  Eric Blake  <ebb9@byu.net>
63390
63391         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63392
63393 2005-11-04  Bruno Haible  <bruno@clisp.org>
63394
63395         * gnulib-tool: Implement --update mode.
63396
63397 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63398
63399         Fix porting problem reported by Theodoros V. Kalamatianos.
63400         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
63401         Don't assume that futimes failing means we must fail.
63402
63403 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63404
63405         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
63406         variables to suggest the intended function of the PATH_MAX check.
63407
63408 2005-10-30  Kean Johnston  <jkj@sco.com>
63409
63410         Trivial changes to support SCO systems.
63411         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
63412         as PATH_MAX.
63413         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
63414         where __ptr is null when no I/O is pending.
63415
63416 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63417
63418         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
63419         leave errno alone.  Problem reported by Dmitry V. Levin.
63420
63421 2005-10-28  Simon Josefsson  <jas@extundo.com>
63422
63423         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
63424         Test more.
63425
63426         * tests/test-gc-md2.c, tests/test-md2.c: New files.
63427
63428         * modules/md2, modules/md2-tests: New files.
63429
63430 2005-10-28  Simon Josefsson  <jas@extundo.com>
63431
63432         * m4/inet_ntop.m4: More tests.
63433
63434         * m4/gc-md2.m4, md2.m4: New file.
63435
63436 2005-10-28  Simon Josefsson  <jas@extundo.com>
63437
63438         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
63439         "restrict" keywords, as per POSIX.  Protect the function
63440         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
63441         Don't use K&R prototypes.  Check the sprintf return values.
63442         Re-define EAFNOSUPPORT if not present.  Indent.
63443
63444         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
63445         suggested by Bruno Haible <bruno@clisp.org>.
63446
63447         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
63448
63449         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
63450
63451         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
63452         libgcrypt).
63453
63454         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
63455
63456         * lib/md2.h, lib/md2.c: New files.
63457
63458 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
63459
63460         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
63461         errno alone.  Problem reported by Frederic Jolliton.
63462
63463 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63464
63465         * modules/verify (License): Change from GPL to LGPL.  This is a
63466         tiny module and there are apparently near-equivalents that are
63467         under the BSD license.
63468
63469 2005-10-24  Simon Josefsson  <jas@extundo.com>
63470
63471         * modules/sha1: Relicense to LGPL.
63472
63473 2005-10-24  Simon Josefsson  <jas@extundo.com>
63474
63475         * lib/md4.h: Shrink buffer size, now that we changed the type.
63476
63477 2005-10-23  Simon Josefsson  <jas@extundo.com>
63478
63479         * gnulib-tool (func_import): Fix --tests-base.
63480
63481 2005-10-22  Simon Josefsson  <jas@extundo.com>
63482
63483         * modules/arcfour (Depends-on): Need stdint.
63484
63485 2005-10-22  Simon Josefsson  <jas@extundo.com>
63486
63487         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
63488         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
63489
63490 2005-10-22  Simon Josefsson  <jas@extundo.com>
63491
63492         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
63493         suggested by Bruno Haible <bruno@clisp.org>.
63494
63495 2005-10-22  Simon Josefsson  <jas@extundo.com>
63496
63497         * lib/crc.h: Include stddef.h, for size_t.
63498
63499 2005-10-22  Simon Josefsson  <jas@extundo.com>
63500
63501         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
63502         arcfour_context struct (simplify test vector testing in GNU
63503         Shishi).
63504
63505 2005-10-21  Simon Josefsson  <jas@extundo.com>
63506
63507         * modules/des, modules/des-tests: New files.
63508
63509         * modules/gc-des, modules/gc-des-tests: New files.
63510
63511         * tests/test-des.c, tests/test-gc-des.c: New file.
63512
63513 2005-10-21  Simon Josefsson  <jas@extundo.com>
63514
63515         * modules/arctwo, modules/arctwo-tests: New files.
63516
63517         * tests/test-arctwo.c: New file.
63518
63519         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
63520
63521         * tests/test-gc-arctwo.c: New file.
63522
63523 2005-10-21  Simon Josefsson  <jas@extundo.com>
63524
63525         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
63526         Bruno Haible <bruno@clisp.org>.
63527
63528         * m4/gc-des.m4: New file.
63529
63530 2005-10-21  Simon Josefsson  <jas@extundo.com>
63531
63532         * m4/arctwo.m4: New file.
63533
63534         * m4/gc-arctwo.m4: New file.
63535
63536 2005-10-21  Simon Josefsson  <jas@extundo.com>
63537
63538         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
63539         block.
63540
63541 2005-10-21  Simon Josefsson  <jas@extundo.com>
63542
63543         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
63544         <bruno@clisp.org>.
63545
63546         * lib/hmac-sha1.c (hmac_sha1): Likewise.
63547
63548         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
63549         Bruno Haible <bruno@clisp.org>.
63550
63551         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
63552         <bruno@clisp.org>.
63553
63554 2005-10-21  Simon Josefsson  <jas@extundo.com>
63555
63556         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
63557
63558 2005-10-21  Simon Josefsson  <jas@extundo.com>
63559
63560         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
63561
63562 2005-10-21  Simon Josefsson  <jas@extundo.com>
63563
63564         * lib/des.h, lib/des.c: New files.
63565
63566         * lib/gc-gnulib.c: Support DES.c
63567
63568 2005-10-21  Simon Josefsson  <jas@extundo.com>
63569
63570         * lib/arctwo.h, lib/arctwo.c: New files.
63571
63572         * lib/gc-gnulib.c: Support ARCTWO.
63573
63574 2005-10-21  Simon Josefsson  <jas@extundo.com>
63575
63576         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
63577         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63578
63579 2005-10-21  Simon Josefsson  <jas@extundo.com>
63580
63581         * gnulib-tool (func_import, func_create_testdir): Define automake
63582         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
63583         Makefile.am snippet),
63584         suggested by Bruno Haible <bruno@clisp.org>.
63585
63586         * modules/gc (Makefile.am): Use it.
63587
63588 2005-10-21  Bruno Haible  <bruno@clisp.org>
63589
63590         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
63591         patch.
63592
63593 2005-10-19  Simon Josefsson  <jas@extundo.com>
63594
63595         * tests/test-gc-rijndael.c: New file.
63596
63597         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
63598
63599 2005-10-19  Simon Josefsson  <jas@extundo.com>
63600
63601         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
63602         interface too.
63603
63604 2005-10-19  Simon Josefsson  <jas@extundo.com>
63605
63606         * tests/test-gc-arcfour.c: New file.
63607
63608         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
63609
63610 2005-10-19  Simon Josefsson  <jas@extundo.com>
63611
63612         * modules/gc-md4, modules/gc-md4-tests: New file.
63613
63614         * tests/test-gc-md4.c: New file.
63615
63616 2005-10-19  Simon Josefsson  <jas@extundo.com>
63617
63618         * m4/gc-md4.m4: New file.
63619
63620 2005-10-19  Simon Josefsson  <jas@extundo.com>
63621
63622         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
63623         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
63624         <kasal@ucw.cz>.
63625
63626 2005-10-19  Simon Josefsson  <jas@extundo.com>
63627
63628         * m4/gc-arcfour.m4: New file.
63629
63630         * m4/gc-rijndael.m4: New file.
63631
63632 2005-10-19  Simon Josefsson  <jas@extundo.com>
63633
63634         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
63635
63636 2005-10-19  Simon Josefsson  <jas@extundo.com>
63637
63638         * lib/gc-gnulib.c: Support ARCFOUR.
63639
63640 2005-10-19  Simon Josefsson  <jas@extundo.com>
63641
63642         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
63643         support.
63644
63645         * lib/gc.h: Add ECB enum type.
63646
63647         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
63648
63649 2005-10-18  Simon Josefsson  <jas@extundo.com>
63650
63651         * tests/test-md5.c: New file.
63652
63653         * modules/md5-tests: New file.
63654
63655 2005-10-18  Simon Josefsson  <jas@extundo.com>
63656
63657         * tests/test-md4.c: New file.
63658
63659         * modules/md4, modules/md4-tests: New files.
63660
63661 2005-10-18  Simon Josefsson  <jas@extundo.com>
63662
63663         * m4/md4.m4: New file.
63664
63665 2005-10-18  Simon Josefsson  <jas@extundo.com>
63666
63667         * lib/md4.h, lib/md4.c: New files, based on md5.?.
63668
63669 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
63670
63671         * gnulib-tool (func_create_testdir): Omit the second check whether
63672         BUILT_SOURCES in nonempty.
63673
63674 2005-10-17  Simon Josefsson  <jas@extundo.com>
63675
63676         * tests/test-rijndael.c: New file.
63677
63678 2005-10-17  Simon Josefsson  <jas@extundo.com>
63679
63680         * modules/sha1: Depend on stdint instead of md5.
63681
63682         * modules/md5: Depend on stdint, remove uint32_t.
63683
63684 2005-10-17  Simon Josefsson  <jas@extundo.com>
63685
63686         * modules/gc-sha1-tests: New file.
63687
63688         * tests/test-gc-sha1.c: New file.
63689
63690 2005-10-17  Simon Josefsson  <jas@extundo.com>
63691
63692         * m4/md5.m4: Remove call to uint32_t.m4.
63693
63694 2005-10-17  Simon Josefsson  <jas@extundo.com>
63695
63696         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
63697
63698         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
63699         md5.h.
63700
63701         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
63702
63703         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
63704
63705 2005-10-17  Simon Josefsson  <jas@extundo.com>
63706
63707         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
63708
63709 2005-10-17  Simon Josefsson  <jas@extundo.com>
63710
63711         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
63712
63713 2005-10-17  Simon Josefsson  <jas@extundo.com>
63714
63715         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
63716
63717         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
63718
63719 2005-10-17  Bruno Haible  <bruno@clisp.org>
63720
63721         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
63722         that it can also be used in a test.
63723
63724 2005-10-16  Bruno Haible  <bruno@clisp.org>
63725
63726         * gnulib-tool (func_emit_tests_Makefile_am): Also define
63727         TESTS_ENVIRONMENT, so that individual tests can augment it.
63728
63729         * gnulib-tool (func_create_testdir): Use an intermediate target for
63730         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
63731         macros, like $(ALLOCA_H), which cannot be passed through the command
63732         line.
63733
63734 2005-10-15  Simon Josefsson  <jas@extundo.com>
63735
63736         * modules/rijndael-tests: New file.
63737
63738         * modules/rijndael: New file.
63739
63740 2005-10-15  Simon Josefsson  <jas@extundo.com>
63741
63742         * m4/rijndael.m4: New file.
63743
63744 2005-10-15  Simon Josefsson  <jas@extundo.com>
63745
63746         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
63747
63748         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
63749
63750 2005-10-14  Simon Josefsson  <jas@extundo.com>
63751
63752         * tests/test-arcfour.c: New file.
63753
63754         * modules/arcfour, modules/arcfour-tests: New files.
63755
63756 2005-10-14  Simon Josefsson  <jas@extundo.com>
63757
63758         * m4/arcfour.m4: New file.
63759
63760 2005-10-14  Simon Josefsson  <jas@extundo.com>
63761
63762         * lib/arcfour.h, lib/arcfour.c: New files.
63763
63764 2005-10-14  Roland McGrath  <roland@redhat.com>
63765
63766         Import from libc.  [BZ #1331]
63767         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
63768         macro argument.
63769         Reported by Matej Vela <vela@debian.org>.
63770
63771 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63772
63773         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
63774         include <wchar.h>; no longer needed.
63775
63776 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63777
63778         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
63779
63780 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
63781         and  Ulrich Drepper  <drepper@redhat.com>
63782
63783         Import from libc.
63784         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
63785         instead of inline stream orientation test and two separate
63786         function calls.  Pay no attention to USE_IN_LIBIO.
63787
63788 2005-10-13  Simon Josefsson  <jas@extundo.com>
63789
63790         * modules/gc-hmac-md5-tests: New file.
63791
63792         * tests/test-gc-hmac-sha1.c: New file.
63793
63794         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
63795
63796         * modules/gc-hmac-md5-tests: New file.
63797
63798         * tests/test-gc-md5.c: New file.
63799
63800         * modules/gc-md5-tests: New file.
63801
63802 2005-10-13  Simon Josefsson  <jas@extundo.com>
63803
63804         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
63805         Move memory allocation outside of loop.
63806
63807 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63808
63809         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
63810         intermediate directory is in a read-only file system.  Problem
63811         reported by Eric Blake.
63812
63813 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
63814
63815         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
63816
63817 2005-10-12  Simon Josefsson  <jas@extundo.com>
63818
63819         * tests/test-hmac-sha1.c: New file.
63820
63821         * modules/hmac-sha1-tests: New file.
63822
63823         * modules/hmac-sha1: New file.
63824
63825 2005-10-12  Simon Josefsson  <jas@extundo.com>
63826
63827         * modules/gc-sha1: New file.
63828
63829 2005-10-12  Simon Josefsson  <jas@extundo.com>
63830
63831         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
63832
63833         * tests/test-gc-pbkdf2-sha1.c: New file.
63834
63835 2005-10-12  Simon Josefsson  <jas@extundo.com>
63836
63837         * modules/gc-md5, modules/gc-hmac-md5: New files.
63838
63839         * modules/gc (Files): Remove md5, memxor and hmac files.
63840
63841 2005-10-12  Simon Josefsson  <jas@extundo.com>
63842
63843         * m4/gc-pbkdf2-sha1.m4: New file.
63844
63845         * m4/gc-hmac-sha1.m4: New file.
63846
63847         * m4/gc-sha1: New file.
63848
63849         * m4/hmac-sha1.m4: New file.
63850
63851 2005-10-12  Simon Josefsson  <jas@extundo.com>
63852
63853         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
63854
63855         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
63856
63857 2005-10-12  Simon Josefsson  <jas@extundo.com>
63858
63859         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
63860         suggested by Bruno Haible <bruno@clisp.org>.
63861
63862 2005-10-12  Simon Josefsson  <jas@extundo.com>
63863
63864         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
63865
63866 2005-10-12  Simon Josefsson  <jas@extundo.com>
63867
63868         * lib/gc-pbkdf2-sha1.c: New file.
63869
63870         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
63871
63872 2005-10-12  Simon Josefsson  <jas@extundo.com>
63873
63874         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
63875
63876         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
63877
63878 2005-10-12  Simon Josefsson  <jas@extundo.com>
63879
63880         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
63881         GC_USE_HMAC_MD5, respectively.
63882
63883         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
63884         (gc_md5): Fix typo.
63885
63886         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
63887
63888         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
63889
63890         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
63891
63892 2005-10-12  Bruno Haible  <bruno@clisp.org>
63893
63894         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
63895         Reported by Stepan Kasal <kasal@ucw.cz>.
63896
63897 2005-10-11  Simon Josefsson  <jas@extundo.com>
63898
63899         * tests/test-crc.c: New file.
63900
63901         * modules/crc, modules/crc-tests: New files.
63902
63903 2005-10-11  Simon Josefsson  <jas@extundo.com>
63904
63905         * m4/crc.m4: New file.
63906
63907 2005-10-11  Simon Josefsson  <jas@extundo.com>
63908
63909         * lib/gc.h: Add gc_hash and gc_hash_buffer.
63910
63911         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
63912
63913         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
63914
63915 2005-10-11  Simon Josefsson  <jas@extundo.com>
63916
63917         * lib/crc.h, lib/crc.c: New files.
63918
63919         * lib/gc.h (gc_hash_buffer): Add doc.
63920
63921 2005-10-11  Bruno Haible  <bruno@clisp.org>
63922
63923         * modules/c-strcasestr: New file.
63924         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
63925
63926 2005-10-11  Bruno Haible  <bruno@clisp.org>
63927
63928         * modules/c-strcase: New file.
63929         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
63930
63931 2005-10-11  Bruno Haible  <bruno@clisp.org>
63932
63933         * lib/strcasecmp.c: Include limits.h.
63934         (strcasecmp): Avoid integer overflow on exotic platforms.
63935         * lib/strncasecmp.c: Include limits.h.
63936         (strncasecmp): Avoid integer overflow on exotic platforms.
63937         Reported by Paul Eggert.
63938
63939 2005-10-11  Bruno Haible  <bruno@clisp.org>
63940
63941         * lib/c-strcasestr.h: New file, from GNU gettext.
63942         * lib/c-strcasestr.c: New file, from GNU gettext.
63943
63944 2005-10-11  Bruno Haible  <bruno@clisp.org>
63945
63946         * lib/c-strcase.h: New file, from GNU gettext.
63947         * lib/c-strcasecmp.c: New file, from GNU gettext.
63948         * lib/c-strncasecmp.c: New file, from GNU gettext.
63949
63950 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63951
63952         * modules/mempcpy (License): GPL -> LGPL.
63953         * modules/strchrnul (License): Likewise.
63954         * modules/sysexits (License): Likewise.
63955
63956 2005-10-08  Simon Josefsson  <jas@extundo.com>
63957
63958         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
63959
63960 2005-10-07  Simon Josefsson  <jas@extundo.com>
63961
63962         * m4/memxor.m4: Remove gl_C_RESTRICT call.
63963
63964 2005-10-06  Simon Josefsson  <jas@extundo.com>
63965
63966         * tests/test-hmac-md5.c: New file.
63967
63968         * modules/hmac-md5-tests: New file.
63969
63970         * modules/hmac-md5: New file.
63971
63972 2005-10-06  Simon Josefsson  <jas@extundo.com>
63973
63974         * m4/hmac-md5.m4: New file.
63975
63976         * m4/memxor.m4: Require gl_C_RESTRICT.
63977
63978 2005-10-06  Simon Josefsson  <jas@extundo.com>
63979
63980         * lib/memxor.c (memxor): Avoid casts and warnings.
63981
63982 2005-10-06  Simon Josefsson  <jas@extundo.com>
63983
63984         * lib/hmac-md5.c: New file.
63985
63986         * lib/hmac.h: New file.
63987
63988 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63989
63990         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
63991         promotes to int, not unsigned int, to catch the AIX 5.3
63992         compiler bug.
63993
63994 2005-10-05  Simon Josefsson  <jas@extundo.com>
63995
63996         * modules/memxor: New file.
63997
63998         * modules/iconv (Files): Move config.rpath to havelib, it is used
63999         there.
64000
64001         * modules/havelib (Files): Add config.rpath.
64002
64003 2005-10-05  Simon Josefsson  <jas@extundo.com>
64004
64005         * m4/memxor.m4: New file.
64006
64007 2005-10-05  Simon Josefsson  <jas@extundo.com>
64008
64009         * lib/memxor.c (memxor): Fix compiler error.
64010
64011         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
64012         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
64013
64014         * lib/memxor.h, lib/memxor.c: New files.
64015
64016         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
64017         we assume all systems have it, suggested by Jim Meyering
64018         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
64019         any systems lack sys/socket.h; mingw32 is known to lack it, but we
64020         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
64021         same reasons.
64022
64023 2005-10-05  Simon Josefsson  <jas@extundo.com>
64024
64025         * config/srclist.txt: Add glibc bug 1423 for md5.h.
64026
64027 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64028
64029         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
64030         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
64031         needed, since the source code now assumes these .h files.
64032
64033 2005-10-05  Derek Price  <derek@ximbiot.com>
64034
64035         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
64036
64037 2005-10-05  Bruno Haible  <bruno@clisp.org>
64038
64039         * modules/stdint (License): Change to LGPL.
64040
64041 2005-10-04  Simon Josefsson  <jas@extundo.com>
64042
64043         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
64044         D. Baushke" <mdb@gnu.org>.
64045
64046 2005-10-04  Bruno Haible  <bruno@clisp.org>
64047
64048         * lib/verify.h (verify_true): Provide alternative definition for C++.
64049
64050 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64051
64052         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
64053         (SSIZE_MAX): New macro, if not already defined.
64054         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
64055         than 2 GiB.
64056
64057 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64058
64059         Sync from coreutils.
64060         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
64061         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
64062         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
64063         ULLONG_MAX doesn't work with 2.7.2.1.
64064
64065 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64066
64067         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
64068         From Ben Pfaff.
64069
64070         * modules/exclude (Depends-on): Depend on verify.
64071         * modules/strtoimax (Depends-on): Likewise.
64072         * modules/utimecmp (Depends-on): Likewise.
64073
64074 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64075
64076         * lib/exclude.c: Include verify.h.
64077         (verify): Remove.  All callers changed to use verify.h's version.
64078         * lib/strtoimax.c: Likewise.
64079         * lib/utimecmp.c: Likewis.e
64080
64081         Sync from coreutils.
64082         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
64083         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
64084         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
64085         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
64086         bother returning ENOSYS if settimeofday or stime fails; just let
64087         them return whatever errno they want to return.
64088         * lib/utimens.c: Include unistd.h, for dup2.
64089         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
64090         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
64091
64092 2005-10-02  Jim Meyering  <jim@meyering.net>
64093
64094         Sync from coreutils.
64095         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
64096         from glibc-2.2.5 that fails for read-only files.
64097
64098 2005-10-02  Jim Meyering  <jim@meyering.net>
64099
64100         Sync from coreutils.
64101         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
64102         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
64103         `#if HAVE_CONFIG_H'.
64104         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
64105         Remove AT_FDCWD test.
64106         Do not consume the fd unless successful.
64107         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
64108         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
64109         block, so that we don't even try to compile it if settimeofday is
64110         available.  This works around a compilation failure on OSF1 V5.1,
64111         due to stime requiring a `long int*' while tv_sec is `int'.
64112
64113 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
64114
64115         Sync from coreutils.
64116         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
64117         against `yes', rather than just testing for nonempty.
64118
64119 2005-10-01  Simon Josefsson  <jas@extundo.com>
64120
64121         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
64122         and Darwin.
64123
64124         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
64125         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
64126         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
64127         freeaddrinfo and gai_strerror are declared by the POSIX headers.
64128         Check if struct addrinfo is declared.
64129
64130 2005-10-01  Simon Josefsson  <jas@extundo.com>
64131
64132         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
64133         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
64134         AI_* and EAI_* definitions.  Protect function declarations.
64135
64136 2005-10-01  Jim Meyering  <jim@meyering.net>
64137
64138         Sync from coreutils.
64139
64140         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
64141         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
64142         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
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  Jim Meyering  <jim@meyering.net>
64147
64148         Sync from coreutils.
64149         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64150         in the inet and nsl libraries.  Required on Solaris 5.7.
64151
64152 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
64153
64154         * lib/getdelim.c (getdelim): Remove unused variables.
64155
64156 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64157
64158         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
64159         so that the code works even with ancient cpp.  Portability problem
64160         with GCC 2.7.2.1 reported by Thomas M.Ott.
64161
64162 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64163
64164         * modules/regex (Depends-on): Add strcase.
64165
64166         * modules/gethostname (Licence): Change from GPL to LGPL, since
64167         gethostname.c is a trivial implementation of a standard library
64168         function.
64169         * modules/poll (License): Change from GPL to LGPL, since it's
64170         derived from LGPL code.
64171
64172 2005-09-27  Jim Meyering  <jim@meyering.net>
64173
64174         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
64175         HAVE_CONFIG_H.
64176
64177         * lib/intprops.h (signed_type_or_expr__): Define.
64178         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
64179         for unsigned types.
64180
64181 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64182
64183         * lib/verify.h (verify_expr): Remove, replacing with:
64184         (verify_true): New macro that returns true instead of void.
64185         (verify_type__): Remove.
64186         (verify): Use verify_true rather than verify_type__.
64187
64188 2005-09-26  Bruno Haible  <bruno@clisp.org>
64189
64190         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
64191         is necessary.
64192         (lib_SOURCES): Remove mbchar.c.
64193         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
64194         (Files): Add m4/mbrtowc.m4.
64195         * modules/mbiter: Likewise.
64196         * modules/mbuiter: Likewise.
64197
64198 2005-09-26  Bruno Haible  <bruno@clisp.org>
64199
64200         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
64201         compile mbchar.c if they are not both present.
64202         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
64203         * m4/mbiter.m4 (gl_MBITER): Likewise.
64204         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
64205         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
64206         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
64207
64208 2005-09-25  Jim Meyering  <jim@meyering.net>
64209
64210         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
64211         also uses socklen_t.
64212
64213 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
64214
64215         * lib/utimens.c (ENOSYS): Define if not already defined.
64216         (futimens): Support having a null PATH if the file descriptor
64217         is nonnegative.
64218
64219         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
64220         Remove.
64221         (__attribute): Define to empty unless GCC 3.1 or later.
64222         This works around a core dump on OpenBSD 3.4, which has GCC
64223         2.95.3, which dumps core when given __attribute__(()).  It also
64224         simplifies other tests, since we really don't want to bother with
64225         worrying about which ancient version of GCC supported what.
64226         Original problem reported by Yoann Vandoorselaere, with part of
64227         the fix suggested by Derek Price.
64228
64229 2005-09-24  Jim Meyering  <jim@meyering.net>
64230
64231         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
64232         so we can once again use a positive bitfield width of 1 -- now we
64233         don't have to explain why we were using a bitfield width of 2.
64234
64235 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64236
64237         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
64238         and similarly for the other external symbols.  Problem reported
64239         by James Gallager.
64240
64241         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
64242         bug reported by Jim Meyering.
64243
64244         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
64245         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
64246         not needed, since socklen is a prerequisite module.
64247
64248 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64249
64250         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
64251         Problem reported by Eric Blake.
64252         (getaddrinfo): Initialize se so that it's not garbage.
64253         Redo internal storage allocation so that it doesn't make unportable
64254         assumptions about alignment.
64255         Fix a memory leak.
64256
64257         * lib/utimens.c (futimens): Use futimesat if available.
64258         Prefer it to futimes since it doesn't have the futimes bug.
64259
64260         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
64261         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
64262         Instead, declare a function that returns a pointer to an array,
64263         and use verify_type__ to declare the size of the array.
64264         Problem and germ of a solution reported by Bruno Haible.
64265         (verify_type__): Use 2, not 1, for bitfield size, to avoid
64266         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
64267
64268 2005-09-23  Jim Meyering  <jim@meyering.net>
64269
64270         Sync from coreutils.
64271         Correct build failure (socklen_t not defined) on at least
64272         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
64273         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
64274
64275 2005-09-23  Jim Meyering  <jim@meyering.net>
64276
64277         * modules/getaddrinfo (Depends-on): Add socklen.
64278
64279 2005-09-23  Bruno Haible  <bruno@clisp.org>
64280
64281         * tests/test-verify.c: New file.
64282
64283 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64284
64285         Sync from coreutils.
64286
64287         * modules/argmatch (Depends-on): Add verify.
64288         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
64289         unistd-safer.
64290         * modules/save-cwd (Depends-on): Likewise.
64291
64292         * modules/openat (Files): Add lib/openat-die.c.
64293         (Depends-on): Remove error, exitfail.
64294         Add dirname.
64295
64296         * modules/verify: New file.
64297         * MODULES.html.sh (Diagnostics <assert.h>): New section,
64298         with "verify" module.
64299
64300 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64301
64302         Sync from coreutils.
64303
64304         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
64305         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
64306         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
64307         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
64308         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
64309         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
64310         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
64311         Don't bother checking for string.h, stdlib.h, unistd.h.
64312         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
64313         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
64314         module's job.
64315         * m4/jm-macros.m4 (gl_MACROS): Likewise.
64316         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
64317
64318         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
64319         (gl_GETDATE): Use it.
64320
64321         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
64322
64323 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64324
64325         Sync from coreutils.
64326
64327         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
64328         stat-time.h.
64329         * lib/argmatch.h: Include verify.h
64330         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
64331         (ARGMATCH_ASSERT): Remove; unused.
64332         * lib/canonicalize.c: Assume STDC_HEADERS.
64333         * lib/exclude.c: Include "strcase.h".
64334         * lib/regex_internal.h [!defined _LIBC]: Likewise.
64335         * lib/getusershell.c: Include stdio--.h rather than stdio.h
64336         and stdio-safer.h.
64337         (getusershell): Call fopen, not fopen_safer.
64338         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
64339         Do not include unistd-safer.h.
64340         (save_cwd): Don't call fd_safer; no longer needed
64341         now that we include fcntl--.h.
64342
64343         * lib/getdate.y (relative_time): New type.
64344         (RELATIVE_TIME_0): New constant.
64345         (parser_control): Use relative_time instead of doing it ourselves.
64346         (%union): Add new relative_time rel member.
64347         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
64348         Now typeless.
64349         (relunit, relunit_snumber): Now of type rel.
64350         (zone, rel, relunit, get_date): Adjust to above changes.
64351
64352         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
64353         Do not include unistd-safer.h.
64354         (getloadavg): Don't call fd_safer; no longer needed
64355         now that we include fcntl--.h.
64356
64357         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
64358         (make_dir_parents): Treat ENOSYS like EEXIST.
64359
64360         Improve quality of diagnostics on restore_cwd failure.
64361         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
64362         (make_dir_parents): Last arg is now int * (for errno), not bool *.
64363         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
64364         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
64365         each time through the loop.  Do not diagnose restore_cwd failure;
64366         that is the caller's job (and perhaps the caller does not care).
64367
64368         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
64369         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
64370         If the file already exists but is not a directory, don't bother
64371         to try to make its parents.
64372         Close potential file descriptor leak if we can't chdir("/") (!).
64373         Don't always return true if chdir($PWD) fails; return true only
64374         if the requested action was done successfully (except for the
64375         chdir($PWD)).
64376         Don't log final directory unless we actually made it.
64377         Refactor to avoid duplicate code to fix up permissions.
64378         Don't attempt to fix up parent permissions if chdir($PWD) fails.
64379
64380         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
64381         to make it a bit faster and (I hope) clearer.
64382         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
64383         Fix bug in formats like %2N.
64384
64385         * lib/verify.h: New file.
64386
64387 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64388
64389         Sync from coreutils.
64390         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
64391
64392 2005-09-22  Jim Meyering  <jim@meyering.net>
64393
64394         Sync from coreutils.
64395
64396         * m4/lstat.m4 (gl_FUNC_LSTAT):
64397         Use AC_LIBSOURCES to require lstat.c and lstat.h.
64398         Remove obsolete comment.
64399         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
64400         * m4/xstrtod.m4: Likewise.
64401
64402         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
64403
64404 2005-09-22  Jim Meyering  <jim@meyering.net>
64405
64406         Sync from coreutils.
64407
64408         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
64409
64410         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
64411         the .tm_year member, since otherwise gcc-4.0 would now warn about
64412         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
64413
64414         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
64415         order to avoid an unsuppressible warning from gcc on 64-bit systems.
64416
64417         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
64418         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
64419         when run in a time zone for which daylight savings time is in effect
64420         for the starting date.
64421
64422         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
64423         stop us from restricting permissions of just-created absolute-named
64424         directories.
64425         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
64426         to restore initial working directory.
64427         * lib/mkdir-p.c (make_dir_parents): New parameter:
64428         different_working_dir, to tell caller if/when we change the working
64429         directory and are unable to return to the initial one.
64430         * lib/mkdir-p.h (make_dir_parents): Update prototype.
64431         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
64432         `return false'.  This fixes a bug introduced on 2004-07-30.
64433
64434         * lib/openat.c (fdopendir): Be sure to close the supplied
64435         file descriptor before returning.  This makes our replacement
64436         implementation a little closer to Solaris's, where fdopendir
64437         ties the file descriptor to the returned DIR* pointer.
64438         * lib/openat.c (unlinkat): New function.
64439         * lib/openat.h (unlinkat): Add prototype.
64440         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
64441         (openat_restore_fail): Rename from openat_restore_die.
64442         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
64443
64444         Provide an alternative to exiting immediately upon save_cwd or
64445         restore_cwd failure.  Now, an application can arrange e.g.,
64446         to perform a longjump in that case.
64447         * lib/openat.c: Include dirname.h.
64448         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
64449         (rpl_openat, fdopendir, fstatat): Call openat_save_die
64450         and openat_restore_die rather than calling error directly.
64451         Don't include "error.h" or "exitfail.h"; they're no longer needed.
64452
64453         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
64454         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
64455         define.
64456
64457         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
64458         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
64459                             int utc, int nanoseconds);
64460         Background:
64461         date should not have to allocate a megabyte of virtual memory to
64462         handle a format argument like +%1048575T.  When implemented with
64463         strftime, it must allocate such a buffer, use strftime to fill it
64464         in, print it, then free it.
64465         With fprintftime, it simply prints everything and exits.
64466         With no need for memory allocation, that's one fewer way to fail.
64467         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
64468         optional field width, not before, so we accept %9:z, not %:9z.
64469         (my_strftime): Be sure to use L_('x') for literals.
64470
64471         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
64472         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
64473         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
64474         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
64475         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
64476         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
64477         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
64478         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
64479         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
64480         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
64481         * lib/xgethostname.c, lib/xreadlink.c:
64482         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
64483
64484         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
64485         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
64486         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
64487         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64488         and don't include <sys/file.h>).
64489
64490 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
64491
64492         Sync from coreutils.
64493
64494         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
64495         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
64496         [!LDAV_DONE]: Avoid unused variable warning.
64497
64498 2005-09-21  Bruno Haible  <bruno@clisp.org>
64499
64500         * lib/unicodeio.h (unicode_to_mb): New declaration.
64501
64502 2005-09-20  Derek Price  <derek@ximbiot.com>
64503
64504         * lib/getaddrinfo.c: Don't include <netdb.h> included from
64505         getaddrinfo.h.
64506
64507 2005-09-20  Bruno Haible  <bruno@clisp.org>
64508
64509         * gnulib-tool: Remove trailing slashes from the values specified for
64510         --source-base, --m4-base, --tests-base, --aux-dir.
64511         Suggested by Simon Josefsson <jas@extundo.com>.
64512
64513 2005-09-20  Bruno Haible  <bruno@clisp.org>
64514
64515         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
64516         func_modules_to_filelist, func_import, func_create_testdir): Make all
64517         sorting results locale-independent, so that gnulib-cache.m4 doesn't
64518         change when gnulib-tool is invoked in a different locale.
64519
64520 2005-09-19  Simon Josefsson  <jas@extundo.com>
64521
64522         * m4/socklen.m4: Fix typo.
64523
64524 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64525
64526         Use a consistent style for including <config.h>.
64527         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
64528         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
64529         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
64530         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
64531         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
64532         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
64533         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
64534         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
64535         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
64536         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
64537         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
64538         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
64539         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
64540         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
64541         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
64542         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
64543         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
64544         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
64545         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
64546         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
64547         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
64548         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
64549         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
64550         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
64551         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
64552         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
64553         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
64554         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
64555         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
64556         lib/xstrtoumax.c, lib/yesno.c:
64557         Standardize inclusion of config.h.
64558         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
64559         lib/inttostr.h:  Removed inclusion of config.h from header files.
64560         * lib/inttostr.c:  Adjusted in-tree users.
64561         * lib/timespec.h: Remove superfluous warning to include config.h.
64562         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
64563         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
64564         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
64565         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
64566         config.h with HAVE_CONFIG_H.
64567
64568 2005-09-19  Jim Meyering  <jim@meyering.net>
64569
64570         * modules/pathmax (License): Change to LGPL.
64571
64572 2005-09-19  Derek Price  <derek@ximbiot.com>
64573
64574         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
64575
64576 2005-09-19  Bruno Haible  <bruno@clisp.org>
64577
64578         * gnulib-tool (import): Provide default for --tests-base.
64579
64580 2005-09-19  Bruno Haible  <bruno@clisp.org>
64581
64582         * doc/quote.texi: New file, extracted from gnulib.texi.
64583         * doc/ctime.texi: New file, extracted from gnulib.texi.
64584         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
64585         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
64586         * doc/gnulib.texi: Include them.
64587
64588 2005-09-18  Bruno Haible  <bruno@clisp.org>
64589
64590         Portability fix.
64591         * gnulib-tool (func_readlink): New function.
64592         (func_ln_if_changed): Use it.
64593
64594 2005-09-18  Bruno Haible  <bruno@clisp.org>
64595
64596         * gnulib-tool: Support --with-tests also with --import.
64597         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
64598         (func_import): Use variables $testsbase and $inctests. Emit a
64599         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
64600         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
64601         SUBDIRS += $testsdir.
64602         (func_create_testdir): Update.
64603
64604 2005-09-18  Bruno Haible  <bruno@clisp.org>
64605
64606         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
64607         instead of $dry_run.
64608         (func_cp_if_changed, func_mv_if_changed): Remove functions.
64609         (func_ln_if_changed): Don't handle dry-run here.
64610         (func_import): In dry-run mode, detect more precisely which actions
64611         would be performed, and don't use "...ing" verbs.
64612
64613 2005-09-18  Bruno Haible  <bruno@clisp.org>
64614
64615         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
64616         (func_import): Use join on two temporary files instead of three nested
64617         loops, in order to determine which files are new or old.
64618
64619 2005-09-18  Bruno Haible  <bruno@clisp.org>
64620
64621         * gnulib-tool (func_import): Comment out code that spits out the
64622         new files with --dry-run.
64623
64624 2005-09-18  Bruno Haible  <bruno@clisp.org>
64625
64626         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
64627
64628 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64629
64630         * lib/stat-time.h: New file.
64631         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
64632         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
64633         in a different way.
64634         (timespec_cmp): New function.
64635         * lib/utimecmp.c: Include stat-time.h.
64636         (SYSCALL_RESOLUTION): Depend on whether various struct stat
64637         members exist, not on the obsolescent ST_MTIM_NSEC.
64638         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
64639
64640 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64641
64642         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
64643
64644 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64645
64646         * MODULES.html.sh (File system functions): Add stat-time.
64647         * modules/stat-time: New file.
64648         * modules/timespec (Files): Remove m4/st_mtim.m4; this
64649         is now done in a different way, by the stat-time module.
64650         * modules/utimecmp (Depends-on): Add stat-time.
64651
64652 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64653
64654         * m4/st_mtim.m4: Remove.  Superseded by...
64655         * m4/stat-time.m4: New file.
64656         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
64657         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
64658
64659 2005-09-15  Derek Price  <derek@ximbiot.com>
64660
64661         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
64662
64663 2005-09-15  Derek Price  <derek@ximbiot.com>
64664
64665         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
64666         * lib/regex_internal.c: Ditto, using this...
64667         (__GNUC_PREREQ): ...new macro.
64668         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
64669         using...
64670         (__GNUC_PREREQ): ...this new macro.
64671
64672         * lib/strstr.h: Include string.h. Define strstr as a macro here.
64673
64674 2005-09-15  Derek Price  <derek@ximbiot.com>
64675             Paul Eggert  <eggert@cs.ucla.edu>
64676
64677         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
64678         changes, consolidating in...
64679         * lib/regex_internal.h: ...this file.
64680
64681 2005-09-13  Jim Meyering  <jim@meyering.net>
64682
64683         * lib/canon-host.c: Filter through gnu indent and reword comments
64684         slightly.
64685         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
64686
64687 2005-09-13  Derek Price  <derek@ximbiot.com>
64688
64689         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
64690         failure.
64691         Reported by Jim Meyering  <jim@meyering.net>.
64692
64693 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64694
64695         * lib/base64.c: Typo.
64696         (base64_encode): Put b64str in initialized data section.
64697
64698 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64699
64700         Merge glibc and coreutils changes into gnulib, plus a few
64701         extra fixes.
64702         * lib/md5.c: Use #error rather than a string.
64703         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
64704         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
64705         (__attribute__): Define to empty for non recent-GCC.
64706         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
64707         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
64708         Renamed from their non-__ counterparts, with new macros replacing
64709         them if not _LIBC.  Add __THROW attribute.
64710         (rol): Remove.
64711         (struct md5_ctx): Align buffer if using GCC.
64712         * lib/sha1.h (struct sha1_ctx): Likewise.
64713         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
64714         The old name was backwards.
64715         (NOTSWAP): Remove; not used.
64716         (rol): New macro, moved here from md5.h.
64717         (sha1_process_block): Remove a FIXME that doesn't make sense.
64718
64719 2005-09-12  Derek Price  <derek@ximbiot.com>
64720
64721         Return usable errors from canon-host.
64722         * lib/canon-host.h: New file.
64723         * lib/canon-host.c (canon_host): Wrap...
64724         (canon_host_r): ...this new function, which now relies exclusively on
64725         getaddrinfo.
64726         (ch_strerror): New function.
64727         (last_cherror): New global.
64728         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
64729         interface.
64730         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
64731         void *.
64732         (freeaddrinfo): Free ai->ai_canonname when set.
64733
64734 2005-09-12  Derek Price  <derek@ximbiot.com>
64735
64736         Make canon-host require getaddrinfo.
64737         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
64738         AC_LIBSOURCE canon-host.h.  Call...
64739         (gl_PREREQ_CANON_HOST): ...this new function, which requires
64740         gl_GETADDRINFO.
64741         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
64742
64743 2005-09-12  Derek Price  <derek@ximbiot.com>
64744
64745         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
64746         LGPL.
64747         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
64748
64749 2005-09-12  Derek Price  <derek@ximbiot.com>
64750
64751         * lib/gai_strerror.c: Include config.h when available.  Include
64752         getaddrinfo.h before other headers to test interface.
64753         Reported by Larry Jones <lawrence.jones@ugs.com>.
64754
64755 2005-09-12  Derek Price  <derek@ximbiot.com>
64756             Paul Eggert  <eggert@cs.ucla.edu>
64757
64758         * modules/glob (Files): Add glob-libc.h.
64759
64760 2005-09-12  Derek Price  <derek@ximbiot.com>
64761             Paul Eggert  <eggert@cs.ucla.edu>
64762
64763         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
64764         glob_.h, glob-libc.h.
64765         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
64766
64767 2005-09-12  Derek Price  <derek@ximbiot.com>
64768             Paul Eggert  <eggert@cs.ucla.edu>
64769
64770         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
64771         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
64772         protecting things that should be done only in gnulib contexts.
64773         * lib/glob_.h: New file, containing only the glob things needed for
64774         gnulib.
64775         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
64776         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
64777         (glob, globfree, glob_pattern_p): Now defined simply in terms of
64778         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
64779         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
64780         and to respect the namespace rules better.
64781
64782 2005-09-08  Simon Josefsson  <jas@extundo.com>
64783
64784         * modules/socklen: New file.
64785
64786 2005-09-08  Simon Josefsson  <jas@extundo.com>
64787
64788         * m4/socklen.m4: New file.
64789
64790 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64791
64792         * modules/utimens (Files): Add m4/utimbuf.m4, since
64793         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
64794         Reported by Sergey Poznyakoff.
64795
64796 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64797
64798         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
64799         definitions, since that's the preferred style in glibc.
64800         Fix a minor spacing issue, and update copyright notice to match
64801         glibc's.
64802
64803 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64804
64805         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
64806
64807 2005-09-06  Simon Josefsson  <jas@extundo.com>
64808
64809         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
64810         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
64811
64812 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64813
64814         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
64815         warning.
64816
64817 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64818
64819         * config/srclist.txt: Add glibc bug 1302.
64820
64821 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
64822
64823         Change bitset word type from unsigned int to unsigned long int,
64824         as this has better performance on typical 64-bit hosts.
64825         Port bitset code to hosts with unusual word sizes.
64826         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
64827         (build_collating_symbol):
64828         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
64829         argument is a bitset.  This is merely a style issue, but it makes
64830         it clearer that an entire array is expected.
64831         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
64832         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
64833         Port to the case where bitset_word is not the same as unsigned int.
64834         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64835         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
64836         Likewise.
64837         * lib/regexec.c (check_dst_limits_calc_pos_1,
64838         check_subexp_matching_top):
64839         (build_trtable, group_nodes_into_DFAstates):
64840         Likewise.
64841         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
64842         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
64843         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
64844         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
64845         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
64846         * lib/regcomp.c (optimize_subexps, lower_subexp):
64847         Work even if bitset_word has holes in its bitwise representation.
64848         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
64849         * lib/regexec.c (check_dst_limits_calc_pos_1,
64850         check_subexp_matching_top):
64851         Likewise.
64852         * lib/regex_internal.c (re_string_reconstruct):
64853         Don't assume UCHAR_MAX == 255.
64854         * lib/regex_internal.h (bitset_set_all): Likewise.
64855         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
64856         All uses changed.
64857         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
64858         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
64859         All uses changed.
64860         (BITSET_WORD_MAX): New macro.
64861         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
64862         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
64863         (bitset_empty, bitset_copy):
64864         Prefer sizeof (bitset) to multiplying it out ourselves.
64865         (bitset_not_merge): Remove; unused.
64866         (bitset_contain): Return bool, not unsigned int with one bit on.
64867         All callers changed.
64868         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
64869         alignment than re_node_set; do this by defining a new internal
64870         type struct dests_alloc and using it to allocate memory.
64871
64872 2005-09-05  Bruno Haible  <bruno@clisp.org>
64873
64874         * gnulib-tool (func_import): Fix comparison in handling of symbolic
64875         links.
64876
64877 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
64878
64879         * modules/size_max (Makefile.am): Add size_max.h
64880
64881 2005-09-04  Derek Price  <derek@ximbiot.com>
64882
64883         * gnulib-tool (func_import): Fix reversed $symbolic logic.
64884
64885 2005-09-03  Simon Josefsson  <jas@extundo.com>
64886
64887         * gnulib-tool: Fix typo.
64888
64889 2005-09-03  Simon Josefsson  <jas@extundo.com>
64890
64891         * config/srclist.txt: Add glibc bug 1293.
64892
64893 2005-09-03  Derek Price  <derek@ximbiot.com>
64894
64895         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
64896         From Larry Jones <lawrence.jones@ugs.com>.
64897
64898 2005-09-02  Simon Josefsson  <jas@extundo.com>
64899
64900         * modules/socklen: New file.
64901
64902 2005-09-02  Simon Josefsson  <jas@extundo.com>
64903
64904         * modules/havelib: New module.
64905
64906         * modules/gettext, modules/iconv, modules/lock, modules/readline:
64907         Use havelib.
64908
64909 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64910
64911         Check for arithmetic overflow when calculating sizes, to prevent
64912         some buffer-overflow issues.  These patches are conservative, in the
64913         sense that when I couldn't determine whether an overflow was possible,
64914         I inserted a run-time check.
64915         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
64916         macros.
64917         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
64918         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
64919         (re_xnrealloc, re_x2nrealloc): New inline functions.
64920         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
64921         parse_bracket_exp):
64922         (build_equiv_class, build_charclass): Check for arithmetic overflow
64923         in size expression calculations.
64924         * lib/regex_internal.c (re_string_realloc_buffers):
64925         (build_wcs_upper_buffer, re_node_set_add_intersect):
64926         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
64927         (re_dfa_add_node, register_state): Likewise.
64928         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
64929         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
64930         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
64931         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
64932
64933 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64934
64935         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64936         m4/ulonglong.m4.  Problem reported by Martin Lambers.
64937
64938 2005-09-02  Bruno Haible  <bruno@clisp.org>
64939
64940         Support for lib vs. lib64 distinction on biarch platforms.
64941         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
64942         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
64943         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
64944
64945 2005-09-02  Bruno Haible  <bruno@clisp.org>
64946
64947         * gnulib-tool (import): In the other first-use case, provide defaults
64948         as well.
64949
64950 2005-09-02  Bruno Haible  <bruno@clisp.org>
64951
64952         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
64953         patches not yet found in the latest gettext release.
64954
64955 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64956
64957         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
64958         to avoid a collision with bits/local_lim.h in glibc.
64959         All uses changed.  Problem reported by Dmitry V. Levin in
64960         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
64961
64962         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
64963         bugs in int versus size_t comparisons.
64964         (re_string_context_at): Fix bug where the code assumed that
64965         Idx is signed.
64966
64967         Use bool where appropriate.
64968         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
64969         All callers changed.
64970         (calc_eclosure_iter): Likewise, for ROOT arg.
64971         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
64972         (build_charclass_op): Likewise, for NON_MATCH arg.
64973         * lib/regex_internal.c (re_string_allocate, re_string_construct):
64974         (re_string_construct_common): Likewise, for ICASE arg.
64975         * lib/regexec.c (re_search_2_stub, re_search_stub):
64976         Likewise, for RET_LEN arg.
64977         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
64978         (set_regs): Likewise, for FL_BACKTRACK arg.
64979         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
64980         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
64981         (calc_eclosure_iter, parse_bracket_exp):
64982         Use bool for internal variables that are booleans.
64983         * lib/regexec.c (re_search_internal, check_matching,
64984         proceed_next_node):
64985         (set_regs, build_sifted_states, sift_states_bkref):
64986         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
64987         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64988         (find_collation_sequence_value):
64989         Likewise.
64990         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
64991         (re_node_set_compare):
64992         Return bool, not int. All callers changed.
64993         * lib/regexec.c (check_halt_node_context, check_dst_limits):
64994         (build_trtable, check_node_accept): Likewise.
64995         * lib/regex_internal.h: Include stdbool.h.
64996
64997         Fix bugs uncovered when converting to bool.
64998         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
64999         failure instead of charging ahead blindly.
65000         * lib/regex_internal.c (register_state): Likewise.
65001         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
65002         for freeing internal storage.
65003         (group_nodes_into_DFA_states): Use unsigned int, not int, for
65004         bitset pieces used as boolean, to avoid undefined behavior
65005         on hosts that do int overflow checking.
65006
65007 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65008
65009         * config/srclist.txt: Add glibc bugs 1285-1287.
65010
65011 2005-09-01  Jim Meyering  <jim@meyering.net>
65012
65013         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
65014         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
65015         Require gl_STAT_MACROS, too.
65016
65017 2005-09-01  Bruno Haible  <bruno@clisp.org>
65018
65019         * gnulib-tool (import): In the first-use case, provide defaults.
65020
65021 2005-09-01  Bruno Haible  <bruno@clisp.org>
65022
65023         * gnulib-tool (func_import): Remove the .tmp files.
65024
65025 2005-09-01  Bruno Haible  <bruno@clisp.org>
65026
65027         * gnulib-tool (func_import): Fix handling of symbolic links.
65028
65029 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65030
65031         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
65032         old glibc regex code mishandles strings longer than 2**31 bytes.
65033         This patch fixes this when the regex code is used in gnulib
65034         (i.e., outside glibc).
65035
65036         This patch should not affect the use of the regex code inside
65037         glibc.  No doubt this problem also needs to be handled for glibc
65038         as well, but the result will be an incompatible change to the
65039         glibc ABI, and the old ABI will have to be supported too.  That
65040         can be the the subject for another patch.
65041
65042         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
65043         governing whether the rest of this patch is active.  By default,
65044         the macro is disabled and the patch has no effect.
65045         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
65046         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
65047         (struct re_pattern_buffer, re_search, re_search_2, re_match):
65048         (re_match_2, re_set_registers): Use the new types.
65049         * lib/regex_internal.h (Idx, re_hashval_t): New types.
65050         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
65051         New macros.
65052         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
65053         (re_string_context_at, bin_tree_t, re_dfastate_t):
65054         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
65055         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
65056         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
65057         (re_string_char_size_at, re_string_wchar_at):
65058         (re_string_elem_size_at):
65059         Use the new types and macros to port to 64-bit hosts.
65060         Use unsigned types for internal values, so that the code
65061         mostly works even for arrays larger than SSIZE_MAX.
65062         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
65063         (search_duplicated_node, calc_eclosure_iter, fetch_number):
65064         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
65065         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
65066         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
65067         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
65068         (calc_inveclosure, parse_dup_op, build_range_exp):
65069         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
65070         (fetch_number, create_token_tree, mark_opt_subexp):
65071         Likewise.
65072         * lib/regex_internal.c (re_string_construct_common,
65073         create_ci_newstate):
65074         (create_cd_newstate, re_string_allocate, re_string_construct):
65075         (re_string_realloc_buffers, build_wcs_upper_buffer):
65076         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65077         (re_string_reconstruct, re_string_peek_byte_case):
65078         (re_string_fetch_byte_case, re_string_context_at):
65079         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65080         (re_node_set_init_copy, re_node_set_add_intersect):
65081         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65082         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65083         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65084         (re_acquire_state, re_acquire_state_context, register_state):
65085         Likewise.
65086         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
65087         search_cur_bkref_entry):
65088         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
65089         (re_search_internal, re_search_2_stub, re_search_stub)
65090         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
65091         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
65092         (update_cur_sifted_state, check_dst_limits):
65093         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65094         (check_subexp_limits, sift_states_bkref, merge_state_array):
65095         (check_subexp_matching_top, get_subexp, get_subexp_sub):
65096         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
65097         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65098         (expand_bkref_cache, check_node_accept_bytes):
65099         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
65100         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
65101         (acquire_init_state_context, check_halt_node_context):
65102         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
65103         (sift_states_backward, clean_state_log_if_needed):
65104         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
65105         (find_recover_state, transit_state_sb, transit_state_mb):
65106         (transit_state_bkref, build_trtable, match_ctx_clean):
65107         Likewise.
65108         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
65109         to work around an assumption that REG_MISSING is negative.
65110
65111         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
65112         (seek_collating_symbol_entry) [defined _LIBC]:
65113         (lookup_collation_sequence_value) [defined _LIBC]:
65114         (build_range_exp, build_collating_symbol) [defined _LIBC]:
65115         Use prototypes rather than old-style function definitions.
65116         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
65117         (transit_state_sb) [0]:
65118         (find_collation_sequence_value) [defined _LIBC]: Likewise.
65119
65120         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
65121         rm_eo.
65122
65123         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
65124         (optimize_subexps, lower_subexp):
65125         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
65126         since the signed shift might overflow.  Use 1u<<31 instead.
65127         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65128         Likewise.
65129         * lib/regexec.c (check_dst_limits_calc_pos_1,
65130         check_subexp_matching_top): Likewise.
65131
65132         * lib/regcomp.c (optimize_subexps, lower_subexp):
65133         Use CHAR_BIT rather than 8, for clarity.
65134         * lib/regexec.c (check_dst_limits_calc_pos_1):
65135         (check_subexp_matching_top): Likewise.
65136         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
65137         have to worry about portability issues when shifting it left.
65138         Remove no-longer-needed test for table_size > 0.
65139         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
65140         in a word, as the resulting behavior is undefined.
65141         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
65142         in one case, a <= should have been an <, and in another case the
65143         whole test was missing.
65144         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
65145         the standard name CHAR_BIT.
65146         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
65147         this is not true on one's complement and signed-magnitude hosts.
65148
65149         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
65150         next_last_offset.
65151         (struct re_dfa_t): Remove unused member states_alloc.
65152         * lib/regcomp.c (init_dfa): Don't initialize unused members.
65153
65154 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65155
65156         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
65157         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
65158         and large-file glibc and in 32-bit large-file Solaris.
65159
65160 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65161
65162         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
65163         lengths fit in regoff_t; this isn't true if regoff_t is the same
65164         width as size_t.
65165         * lib/regex.c (re_search_internal): 5th arg is LAST_START
65166         (= START + RANGE) instead of RANGE.  This avoids overflow
65167         problems when regoff_t is the same width as size_t.
65168         All callers changed.
65169         (re_search_2_stub): Check for overflow when adding the
65170         sizes of the two strings.
65171         (re_search_stub): Check for overflow when adding START
65172         to RANGE; if it occurs, substitute the extreme value.
65173
65174 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65175
65176         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
65177
65178 2005-08-31  Jim Meyering  <jim@meyering.net>
65179
65180         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
65181         a pointer-to-const.
65182         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
65183         (register_state): Likewise.
65184         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
65185         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65186         (group_nodes_into_DFAstates): Likewise.
65187
65188 2005-08-31  Jim Meyering  <jim@meyering.net>
65189
65190         * check-module: Add a FIXME comment.
65191
65192 2005-08-31  Eric Blake  <ebb9@byu.net>
65193
65194         * modules/unistd-safer (Files): Add unistd--.h.
65195         * modules/stdio-safer (Files): Add stdio--.h.
65196
65197 2005-08-31  Derek Price  <derek@ximbiot.com>
65198
65199         * lib/getdelim.c (getdelim): Return EOF on EOF.
65200         Reported by Larry Jones <lawrence.jones@ugs.com>.
65201
65202 2005-08-31  Bruno Haible  <bruno@clisp.org>
65203
65204         Avoid unnecessary diffs in the generated lib/Makefile.am.
65205         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
65206         the generated files.
65207         (func_import): Don't set cmd.
65208
65209 2005-08-31  Bruno Haible  <bruno@clisp.org>
65210
65211         * lib/strstr.c: Include <stddef.h>, for NULL.
65212         * lib/strcasestr.c: Likewise.
65213         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65214
65215 2005-08-31  Bruno Haible  <bruno@clisp.org>
65216
65217         * gnulib-tool: New option --macro-prefix.
65218         (func_import): Use macro_prefix.
65219         (import): Handle option --macro-prefix.
65220
65221 2005-08-31  Bruno Haible  <bruno@clisp.org>
65222
65223         * gnulib-tool (import): Rename most ac_* variables to cached_*.
65224         Also use new variables cached_lgpl, cached_libtool.
65225
65226 2005-08-31  Bruno Haible  <bruno@clisp.org>
65227
65228         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
65229         always instantiating them.
65230
65231 2005-08-31  Bruno Haible  <bruno@clisp.org>
65232
65233         * gnulib-tool (func_import): Read the previous cached settings
65234         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
65235         earlier added by gnulib but are now dropped. Warn when a gnulib file
65236         overwrites a non-gnulib file.
65237
65238 2005-08-31  Bruno Haible  <bruno@clisp.org>
65239
65240         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
65241         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
65242         projects that don't keep autogenerated files in CVS. Put into
65243         actioncmd only the specified modules, not the transitive closure.
65244
65245 2005-08-31  Bruno Haible  <bruno@clisp.org>
65246
65247         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
65248         Create directories that shall be filled.
65249         (import): Don't look for gl_* macros in configure.ac. Recurse across
65250         all directories containing a gnulib-cache.m4 files, if meaningful.
65251
65252 2005-08-31  Bruno Haible  <bruno@clisp.org>
65253
65254         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
65255         (import): Set seen_libtool when we see gl_LIBTOOL.
65256
65257 2005-08-31  Bruno Haible  <bruno@clisp.org>
65258
65259         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
65260         declaration macro definitions from generated gnulib.m4.
65261
65262 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
65263
65264         * lib/iconvme.h: Add prototype for iconv_alloc.
65265
65266 2005-08-29  Simon Josefsson  <jas@extundo.com>
65267
65268         * lib/iconvme.c: Fix errno.
65269
65270 2005-08-29  Bruno Haible  <bruno@clisp.org>
65271
65272         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
65273         that it works when the directory contains spaces.
65274
65275 2005-08-29  Bruno Haible  <bruno@clisp.org>
65276
65277         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
65278
65279 2005-08-29  Bruno Haible  <bruno@clisp.org>
65280
65281         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
65282         Emit more advice.
65283
65284 2005-08-29  Bruno Haible  <bruno@clisp.org>
65285         and Stepan Kasal  <kasal@ucw.cz>
65286
65287         * check-module: If more parameters are given, check each of them
65288         separately; add more exceptions, as noted by Jim Meyering.
65289         (check_module): New procedure.
65290         (%exempt_header): Now contains all exceptions.
65291
65292 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
65293
65294         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
65295
65296 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65297
65298         * lib/iconvme.c: Split iconv_string into iconv_alloc.
65299
65300 2005-08-28  Bruno Haible  <bruno@clisp.org>
65301
65302         * m4/gnulib-tool.m4: New file.
65303
65304 2005-08-27  Jim Meyering  <jim@meyering.net>
65305
65306         * modules/unistd-safer (Files): Add pipe-safer.c.
65307         * modules/fcntl-safer (Files): Add creat-safer.c.
65308
65309 2005-08-27  Jim Meyering  <jim@meyering.net>
65310
65311         * m4/stdlib-safer.m4: New file.  From coreutils.
65312         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
65313         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
65314         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
65315         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
65316         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
65317
65318 2005-08-27  Jim Meyering  <jim@meyering.net>
65319
65320         * lib/fopen-safer.c: Merge minor changes from coreutils.
65321         * lib/dup-safer.c: Likewise.
65322         * lib/fd-safer.c: Likewise.
65323
65324         Merge from coreutils.
65325         * lib/stdio--.h: New file.
65326         * lib/stdlib--.h: New file.
65327         * lib/mkstemp-safer.c: New file.
65328
65329         GNU tar needs these.
65330         * lib/pipe-safer.c: New file.
65331         * lib/creat-safer.c: New file.
65332         * lib/fcntl--.h (creat): Define to creat_safer.
65333         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
65334         * lib/unistd--.h (pipe): Define to pipe_safer.
65335         * lib/unistd-safer.h: Declare pipe_safer.
65336
65337 2005-08-26  Simon Josefsson  <jas@extundo.com>
65338
65339         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
65340         Haible <bruno@clisp.org>.
65341
65342 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
65343
65344         * lib/regex_internal.h: Remove all references to
65345         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
65346         or better.
65347         (bitset_not, bitset_merge, bitset_not_merge):
65348         (bitset_mask, re_string_allocate, re_string_construct):
65349         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
65350         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
65351         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
65352         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
65353         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65354         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65355         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
65356         (re_acquire_state_context):
65357         Remove unnecessary forward decls.
65358         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
65359         Put __attribute at function definition,
65360         now that the function decl has been removed.
65361         * lib/regex_internal.c (re_string_peek_byte_case):
65362         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
65363         Likewise.
65364
65365 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
65366
65367         * m4/regex.m4: Add AC_PREREQ(2.50).
65368         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
65369
65370 2005-08-25  Simon Josefsson  <jas@extundo.com>
65371
65372         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
65373         __fsetlocking.
65374
65375 2005-08-25  Simon Josefsson  <jas@extundo.com>
65376
65377         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
65378         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
65379         GLIBC specific code.
65380
65381 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65382
65383         Make regex safe for g++.  This fixes one real bug (an "err"
65384         that should have been "*err").  g++ problem reported by
65385         Sam Steingold.
65386         * lib/regex_internal.h (re_calloc): New macro, consistent with
65387         re_malloc etc.  All callers of calloc changed to use re_calloc.
65388         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
65389         not int.  All callers changed.
65390         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
65391         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
65392         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
65393         (find_recover_state): Change "err" to "*err"; this fixes what
65394         appears to be a real bug.
65395         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
65396         versus int.
65397
65398 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65399
65400         * modules/regex (Depends-on): Add malloc, since the code
65401         assumes that !malloc(0) means failure.
65402
65403 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65404
65405         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
65406
65407         alloca modernization/simplification for regex.
65408         * lib/regex.c: Remove portability cruft for alloca.  This no longer
65409         needs to be at the start of the file, and can be moved into
65410         regex_internal.h and simplified.
65411         * lib/regex_internal.h: Include <alloca.h>.
65412         (__libc_use_alloca) [!defined _LIBC]: New macro.
65413         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
65414         now works outside glibc.
65415
65416 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65417
65418         * config/srclist.txt: Add glibc bugs 1241, 1245.
65419
65420 2005-08-25  Jim Meyering  <jim@meyering.net>
65421
65422         * lib/open-safer.c: Include <config.h>.
65423         Otherwise, we'd lose LARGEFILE support in any file using
65424         e.g. "fcntl--.h"
65425
65426 2005-08-25  Bruno Haible  <bruno@clisp.org>
65427
65428         * m4/minmax.m4: Require autoconf 2.52.
65429         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
65430         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
65431         alternatives of translit over the alphabet.
65432         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
65433
65434 2005-08-24  Simon Josefsson  <jas@extundo.com>
65435
65436         * tests/test-getpass.c: New file.
65437
65438 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65439
65440         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
65441         for GNU regex features.
65442
65443 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65444
65445         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
65446         * lib/regex.h (regerror): Likewise.
65447
65448         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
65449         requires this.  (The code never needed it.)
65450
65451         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
65452         All uses of recently-renamed identifiers changed to use the new,
65453         POSIX-compliant names.  The code will build and run just fine
65454         without these changes, but it's better to eat our own dog food
65455         and use the standard-conforming names.
65456
65457         * lib/regex.h: Fix a multitude of POSIX name space violations.
65458         These changes have an effect only for programs that define
65459         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
65460         do not change anything for programs compiled in the normal way.
65461         Also, there is no effect on the ABI.
65462
65463         (_REGEX_SOURCE): New macro.
65464         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
65465         defined and _GNU_SOURCE is not; this fixes a name space violation.
65466
65467         Rename the following macros to obey POSIX requirements.
65468         The old names are still visible as macros if _REGEX_SOURCE is defined.
65469         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
65470         RE_BACKSLASH_ESCAPE_IN_LISTS.
65471         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
65472         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
65473         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
65474         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
65475         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
65476         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
65477         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
65478         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
65479         (REG_INTERVALS): renamed from RE_INTERVALS.
65480         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
65481         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
65482         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
65483         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
65484         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
65485         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
65486         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
65487         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
65488         RE_UNMATCHED_RIGHT_PAREN_ORD.
65489         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
65490         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
65491         (REG_DEBUG): renamed from RE_DEBUG.
65492         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
65493         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
65494         unusual, since we can't clash with the POSIX REG_ICASE.
65495         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
65496         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
65497         (REG_NO_SUB): renamed from RE_NO_SUB.
65498         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
65499         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
65500         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
65501         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
65502         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
65503         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
65504         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
65505         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
65506         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
65507         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
65508         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
65509         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
65510         RE_SYNTAX_POSIX_MINIMAL_BASIC.
65511         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
65512         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
65513         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
65514         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
65515         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
65516         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
65517         (REG_FIXED): Renamed from REGS_FIXED.
65518         (REG_NREGS): Renamed from RE_NREGS.
65519
65520         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
65521         of other REG_* macros, since POSIX says the user is allowed to
65522         #undef these macros selectively.
65523
65524         (reg_errcode_t): Update comment stating what other tables need
65525         to be consistent.
65526
65527         Rename the following enum values to obey POSIX requirements.
65528         The old names are still visible as macros.
65529         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
65530         is not defined, since GNU is supposed to be a superset of POSIX as
65531         much as possible, and since we want reg_errcode_t to be a signed
65532         type for implementation consistency.
65533         (_REG_NOERROR): Renamed from REG_NOERROR.
65534         (_REG_NOMATCH): Renamed from REG_NOMATCH.
65535         (_REG_BADPAT): Renamed from REG_BADPAT.
65536         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
65537         (_REG_ECTYPE): Renamed from REG_ECTYPE.
65538         (_REG_EESCAPE): Renamed from REG_EESCAPE.
65539         (_REG_ESUBREG): Renamed from REG_ESUBREG.
65540         (_REG_EBRACK): Renamed from REG_EBRACK.
65541         (_REG_EPAREN): Renamed from REG_EPAREN.
65542         (_REG_EBRACE): Renamed from REG_EBRACE.
65543         (_REG_BADBR): Renamed from REG_BADBR.
65544         (_REG_ERANGE): Renamed from REG_ERANGE.
65545         (_REG_ESPACE): Renamed from REG_ESPACE.
65546         (_REG_BADRPT): Renamed from REG_BADRPT.
65547         (_REG_EEND): Renamed from REG_EEND.
65548         (_REG_ESIZE): Renamed from REG_ESIZE.
65549         (_REG_ERPAREN): Renamed from REG_ERPAREN.
65550         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
65551         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
65552         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
65553         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
65554
65555         (_REG_RE_NAME, _REG_RM_NAME): New macros.
65556         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
65557         changed.  But support the old name if the new one is not defined
65558         and if _REGEX_SOURCE.
65559
65560         Change the following member names in struct re_pattern_buffer.
65561         The old names are still supported if !_REGEX_SOURCE.
65562         The new names are always supported, regardless of _REGEX_SOURCE.
65563         (re_buffer): Renamed from buffer.
65564         (re_allocated): Renamed from allocated.
65565         (re_used): Renamed from used.
65566         (re_syntax): Renamed from syntax.
65567         (re_fastmap): Renamed from fastmap.
65568         (re_translate): Renamed from translate.
65569         (re_can_be_null): Renamed from can_be_null.
65570         (re_regs_allocated): Renamed from regs_allocated.
65571         (re_fastmap_accurate): Renamed from fastmap_accurate.
65572         (re_no_sub): Renamed from no_sub.
65573         (re_not_bol): Renamed from not_bol.
65574         (re_not_eol): Renamed from not_eol.
65575         (re_newline_anchor): Renamed from newline_anchor.
65576
65577         Change the following member names in struct re_registers.
65578         The old names are still supported if !_REGEX_SOURCE.
65579         The new names are always supported, regardless of _REGEX_SOURCE.
65580         (rm_num_regs): Renamed from num_regs.
65581         (rm_start): Renamed from start.
65582         (rm_end): Renamed from end.
65583
65584         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
65585         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
65586         Prepend __ to parameter names.
65587
65588         Undo yesterday's changes.
65589
65590 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65591
65592         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
65593         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
65594         lib/regex.c.
65595
65596 2005-08-24  Jim Meyering  <jim@meyering.net>
65597
65598         Sync from coreutils.
65599         * m4/fcntl-safer.m4: New file.
65600
65601         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
65602         and object files for this module.
65603
65604 2005-08-24  Jim Meyering  <jim@meyering.net>
65605
65606         Sync from coreutils.
65607         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
65608
65609 2005-08-24  Jim Meyering  <jim@meyering.net>
65610
65611         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
65612         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
65613
65614 2005-08-24  Jim Meyering  <jim@meyering.net>
65615
65616         * modules/fcntl-safer: New module.
65617         * modules/fts (Depends-on): Add fcntl-safer.
65618         * MODULES.html.sh (File descriptor based Input/Output):
65619         Add fcntl-safer.
65620
65621 2005-08-24  Bruno Haible  <bruno@clisp.org>
65622
65623         Support for unit test modules.
65624         * modules/README: Mention tests modules.
65625         * modules/TEMPLATE-TESTS: New file.
65626         * gnulib-tool: New options --extract-tests-module, --with-tests and
65627         --tests-base (unused for the moment).
65628         (testsbase, inctests): New variables.
65629         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
65630         (func_verify_module): Exclude TEMPLATE-TESTS.
65631         (func_verify_nontests_module, func_verify_tests_module): New functions.
65632         (func_get_dependencies): Add implicit dependency for tests modules.
65633         (func_get_tests_module): New function.
65634         (func_modules_transitive_closure): When --with-tests was specified,
65635         include the unit tests as well, unless explicitly avoided.
65636         (func_emit_lib_Makefile_am): Ignore the tests modules here.
65637         (func_emit_tests_Makefile_am): New function.
65638         (func_create_testdir): When --with-tests was specified, emit a
65639         tests/ directory.
65640         * MODULES.html.sh (Future developments): Update.
65641
65642 2005-08-24  Bruno Haible  <bruno@clisp.org>
65643
65644         * modules/tls-tests: New file.
65645         * tests/test-tls.c: New file, from GNU gettext.
65646
65647 2005-08-24  Bruno Haible  <bruno@clisp.org>
65648
65649         * modules/lock-tests: New file.
65650         * tests/test-lock.c: New file, from GNU gettext.
65651
65652 2005-08-24  Bruno Haible  <bruno@clisp.org>
65653
65654         * lib/lock.h: Add multiple inclusion guard.
65655         * lib/tls.h: Add multiple inclusion guard.
65656
65657 2005-08-24  Bruno Haible  <bruno@clisp.org>
65658
65659         * gnulib-tool: Add support for the --aux-dir option to
65660         --create-testdir, --create-megatestdir, --test, --megatest.
65661         (func_create_testdir, func_create_megatestdir): Optionally emit a
65662         AC_CONFIG_AUX_DIR directive.
65663         (create-testdir, create-megatestdir, test, megatest): Provide a
65664         default value for $auxdir.
65665
65666 2005-08-24  Bruno Haible  <bruno@clisp.org>
65667
65668         * gnulib-tool (import): Use compound statement instead of subshell
65669         where possible.
65670
65671 2005-08-24  Bruno Haible  <bruno@clisp.org>
65672
65673         * gnulib-tool (import): Change --aux-dir default to "build-aux".
65674
65675 2005-08-24  Bruno Haible  <bruno@clisp.org>
65676
65677         * gnulib-tool (func_version): Update.
65678
65679 2005-08-24  Bruno Haible  <bruno@clisp.org>
65680
65681         * gnulib-tool (func_import, func_create_testdir,
65682         func_create_megatestdir): Quote all autoconf macro arguments.
65683
65684 2005-08-24  Bruno Haible  <bruno@clisp.org>
65685
65686         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
65687         option --force, because --force causes the aclocal.m4 of each
65688         subdirectory to be newer than the corresponding config.h.in.
65689
65690 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65691
65692         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
65693         All contents moved to gl_REGEX.
65694         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
65695         assume that it does.
65696
65697 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65698
65699         * lib/regex.h (REG_NOSYS)
65700         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
65701         Define, since POSIX requires it as of 2001.
65702         (_REG_ENOSYS)
65703         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
65704         New private symbol, used to keep the enum signed in all cases.
65705         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
65706         Youngman in
65707         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
65708
65709         * lib/regex_internal.c (re_string_skip_chars, register_state):
65710         (calc_state_hash):
65711         Remove forward decls; no longer needed now that we use prototypes.
65712         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
65713         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
65714         (clean_state_log_if_needed): Likewise.
65715
65716 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65717
65718         * config/srclist.txt: Add glibc bugs 1231-1233.
65719
65720 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65721
65722         Fix problems reported by Sam Steingold in
65723         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
65724         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
65725         assumed that reg_errcode_t is a signed type, which is not
65726         necessarily true if _XOPEN_SOURCE is not defined.
65727         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
65728         since some compilers warn about it otherwise.
65729
65730 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65731
65732         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
65733         (init_word_char, create_initial_state, duplicate_node_closure):
65734         (fetch_token, peek_token_bracket, build_range_exp):
65735         (build_collating_symbol): Remove forward decls; no longer needed
65736         now that we use prototypes.
65737
65738         * lib/regcomp.c:
65739         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
65740         (re_compile_fastmap_iter, regcomp, regerror, regfree):
65741         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
65742         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
65743         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
65744         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
65745         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
65746         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
65747         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
65748         (build_range_exp, build_collating_symbol, parse_bracket_exp):
65749         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
65750         (build_charclass, build_charclass_op, fetch_number, create_tree):
65751         (create_token_tree, mark_opt_subexp, duplicate_tree):
65752         Use prototypes rather than old-style definitions.
65753
65754         * lib/regex_internal.c:
65755         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
65756         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
65757         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65758         (re_string_reconstruct, re_string_peek_byte_case):
65759         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
65760         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65761         (re_node_set_init_copy, re_node_set_add_intersect):
65762         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65763         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65764         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65765         (re_acquire_state, re_acquire_state_context, register_state):
65766         (create_ci_newstate, create_cd_newstate, free_state):
65767         Likewise.
65768         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
65769         re_search_2):
65770         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
65771         (re_search_internal, prune_impossible_nodes):
65772         (acquire_init_state_context, check_matching, static):
65773         (check_halt_node_context, check_halt_state_context, proceed_next_node):
65774         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
65775         (update_regs, sift_states_backward, build_sifted_states):
65776         (clean_state_log_if_needed, merge_state_array):
65777         (update_cur_sifted_state, add_epsilon_src_nodes):
65778         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
65779         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
65780         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
65781         (find_recover_state, check_subexp_matching_top, transit_state_mb):
65782         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
65783         (check_arrival, check_arrival_add_next_nodes):
65784         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65785         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65786         (check_node_accept_bytes, check_node_accept, extend_buffers):
65787         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
65788         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
65789         (sift_ctx_init):
65790         Likewise.
65791
65792         * lib/regex_internal.h:
65793         (re_string_allocate, re_string_construct, re_string_reconstruct):
65794         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
65795         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
65796         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
65797         (re_string_context_at, re_string_peek_byte_case):
65798         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
65799         is defined, since we now use prototypes always.
65800
65801         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
65802         C89 or better.  All uses removed.
65803
65804 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65805
65806         * config/srclist.txt: Add glibc bugs 1220-1227.
65807
65808 2005-08-20  Jim Meyering  <jim@meyering.net>
65809
65810         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
65811         of unused local, dfa.
65812
65813 2005-08-20  Bruno Haible  <bruno@clisp.org>
65814
65815         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
65816
65817 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65818
65819         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
65820         (re_node_set_insert_last, re_dfa_add_node):
65821         Rename local variables to avoid GCC shadowing warnings.
65822
65823 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65824
65825         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
65826         [defined lint]: Suppress bogus uninitialized-variable warnings.
65827
65828         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
65829         and let the caller return REG_ESPACE if out of space.  This
65830         removes an uninitialied-variable warning with GCC 4.0.1, and also
65831         avoids taking the address of a local variable.  All callers
65832         changed.
65833
65834 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65835
65836         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
65837         $LIBCSRC/posix/regexec.c.
65838         Add glibc bug 1217 for regcomp.c.
65839
65840 2005-08-19  Jim Meyering  <jim@meyering.net>
65841
65842         * lib/regexec.c (proceed_next_node): Redo local variables to
65843         avoid GCC shadowing warnings.
65844
65845 2005-08-18  Bruno Haible  <bruno@clisp.org>
65846
65847         * lib/strstr.c (strstr): Fix return value in multibyte case.
65848         * lib/strcasestr.c (strcasestr): Likewise.
65849
65850 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65851
65852         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
65853
65854 2005-08-17  Jim Meyering  <jim@meyering.net>
65855
65856         Make the %s format (seconds since the epoch) work for a negative
65857         number and when used with a zero-padded field width, e.g. %015s.
65858
65859         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
65860         label so that it precedes the code to set `digits'.  Otherwise,
65861         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
65862         print `00-22'.  Now, it prints `-0022', as it should.
65863
65864 2005-08-17  Bruno Haible  <bruno@clisp.org>
65865
65866         * modules/strstr (Files): Add m4/mbrtowc.m4.
65867         (Depends-on): Add mbuiter.
65868
65869 2005-08-17  Bruno Haible  <bruno@clisp.org>
65870
65871         * modules/strcasestr: New file.
65872         * MODULES.html.sh (String handling, based on ANSI C 89): Add
65873         strcasestr.
65874
65875 2005-08-17  Bruno Haible  <bruno@clisp.org>
65876
65877         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
65878
65879 2005-08-17  Bruno Haible  <bruno@clisp.org>
65880
65881         * modules/mbuiter: New file.
65882         * MODULES.html.sh (Extended multibyte and wide character utilities):
65883         Add mbuiter.
65884
65885 2005-08-17  Bruno Haible  <bruno@clisp.org>
65886
65887         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
65888         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
65889
65890 2005-08-17  Bruno Haible  <bruno@clisp.org>
65891
65892         * m4/strcasestr.m4: New file.
65893
65894 2005-08-17  Bruno Haible  <bruno@clisp.org>
65895
65896         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
65897         * lib/strstr.c: Completely rewritten, with multibyte locale support.
65898
65899 2005-08-17  Bruno Haible  <bruno@clisp.org>
65900
65901         * lib/strcasestr.h: New file.
65902         * lib/strcasestr.c: New file.
65903
65904 2005-08-17  Bruno Haible  <bruno@clisp.org>
65905
65906         * lib/strcasecmp.c: Use mbuiter.h.
65907
65908 2005-08-17  Bruno Haible  <bruno@clisp.org>
65909
65910         * lib/mbuiter.h: New file.
65911
65912 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65913
65914         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
65915         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
65916         and gl_GETOPT are both invoked via different paths (as happens
65917         with GNU tar CVS because it uses both argp and getopt), the former
65918         wins.
65919
65920 2005-08-16  Bruno Haible  <bruno@clisp.org>
65921
65922         * modules/tls: New file.
65923         * MODULES.html.sh (Multithreading): Add tls.
65924
65925 2005-08-16  Bruno Haible  <bruno@clisp.org>
65926
65927         * modules/strnlen1: New file.
65928         * MODULES.html.sh (String handling): Add strnlen1.
65929
65930 2005-08-16  Bruno Haible  <bruno@clisp.org>
65931
65932         * modules/strcase (Files): Add m4/mbrtowc.m4.
65933         (Depends-on): Add strnlen1, mbchar.
65934
65935 2005-08-16  Bruno Haible  <bruno@clisp.org>
65936
65937         * modules/mbiter: New file.
65938         * MODULES.html.sh (Extended multibyte and wide character utilities):
65939         Add mbiter.
65940
65941 2005-08-16  Bruno Haible  <bruno@clisp.org>
65942
65943         * modules/mbfile: New file.
65944         * MODULES.html.sh (Extended multibyte and wide character utilities):
65945         Add mbfile.
65946
65947 2005-08-16  Bruno Haible  <bruno@clisp.org>
65948
65949         * modules/mbchar: New file.
65950         * MODULES.html.sh (Extended multibyte and wide character utilities):
65951         New section.
65952
65953 2005-08-16  Bruno Haible  <bruno@clisp.org>
65954
65955         * m4/tls.m4: New file, from GNU gettext.
65956
65957 2005-08-16  Bruno Haible  <bruno@clisp.org>
65958
65959         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
65960         always.
65961         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
65962
65963 2005-08-16  Bruno Haible  <bruno@clisp.org>
65964
65965         * m4/mbiter.m4: New file.
65966
65967 2005-08-16  Bruno Haible  <bruno@clisp.org>
65968
65969         * m4/mbfile.m4: New file.
65970
65971 2005-08-16  Bruno Haible  <bruno@clisp.org>
65972
65973         * m4/mbchar.m4: New file.
65974
65975 2005-08-16  Bruno Haible  <bruno@clisp.org>
65976
65977         * lib/tls.h: New file, from GNU gettext.
65978         * lib/tls.c: New file, from GNU gettext.
65979
65980 2005-08-16  Bruno Haible  <bruno@clisp.org>
65981
65982         * lib/strnlen1.h: New file.
65983         * lib/strnlen1.c: New file.
65984
65985 2005-08-16  Bruno Haible  <bruno@clisp.org>
65986
65987         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
65988         (mbi_init): Update.
65989         (mbi_avail, mbi_advance): Let the iteration end before the terminating
65990         NUL byte, not after it.
65991
65992 2005-08-16  Bruno Haible  <bruno@clisp.org>
65993
65994         * lib/strcase.h (strcasecmp): Add note in comments.
65995         * lib/strncasecmp.c: Use code from strcasecmp.c.
65996         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
65997         (strcasecmp): Work correctly in multibyte locales.
65998
65999 2005-08-16  Bruno Haible  <bruno@clisp.org>
66000
66001         * lib/mbiter.h: New file.
66002
66003 2005-08-16  Bruno Haible  <bruno@clisp.org>
66004
66005         * lib/mbfile.h: New file.
66006
66007 2005-08-16  Bruno Haible  <bruno@clisp.org>
66008
66009         * lib/mbchar.h: New file.
66010         * lib/mbchar.c: New file.
66011
66012 2005-08-16  Bruno Haible  <bruno@clisp.org>
66013
66014         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
66015         the valid ones. Makes the comparison operations transitive:
66016         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
66017         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
66018
66019 2005-08-15  Simon Josefsson  <jas@extundo.com>
66020
66021         * modules/ssize_t (License): Change to 'unlimited'.
66022
66023         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
66024
66025 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66026
66027         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
66028         Add comments for each pending glibc patch.
66029
66030 2005-08-15  Bruno Haible  <bruno@clisp.org>
66031
66032         * lib/regex.h (__restrict_arr): Don't define to __restrict if
66033         __cplusplus is defined.
66034
66035 2005-08-14  Jim Meyering  <jim@meyering.net>
66036
66037         Sync from coreutils.
66038
66039         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
66040         Use the hash-table-based cycle-detection code not just when
66041         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
66042         Reported by James Youngman in
66043         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
66044         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
66045         FTS_TIGHT_CYCLE_CHECK.
66046         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
66047         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
66048         once again.
66049         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
66050         * lib/fts.c (fd_safer): Remove decl.
66051         Include fcntl--.h rather than unistd-safer.h
66052         (fts_safe_changedir): Don't call fd_safer; no longer needed
66053         now that we include fcntl--.h.
66054
66055 2005-08-12  Simon Josefsson  <jas@extundo.com>
66056
66057         * modules/getndelim2: Use ssize_t module.
66058         * modules/getnline: Likewise.
66059         * modules/safe-read: Likewise.
66060         * modules/xreadlink: Likewise.
66061
66062         * modules/ssize_t: New file.
66063
66064 2005-08-12  Simon Josefsson  <jas@extundo.com>
66065
66066         * m4/readline.m4: Look for termcap, curses or ncurses if required.
66067
66068 2005-08-12  Simon Josefsson  <jas@extundo.com>
66069
66070         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66071         ssize_t.
66072
66073 2005-08-12  Simon Josefsson  <jas@extundo.com>
66074
66075         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
66076         readline, getdelim and check_version.
66077         (Support for systems lacking ISO C 99: Sizes of integer types):
66078         Add size_max.
66079
66080 2005-08-12  Bruno Haible  <bruno@clisp.org>
66081
66082         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
66083
66084 2005-08-11  Simon Josefsson  <jas@extundo.com>
66085
66086         * modules/readline: New file.
66087
66088         * modules/strnlen (Files): Add strnlen.h.
66089
66090 2005-08-11  Simon Josefsson  <jas@extundo.com>
66091
66092         * m4/readline.m4: New file.
66093
66094 2005-08-11  Simon Josefsson  <jas@extundo.com>
66095
66096         * lib/readline.h, readline.c: New file.
66097
66098 2005-08-11  Simon Josefsson  <jas@extundo.com>
66099
66100         * doc/gnulib.texi (Initial import, Finishing touches): Mention
66101         gl_AVOID.
66102
66103 2005-08-11  Bruno Haible  <bruno@clisp.org>
66104
66105         * lib/strnlen.h (strnlen): Change parameter name to match comment.
66106
66107 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
66108
66109         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
66110
66111 2005-08-10  Simon Josefsson  <jas@extundo.com>
66112
66113         * tests/test-iconvme.c: New file.
66114
66115 2005-08-10  Simon Josefsson  <jas@extundo.com>
66116
66117         * m4/strnlen.m4: New file.
66118
66119         * m4/strndup.m4: Don't check for strnlen declaration, done in
66120         strnlen.m4.
66121
66122 2005-08-10  Simon Josefsson  <jas@extundo.com>
66123
66124         * lib/strndup.c: Use strnlen.h.
66125
66126         * lib/strnlen.h: New file.
66127
66128 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66129
66130         * README: Typos.
66131
66132 2005-08-02  Simon Josefsson  <jas@extundo.com>
66133
66134         * modules/readline: New file.
66135
66136 2005-08-02  Simon Josefsson  <jas@extundo.com>
66137
66138         * modules/getdelim: New file.
66139
66140         * modules/getline: Rewrite, don't use getndelim2.
66141
66142 2005-08-02  Simon Josefsson  <jas@extundo.com>
66143
66144         * m4/getline.m4: Separate out getdelim stuff into separate module.
66145
66146         * m4/getdelim.m4: New file.
66147
66148 2005-08-02  Simon Josefsson  <jas@extundo.com>
66149
66150         * lib/getline.h, getline.c: Rewrite.
66151
66152         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
66153
66154 2005-07-31  Bruno Haible  <bruno@clisp.org>
66155
66156         * lib/lock.h (gl_lock_initializer): New macro.
66157         (gl_lock_define_initialized): Use it.
66158         (gl_rwlock_initializer): New macro.
66159         (gl_rwlock_define_initialized): Use it.
66160         (gl_recursive_lock_initializer): New macro.
66161         (gl_recursive_lock_define_initialized): Use it.
66162
66163 2005-07-30  Karl Berry  <karl@gnu.org>
66164
66165         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
66166         Report from Ben Pfaff, regarding getopt.
66167
66168 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
66169
66170         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
66171         normal way.
66172         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
66173         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
66174         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
66175         (gl_GETOPT): Use the new macros.  Most of the implementation
66176         is moved to the new macros.  This is for programs like Emacs
66177         that don't want all the functionality of gl_GETOPT.
66178
66179 2005-07-26  Bruno Haible  <bruno@clisp.org>
66180
66181         * m4/lock.m4: Update from GNU gettext.
66182
66183 2005-07-26  Bruno Haible  <bruno@clisp.org>
66184
66185         * lib/lock.h: Update from GNU gettext.
66186         * lib/lock.c: Update from GNU gettext.
66187
66188 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
66189
66190         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
66191         obsolescent AC_TRY_RUN.  Include the default includes files, for
66192         'exit'.
66193
66194 2005-07-24  Bruno Haible  <bruno@clisp.org>
66195
66196         * modules/visibility: New file.
66197         * MODULES.html.sh (Misc): Add visibility.
66198
66199 2005-07-24  Bruno Haible  <bruno@clisp.org>
66200
66201         * m4/visibility.m4: New file.
66202
66203 2005-07-24  Bruno Haible  <bruno@clisp.org>
66204
66205         * doc/visibility.texi: New file.
66206
66207 2005-07-22  Bruno Haible  <bruno@clisp.org>
66208
66209         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
66210         $(ALLOCA_H), redundant through BUILT_SOURCES.
66211         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
66212         redundant through BUILT_SOURCES.
66213         * modules/byteswap (Makefile.am): Remove explicit dependency on
66214         $(BYTESWAP_H), redundant through BUILT_SOURCES.
66215         * modules/fnmatch (Makefile.am): Remove explicit dependency on
66216         $(FNMATCH_H), redundant through BUILT_SOURCES.
66217         * modules/getopt (Makefile.am): Remove explicit dependency on
66218         $(GETOPT_H), redundant through BUILT_SOURCES.
66219         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
66220         redundant through BUILT_SOURCES.
66221         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
66222         redundant through BUILT_SOURCES.
66223         * modules/stdbool (Makefile.am): Remove explicit dependency on
66224         $(STDBOOL_H), redundant through BUILT_SOURCES.
66225         * modules/stdint (Makefile.am): Remove explicit dependency on
66226         $(STDINT_H), redundant through BUILT_SOURCES.
66227         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
66228         Remove explicit dependency on $(SYSEXITS_H).
66229         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
66230
66231 2005-07-18  Simon Josefsson  <jas@extundo.com>
66232
66233         * lib/check-version.c (check_version): Accept identical versions too.
66234
66235 2005-07-18  Bruno Haible  <bruno@clisp.org>
66236
66237         * modules/lock: New file.
66238         * MODULES.html.sh (Multithreading): New section.
66239
66240 2005-07-18  Bruno Haible  <bruno@clisp.org>
66241
66242         * m4/lock.m4: New file, from GNU gettext.
66243
66244 2005-07-18  Bruno Haible  <bruno@clisp.org>
66245
66246         * lib/lock.h: New file, from GNU gettext.
66247         * lib/lock.c: New file, from GNU gettext.
66248
66249 2005-07-18  Bruno Haible  <bruno@clisp.org>
66250
66251         * lib/lock.h (gl_once_t): New type.
66252         (gl_once_define, gl_once): New macros.
66253         * lib/lock.c (fresh_once): New variable.
66254         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
66255         functions.
66256
66257 2005-07-16  Simon Josefsson  <jas@extundo.com>
66258
66259         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
66260         workaround, suggested by Bruno.
66261
66262 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66263
66264         * modules/xalloc (Depends-on): Add xalloc-die.
66265         * modules/xvasprintf (Depends-on): Add xalloc-die.
66266
66267 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66268
66269         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
66270         with a minor change.
66271
66272 2005-07-15  Bruno Haible  <bruno@clisp.org>
66273
66274         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
66275         When using lib/poll.c, define poll as rpl_poll.
66276
66277 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
66278
66279         * modules/argp (Depends-on): Remove unlocked-io.
66280
66281 2005-07-14  Derek Price  <derek@ximbiot.com>
66282
66283         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
66284         for glob symlink bug.
66285
66286 2005-07-14  Bruno Haible  <bruno@clisp.org>
66287
66288         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
66289         Instead, test for *_unlocked function declarations directly.
66290
66291 2005-07-11  Simon Josefsson  <jas@extundo.com>
66292
66293         * modules/size_max: New file.
66294
66295         * modules/xsize: Depend on size_max module for size_max.m4.
66296
66297 2005-07-11  Simon Josefsson  <jas@extundo.com>
66298
66299         * lib/size_max.h: New file.
66300
66301 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
66302
66303         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
66304         copyright symbol and the year.
66305         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
66306         (version_etc_va): Use parameterized copyright notice.
66307         Reword to conform to the current GNU coding standards.
66308
66309 2005-07-11  Karl Berry  <karl@gnu.org>
66310
66311         * doc/gnulib.texi (Quoting): new node.
66312         (Initial import): more info, from Patrice.
66313
66314 2005-07-11  Bruno Haible  <bruno@clisp.org>
66315
66316         * gnulib-tool (func_usage): Document option --avoid.
66317         (Command line options): Handle --avoid.
66318         (func_acceptable): New function.
66319         (func_modules_transitive_closure): Use it.
66320
66321 2005-07-11  Bruno Haible  <bruno@clisp.org>
66322
66323         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
66324         Reported by Jim Meyering.
66325
66326 2005-07-10  Bruno Haible  <bruno@clisp.org>
66327
66328         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
66329         Needed when size_t is smaller than 'unsigned int'.
66330         Reported by Paul Eggert.
66331
66332 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66333
66334         * modules/argp (Depends-on): Add unlocked-io
66335
66336 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66337
66338         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
66339         block of defines.
66340
66341 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66342
66343         * config/srclist.txt: Comment out regcomp.c, since we have a porting
66344         fix now.
66345
66346 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
66347         and Paul Eggert  <eggert@cs.ucla.edu>
66348
66349         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
66350         in wint_t, not wchar_t.  Remove now-unnecessary cast.
66351
66352 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66353
66354         * modules/regex (Files): Add lib/regex_internal.c,
66355         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
66356         (Depends-on): Add extensions.
66357         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
66358
66359 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66360
66361         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
66362         pathconf.
66363         * m4/same.m4 (gl_SAME): Likewise.
66364         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
66365
66366         * m4/regex.m4: Adjust to new libc regex implementation.
66367         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
66368         all the .c and .h parts of (the new) regex.
66369         Quote the m4 stuff better.
66370         Check for RE_ICASE bug of old gnulib.
66371         Check for REG_STARTEND of recent libc.
66372         Rename local variables from jm_* to gl_*.
66373         Quote operand of "test -f".
66374         Say "recent enough" version of libc, not "version 2".
66375         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
66376         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
66377         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
66378         Remove check for btowc, isascii.
66379         Require AM_LANGINFO_CODESET.
66380
66381 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66382
66383         * lib/regex.c, regex.h: Sync from libc.
66384         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
66385         * lib/regexec.c:
66386         New files, synced from libc, except that regex_internal.h
66387         currently has a small porting fix.
66388
66389 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66390
66391         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
66392         regex_internal.c, regexec.c.
66393         Add regex_internal.h too, but as a comment, since the libc version
66394         is currently broken in gnulib mode.
66395
66396 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66397
66398         Support programs like Emacs that use gnulib but not gettext.
66399         * MODULES.html.sh (Internationalization functions): Add gettext-h.
66400         * modules/gettext-h: New file.
66401         * modules/gettext (Files): Remove lib/gettext.h.
66402         (Depends-on): Add gettext-h.
66403         (Makefile.am): Remove lib_SOURCES.
66404         * modules/argmatch, modules/c-stack, modules/closeout:
66405         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
66406         * modules/execute, modules/file-type, modules/getaddrinfo:
66407         * modules/getopt, modules/human, modules/javacomp:
66408         * modules/javaexec, modules/mkdir-p, modules/obstack:
66409         * modules/openat, modules/pagealign_alloc, modules/pipe:
66410         * modules/quotearg, modules/regex, modules/rpmatch:
66411         * modules/unicodeio, modules/userspec, modules/version-etc:
66412         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
66413         * modules/xsetenv:
66414         Depend on gettext-h, not gettext.
66415
66416 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66417
66418         * gnulib-tool (func_import): Add support for 'public domain' license.
66419         * modules/alloca, modules/atexit, modules/memmove:
66420         Now public domain, not GPL.
66421         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
66422         * modules/realloc, modules/strerror, modules/strtod:
66423         Now LGPL, not GPL.
66424
66425 2005-07-05  Bruno Haible  <bruno@clisp.org>
66426
66427         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
66428         autoconf CVS. Needed for mingw.
66429
66430 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66431
66432         Remove the dependency of the strftime module on the tzset module.
66433         * modules/strftime (Depends-on): Remove dependency on tzset.
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         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
66439         gl_FUNC_TZSET_CLOBBER.
66440
66441 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66442
66443         Remove the dependency of the strftime module on the tzset module.
66444         * lib/strftime.c (my_strftime)
66445         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
66446         Copy the input structure, to work around some of the bug with
66447         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
66448         Solaris releases, you should also use the tzset module, but we won't
66449         require it as a dependency any more since we don't want LGPLed code
66450         to depend on GPLed code.
66451
66452 2005-07-02  Jim Meyering  <jim@meyering.net>
66453
66454         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
66455         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
66456         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
66457         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
66458
66459 2005-07-02  Jim Meyering  <jim@meyering.net>
66460
66461         * lib/backupfile.c (backup_args): Change a `0' to NULL.
66462
66463 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66464
66465         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
66466         declares only 'struct timespec;' (!).
66467
66468 2005-07-01  Jim Meyering  <jim@meyering.net>
66469
66470         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
66471         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
66472         * lib/save-cwd.c, tempname.c:
66473         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66474         and don't include <sys/file.h>).
66475
66476 2005-06-29  Jim Meyering  <jim@meyering.net>
66477
66478         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
66479         type name.  Use the variable name instead.
66480         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
66481         Likewise.
66482
66483 2005-06-28  Simon Josefsson  <jas@extundo.com>
66484
66485         * modules/check-version (Files): Add check-version.m4.
66486
66487 2005-06-28  Simon Josefsson  <jas@extundo.com>
66488
66489         * m4/check-version.m4: New file, suggested by Jim Meyering
66490         <jim@meyering.net>.
66491
66492 2005-06-28  Simon Josefsson  <jas@extundo.com>
66493
66494         * lib/check-version.h, lib/check-version.c: New files.
66495
66496 2005-06-28  Simon Josefsson  <jas@extundo.com>
66497
66498         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
66499         collision with global variable.  Better indentation.  Don't
66500         increment buffer pointer beyond buffer end.  Based on comments
66501         from Paul Eggert <eggert@cs.ucla.edu>.
66502
66503         * lib/base64.h: Indent.
66504
66505 2005-06-28  Simon Josefsson  <jas@extundo.com>
66506
66507         * doc/gnulib.texi (Library version handling): New section.
66508
66509 2005-06-28  Jim Meyering  <jim@meyering.net>
66510
66511         * check-module (find_included_lib_files): Hard-code another
66512         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
66513         but modules/fts-lgpl (correctly) does not list those files.
66514
66515         * modules/canonicalize (Files): Add lib/pathmax.h.
66516
66517 2005-06-25  Simon Josefsson  <jas@extundo.com>
66518
66519         * modules/check-version: New file.
66520
66521 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
66522
66523         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
66524         initializer of struct addrinfo, as an indication that we don't
66525         care how many members the structure has.
66526
66527 2005-06-24  Derek Price  <derek@ximbiot.com>
66528         and Bruno Haible  <bruno@clisp.org>
66529
66530         Remove stat module & update lstat.
66531         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
66532         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66533         * m4/stat.m4: Remove this file.
66534
66535 2005-06-24  Derek Price  <derek@ximbiot.com>
66536         and Bruno Haible  <bruno@clisp.org>
66537
66538         Remove stat module & update lstat.
66539         * lib/stat.c: Remove this file...
66540         (slash_aware_lstat): ...moving this content and its support...
66541         * lib/lstat.c (rpl_lstat): ...into here.
66542         * lib/lstat.h: New file.
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         * config/srclist.txt (libc sources): Remove stat.
66549
66550 2005-06-24  Derek Price  <derek@ximbiot.com>
66551         and Bruno Haible  <bruno@clisp.org>
66552
66553         Remove stat module & update lstat.
66554         * MODULES.html.sh (stat): Remove.
66555         * MODULES.html: Regenerated.
66556         * modules/lstat (Description): Correct function name.
66557         (Files): Add "lstat.h".
66558         (Depends-on): Remove stat, add xalloc, stat-macros.
66559         * modules/stat: Remove this file.
66560         (Include): Add "lstat.h", remove <sys/stat.h>.
66561
66562 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66563
66564         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
66565         (ranged_convert): Don't save conversion in a temporary struct.
66566         This causes a warning with GCC 4.0.0, and anyway in the typical
66567         case it's not worth the extra 100 bytes or so of code.
66568         (ranged_convert, __mktime_internal): When calling a function via a
66569         pointer P, use P () rather than (*P) (), as we now assume C89 or
66570         better.
66571
66572 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66573
66574         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
66575         "who -r" failed to give output.  Problem reported by Tim Waugh.
66576
66577         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
66578         (xcalloc): Use it to avoid needless tests.
66579         Problem reported by Jim Meyering.
66580
66581 2005-06-20  Derek Price  <derek@ximbiot.com>
66582
66583         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
66584         unnecessary for Autoconfs > 2.59c.
66585
66586 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66587
66588         * lib/argp.h (__option_is_short): Check upper limit of
66589         __key. Isprint() requires its argument to have the value
66590         of an unsigned char or EOF.
66591
66592 2005-06-16  Jim Meyering  <jim@meyering.net>
66593
66594         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
66595         when either N or S is zero.
66596
66597 2005-06-16  Derek Price  <derek@ximbiot.com>
66598
66599         * m4/bison.m4: Declare YACC & YFLAGS precious.
66600
66601 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
66602
66603         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
66604         multibyte string or pattern, fall back on unibyte matching.
66605         Problem reported by James Youngman.
66606
66607 2005-06-08  Bruno Haible  <bruno@clisp.org>
66608
66609         * modules/csharpcomp: New file.
66610         * MODULES.html.sh (C#): Add csharpcomp.
66611
66612 2005-06-08  Bruno Haible  <bruno@clisp.org>
66613
66614         * m4/csharpcomp.m4: New file, from GNU gettext.
66615
66616 2005-06-08  Bruno Haible  <bruno@clisp.org>
66617
66618         * lib/csharpcomp.h: New file, from GNU gettext.
66619         * lib/csharpcomp.c: New file, from GNU gettext.
66620         * lib/csharpcomp.sh.in: New file, from GNU gettext.
66621
66622 2005-06-08  Bruno Haible  <bruno@clisp.org>
66623
66624         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
66625         warning on mingw.
66626
66627 2005-06-07  Derek Price  <derek@ximbiot.com>
66628
66629         Sync from CVS.
66630         * lib/glob_.h: Indent nested #ifdef.
66631
66632 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66633
66634         Sync from coreutils.
66635         Use "file name" when talking about file names, instead of "filename"
66636         or "path", as per the GNU coding standards.
66637         * lib/mkdir-p.c: Renamed from makepath.c.
66638         (make_dir_parents): Renamed from make_path.  All callers changed.
66639         * lib/mkdir-p.h: Likewise.  All includers changed.
66640         * lib/filenamecat.c: Renamed from path-concat.c.
66641         (file_name_concat): Renamed from path_concat.  All callers changed.
66642         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
66643         * lib/filenamecat.h: Likewise.  All includers changed.
66644         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
66645         in comments or local variable names.
66646         * lib/basename.c: Likewise.
66647         * lib/canonicalize.c, canonicalize.h: Likewise.
66648         * lib/dirname.c, dirname.h: Likewise.
66649         * lib/euidaccess.c: Likewise.
66650         * lib/exclude.c: Likewise
66651         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
66652         * lib/fsusage.c, fsuage.h: Likewise.
66653         * lib/fts.c, fts_.h: Likewise.
66654         * lib/getcwd.c: Likewise.
66655         * lib/getloadavg.c: Likewise.
66656         * lib/mkstemp.c: Likewise.
66657         * lib/mountlist.c, mountlist.h: Likewise.
66658         * lib/openat.c, openat.h: Likewise.
66659         * lib/readlink-stub.c: Likewise.
66660         * lib/readutmp.c, readutmp.h: Likewise.
66661         * lib/rename.c: Likewise.
66662         * lib/rmdir.c: Likewise.
66663         * lib/same.c: Likewise.
66664         * lib/savedir.c: Likewise.
66665         * lib/stripslash.c: Likewise.
66666         * lib/tempname.c: Likewise.
66667         * lib/xreadlink.c: Likewise.
66668         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
66669         All uses changed.
66670         * lib/exclude.h: Likewise.
66671
66672         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
66673         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66674         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
66675         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66676         * lib/pathmax.h: Include <limits.h> unconditionally, since other
66677         files have been getting away with it for years (MORE/BSD 4.3
66678         is extinct now).
66679         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
66680         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66681
66682         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
66683         Define to 256, not 255, as per modern POSIX.
66684
66685 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66686
66687         Sync from coreutils.
66688         Use "file name" when talking about file names, instead of "filename"
66689         or "path", as per the GNU coding standards.
66690         * MODULES.html.sh: mkdir-p renamed from makepath.
66691         filenamecat renamed from path-concat.
66692         * modules/filenamecat: Renamed from modules/path-concat.
66693         (Files): filenamecat.h and filenamecat.c renamed from
66694         path-concat.h and path-concat.c.
66695         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
66696         (Include): filenamecat.h, not path-concat.h.
66697         * modules/mkdir-p: Renamed from modules/makepath.
66698         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
66699         makepath.c.
66700         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
66701         (Include): mkdir-p.h, not makepath.h.
66702
66703 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66704
66705         Sync from coreutils.
66706         * m4/mkdir-p.m4: Renamed from makepath.m4.
66707         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
66708         Rename files from makepath.c to mkdir-p.c, and from
66709         makepath.h to mkdir-p.h.
66710         * m4/filenamecat.m4: Renamed from path-concat.m4.
66711         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
66712         Rename files from path-concat.c to filenamecat.c,
66713         and from path-concat.h to filenamecat.h.
66714         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
66715         "file name" in local variables or comments.
66716         * m4/rename.m4: Likewise.
66717
66718 2005-06-01  Bruno Haible  <bruno@clisp.org>
66719
66720         * modules/csharpexec: New file.
66721         * MODULES.html.sh (C#): New section.
66722
66723 2005-06-01  Bruno Haible  <bruno@clisp.org>
66724
66725         * m4/csharp.m4: New file, from GNU gettext.
66726         * m4/csharpexec.m4: New file, from GNU gettext.
66727
66728 2005-06-01  Bruno Haible  <bruno@clisp.org>
66729
66730         * lib/csharpexec.h: New file, from GNU gettext.
66731         * lib/csharpexec.c: New file, from GNU gettext.
66732         * lib/csharpexec.sh.in: New file, from GNU gettext.
66733
66734 2005-05-31  Derek Price  <derek@ximbiot.com>
66735             Paul Eggert  <eggert@cs.ucla.edu>
66736
66737         Sync from cvs.
66738         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66739
66740 2005-05-31  Derek Price  <derek@ximbiot.com>
66741             Paul Eggert  <eggert@cs.ucla.edu>
66742
66743         Sync from cvs.
66744         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66745
66746 2005-05-29  Derek Price  <derek@ximbiot.com>
66747
66748         * config/srclist.txt (glob_.h, glob.c): Add these files.
66749
66750 2005-05-29  Derek Price  <derek@ximbiot.com>
66751
66752         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
66753         * modules/glob: New file.
66754         * modules/getlogin_r: Add link to POSIX spec in description.
66755
66756 2005-05-29  Derek Price  <derek@ximbiot.com>
66757             Paul Eggert  <eggert@cs.ucla.edu>
66758
66759         * m4/glob.m4: New file.
66760
66761 2005-05-29  Derek Price  <derek@ximbiot.com>
66762             Paul Eggert  <eggert@cs.ucla.edu>
66763
66764         * lib/glob_.h, lib/glob.c: New files.
66765
66766 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66767
66768         * modules/fts (Files): Remove m4/inttypes-pri.m4.
66769         * modules/fts-lgpl (Depends-on): Remove gettext.
66770
66771 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66772
66773         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
66774         and don't require gt_INTTYPES_PRI.
66775
66776 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66777
66778         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
66779
66780         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
66781         the configuration hassle isn't worth it.
66782         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
66783         (LONGEST_MODIFIER, PRIuMAX): Remove.
66784
66785 2005-05-27  Bruno Haible  <bruno@clisp.org>
66786
66787         * lib/getlogin_r.h: Remove second include of <stddef.h>.
66788
66789 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
66790
66791         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
66792         _POSIX_PTHREAD_SEMANTICS for Solaris.
66793
66794 2005-05-25  Derek Price  <derek@ximbiot.com>
66795
66796         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
66797
66798 2005-05-25  Derek Price  <derek@ximbiot.com>
66799             Paul Eggert  <eggert@cs.ucla.edu>
66800
66801         * modules/getlogin_r, m4/getlogin_r.m4: New files.
66802         * lib/getlogin_r.c, getlogin_r.h: New files.
66803
66804 2005-05-25  Bruno Haible  <bruno@clisp.org>
66805             Derek Price  <derek@ximbiot.com>
66806
66807         * lib/getlogin_r.h: Simplify API documentation.
66808
66809 2005-05-23  Derek Price  <derek@ximbiot.com>
66810
66811         * modules/minmax (Files): Add m4/minmax.m4.
66812         (configure.ac): Add gl_MINMAX.
66813
66814 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66815
66816         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
66817         so that unistd-safer.h (GPL'ed code) need not be included.
66818
66819 2005-05-22  Bruno Haible  <bruno@clisp.org>
66820
66821         * m4/minmax.m4: New file.
66822         Based on a patch by Derek Price <derek@ximbiot.com>.
66823
66824 2005-05-22  Bruno Haible  <bruno@clisp.org>
66825
66826         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
66827         (INT64_MIN): Fix definition.
66828         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
66829
66830         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
66831         NEED_SIGNED_INT_TYPES.
66832
66833         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
66834         HAVE_SYSTEM_INTTYPES.
66835
66836 2005-05-22  Bruno Haible  <bruno@clisp.org>
66837
66838         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
66839         Also include <sys/param.h> if it defines MIN, MAX.
66840         Based on a patch by Derek Price <derek@ximbiot.com>.
66841
66842 2005-05-21  Jim Meyering  <jim@meyering.net>
66843
66844         * modules/fts (Files): Add m4/inttypes-pri.m4.
66845         (Depends-on): Add lstat and remove gettext.  Alphabetize.
66846
66847 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66848
66849         New fts module.
66850         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
66851         (setup_dir, free_dir): New functions.
66852         (enter_dir, leave_dir): Define trivial
66853         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
66854         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
66855         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
66856         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
66857         Move to fts-cycle.c.
66858         (fts_open): Use setup_dir.
66859         (fts_close): Use free_dir.
66860         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
66861         This adds a label and some gotos, but the alternatives were messier.
66862         Check for memory allocation failure when entering a dir.
66863         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
66864         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
66865         (FTS): New member fts_cycle, that is a union that contains the
66866         old active_dir_ht and cycle_state.  All uses changed to mention
66867         fts_cycle.ht and fts_cycle.state.
66868         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
66869         fts.c, with the following changes:
66870         (setup_dir, free_dir): New functions.
66871         (enter_dir): Now returns bool.  Return true if successful, false
66872         if memory exhausted.  All callers changed.
66873         Do not bother partly cleaning up on
66874         memory allocation failure; that is free_dir's job.
66875         However, free ad if hash_insert fails, to avoid memory leak.
66876         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
66877         fts->fts_options to see which union member to use.
66878
66879 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66880
66881         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
66882         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
66883
66884 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66885
66886         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
66887
66888 2005-05-20  Jim Meyering  <jim@meyering.net>
66889
66890         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
66891         Now a macro, to pacify GCC.
66892
66893 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66894
66895         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
66896         of -1.
66897
66898 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66899
66900         * lib/chown.c (rpl_chown): Return -1 on failure.
66901
66902 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66903
66904         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
66905         Don't check for stddef.h.
66906         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
66907         don't use its results.
66908         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
66909         since we include them unconditionally.  Don't require
66910         AM_STDBOOL_H, since stdbool is a prerequisite.
66911         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
66912         since we assume C89 or better.
66913         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
66914         as we don't use their results.
66915         Don't check for fchdir, memmove, memset, strrchr, as we use
66916         them unconditionally.
66917         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
66918         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
66919
66920 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66921
66922         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
66923         Include <stddef.h> unconditionally, since we assume C89 now.
66924         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
66925         * lib/fts.c: Include fts_.h first, to check interface.
66926         Do not include intprops.h; no longer needed.
66927         Include cycle-check.h and hash.h, since fts_.h no longer does.
66928         Remove unnecessary casts of closedir to void.
66929         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
66930         decide whether to decrement nlinks.
66931         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
66932         (FTS): Use struct hash_table * instead of Hash_table, so that
66933         we no longer need to include hash.h here.
66934
66935 2005-05-18  Jim Meyering  <jim@meyering.net>
66936
66937         * modules/dirfd (License): Change to LGPL.  Most of the code
66938         is already in the public domain.
66939
66940 2005-05-18  Jim Meyering  <jim@meyering.net>
66941
66942         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
66943         Reported by Yoann Vandoorselaere.
66944
66945 2005-05-17  Jim Meyering  <jim@meyering.net>
66946
66947         * m4/fts.m4: New file, from coreutils.
66948
66949 2005-05-17  Jim Meyering  <jim@meyering.net>
66950
66951         * lib/fts.c, lib/fts_.h: New files, from coreutils.
66952
66953 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66954
66955         Sync from coreutils.
66956         * m4/unlinkdir.m4: New file.
66957
66958 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66959
66960         Sync from coreutils.
66961         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
66962         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
66963         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
66964         White space changes only.
66965         * lib/makepath.c (make_path): Port to hosts where leading "//" is
66966         special.
66967         * lib/yesno.c: Include getline.h, not ctype.h.
66968         (yesno): Don't remove leading white space; POSIX doesn't allow it.
66969         Use getline to remove arbitrary restriction on response length.
66970
66971 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66972
66973         * config/srclist-update: Spell out "Street" in FSF postal
66974         mail address; this is the style the FSF seems to prefer.
66975
66976         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
66977         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
66978         this updates FSF postal mail address.
66979
66980         Sync from coreutils.
66981         * modules/unlinkdir: New file.
66982         * modules/yesno (Depends-on): Add getline.
66983         * MODULES.html.sh (File system functions): Add unlinkdir.
66984
66985 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66986
66987         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
66988         lib/strsep.h:
66989         Change the initial comment to refer to GPL, not LGPL.
66990         gnulib-tool will change it to LGPL as needed.
66991
66992         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
66993         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
66994         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
66995         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
66996         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
66997         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
66998         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
66999         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
67000         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
67001         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
67002         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
67003         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
67004         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
67005         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
67006         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
67007         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
67008         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
67009         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
67010         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
67011         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
67012         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
67013         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
67014         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
67015         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
67016         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
67017         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
67018         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
67019         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
67020         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
67021         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
67022         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
67023         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
67024         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
67025         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
67026         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
67027         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
67028         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
67029         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
67030         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
67031         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
67032         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
67033         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
67034         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
67035         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
67036         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
67037         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
67038         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
67039         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
67040         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
67041         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
67042         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67043         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
67044         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
67045         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
67046         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
67047         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
67048         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
67049         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
67050         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
67051         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
67052         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
67053         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
67054         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
67055         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
67056         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
67057         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
67058         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
67059         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
67060         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
67061         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
67062         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
67063         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
67064         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
67065         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
67066         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
67067         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
67068         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
67069         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
67070         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
67071         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
67072         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
67073         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
67074         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
67075         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
67076         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
67077         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
67078         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
67079         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
67080         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
67081         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
67082         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
67083         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
67084         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
67085         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
67086         lib/yesno.c, lib/yesno.h:
67087         Update FSF postal mail address.
67088
67089 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67090
67091         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
67092         tests/test-memmem.c, tests/test-stpncpy.c:
67093         Update FSF postal mail address.
67094
67095 2005-05-13  Bruno Haible  <bruno@clisp.org>
67096
67097         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
67098         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
67099         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
67100         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
67101         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
67102         Add support for 64-bit integers in the MSVC compiler.
67103
67104 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67105
67106         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
67107
67108 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
67109
67110         * gnulib-tool (func_import): Sort and uniquify recommended includes.
67111
67112 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
67113
67114         * doc/getdate.texi (General date syntax): Don't say that date
67115         date --iso-8601=ns generates acceptable dates; it doesn't yet.
67116         Problem reported by Nic Ferrier.
67117
67118 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67119
67120         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
67121         specified in ai_socktype. Fix invalid ai_protocol
67122         check. ai_protocol is usually set to 0 or depending on
67123         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
67124         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
67125         ai_socktype / ai_protocol in the returned addrinfo structure.
67126
67127 2005-05-10  Simon Josefsson  <jas@extundo.com>
67128
67129         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
67130         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67131
67132 2005-05-10  Karl Berry  <karl@gnu.org>
67133
67134         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
67135         (from http://www.gnu.org/licenses).
67136         * doc/COPYING.LIB: also rename to COPYING.LESSER.
67137         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
67138         fdl.texi suffices.
67139
67140 2005-05-10  Karl Berry  <karl@gnu.org>
67141
67142         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
67143         (COPYING.DOC): remove.
67144
67145         * config/srclist-update: new FSF address.
67146
67147 2005-05-10  Derek Price  <derek@ximbiot.com>
67148
67149         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
67150         possible.
67151
67152 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67153             Bruno Haible  <bruno@clisp.org>
67154
67155         * modules/inet_ntop: New file.
67156         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67157         inet_ntop.
67158
67159 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67160             Bruno Haible  <bruno@clisp.org>
67161
67162         * m4/inet_ntop.m4: New file.
67163
67164 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67165             Bruno Haible  <bruno@clisp.org>
67166
67167         * lib/inet_ntop.h: New file.
67168         * lib/inet_ntop.c: New file, from glibc with modifications.
67169
67170 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
67171
67172         * modules/time_r (License): Change to LGPL.
67173         * modules/extensions (License): Change to LGPL.  Actually,
67174         the license is more permissive than that, but currently gnulib-tool
67175         doesn't know how to handle more-permissive licenses.
67176
67177         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
67178         Problem reported by Dave Love.
67179
67180 2005-05-08  Jim Meyering  <jim@meyering.net>
67181
67182         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
67183         blank.
67184
67185 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67186
67187         * modules/argmatch (Depends-on): Add stdbool.
67188         * modules/backupfile (Depends-on): Likewise.
67189         * modules/chdir-long (Depends-on): Likewise.
67190         * modules/closeout (Depends-on): Likewise.
67191         * modules/cycle-check (Depends-on): Likewise.
67192         * modules/dirname (Depends-on): Likewise.
67193         * modules/fnmatch (Depends-on): Likewise.
67194         * modules/fsusage (Depends-on): Likewise.
67195         * modules/fwriteerror (Depends-on): Likewise.
67196         * modules/getcwd (Depends-on): Likewise.
67197         * modules/getloadavg (Depends-on): Likewise.
67198         * modules/hard-locale (Depends-on): Likewise.
67199         * modules/makepath (Depends-on): Likewise.
67200         * modules/mountlist (Depends-on): Likewise.
67201         * modules/nanosleep (Depends-on): Likewise.
67202         * modules/posixtm (Depends-on): Likewise.
67203         * modules/quotearg (Depends-on): Likewise.
67204         * modules/readtokens (Depends-on): Likewise.
67205         * modules/readtokens0 (Depends-on): Likewise.
67206         * modules/readutmp (Depends-on): Likewise.
67207         * modules/save-cwd (Depends-on): Likewise.
67208         * modules/strftime (Depends-on): Likewise.
67209         * modules/userspec (Depends-on): Likewise.
67210         * modules/utimecmp (Depends-on): Likewise.
67211         * modules/xgetcwd (Depends-on): Likewise.
67212         * modules/xnanosleep (Depends-on): Likewise.
67213         * modules/xstrtod (Depends-on): Likewise.
67214         * modules/yesno (Depends-on): Likewise.
67215
67216 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67217
67218         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
67219         needless checks.
67220
67221 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67222
67223         Merge from coreutils.  Among other things,
67224         add bulletproofing for cases where stdin, stdout, or stderr are closed.
67225         * lib/fd-safer.c: New file.
67226         * lib/fcntl-safer.h, open-safer.c: Remove.
67227         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
67228         * lib/dup-safer.c: Include unistd-safer.h first.
67229         Don't include errno.h.
67230         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
67231         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
67232         * lib/file-type.c: Rely on file-type.h change.
67233         * lib/getloadavg.c: Include unistd-safer.h.
67234         (getloadavg): Use safer open.
67235         * lib/getusershell.c: Include "stdio-safer.h".
67236         (getusershell): Use safer fopen.
67237         * lib/long-options.c (long_options): Use NULL rather than 0.
67238         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
67239         'free'.
67240         * lib/modechange.c: Likewise.
67241         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
67242         (MODE_DONE): New constant.
67243         (struct mode_change): Remove 'next' member.
67244         (make_node_op_equals): New function; like the old one of the
67245         same name, except it allocates an array.
67246         (mode_compile, mode_create_from_ref): Use it.
67247         (mode_compile): Allocate result as an array, not a linked list.
67248         Parse octal string ourself, so that we catch mistakes like "+0".
67249         (mode_adjust): Arg is an array, not a linked list.
67250         * lib/modechange.c: Include stat-macros.h, xalloc.h.
67251         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
67252         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
67253         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
67254         Remove.  This is now stat-macros.h's job.
67255         (talloc): Remove.  All callers replaced by xalloc, so that
67256         our invokers don't have to worry about reporting memory failures.
67257         (make_node_op_equals): Remove.
67258         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67259         New constants.
67260         (struct mode_change): Moved here from modechange.h.
67261         (mode_append_entry): Remove.
67262         (mode_compile): Remove MASKED_OPS arg, since it encouraged
67263         apps to have incorrect behavior.  Use simpler algorithm for head
67264         and tail.  Don't futz with umask; that's now the job of mode_adjust.
67265         Detect more invalid usages rather than having somewhat-random behavior.
67266         Don't insert an "a=" action, as that leads to incorrect behavior.
67267         (mode_compile, mode_create_from_ref): Return NULL on error instead
67268         of an enum, since now there's only one way to have an error.  All
67269         callers changed.
67270         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
67271         at the correct time.  Simplify calculation of "+u" and its ilk.
67272         Don't mishandle "+X".
67273         (mode_free): Remove "register" and localize decls.
67274         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67275         (struct mode_change): Move to modechange.c; callers don't
67276         need to see this stuff.
67277         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
67278         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
67279         (mode_change, mode_adjust): Reflect the new signatures noted above.
67280         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
67281         that might redefine system include files.
67282         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
67283         (my_usleep): Use NULL rather than (void *) 0.
67284         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
67285         Use siginterrupt to specify that system calls should be interrupted.
67286         (rpl_nanosleep): Move initialization of suspended closer to call of
67287         my_usleep.
67288         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
67289         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
67290         (desirable_utmp_entry): New function.
67291         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
67292         using x2nrealloc, to simplify logic.
67293         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
67294         size calculation.  Do not assume utmp file is a regular file.
67295         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
67296         (READ_UTMP_CHECK_PIDS): New constant.
67297         * lib/save-cwd.c: Include unistd-safer.h.
67298         (save_cwd): Use fd_safer.
67299         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
67300         [!_LIBC] Include "stat-macros.h" instead.
67301         * lib/unistd-safer.h (fd_safer): New decl.
67302
67303 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67304
67305         * modules/getloadavg (Depends-on): Add unistd-safer.
67306         * modules/getusershell (Depends-on): Add stdio-safer.
67307         * modules/lstat (Depends-on): Remove xalloc.
67308         * modules/mkstemp (Depends-on): Add stat-macros.
67309         * modules/modechange (Depends-on): Remove xstrtol.
67310         Add stat-macros, xalloc.
67311         * modules/save-cwd (Depends-on): Add unistd-safer.
67312         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
67313         * modules/unistd-safer (Files): Add lib/fd-safer.c
67314         (Makefile.am): Remove lib_SOURCES.
67315
67316         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
67317         Remove fcntl-safer; unistd-safer supersedes it.
67318
67319 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67320
67321         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
67322         AC_HEADER_STAT.
67323         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
67324         (gl_PREREQ_CHOWN): Remove.
67325         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
67326         it.  Don't require AC_HEADER_STAT.
67327         (gl_PREREQ_LSTAT): Remove.
67328         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
67329         Don't require AC_HEADER_STAT.
67330         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
67331         (gl_PREREQ_RMDIR): Remove.
67332         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
67333         mention stat-macros.h or AC_HEADER_STAT, since we'll make
67334         the stat-macros module a prerequisite.
67335         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
67336         * m4/filemode.m4 (gl_FILEMODE): Likewise.
67337         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
67338         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
67339         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
67340         variable names.
67341         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
67342         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
67343         variable prefixes.
67344         * m4/fcntl-safer.m4: Remove.
67345         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
67346         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
67347         Invoke gl_PREREQ_FD_SAFER.
67348         (gl_PREREQ_FD_SAFER): New macro.
67349         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
67350         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
67351         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
67352         Remove duplicate call to AC_LIBOBJ(readutmp).
67353         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
67354
67355         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
67356         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
67357
67358 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67359
67360         * MODULES.html.sh (Misc): Add byteswap.
67361
67362 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67363
67364         * modules/getcwd (Depends-on): Add extensions.
67365         * modules/openat (Depends-on): Likewise.
67366
67367 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67368
67369         * modules/byteswap: New file.
67370
67371 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67372
67373         * m4/byteswap.m4: New file.
67374
67375 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67376
67377         * lib/byteswap_.h: New file.
67378
67379 2005-04-25  Karl Berry  <karl@gnu.org>
67380
67381         * m4/gettext.m4: Update from GNU gettext 0.14.4.
67382
67383 2005-04-25  Albert Chin  <china@thewrittenword.com>
67384
67385         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
67386         Toolkit C bug.
67387
67388 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
67389
67390         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
67391         (func_ln_if_changed): Remove forcibly for no error message
67392         in case file does not exist.
67393
67394 2005-04-19  Simon Josefsson  <jas@extundo.com>
67395
67396         * gnulib-tool (Options): Make --symlink mean --symbolic.
67397
67398 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
67399
67400         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
67401
67402 2005-04-16  Simon Josefsson  <jas@extundo.com>
67403
67404         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
67405
67406 2005-04-15  Simon Josefsson  <jas@extundo.com>
67407
67408         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
67409
67410 2005-04-15  Simon Josefsson  <jas@extundo.com>
67411
67412         * gnulib-tool: Rename --symlink to --symbolic.
67413
67414 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
67415
67416         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
67417         symbolic links to files instead of copying/moving.  Add --aux-dir,
67418         specifying directory relative --dir where auxiliary build tools
67419         are placed.
67420
67421 2005-04-14  Bruno Haible  <bruno@clisp.org>
67422
67423         * modules/allocsa (License): Change to LGPL.
67424         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67425
67426 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67427
67428         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
67429         that "UTC +1 second" continues to work.  Problem reported
67430         by Dmitry V. Levin.
67431         (relunit_snumber): New rule.
67432         (relunit): Use it.
67433
67434 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67435
67436         * lib/getdate.y (universal_time_zone_table): New constant.
67437         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
67438         universal_time_zone_table.
67439         (lookup_zone): Prefer universal_time_zone_table to
67440         local_time_zone_table, so that "GMT" time stamps are allowed in
67441         London during the summer.  Problem reported by Ian Abbott.
67442
67443 2005-04-12  Jim Meyering  <jim@meyering.net>
67444
67445         * lib/human.c (humblock): Set *options even when returning due to
67446         xstrtoumax conversion failure.  Thanks to a used-uninitialized
67447         warning from gcc-4.
67448
67449 2005-04-09  Jim Meyering  <jim@meyering.net>
67450
67451         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
67452         -Wuninitialized: initialize tm0.tm_year.
67453
67454 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67455
67456         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
67457         count, since there's no maximum.  All uses changed.
67458         Add member dsts_seen.
67459         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
67460         not being INT_MAX.
67461         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
67462         Use pc_rels_seen to decide whther a date is absolute.
67463
67464         * lib/getdate.y (number): Don't overwrite year.
67465         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
67466         check.
67467
67468 2005-04-02  Simon Josefsson  <jas@extundo.com>
67469
67470         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
67471         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
67472
67473 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
67474
67475         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
67476         where no absolute path name can be longer than PATH_MAX.
67477
67478 2005-03-27  Jim Meyering  <jim@meyering.net>
67479
67480         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
67481
67482 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
67483
67484         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
67485         "one's complement" -> "ones' complement" in comment, as per Knuth.
67486         "value of type" -> "type or expression" in comment.
67487         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
67488
67489 2005-03-26  Jim Meyering  <jim@meyering.net>
67490
67491         Comment nits.
67492         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
67493         Correct typos: s/or/of/.
67494
67495 2005-03-26  Jim Meyering  <jim@meyering.net>
67496
67497         * modules/check-include-files: Move to ../ and rename to...
67498         * check-module: ...this.
67499
67500 2005-03-25  Jim Meyering  <jim@meyering.net>
67501
67502         * modules/xvasprintf (Files): Add xalloc.h.
67503
67504 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67505
67506         * modules/gettext (Files): config/config.rpath ->
67507         build-aux/config.rpath
67508         * modules/iconv (Files): Likewise.
67509         Problem reported by Oskar Liljeblad.
67510
67511 2005-03-23  Jim Meyering  <jim@meyering.net>
67512
67513         * modules/check-include-files: New script to check for
67514         missing dependencies, multiple includes, etc.
67515
67516         * modules/c-strtold (Depends-on): Add xalloc.
67517         * modules/c-strtod (Depends-on): Add xalloc.
67518         * modules/hash (Depends-on): Add xalloc.
67519         (Files): Remove lib/xalloc.h.
67520
67521         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
67522         * modules/userspec (Files): Add lib/inttostr.h.
67523
67524 2005-03-23  Jim Meyering  <jim@meyering.net>
67525
67526         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
67527
67528 2005-03-22  Jim Meyering  <jim@meyering.net>
67529
67530         * modules/stat-macros: New module.
67531         * modules/canonicalize, modules/euidaccess, modules/file-type,
67532         * modules/filemode, modules/lchown, modules/makepath,
67533         * modules/rmdir, modules/stat: Depend on new stat-macros module
67534         rather than listing lib/stat-macros.h manually.
67535         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
67536
67537 2005-03-22  Jim Meyering  <jim@meyering.net>
67538
67539         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
67540
67541 2005-03-22  Bruno Haible  <bruno@clisp.org>
67542
67543         * config/srclist.txt: Replace target directory 'config' with
67544         'build-aux'.
67545         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
67546         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
67547         ../build-aux/.
67548
67549 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
67550
67551         * modules/chdir-long (Depends-on): Add mempcpy.
67552
67553         * modules/acl, modules/backupfile, modules/c-strtod,
67554         modules/c-strtold, modules/canon-host, modules/canonicalize,
67555         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
67556         modules/exclude, modules/exitfail, modules/file-type,
67557         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
67558         modules/getdate, modules/getline, modules/getpagesize,
67559         modules/getpass, modules/getugroups, modules/group-member,
67560         modules/hard-locale, modules/hash, modules/human, modules/idcache,
67561         modules/inttostr, modules/long-options, modules/makepath,
67562         modules/md5, modules/memcasecmp, modules/memcoll,
67563         modules/modechange, modules/mountlist, modules/path-concat,
67564         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
67565         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
67566         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
67567         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
67568         modules/strftime, modules/strndup, modules/strverscmp,
67569         modules/timespec, modules/unlocked-io, modules/userspec,
67570         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
67571         modules/yesno:
67572         Remove lib_SOURCES line from Makefile.am section, as this is now
67573         done automatically by the corresponding Autoconf macro.
67574
67575 2005-03-21  Jim Meyering  <jim@meyering.net>
67576
67577         Changes imported from coreutils.
67578
67579         * lib/cycle-check.c: Don't include xalloc.h.
67580
67581         * lib/path-concat.c: Don't include assert.h.
67582         (path_concat): Remove assertion that would have triggered
67583         for ABASE starting with more than one slash.
67584         Reported by Andreas Schwab.
67585
67586         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
67587         properly when ABASE is an absolute file name.
67588         Correct the description of this function.
67589         Include <assert.h>.
67590         Add an assertion and a test driver.
67591         This fixes a bug introduced on 2004-07-02.
67592         Andreas Schwab reported the resulting failure of cp --parents:
67593         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
67594
67595 2005-03-21  Jim Meyering  <jim@meyering.net>
67596
67597         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
67598         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
67599
67600 2005-03-21  Jim Meyering  <jim@meyering.net>
67601         and  Paul Eggert  <eggert@cs.ucla.edu>
67602
67603         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
67604         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
67605         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
67606         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
67607         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
67608         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
67609         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
67610         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
67611         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
67612         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
67613         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
67614         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
67615         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
67616         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
67617         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
67618         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
67619         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
67620         for these modules.
67621
67622 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
67623
67624         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
67625         (which shouldn't happen), generate nothing instead of returning 0
67626         immediately, so that nstrftime (NULL, ...) doesn't return 0.
67627
67628 2005-03-16  Bruno Haible  <bruno@clisp.org>
67629
67630         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
67631         HAVE_LONGLONG_64BIT.
67632
67633 2005-03-16  Bruno Haible  <bruno@clisp.org>
67634
67635         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
67636         HAVE_LONGLONG_64BIT.
67637
67638 2005-03-16  Bruno Haible  <bruno@clisp.org>
67639
67640         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
67641         HAVE_LONGLONG_64BIT.
67642
67643 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67644
67645         * lib/strftime.c (my_strftime): Prepend space to format so that we can
67646         reliably distinguish strftime failure from empty output on POSIX
67647         hosts.
67648
67649 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67650
67651         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
67652         (iconv_string): Don't guess a size-zero buffer, as that might cause
67653         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
67654         result would be 'too large', where 'too large' is (heuristically)
67655         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
67656         overflow concerns.  This will prevent some unwanted malloc failures
67657         when the inputs are very large.
67658
67659 2005-03-15  Karl Berry  <karl@gnu.org>
67660
67661         * config/srclist.txt (config.rpath): from gettext.
67662         * config/config.rpath: update.
67663
67664 2005-03-15  Bruno Haible  <bruno@clisp.org>
67665
67666         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
67667         to 'negate'.
67668
67669         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
67670         variable.
67671
67672         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
67673         results.
67674
67675 2005-03-14  Simon Josefsson  <jas@extundo.com>
67676
67677         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
67678         <fx@gnu.org>.
67679
67680 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
67681
67682         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
67683         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
67684         intprops.h.
67685         * lib/strtol.c: Likewise.
67686
67687 2005-03-14  Jim Meyering  <jim@meyering.net>
67688
67689         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
67690         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
67691         to be nonzero so that we (and caller) can detect the difference
67692         between a valid zero-length expansion and an error return, even
67693         when the underlying strftime fails before writing anything into
67694         that location.
67695
67696 2005-03-14  Bruno Haible  <bruno@clisp.org>
67697
67698         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
67699         Update from GNU gettext 0.14.3.
67700
67701 2005-03-10  Jim Meyering  <jim@meyering.net>
67702
67703         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
67704
67705 2005-03-10  Jim Meyering  <jim@meyering.net>
67706
67707         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
67708         so that this module works on systems without fchdir.
67709
67710 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67711
67712         Factor int-properties macros into a single file, except for
67713         glibc-related files.
67714         * lib/intprops.h: New file.
67715         * lib/getloadavg.c: Include it instead of limits.h.
67716         (INT_STRLEN_BOUND): Remove.
67717         * lib/human.c: Include intprops.h.
67718         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
67719         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
67720         302/1000.
67721         * lib/inttostr.h: Include intprops.h instead of limits.h.
67722         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
67723         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
67724         for consistency with intprops.h.
67725         (time_t_is_integer, twos_complement_arithmetic): Use them.
67726         * lib/sig2str.h: Include <signal.h>, intprops.h.
67727         (INT_STRLEN_BOUND): Remove.
67728         * lib/strftime.c (TYPE_SIGNED): Remove.
67729         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
67730         * lib/strtol.c: Adjust comments to match intprops.h.
67731         * lib/userspec.c: Include intprops.h.
67732         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
67733         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
67734         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
67735         instead of rolling our own expressions.
67736         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
67737
67738         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
67739         instead of int.
67740         (my_strftime): Do not mishandle years close to INT_MAX, by doing
67741         the right thing even if adding 1900 would overflow.  Similarly
67742         for tm_mon + 1 and tm_yday + 1.
67743         Make %Y always equivalent to %C%y, and similarly for %G and %g.
67744         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
67745         (DO_SIGNED_NUMBER): New macro.
67746         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
67747
67748 2005-03-07  Bruno Haible  <bruno@clisp.org>
67749
67750         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
67751
67752 2005-03-07  Bruno Haible  <bruno@clisp.org>
67753
67754         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
67755
67756 2005-03-04  Derek R. Price  <derek@ximbiot.com>
67757
67758         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
67759         (func_import): Only replace files via --import when they have actually
67760         changed.
67761
67762 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67763
67764         * m4/mmap-anon.m4: New file.
67765         * m4/pagealign_alloc.m4: New file.
67766
67767 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67768             Bruno Haible  <bruno@clisp.org>
67769
67770         * modules/pagealign_alloc: New file.
67771         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
67772
67773 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67774             Bruno Haible  <bruno@clisp.org>
67775
67776         * lib/pagealign_alloc.h: New file.
67777         * lib/pagealign_alloc.c: New file.
67778
67779 2005-03-03  Bruno Haible  <bruno@clisp.org>
67780
67781         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
67782         Use an all-permissive copyright notice, recommended by RMS.
67783
67784 2005-03-02  Bruno Haible  <bruno@clisp.org>
67785
67786         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
67787         of AIX, the replacement has to be done only after <string.h> is
67788         included, therefore not in config.h. stpncpy.h does the replacement,
67789         and stpncpy.c uses it.
67790
67791 2005-03-02  Bruno Haible  <bruno@clisp.org>
67792
67793         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
67794         stpncpy.c uses it.
67795
67796 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67797
67798         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
67799         The workaround isn't strictly needed for POSIX conformance, and
67800         it's too much of a pain to configure and maintain.  We'll ask
67801         people to fix their kernels instead.
67802         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
67803         (NANOSLEEP_BUG_WORKAROUND): Remove.
67804         (xnanosleep): Remove the workaround.
67805
67806 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67807
67808         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
67809         Reported by Derek Price.
67810         (Include): Add "timespec.h".
67811
67812         * modules/xnanosleep (Depends-on): Remove gethrxtime.
67813
67814 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67815
67816         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
67817         to detect nanosleep bug.
67818
67819 2005-03-01  Bruno Haible  <bruno@clisp.org>
67820
67821         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
67822
67823 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67824
67825         * modules/gethrxtime: New file.
67826         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
67827         (Depends-on): Add gethrxtime.
67828         (configure.ac): Add gl_XNANOSLEEP.
67829         (Makefile.am): Remove lib_SOURCES line.
67830
67831 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67832
67833         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
67834         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
67835
67836 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67837
67838         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
67839         * lib/timespec.h (gettime): Return void, since it always
67840         succeeds now.  All uses changed.
67841         * lib/gettime.c (gettime): Likewise.
67842         [HAVE_NANOTIME]: Prefer nanotime.
67843         Assume gettimeofday succeeds, as POSIX requires.
67844         Assime time () succeeds, since other code already does.
67845         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
67846         (timespec_subtract): Remove.
67847         (NANOSLEEP_BUG_WORKAROUND): New constant.
67848         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
67849         things considerably.  Use it only on GNU/Linux hosts, since the
67850         workaround shouldn't be needed elsewhere.
67851
67852 2005-02-24  Bruno Haible  <bruno@clisp.org>
67853
67854         * modules/gettext (Files): Add m4/glibc2.m4.
67855
67856 2005-02-24  Bruno Haible  <bruno@clisp.org>
67857
67858         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
67859         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
67860         * m4/progtest.m4:
67861         Update from GNU gettext 0.14.2.
67862         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
67863
67864 2005-02-24  Bruno Haible  <bruno@clisp.org>
67865
67866         * lib/localcharset.c: Update from GNU gettext 0.14.2.
67867         * lib/config.charset: Update from GNU gettext 0.14.2.
67868
67869 2005-02-24  Bruno Haible  <bruno@clisp.org>
67870
67871         * lib/gettext.h: Update from GNU gettext 0.14.2.
67872
67873 2005-02-23  Simon Josefsson  <jas@extundo.com>
67874
67875         * m4/iconvme.m4: New file.
67876
67877 2005-02-23  Jim Meyering  <jim@meyering.net>
67878
67879         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
67880         change.
67881         Thanks to Bruno Haible for catching it.
67882
67883 2005-02-22  Simon Josefsson  <jas@extundo.com>
67884
67885         * modules/iconvme: New file.
67886
67887         * MODULES.html.sh: Add iconvme.
67888
67889 2005-02-22  Simon Josefsson  <jas@extundo.com>
67890
67891         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
67892
67893 2005-02-22  Simon Josefsson  <jas@extundo.com>
67894
67895         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
67896
67897 2005-02-22  Jim Meyering  <jim@meyering.net>
67898
67899         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
67900         s/ifndef/ifdef/.
67901
67902 2005-02-20  Neil Conway  <neilc@samurai.com>
67903
67904         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
67905         returned by OSX/Darwin if the specified buffer is not large
67906         enough for the hostname.
67907
67908 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67909
67910         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
67911         pass it to _help, otherwise the latter coredumps trying to
67912         dereference state.root_argp.
67913
67914 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67915
67916         * modules/chdir-long (Depends-on): Add memrchr.
67917         * modules/memrchr (Files): Add lib/memrchr.h.
67918         (Include): "memrchr.h".
67919
67920 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67921
67922         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
67923
67924 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67925
67926         * lib/memrchr.h: New file.
67927         * lib/chdir-long.c: Include it.
67928         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
67929         Don't bother including stddef.h.
67930
67931 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67932
67933         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
67934         inclusion.
67935         Include <sys/types.h>, for dev_t.
67936         (ME_DUMMY, ME_REMOTE): Move from here....
67937         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
67938         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
67939         Dmitry V. Levin.
67940         Include mountlist.h first, to test the interface.
67941
67942 2005-01-29  Bruno Haible  <bruno@clisp.org>
67943
67944         * lib/progname.c (program_name): Initialize.
67945         Needed when linking statically on MacOS X.
67946
67947 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67948
67949         Sync from coreutils.
67950         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
67951         (Depends-on): Add c-strtod.
67952         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
67953
67954 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67955
67956         Sync from coreutils.
67957         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
67958
67959         Remove files that are specific to coreutils.
67960         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
67961
67962 2005-01-28  Bruno Haible  <bruno@clisp.org>
67963
67964         * modules/javacomp: New file.
67965         * MODULES.html.sh (Java): Add javacomp.
67966
67967 2005-01-28  Bruno Haible  <bruno@clisp.org>
67968
67969         * m4/javacomp.m4: New file, from GNU gettext.
67970
67971 2005-01-28  Bruno Haible  <bruno@clisp.org>
67972
67973         * lib/javacomp.sh.in: New file, from GNU gettext.
67974         * lib/javacomp.h: New file, from GNU gettext.
67975         * lib/javacomp.c: New file, from GNU gettext.
67976
67977 2005-01-26  Simon Josefsson  <jas@extundo.com>
67978
67979         * lib/gai_strerror.c: Use GPL in header.
67980
67981 2005-01-26  Bruno Haible  <bruno@clisp.org>
67982
67983         * modules/javaexec: New file.
67984         * MODULES.html.sh (Java): Add javaexec.
67985
67986 2005-01-26  Bruno Haible  <bruno@clisp.org>
67987
67988         * m4/javaexec.m4: New file, from GNU gettext.
67989
67990 2005-01-26  Bruno Haible  <bruno@clisp.org>
67991
67992         * lib/javaexec.sh.in: New file, from GNU gettext.
67993         * lib/javaexec.h: New file, from GNU gettext.
67994         * lib/javaexec.c: New file, from GNU gettext.
67995
67996 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67997
67998         * modules/lchown (Depends-on): Remove lchown.h
67999
68000 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68001
68002         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
68003         must be defined if the header file was not found, in order
68004         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
68005
68006 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68007
68008         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
68009         initializers for struct pentry_state.
68010         (__argp_error): Check return value of __asprintf
68011         (__argp_failure): Translate error message
68012
68013         * lib/argp-parse.c: Removed braces around the expansion of N_()
68014
68015 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68016
68017         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
68018         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
68019         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
68020         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
68021         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
68022         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
68023         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
68024         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
68025         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
68026         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
68027         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
68028         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
68029         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
68030         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
68031         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
68032         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
68033         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
68034         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
68035         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
68036         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
68037         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
68038         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
68039         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
68040         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
68041         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
68042         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
68043         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
68044         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
68045         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
68046         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
68047         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
68048         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
68049         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
68050         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
68051         xstrtol.m4, xstrtoumax.m4, yesno.m4:
68052         Use an all-permissive copyright notice, recommended by RMS.
68053
68054 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
68055
68056         * modules/chdir-long (Depends-on): Remove mempcpy.
68057
68058 2005-01-21  Jim Meyering  <jim@meyering.net>
68059
68060         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
68061         same value as for Solaris 9.
68062
68063         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
68064         component length.  This included changing the parameter to be
68065         of type `char *' rather than `char const *'.
68066         * lib/chdir-long.h (chdir_long): Update prototype.
68067
68068         * lib/openat.c (fdopendir, fstatat): New functions.
68069         * lib/openat.h: Include headers required for use of DIR and struct
68070         stat.
68071         [AT_SYMLINK_NOFOLLOW]: Define.
68072         (fdopendir, fstatat): Add prototypes.
68073
68074 2005-01-21  Bruno Haible  <bruno@clisp.org>
68075
68076         * modules/classpath: New file.
68077         * MODULES.html.sh (Java): Add classpath.
68078
68079 2005-01-21  Bruno Haible  <bruno@clisp.org>
68080
68081         * lib/classpath.h: New file, from GNU gettext.
68082         * lib/classpath.c: New file, from GNU gettext.
68083
68084 2005-01-20  Simon Josefsson  <jas@extundo.com>
68085
68086         * modules/version-etc-fsf: New file.
68087
68088 2005-01-20  Simon Josefsson  <jas@extundo.com>
68089
68090         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
68091         * lib/version-etc.c: Remove version_etc_copyright.
68092         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
68093         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
68094
68095 2005-01-20  Simon Josefsson  <jas@extundo.com>
68096
68097         * lib/base64.h (isbase64): Add.
68098
68099         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
68100         using a unsigned prototype, don't inline.
68101         (base64_decode): Use it.
68102
68103 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68104
68105         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
68106         it.
68107
68108 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68109
68110         * lib/save-cwd.c (save_cwd): Remove code to support the case
68111         where fchdir is missing or flaky.
68112
68113 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68114
68115         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
68116
68117 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68118
68119         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
68120         AC_LIBSOURCES now does this.
68121         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
68122         with new ullong_max module.
68123
68124 2005-01-19  Bruno Haible  <bruno@clisp.org>
68125
68126         * modules/sh-quote: New file.
68127         * MODULES.html.sh (Executing programs): Add sh-quote.
68128
68129 2005-01-19  Bruno Haible  <bruno@clisp.org>
68130
68131         * lib/sh-quote.h: New file, from GNU gettext.
68132         * lib/sh-quote.c: New file, from GNU gettext.
68133
68134 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68135
68136         Merge from coreutils.
68137         * m4/ullong_max.m4: New file.
68138         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
68139         (gl_MACROS): Assume localeconv exists.
68140
68141 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68142
68143         Merge changes from coreutils, as described below in several
68144         changelogs dated today.
68145
68146         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
68147         (O_DIRECTORY): Remove; not needed here, since "." must be
68148         a directory.  All uses removed.
68149         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
68150         universal on Suns, and we also need to test for IRIX.
68151         Revamp code to use 'if' rather than '#if'.
68152         Avoid unnecessary comparison of cwd->desc to 0.
68153
68154         * lib/utimens.c (futimens): Robustify the previous patch, by checking
68155         for known valid error numbers rather than observed invalid ones.
68156
68157 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68158
68159         * modules/ullong_max: New file.
68160
68161         * modules/chdir-long, modules/openat: New files.
68162         * modules/save-cwd (Depends-on): Depend on chdir-long.
68163         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
68164
68165 2005-01-18  Jim Meyering  <jim@meyering.net>
68166
68167         Merge from coreutils.
68168         * m4/chdir-long.m4, m4/openat.m4: New files.
68169         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
68170         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
68171         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
68172         is sane and DOES follow symlinks.  Besides, testing 20 different
68173         systems found no broken chown implementations.
68174         Prompted by a change in rsync's copy of this macro.
68175         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
68176
68177         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
68178
68179         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
68180         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
68181         NULL-means-set-to-current-time semantics.
68182         Remove temporary file immediately, rather than waiting
68183         for configure's at-exit trap code to do it.
68184
68185 2005-01-18  Jim Meyering  <jim@meyering.net>
68186
68187         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68188
68189         * lib/utimens.c (futimens): Account for the fact that futimes
68190         can also fail with errno == ENOSYS or errno == ENOENT.
68191         Patch from Dmitry V. Levin.
68192
68193         Change the name of the robust chdir function from chdir to chdir_long.
68194         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
68195         (restore_cwd): Use chdir_long, not chdir.
68196         * lib/chdir-long.c: Renamed from chdir.c.
68197         * lib/chdir-long.h: Renamed from chdir.h.
68198         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
68199         Hurd.
68200
68201 2005-01-18  Bruno Haible  <bruno@clisp.org>
68202
68203         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
68204         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
68205         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
68206         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
68207         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
68208         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
68209         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
68210         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
68211         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
68212         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
68213         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
68214         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
68215         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
68216         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
68217         Use an all-permissive copyright notice, recommended by RMS.
68218
68219 2005-01-18  Bob Proulx  <bob@proulx.com>
68220
68221         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
68222         simplify offsetof() macro construct to avoid compile failure with
68223         native HP-UX 11.0 ANSI C compiler.
68224
68225 2005-01-17  Bruno Haible  <bruno@clisp.org>
68226
68227         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
68228         redundant because stpncpy.m4 takes care of it.
68229
68230 2005-01-17  Bruno Haible  <bruno@clisp.org>
68231
68232         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
68233
68234 2005-01-17  Bruno Haible  <bruno@clisp.org>
68235
68236         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
68237         used.
68238
68239 2005-01-17  Bruno Haible  <bruno@clisp.org>
68240
68241         * lib/fwriteerror.h (fwriteerror): Change specification to include
68242         fclose.
68243         * lib/fwriteerror.c: Include <stdbool.h>.
68244         (fwriteerror): At the end, close the file stream. Record whether
68245         stdout was already closed.
68246
68247 2005-01-17  Bruno Haible  <bruno@clisp.org>
68248
68249         * lib/execute.c (environ): Declare if needed.
68250         * lib/pipe.c (environ): Likewise.
68251         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
68252
68253 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68254
68255         * modules/argp: Depend on vsnprintf
68256
68257 2005-01-10  Jim Meyering  <jim@meyering.net>
68258
68259         * modules/closeout (Depends-on): Add atexit.
68260
68261 2005-01-06  Bruno Haible  <bruno@clisp.org>
68262
68263         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
68264
68265 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68266
68267         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
68268         definitions to be after all include files, to avoid collisions.
68269         Problem reported by Bob Proulx.
68270
68271 2005-01-04  Jim Meyering  <jim@meyering.net>
68272
68273         Changes imported from coreutils.
68274         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
68275         as the mkstemp template, use a temporary directory and an
68276         8.3-friendly template to avoid trouble on systems like DJGPP.
68277         Reported by Juan M. Guerrero via Stepan Kasal.
68278         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
68279         close. Remove the temporary directory right away, rather than waiting
68280         for configure's at-exit trap code to do it.
68281         Suggestion from Stepan Kasal.
68282
68283 2005-01-01  Simon Josefsson  <jas@extundo.com>
68284
68285         * gnulib-tool: Print #include directives when --import'ing.
68286
68287 2004-12-28  Simon Josefsson  <jas@extundo.com>
68288
68289         * tests/test-base64.c: Include required header files.  Remove
68290         unused variables.
68291
68292 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68293
68294         * modules/error (Depends-on): Remove gettext.
68295
68296 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68297
68298         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
68299         not needed.  This removes a dependency on the gettext module.
68300         [defined _LIBC]: Do not include <libintl.h>; not needed.
68301
68302 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68303
68304         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
68305         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
68306
68307 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68308
68309         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
68310         HAVE_DECL_STRTOLD.
68311
68312 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68313
68314         * modules/getdate (Depends-on): Remove alloca-opt.
68315
68316 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
68319
68320 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68321
68322         * lib/argp-parse.c: Include <stddef.h>.
68323         (alignof, alignto): New macros.
68324         (parser_init): Don't assume that void * is aligned sufficiently
68325         for struct option.
68326
68327         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
68328         need to extend the stack.
68329         (YYINITDEPTH): New macro, so that the initial stack isn't overly
68330         large.
68331
68332 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68333
68334         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
68335
68336 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68337
68338         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
68339         (2004-10-24) change.  Apparently this was a false alarm.
68340
68341         * modules/getdate: Depend on alloca-opt, not alloca.
68342
68343 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68344
68345         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
68346         Remove now-obsolete comment about AIX.
68347         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
68348         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
68349         (YYMAXDEPTH): New macro.
68350
68351 2004-12-18  Simon Josefsson  <jas@extundo.com>
68352
68353         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
68354
68355 2004-12-18  Bruno Haible  <bruno@clisp.org>
68356
68357         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
68358
68359 2004-12-18  Bruno Haible  <bruno@clisp.org>
68360
68361         * lib/fatal-signal.c (fatal_signals): Make non-const.
68362         (init_fatal_signals): New function.
68363         (uninstall_handlers, install_handlers): Ignore signals that were set to
68364         SIG_IGN.
68365         (at_fatal_signal): Call init_fatal_signals.
68366         (init_fatal_signal_set): Likewise. Ignore signals that were set to
68367         SIG_IGN.
68368         Reported by Paul Eggert.
68369
68370 2004-12-18  Bruno Haible  <bruno@clisp.org>
68371
68372         * doc/alloca.texi: New file.
68373         * doc/alloca-opt.texi: New file.
68374
68375 2004-12-17  Jim Meyering  <jim@meyering.net>
68376
68377         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
68378         Otherwise, install-sh could exit with improper exit status when
68379         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
68380
68381 2004-12-16  Simon Josefsson  <jas@extundo.com>
68382
68383         * tests/test-base64.c: Add license.
68384
68385 2004-12-15  Stepan Kasal  <address@hidden>
68386
68387         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
68388
68389 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
68390
68391         * modules/getcwd (Files): Add m4/d-ino.m4.
68392         Suggested by Mark D. Baushke.
68393
68394 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68395
68396         * lib/getdate.y (textint): New member "negative".
68397         (time_zone_hhmm): New function.
68398         Expect 14 shift-reduce conflicts, not 13.
68399         (o_colon_minutes): New rule.
68400         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
68401         (yylex): Set the "negative" member of signed numbers.
68402
68403 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68404
68405         * doc/getdate.texi (Time of day items, Time zone items):
68406         Describe new formats +00:00, UTC+00:00.
68407
68408 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68409
68410         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
68411         spurious "-l"s.  Problem reported by Stepan Kasal.
68412
68413 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
68414
68415         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
68416         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
68417
68418 2004-12-04  Simon Josefsson  <jas@extundo.com>
68419
68420         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
68421         Vandoorselaere <yoann@prelude-ids.org>.
68422
68423 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68424
68425         Changes imported from coreutils.
68426         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
68427         exist.
68428         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
68429
68430 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68431
68432         Changes imported from coreutils.
68433         * lib/hard-locale.c: Assume <locale.h> exists.
68434         Include "strdup.h".
68435         (GLIBC_VERSION): New macro.
68436         (hard_locale): Assume setlocale exists.
68437         Rewrite to avoid #ifdef.
68438         Use strdup rather than malloc + strcpy.
68439         * lib/human.c: Assume <locale.h> exists.
68440         (human_readable): Assume localeconv exists.
68441
68442 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68443
68444         * modules/hard-locale (Depends-on): Add strdup.
68445
68446 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68447
68448         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
68449         convert T2, not T.  (Imported from libc.)
68450
68451 2004-11-30  Simon Josefsson  <jas@extundo.com>
68452
68453         * modules/restrict (License): Change to LGPL.
68454
68455 2004-11-30  Simon Josefsson  <jas@extundo.com>
68456
68457         * m4/restrict.m4: Add copyright and copying conditions.
68458
68459 2004-11-30  Simon Josefsson  <jas@extundo.com>
68460
68461         * m4/base64.m4: New file.
68462
68463 2004-11-30  Simon Josefsson  <jas@extundo.com>
68464
68465         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
68466         base64.
68467
68468         * tests/test-base64.c: New file.
68469
68470         * modules/base64: New file.
68471
68472 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68473
68474         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
68475         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
68476
68477         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
68478
68479 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68480
68481         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
68482         (__getcwd.c): Don't restore errno; glibc doesn't.
68483         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
68484         first, falling back to our code only if its results look suspicious.
68485         Ensure that the resulting buffer is only as large as necessary.
68486
68487         * lib/readutmp.c: Include readutmp.h first.
68488         Include <errno.h>, since readutmp.h no longer does that.
68489         * lib/readutmp.h: Don't include <errno.h>,
68490         <sys/param.h>, <time.h>; not needed to establish interface.
68491         (errno): Remove decl.
68492         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
68493         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
68494         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
68495
68496 2004-11-28  Simon Josefsson  <jas@extundo.com>
68497
68498         * lib/base64.h, base64.c: New file.
68499
68500 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68501
68502         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
68503
68504 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68505
68506         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
68507         (Depends-on): Remove pathmax, same.  Add mempcpy.
68508         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
68509         (Makefile.am): Append getcwd.h to lib_SOURCES.
68510         (Include): Add getcwd.h.
68511         (Maintainer): Change from Jim Meyering to "all, glibc",
68512         since getdate now uses intended-for-glibc code.
68513         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
68514         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
68515
68516 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68517
68518         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
68519         HP's ANSI C compiler.
68520         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
68521         Declaring int functions causes warnings on some modern systems and
68522         shouldn't be needed to compile on ancient ones.
68523         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
68524         defined.
68525
68526         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
68527         with the following changes.
68528         (__set_errno): Parenthesize properly.
68529         Include <stdbool.h>.
68530         (MIN, MAX, MATCHING_INO): New macros.
68531         (__getcwd): Define with prototype, not K&R form.
68532         Use heuristics to allocate default buffer on stack if possible.
68533         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
68534         behavior, and to avoid the PATH_MAX limit when computing
68535         ../../../../...
68536         Use MATCHING_INO to compare inode number to file.
68537         Check for arithmetic overflow in size calculations.
68538         Fix bug in reallocation of dot array that caused getcwd to fail
68539         on directories nested deeper than 75.
68540         Be more careful about saving errno on error.
68541         Do not use realloc; use only free+malloc, as this is a bit
68542         more flexible and avoids a needless copy operation.
68543         Do not inspect st_dev and st_ino for symbolic links; POSIX
68544         doesn't specify the latter.
68545         Check for closedir errors.
68546         Avoid needless casts.
68547         Use "#ifdef weak_alias" around weak_alias, to be like other
68548         glibc code.
68549         The following changes to getcwd.c have effect only when used in
68550         gnulib; they have no effect inside glibc proper.
68551         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
68552         as alloca isn't used.
68553         (alloca, __alloca): Likewise.
68554         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
68555         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
68556         unconditionally, as gnulib assumes C89 or better.
68557         Do not include <sys/param.h>.
68558         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
68559         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
68560         better.
68561         (NULL) [!defined NULL]: Remove; we assume C89 or better.
68562         Include <dirent.h> in a way that is compatible with modern Autoconf.
68563         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
68564         New macros, if not already defined.
68565         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
68566         Use "_LIBC", not "defined _LIBC", for consistency.
68567         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
68568         a mempcpy module.
68569         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
68570         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
68571         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
68572         credit only to Jim Meyering and adjust the copyright dates.
68573         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
68574         <stdlib.h>, <unistd.h>, "pathmax.h".
68575         Instead, include "xgetcwd.h" (first) and "getcwd.h".
68576         (INITIAL_BUFFER_SIZE): Remove.
68577         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
68578
68579 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68580
68581         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
68582         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
68583         Use the _ONCE methods, for efficiency.
68584         Check for fcntl.h.  In test program, include <errno.h>
68585         and <fcntl.h> if available.  Remove old K&R cruft from
68586         test program.  Check for common errors in GNU/Linux,
68587         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
68588         don't do AC_LIBOBJ, as that's getcwd.m4's job.
68589         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
68590         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
68591         name accordingly.
68592         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
68593         accommodate new getcwd.c.
68594         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
68595         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
68596         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
68597         that's all we need now.
68598
68599 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68600
68601         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
68602         argp-parse.c depends on getopt internals, that means we should
68603         always use our getopt, to be on the safe side.
68604         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
68605         order not to spoil the result of an eventual previous invocation
68606         of gl_GETOPT_SUBSTITUTE.
68607
68608 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68609
68610         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
68611         redefinition warnings. To avoid them, include the defines
68612         in `#if !defined __need_getopt ... #endif'. The only place
68613         where __getopt_argv_const is used is in definitions
68614         of getopt_long and getopt_long_only below, which are as well
68615         protected by `#ifndef __need_getopt'.
68616         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
68617         __need_getopt after including <stdio.h> and <unistd.h> These
68618         headers might have defined it.
68619
68620 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68621
68622         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
68623
68624 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68625
68626         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
68627         (futimens): New function, which uses futimes if available.
68628         (futimens, utimens): Support timespec==NULL, with same semantics
68629         as utime and utimens.
68630         * lib/utimens.h (futimens): New decl.
68631
68632 2004-11-23  Jim Meyering  <jim@meyering.net>
68633
68634         * lib/getopt_.h: Remove trailing blanks.
68635
68636 2004-11-23  Jim Meyering  <jim@meyering.net>
68637
68638         * lib/__fpending.c: Add comment.
68639
68640 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
68641
68642         * modules/canonicalize (Depends-on): Add xreadlink.
68643         Problem reported by James Youngman.
68644
68645 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68646
68647         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
68648         New macros.
68649         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
68650         optopt): Use them instead of invoking ## directly; otherwise, the
68651         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
68652
68653 2004-11-19  Bruno Haible  <bruno@clisp.org>
68654
68655         * lib/strtok_r.c: Move comments from here...
68656         * lib/strtok_r.h: ... to here.
68657
68658 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68659
68660         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
68661         implementations that mishandle size_t overflow.
68662
68663 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68664
68665         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
68666         might fail.  Problem reported by Yoann Vandoorselaere.
68667         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
68668         implementations that mishandle size_t overflow.
68669
68670 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68671
68672         * modules/canon-host (Depends-on): Add strdup.
68673
68674 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68675
68676         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
68677
68678 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68679
68680         * lib/canon-host.c: Include "strdup.h".
68681         (canon_host): Use getaddrinfo if available, so that IPv6 works.
68682         Use strdup instead of malloc/strcpy to duplicate strings.
68683
68684         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
68685         (human_space_before_unit): New constant.
68686         * lib/human.c (human_readable): Support it.
68687
68688         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
68689         (xgetcwd): Set errno correctly when failing.
68690         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
68691         the failure is actually due to a PATH_MAX problem.
68692
68693         Further getopt changes to make it more likely that glibc will
68694         buy the changes back.
68695         * lib/getopt.c (POSIXLY_CORRECT): New constant.
68696         (getopt): Use it, so to preserve glibc semantic
68697         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
68698         when compiling for libc.
68699         * lib/getopt_.h (__getopt_argv_const): Bring it back.
68700         (getopt_long, getopt_long_only): Use it.
68701
68702         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68703         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
68704         (getopt): Argv is now char * const *, as per standard.
68705         (_getopt_internal_r, _getopt_internal): Argv is now char **,
68706         not char *__getopt_argv_const *.
68707         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68708         _getopt_long_only_r): Likewise.
68709         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
68710         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68711         _getopt_long_r, _getopt_long_only_r): Likewise.
68712         * lib/getopt_.h (__getopt_argv_const): Remove.
68713         (getopt): Argv is now char * const *, as per standard.
68714
68715         * lib/getdate.y (tORDINAL): New token.
68716         (day, relunit): Allow it for relative times.
68717         (relative_time_table): Use tORDINAL for ordinals.
68718
68719 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68720
68721         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
68722         Document that "second" isn't allowed as an ordinal number.
68723
68724 2004-11-16  Jim Meyering  <jim@meyering.net>
68725
68726         * modules/closeout (Depends-on): Add fpending.
68727
68728 2004-11-15  Jim Meyering  <jim@meyering.net>
68729
68730         * lib/closeout.c: Include "__fpending.h" once again.
68731         Include <stdbool.h>.
68732         (close_stdout): Don't fail just because stdout was closed initially,
68733         since some programs don't write to stdout in the normal course of
68734         operation (other than --version and --help), and we don't want this
68735         function to make e.g. `touch file >&-' fail.
68736         But do fail if it was closed and someone has tried to write to it.
68737         E.g., `printf foo >&-' must fail.
68738
68739 2004-11-13  Jim Meyering  <jim@meyering.net>
68740
68741         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
68742
68743 2004-11-12  Simon Josefsson  <jas@extundo.com>
68744
68745         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
68746         small doc fix is still pending.
68747
68748 2004-11-11  Simon Josefsson  <jas@extundo.com>
68749
68750         * modules/strtok_r: New file.
68751
68752         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68753         strtok_r.
68754
68755 2004-11-11  Simon Josefsson  <jas@extundo.com>
68756
68757         * m4/strtok_r.m4: New file.
68758
68759         * m4/getopt.m4: Replace opterr.
68760
68761 2004-11-11  Simon Josefsson  <jas@extundo.com>
68762
68763         * lib/strtok_r.h, strtok_r.c: New file.
68764
68765 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68766
68767         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
68768         of replacing opterr, getopt, etc.  This should handle the
68769         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
68770
68771 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68772
68773         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
68774         we can stop lying to compilers about the constness of argv when we
68775         are compiled outside glibc.
68776         (getopt, getopt_long, getopt_long_only): Use it.
68777         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68778         _getopt_internal, getopt): Likewise.
68779         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68780         _getopt_long_only_r): Likewise.
68781         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68782         _getopt_long_r, _getopt_long_only_r): Likewise.
68783
68784         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
68785         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
68786         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
68787         the other external symbols.
68788         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
68789         declaration, since the above renaming now works around collisions.
68790
68791 2004-11-11  Jim Meyering  <jim@meyering.net>
68792
68793         * lib/linebreak.c: Remove trailing blanks.
68794         * lib/alloca_.h: Likewise.
68795         * lib/acosl.c: Likewise.
68796         * lib/euidaccess.c: Likewise.
68797         * lib/allocsa.h: Likewise.
68798
68799 2004-11-10  Simon Josefsson  <jas@extundo.com>
68800
68801         * m4/getaddrinfo.m4: New file.
68802
68803 2004-11-10  Simon Josefsson  <jas@extundo.com>
68804
68805         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
68806
68807 2004-11-10  Simon Josefsson  <jas@extundo.com>
68808
68809         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68810         getaddrinfo.
68811
68812         * modules/getaddrinfo: New file.
68813
68814 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68815
68816         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
68817
68818 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68819
68820         * lib/mktime.c (SHR): New macro, which is a portable
68821         substitute for >> that should work even on Crays.
68822         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
68823         Problem reported by Mark D. Baushke in
68824         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
68825         * lib/getdate.y (SHR): Likewise.
68826         (tm_diff): Use it.
68827         * lib/strftime.c (SHR): Likewise.
68828         (tm_diff): Use it.
68829         * lib/quotearg.c (struct quoting_options): Use unsigned int for
68830         quote_these_too, so that right shifts are well defined.  All uses
68831         changed.
68832
68833 2004-11-10  Jim Meyering  <jim@meyering.net>
68834
68835         Ensure that no close failure goes unreported.
68836         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
68837         return early when it seems there's nothing to flush.
68838         Don't include __fpending.h.
68839
68840 2004-11-10  Jim Meyering  <jim@meyering.net>
68841
68842         * modules/closeout (Depends-on): Remove fpending.
68843
68844 2004-11-10  Jim Meyering  <jim@meyering.net>
68845
68846         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
68847
68848 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68849
68850         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
68851         gl_FUNC_STRFTIME.
68852         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
68853         and AC_REQUIRE when possible, to avoid duplicate checks.
68854         Check for <wchar.h>.
68855
68856 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68857
68858         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
68859
68860 2004-11-09  Bruno Haible  <bruno@clisp.org>
68861
68862         * m4/sockpfaf.m4: New file.
68863
68864 2004-11-05  Bruno Haible  <bruno@clisp.org>
68865
68866         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
68867         Reported by Mark D. Baushke <mdb@cvshome.org>.
68868
68869 2004-11-04  Bruno Haible  <bruno@clisp.org>
68870
68871         2004-09-11  Bruno Haible  <bruno@clisp.org>
68872                 * allocsa.valgrind: New file.
68873         2004-02-06  Bruno Haible  <bruno@clisp.org>
68874                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
68875                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
68876                 Reported by Christopher Seip <chris.seip@hp.com>.
68877
68878 2004-11-04  Bruno Haible  <bruno@clisp.org>
68879
68880         * modules/allocsa (Files): Add lib/allocsa.valgrind.
68881         (Makefile.am): Distribute it.
68882
68883 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68884
68885         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
68886         with errno == ERANGE if the buffer is too small.
68887         Problem reported by Mark D. Baushke.
68888
68889 2004-11-03  Albert Chin  <china@thewrittenword.com>
68890             Paul Eggert  <eggert@cs.ucla.edu>
68891
68892         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
68893         equivalent, substitute $ac_type for equivalent type rather than
68894         blindly using uint32_t *always* which won't work if uint32_t is not
68895         available.  Define _UINT32_T to work around typedef of uint32_t if
68896         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
68897         2.5.1.
68898
68899 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68900
68901         * m4/jm-macros.m4: Sync from coreutils.
68902         (gl_MACROS): Check for mbrlen, for pathchk.
68903         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68904
68905 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68906
68907         * lib/xreadlink.c (MAXSIZE): New macro.
68908         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
68909         size does not exceed MAXSIZE.  Avoid cast.
68910         As suggested by Mark D. Baushke in
68911         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
68912         if readlink fails with buffer size just under MAXSIZE, try again
68913         with MAXSIZE.
68914
68915 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68916
68917         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
68918
68919 2004-11-02  Derek R. Price  <derek@ximbiot.com>
68920         and  Paul Eggert  <eggert@cs.ucla.edu>
68921
68922         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
68923         (get_date): Overparenthesize to avoid GCC warning.
68924
68925 2004-11-02  Bruno Haible  <bruno@clisp.org>
68926
68927         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
68928         returns void.
68929
68930 2004-11-02  Bruno Haible  <bruno@clisp.org>
68931
68932         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
68933         function returns void.
68934
68935 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68936
68937         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
68938         fflush_unlocked, flockfile, funlockfile, funlockfile,
68939         fputs_unlocked, putc_unlocked.
68940
68941 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68942
68943         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68944         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
68945         already declared.
68946
68947 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68948
68949         * modules/getdate (Files): Add doc/getdate.texi.
68950         (Depends-on): Add setenv, xalloc.
68951
68952 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68953
68954         * lib/getdate.y: Add support for TZ="foo" within a date string.
68955         Fix some bugs near time_t boundaries.  Reject dates with
68956         out-of-range components, e.g., "Sept 31".
68957         Include <stdlib.h>, "setenv.h", "xalloc.h".
68958         (ISDIGIT_LOCALE): Remove; unused.
68959         Note that the TZ and time functions used here are not reentrant.
68960         (mktime_ok, get_tz): New functions.
68961         (TZBUFSIZE): New constant.
68962         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
68963         This requires that we sometimes generate our own TZ="XXX..." setting.
68964
68965 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68966
68967         * doc/getdate.texi: New file, from coreutils with modifications for
68968         the new TZ parsing.
68969
68970 2004-10-27  Derek R. Price  <derek@ximbiot.com>
68971
68972         * lib/mktime.c (not_equal_tm): Remove redundant check.
68973
68974 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68975
68976         * modules/regex (lib_SOURCES): Add regex.c.
68977         Reported by James Youngman in
68978         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
68979
68980 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68981
68982         * lib/getdate.y: Use Bison 1.875 features, and some minor
68983         code cleanups.  This change does not affect semantics.
68984         Don't include <stdlib.h>; no longer needed.
68985         Don't include unlocked-io.h; only the "#if TEST" code uses
68986         stdio, and performance isn't crucial there.
68987         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
68988         Bison 1.875 features as described below.
68989         All uses of "PC." replaced by "pc->".
68990         (YYSTYPE): Add a forward declaration.
68991         (yylex, yyerror): Use full prototypes in forward decls.
68992         Use "%pure-parser" rather than obsolescent "%pure_parser".
68993         Use %parse-param and %lex-param instead of obsolescent
68994         YYPARSE_PARAM and YYLEX_PARAM.
68995         (meridian_table, month_and_day_table, time_units_table,
68996         relative_time_table, time_zone_table, military_table,
68997         lookup_zone, lookup_word, get_date):
68998         Use NULL instead of 0 where appropriate.
68999         (to_hour): Avoid abort (), to avoid a dependency on
69000         stdlib.h.
69001         (yyerror, yylex): Now accepts parser_control * arg.
69002         (main) [TEST]: Use '\0' rather than 0 for char.
69003
69004 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69005
69006         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
69007
69008 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69009
69010         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
69011         It's now the caller's responsibility to handle the case where
69012         !HAVE_GETPAGESIZE && !defined getpagesize.
69013
69014         * lib/mktime.c (leapyear): Arg is long int, not int.
69015
69016 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
69017
69018         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
69019
69020 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69021
69022         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
69023         missing.  Problem reported by James Youngman.
69024
69025 2004-10-16  Simon Josefsson  <jas@extundo.com>
69026
69027         * gnulib-tool: Fix comments.  Fix parse problem.
69028         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
69029
69030 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
69031
69032         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
69033         implementation of getopt_long.  Problem reported by Alexander Taler in:
69034         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
69035
69036 2004-10-15  Bruno Haible  <bruno@clisp.org>
69037
69038         * gnulib-tool: Untabify. Initialize supplied_libname.
69039         (func_usage): More homogenous output.
69040         (func_modules_transitive_closure, func_modules_to_filelist,
69041         func_emit_lib_Makefile_am): New functions.
69042         (func_import): New function, extracted from big case statement. Use
69043         func_get_license, func_modules_transitive_closure,
69044         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
69045         opt_lgpl. Don't use test -a, as it's not portable.
69046         (func_create_testdir): Use func_modules_transitive_closure,
69047         func_modules_to_filelist, func_emit_lib_Makefile_am.
69048
69049 2004-10-15  Bruno Haible  <bruno@clisp.org>
69050
69051         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
69052
69053 2004-10-15  Bruno Haible  <bruno@clisp.org>
69054
69055         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
69056         the portions belonging to each module.
69057         Suggested by Derek Robert Price <derek@ximbiot.com>.
69058
69059 2004-10-12  Simon Josefsson  <jas@extundo.com>
69060
69061         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69062         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
69063         to real functions.
69064
69065 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69066
69067         * modules/vsnprintf: New file.
69068
69069 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69070
69071         * m4/vsnprintf.m4: New file.
69072
69073 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69074
69075         * lib/vsnprintf.h: New file.
69076         * lib/vsnprintf.c: New file.
69077
69078 2004-10-11  Bruno Haible  <bruno@clisp.org>
69079
69080         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
69081         vsnprintf.
69082
69083 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69084
69085         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
69086
69087 2004-10-07  Bruno Haible  <bruno@clisp.org>
69088
69089         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
69090         fits into the provided buffer.
69091
69092 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69093
69094         * lib/diacrit.c, diacrit.h: Add GPL notice.
69095
69096         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
69097         notice.
69098         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
69099         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
69100         This avoids a potential constant-folding bug.
69101
69102 2004-10-05  Bruno Haible  <bruno@clisp.org>
69103
69104         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
69105         for the declaration of strsep.
69106
69107 2004-10-05  Bruno Haible  <bruno@clisp.org>
69108
69109         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
69110
69111 2004-10-04  Simon Josefsson  <jas@extundo.com>
69112
69113         * modules/memmem: New file.
69114         * tests/test-memmem.c: New file.
69115         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
69116
69117 2004-10-04  Simon Josefsson  <jas@extundo.com>
69118
69119         * m4/memmem.m4: New file.
69120
69121 2004-10-04  Simon Josefsson  <jas@extundo.com>
69122
69123         * lib/memmem.h: New file.
69124         * lib/memmem.c: New file, taken from glibc.
69125
69126 2004-10-04  Simon Josefsson  <jas@extundo.com>
69127
69128         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
69129         '#ifdef USE_UNLOCKED_IO'.
69130
69131 2004-10-04  Simon Josefsson  <jas@extundo.com>
69132
69133         * config/srclist.txt: Add memmem from glibc.
69134
69135 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69136
69137         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
69138
69139         * modules/argmatch, modules/argp, modules/closeout, modules/error,
69140         modules/exclude, modules/getdate, modules/getline,
69141         modules/getndelim2, modules/getpass, modules/getpass-gnu,
69142         modules/getusershell, modules/linebuffer, modules/md5,
69143         modules/mountlist, modules/posixtm, modules/readtokens,
69144         modules/readutmp, modules/regex, modules/sha1,
69145         modules/version-etc, modules/yesno:
69146         Remove dependency on unlocked-io.
69147
69148 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69149
69150         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
69151
69152         * m4/unlocked-io.m4: Add copyright notice.
69153         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
69154
69155 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69156
69157         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
69158         * lib/xmalloc.c (xmemdup): Likewise.
69159         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
69160         XFREE): Remove these long-obsolescent macros.
69161         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
69162         * lib/xstrdup.c: Remove.
69163
69164         * lib/regex.c (re_comp): Cast gettext return value to char *,
69165         Problem reported by Martin Neitzel via Mark D. Baushke.
69166
69167 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69168
69169         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
69170         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
69171         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
69172         regex.c, sha1.c, version-etc.c, yesno.c:
69173         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
69174         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
69175         the includer's responsibility.
69176
69177         Sync from coreutils.
69178
69179         * lib/modechange.c (mode_compile): Don't decrement a pointer that
69180         points to the start of a string, as the C Standard says the
69181         resulting behavior is undefined.
69182
69183         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
69184         simple -> simple_backups, numbered_existing ->
69185         numbered_existing_backups, numbered -> numbered_backups
69186         to avoid shadowing problems.  All uses changed.
69187         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
69188         * lib/backupfile.c (check_extension, numbered_backup):
69189         Rename locals to avoid shadowing 'basename'.
69190         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
69191         once.
69192
69193         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
69194         * lib/.cvsignore: Add getopt.h.
69195
69196 2004-10-04  Bruno Haible  <bruno@clisp.org>
69197
69198         * modules/README: New file.
69199         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
69200         not a module.
69201
69202 2004-10-02  Jim Meyering  <jim@meyering.net>
69203
69204         * lib/dirfd.h, getpagesize.h: Add copyright notice.
69205
69206 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69207
69208         * modules/strsep: New file.
69209
69210 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69211
69212         * m4/strsep.m4: New file.
69213
69214 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69215
69216         * lib/strsep.h: New file.
69217         * lib/strsep.c: New file.
69218
69219 2004-10-01  Simon Josefsson  <jas@extundo.com>
69220
69221         * lib/snprintf.c (snprintf): Handle size==0.
69222
69223 2004-10-01  Simon Josefsson  <jas@extundo.com>
69224             Bruno Haible  <bruno@clisp.org>
69225
69226         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
69227         (snprintf): Declare 'args'.
69228
69229 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
69230
69231         * lib/snprintf.c: Remove comments as to why each header is needed.
69232
69233 2004-10-01  Bruno Haible  <bruno@clisp.org>
69234
69235         * MODULES.html.sh: Add strsep.
69236
69237 2004-09-30  Simon Josefsson  <jas@extundo.com>
69238
69239         * modules/snprintf: New file.
69240
69241 2004-09-30  Simon Josefsson  <jas@extundo.com>
69242
69243         * m4/snprintf.m4: New file.
69244
69245 2004-09-30  Simon Josefsson  <jas@extundo.com>
69246
69247         * lib/snprintf.h, lib/snprintf.c: New files.
69248
69249 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69250
69251         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
69252         (hol_entry_help): Never translate an empty string.
69253         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
69254         * lib/argp.h (OPTION_NO_TRANS): New option.
69255
69256 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69257
69258         * modules/argp (Maintainer): Replace Simon Josefsson
69259         by Sergey Poznyakoff.
69260
69261 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69262
69263         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
69264         changes merged back into glibc.
69265
69266 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69267
69268         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
69269
69270 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69271
69272         * lib/xvasprintf.c: Include xalloc.h.
69273         (xvasprintf): Use xalloc_die, not xmalloc_die.
69274
69275 2004-09-29  Bruno Haible  <bruno@clisp.org>
69276
69277         * modules/alloca-opt: New file, derived from modules/alloca.
69278         * modules/allocsa: Depend on alloca-opt instead of alloca.
69279         * modules/setenv: Likewise.
69280         * modules/vasnprintf: Likewise.
69281         * MODULES.html.sh: Add alloca-opt.
69282
69283 2004-09-28  Simon Josefsson  <jas@extundo.com>
69284
69285         * gnulib-tool: New parameter --lgpl, to asseert that modules are
69286         LGPL, and to replace license template from GPL to LGPL.
69287
69288 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69289
69290         * modules/dummy: Change license to LGPL.
69291
69292 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69293
69294         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
69295
69296 2004-09-24  Simon Josefsson  <jas@extundo.com>
69297
69298         * modules/minmax (License): Change from GPL to LGPL.
69299
69300 2004-09-23  Simon Josefsson  <jas@extundo.com>
69301
69302         * gnulib-tool (--import): Typo.
69303
69304 2004-09-23  Simon Josefsson  <jas@extundo.com>
69305
69306         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
69307
69308 2004-09-22  Bruno Haible  <bruno@clisp.org>
69309
69310         * modules/*: Add 'License' field.
69311         * gnulib-tool: Accept --extract-license option.
69312         (func_get_license): New function.
69313
69314 2004-09-21  Bruno Haible  <bruno@clisp.org>
69315
69316         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
69317         Reported by Simon Josefsson.
69318
69319 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69320
69321         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
69322         gl_AC_TYPE_LONG_LONG.
69323
69324 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69325
69326         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
69327
69328 2004-09-18  Simon Josefsson  <jas@extundo.com>
69329         and  Paul Eggert  <eggert@cs.ucla.edu>
69330
69331         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
69332         calls with autoreconf.  Define GL_LIB.
69333
69334 2004-09-14  Karl Berry  <karl@gnu.org>
69335
69336         * config/srclist.txt: unsync setenv.c, sigh.
69337
69338 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69339
69340         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
69341         Problem reported by Bruno Haible in:
69342         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
69343
69344 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69345
69346         * config/srclist.txt: Comment out argp-pvh.c.
69347
69348 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
69349
69350         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
69351         in case some system header has #define'd it.  Problem reported by
69352         Soeren D. Schulze in
69353         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
69354
69355 2004-09-09  Karl Berry  <karl@gnu.org>
69356
69357         * regex.[ch]: delete from the root.  These were supposed to be
69358                 synced with emacs cvs, but this has not happened for about
69359                 a year, and anyway nothing else uses emacs regex.[ch].
69360                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
69361                 lib/regex[.ch] is untouched.
69362
69363 2004-09-09  Bruno Haible  <bruno@clisp.org>
69364
69365         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
69366
69367 2004-09-09  Bruno Haible  <bruno@clisp.org>
69368
69369         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
69370         modifications.
69371         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
69372
69373 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69374
69375         * modules/xvasprintf: New file.
69376         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
69377
69378 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69379
69380         * lib/xvasprintf.h: New file.
69381         * lib/xvasprintf.c: New file.
69382         * lib/xasprintf.c: New file.
69383
69384 2004-09-08  Bruno Haible  <bruno@clisp.org>
69385
69386         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
69387
69388 2004-09-08  Bruno Haible  <bruno@clisp.org>
69389
69390         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
69391         length is > INT_MAX.
69392         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
69393         more.
69394
69395 2004-09-08  Bruno Haible  <bruno@clisp.org>
69396
69397         * lib/stdint_.h: New file, taken from GNU clisp.
69398
69399 2004-09-08  Bruno Haible  <bruno@clisp.org>
69400             Oskar Liljeblad  <oskar@osk.mine.nu>
69401
69402         * modules/stdint: New file.
69403         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
69404
69405 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69406
69407         Import from coreutils.
69408         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
69409         strings on unbounded length.  alloca's performance benefits aren't
69410         that important here.
69411         (V_STRDUP): Remove.
69412         (parse_with_separator): New function, with most of the internals
69413         of the old parse_user_spec.  Allow user to omit both user and group,
69414         for compatibility with FreeBSD.
69415         Clone only the user name, not the entire spec.
69416         Do not set *uid, *gid unless entirely successful.
69417         Avoid memory leak in some failing cases.
69418         Fix regression for USER.GROUP reported by Dmitry V. Levin in
69419         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
69420         (parse_user_spec): Rewrite to use parse_with_separator.
69421
69422 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69423
69424         * modules/userspec: Don't depend on alloca.
69425
69426 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69427
69428         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
69429
69430 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69431
69432         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
69433         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
69434         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
69435
69436 2004-08-16  Simon Josefsson  <jas@extundo.com>
69437
69438         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
69439         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
69440         Add --dry-run for --import.
69441         Let user provided command line parameters override configure.ac
69442         settings.
69443
69444 2004-08-12  Simon Josefsson  <jas@extundo.com>
69445
69446         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
69447         as discussed with Paul Eggert in threads rooted at
69448         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
69449         and
69450         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
69451         Before, the test was empty, and relied on ELIDE_CODE in source
69452         code.)
69453         (gl_PREREQ_GETOPT): New macro.
69454         (gl_GETOPT): Use them.
69455
69456 2004-08-12  Simon Josefsson  <jas@extundo.com>
69457
69458         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
69459         * lib/getopt_.h: Renamed from getopt.h.
69460
69461 2004-08-12  Simon Josefsson  <jas@extundo.com>
69462
69463         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
69464         Change default library name from libfoo to libgnu.
69465         Now, if you have a configure.ac that says:
69466                 gl_SOURCE_BASE(gl)
69467                 gl_M4_BASE(gl/m4)
69468                 gl_MODULES(error getopt etcetera)
69469                 gl_INIT
69470         you can import all you need by running:
69471                 ../gnulib/gnulib-tool --import
69472
69473         * modules/getopt (Files): Rename getopt.h to getopt_.h.
69474         (Makefile.am): Rewrite, use logic from argz.
69475         (Include): Use <getopt.h> instead of "getopt.h".
69476
69477 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69478
69479         * modules/argp (Files): Add m4/unlocked-io.m4.
69480         (Depends-on): Add extensions.
69481
69482 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69483
69484         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
69485         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
69486         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
69487         Check for program_invocation_name, program_invocation_short_name,
69488         flockfile, funlockfile, features.h, _getopt_long_only_r.
69489
69490 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69491
69492         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
69493         its complicated substitute.
69494         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
69495         and program_invocation_name.
69496         (__argp_basename) [!_LIBC]: Remove; the only use was
69497         replaced by its body.
69498         (__argp_short_program_name): Change condition from
69499         !defined __argp_short_program_name to
69500         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
69501         to match argp-namefrob.h.
69502         (__argp_failure): Don't assume strerror_r returns char *.
69503         * lib/argp-parse.c (N_): Define unconditionally.
69504         (argp_default_options): Fill out initializers with 0 to avoid
69505         gcc warnings.
69506
69507 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69508
69509         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
69510         getopt1.c.
69511
69512 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69513
69514         Merge from coreutils.
69515
69516         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
69517
69518         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
69519         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
69520
69521 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69522
69523         Merge from coreutils.
69524
69525         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
69526         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
69527         for Reliant Unix 5.43.
69528
69529         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
69530         (union fooround): Use uintmax_t, not long int.
69531         The rest is a merge from libc:
69532         [defined _LIBC]: Include <shlib-compat.h>.
69533         (_obstack) [defined _LIBC]: Remove after 2.3.4.
69534
69535         * lib/settime.c (settime): Recode to avoid warning with
69536         Sun Forte C 6U2.
69537
69538         * lib/strverscmp.c: Convert to UTF-8.
69539
69540 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69541
69542         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69543         m4/uintmax_t.m4.
69544
69545 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69546
69547         * modules/xalloc-die: New file.
69548         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
69549
69550         * modules/md5 (Files): Add m4/uint32_t.m4.
69551         * modules/sha1: Renamed from modules/sha.
69552         (Files):
69553         Rename lib/sha.h to lib/sha1.h.
69554         Rename lib/sha.c to lib/sha1.c.
69555         Rename m4/sha.m4 to m4/sha1.m4.
69556         (lib_SOURCES): Likewise.
69557         (configure.ac): Rename gl_SHA to gl_SHA1.
69558         (Include): sha.h -> sha1.h.
69559
69560 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69561
69562         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
69563         * m4/sha1.m4: Renamed from sha.m4.
69564         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
69565
69566 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69567
69568         * lib/obstack.h (obstack_empty_p):
69569         Don't assume that chunk->contents is suitably aligned.
69570         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
69571         Likewise. Problem reported by Benno in
69572         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
69573
69574         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
69575         readable.  This could be improved further but it'd take some work.
69576
69577 2004-08-08  Simon Josefsson  <jas@extundo.com>
69578
69579         * modules/xgethostname (Depends-on): Remove exit and error (not
69580         used).
69581
69582         * modules/getpass-gnu: Add getpass.h.
69583         (Depends-on): Add stdbool.
69584         * modules/getpass: Add getpass.h.
69585
69586 2004-08-08  Simon Josefsson  <jas@extundo.com>
69587
69588         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
69589         Check getpass declaration.
69590
69591 2004-08-08  Simon Josefsson  <jas@extundo.com>
69592
69593         * lib/xgethostname.c: Don't include error.h (not used).
69594
69595         * lib/getpass.h: Add.
69596         * lib/getpass.c: Include getpass.h first.
69597
69598 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
69599
69600         * lib/xalloc-die.c: New file.
69601         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
69602         All uses removed.
69603         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
69604         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
69605         xalloc-die.c.
69606         (_, N_, xalloc_die): Move to xalloc-die.c.
69607         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
69608         so that we needn't mess with xalloc_msg_memory_exhausted.
69609
69610         * lib/sha1.h: Renamed from sha.h.
69611         (SHA1_H): Renamed from _SHA_H.
69612         (sha1_ctx): Renamed from sha_ctx.
69613         (sha1_init_ctx): Renamed from sha_init_ctx.
69614         (sha1_process_block): Renamed from sha_process_block.
69615         (sha1_process_bytes): Renamed from sha_process_bytes.
69616         (sha1_finish_ctx): Renamed from sha_finish_ctx.
69617         (sha1_read_ctx): Renamed from sha_read_ctx.
69618         (sha1_stream): Renamed from sha_stream.
69619         (sha1_buffer): Renamed from sha_buffer.
69620         * lib/sha1.c: Likewise; renamed from sha.c.
69621         Do not include <sys/types.h>.
69622         Include <stddef.h> rather than <stdlib.h>.
69623
69624 2004-08-08  Bruno Haible  <bruno@clisp.org>
69625
69626         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
69627         FILESYSTEM_PREFIX_LEN.
69628         * lib/progreloc.c: Likewise.
69629         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
69630
69631 2004-08-06  Simon Josefsson  <jas@extundo.com>
69632
69633         * modules/progname (Depends-on): Don't depend on stdbool.
69634
69635 2004-08-06  Simon Josefsson  <jas@extundo.com>
69636
69637         * modules/getsubopt: New file.
69638         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69639         getsubopt.
69640
69641 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69642
69643         More merge from coreutils.
69644
69645         * m4/utimens.m4, m4/utimecmp.m4: New files.
69646         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
69647         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
69648         prereq.m4, sha.m4: Import changes from coreutils.
69649
69650 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69651
69652         More merge from coreutils.
69653         * modules/raise, modules/readtokens0, modules/utimens:
69654         * modules/utimecmp, module/xnanosleep: New files.
69655         * modules/strftime: Add lib/strftime.h.
69656         Change include from <time.h> to "strftime.h".
69657         * modules/yesno: Add lib/yesno.h.
69658         * modules/backupfile: Remove lib/addext.c.
69659         * modules/euidaccess: Add stat-macros.h.
69660         * modules/canonicalize, modules/euidaccess,
69661         modules/filemode, modules/lchown, modules/makepath,
69662         modules/rmdir, modules/stat: Likewise.
69663
69664 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69665
69666         Merge from tar.
69667         * lib/argp-help.c (make_hol, hol_append): Don't assume that
69668         SIZE_MAX is a valid preprocessor constant.
69669         (__argp_basename): Change from "#ifndef _LIBC"
69670         to "#ifndef __argp_short_program_name", so that
69671         we don't compile these functions for tar.
69672
69673         More merges from coreutils.
69674         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
69675         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
69676         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
69677         * lib/addext.c: Remove; no longer needed.
69678         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
69679         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
69680         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
69681         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
69682         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
69683         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
69684         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
69685         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
69686         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
69687         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69688         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
69689         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
69690         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
69691         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
69692         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
69693         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
69694         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
69695         Import changes from coreutils.
69696
69697 2004-08-05  Simon Josefsson  <jas@extundo.com>
69698
69699         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
69700
69701 2004-08-05  Simon Josefsson  <jas@extundo.com>
69702
69703         * m4/getsubopt.m4: New file.
69704
69705 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69706
69707         Merge from coreutils.
69708
69709         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
69710         * m4/getcwd-path-max.m4: New files.
69711
69712         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
69713         FILESYSTEM_PREFIX_LEN ->
69714         FILE_SYSTEM_PREFIX_LEN.
69715         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
69716         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
69717         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
69718         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
69719
69720         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
69721         prerequisite modules now handle the DOS stuff.
69722         Don't check for unistd.h.
69723
69724 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69725
69726         Merge from coreutils.
69727
69728         * lib/.gdb-history: Remove; this doesn't belong here.
69729
69730         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
69731         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
69732         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
69733         * lib/getcwd.c: New files.
69734
69735         * lib/dirname.h: Include <stdbool.h>.
69736         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
69737         for consistency with POSIX terminology.  All uses changed.
69738         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
69739         (strip_trailing_slashes): Use bool for booleans.
69740         * lib/stripslash.c (strip_trailing_slashes): Likewise.
69741
69742         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
69743         sometimes returns a positive errno value even when it succeeds.
69744         (print_errno_message) [!LIBC]: Fall back on strerror if
69745         __strerror_r fails.
69746
69747         * lib/path-concat.c (mempcpy): Don't define if a system header defines
69748         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
69749         (longest_relative_suffix): New function.
69750         (path_concat): Use it.  Assume first argument is not NULL.
69751         Port to DOS.  Omit redundant separators.
69752         Report an error instead of returning NULL.
69753         Use mempcpy instead of memcpy.
69754         (xpath_concat): Remove: not declared or used.
69755
69756         * lib/same.h: Include <stdbool.h>
69757         (same_name): Return bool, not int.
69758         * lib/same.c (same_name): Likewise.
69759         (errno): Don't declare; we assume C89 or better now.
69760
69761         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
69762         if not already defined.
69763
69764         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
69765         * lib/dup-safer.c (errno): Likewise.
69766
69767 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69768
69769         Merge from coreutils.
69770         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
69771         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
69772         * modules/path-concat: Don't depend on strdup.
69773
69774 2004-08-03  Simon Josefsson  <jas@extundo.com>
69775
69776         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
69777         * lib/progname.h: Don't include stdbool.h.
69778
69779 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69780
69781         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
69782         * MODULES.html.sh (func_all_modules): Remove fatal.
69783
69784 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69785
69786         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
69787
69788 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69789
69790         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
69791         working.
69792
69793 2004-08-02  Simon Josefsson  <jas@extundo.com>
69794
69795         * lib/getsubopt.h: New file, with comments from Bruno Haible.
69796         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
69797         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
69798
69799 2004-08-01  Simon Josefsson  <jas@extundo.com>
69800
69801         * lib/xgetdomainname.c: Include stdlib.h, for free().
69802
69803 2004-07-19  Bruno Haible  <bruno@clisp.org>
69804
69805         * MODULES.html.sh (func_all_modules): Add dummy.
69806
69807 2004-07-16  Simon Josefsson  <jas@extundo.com>
69808
69809         * modules/dummy: New file.
69810
69811 2004-07-16  Simon Josefsson  <jas@extundo.com>
69812
69813         * lib/dummy.c: New file.
69814
69815 2004-07-16  Bruno Haible  <bruno@clisp.org>
69816
69817         * lib/backupfile.h: Add extern "C" for C++.
69818         * lib/closeout.h: Likewise.
69819         * lib/copy-file.h: Likewise.
69820         * lib/findprog.h: Likewise.
69821         * lib/full-write.h: Likewise.
69822         * lib/pathname.h: Likewise.
69823         * lib/progname.h: Likewise.
69824         * lib/stpcpy.h: Likewise.
69825         * lib/stpncpy.h: Likewise.
69826         * lib/strcase.h: Likewise.
69827         * lib/strstr.h: Likewise.
69828         * lib/xalloc.h: Likewise.
69829
69830         * lib/mbswidth.h: Add extern "C" for C++.
69831         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
69832
69833 2004-07-13  Robert Millan  <robertmh@gnu.org>
69834
69835         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
69836
69837 2004-07-09  Simon Josefsson  <jas@extundo.com>
69838
69839         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
69840         failed without this.)
69841
69842 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69843
69844         * modules/chown (Files): Add lib/fchown-stub.c, since
69845         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
69846
69847 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69848
69849         * lib/fchown-stub.c: New file.
69850
69851 2004-06-24  Jim Meyering  <jim@meyering.net>
69852
69853         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
69854
69855 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69856
69857         * modules/argz: Omit "#include".
69858
69859         * MODULES.html.sh (func_all_modules): Add calloc, to match
69860         2004-06-01 addition of calloc module.
69861
69862 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69863
69864         * m4/argz.m4: New file, which is autoupdated from libtool.
69865
69866 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69867
69868         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
69869         libtool.
69870
69871 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69872
69873         * config/srclist-update: Don't insist on "USA." before the
69874         close-comment, as libtool omits the period and puts the */ on a
69875         separate line.
69876         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
69877         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
69878
69879 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
69880
69881         * modules/argz: New file.
69882         * MODULES.html.sh (func_all_modules): Add argz.
69883
69884 2004-06-12  Jim Meyering  <jim@meyering.net>
69885         and  Paul Eggert  <eggert@cs.ucla.edu>
69886
69887         * modules/hash (Files): Add lib/xalloc.h.
69888         * modules/pipe (Depends-on): Add wait-process.
69889         * modules/stat (Depends-on): Add xalloc.
69890         * modules/userspec (Files): Add lib/userspec.h.
69891         * modules/xstrto
69892
69893         Upgrade from gettext-0.13.
69894         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
69895         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
69896         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
69897
69898 2004-06-10  Jim Meyering  <jim@meyering.net>
69899
69900         * lib/calloc.c: New file.
69901
69902 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69903
69904         * lib/getdate.y (yylex): Allow space between sign and number.
69905         Problem reported by Dan Jacobson.
69906
69907 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69908
69909         Merge from coreutils CVS.
69910
69911         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
69912         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
69913         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
69914         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
69915         xstrtol.m4: Fix copyright date and/or serial number.
69916
69917         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
69918         See if we need an fchown replacement.
69919         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
69920         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
69921         and use the replacement function if we detect either defect.
69922
69923         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
69924         gl_UTIMECMP.
69925
69926 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69927         and  Jim Meyering  <jim@meyering.net>
69928
69929         Merge from coreutils CVS.
69930
69931         * lib/stat-macros.h: New file, with contents from file-type.h
69932         and coreutils' system.h.
69933         * lib/file-type.c: Include "stat-macros.h".
69934         * lib/file-type.h (file_type): Move all macro definitions to new file,
69935         stat-macros.h.
69936
69937         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
69938         Wrap old code with this conditional.
69939         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
69940         function that does not dereference symlinks.
69941         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
69942
69943         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
69944         dependency problems.
69945         (xreadlink): Accept new arg SIZE, for efficiency.
69946         All decls and uses changed.
69947         * lib/xreadlink.h: Include <stddef.h>, for size_t.
69948
69949         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
69950         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
69951
69952         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
69953         sysexits.h.
69954
69955 2004-06-01  Jim Meyering  <jim@meyering.net>
69956
69957         * m4/calloc.m4: New file.
69958
69959 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
69960
69961         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
69962         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
69963         Also, fix a typo in a diagnostic.
69964
69965 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69966
69967         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
69968         or AC_FUNC_REALLOC.
69969
69970 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69971
69972         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
69973         macros to be defined.
69974         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
69975         the allocator returns NULL because the requested size is zero.
69976
69977 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69978
69979         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
69980         var.  Add comment explaining why libc still defines it.  This
69981         merges the following patch from glibc:
69982         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
69983
69984 2004-05-20  Andreas Schwab  <schwab@suse.de>
69985
69986         * m4/free.m4: Replace free if it not known to work, not the other
69987         way round.
69988
69989 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69990
69991         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
69992         present in glibc since revision 1.1 of this file.
69993         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
69994         obstack_alignment_mask, obstack_alloc, obstack_base,
69995         obstack_blank, obstack_blank_fast, obstack_chunk_size,
69996         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
69997         obstack_grow0, obstack_init, obstack_int_grow,
69998         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
69999         obstack_next_free, obstack_object_size, obstack_ptr_grow,
70000         obstack_ptr_grow_fast, obstack_room): Remove declarations of
70001         nonexistent functions.
70002
70003 2004-05-18  Karl Berry  <karl@gnu.org>
70004
70005         * config/srclist.txt: break link for vasnprintf.c.
70006
70007 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70008
70009         Port obstack to the AS/400, where pointers are 16 bytes wide and
70010         you cannot cast an integer to a valid pointer.  This patch is
70011         currently waiting to be integrated into glibc; see
70012         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
70013
70014         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
70015         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
70016         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
70017         (struct obstack): temp member is now a union of a pointer and
70018         an integer, instead of an integer.  All integer uses changed.
70019         This does not affect the physical layout of struct obstack,
70020         except on hosts (like the AS/400) where the size or alignment of
70021         void * is greater than that of ptrdiff_t.
70022         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
70023         __STDC__)]: Store temporary in pointer member of union, not
70024         integer member.
70025         * lib/obstack.c: Include <stddef.h>, for offsetof.
70026         (struct fooalign): Remove; it doesn't need a name.
70027         (union fooround): Change double to long double, and add void *.
70028         (DEFAULT_ALIGNMENT): Use offsetof to compute.
70029         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
70030         not a macro.  Hence the values are always int; so remove all
70031         casts-to-int in uses.
70032
70033 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70034
70035         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
70036         we can get this patch merged into glibc.
70037
70038 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70039             Paul Eggert  <eggert@cs.ucla.edu>
70040
70041         * m4/argp: Depend on alloca.
70042
70043 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70044             Paul Eggert  <eggert@cs.ucla.edu>
70045
70046         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
70047         freecoding.
70048
70049 2004-05-17  Bruno Haible  <bruno@clisp.org>
70050
70051         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
70052         precision that consists of a '.' followed by an empty digit string.
70053         Patch by Tor Lillqvist <tml@iki.fi>.
70054
70055 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70056
70057         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
70058         for backward compatibility with older code.  We need our own
70059         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
70060         it under some other name, and our alloca.h will define it.
70061
70062 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70063             Derek Price  <derek@ximbiot.com>
70064
70065         * lib/alloca.c: Include <alloca.h>, to get our interface.
70066         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
70067         include <alloca.h> first.  Use C89 prototype for alloca; this
70068         requires including <stddef.h> for size_t.  Use extern "C" if C++.
70069         Use #elif for simplicity, since we can assume C89 now.
70070         Don't try to source the system alloca.h since it will not be found
70071         and to prevent recursively including its replacement.
70072         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
70073         * lib/regex.c: Likewise.
70074
70075 2004-05-16  Derek Price  <derek@ximbiot.com>
70076             Paul Eggert  <eggert@cs.ucla.edu>
70077
70078         getline cleanup.  This changes the getndelim2 API: both order of
70079         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
70080         no delimiter).
70081
70082         * lib/getline.c: Don't include stddef.h or stdio.h, since our
70083         interface does that.
70084         (getline): Always use getdelim, so that we don't have two
70085         copies of this code.
70086         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
70087         if available.
70088         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
70089         (GETNDELIM2_MAXIMUM): New macro.
70090         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
70091         instead of the old practice of delim2==0.  All callers changed.
70092         Return -1 on overflow, instead of returning junk.
70093         Do not set *linesize unless allocation succeeds.
70094         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
70095         that we include sys/types.h.
70096         * lib/getnline.h: Likewise.
70097         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
70098         (getndelim2): Reorder arguments.
70099         * lib/getnline.c (getnline, getndelim):
70100         Don't discard the NMAX argument.
70101         (getnline): Invoke getndelim, to avoid code duplication.
70102         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
70103         of (size_t) -1 by callers of the getnline family.
70104
70105 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70106
70107         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
70108         Check for gettimeofday.
70109         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
70110         Check for settimeofday, stime.
70111
70112 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70113
70114         * lib/nanosleep.c (suspended): Change its type from int to
70115         sig_atomic_t volatile.
70116         (first_call): Make it private to rpl_nanosleep, and have it
70117         be zero initially as that's a bit faster.
70118         (my_usleep): Round up fractional times instead of truncating them,
70119         as this is the usual meaning for 'sleep'.
70120
70121         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
70122         doesn't work.
70123         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
70124         (ENOSYS): Define if not defined.
70125         (settime): Fall back on stime if it exists and settimeofday fails.
70126         But don't bother with fallbacks if a method fails with errno == EPERM.
70127
70128 2004-05-11  Jim Meyering  <jim@meyering.net>
70129
70130         Prior to this change, the save_cwd caller required read access to the
70131         current directory on most systems (ones with the fchdir function).
70132
70133         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
70134         fails, try write-only, and finally, resort to using xgetcwd.
70135
70136 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70137
70138         * lib/obstack.c, obstack.h: Import changes from libc.
70139
70140 2004-04-28  Bruno Haible  <bruno@clisp.org>
70141
70142         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
70143         also implicitly appends .exe to executables.
70144         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
70145         accepts Windows pathnames.
70146         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70147         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70148         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70149         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70150         Reported by Derek Robert Price <derek@ximbiot.com>.
70151
70152 2004-04-21  Karl Berry  <karl@gnu.org>
70153
70154         * config/srclist.txt (localcharset.c): break sync.
70155
70156 2004-04-20  Paul Eggert  <eggert@twinsun.com>
70157
70158         * m4/host-os.m4: Add a copyright notice.
70159
70160 2004-04-20  Jim Meyering  <jim@meyering.net>
70161
70162         Change UTILS_ to gl_ in AC_DEFINE'd names.
70163         Change utils_- and jm_-prefixed variables, too.
70164         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
70165         UTILS_FUNC_MKDIR_TRAILING_SLASH.
70166         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
70167
70168         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
70169         Don't emit trailing blanks.
70170         Also rename jm_-prefixed variables to have gl_ prefix.
70171
70172         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
70173         Also rename jm_-prefixed variables to have gl_ prefix.
70174
70175         * m4/jm-macros.m4: Reflect the renamings.
70176         * m4/prereq.m4: Likewise.
70177
70178 2004-04-20  Jim Meyering  <jim@meyering.net>
70179
70180         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
70181         memory.
70182
70183 2004-04-20  Jim Meyering  <jim@meyering.net>
70184             Bruno Haible  <bruno@clisp.org>
70185
70186         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
70187         memory when realloc fails.
70188
70189 2004-04-19  Jim Meyering  <jim@meyering.net>
70190
70191         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
70192         now that readutmp.c may call `free (0)'.
70193
70194 2004-04-19  Bruno Haible  <bruno@clisp.org>
70195
70196         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
70197         * m4/inttypes_h.m4: Likewise.
70198         * m4/stdint_h.m4: Likewise.
70199         * m4/intmax_t.m4: Likewise.
70200         * m4/uintmax_t.m4: Likewise.
70201
70202 2004-04-18  Jim Meyering  <jim@meyering.net>
70203
70204         * m4/prereq.m4: Don't forbid jm_ prefix.
70205
70206         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
70207         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
70208         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
70209         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
70210         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
70211         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
70212         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
70213         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
70214         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
70215         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
70216         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
70217         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
70218         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
70219         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
70220         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
70221         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
70222         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
70223         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
70224         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
70225
70226 2004-04-18  Jim Meyering  <jim@meyering.net>
70227
70228         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
70229         failure, don't leak memory and do call END_UTMP_ENT.
70230
70231 2004-04-16  Jim Meyering  <jim@meyering.net>
70232
70233         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
70234         coreutils' stat program.
70235         (gl_PREREQ): Don't require jm_PREREQ_STAT.
70236
70237 2004-04-11  Paul Eggert  <eggert@twinsun.com>
70238
70239         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
70240         C89.
70241         (CHAR_BIT): Remove, since we assume C89.
70242         Include <stdint.h> if available, as per current Autoconf CVS advice.
70243
70244 2004-03-31  Jim Meyering  <jim@meyering.net>
70245
70246         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
70247         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
70248         * m4/xalloc.m4: Likewise.
70249
70250 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70251
70252         Merge from coreutils.
70253
70254         * m4/inttostr.m4: New file.
70255         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
70256         Require AM_STDBOOL_H and gl_TIMESPEC instead.
70257         Require gl_CLOCK_TIME.
70258         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
70259
70260 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70261
70262         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
70263         not bool, to be more consistent with Unix conventions.
70264         Suggested by Bruno Haible.
70265
70266         Merge from coreutils.
70267
70268         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
70269         * lib/umaxtostr.c: New files.
70270
70271         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
70272         the usual <time.h> dance.
70273         (get_date): Change signature to support fractional time stamps.
70274         All callers changed.
70275         * lib/getdate.y: Include "getdate.h" first, as we can now
70276         assume C89 and don't need to worry about 'const'.
70277         Similarly, include "unlocked-io.h" near start, not in middle.
70278         Include <limits.h>.
70279         (textint.value): Use long int rather than int.
70280         (textint.digits): Use size_t rather than int.
70281         (BILLION, LOG10_BILLION): New constants.
70282         (parser_control): New member rel_ns.  Members day_ordinal,
70283         time_zone, month, day, hour, minutes, rel_year, rel_month,
70284         rel_day, rel_hour, rel_minutes, rel_seconds
70285         are now long int, not int.  Member seconds is now struct timespec,
70286         not int.  New member timespec_seen.  Members dates_seen, days_seen,
70287         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
70288         not int.
70289         (%union.intval): Now long int, not int.
70290         New member timespec.
70291         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
70292         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
70293         (spec): Now is a timespec or an item list.
70294         (timespec, items): New nonterminals.
70295         (time, rel, relunit, number, get_date):
70296         Add support for fractional seconds.
70297         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
70298         (gmtime, localtime, mktime): Remove decls; not needed with C89.
70299         (to_hour): First arg is now long int, not int.
70300         (to_year): Returns long int, not int.
70301         Don't treat year -70 like 70.
70302         (tm_diff): Returns long int, not int.
70303         (lookup_word): Use bool instead of int when appropriate.
70304         (yylex): Use size_t for count, not int.
70305         Detect overflow when parsing large integer constants.
70306         Add support for fractions.
70307         (get_date): Make pointers 'const' if possible.
70308         Use more-portable code to detect integer overflow.
70309         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
70310         Don't use ctime; it's not reliable if the year has >4 digits.
70311
70312         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
70313         This is for compatibility with BSD.
70314
70315         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
70316         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
70317         From coreutils' system.h.
70318
70319         * lib/userspec.c: Don't include "posixver.h".
70320         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
70321         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
70322         compatible extension.  Simplify code by removing a boolean int
70323         that was always nonzero if a string was nonnull.
70324
70325 2004-03-30  Jim Meyering  <jim@meyering.net>
70326
70327         Merge from coreutils.
70328
70329         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
70330         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
70331         on some systems one must include <grp.h> before it.
70332         Reported by Christian Krackowizer.
70333
70334 2004-03-30  Jim Meyering  <jim@meyering.net>
70335
70336         Merge from coreutils.
70337
70338         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
70339
70340         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
70341         an empty input stream.
70342
70343         * lib/readtokens.c: Include <stdbool.h>.
70344         (readtoken): Use `size_t' rather than int/long.
70345         All callers adjusted.
70346         Use `bool' rather than `int' where appropriate.
70347         Use memset rather than an explicit loop.
70348         Use x2nrealloc rather than xrealloc.
70349         Allow the use of `\0' as a delimiter.
70350         (readtokens): Likewise.
70351         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
70352
70353 2004-03-30  Jim Meyering  <jim@meyering.net>
70354
70355         * m4/realloc.m4: Remove file, since now it does no more than
70356         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
70357         the `configure.ac' section of module/realloc.
70358         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
70359
70360 2004-03-30  Bruno Haible  <bruno@clisp.org>
70361
70362         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
70363         nonnull.
70364
70365 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70366
70367         Merge changes to getloadavg.c from coreutils and Emacs.
70368
70369         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
70370         Define to an expression, not to the empty string.
70371         Include cloexec.h and xalloc.h.
70372         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
70373         Use set_cloexec_flag rather than rolling our own.
70374         * lib/cloexec.c, lib/cloexec.h: New files.
70375
70376 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70377
70378         * m4/cloexec.m4: New file.
70379
70380 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70381
70382         * lib/getopt.h: Sync with libc CVS.
70383
70384 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70385             Bruno Haible  <bruno@clisp.org>
70386
70387         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
70388         mbswidth.
70389
70390 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70391             Bruno Haible  <bruno@clisp.org>
70392
70393         * lib/mbswidth.h: Include <wchar.h> only if
70394         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
70395         <wchar.h>.
70396         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
70397
70398 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70399
70400         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
70401         Sync with libc CVS.
70402         * lib/getopt_int.h: New file, also synced from libc.
70403
70404 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70405
70406         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
70407         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
70408         Bring back getopt.c, getopt.h, getopt1.c.
70409
70410 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70411
70412         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
70413         All uses changed.  Check for sa_sigaction member; this fixes
70414         a bug first reported by Jason Andrade in
70415         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70416
70417 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70418
70419         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
70420         '#if' expressions.  Unlike the code it replaces, it does not
70421         depend on (defined _SC_PAGESIZE).  However, it does depend on
70422         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
70423         first reported by Jason Andrade in
70424         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70425
70426 2004-02-25  Simon Josefsson  <jas@extundo.com>
70427
70428         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
70429
70430 2004-02-25  Simon Josefsson  <jas@extundo.com>
70431
70432         * lib/strdup.h: New file.
70433         * lib/strdup.c: Include it.
70434         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
70435         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
70436
70437 2004-02-23  Karl Berry  <karl@gnu.org>
70438
70439         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
70440         (from fencepost.gnu.org:/gd/gnuorg).
70441
70442 2004-02-23  Karl Berry  <karl@gnu.org>
70443
70444         * config/srclistvars.sh (GNUORG) [karl]: redefine.
70445         * config/srclist.txt: add maintain/standards documents.
70446
70447 2004-02-18  Bruno Haible  <bruno@clisp.org>
70448
70449         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
70450         Reported by Derek Robert Price <derek@ximbiot.com>.
70451
70452 2004-02-16  Karl Berry  <karl@gnu.org>
70453
70454         * config/mkinstalldirs, install-sh: update from automake.
70455
70456 2004-02-06  Karl Berry  <karl@gnu.org>
70457
70458         * m4/po.m4: update from gettext 0.14.1.
70459
70460 2004-02-06  Karl Berry  <karl@gnu.org>
70461
70462         * lib/config.charset: update from gettext 0.14.1.
70463
70464 2004-02-05  Paul Eggert  <eggert@twinsun.com>
70465
70466         Add comments and code, prompted by suggestions from Bruno Haible
70467         for sh-quote.
70468         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
70469         describing the enum quoting_style values.
70470         * lib/quotearg.c (quotearg_alloc): New function.
70471         (quotearg_buffer_restyled): Treat lone { and } as special.
70472         Treat = as special.  Work around bug with older shells
70473         that "see" a '\' that is really the 2nd byte of a multibyte char.
70474         Quote empty string with shell_quoting_style.
70475
70476 2004-02-03  Bruno Haible  <bruno@clisp.org>
70477
70478         * m4/pipe.m4: New file, from GNU gettext.
70479
70480 2004-02-03  Bruno Haible  <bruno@clisp.org>
70481
70482         * lib/pipe.h: New file, from GNU gettext.
70483         * lib/pipe.c: New file, from GNU gettext.
70484
70485 2004-01-27  Bruno Haible  <bruno@clisp.org>
70486
70487         * m4/execute.m4: New file, from GNU gettext.
70488
70489 2004-01-27  Bruno Haible  <bruno@clisp.org>
70490
70491         * lib/execute.h: New file, from GNU gettext.
70492         * lib/execute.c: New file, from GNU gettext.
70493         * lib/w32spawn.h: New file, from GNU gettext.
70494
70495 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70496
70497         Merge from diffutils.
70498
70499         * lib/file-type.c (file_type): Add typed memory objects.
70500         * lib/file-type.h (S_TYPEISTMO): New macro.
70501
70502         * lib/c-stack.h (c_stack_action): Remove argv argument.
70503         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
70504         (die): Don't calculate message unless segv_action returns.
70505         (get_stack_location, min_address_from_argv, max_address_from_argv,
70506         volatile stack_base, volatile_stack_size): Remove.
70507         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
70508         that every segmentation violation is a stack overflow.  (Ouch!)
70509         See Debian bug 136249 (still outstanding) for more info about why
70510         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
70511
70512 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70513
70514         Exit-status fix from coreutils.
70515
70516         Use exit_failure consistently in place of EXIT_FAILURE,
70517         so that program exit statuses are consistent on failure.
70518
70519         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
70520         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
70521         * lib/argmatch.h: Comment fix to match the above.
70522         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
70523         Now a macro referring to exit_failure, instead of a separate
70524         variable.  Include "exitfail.h" to get it.
70525         * lib/xstrtol.h: Include "exitfail.h".
70526         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
70527
70528         * lib/long-options.c (parse_long_options): Use prototype
70529         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
70530         for clarity.
70531
70532 2004-01-21  Jim Meyering  <jim@meyering.net>
70533
70534         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
70535         so as not to conflict with a different-sized __mktime_internal
70536         function in GNU libc.
70537         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
70538         Problem building statically-linked `ls' reported by Michael Brunnbauer.
70539
70540 2004-01-20  Karl Berry  <karl@gnu.org>
70541
70542         * config/config.guess: update from config.
70543
70544         * config/srclistvars.sh: GNUWWWLICENSES for karl.
70545
70546 2004-01-20  Bruno Haible  <bruno@clisp.org>
70547
70548         Safer stack allocation.
70549         * lib/setenv.c: Include allocsa.h.
70550         (alloca): Remove fallback definition.
70551         (freea): Remove macro.
70552         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
70553         instead of freea.
70554
70555 2004-01-20  Bruno Haible  <bruno@clisp.org>
70556
70557         * m4/eealloc.m4: New file, from GNU gettext.
70558
70559 2004-01-20  Bruno Haible  <bruno@clisp.org>
70560
70561         * m4/allocsa.m4: New file, from GNU gettext.
70562
70563 2004-01-20  Bruno Haible  <bruno@clisp.org>
70564
70565         * lib/xallocsa.h: New file, from GNU gettext.
70566         * lib/xallocsa.c: New file, from GNU gettext.
70567
70568 2004-01-20  Bruno Haible  <bruno@clisp.org>
70569
70570         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
70571
70572 2004-01-20  Bruno Haible  <bruno@clisp.org>
70573
70574         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
70575         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
70576         specially.
70577
70578 2004-01-20  Bruno Haible  <bruno@clisp.org>
70579
70580         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
70581         patch.
70582
70583 2004-01-20  Bruno Haible  <bruno@clisp.org>
70584
70585         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
70586
70587 2004-01-20  Bruno Haible  <bruno@clisp.org>
70588
70589         * lib/eealloc.h: New file.
70590
70591 2004-01-20  Bruno Haible  <bruno@clisp.org>
70592
70593         * lib/binary-io.h: Avoid warnings on Cygwin.
70594
70595 2004-01-20  Bruno Haible  <bruno@clisp.org>
70596
70597         * lib/allocsa.h: New file, from GNU gettext.
70598         * lib/allocsa.c: New file, from GNU gettext.
70599
70600 2004-01-18  Karl Berry  <karl@gnu.org>
70601
70602         * doc/gpl.texi, doc/lgpl.texi: new files.
70603
70604 2004-01-18  Karl Berry  <karl@gnu.org>
70605
70606         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
70607         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
70608
70609 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70610
70611         Merge from coreutils.
70612
70613         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
70614         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
70615         (gl_DEFAULT_POSIX2_VERSION): Move
70616         the documentation from 'configure' into 'config.hin',
70617         so that 'configure --help' isn't burdened by it and
70618         we don't have to worry about its formatting there.
70619         Reword the documentation so that it's more succinct
70620         and can be run together into a single paragraph.
70621         * m4/same.m4 (gl_SAME): Check for pathconf.
70622
70623 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70624
70625         Merge from coreutils.
70626
70627         * lib/posixver.c: Include posixver.h.
70628
70629         * lib/same.c: Include <stdbool.h>, <limits.h>.
70630         (_POSIX_NAME_MAX): Define if not defined.
70631         (MIN): New macro.
70632         (same_name): If file names are silently truncated, report
70633         that the file names are the same if they are the same after
70634         the silent truncation.
70635
70636         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
70637         conversion function.
70638         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
70639         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
70640         longer needed.
70641
70642 2004-01-15  Jim Meyering  <jim@meyering.net>
70643
70644         Merge from coreutils.
70645
70646         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
70647         if no library is required.
70648         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
70649         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
70650         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
70651         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
70652         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
70653         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
70654         value, $ac_cv_search_crypt, if it's "none required".
70655         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
70656         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
70657         not gl_FUNC_GETLOADAVG.
70658         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
70659         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
70660
70661 2004-01-15  Jim Meyering  <jim@meyering.net>
70662
70663         Merge from coreutils.
70664
70665         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
70666         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
70667         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
70668
70669         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
70670         optional configure-time default.
70671
70672         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70673
70674         * lib/xreadlink.c (xreadlink): Correct outdated comment.
70675
70676 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
70677
70678         Merge from coreutils.
70679
70680         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
70681         value, $ac_cv_search_nanosleep, if it's "none required".
70682
70683 2004-01-14  Paul Eggert  <eggert@twinsun.com>
70684
70685         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
70686         with like-named macro in fnmatch.c.
70687         (EXT): Use an internal constant instead.
70688
70689         Merge fnmatch patches from glibc.
70690         * lib/fnmatch.c (mbsinit): Remove define.
70691         Add libc_hidden_ver (__fnmatch, fnmatch).
70692         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
70693         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
70694
70695 2004-01-14  Karl Berry  <karl@gnu.org>
70696
70697         * config/install-sh: update from automake.
70698
70699 2004-01-13  Karl Berry  <karl@gnu.org>
70700
70701         * config/install-sh: update from automake.
70702
70703 2004-01-09  Karl Berry  <karl@gnu.org>
70704
70705         * config/install-sh: update from automake.
70706
70707 2004-01-05  Karl Berry  <karl@gnu.org>
70708
70709         * config/config.{sub,guess}: update from config.
70710
70711 2003-12-31  Karl Berry  <karl@gnu.org>
70712
70713         * config/depcomp: update from automake.
70714
70715 2003-12-14  Karl Berry  <karl@gnu.org>
70716
70717         * lib/config.charset: update from gettext-runtime.
70718
70719 2003-12-03  Paul Eggert  <eggert@twinsun.com>
70720
70721         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
70722         Bug reported by Alfred M. Szmidt.
70723
70724 2003-12-03  Bruno Haible  <bruno@clisp.org>
70725
70726         * m4/gettext.m4: Upgrade from gettext-0.13.
70727         * m4/po.m4: Upgrade from gettext-0.13.
70728         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
70729         * m4/intmax.m4: New file, from gettext-0.13.
70730         * m4/printf-posix.m4: New file, from gettext-0.13.
70731
70732 2003-11-29  Karl Berry  <karl@gnu.org>
70733
70734         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
70735
70736 2003-11-25  Paul Eggert  <eggert@twinsun.com>
70737             Bruno Haible  <bruno@clisp.org>
70738
70739         * lib/printf-parse.h: Don't include sys/types.h.
70740         (ARG_NONE): New macro.
70741         (char_directive): Change type of *arg_index fields to size_t.
70742         * lib/printf-parse.c: Don't include sys/types.h.
70743         (SSIZE_MAX): Remove macro.
70744         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
70745         Remove unnecessary overflow check.
70746         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
70747         fields.
70748
70749 2003-11-25  Bruno Haible  <bruno@clisp.org>
70750
70751         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
70752
70753 2003-11-25  Bruno Haible  <bruno@clisp.org>
70754
70755         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
70756         gt_TYPE_SSIZE_T.
70757
70758 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70759
70760         * modules/alloca: Remove dependency on xalloc.
70761
70762 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70763
70764         * lib/alloca.c: Remove dependency on xalloc module.
70765         (xalloc_die): Remove.
70766         (memory_full) [!defined emacs]: New macro.
70767         [!defined emacs]: Don't include xalloc.h.
70768         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
70769         address arithmetic overflows.  Change datatypes a bit to avoid
70770         unnecessary casts.
70771
70772 2003-11-22  Jim Meyering  <jim@meyering.net>
70773
70774         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
70775         s/size/size_t/.
70776
70777 2003-11-21  Karl Berry  <karl@gnu.org>
70778
70779         * config/config.{sub,guess}: update from config.
70780
70781 2003-11-18  Karl Berry  <karl@gnu.org>
70782
70783         * config/config.{sub,guess}: update from config.
70784
70785         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
70786
70787 2003-11-17  Paul Eggert  <eggert@twinsun.com>
70788
70789         * README: Mention that S+T cannot overflow if S is the size of
70790         an existing object and T is sufficiently small.
70791
70792 2003-11-17  Jim Meyering  <jim@meyering.net>
70793
70794         On systems without utime and without a utimes function capable of
70795         dealing with a NULL struct utimbuf* argument, this utime replacement
70796         could -- in unusual circumstances -- leak a file descriptor.
70797         * lib/utime.c: Include <unistd.h> and <errno.h>.
70798         (utime_null): Be sure to close `fd' and to preserve errno.
70799         Reported by Geoff Collyer via Arnold Robbins.
70800
70801 2003-11-17  Bruno Haible  <bruno@clisp.org>
70802
70803         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
70804         (Depends-on): Add xsize.
70805
70806 2003-11-17  Bruno Haible  <bruno@clisp.org>
70807
70808         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
70809
70810 2003-11-17  Bruno Haible  <bruno@clisp.org>
70811
70812         * lib/vasnprintf.c (alloca): Remove fallback definition.
70813         (freea): Remove definition.
70814         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
70815         Reported by Paul Eggert.
70816
70817 2003-11-16  Paul Eggert  <eggert@twinsun.com>
70818             Bruno Haible  <bruno@clisp.org>
70819
70820         Protect against address arithmetic overflow.
70821         * lib/printf-args.h: Include stddef.h.
70822         (arguments): Change type of field 'count' to size_t.
70823         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
70824         'unsigned int' where appropriate.
70825         * lib/printf-parse.h: Include sys/types.h.
70826         (char_directive): Change type of *arg_index fields to ssize_t.
70827         (char_directives): Change type of fields 'count', max_*_length to
70828         size_t.
70829         * lib/printf-parse.c: Include sys/types.h and xsize.h.
70830         (SSIZE_MAX): Define fallback value.
70831         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
70832         instead of 'int' where appropriate. Check a_allocated, d_allocated
70833         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
70834         * lib/vasnprintf.c: Include xsize.h.
70835         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
70836         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
70837         overflow. Avoid wraparound when converting a width or precision from
70838         decimal to binary.
70839
70840 2003-11-16  Bruno Haible  <bruno@clisp.org>
70841
70842         Update from GNU gettext.
70843         * lib/printf-parse.c: Generalize to it can be compiled for wide
70844         strings.
70845         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
70846         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
70847         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
70848         SNPRINTF): New macros.
70849         Don't include <alloca.h> if the file is used inside libintl.
70850         (local_wcslen): New function, for Solaris 2.5.1.
70851         (VASNPRINTF): Use it instead of wcslen.
70852
70853 2003-11-16  Bruno Haible  <bruno@clisp.org>
70854
70855         * lib/xsize.h (xmax): New function.
70856         (xsum, xsum3, xsum4): Declare as "pure" functions.
70857
70858 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70859
70860         * modules/xalloc (Files): Undo latest change, since xalloc.h
70861         no longer needs SIZE_MAX or PTRDIFF_MAX.
70862
70863 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70864
70865         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
70866         gl_PTRDIFF_MAX.
70867
70868 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70869
70870         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
70871         "return", to pacify some unknown compiler.  Problem reported
70872         by Joerg Schilling.
70873
70874 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70875
70876         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
70877         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
70878         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
70879         heuristic is just as accurate as far as we know, and it removes a
70880         dependency on size_max.m4 and ptrdiff_max.m4.
70881
70882 2003-11-11  Bruno Haible  <bruno@clisp.org>
70883
70884         * modules/xsize (Files): Add m4/size_max.m4.
70885         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
70886
70887 2003-11-11  Bruno Haible  <bruno@clisp.org>
70888
70889         * m4/size_max.m4: New file.
70890         * m4/ptrdiff_max.m4: New file.
70891         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
70892         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
70893         (gl_XALLOC): Invoke it.
70894
70895 2003-11-11  Bruno Haible  <bruno@clisp.org>
70896
70897         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
70898         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
70899         defined.
70900
70901 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70902
70903         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70904         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
70905         rejected some allocations of exactly SIZE_MAX - 2 bytes.
70906         From Bruno Haible.
70907         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
70908         not (size_t) -1, since it's defined here.
70909
70910 2003-11-09  Karl Berry  <karl@gnu.org>
70911
70912         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
70913
70914 2003-11-06  Paul Eggert  <eggert@twinsun.com>
70915
70916         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
70917         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
70918         Reject sizes of exactly SIZE_MAX bytes.
70919         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
70920         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
70921
70922 2003-11-05  Bruno Haible  <bruno@clisp.org>
70923
70924         * lib/xsize.h: Include limits.h, to avoid a possible collision with
70925         SIZE_MAX defined in <limits.h> on Solaris.
70926
70927 2003-11-04  Jim Meyering  <jim@meyering.net>
70928
70929         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
70930         variable names, rather than @VAR@.
70931         * modules/poll: Likewise.
70932
70933 2003-11-04  Bruno Haible  <bruno@clisp.org>
70934
70935         * modules/xsize: New file.
70936         * modules/linebreak: Depend on xsize.
70937         * MODULES.html.sh (func_all_modules): Add xsize.
70938
70939 2003-11-04  Bruno Haible  <bruno@clisp.org>
70940
70941         * m4/xsize.m4: New file.
70942
70943 2003-11-04  Bruno Haible  <bruno@clisp.org>
70944
70945         * lib/xsize.h: New file.
70946         * lib/linebreak.c: Include xsize.h.
70947         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
70948         argument for overflow.
70949         Suggested by Paul Eggert.
70950
70951 2003-11-03  Karl Berry  <karl@gnu.org>
70952
70953         * config/config.{guess,sub}: update from config.
70954
70955 2003-11-03  Jim Meyering  <jim@meyering.net>
70956
70957         * modules/userspec (lib_SOURCES): Add userspec.h.
70958         (Include): Add "userspec.h".
70959         Improve description.
70960
70961 2003-11-03  Jim Meyering  <jim@meyering.net>
70962
70963         * lib/userspec.c: Include "userspec.h".
70964         * lib/userspec.h: New file.
70965
70966 2003-11-03  Bruno Haible  <bruno@clisp.org>
70967
70968         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
70969
70970 2003-11-03  Bruno Haible  <bruno@clisp.org>
70971
70972         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
70973         available, to avoid (extremely rare) race condition.
70974         Suggested by Paul Eggert.
70975
70976 2003-11-02  Karl Berry  <karl@gnu.org>
70977
70978         * config/srclist.txt (vasprintf.c): sync broken, sigh.
70979
70980 2003-10-31  Paul Eggert  <eggert@twinsun.com>
70981
70982         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
70983         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
70984         (read_filesystem_list): Set and use me_type_malloced.
70985         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
70986         whatever the type happens to be), for brevity and consistency.
70987         Check for size calculation overflow on Alphas running OSF/1.
70988
70989 2003-10-31  Jim Meyering  <jim@meyering.net>
70990
70991         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
70992
70993         * lib/linebuffer.c: Include <string.h> for declaration of memset.
70994
70995 2003-10-30  Paul Eggert  <eggert@twinsun.com>
70996             Bruno Haible  <bruno@clisp.org>
70997
70998         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
70999         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
71000
71001 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71002
71003         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
71004         netbsd*-gnu*.  Suggested by Robert Millan.
71005
71006 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71007
71008         * modules/group-member: Depend on stdbool.
71009
71010 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71011
71012         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
71013
71014 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71015
71016         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
71017         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
71018         after the 'gnu' in these cases.  This fixes some bugs in the
71019         previous change, and is based on suggestions by Robert Millan.
71020
71021 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71022
71023         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
71024         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
71025         no longer needed.
71026         * lib/quotearg.c (quotearg_n_options): Use it.
71027         * lib/group-member.c: Include <stdbool.h>.
71028         (free_group_info): Arg is now const *; don't free arg.
71029         (get_group_info): Now returns bool and accepts struct group_info *,
71030         rather than returning a malloc'ed struct group_info *.
71031         All uses changed.  Check for overflow in internal size calculation.
71032
71033         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
71034         rather than xmalloc/xrealloc.
71035         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
71036         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
71037         conformance bug: the old code used a pointer after freeing the
71038         storage that it addressed.
71039         * lib/hash.c (hash_initialize): Simplify the code by using
71040         xalloc_oversized rather than doing it by hand.
71041         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
71042         the buffer preserved.  Use free and xmalloc instead.
71043         * lib/quotearg.c (quotearg_n_options): Likewise.
71044         Use a simpler test for size overflow.  Don't use xalloc_oversized
71045         because unsigned int might be wider than size_t (!); this suggests
71046         that we should switch from unsigned int to size_t for slot numbers.
71047
71048 2003-10-28  Paul Eggert  <eggert@twinsun.com>
71049
71050         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
71051         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
71052         NetBSD kernels.  Requested by Richard Stallman.
71053
71054 2003-10-27  Paul Eggert  <eggert@twinsun.com>
71055
71056         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
71057         to allocate the returned structure.  Do not allocate a subarray,
71058         as x2nrealloc will do that.
71059         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
71060         instead of xnrealloc.
71061         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
71062
71063 2003-10-27  Bruno Haible  <bruno@clisp.org>
71064
71065         * lib/stdbool_.h: Better support for BeOS.
71066
71067 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71068
71069         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
71070         now uses inline.
71071
71072 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71073
71074         * lib/xalloc.h (xalloc_oversized): New static inline function, for
71075         callers that want to do their own size-overflow checking.  Include
71076         <stdbool.h>, since xalloc_oversized returns bool.
71077         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
71078         to use xalloc_oversized.
71079
71080         Add two functions x2realloc, x2nrealloc, for programs that grow
71081         arrays dynamically by doubling their sizes.
71082         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
71083         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
71084         New functions.
71085
71086         Port to C99 semantics for 'inline' of external functions.
71087         Bug reported by Bruno Haible.
71088         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
71089         with the old contents of xnmalloc.
71090         (xnmalloc, xmalloc): Use it.
71091         (xnrealloc_inline): New static inline function,
71092         with the old contents of xnrealloc.
71093         (xnrealloc, xrealloc): Use it.
71094
71095         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
71096         that.
71097
71098 2003-10-26  Karl Berry  <karl@gnu.org>
71099
71100         * config/srclist.txt (COPYING.DOC): no longer available from
71101         /gd/gnuorg; don't know where the ultimate source is.
71102
71103 2003-10-25  Paul Eggert  <eggert@twinsun.com>
71104
71105         Fix several address-calculation bugs in the hash modules,
71106         plus some minor code cleanup.
71107
71108         * lib/hash.h: Include <stdbool.h>, for bool.
71109         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
71110         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
71111         hash_get_n_entries, hash_get_max_bucket_length,
71112         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
71113         hash_rehash): Use size_t rather than unsigned.
71114         * lib/hash.c (struct hash_table, hash_get_n_buckets,
71115         hash_get_n_buckets_used, hash_get_n_entries,
71116         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
71117         hash_get_entries, hash_do_for_each, hash_string, is_prime,
71118         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
71119         Likewise.
71120         (SIZE_MAX): Define if not defined.
71121         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
71122         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
71123         hash_print):
71124         Use const * when possible.
71125         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
71126         (check_tuning): Fix bug: if tuning parameters were very close to
71127         0 or 1, rounding errors could have caused subscript violations.
71128         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
71129         (hash_initialize): Add 'fail:' label
71130         to free table and return NULL, and use it to simplify code.
71131         Use calloc rather than clearing the storage ourself.
71132         (hash_initialize, hash_rehash): Check for arithmetic overflow in
71133         buffer size calculations.
71134         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
71135         Include <stddef.h>, for size_t.
71136         * lib/hash-pjw.c (hash_pjw): Likewise.
71137         Switch to method described by Bruno Haible.
71138         Include <limits.h>, for CHAR_BIT.
71139         (SIZE_BITS): New macro.
71140
71141 2003-10-23  Paul Eggert  <eggert@twinsun.com>
71142
71143         * m4/getline.m4 (AM_FUNC_GETLINE):
71144         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
71145         hosts.  Problem reported by Derek Robert Price in
71146         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
71147         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
71148         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
71149
71150 2003-10-21  Paul Eggert  <eggert@twinsun.com>
71151
71152         * lib/getndelim2.c (getndelim2): When size calculation overflows,
71153         ceiling the allocation at NMAX bytes rather than silently
71154         discarding input bytes before NMAX is reached.  This makes
71155         a difference only if NMAX exceeds SIZE_MAX / 2.
71156
71157         * lib/obstack.c: Merge from glibc.
71158         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
71159         Add libc_hidden_def (_obstack_newchunk).
71160         (_obstack_free) [! defined _LIBC]: Remove.
71161         [defined _LIBC]: Make a strong alias from obstack_free, rather than
71162         a clone of the function body.
71163         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
71164         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
71165
71166         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
71167         glibc.
71168         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
71169         arg to memcpy.
71170
71171         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
71172         (obstack_ptr_grow_fast, obstack_int_grow_fast):
71173         Don't use lvalue casts, as GCC plans to remove support for them
71174         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
71175         was also present in the non-GCC version, indicating that this
71176         code had always been buggy and had never been widely used.
71177         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
71178         Use the fast variant of each macro, rather than copying the
71179         definiens of the fast variant; that way, we'll be more likely to
71180         catch future bugs in the fast variants.
71181
71182 2003-10-20  Bruno Haible  <bruno@clisp.org>
71183
71184         * modules/wait-process: New file.
71185         * MODULES.html.sh (func_all_modules): Add wait-process.
71186
71187 2003-10-20  Bruno Haible  <bruno@clisp.org>
71188
71189         * m4/wait-process.m4: New file.
71190
71191 2003-10-20  Bruno Haible  <bruno@clisp.org>
71192
71193         * lib/wait-process.h: New file, from GNU gettext.
71194         * lib/wait-process.c: New file, from GNU gettext.
71195
71196 2003-10-19  Jim Meyering  <jim@meyering.net>
71197
71198         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
71199         HPUX 10.20.
71200
71201 2003-10-18  Karl Berry  <karl@gnu.org>
71202
71203         * config/config.guess: update from config.
71204
71205 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71206
71207         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
71208         (getgroups): First arg is int, not size_t.
71209         Don't let 'free' mangle errno.
71210
71211 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71212
71213         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
71214
71215 2003-10-16  Karl Berry  <karl@gnu.org>
71216
71217         * config/config.{guess,sub}: update from config.
71218
71219 2003-10-16  Jim Meyering  <jim@meyering.net>
71220
71221         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
71222         memcpy.
71223
71224 2003-10-15  Paul Eggert  <eggert@twinsun.com>
71225
71226         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
71227         (SIZE_MAX): Remove.
71228         (new_exclude, add_exclude_file): Initial size no longer needs to
71229         be a power of 2.
71230         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
71231         our own address arithmetic overflow checking.
71232
71233         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
71234         (fnmatch): Do not alloca more than 2000 wide characters;
71235         instead, use malloc for large buffers.
71236         Check for address arithmetic overflow, and return -1
71237         with errno set to ENOMEM in that case.
71238         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
71239         (NEW_PATTERN): Do not alloca more than 8000 bytes;
71240         instead, return -1.  Check for address arithmetic overflow.
71241
71242 2003-10-14  Paul Eggert  <eggert@twinsun.com>
71243
71244         Handle invalid suffixes and overflow independently, so that
71245         callers can treat them independently as needed.  Fix some bugs in
71246         suffix handling, e.g., "100k@" was not diagnosed as an invalid
71247         suffix for a human-readable blocksize.  The major caller-visible
71248         change is the addition of a new
71249         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
71250         that both overflow and suffix chars were found.
71251
71252         * lib/human.c (humblock): Don't check separately for invalid suffix
71253         char; that is xstrtoumax's job (now that its bug is fixed).
71254         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
71255         INTMAX_MAX]: New macros.
71256         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
71257         TYPE_MAXIMUM): New macros.
71258         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
71259         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
71260         if overflow occurs, as it's what __strtol does and it's more useful
71261         in practice.
71262         (__xstrtol): If __strtol reports some error other than ERANGE,
71263         reflect it to the caller as LONGINT_INVALID.  If it reports
71264         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
71265         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
71266         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
71267         value.
71268         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
71269         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
71270         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
71271         [defined UINTMAX_MAX]: New macros.
71272
71273 2003-10-14  Bruno Haible  <bruno@clisp.org>
71274
71275         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
71276
71277 2003-10-14  Bruno Haible  <bruno@clisp.org>
71278
71279         * m4/sig_atomic_t: New file, from GNU gettext.
71280         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
71281
71282 2003-10-14  Bruno Haible  <bruno@clisp.org>
71283
71284         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
71285         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
71286         Also use volatile where needed.
71287
71288 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71289
71290         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
71291         Change maintainer from Bruno Haible to 'all'.
71292
71293 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71294
71295         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
71296
71297 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71298
71299         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
71300         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
71301         and define in terms of the other primitives.
71302         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
71303         (SIZE_MAX): Define if not already defined.
71304         (array_size_overflow): New function.
71305         (xalloc_die): Abort instead of exiting if 'error' returns.
71306         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
71307         (xmalloc, xrealloc): Use them.
71308         (xcalloc): Check for address arithmetic overflow.
71309         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
71310         a bit faster than strcpy.
71311
71312 2003-10-10  Simon Josefsson  <jas@extundo.com>
71313
71314         * modules/argp (Depends-on): Add restrict and strcase.
71315
71316 2003-10-10  Simon Josefsson  <jas@extundo.com>
71317
71318         * m4/argp.m4: Add AC_C_INLINE.
71319
71320 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71321
71322         Merge getpass from libc, plus a few fixes.
71323
71324         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
71325         Include <stdbool.h>.
71326         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
71327         __fsetlocking to empty.
71328         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
71329         do include <bits/libc-lock.h>.
71330         Do not include <fcntl.h>; not needed.
71331         [_LIBC]: Include <wchar.h>.
71332         (NOTCANCEL_MODE): New macro.
71333         (flockfile, funlockfile) [_LIBC]: New macros.
71334         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
71335         [!_LIBC]: New macros.
71336         (call_fclose): New function.
71337         (getpass): Use it.  Save tty stream separately; this simplifies the
71338         code and makes it more reliable if stdin happens to equal stdout.
71339         Invoke __fsetlocking on tty.
71340         Handle thread cancellation if needed.
71341         Namespace cleanup (use __tcgetattr, __getline).
71342         Use bool for Booleans.
71343         [USE_IN_LIBIO]: Handle wide streams.
71344         [!_LIBC]: Unconditionally do the fseek, since we don't know what
71345         stream might go where.
71346
71347         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
71348         doesn't have to include <stdio.h> before us.
71349         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
71350         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
71351         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
71352         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
71353         if not declared, so that we can use getpass.c code from libc without
71354         rewriting it.
71355         (flockfile, ftrylockfile, funlockfile): New macros.
71356
71357 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71358
71359         * modules/getpass: Depend on stdbool.
71360
71361 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71362
71363         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
71364
71365 2003-10-07  Karl Berry  <karl@gnu.org>
71366
71367         * config/config.{guess,sub}: update from config.
71368
71369 2003-10-06  Jim Meyering  <jim@meyering.net>
71370             Bruno Haible  <bruno@clisp.org>
71371
71372         This lets translators provide better translations for the
71373         "Written by ..." part of --version output.
71374         * lib/version-etc.h: Include stdarg.h.
71375         (version_etc_copyright): Declare as readonly.
71376         (version_etc): Make this function variadic with a NULL-terminated list
71377         of author name strings.
71378         (version_etc_va): New declaration.
71379         * lib/version-etc.c: Include stdarg.h, stdlib.h.
71380         (version_etc_copyright): Declare as readonly.
71381         (version_etc_va): New function. Provide a different translatable string
71382         for each possible number of authors < 10. Abbreviate when there are 10
71383         authors or more.
71384         (version_etc): Make this function variadic. Call version_etc_va.
71385         Suggestion from Gary V. Vaughan.
71386
71387         * lib/long-options.h (parse_long_options): Change prototype: the
71388         authors string is moved to the end and becomes variadic.
71389         * lib/long-options.c: Include stdarg.h.
71390         (parse_long_options): Make this function variadic, too.
71391         Call version_etc_va, not version_etc.
71392
71393 2003-10-06  Bruno Haible  <bruno@clisp.org>
71394
71395         * modules/version-etc-2: Remove file.
71396         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
71397
71398 2003-10-06  Bruno Haible  <bruno@clisp.org>
71399
71400         * modules/fatal-signal: New file.
71401         * MODULES.html.sh (func_all_modules): Add fatal-signal.
71402
71403 2003-10-06  Bruno Haible  <bruno@clisp.org>
71404
71405         * m4/fatal-signal.m4: New file.
71406         * m4/signalblocking.m4: New file, from GNU gettext.
71407
71408 2003-10-06  Bruno Haible  <bruno@clisp.org>
71409
71410         * lib/version-etc-2.h: Remove file.
71411         * lib/version-etc-2.c: Remove file.
71412
71413 2003-10-06  Bruno Haible  <bruno@clisp.org>
71414
71415         * lib/fatal-signal.h: New file, from GNU gettext.
71416         * lib/fatal-signal.c: New file, from GNU gettext.
71417
71418 2003-10-05  Paul Eggert  <eggert@twinsun.com>
71419
71420         * README: Rework advice for preventing empty .o files.
71421         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
71422         not <sys/types.h>.
71423
71424 2003-10-04  Karl Berry  <karl@gnu.org>
71425
71426         * lib/argp*: update from libc.
71427
71428 2003-10-04  Karl Berry  <karl@gnu.org>
71429
71430         * config/config.{guess,sub}: update from config.
71431
71432 2003-10-02  Bruno Haible  <bruno@clisp.org>
71433
71434         * modules/lchown (Include): Add lchown.h.
71435         * modules/time_r (Include): Use "..." syntax.
71436         * modules/xgetdomainname (Include): Add xgetdomainname.h.
71437
71438 2003-10-01  Simon Josefsson  <jas@extundo.com>
71439
71440         * MODULES.html.sh (func_all_modules): Move gethostname from section
71441         'based on' to section 'lacking' POSIX:2001.
71442
71443 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
71444
71445         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
71446         to output mode on the same stream.
71447
71448 2003-09-29  Paul Eggert  <eggert@twinsun.com>
71449
71450         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
71451         Fix arg typo in previous patch.
71452
71453 2003-09-28  Jim Meyering  <jim@meyering.net>
71454
71455         * lib/error.c: Correct cpp indentation.
71456
71457 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71458
71459         * modules/free: New file.
71460
71461 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71462
71463         * m4/free.m4: New file.
71464
71465 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71466
71467         * lib/minmax.h (MIN, MAX)
71468         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
71469         Omit the special code that used __typeof__, since we worry that
71470         it could be more trouble than it's worth.  See:
71471         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
71472         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
71473
71474         * lib/free.c: New file.
71475
71476 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
71477
71478         Trivial fixes to Makefile.am parts of module listings.
71479         * modules/strstr: Append strstr.h to lib_SOURCES.
71480         * modules/strcase: Likewise, for strcase.h.
71481
71482 2003-09-27  Karl Berry  <karl@gnu.org>
71483
71484         * config/mkinstalldirs: update from automake.
71485
71486 2003-09-26  Paul Eggert  <eggert@twinsun.com>
71487
71488         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
71489         (error_tail): Do not loop, reallocating temporary buffer, since
71490         the output cannot contain more wide characters than the input
71491         contains bytes, the size must be big enough already.  This avoids
71492         one potential size overflow calculation.  Check for size overflow
71493         when calculating temporary buffer size.  Free temporary buffer
71494         when done, if it was allocated with malloc; this plugs a memory
71495         leak.  Remove casts from void * to pointers, that are no longer
71496         needed now that we're assuming C89 or better.
71497
71498         Merge error changes from glibc.
71499
71500         * lib/error.c, error.h: Update copyright notice header to match glibc.
71501         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
71502         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
71503         Disable cancellation while printing error.
71504         * lib/error.h: Prepend __ to parameter names.
71505
71506 2003-09-26  Jim Meyering  <jim@meyering.net>
71507
71508         * lib/error.c (error_tail): Move some declarations
71509         into inner scope where the local variables are used.
71510
71511 2003-09-26  Bruno Haible  <bruno@clisp.org>
71512
71513         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
71514         stpncpy().
71515         Don't define stpncpy through config.h; it's now done through stpncpy.h.
71516
71517 2003-09-26  Bruno Haible  <bruno@clisp.org>
71518
71519         * lib/stpncpy.h (gnu_stpncpy): New declaration.
71520         (stpncpy): Define as alias for gnu_stpncpy.
71521         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
71522
71523 2003-09-25  Simon Josefsson  <jas@extundo.com>
71524
71525         * lib/xgetdomainname.h: New file.
71526         * lib/xgetdomainname.c: New file.
71527
71528 2003-09-25  Simon Josefsson  <jas@extundo.com>
71529             Bruno Haible  <bruno@clisp.org>
71530
71531         * modules/getdomainname: New file.
71532         * modules/xgetdomainname: New file.
71533         * MODULES.html.sh (func_all_modules): Add getdomainname,
71534         xgetdomainname.
71535
71536 2003-09-25  Simon Josefsson  <jas@extundo.com>
71537             Bruno Haible  <bruno@clisp.org>
71538
71539         * m4/getdomainname.m4: New file.
71540
71541 2003-09-25  Simon Josefsson  <jas@extundo.com>
71542             Bruno Haible  <bruno@clisp.org>
71543
71544         * lib/getdomainname.h: New file.
71545         * lib/getdomainname.c: New file.
71546
71547 2003-09-25  Karl Berry  <karl@gnu.org>
71548
71549         * lib/argp-fmtstream.c, argp-help.c: update from libc.
71550
71551 2003-09-25  Karl Berry  <karl@gnu.org>
71552
71553         * config/install-sh: update from automake.
71554
71555 2003-09-25  Bruno Haible  <bruno@clisp.org>
71556
71557         * modules/version-etc-2: New file, from modules/version-etc with
71558         modifications.
71559         * MODULES.html.sh (func_all_modules): Add version-etc-2.
71560
71561 2003-09-25  Bruno Haible  <bruno@clisp.org>
71562
71563         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
71564         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
71565
71566 2003-09-24  Simon Josefsson  <jas@extundo.com>
71567
71568         * modules/xgethostname: Add xgethostname.h.
71569
71570 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71571
71572         * lib/linebuffer.c (freebuffer): Don't free the argument, just
71573         the buffer associated with the argument.  Bug reported by
71574         Simon Josefsson.
71575
71576 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71577
71578         * README: Document assumptions that 'int' is at least 32 bits
71579         wide, that integer arithmetic is 2's complement without overflow,
71580         that there are no holes in integer values, that adding sizes of
71581         two nonoverlapping objects can't overflow, and that all-bits-zero
71582         yields scalar zero.  Fix spelling and capitalization typos.
71583
71584 2003-09-19  Karl Berry  <karl@gnu.org>
71585
71586         * lib/argp.h: update from libc.
71587
71588 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71589
71590         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
71591         to avoid spurious warnings like "AC_RUN_IFELSE was called before
71592         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
71593
71594 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71595
71596         * gnulib-tool: Use "test -h", not "test -L", for portability
71597         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
71598         (tags_regexp): Remove, since \| doesn't conform to POSIX.
71599         (sed_extract_prog): Issue s commands one-by-one, rather than
71600         using \| in one s command.
71601
71602 2003-09-16  Paul Eggert  <eggert@twinsun.com>
71603
71604         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
71605         input error, instead of returning NULL the next time we are called
71606         (and therefore losing track of errno).
71607
71608 2003-09-16  Bruno Haible  <bruno@clisp.org>
71609
71610         * gnulib-tool (func_create_testdir): Warn about duplicated
71611         dependencies.
71612
71613 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71614
71615         * modules/argmatch, modules/fatal, modules/obstack,
71616         modules/xalloc, modules/xgethostname: Sort dependencies by
71617         importance, not alphabetically.
71618
71619 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71620
71621         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
71622         fails, so that the caller gets the proper errno.
71623
71624         * lib/readutmp.c (read_utmp): Likewise.
71625         Check for fstat error.  Close stream and free storage
71626         when failing.
71627
71628 2003-09-14  Karl Berry  <karl@gnu.org>
71629
71630         * config/srclist.txt (strdup.c): disable for c89 changes.
71631
71632 2003-09-14  Jim Meyering  <jim@meyering.net>
71633
71634         * lib/getloadavg.c: Correct cpp indentation.
71635         * lib/strdup.c: Likewise.
71636         * lib/vasnprintf.c: Likewise.
71637
71638 2003-09-14  Bruno Haible  <bruno@clisp.org>
71639
71640         * modules/fwriteerror: New file.
71641         * MODULES.html.sh (func_all_modules): Add fwriteerror.
71642
71643 2003-09-14  Bruno Haible  <bruno@clisp.org>
71644
71645         * lib/fwriteerror.h: New file.
71646         * lib/fwriteerror.c: New file.
71647
71648 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71649
71650         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
71651         modules/xgethostname, modules/xalloc: Depend on exit.
71652
71653 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71654
71655         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
71656
71657         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
71658         and AC_MINIX, too, so that their extensions are available.
71659
71660         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
71661         This macro has been superseded by gl_BACKUPFILE.
71662
71663         More patches to assume C89 or better.
71664
71665         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
71666
71667         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
71668         unconditionally.
71669         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
71670         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
71671         Include <string.h>, <stdlib.h> unconditionally.
71672         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
71673         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
71674         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
71675         headers or for string.h.
71676         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
71677         or strtoul.
71678
71679         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
71680         headers.
71681         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
71682         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71683         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
71684         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
71685         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71686         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
71687         memcpy, memset.
71688         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
71689         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
71690         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
71691         strtol.
71692         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
71693         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
71694         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
71695         strtoul.
71696
71697 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71698
71699         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
71700         * lib/obstack.c [!defined _LIBC]: Likewise.
71701         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
71702         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
71703         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
71704
71705         More changes to assume C89 or better.
71706
71707         * lib/error.c (error_tail): Assume vprintf.
71708
71709         * lib/argmatch.c (getenv): Remove decl.
71710         * lib/progreloc.c (get_full_program_name): Define via prototype.
71711         * lib/setenv.c (clearenv): Likewise.
71712         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
71713         needed.
71714         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
71715         (malloc, memcpy): Remove decls.
71716         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
71717         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
71718         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71719         (memcpy): Remove macro.
71720         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
71721         (__P): Remove.  All uses removed.
71722         (PTR): Remove.  All uses changed to void *.
71723         (CHAR_BIT, NULL): Remove.
71724         (spaces, zeros, memset_space, memset_zero)
71725         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
71726         Remove.
71727         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
71728         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
71729         Define with prototype.
71730         Remove now-unnecessary prototype decl.
71731         (extra_args_spec): Assume ANSI C.  All uses changed.
71732         (extra_args_spec_iso): Remove.
71733         (my_strftime, emacs_strftimeu): Define via prototype.
71734         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
71735         unconditionally.
71736         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
71737         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
71738         (strtoul, strtol): Remove decls.
71739         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
71740         LONG_MAX): Remove.
71741         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71742         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
71743         (LOCALE_PARAM_PROTO): New macro.
71744         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
71745         (INTERNAL (strtol), strtol): Define with a prototype.
71746         (PARAMS): Remove.  All uses removed.
71747         * lib/tempname.c: Include <string.h> unconditionally.
71748         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
71749         * lib/xgethostname.c (main): Define with a prototype.
71750         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
71751         Include <stdlib.h> unconditionally.
71752         (calloc, malloc, realloc, free): Remove decls.
71753         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
71754         Include <stdlib.h> unconditionally.  Sort include file names.
71755         (strtod): Remove.
71756         (xstrtod): Define with a prototype.
71757         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
71758         (strtol, strtoul): Remove decls.
71759
71760 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71761
71762         More patches to assume C89 or better.
71763         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
71764         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
71765         string.h, memchr, STDC_HEADERS.
71766
71767 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71768
71769         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
71770         Include <stdlib.h>, <string.h> unconditionally.
71771         Remove now-unnecessary cast to char *.
71772         * lib/strnlen.c: Include <string.h> unconditionally.
71773         * lib/yesno.c (yesno): Define with a prototype.
71774
71775 2003-09-11  Bruno Haible  <bruno@clisp.org>
71776
71777         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
71778
71779 2003-09-10  Jim Meyering  <jim@meyering.net>
71780
71781         * lib/error.c: Correct indentation of cpp directives.
71782
71783 2003-09-10  Bruno Haible  <bruno@clisp.org>
71784
71785         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
71786         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
71787         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
71788         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
71789         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
71790         <stdlib.h> and <string.h> checks.
71791         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
71792         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
71793
71794 2003-09-10  Bruno Haible  <bruno@clisp.org>
71795
71796         * lib/strcspn.c: Include <string.h> unconditionally.
71797         * lib/strpbrk.c: Include <string.h> unconditionally.
71798         * lib/strstr.c: Include <string.h> unconditionally.
71799         * lib/unicodeio.c: Include <string.h> unconditionally.
71800         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
71801         * lib/unsetenv.c: Likewise.
71802         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
71803         * lib/yesno.c: Include <stdlib.h> unconditionally.
71804         (rpmatch): Add prototype.
71805
71806 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71807
71808         More patches to assume C89 or better.
71809         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
71810         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
71811         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
71812         or for string.h.
71813         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
71814         stdlib.h.
71815         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
71816         C headers.
71817         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
71818         string.h.
71819         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
71820         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
71821         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
71822         or for string.h.
71823         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
71824         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
71825         C headers.
71826         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
71827         memcpy.
71828         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
71829         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
71830         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
71831         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
71832         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
71833         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
71834         string.h, free.
71835         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
71836         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
71837         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
71838         C headers, or for string.h.
71839         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
71840         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
71841         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
71842         headers, memory.h, stdlib.h, string.h, strings.h.
71843         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
71844         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
71845         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
71846         strchr.
71847         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
71848         headers, memory.h, string.h.
71849         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
71850         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
71851         free.
71852         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
71853         headers.
71854         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
71855         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
71856         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
71857         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
71858         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
71859
71860 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71861
71862         More K&R removal.
71863
71864         * lib/acosl.c (main): Use a prototype.
71865         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
71866         tanl.c: Likewise.
71867
71868         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
71869
71870         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
71871         (getopt, etopt_long, getopt_long_only, _getopt_internal)
71872         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
71873         with a prototype.
71874         * lib/getopt.c (const): Remove macro.
71875         Include <string.h> unconditionally.
71876         (my_index): Remove; all uses changed to strchr.
71877         (strlen): Remove decl.
71878         (exchange): Remove forward decl; no longer needed.
71879         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
71880         Define with prototype.
71881         * lib/getopt1.c (const): Remove macro.
71882         (getopt_long, getopt_long_only, main): Define with prototype.
71883
71884         * lib/getugroups.c: Include <string.h> unconditionally.
71885
71886         * lib/getusershell.c: Include <stdlib.h> unconditionally.
71887         (getusershell, setusershell, endusershell, readname, main):
71888         Define with prototypes.
71889
71890         * lib/group-member.c: Include group-member.h first.
71891         Include <stdlib.h> unconditionally.
71892
71893         * lib/hard-locale.c: Include hard-locale.h first.
71894         Include <stdlib.h>, <string.h> unconditionally.
71895
71896         * lib/hash.c (free, malloc): Remove decls.
71897         Include <stdlib.h> unconditionally.
71898
71899         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
71900         (getenv): Do not declare.
71901
71902         * lib/idcache.c: Include <string.h> unconditionally.
71903
71904         * lib/long-options.c: Include long-options.h first, to test interface.
71905         Include <stdlib.h> unconditionally.
71906
71907         * lib/makepath.c: Include makepath.h first, to test interface.
71908         Include <stdlib.h> and <string.h> unconditionally.
71909
71910         * lib/linebuffer.c: Include <stdlib.h>.
71911         (free): Remove decl.
71912
71913         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
71914         stddef.h. rpl_malloc returns void *, not char *.
71915         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
71916         prototype.
71917
71918         * lib/md5.h: Include <limits.h> unconditionally.
71919         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
71920         (__P): Remove; all uses removed.
71921         * lib/md5.c: Include "md5.h" first.
71922         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
71923         md5_buffer, md5_process_bytes, md5_process_block):
71924         Define with prototypes.
71925         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
71926         * lib/sha.c: Include "sha.h" first.
71927         Include <stdlib.h>, <string.h> unconditionally.
71928
71929         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
71930         * lib/memcmp.c (__ptr_t): Likewise.
71931         * lib/memrchr.c (__ptr_t): Likewise.
71932         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
71933         Include <string.h> unconditionally.
71934         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
71935         * lib/memchr.c: Include <stdlib.h> unconditionally.
71936         * lib/memchr.c (LONG_MAX): Remove.
71937         * lib/memrchr.c (LONG_MAX): Likewise.
71938         * lib/memchr.c (__memchr): Define via a prototype.
71939         * lib/memrchr.c (__memrchr): Likewise.
71940         * lib/memcmp.c (__P): Remove, and remove all uses.
71941         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
71942         Remove forward decls; no longer needed.
71943         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
71944         Use types required by C89 in prototype.
71945
71946         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
71947         * lib/savedir.c: Likewise.
71948         * lib/mkdir.c (free): Remove decl.
71949         * lib/rmdir.c (rmdir): Define with a prototype.
71950         * lib/savedir.c: Include savedir.h first, to test interface.
71951
71952         * lib/mktime.c (STDC_HEADERS): Remove.
71953         Include <stdlib.h>, <string.h> unconditionally.
71954
71955         * lib/modechange.c: Include <stdlib.h> unconditionally.
71956         (malloc): Remove decl.
71957
71958         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
71959         (free): Remove decl.
71960
71961         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
71962         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
71963         (This type really should be intptr_t, but that's a C99ism.)
71964         (_obstack_memcpy): Remove: all uses changed to memcpy.
71965         Include <string.h> unconditionally.
71966         (struct obstack): Assume __STDC__ for types of members
71967         chunkfun, freefun, extra_arg.
71968         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
71969         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
71970         obstack_begin, obstack_specify_allocation,
71971         obstack_specify_allocation_with_arg, obstack_chunkfun,
71972         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
71973         Remove unprototyped decls and the macros that use them.
71974         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
71975         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
71976         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
71977         (defined __STDC__ && __STDC__)]:
71978         Remove nonprototyped code.
71979         Include <stdlib.h> unconditionally.
71980         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
71981         _obstack_allocated_p, _obstack_free, obstack_free,
71982         _obstack_memory_used, print_and_abort):
71983         Define using prototypes.
71984         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
71985         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
71986         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
71987         obstack_next_free, obstack_object_size, obstack_room) [0]:
71988         Remove unused, unprototyped code.
71989
71990         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
71991
71992         * lib/physmem.c (physmem_total, physmem_available, main): Define
71993         with prototypes.
71994
71995         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
71996         (main): Define with a prototype.
71997
71998         * lib/posixver.c (getenv): Remove decl.
71999
72000         * lib/putenv.c (malloc): Returns void *, not char *.
72001         Include <string.h> unconditionally.
72002         (strchr, memcpy, NULL): Do not define.
72003
72004         * lib/readtokens.c: Include readtokens.h first, to test interface.
72005         Include <stdlib.h>, <string.h> unconditionally.
72006         (init_tokenbuffer): Define with a prototype.
72007
72008         * lib/regex.c (PARAMS): Remove.  All uses removed.
72009         All uses of _RE_ARGS removed, too.
72010         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72011         unconditionally.
72012         (bzero): Assume memset exists.
72013         (memcmp, memcpy, NULL): Remove.
72014         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
72015         char, or assignments to local vars of type signed char.
72016         (init_syntax_once, PREFIX(extract_number_and_incr),
72017         PREFIX(print_partial_compiled_pattern),
72018         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
72019         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
72020         PREFIX(regex_grow_registers), PREFIX(regex_compile),
72021         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
72022         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
72023         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
72024         wcs_compile_range, byte_compile_range, truncate_wchar,
72025         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
72026         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
72027         count_mbs_length, wcs_re_match_2_internal,
72028         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
72029         PREFIX(alt_match_null_string_p),
72030         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
72031         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
72032         regfree, PREFIX(extract_number)): Define with prototype.  Remove
72033         now-unnecessary declaration, if any.
72034         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
72035         regcomp, regexec):
72036         Remove now-unnecessary casts among pointer types.
72037         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
72038
72039         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
72040         (free): Remove decl.
72041
72042         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
72043
72044         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
72045         (free): Remove decl.
72046
72047         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
72048         * lib/xgetcwd.c: Likewise.
72049
72050         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
72051         (free): Remove decl.
72052
72053         * lib/strchrnul.c (strchrnul): Define with a prototype.
72054         Fix bug: c_in was not converted to char before searching.
72055
72056         The following changes are not K&R related:
72057
72058         * lib/group-member.h: Include <sys/types.h>, so that this file is
72059         self-contained.
72060         * lib/makepath.h: Likewise.
72061
72062         * lib/getusershell.c (readname, default_index, line_size, readname):
72063         Use size_t, not int, for sizes.
72064         (readname): If the size overflows, report an error instead of
72065         looping forever.
72066
72067 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72068
72069         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
72070         libc.
72071
72072 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72073
72074         * README: New section: portability guidelines.
72075
72076 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72077
72078         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
72079         C89 spec.
72080
72081 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72082
72083         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
72084
72085 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72086
72087         Assume C89 or better; remove K&R cruft.
72088         A few of these changes were first proposed by Derek Robert Price
72089         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
72090
72091         * lib/addext.c: Include <string.h> unconditionally.
72092         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
72093         Don't declare getenv or malloc.
72094
72095         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
72096         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
72097         (NULL): Remove.
72098         (find_stack_direction, alloca): Use prototypes.
72099
72100         * lib/atexit.c (atexit): Define using a prototype.
72101
72102         * lib/basename.c, dirname.c, stripslash.c:
72103         Include <string.h> unconditionally.
72104
72105         * lib/bcopy.c: Include <stddef.h>.
72106         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
72107
72108         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
72109
72110         * lib/error.h (error, error_at_line, error_print_progname)
72111         [! (defined (__STDC__) && __STDC__)]: Remove decls.
72112         * lib/error.c: Include error.h first, to check interface.
72113         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72114         (VA_START): Remove; all uses changeed to va_start.
72115         (exit, strerror): Remove decls.
72116         (error_print_progname): Prototype uncondionally.
72117         Don't include <errno.h>; no longer needed.
72118         (private_strerror): Remove.
72119         (error_tail): Always define.
72120         (error, error_at_line): Assume C89 or better; always use prototypes.
72121         * lib/fatal.c: Include "fatal.h" first, to test interface.
72122         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72123         (VA_START): Remove; all uses changed to va_start.
72124         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
72125         this case.
72126         (exit): Remove decl.
72127         (fatal): Prototype unconditionally.  Assume va_start works.
72128         Abort at end, to pacify gcc.
72129
72130         * lib/euidaccess.c (main): Define with a prototype.
72131
72132         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
72133
72134         * lib/exitfail.c: Include <stdlib.h> unconditionally.
72135
72136         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
72137         prototypes.
72138         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
72139         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
72140         (getenv): Remove decl.
72141         (fnmatch): Define using a prototype.
72142         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
72143         (FCT): Define using a prototype.
72144
72145         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
72146
72147         * lib/gethostname.c: Include <stddef.h>.
72148         (gethostname): Define with prototype.  Length is size_t, not int.
72149
72150 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72151
72152         Assume C89 or better; remove K&R cruft.
72153         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
72154         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
72155         string.h, getenv, malloc.
72156         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
72157         headers.
72158         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
72159         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
72160         do not check for strerror.
72161         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
72162         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
72163         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
72164         do not check for doprnt or vprintf.
72165         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
72166         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
72167
72168 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72169
72170         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
72171         getversion.c should have been removed then, but was accidentally
72172         preserved.
72173
72174         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
72175         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
72176
72177 2003-09-08  Karl Berry  <karl@gnu.org>
72178
72179         * config/config.sub, config.guess, srclistvars.sh: update from savannah
72180                 config, forget about prep.
72181
72182         * config/depcomp, missing: update from automake.
72183
72184 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72185
72186         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
72187         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72188
72189 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72190
72191         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
72192         copy_tm_result.  Bug reported by Simon Josefsson in
72193         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72194
72195 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72196
72197         * m4/time_r.m4: New file.
72198         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
72199         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
72200         is. Check for timegm declaration.
72201         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
72202         Do not check for gmtime_r.
72203         Replace mktime if __mktime_internal does not exist and if mktime
72204         hasn't been replaced already.
72205
72206 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72207
72208         * lib/time_r.c, lib/time_r.h: New files.
72209
72210         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
72211         __localtime_r.
72212         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
72213         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
72214
72215         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
72216         __gmtime_r.
72217         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
72218         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
72219         Include <time_r.h>.
72220
72221         * lib/timegm.c: Switch to glibc implementation, with the following
72222         changes:
72223         [defined HAVE_CONFIG_H]: Include <config.h>.
72224         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
72225         (__mktime_internal) [!defined _LIBC]: New decl.
72226         (__gmtime_r) [!defined _LIBC]: New macro and function.
72227         (timegm): Use a prototype, since gnulib assumes C89.
72228         Do not bother declaring tmp to be const, as it's not really usefu.
72229         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
72230         (timegm): Declare only if HAVE_DECL_TIMEGM.
72231
72232 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72233
72234         * MODULES.html.sh (func_all_modules): Add time_r.
72235         * modules/time_r: New file.
72236         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
72237         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
72238
72239 2003-09-03  Paul Eggert  <eggert@twinsun.com>
72240
72241         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
72242         Bug reported by Lute Kamstra in
72243         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
72244
72245         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
72246         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
72247         course with correspondingly smaller numbers for tomorrow and
72248         yesterday.  From Tadayoshi Funaba.  Originally installed into
72249         sh-utils on 1999-08-07, but the patch got lost (I guess during the
72250         coreutils merge?).
72251
72252 2003-08-31  Simon Josefsson  <jas@extundo.com>
72253
72254         * modules/timegm: New file.
72255         * MODULES.html.sh (func_all_modules): Add timegm.
72256
72257 2003-08-31  Simon Josefsson  <jas@extundo.com>
72258
72259         * m4/timegm.m4: New file.
72260
72261 2003-08-31  Simon Josefsson  <jas@extundo.com>
72262
72263         * lib/timegm.h: New file.
72264         * lib/timegm.c: New file.  Based on
72265         wget-1.8.2/src/http.c:mktime_from_utc.
72266
72267 2003-08-31  Karl Berry  <karl@gnu.org>
72268
72269         * lib/argp.h: update from libc.
72270
72271 2003-08-28  Bruno Haible  <bruno@clisp.org>
72272
72273         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
72274         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
72275         followed by '#define fnmatch fnmatch_posix' gives an error.
72276
72277 2003-08-28  Bruno Haible  <bruno@clisp.org>
72278
72279         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
72280         warning on QNX, which defines O_BINARY to 000000.
72281
72282 2003-08-27  Jim Meyering  <jim@meyering.net>
72283
72284         * m4/mkstemp.m4: Require that the system mkstemp be able to create
72285         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
72286         would fail after 32.  Reported by Danny Levinson.  Details here:
72287         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
72288
72289 2003-08-24  Bruno Haible  <bruno@clisp.org>
72290
72291         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
72292         MSVC7 <stdio.h> is included later.
72293
72294 2003-08-22  Simon Josefsson  <jas@extundo.com>
72295
72296         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
72297
72298 2003-08-20  Karl Berry  <karl@gnu.org>
72299
72300         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
72301
72302 2003-08-20  Bruno Haible  <bruno@clisp.org>
72303
72304         * modules/progname: New file.
72305         * MODULES.html.sh (func_all_modules): Add progname.
72306
72307 2003-08-20  Bruno Haible  <bruno@clisp.org>
72308
72309         * lib/progname.h: New file, from GNU gettext.
72310         * lib/progname.c: New file, from GNU gettext.
72311         * lib/progreloc.c: New file, from GNU gettext.
72312
72313 2003-08-19  Jim Meyering  <jim@meyering.net>
72314
72315         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
72316         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
72317
72318 2003-08-19  Bruno Haible  <bruno@clisp.org>
72319
72320         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
72321         more.
72322
72323 2003-08-19  Bruno Haible  <bruno@clisp.org>
72324
72325         * lib/xstrdup.c: Assume <string.h> exists.
72326
72327 2003-08-18  Paul Eggert  <eggert@twinsun.com>
72328
72329         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
72330         in makefile rules.
72331
72332 2003-08-18  Jim Meyering  <jim@meyering.net>
72333
72334         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
72335         * m4/lib-ld.m4: Likewise.
72336
72337 2003-08-18  Jim Meyering  <jim@meyering.net>
72338
72339         * lib/setenv.h: Indent nested cpp directive.
72340         * lib/vasnprintf.c: Remove trailing blanks.
72341
72342 2003-08-17  Simon Josefsson  <jas@extundo.com>
72343
72344         * modules/xstrndup: New file.
72345         * MODULES.html.sh (func_all_modules): Add xstrndup.
72346
72347 2003-08-17  Simon Josefsson  <jas@extundo.com>
72348
72349         * modules/argp: Fix autoconf macro name. Add more dependencies.
72350
72351 2003-08-17  Simon Josefsson  <jas@extundo.com>
72352
72353         * m4/xstrndup.m4: New file.
72354
72355 2003-08-17  Simon Josefsson  <jas@extundo.com>
72356
72357         * m4/argp.m4: New file.
72358
72359 2003-08-17  Simon Josefsson  <jas@extundo.com>
72360             Bruno Haible  <bruno@clisp.org>
72361
72362         * lib/xstrndup.h: New file.
72363         * lib/xstrndup.c: New file.
72364
72365 2003-08-17  Bruno Haible  <bruno@clisp.org>
72366
72367         * modules/strndup (Files, Include): Add lib/strndup.h.
72368
72369 2003-08-17  Bruno Haible  <bruno@clisp.org>
72370
72371         * modules/euidaccess (Files): Add lib/euidaccess.h.
72372
72373 2003-08-17  Bruno Haible  <bruno@clisp.org>
72374
72375         * lib/strndup.h: New file.
72376
72377 2003-08-17  Bruno Haible  <bruno@clisp.org>
72378
72379         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
72380         like AC_GNU_SOURCE.
72381         * modules/extensions (configure.ac): Comment out the invocation of
72382         gl_USE_SYSTEM_EXTENSIONS.
72383
72384 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72385
72386         Merges from coreutils, etc.
72387         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
72388         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
72389         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
72390         fixing a typo.
72391         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
72392         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
72393
72394 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72395
72396         Document merge from coreutils.
72397         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
72398         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
72399         * modules/utime: Add m4/utimes-null.m4.
72400
72401 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72402
72403         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
72404         space, undoing this 2003-08-12 change:
72405         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72406
72407 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72408
72409         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
72410         strtoul.c from libc, undoing this 2003-08-12 change:
72411         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72412
72413 2003-08-16  Jim Meyering  <jim@meyering.net>
72414
72415         Merges from coreutils.
72416         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
72417         prefix.  Adjust cache variables similarly.  Create 500 rather than
72418         just 300 files, to exercise bug on Darwin6.5, too.
72419         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
72420         $missing_dir.
72421         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
72422         AM_SYS_POSIX_TERMIOS.
72423         Reported by mkc@mathdogs.com.
72424         Also change use of $am_cv_sys_posix_termios
72425         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
72426         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
72427         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
72428         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
72429         in /proc/mounts until it finds one with matching device number.  This
72430         is unnecessary when the FILE argument *is* a mount point.  No stat call
72431         is necessary in that case.  So, disable the statvfs-testing code on
72432         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
72433         as RedHat bug# 84846.
72434         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72435         to 1MB, so as not to render systems with no stack size limit (e.g.,
72436         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72437         Include <unistd.h>.  On some systems,
72438         it is required for the definition of _SC_PAGESIZE.
72439
72440 2003-08-16  Jim Meyering  <jim@meyering.net>
72441
72442         Merge from coreutils.
72443         * lib/xstrtoimax.c: #else #if -> #elif.
72444         * lib/xstrtoumax.c: Likewise.
72445
72446 2003-08-16  Jim Meyering  <jim@meyering.net>
72447
72448         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
72449         * m4/utimes.m4: Removed.
72450         * m4/utimes-null.m4: Renamed from utimes.m4.
72451
72452         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72453         to 1MB, so as not to render systems with no stack size limit (e.g.,
72454         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72455         Include <unistd.h>.  On some systems,
72456         it is required for the definition of _SC_PAGESIZE.
72457
72458 2003-08-16  Jim Meyering  <jim@meyering.net>
72459         and Paul Eggert  <eggert@cs.ucla.edu>
72460
72461         Merges from coreutils, etc.
72462
72463         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
72464         using the latest version from cvs.  This avoids problems with #line
72465         directives using a vendor (Sun) compiler.
72466         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
72467         Don't set GETGROUPS_LIB here; now it's
72468         done via getgroups.m4's wrapper function.
72469         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
72470         rather than just in sh-util/configure.in, so that the
72471         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
72472         same.
72473         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
72474         AC_FUNC_GETLOADAVG where to find getloadavg.c.
72475         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
72476         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
72477         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
72478         Remove code that is now done by the newly-required macros.
72479         Append $(EXEEXT) to DF_PROG.
72480         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
72481         Do not invoke or require the following here,
72482         since prereq.m4 or some gnulib .m4 now does this for us:
72483         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
72484         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
72485         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
72486         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
72487         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
72488         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
72489         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
72490         AC_FUNC_OBSTACK.
72491         Do not replace the following functions, as this is now the job
72492         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
72493         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
72494         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
72495         atexit getpass, strdup, getpagesize.
72496         Replace 'raise'.
72497         Do not check for the following functions, as this is now the job
72498         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
72499         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
72500         setregid.
72501         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
72502         Check for sys/sysctl.h.
72503         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
72504         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
72505         of checking for ssize_t ourselves.
72506
72507         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
72508         Require every macro that gnulib/modules/* suggests for us.
72509         (jm_PREREQ_ADDEXT): New macro.
72510         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
72511         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
72512
72513         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
72514         (gl_PHYSMEM): Use it.
72515         Also check for `table' function.
72516         Check for new headers and functions.
72517         Add check for sys/sysmp.h.
72518         With suggestions from Kaveh Ghazi.
72519         Ignore headers that are present but cannot be compiled.  This
72520         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
72521         C 5.4.
72522
72523 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72524
72525         Document merge from coreutils.
72526         * modules/userspec: Depend on posixver.
72527         * modules/strftime: Depend on tzset.
72528
72529 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72530
72531         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
72532         rather than tab, after '#' in shell-script copyright notices.
72533         Suggested by Bruno Haible.
72534
72535 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72536
72537         * config/srclist-update: Use three spaces, rather than tab, after '#'
72538         in shell-script copyright notices.  Suggested by Bruno Haible.
72539         Remove unnecessary parenthesization in regular expression.
72540
72541 2003-08-15  Jim Meyering  <jim@meyering.net>
72542
72543         Merge from coreutils.
72544         * lib/xgethostname.c: Include <stdlib.h>.
72545         (xghostname): Don't exit for anything other than memory-related
72546         failure; just return NULL.
72547         * lib/userspec.c: Include "posixver.h".
72548         (parse_user_spec): Accept `.' as a separator only
72549         in pre-POSIX-200112 mode.
72550         * lib/strtoimax.c: Use #elif rather than #else #if.
72551         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
72552         Remove function, now that we can rely on a working tzset function.
72553         [!_LIBC]: Ensure that the required autoconf test has been run.
72554         [!defined _NL_CURRENT && HAVE_STRFTIME]:
72555         Use underlying_strftime for %r.
72556         * lib/sha.c: Merge in some clean-up and optimization changes from
72557         glibc.
72558         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
72559         Ensure that it is a multiple of 64.
72560         Rearrange loop exit tests so as to avoid performing an
72561         additional fread after encountering an error or EOF.
72562         * lib/realloc.c: Update copyright date.
72563
72564 2003-08-15  Jim Meyering  <jim@meyering.net>
72565         and Paul Eggert  <eggert@twinsun.com>
72566
72567         Merge from coreutils.
72568         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
72569         member but strut utmpx does not.  Needed for AIX 4.3.3.
72570         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
72571
72572 2003-08-15  Jim Meyering  <jim@meyering.net>
72573         and Paul Eggert  <eggert@cs.ucla.edu>
72574
72575         Merges from coreutils, etc.
72576         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
72577         Require gl_FUNC_TZSET_CLOBBER.
72578         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
72579         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
72580         members.
72581
72582 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72583
72584         Help the merge from coreutils.
72585         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
72586         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
72587         * m4/tzset.m4: Use it too.
72588
72589 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72590
72591         * modules/tzset: New file.
72592
72593 2003-08-14  Jim Meyering  <jim@meyering.net>
72594
72595         Merges from coreutils.
72596         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
72597         variable names, rather than @FNMATCH_H@.
72598         * modules/alloca: Likewise for $(ALLOCA_H).
72599
72600         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
72601         the three copies of the literal target, `fnmatch.h'.
72602         * modules/alloca (alloca.h): Likewise.
72603
72604 2003-08-14  Jim Meyering  <jim@meyering.net>
72605
72606         Merge from coreutils.
72607         * m4/tzset.m4: New file.
72608         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
72609         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
72610         otherwise, AIX 5.1 systems would end up using the latter.
72611         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
72612         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
72613         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
72614         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
72615
72616 2003-08-14  Jim Meyering  <jim@meyering.net>
72617
72618         Merge from coreutils.
72619         * lib/obstack.h: Whitespace changes.
72620         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
72621         and xcalloc return values.
72622         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
72623         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
72624         hang on OSF/1 5.1 for DIR on both local and remote file systems.
72625         Reported by (and fix confirmed by) Nelson H. F. Beebe.
72626         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72627         error from mntctl.
72628         Use mntctl's return value to drive the entry-processing loop, since
72629         we can't rely on the value of the vmt_length member in the last
72630         entry.  On some systems doing so could result in exhausting
72631         virtual memory.  Based in part on a patch from Mike Jetzer.
72632
72633 2003-08-14  Jim Meyering  <jim@meyering.net>
72634         and Paul Eggert  <eggert@twinsun.com>
72635
72636         Merges from coreutils, plus other fixes.
72637         * lib/physmem.c: Merge in portability changes from gcc/libiberty
72638         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
72639         for credits and details.  Thanks to Kaveh Ghazi for helping
72640         to keep these files in sync.
72641         (ARRAY_SIZE): Define it.
72642         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
72643         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
72644         (memcasecmp): Don't assume size_t fits in unsigned int.
72645         Remove casts and duplicate code.
72646         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
72647         (memcpy): Remove definition.
72648         Merge in some clean-up and optimization changes from glibc.
72649         [BLOCKSIZE]: Move definition to top of file.
72650         Ensure that it is a multiple of 64.
72651         Rearrange loop exit tests so as to avoid performing an
72652         additional fread after encountering an error or EOF.
72653         * lib/md5.h (md5_uintptr): Define.
72654         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
72655         return to the initial working directory.  Preserve errno
72656         for caller.
72657         * lib/idcache.c: Include "xalloc.h".
72658         (xmalloc, xrealloc): Remove decls.
72659         (getuser): Remove casts no longer required in C89.
72660         * lib/human.c: Include stdio.h, for sprintf.
72661         * lib/group-member.c: Include "xalloc.h".
72662         (xmalloc, xrealloc): Remove decls.
72663         (get_group_info): Remove casts no longer required in C89.
72664         * lib/getusershell.c (readname): Remove casts no longer required in
72665         C89.
72666         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
72667         * lib/getline.c: Whitespace fix, from coreutils.
72668
72669 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72670
72671         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
72672         Check for isascii.
72673
72674         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72675         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72676         Undo previous (whitespace-only) change.
72677
72678 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72679
72680         * lib/exclude.c: Include <ctype.h>
72681         (IN_CTYPE_DOMAIN): New macro.
72682         (is_space): New fn.
72683         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
72684         and empty lines.
72685
72686         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72687         Undo previous (whitespace-only) change.
72688
72689 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72690
72691         * config/srclist-update: Change update back to the old behavior,
72692         leaving whitespace alone.  Use one 'sed' command rather than a
72693         pipeline.
72694         (fixlicense): Now a variable, not a function.
72695         (remove_trailing_blanks): Remove.
72696         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
72697         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72698         Undo previous (whitespace-only) change.
72699
72700 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72701
72702         Merge from coreutils.
72703         * modules/euidaccess: Add lib_SOURCES, include for new
72704         file euidaccess.h
72705
72706 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72707
72708         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72709         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72710         Normalize leading white space and remove trailing white space.
72711
72712         Merge from coreutils
72713         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
72714
72715         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
72716         0.12.1.  These files are now being upgraded automatically by
72717         ../config/srclist-update.
72718
72719 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72720
72721         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72722         Normalize leading white space and remove trailing white space.
72723         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
72724         notice, as per ../config/srclist-update.
72725
72726         Merge from coreutils.
72727         * lib/euidaccess.h: New file.
72728         * lib/euidaccess.c: Include it.
72729         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
72730         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
72731         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
72732
72733 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72734
72735         * config/srclist-update: Add copyright notice.
72736         (remove_id_lines, remove_trailing_blanks): New constants.
72737         (fixfile): Use them to normalize spacing a bit in copied files.
72738         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72739         Normalize leading white space and remove trailing white space.
72740
72741         * config/texinfo.tex: Sync with texinfo.
72742
72743         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
72744         strtoul.c from libc, to merge coreutils whitespace changes.
72745
72746         * config/srclist.txt: Get the following m4 files from gettext:
72747         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
72748         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
72749         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
72750         wint_t.m4.
72751
72752 2003-08-12  Karl Berry  <karl@gnu.org>
72753
72754         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
72755         been made.
72756
72757 2003-08-11  Paul Eggert  <eggert@twinsun.com>
72758
72759         * modules/gnu-source, m4/gnu-source.m4:
72760         Remove; we're assuming Autoconf 2.54 or later now.
72761         Suggested by Bruno Haible.
72762         * MODULES.html.sh (func_all_modules): Remove gnu-source.
72763
72764 2003-08-11  Bruno Haible  <bruno@clisp.org>
72765
72766         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
72767
72768 2003-08-11  Bruno Haible  <bruno@clisp.org>
72769
72770         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
72771         (vasnprintf): Use it instead of wcslen.
72772
72773 2003-08-11  Bruno Haible  <bruno@clisp.org>
72774
72775         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
72776         value to ensure that _Bool promotes to int. Use #define for _Bool when
72777         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
72778
72779 2003-08-10  Karl Berry  <karl@gnu.org>
72780
72781         * lib/regex.h: update from libc (whitespace fix).
72782
72783 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72784
72785         Merge some files from coreutils.  These changes were
72786         originally made by Jim Meyering.
72787         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
72788         many older Unixes require this.
72789         * lib/alloca.c (alloca): Remove cast to argument of free;
72790         no longer needed in C89.
72791         * lib/alloca_.h, regex.h: Fix white space to match
72792         what GNU indent does.
72793
72794 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72795
72796         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
72797         apparently Emacs's Unicode mode got confused before my 2003-08-05
72798         checkin.
72799
72800 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72801
72802         * m4/extensions.m4: New file.
72803         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
72804         Require gl_USE_SYSTEM_EXTENSIONS.
72805         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
72806         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
72807
72808 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72809
72810         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
72811         * modules/extensions, modules/gnu-source: New files.
72812         * modules/timespec, modules/unlocked-io: Depend on extensions.
72813
72814 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72815
72816         * modules/restrict: New file.
72817         * MODULES.html.sh (func_all_modules): Add restrict.
72818         * modules/regex: Depend on restrict.
72819
72820 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72821
72822         * m4/restrict.m4: New file.
72823         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
72824
72825 2003-08-07  Bruno Haible  <bruno@clisp.org>
72826
72827         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
72828         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
72829
72830 2003-08-07  Bruno Haible  <bruno@clisp.org>
72831
72832         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
72833         makes the module 'getndelim2' compatible with the module 'getline'.
72834
72835 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72836
72837         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
72838         byte with "\201" to avoid glitches when editing that source file
72839         with multi-gnome-terminal.
72840
72841 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72842
72843         * lib/bumpalloc.h: Remove.
72844
72845 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72846
72847         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
72848         * modules/bumpalloc: Remove.
72849
72850 2003-08-04  Paul Eggert  <eggert@twinsun.com>
72851
72852         * lib/getloadavg.c: Change copyright notice and spacing to conform to
72853         GNU coding style.
72854
72855         Merge from coreutils.
72856         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
72857         1. From glibc.
72858         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
72859         from Karl Berry, implemented by Jim Meyering.
72860         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
72861         from Dmitry V. Levin.
72862         Remove anachronistic cast of xrealloc.
72863         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
72864         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
72865         type. Otherwise, it wouldn't compile with at least /bin/cc on
72866         ymp-cray-unicos9.0.2.X.
72867         Combine two mostly-identical uses of alloca into one.
72868         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
72869
72870 2003-08-04  Dave Love  <d.love@dl.ac.uk>
72871
72872         [From Emacs.]
72873
72874         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
72875         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
72876         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
72877         obsolete NLIST_NAME_UNION.
72878         [__GNU__]: Undef BSD and FSCALE.
72879         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
72880
72881 2003-08-03  Paul Eggert  <eggert@twinsun.com>
72882
72883         * lib/stdbool_.h (_Bool): Make it signed char, instead of
72884         an enum type, so that it's guaranteed to promote to int.  See:
72885         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
72886
72887 2003-08-03  Karl Berry  <karl@gnu.org>
72888
72889         * config/depcomp: update from automake.
72890
72891 2003-07-31  Paul Eggert  <eggert@twinsun.com>
72892
72893         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
72894         (strerror): Don't assume that a printable int fits in 14 bytes.
72895
72896 2003-07-31  Bruno Haible  <bruno@clisp.org>
72897
72898         * modules/getpass-gnu: New file.
72899         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
72900
72901 2003-07-31  Bruno Haible  <bruno@clisp.org>
72902
72903         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72904
72905 2003-07-24  Karl Berry  <karl@gnu.org>
72906
72907         * config/missing: update from automake.
72908
72909 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
72910             Bruno Haible  <bruno@clisp.org>
72911
72912         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
72913         * lib/getline.c (getline, getdelim): Likewise.
72914         Remove _GNU_SOURCE define; now it's defined in config.h through
72915         m4/getline.m4.
72916
72917 2003-07-23  Karl Berry  <karl@gnu.org>
72918
72919         * config/config.sub: update from prep.
72920
72921 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72922
72923         * modules/xalloc (Depends-on): Add exitfail.
72924         * modules/xmemcoll: Likewise.
72925
72926 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72927
72928         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
72929         over-parenthesization in macros.
72930
72931         Sync with coreutils.
72932
72933         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
72934         required by C99.
72935
72936         Use `exit_failure' for xalloc and xmemcoll instead of their own
72937         private exit-failure variables.
72938         * lib/xalloc.h (xalloc_exit_failure): Remove.
72939         * lib/xmalloc.c: Likewise.  Include exitfail.h.
72940         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
72941         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
72942         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
72943         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
72944
72945 2003-07-20  Jim Meyering  <jim@meyering.net>
72946
72947         * modules/closeout (Depends-on): Add exitfail.
72948         Suggestion from Bruno Haible.
72949
72950 2003-07-19  Karl Berry  <karl@gnu.org>
72951
72952         * config/config.sub: update from prep.
72953
72954 2003-07-18  Paul Eggert  <eggert@twinsun.com>
72955
72956         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
72957         Remove.
72958         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
72959         to test that it can stand by itself.  Include "exitfail.h".
72960         Clients should set exit_failure instead.
72961         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
72962
72963 2003-07-18  Bruno Haible  <bruno@clisp.org>
72964
72965         * modules/getndelim2: New file.
72966         * modules/getline: Share files with module getndelim2.
72967         * modules/getnline: Depend on getndelim2 instead of sharing files with
72968         it. Add getnline.c to lib_SOURCES.
72969         * MODULES.html.sh (func_all_modules): Add getndelim2.
72970
72971 2003-07-18  Bruno Haible  <bruno@clisp.org>
72972
72973         * m4/getndelim2.m4: New file.
72974         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
72975         invoke gl_PREREQ_GETNDELIM2.
72976         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
72977         gl_PREREQ_GETNDELIM2.
72978         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
72979         gl_GETNDELIM2.
72980
72981 2003-07-18  Bruno Haible  <bruno@clisp.org>
72982
72983         * lib/getndelim2.h: New file.
72984         * lib/getndelim2.c: Make into a module of its own. Include config.h,
72985         getndelim2.h.
72986         (getndelim2): Make non-static. Change return type to ssize_t.
72987         * lib/getline.h: Change argument names.
72988         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
72989         * lib/getnline.c: Include getndelim2.h.
72990
72991 2003-07-18  Andreas Schwab  <schwab@suse.de>
72992
72993         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
72994
72995 2003-07-17  Karl Berry  <karl@gnu.org>
72996
72997         * config/config.sub: update from prep.
72998
72999 2003-07-17  Bruno Haible  <bruno@clisp.org>
73000
73001         * modules/getnline: New file.
73002         * modules/getline: Add lib/getndelim2.c to source file list.
73003         * MODULES.html.sh (func_all_modules): Add getnline.
73004
73005 2003-07-17  Bruno Haible  <bruno@clisp.org>
73006
73007         * m4/getnline.m4: New file.
73008
73009 2003-07-17  Bruno Haible  <bruno@clisp.org>
73010
73011         * m4/Makefile.am.in: Remove file.
73012         * m4/Makefile.am: Remove file.
73013         * m4/Makefile.in: Remove file.
73014
73015 2003-07-17  Bruno Haible  <bruno@clisp.org>
73016
73017         * lib/getnline.h: New file.
73018         * lib/getnline.c: New file.
73019         * lib/getndelim2.c: New file, extracted from getline.c.
73020         (getndelim2): Renamed from getdelim2, with added nmax argument.
73021         * lib/getline.c: Include getndelim2.c.
73022         (getdelim2): Moved out to getndelim2.c.
73023         (getline, getdelim): Update.
73024
73025 2003-07-17  Bruno Haible  <bruno@clisp.org>
73026
73027         * lib/Makefile.am: Remove file.
73028         * lib/Makefile.in: Remove file.
73029
73030 2003-07-17  Bruno Haible  <bruno@clisp.org>
73031
73032         * configure.in: Remove file.
73033         * Makefile.in: Remove file.
73034
73035 2003-07-17  Bruno Haible  <bruno@clisp.org>
73036
73037         * MODULES.html.sh: Put the </BODY> right before </HTML>.
73038
73039 2003-07-16  Karl Berry  <karl@gnu.org>
73040
73041         * config/srclist-update: was running fixlicense twice, which caused
73042                 texinfo.tex to be nullified for some reason.  Simplify,
73043                 $gplsrc is no longer needed as far as I can see?
73044
73045 2003-07-16  Jim Meyering  <jim@meyering.net>
73046
73047         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
73048
73049 2003-07-15  Paul Eggert  <eggert@twinsun.com>
73050
73051         * config/srclist.txt: Get the following files from gettext-runtime/intl
73052         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
73053         ref-del.sin.  From Bruno Haible.
73054         * config/srclist-update (fixfile): Change grep pattern again, since the
73055         previous fix didn't work (there was another trailing $).  Use
73056         '[$]' to escape the $s.
73057
73058 2003-07-15  Karl Berry  <karl@gnu.org>
73059
73060         * lib/vasnprintf.c: update from gettext.
73061
73062 2003-07-15  Karl Berry  <karl@gnu.org>
73063
73064         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
73065         gets expanded when surrounded by '$'.
73066
73067 2003-07-15  Jim Meyering  <jim@meyering.net>
73068
73069         * modules/save-cwd: Don't depend on error.  From Derek Price.
73070
73071 2003-07-15  Jim Meyering  <jim@meyering.net>
73072
73073         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
73074
73075 2003-07-14  Simon Josefsson  <jas@extundo.com>
73076
73077         * modules/mempcpy: New file.
73078         * MODULES.html.sh (func_all_modules): Add mempcpy.
73079
73080 2003-07-14  Simon Josefsson  <jas@extundo.com>
73081
73082         * m4/mempcpy.m4: New file.
73083
73084 2003-07-14  Simon Josefsson  <jas@extundo.com>
73085
73086         * lib/mempcpy.h: New file.
73087         * lib/mempcpy.c: New file.
73088
73089 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73090
73091         * modules/getdate, modules/posixtm: Depend on mktime.
73092
73093 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73094
73095         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
73096         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
73097         unicodeio.c, unicodeio.h, unlocked-io.h:
73098         Switch from LGPL to GPL.
73099
73100 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73101
73102         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
73103         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
73104         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
73105         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
73106         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
73107         updated automatically by ../config/srclist-update.  This changes
73108         their license from LPGL to GPL.
73109
73110 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73111
73112         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
73113         assumed to refer to the root of the most recent stable gettext version.
73114         * config/srclistvars.sh: Add defaults for eggert.
73115         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
73116         Match "This program" as well as "The program".  This is needed
73117         for gettext.
73118
73119 2003-07-14  Jim Meyering  <jim@meyering.net>
73120
73121         Don't emit diagnostics.  Let callers do that.
73122         * lib/save-cwd.c: Don't include "error.h".
73123         (save_cwd): Don't call error.  Ensure that errno is valid
73124         when returning nonzero.
73125
73126         * lib/save-cwd.h (restore_cwd): Update prototype.
73127         * lib/save-cwd.c (restore_cwd): Remove two parameters.
73128         Simplify.  Don't call error upon failure.  Let callers do that.
73129         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
73130         when auditing is enabled.  But don't bother updating the #if.
73131
73132 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
73133
73134         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
73135         it breaks C++ compilation.
73136         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
73137
73138 2003-07-10  Simon Josefsson  <jas@extundo.com>
73139
73140         * modules/strchrnul (Makefile.am): Add strchrnul.h.
73141
73142 2003-07-10  Jim Meyering  <jim@meyering.net>
73143
73144         * m4/clock_time.m4: Remove trailing blank.
73145         * m4/intmax_t.m4: Likewise.
73146
73147 2003-07-10  Jim Meyering  <jim@meyering.net>
73148
73149         * lib/vasnprintf.c: Remove trailing blanks.
73150         Make cpp indentation consistent.
73151
73152 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73153
73154         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
73155         posixver.c, strftime.c, strnlen.c, strverscmp.c:
73156         Switch from LGPL to GPL.
73157
73158 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73159
73160         * config/srclist.txt: Sort sublists.  Add
73161         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
73162         that differ from gnulib for one reason or another; we'd like this list
73163         to be smaller but for now let's document what we have.
73164
73165 2003-07-08  Paul Eggert  <eggert@twinsun.com>
73166
73167         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
73168         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
73169         and sweeter "eval x=$x".
73170         * config/srclist.txt: Get lib/argp* from glibc.
73171
73172 2003-07-07  Paul Eggert  <eggert@twinsun.com>
73173
73174         * lib/mktime.c: Fix some boundary cases and remove need for floating
73175         point.
73176
73177         Issue a compile-time diagnostic if time_t is floating point, or if
73178         two's complement arithmetic is not in effect, or if arithmetic
73179         right shift does not propagate the sign.  These assumptions were
73180         all in the original code but they weren't checked.
73181
73182         (TIME_T_MIDPOINT, verify): New macros.
73183         (__isleap): Remove; it has integer overflow problems.
73184         (leapyear): New function, without those problems.
73185         (ydhms_tm_diff): Remove; splitting into two parts.
73186         (ydhms_diff): New function, containing the arithmetic part of
73187         the old ydhms_tm_diff function.  Issue a compile-time
73188         diagnostic if we are not using C99 integer division.
73189         Avoid casts when possible.
73190         (guess_time_tm): New function, containing the checking part of
73191         the old ydhms_tm_diff function.  Return the new value, rather than
73192         the difference between it and the old.  Accept a new argument T
73193         so that *T specifies the old value.  Check for overflow in the result.
73194
73195         (__mktime_internal): Use a time_t offset, not a long int offset.
73196         This undoes the 2003-06-04 change, which is no longer needed now
73197         that we have better overflow checking.
73198         (localtime_offset): Likewise.
73199
73200         (__mktime_internal): Avoid harmful overflow on hosts where time_t
73201         and long are 64-bit but int is only 32-bit.
73202         (ydhms_diff): Use long int to store year1 and yday1.
73203         Issue a compile-time diagnostic if long int is not wide enough.
73204
73205         (__mktime_internal): Use long int to store adjusted year and yday.
73206         Use plain C rather than preprocessor commands, if that doesn't
73207         affect efficiency.
73208         Check for overflow (and try to repair) after each probe
73209         rather than checking only at the very end.  This avoids some bugs
73210         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
73211         does not equal GMT offset at maximum time).
73212         Use integer to check for overflow rather than floating point; this
73213         is more portable to non-IEEE hosts, and is a tad faster.
73214         When we detect that we are oscillating between two values,
73215         don't check whether tm_isdst has the requested value, since
73216         we already know the answer.  When tm_isdst has the wrong value,
73217         use a different heuristic to find the right one, based on the
73218         extreme values actually observed in practice in tz2003a,
73219         rather than the (overly optimistic) "previous 3 calendar quarters".
73220
73221         (not_equal_tm, print_tm, check_result): Use "const T" rather than
73222         "T const" to accommodate glibc style.
73223         (check_result): Use less-confusing report format.  "long" -> "long int.
73224         (main): Likewise.
73225         Don't loop if the iteration overflows time_t.
73226         Allow a negative step in the iteration.
73227
73228 2003-07-06  Karl Berry  <karl@gnu.org>
73229
73230         * config/depcomp: update from automake.
73231         * config/config.sub: update from prep.
73232
73233 2003-07-03  Karl Berry  <karl@gnu.org>
73234
73235         * config/config.guess: update from prep.
73236
73237 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73238
73239         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
73240         xreadlink.c now includes it unconditionally.
73241
73242 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73243
73244         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
73245         having it depend on HAVE_SYS_TYPES_H.
73246
73247 2003-07-01  Bruno Haible  <bruno@clisp.org>
73248
73249         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
73250         <sys/types.h> should be sufficient.
73251         Reported by Paul Eggert.
73252
73253 2003-06-26  Karl Berry  <karl@gnu.org>
73254
73255         * config/depcomp: update from automake.
73256
73257 2003-06-26  Bruno Haible  <bruno@clisp.org>
73258
73259         * modules/human: Depend on module stdbool.
73260
73261 2003-06-25  Bruno Haible  <bruno@clisp.org>
73262
73263         * modules/readlink: New file.
73264         * modules/xreadlink: Depend on it.
73265         * MODULES.html.sh (func_all_modules): Add readlink.
73266
73267 2003-06-25  Bruno Haible  <bruno@clisp.org>
73268
73269         * m4/readlink.m4: New file.
73270
73271 2003-06-25  Bruno Haible  <bruno@clisp.org>
73272
73273         * lib/readlink.c: New file.
73274
73275 2003-06-22  Karl Berry  <karl@gnu.org>
73276
73277         * config/srclist.txt: update mkinstalldirs from automake.
73278         * config/mkinstalldirs: update.
73279
73280 2003-06-22  Bruno Haible  <bruno@clisp.org>
73281
73282         Portability to mingw32.
73283         * m4/ssize_t.m4: New file, from GNU gettext.
73284         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
73285         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
73286
73287 2003-06-22  Bruno Haible  <bruno@clisp.org>
73288
73289         * modules/safe-read: Add m4/ssize_t.m4.
73290         * modules/xreadlink: Add m4/ssize_t.m4.
73291
73292 2003-06-20  Bruno Haible  <bruno@clisp.org>
73293
73294         Assume C89, so PARAMS isn't needed.
73295         * lib/unicodeio.h (PARAMS): Remove.
73296         * lib/unicodeio.c: Don't use PARAMS.
73297
73298 2003-06-18  Karl Berry  <karl@gnu.org>
73299
73300         * config/config.{guess,sub}: update from prep.
73301
73302 2003-06-18  Jim Meyering  <jim@meyering.net>
73303
73304         Merge changes from coreutils.
73305         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
73306         Remove explicit declarations of xmalloc and realloc.
73307         Include xalloc.h.
73308         (read_utmp): Remove anachronistic cast of xmalloc.
73309
73310 2003-06-17  Paul Eggert  <eggert@twinsun.com>
73311
73312         Assume C89, so PARAMS isn't needed.
73313         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
73314         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
73315         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
73316         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
73317         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
73318         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
73319         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
73320         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
73321         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
73322         lib/xstrtod.h, lib/xstrtol.h: Likewise.
73323         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
73324         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
73325         no longer needed. Anyway, config.h should always be included before any
73326         other file.
73327
73328 2003-06-11  Simon Josefsson  <jas@extundo.com>
73329
73330         * modules/sysexits: New file.
73331         * MODULES.html.sh (func_all_modules): Add sysexits.
73332
73333 2003-06-11  Simon Josefsson  <jas@extundo.com>
73334
73335         * lib/sysexit_.h: New file.
73336
73337 2003-06-11  Derek Price  <derek@ximbiot.com>
73338
73339         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
73340         necessary.
73341
73342 2003-06-11  Bruno Haible  <bruno@clisp.org>
73343
73344         * m4/sysexits.m4: New file.
73345
73346 2003-06-10  Simon Josefsson  <jas@extundo.com>
73347
73348         * lib/argp.h: New file, from glibc.
73349         * lib/argp-ba.c: New file, from glibc.
73350         * lib/argp-eexst.c: New file, from glibc.
73351         * lib/argp-fmtstream.c: New file, from glibc.
73352         * lib/argp-fmtstream.h: New file, from glibc.
73353         * lib/argp-fs-xinl.c: New file, from glibc.
73354         * lib/argp-help.c: New file, from glibc.
73355         * lib/argp-namefrob.h: New file, from glibc.
73356         * lib/argp-parse.c: New file, from glibc.
73357         * lib/argp-pv.c: New file, from glibc.
73358         * lib/argp-pvh.c: New file, from glibc.
73359         * lib/argp-xinl.c: New file, from glibc.
73360
73361 2003-06-10  Simon Josefsson  <jas@extundo.com>
73362
73363         * modules/strchrnul: New file.
73364
73365 2003-06-10  Simon Josefsson  <jas@extundo.com>
73366
73367         * modules/argp: New file.
73368
73369 2003-06-10  Simon Josefsson  <jas@extundo.com>
73370
73371         * m4/strchrnul.m4: New file.
73372
73373 2003-06-10  Simon Josefsson  <jas@extundo.com>
73374
73375         * lib/strchrnul.h: New file.
73376         * lib/strchrnul.c: New file.
73377
73378 2003-06-10  Bruno Haible  <bruno@clisp.org>
73379
73380         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
73381
73382 2003-06-07  Karl Berry  <karl@gnu.org>
73383
73384         * config/config.{guess,sub}: update from prep.
73385
73386 2003-06-07  Jim Meyering  <jim@meyering.net>
73387
73388         * modules/strtod: Use $(...) notation, not @...@ for
73389         AC_REPLACE'd variables.
73390         * modules/localcharset: Likewise.
73391
73392 2003-06-07  Jim Meyering  <jim@meyering.net>
73393
73394         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
73395         in place of my name in the copyright comment.
73396         Remove definition and uses of __P.
73397
73398         From coreutils.
73399         * lib/stat.c: Don't declare xmalloc explicitly.
73400         Instead, include "xalloc.h".
73401         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
73402         xrealloc, and xcalloc return values.
73403         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
73404         Improve comment.
73405         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
73406
73407 2003-06-07  Bruno Haible  <bruno@clisp.org>
73408
73409         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
73410         avoid AC_CONFIG_LINKS.
73411         * modules/fnmatch (Makefile.am): Use explicit creation rule for
73412         fnmatch.h, to avoid AC_CONFIG_LINKS.
73413         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
73414
73415 2003-06-07  Bruno Haible  <bruno@clisp.org>
73416
73417         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
73418         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
73419         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73420         directory.
73421         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
73422         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73423         directory.
73424
73425 2003-06-06  Jim Meyering  <jim@meyering.net>
73426
73427         Merge from coreutils.
73428         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
73429         Consolidate declarations and initializations of *_base* locals.
73430
73431         Merge from coreutils.
73432         This avoids a core dump on systems without GNU putenv,
73433         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
73434         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
73435         (unsetenv): New static function, from GNU libc.
73436         (rpl_putenv): Use it.
73437
73438         * lib/modechange.c: Remove trailing blanks.
73439
73440         Merge from coreutils.
73441         * lib/fsusage.c: Remove declaration of statfs.
73442         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
73443
73444         * lib/posixtm.c: Include <stdbool.h> unconditionally.
73445
73446 2003-06-06  Jim Meyering  <jim@meyering.net>
73447
73448         * lib/stdbool_.h: Renamed from stdbool.h.in.
73449
73450 2003-06-06  Jim Meyering  <jim@meyering.net>
73451             Bruno Haible  <bruno@clisp.org>
73452
73453         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
73454         Adjust Makefile.am snippet not to redirect directly to target.
73455         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
73456
73457 2003-06-05  Paul Eggert  <eggert@twinsun.com>
73458
73459         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
73460         mismatch, look in future quarters as well as past.  This fixes a
73461         bug when processing fall-backwards gaps immediately after a long
73462         period of daylight-saving time.
73463
73464         * lib/mktime.c: Assume freestanding C89 or better.
73465         (HAVE_LIMITS_H): Remove.  Assume it's 1.
73466         (__P): Remove; not used.
73467         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
73468         (mktime, not_equal_tm, print_tm, check_result,
73469         main): Use prototypes.  Use const * where appropriate.
73470         (main): Fix typo in testing code that uncovered by above changes.
73471         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
73472
73473 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73474
73475         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
73476         locale.h, localeconv.  This merges changes from coreutils.
73477
73478         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
73479         It can be removed after the next Autoconf is released.
73480         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
73481         needed.
73482
73483 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73484
73485         * lib/mktime.c: Fix Debian bug 177940
73486         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
73487         (localtime_offset): Now long int, not time_t, because we want it
73488         to be guaranteed to be signed.  All uses changed.
73489         (__mktime_internal): If overflow would occur when adding offset,
73490         don't add it.
73491
73492         Merge 'human' changes from coreutils.  Rewrite to support
73493         locale-specific notations like thousands separators.
73494         * lib/human.c: Simplify authorship notice.
73495         Include human.h immediately after config.h.
73496         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
73497         <limits.h>: Do not include, since human.h does.
73498         (SIZE_MAX, UINTMAX_MAX): New macros.
73499         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
73500         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
73501         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
73502         (power_letter): Renamed from suffixes.
73503         (generate_suffix_backwards): Remove.
73504         (adjust_value): Now takes int style (because of human.h changes)
73505         and long double value (for greater precision on some platforms).
73506         (group_number): New function.
73507         (human_readable): Use it.  Use integer options, not enum.
73508         Put the options before the sizes in the arg list.
73509         Support all the new options.
73510         The old human_readable function has been removed;
73511         use inttostr.h instead.
73512         (human_readable, default_block_size, humblock):
73513         Use uintmax_t, not int, for block sizes.
73514         (human_readable_inexact, block_size_types): Remove.
73515         (block_size_opts): New constant.
73516         (human_options): Renamed from human_block_size, with new signature
73517         that allows block sizes up to UINTMAX_MAX.  All callers changed.
73518         * lib/human.h: Add copyright and authorship notice.
73519         Include <limits.h> and <stdbool.h> unconditionally.
73520         (PARAMS): Remove.  All uses removed.
73521         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
73522         (enum human_inexact_style): Remove tag; now a nameless enum.
73523         (human_floor, human_ceiling, human_round_to_even): Now have
73524         values 2, 0, 1 rather than -1, 1, 0.
73525         (human_group_digits, human_suppress_point_zero, human_autoscale,
73526         human_base_1024, human_SI, human_B): New constants.
73527         (human_readable_inexact, human_block_size): Remove.
73528         (human_readable): Size args are now uintmax_t, not int.
73529         (human_options): New decl.
73530
73531         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
73532         unnecessary now that we assume C89 or better.  This change
73533         imported from coreutils.
73534
73535         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73536         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
73537         in the 2003-05-30 sync from glibc.
73538
73539         .h files should stand alone, but we shouldn't include <sys/types.h>
73540         if we can get away with just <stddef.h>.
73541
73542         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
73543         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
73544         rather than <sys/types.h>, as we merely need size_t.
73545         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
73546         to get size_t.
73547         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
73548         Include <stdio.h>, to get FILE.
73549         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
73550         memcasecmp.h has included <stddef.h> and all we need is size_t.
73551         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
73552         our interface, instead of including <sys/types.h>
73553
73554 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73555
73556         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
73557         now, as glibc mktime is buggy on non-glibc systems.
73558
73559 2003-06-03  Karl Berry  <karl@gnu.org>
73560
73561         * config/config.sub: update from prep.
73562
73563 2003-06-02  Paul Eggert  <eggert@twinsun.com>
73564
73565         [from coreutils]
73566         Fix some minor time-related bugs with POSIX time arguments.
73567         Some valid time stamps were being rejected (notably -1, and
73568         time stamps before 1900 on 64-bit hosts).  And some invalid
73569         time stamps were being accepted, e.g. September 31.
73570
73571         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
73572         that we can return (time_t) -1 successfully.
73573         * lib/posixtm.c: Likewise.
73574         [HAVE_STDBOOL_H]: Include <stdbool.h>.
73575         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
73576         (t): Remove static var.
73577         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
73578         of static var.  All uses changed.
73579         (year): Do not reject years before 1900; they can occur with
73580         64-bit time_t.
73581         (posix_time_parse): Do not check for out-of-range components;
73582         that is now the caller's responsibility, since our checks were
73583         only approximations.
73584         (posixtime): Use mktime to check for out-of-range components,
73585         since it knows them exactly.
73586         If mktime returns (time_t) -1, check whether an error actually occurred
73587         by invoking localtime on -1.
73588         (main) [TEST_POSIXTIME]: Check for input data errors, and report
73589         posixtime failures better.
73590         Improve the test data (in comments only).
73591
73592 2003-06-02  Karl Berry  <karl@gnu.org>
73593
73594         * config/mkinstalldirs (version): new variable.
73595         (--version): new option.
73596         (usage): improve message.
73597
73598 2003-05-30  Karl Berry  <karl@gnu.org>
73599
73600         * lib/mktime.c: update from libc.
73601
73602 2003-05-30  Bruno Haible  <bruno@clisp.org>
73603
73604         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
73605         * config/config.rpath: Upgrade to gettext-0.12.1.
73606
73607 2003-05-30  Bruno Haible  <bruno@clisp.org>
73608
73609         * m4/gettext.m4: Upgrade to gettext-0.12.1.
73610         * m4/nls.m4: New file, from gettext-0.12.1.
73611         * m4/po.m4: New file, from gettext-0.12.1.
73612         * m4/progtest.m4: Upgrade to gettext-0.12.1.
73613
73614 2003-05-30  Bruno Haible  <bruno@clisp.org>
73615
73616         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
73617         * lib/localcharset.h: Likewise.
73618         * lib/localcharset.c: Likewise.
73619
73620 2003-05-29  Karl Berry  <karl@gnu.org>
73621
73622         * config/config.rpath: update from gettext.
73623
73624 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73625
73626         Assume the headers required for C89 freestanding compilers.
73627         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
73628         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
73629         * m4/human.m4 (gl_HUMAN): Likewise.
73630         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
73631         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
73632         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73633         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
73634         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73635         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
73636
73637 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73638
73639         Assume the headers required for C89 freestanding compilers.
73640         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
73641         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
73642         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
73643         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
73644         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
73645         define, since <limits.h> is guaranteed to do that.
73646         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
73647         * lib/exclude.c: Include <stdbool.h> unconditionally.
73648         * lib/tempname.c: Include <stddef.h> unconditionally.
73649         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
73650         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
73651         <stddef.h> does that.
73652         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
73653         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
73654         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
73655         needed.
73656         * lib/xstrtol.c: Likewise.
73657         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
73658         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
73659
73660         * lib/addext.c (addext): Use assignment rather than cast, to avoid
73661         warnings on some platforms.
73662
73663         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73664         arbitrarily.
73665
73666 2003-05-26  Jim Meyering  <jim@meyering.net>
73667
73668         Merge in a change from coreutils:
73669         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
73670         that is guaranteed to be `no'.  Use `no_such_member' to indicate
73671         that condition, rather than `-1' which is slightly misleading.
73672         Change the name of the cache variable to have the gl_ prefix.
73673         Prompted by a patch from Richard Dawe for DJGPP.
73674
73675 2003-05-24  Karl Berry  <karl@gnu.org>
73676
73677         * config/config.guess: update from prep.
73678
73679 2003-05-22  Karl Berry  <karl@gnu.org>
73680
73681         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
73682
73683 2003-05-20  Karl Berry  <karl@gnu.org>
73684
73685         * config/config.guess: update from prep.
73686
73687 2003-05-18  Karl Berry  <karl@gnu.org>
73688
73689         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
73690         might actually be set by the user.
73691
73692         * config/depcomp, install-sh, mdate-sh: update from automake.
73693
73694 2003-05-17  Bruno Haible  <bruno@clisp.org>
73695
73696         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
73697         invalid expansion for AC_EGREP_CPP.
73698         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
73699         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
73700         Suggested by Akim Demaille <akim@epita.fr> in
73701         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
73702
73703 2003-05-12  Jim Meyering  <jim@meyering.net>
73704
73705         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
73706         the space-padded-by-default conversion specifiers, %e, %k, %l.
73707
73708 2003-05-12  Bruno Haible  <bruno@clisp.org>
73709
73710         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
73711         the string is longer than 4 KB.
73712
73713 2003-05-11  Karl Berry  <karl@gnu.org>
73714
73715         * config/config.{guess,sub}: update from prep.
73716
73717 2003-05-09  Bruno Haible  <bruno@clisp.org>
73718
73719         * modules/error: Add m4/strerror_r.m4 to file list.
73720
73721 2003-05-03  Bruno Haible  <bruno@clisp.org>
73722
73723         Upgrade to Unicode-4.0.
73724         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
73725         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
73726         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
73727         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
73728         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
73729         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
73730         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
73731         Change width of U+E0100..U+E01EF from 1 to 0.
73732
73733 2003-04-25  Jim Meyering  <jim@meyering.net>
73734
73735         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
73736         of type size_t, not int.
73737
73738 2003-04-25  Bruno Haible  <bruno@clisp.org>
73739
73740         * lib/copy-file.c: Include <stddef.h>, for size_t.
73741
73742 2003-04-21  Paul Eggert  <eggert@twinsun.com>
73743
73744         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
73745         code which expansion is under static control.  Patch imported from
73746         Akim Demaille's patch to Bison; see
73747         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
73748
73749 2003-04-14  Bruno Haible  <bruno@clisp.org>
73750
73751         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
73752
73753 2003-04-11  Jim Meyering  <jim@meyering.net>
73754
73755         Merge changes from Coreutils.
73756
73757         2003-03-22  Jim Meyering  <jim@meyering.net>
73758
73759         * lib/strftime.c (widen): Cast alloca return value to proper type.
73760
73761         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
73762
73763         From GNU libc.
73764         * lib/strftime.c (my_strftime): Handle very large width
73765         specifications for numeric values correctly.  Improve checks for
73766         overflow.
73767
73768         2003-01-19  Jim Meyering  <jim@meyering.net>
73769
73770         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
73771         definitions.
73772         (nl_get_alt_digit) [! defined my_strftime]: Define.
73773         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
73774         _nl_get_alt_digit and _nl_get_walt_digit.
73775
73776         * lib/strftime.c (my_strftime): Merge in locale-related changes from
73777         libc. These changes have no effect outside of _LIBC.
73778
73779 2003-04-10  Bruno Haible  <bruno@clisp.org>
73780
73781         * modules/findprog: New file.
73782         * MODULES.html.sh (func_all_modules): Add it.
73783
73784 2003-04-10  Bruno Haible  <bruno@clisp.org>
73785
73786         * m4/findprog.m4: New file.
73787         * m4/eaccess.m4: New file.
73788
73789 2003-04-10  Bruno Haible  <bruno@clisp.org>
73790
73791         * lib/findprog.h: New file, from GNU gettext.
73792         * lib/findprog.c: New file, from GNU gettext.
73793
73794 2003-04-05  Jim Meyering  <jim@meyering.net>
73795
73796         Merge changes from Coreutils.
73797
73798         * lib/exclude.h (PARAMS): Remove definition and uses.
73799         * lib/exclude.c: Remove uses of `PARAMS'.
73800
73801         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
73802         Add test-cases for DOS filenames. Declare program_name.
73803         (main): Set up program_name.  Patch by Rich Dawe.
73804
73805         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73806         error from mntctl.
73807         Use mntctl's return value to drive the entry-processing loop, since
73808         we can't rely on the value of the vmt_length member in the last
73809         entry.  On some systems doing so could result in exhausting
73810         virtual memory.  Based in part on a patch from Mike Jetzer.
73811
73812 2003-04-04  Bruno Haible  <bruno@clisp.org>
73813
73814         * modules/linebreak: New file.
73815         * MODULES.html.sh (func_all_modules): Add it.
73816
73817 2003-04-04  Bruno Haible  <bruno@clisp.org>
73818
73819         * m4/linebreak.m4: New file.
73820
73821 2003-04-04  Bruno Haible  <bruno@clisp.org>
73822
73823         * lib/linebreak.h: New file, from GNU gettext.
73824         * lib/linebreak.c: New file, from GNU gettext with slight
73825         modifications.
73826         * lib/lbrkprop.h: New file, from GNU gettext.
73827
73828 2003-04-03  Bruno Haible  <bruno@clisp.org>
73829
73830         * modules/utf8-ucs4: New file.
73831         * modules/utf16-ucs4: New file.
73832         * modules/ucs4-utf8: New file.
73833         * modules/ucs4-utf16: New file.
73834         * MODULES.html.sh (func_all_modules): Add them.
73835
73836 2003-04-03  Bruno Haible  <bruno@clisp.org>
73837
73838         * m4/utf-ucs4.m4: New file.
73839         * m4/ucs4-utf.m4: New file.
73840
73841 2003-04-03  Bruno Haible  <bruno@clisp.org>
73842
73843         * lib/utf8-ucs4.h: New file, from GNU gettext.
73844         * lib/utf16-ucs4.h: New file, from GNU gettext.
73845         * lib/ucs4-utf8.h: New file, from GNU gettext.
73846         * lib/ucs4-utf16.h: New file, from GNU gettext.
73847
73848 2003-04-02  Bruno Haible  <bruno@clisp.org>
73849
73850         * modules/binary-io: New file.
73851         * MODULES.html.sh (func_all_modules): Add it.
73852
73853 2003-04-02  Bruno Haible  <bruno@clisp.org>
73854
73855         * lib/binary-io.h: New file, from GNU gettext.
73856
73857 2003-04-01  Bruno Haible  <bruno@clisp.org>
73858
73859         * modules/pathname: New file.
73860         * MODULES.html.sh (func_all_modules): Add it.
73861
73862 2003-04-01  Bruno Haible  <bruno@clisp.org>
73863
73864         * lib/pathname.h: New file, from GNU gettext.
73865         * lib/concatpath.c: New file, from GNU gettext.
73866
73867 2003-03-30  Bruno Haible  <bruno@clisp.org>
73868
73869         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
73870
73871 2003-03-30  Bruno Haible  <bruno@clisp.org>
73872
73873         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
73874         function chown() doesn't exist.
73875
73876 2003-03-28  Bruno Haible  <bruno@clisp.org>
73877
73878         * modules/copy-file: New file.
73879         * MODULES.html.sh (func_all_modules): Add it.
73880
73881 2003-03-28  Bruno Haible  <bruno@clisp.org>
73882
73883         * m4/copy-file.m4: New file.
73884
73885 2003-03-28  Bruno Haible  <bruno@clisp.org>
73886
73887         * lib/copy-file.h: New file, from GNU gettext.
73888         * lib/copy-file.c: New file, from GNU gettext.
73889
73890 2003-03-18  Jim Meyering  <jim@meyering.net>
73891
73892         * lib/quote.c (quote_n): Fix typo in comment.
73893
73894 2003-03-18  Bruno Haible  <bruno@clisp.org>
73895
73896         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
73897         checking.
73898         * m4/onceonly_2_57.m4: Likewise.
73899
73900 2003-03-17  Bruno Haible  <bruno@clisp.org>
73901
73902         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73903         (m4_quote): Remove macro.
73904         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
73905
73906 2003-03-14  Jim Meyering  <jim@meyering.net>
73907
73908         Merge changes from Coreutils.
73909         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
73910         to be const, in order to avoid warnings.
73911         (obstack_room): Likewise.
73912         (obstack_empty_p): Likewise.
73913
73914 2003-03-14  Bruno Haible  <bruno@clisp.org>
73915
73916         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
73917         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
73918
73919 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73920
73921         Merge changes from Bison.
73922         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
73923         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
73924         when compiling Bison 1.875's `bitset bset = obstack_alloc
73925         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
73926         * lib/hash.c: Include <stdbool.h> unconditionally.
73927
73928 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73929
73930         * m4/onceonly.m4 (m4_quote): New macro.
73931         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
73932         Quote AC_FOREACH variable-expansions properly.
73933
73934 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73935
73936         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
73937
73938 2003-03-09  Paul Eggert  <eggert@twinsun.com>
73939
73940         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
73941         Reported by Bruce Becker; see:
73942         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
73943
73944 2003-03-03  Paul Eggert  <eggert@twinsun.com>
73945             Bruno Haible  <bruno@clisp.org>
73946
73947         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
73948         Reported by John Hughes, see
73949         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
73950
73951 2003-02-20  Bruno Haible  <bruno@clisp.org>
73952
73953         * MODULES.html.sh (func_all_modules): Add poll.
73954
73955 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73956
73957         * modules/poll: New file.
73958
73959 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73960
73961         * lib/poll_.h: New file.
73962         * lib/poll.c: New file.
73963
73964 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73965
73966         * m4/poll.m4: New file.
73967
73968 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73969
73970         * modules/mathl: New file.
73971
73972 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73973
73974         * lib/mathl.h: New file.
73975         * lib/acosl.c: New file.
73976         * lib/asinl.c: New file.
73977         * lib/atanl.c: New file.
73978         * lib/ceill.c: New file.
73979         * lib/cosl.c: New file.
73980         * lib/expl.c: New file.
73981         * lib/floorl.c: New file.
73982         * lib/frexpl.c: New file.
73983         * lib/ldexpl.c: New file.
73984         * lib/logl.c: New file.
73985         * lib/sincosl.c: New file.
73986         * lib/sinl.c: New file.
73987         * lib/sqrtl.c: New file.
73988         * lib/tanl.c: New file.
73989         * lib/trigl.c: New file.
73990         * lib/trigl.h: New file.
73991
73992 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73993
73994         * m4/mathl.m4: New file.
73995
73996 2003-02-18  Bruno Haible  <bruno@clisp.org>
73997
73998         * MODULES.html.sh (func_all_modules): Add mathl.
73999
74000 2003-02-17  Bruno Haible  <bruno@clisp.org>
74001
74002         * modules/mkdtemp: New module.
74003         * MODULES.html.sh (func_all_modules): Add it.
74004
74005 2003-02-17  Bruno Haible  <bruno@clisp.org>
74006
74007         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
74008
74009 2003-02-17  Bruno Haible  <bruno@clisp.org>
74010
74011         * lib/mkdtemp.h: New file, from GNU gettext.
74012         * lib/mkdtemp.c: New file, from GNU gettext.
74013
74014 2003-02-02  Jim Meyering  <jim@meyering.net>
74015
74016         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
74017         e.g. glibc-2.2.93.
74018
74019 2003-01-31  Bruno Haible  <bruno@clisp.org>
74020
74021         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
74022         'rpl_rename'.
74023         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
74024         'rpl_strnlen'.
74025         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
74026         'rpl_strtod'.
74027         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
74028         'rpl_utime'.
74029
74030 2003-01-31  Bruno Haible  <bruno@clisp.org>
74031
74032         * lib/rename.c: #undef rename before defining rpl_rename.
74033         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
74034
74035 2003-01-30  Bruno Haible  <bruno@clisp.org>
74036
74037         * modules/vasnprintf, modules/vasprintf: New modules.
74038         * MODULES.html.sh (func_all_modules): Add them.
74039
74040 2003-01-30  Bruno Haible  <bruno@clisp.org>
74041
74042         * m4/signed.m4: New file, from GNU gettext.
74043         * m4/longdouble.m4: New file, from GNU gettext.
74044         * m4/wchar_t.m4: New file, from GNU gettext.
74045         * m4/wint_t.m4: New file, from GNU gettext.
74046         * m4/vasnprintf.m4: New file.
74047         * m4/vasprintf.m4: New file.
74048
74049 2003-01-30  Bruno Haible  <bruno@clisp.org>
74050
74051         * lib/printf-args.h: New file, from GNU gettext.
74052         * lib/printf-args.c: New file, from GNU gettext.
74053         * lib/printf-parse.h: New file, from GNU gettext.
74054         * lib/printf-parse.c: New file, from GNU gettext.
74055         * lib/vasnprintf.h: New file, from GNU gettext.
74056         * lib/vasnprintf.c: New file, from GNU gettext.
74057         * lib/asnprintf.c: New file, from GNU gettext.
74058         * lib/vasprintf.h: New file, from GNU gettext with modifications.
74059         * lib/vasprintf.c: New file, from GNU gettext.
74060         * lib/asprintf.c: New file, from GNU gettext.
74061
74062 2003-01-29  Bruno Haible  <bruno@clisp.org>
74063
74064         * modules/stpncpy: New module.
74065         * MODULES.html.sh (func_all_modules): Add it.
74066
74067 2003-01-29  Bruno Haible  <bruno@clisp.org>
74068
74069         * m4/stpncpy.m4: New file.
74070
74071 2003-01-29  Bruno Haible  <bruno@clisp.org>
74072
74073         * lib/stpncpy.h: New file, from GNU gettext with modifications.
74074         * lib/stpncpy.c: New file, from GNU gettext with modifications.
74075
74076 2003-01-28  Bruno Haible  <bruno@clisp.org>
74077
74078         * modules/c-ctype: New module.
74079         * MODULES.html.sh (func_all_modules): Add it.
74080
74081 2003-01-28  Bruno Haible  <bruno@clisp.org>
74082
74083         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
74084         Paul Eggert.
74085         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
74086         Paul Eggert.
74087
74088 2003-01-27  Bruno Haible  <bruno@clisp.org>
74089
74090         * modules/xsetenv: New module.
74091         * MODULES.html.sh (func_all_modules): Add it.
74092
74093 2003-01-27  Bruno Haible  <bruno@clisp.org>
74094
74095         * lib/xsetenv.h: New file, from GNU gettext.
74096         * lib/xsetenv.c: New file, from GNU gettext.
74097
74098 2003-01-23  Jim Meyering  <jim@meyering.net>
74099
74100         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
74101         from working on systems without dirfd (at least Irix and OSF1/Tru64).
74102
74103 2003-01-23  Bruno Haible  <bruno@clisp.org>
74104
74105         * modules/minmax: New module.
74106         * MODULES.html.sh (func_all_modules): Add it.
74107
74108 2003-01-23  Bruno Haible  <bruno@clisp.org>
74109
74110         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
74111         Eggert.
74112
74113 2003-01-22  Bruno Haible  <bruno@clisp.org>
74114
74115         * modules/exit: New module.
74116         * MODULES.html.sh (func_all_modules): Add it.
74117
74118 2003-01-22  Bruno Haible  <bruno@clisp.org>
74119
74120         * lib/exit.h: New file, from GNU gettext.
74121
74122 2003-01-19  Bruno Haible  <bruno@clisp.org>
74123
74124         * gnulib-tool: Recognize option --extract-maintainer.
74125         (func_get_maintainer): New function.
74126         * modules/*: Add Maintainer entry.
74127
74128 2003-01-16  Jim Meyering  <jim@meyering.net>
74129
74130         * m4/regex.m4: The `regex' struct is both input and output.
74131         Initialize it before each use.  Patch by Tim Waugh.
74132
74133 2003-01-16  Bruno Haible  <bruno@clisp.org>
74134
74135         * MODULES.html.sh: Add a table of contents. Add the module name as
74136         leftmost column. Add hyperlinks.
74137
74138 2003-01-15  Bruno Haible  <bruno@clisp.org>
74139
74140         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
74141
74142 2003-01-15  Bruno Haible  <bruno@clisp.org>
74143
74144         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
74145         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
74146         suffix.
74147
74148 2003-01-15  Bruno Haible  <bruno@clisp.org>
74149
74150         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
74151
74152 2003-01-15  Bruno Haible  <bruno@clisp.org>
74153
74154         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
74155         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
74156
74157 2003-01-14  Jim Meyering  <jim@meyering.net>
74158
74159         * lib/same.c (same_name): Tweak a comment.
74160
74161 2003-01-14  Bruno Haible  <bruno@clisp.org>
74162
74163         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
74164         when a string comparison is sufficient.
74165
74166 2003-01-14  Bruno Haible  <bruno@clisp.org>
74167
74168         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
74169         'unsigned int'.
74170
74171 2003-01-14  Bruno Haible  <bruno@clisp.org>
74172
74173         * lib/hash-pjw.c: Add comment about low quality of this function.
74174
74175 2003-01-13  Bruno Haible  <bruno@clisp.org>
74176
74177         * modules/stpcpy: Distribute lib/stpcpy.h.
74178         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
74179
74180 2003-01-13  Bruno Haible  <bruno@clisp.org>
74181
74182         * modules/*: Add a description.
74183         * modules/strpbrk: Fix Makefile.am snippet.
74184         * modules/strtoimax: Fix dependencies.
74185         * modules/strtoumax: Likewise.
74186
74187 2003-01-13  Bruno Haible  <bruno@clisp.org>
74188
74189         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
74190         * modules/alloca (Makefile.am): All object files depend on alloca.h.
74191         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
74192
74193 2003-01-13  Bruno Haible  <bruno@clisp.org>
74194
74195         * gnulib-tool (func_create_testdir): Store config/* files in the main
74196         directory.
74197         * config.rpath: Move to ...
74198         * config/config.rpath: ... here.
74199         * modules/gettext: Contains config/config.rpath, not config.rpath.
74200         * modules/iconv: Likewise.
74201
74202 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74203
74204         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74205         to avoid collisions with libcurses and libreadline.
74206
74207         * m4/getstr.m4: Remove.
74208         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
74209
74210 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74211
74212         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74213         to avoid collisions with libcurses and libreadline.
74214
74215         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
74216         * lib/getstr.h, getstr.c: Remove.
74217         * lib/getline.c: Include "getline.h", to check interface.
74218         Move body of old getstr.c here: this defines MIN_CHUNK and
74219         declares getdelim2, which is renamed from getstr.
74220         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
74221
74222         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
74223         All uses changed.
74224         * lib/linebuffer.h: Likewise.
74225         (readline): Remove backward-compatibility macro.
74226
74227 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74228
74229         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74230         to avoid collisions with libcurses and libreadline.
74231         * getstr: Remove.
74232         * MODULES.html.sh: Remove getstr.
74233         * modules/getline: Depend on unlocked-io, not getstr.
74234
74235 2003-01-12  Jim Meyering  <jim@meyering.net>
74236
74237         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
74238
74239 2003-01-10  Bruno Haible  <bruno@clisp.org>
74240
74241         * modules/alloca: Change Makefile.am requirements. Simplify Include
74242         requirements. Add lib/alloca_.h to file list.
74243
74244 2003-01-10  Bruno Haible  <bruno@clisp.org>
74245
74246         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
74247
74248 2003-01-10  Bruno Haible  <bruno@clisp.org>
74249
74250         * lib/alloca_.h: New file.
74251         * lib/getdate.y: Unconditionally include alloca.h.
74252         * lib/makepath.c: Likewise.
74253         * lib/setenv.c: Likewise.
74254         * lib/userspec.c: Likewise.
74255
74256 2003-01-09  Karl Berry  <karl@gnu.org>
74257
74258         * MODULES.html.sh: include `dirname $0` in PATH, to find
74259         gnulib-tool.
74260
74261 2003-01-09  Bruno Haible  <bruno@clisp.org>
74262
74263         * modules/stdbool: Change configure.ac, Makefile.am requirements.
74264         Simplify Include requirements. Add lib/stdbool.h.in to file list.
74265
74266 2003-01-09  Bruno Haible  <bruno@clisp.org>
74267
74268         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
74269
74270 2003-01-09  Bruno Haible  <bruno@clisp.org>
74271
74272         * lib/stdbool.h.in: New file.
74273
74274 2003-01-09  Bruno Haible  <bruno@clisp.org>
74275
74276         * gnulib-tool (func_all_modules): Ignore files ending in ~.
74277         * MODULES.html.sh: Likewise.
74278
74279 2003-01-08  Jim Meyering  <jim@meyering.net>
74280
74281         * lib/full-write.c: Undefine and define-away `const' after inclusion
74282         of errno.h, not before.  Suggestion from Bruno Haible.
74283
74284 2003-01-08  Bruno Haible  <bruno@clisp.org>
74285
74286         * modules/full-read: Depend on full-write.
74287
74288 2003-01-08  Bruno Haible  <bruno@clisp.org>
74289
74290         * lib/safe-read.c: Include specification header first, to ensure its
74291         selfcontainedness.
74292         * lib/full-write.c: Likewise.
74293
74294 2003-01-07  Jim Meyering  <jim@meyering.net>
74295
74296         * lib/full-write.c: Rework so that it may serve to define full_read,
74297         too.
74298         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
74299
74300 2003-01-07  Bruno Haible  <bruno@clisp.org>
74301
74302         * lib/strtoimax.c: Include <stdint.h> as an alternative to
74303         <inttypes.h>.
74304         * lib/xstrtol.h: Likewise.
74305         * lib/xstrtoimax.c: Likewise.
74306         * lib/xstrtoumax.c: Likewise.
74307         * lib/human.h: Likewise.
74308
74309         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
74310         on systems that have <inttypes.h> but not <stdint.h>.
74311
74312 2003-01-07  Bruno Haible  <bruno@clisp.org>
74313
74314         * MODULES.html.sh: Add copyright notice.
74315         (missed_files): Omit CVS directory entries.
74316         (func_module): Make it work with sed-3.02.
74317         * MODULES.txt: Remove file.
74318
74319 2003-01-06  Jim Meyering  <jim@meyering.net>
74320
74321         * lib/version-etc.c: Update year in translatable copyright string.
74322
74323 2003-01-03  Karl Berry  <karl@gnu.org>
74324
74325         * config/config.{guess,sub}: update from prep.
74326
74327 2003-01-02  Karl Berry  <karl@gnu.org>
74328
74329         * doc/COPYING.DOC: belatedly updated to 1.2.
74330
74331 2003-01-01  Karl Berry  <karl@gnu.org>
74332
74333         * gnulib-tool (func_verify_module): report module name $module in
74334         error message, not $1.
74335         * gnulib-tool (create-testdir): don't complain if destdir couldn't
74336         be created, only if it doesn't exist.
74337         * gnulib-tool (last_checkin_date): don't expand the $Date here.
74338
74339 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74340
74341         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
74342
74343 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74344
74345         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
74346         memcmp if strcoll doesn't work.
74347
74348 2002-12-31  Bruno Haible  <bruno@clisp.org>
74349
74350         * lib/utime.c (utime_null): No need to call ftruncate if the file was
74351         nonempty.
74352
74353 2002-12-31  Bruno Haible  <bruno@clisp.org>
74354
74355         * lib/memcoll.c (STRCOLL): New macro.
74356         (memcoll): Use it.
74357
74358 2002-12-31  Bruno Haible  <bruno@clisp.org>
74359
74360         * lib/localcharset.h: New file.
74361         * lib/localcharset.c: Include it.
74362         * lib/unicodeio.c: Likewise.
74363
74364 2002-12-31  Bruno Haible  <bruno@clisp.org>
74365
74366         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
74367         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
74368
74369 2002-12-31  Bruno Haible  <bruno@clisp.org>
74370
74371         * lib/getline.h: Include <stddef.h>, for size_t.
74372
74373         * lib/unicodeio.h: Include <stddef.h>, for size_t.
74374         * lib/unicodeio.c: Don't include <stddef.h>.
74375
74376 2002-12-31  Bruno Haible  <bruno@clisp.org>
74377
74378         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
74379         HAVE_TM_ZONE.
74380
74381 2002-12-24  Karl Berry  <karl@gnu.org>
74382
74383         * config/config.guess: update from prep.
74384
74385 2002-12-24  Bruno Haible  <bruno@clisp.org>
74386
74387         General infrasructure.
74388         * m4/README: Rewritten.
74389         * m4/onceonly.m4: New file.
74390         * m4/onceonly_2_57.m4: New file.
74391
74392         Module atexit.
74393         * m4/atexit.m4: New file.
74394
74395         Module strtod.
74396         * m4/strtod.m4: New file.
74397
74398         Module strtol.
74399         * m4/strtol.m4: New file.
74400
74401         Module strtoul.
74402         * m4/strtoul.m4: New file.
74403
74404         Module memchr.
74405         * m4/memchr.m4: New file.
74406
74407         Module memcmp.
74408         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
74409         (jm_FUNC_MEMCMP): Invoke it.
74410
74411         Module memcpy.
74412         * m4/memcpy.m4: New file.
74413
74414         Module memmove.
74415         * m4/memmove.m4: New file.
74416
74417         Module memset.
74418         * m4/memset.m4: New file.
74419
74420         Module strcspn.
74421         * m4/strcspn.m4: New file.
74422
74423         Module strpbrk.
74424         * m4/strpbrk.m4: New file.
74425
74426         Module strstr.
74427         * m4/strstr.m4: New file.
74428
74429         Module strerror.
74430         * m4/strerror.m4: New file.
74431
74432         Module mktime.
74433         * m4/mktime.m4: Renamed from jm-mktime.m4.
74434         (gl_PREREQ_MKTIME): New macro.
74435         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
74436
74437         Module malloc.
74438         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
74439         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
74440         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
74441
74442         Module realloc.
74443         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
74444         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
74445         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
74446
74447         Module strftime.
74448         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
74449         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
74450         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
74451         gl_TM_GMTOFF.
74452         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
74453
74454         Module xalloc.
74455         * m4/xalloc.m4: New file.
74456
74457         Module alloca.
74458         * m4/alloca.m4: New file.
74459
74460         Module putenv.
74461         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
74462         (jm_FUNC_PUTENV): Invoke it.
74463
74464         Module setenv.
74465         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
74466         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
74467         when invoked twice.
74468         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
74469         gt_FUNC_SETENV.
74470
74471         Module memrchr.
74472         * m4/memrchr.m4: New file.
74473
74474         Module stpcpy.
74475         * m4/stpcpy.m4: New file.
74476
74477         Module strcase.
74478         * m4/strcase.m4: New file.
74479
74480         Module strdup.
74481         * m4/strdup.m4: New file.
74482
74483         Module strnlen.
74484         * m4/strnlen.m4: New file.
74485
74486         Module strndup.
74487         * m4/strndup.m4: New file.
74488
74489         Module xstrtod.
74490         * m4/xstrtod.m4: New file.
74491
74492         Module xstrtol.
74493         * m4/xstrtol.m4: New file.
74494
74495         Module getdate.
74496         * m4/getdate.m4: New file.
74497
74498         Module unlocked-io.
74499         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
74500         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
74501         * m4/jm-glibc-io.m4n: Remove file.
74502
74503         Module long-options.
74504         * m4/long-options.m4: New file.
74505
74506         Module md5.
74507         * m4/md5.m4: New file.
74508
74509         Module sha.
74510         * m4/sha.m4: New file.
74511
74512         Module getstr.
74513         * m4/getstr.m4: New file.
74514
74515         Module getline.
74516         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
74517         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
74518         <sys/types.h>, for size_t. Use the function name gnu_getline, not
74519         simply getline. Infoke gl_PREREQ_GETLINE.
74520
74521         Module obstack.
74522         * m4/obstack.m4: New file.
74523
74524         Module hash.
74525         * m4/hash.m4: New file.
74526
74527         Module readtokens.
74528         * m4/readtokens.m4: New file.
74529
74530         Module strverscmp.
74531         * m4/strverscmp.m4: New file.
74532
74533         Module stdbool.
74534         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
74535         OSF/1.
74536
74537         Module strtoll.
74538         * m4/strtoll.m4: New file.
74539
74540         Module strtoull.
74541         * m4/strtoull.m4: New file.
74542
74543         Module strtoimax.
74544         * m4/strtoimax.m4: New file.
74545
74546         Module strtoumax.
74547         * m4/strtoumax.m4: New file.
74548
74549         Module xstrtoimax.
74550         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
74551         jm_AC_PREREQ_XSTRTOIMAX.
74552         Moved the strtol prerequisites to strtol.m4.
74553         Moved the strtoll prerequisites to strtoll.m4.
74554         Moved the strtoimax prerequisites to strtoimax.m4.
74555
74556         Module xstrtoumax.
74557         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
74558         jm_AC_PREREQ_XSTRTOUMAX.
74559         Moved the strtoul prerequisites to strtoul.m4.
74560         Moved the strtoull prerequisites to strtoull.m4.
74561         Moved the strtoumax prerequisites to strtoumax.m4.
74562
74563         Module chown.
74564         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
74565         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
74566
74567         Module dup2.
74568         * m4/dup2.m4: New file.
74569
74570         Module ftruncate.
74571         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
74572         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
74573
74574         Module getgroups.
74575         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
74576         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
74577
74578         Module gettimeofday.
74579         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
74580         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
74581         gl_PREREQ_GETTIMEOFDAY.
74582
74583         Module mkdir.
74584         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
74585         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
74586
74587         Module mkstemp.
74588         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
74589         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
74590         jm_AC_TYPE_UINTMAX_T.
74591         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
74592
74593         Module stat.
74594         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
74595         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
74596
74597         Module lstat.
74598         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
74599         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
74600
74601         Module timespec.
74602         * m4/timespec.m4 (gl_TIMESPEC): New macro.
74603         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
74604         * m4/st_mtim.m4: Indentation.
74605
74606         Module nanosleep.
74607         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
74608         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
74609         gl_PREREQ_NANOSLEEP.
74610
74611         Module regex.
74612         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
74613         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
74614         (gl_REGEX): New macro.
74615
74616         Module rename.
74617         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
74618         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
74619
74620         Module rmdir.
74621         * m4/rmdir.m4: New file.
74622
74623         Module utime.
74624         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
74625         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
74626         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
74627
74628         Module dirname.
74629         * m4/dirname.m4: New file.
74630
74631         Module getopt.
74632         * m4/getopt.m4: New file.
74633
74634         Module unistd-safer.
74635         * m4/unistd-safer.m4: New file.
74636
74637         Module fnmatch.
74638         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
74639         declaration.
74640         (gl_PREREQ_FNMATCH_EXTRA): New macro.
74641         (gl_FUNC_FNMATCH_POSIX): New macro.
74642         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
74643         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
74644         simply fnmatch.
74645
74646         Module exclude.
74647         * m4/exclude.m4: New file.
74648
74649         Module human.
74650         * m4/human.m4: New file.
74651
74652         Module acl.
74653         * m4/acl.m4: Nop.
74654
74655         Module backupfile.
74656         * m4/backupfile.m4: New file.
74657         * m4/d-ino.m4: Indentation.
74658
74659         Module fsusage.
74660         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
74661         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
74662         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
74663
74664         Module dirfd.
74665         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
74666         requirements.
74667
74668         Module euidaccess.
74669         * m4/euidaccess.m4: New file.
74670
74671         Module file-type.
74672         * m4/file-type.m4: New file.
74673
74674         Module fileblocks.
74675         * m4/fileblocks.m4: New file.
74676
74677         Module filemode.
74678         * m4/filemode.m4: New file.
74679
74680         Module isdir.
74681         * m4/isdir.m4: New file.
74682
74683         Module lchown.
74684         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
74685         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
74686
74687         Module makepath.
74688         * m4/makepath.m4: New file.
74689
74690         Module modechange.
74691         * m4/modechange.m4: New file.
74692
74693         Module mountlist.
74694         * m4/mountlist.m4: New file.
74695         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
74696         Indentation.
74697
74698         Module path-concat.
74699         * m4/path-concat.m4: New file.
74700
74701         Module pathmax.
74702         * m4/pathmax.m4: New file.
74703
74704         Module same.
74705         * m4/same.m4: New file.
74706
74707         Module save-cwd.
74708         * m4/save-cwd.m4: New file.
74709
74710         Module savedir.
74711         * m4/savedir.m4: New file.
74712
74713         Module xgetcwd.
74714         * m4/xgetcwd.m4: New file.
74715         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
74716
74717         Module xreadlink.
74718         * m4/xreadlink.m4: New file.
74719
74720         Module safe-read.
74721         * m4/safe-read.m4: New file.
74722
74723         Module safe-write.
74724         * m4/safe-write.m4: New file.
74725
74726         Module closeout.
74727         * m4/closeout.m4: New file.
74728
74729         Module stdio-safer.
74730         * m4/stdio-safer.m4: New file.
74731
74732         Module getpass.
74733         * m4/getpass.m4: New file.
74734
74735         Module getugroups.
74736         * m4/getugroups.m4: New file.
74737
74738         Module group-member.
74739         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
74740         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
74741
74742         Module idcache.
74743         * m4/idcache.m4: New file.
74744
74745         Module userspec.
74746         * m4/userspec.m4: New file.
74747
74748         Module gettime.
74749         * m4/clock_time.m4: New file.
74750         * m4/gettime.m4: New file.
74751
74752         Module settime.
74753         * m4/settime.m4: New file.
74754
74755         Module posixtm.
74756         * m4/posixtm.m4: New file.
74757
74758         Module gethostname.
74759         * m4/gethostname.m4: New file.
74760
74761         Module canon-host.
74762         * m4/canon-host.m4: New file.
74763
74764         Module gettext.
74765         * m4/codeset.m4: New file, from gettext-0.11.5.
74766         * m4/gettext.m4: New file, from gettext-0.11.5.
74767         * m4/glibc21.m4: New file, from gettext-0.11.5.
74768         * m4/iconv.m4: New file, from gettext-0.11.5.
74769         * m4/intdiv0.m4: New file, from gettext-0.11.5.
74770         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
74771         * m4/inttypes.m4: New file, from gettext-0.11.5.
74772         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
74773         * m4/isc-posix.m4: New file, from gettext-0.11.5.
74774         * m4/lcmessage.m4: New file, from gettext-0.11.5.
74775         * m4/lib-ld.m4: New file, from gettext-0.11.5.
74776         * m4/lib-link.m4: New file, from gettext-0.11.5.
74777         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
74778         * m4/progtest.m4: New file, from gettext-0.11.5.
74779         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
74780         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
74781         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
74782
74783         Module localcharset.
74784         * m4/localcharset.m4: New file.
74785
74786         Module hard-locale.
74787         * m4/hard-locale.m4: New file.
74788
74789         Module mbswidth.
74790         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
74791         onceonly macros.
74792         * m4/mbrtowc.m4: Add comment.
74793
74794         Module memcasecmp.
74795         * m4/memcasecmp.m4: New file.
74796
74797         Module memcoll.
74798         * m4/memcoll.m4: New file.
74799
74800         Module unicodeio.
74801         * m4/unicodeio.m4: New file.
74802
74803         Module rpmatch.
74804         * m4/rpmatch.m4: New file.
74805
74806         Module yesno.
74807         * m4/yesno.m4: New file.
74808
74809         Module exitfail.
74810         * m4/exitfail.m4: New file.
74811
74812         Module c-stack.
74813         * m4/c-stack.m4 (gl_C_STACK): New macro.
74814         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
74815
74816         Module error.
74817         * m4/error.m4 (gl_ERROR): New macro.
74818         (jm_PREREQ_ERROR): Use onceonly macros.
74819
74820         Module fatal.
74821         * m4/fatal.m4: New file.
74822
74823         Module getloadavg.
74824         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
74825         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
74826
74827         Module getpagesize.
74828         * m4/getpagesize.m4: New file.
74829
74830         Module getusershell.
74831         * m4/getusershell.m4: New file.
74832
74833         Module physmem.
74834         * m4/physmem.m4: New file.
74835
74836         Module posixver.
74837         * m4/posixver.m4: New file.
74838
74839         Module quotearg.
74840         * m4/quotearg.m4: New file.
74841
74842         Module quote.
74843         * m4/quote.m4: New file.
74844
74845         Module readutmp.
74846         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
74847
74848         Module sig2str.
74849         * m4/sig2str.m4: New file.
74850
74851         Other.
74852         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
74853         ulonglong.m4.
74854         * m4/intmax_t.m4: New file.
74855         * m4/d-type.m4: Indentation.
74856         * m4/jm-macros.m4: Update.
74857         * m4/prereq.m4 (jm_PREREQ): Update.
74858         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
74859         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
74860         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
74861         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
74862         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
74863         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
74864         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
74865         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
74866         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
74867         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
74868         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
74869         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
74870         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
74871         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
74872         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
74873         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
74874         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
74875         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
74876         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
74877
74878 2002-12-24  Bruno Haible  <bruno@clisp.org>
74879
74880         * MODULES.txt: Update according to m4/ changes.
74881
74882         Module gettext.
74883         * config.rpath: New file, from gettext-0.11.5.
74884
74885         * modules/*: New module descriptions.
74886         * gnulib-tool: New file.
74887         * MODULES.html.sh: New file.
74888
74889 2002-12-21  Karl Berry  <karl@gnu.org>
74890
74891         * doc/fdl.texi: update to version 1.2.
74892
74893 2002-12-19  Karl Berry  <karl@gnu.org>
74894
74895         * config/config.guess: update from prep.
74896
74897 2002-12-18  Bruno Haible  <bruno@clisp.org>
74898
74899         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
74900         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74901
74902 2002-12-17  Bruno Haible  <bruno@clisp.org>
74903
74904         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
74905         stdlib.h, string.h.
74906
74907 2002-12-17  Bruno Haible  <bruno@clisp.org>
74908
74909         * lib/canon-host.c (strdup): Remove unused declaration.
74910
74911         * lib/fsusage.c: Include full_read.h.
74912         (get_fs_usage): Use full_read instead of safe_read.
74913
74914         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
74915
74916 2002-12-12  Karl Berry  <karl@gnu.org>
74917
74918         * config/config.guess: update from prep.
74919
74920 2002-12-11  Bruno Haible  <bruno@clisp.org>
74921
74922         * m4/setenv.m4: New file, from gettext-0.11.5.
74923
74924 2002-12-11  Bruno Haible  <bruno@clisp.org>
74925
74926         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
74927         not unsetenv().
74928         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
74929         modifications:
74930
74931         2002-12-11  Bruno Haible  <bruno@clisp.org>
74932
74933                 * setenv.c (alloca): Fall back to malloc.
74934                 (freea): New macro.
74935                 (setenv): Use freea() to free memory allocated with alloca().
74936
74937         2002-11-13  Bruno Haible  <bruno@clisp.org>
74938
74939                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
74940                 function declarations.
74941                 * unsetenv.c (unsetenv): Likewise.
74942
74943         2002-03-04  Bruno Haible  <bruno@clisp.org>
74944
74945                 Portability to AIX 4.3.3.
74946                 * unsetenv.c: New file, extracted from setenv.c.
74947                 * setenv.c: Move the unsetenv() function to unsetenv.c.
74948
74949         2001-12-20  Bruno Haible  <bruno@clisp.org>
74950
74951                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
74952                 use malloc instead. For SunOS 4.
74953
74954         2001-12-11  Bruno Haible  <bruno@clisp.org>
74955
74956                 * setenv.c: Declare alloca.
74957                 (compar_fn_t): New typedef.
74958                 (KNOWN_VALUE, STORE_VALUE): Use it.
74959
74960         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
74961         setenv.h.
74962
74963 2002-12-10  Paul Eggert  <eggert@twinsun.com>
74964
74965         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
74966         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
74967         Choose values that are less likely to collide with system fnmatch
74968         options.
74969         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
74970         defined (e.g., a pure POSIX system).
74971         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
74972         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
74973
74974 2002-12-06  Paul Eggert  <eggert@twinsun.com>
74975
74976         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
74977         a pain in practice to deal with generated m4 files.  This change
74978         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
74979
74980         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
74981         and jm-glibc-io.m4, as they are no longer a special case.
74982         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
74983         kludge and the auto-generation stuff.  Check only whether the
74984         functions are declared, not whether they exist, since older hosts
74985         that don't declare the functions can't use the optimization anyway.
74986
74987 2002-12-06  Jim Meyering  <jim@meyering.net>
74988
74989         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
74990
74991         Merge in changes from libc's misc/error.c, in preparation
74992         for the merge of gnulib's changes back into libc.
74993
74994         * lib/error.c (_): Define only if not already defined.
74995         Move definition to follow all #include directives.
74996         Include unlocked-io.h only if !_LIBC.
74997         [_LIBC]: Include <libio/libioP.h>.
74998         [USE_IN_LIBIO]: Include <libio/iolibio.h>
74999         (fflush): Tweak definition to use INTUSE.
75000         (putc): Define.
75001
75002 2002-12-05  Paul Eggert  <eggert@twinsun.com>
75003
75004         * lib/alloca.c [defined emacs]: Include "lisp.h".
75005         (xalloc_die) [defined emacs]: New macro.
75006         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
75007         [! defined emacs]: Include <xalloc.h>.
75008         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
75009         (pointer): Typedef to POINTER_TYPE *.
75010         (malloc): Remove decl; we now always use xmalloc.
75011         (alloca): Use old-style definition, since Emacs needs this.
75012         Check for arithmetic overflow when computing combined size.
75013
75014 2002-12-04  Paul Eggert  <eggert@twinsun.com>
75015
75016         Do not generate unlocked-io.h automatically, since it's easier to
75017         maintain it by hand.
75018
75019         * lib/unlocked-io.h: New file, from GNU diffutils,
75020         but with proper copyright notice and attribution.
75021         * lib/gen-uio: Remove.
75022         * lib/Makefile.am: Add copyright notice.
75023         (libfetish_a_SOURCES): Add unlocked-io.h.
75024         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
75025         (DISTCLEANFILES, io_functions): Remove macros.
75026         (EXTRA_DIST): Remove gen_uio.
75027         (unlocked-io.h): Remove rule.
75028
75029 2002-12-04  Jim Meyering  <jim@meyering.net>
75030
75031         Reflect the fact that stat.c and lstat.c are no longer generated.
75032         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
75033         (DISTCLEANFILES): Likewise.
75034         (EXTRA_DIST): Likewise.
75035         (all_local): Don't depend on stat.c or lstat.c.
75036         (stat.c, lstat.c): Remove rules.
75037         (EXTRA_DIST): Remove xstat.in.
75038
75039         * lib/xstat.in: Remove file.  Contents moved into stat.c.
75040         * lib/stat.c: New file.  Contents mostly from xstat.in.
75041         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
75042         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
75043
75044         * lib/safe-read.c: Rework so that it may serve to define safe_write,
75045         too.
75046         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
75047
75048 2002-12-03  Jim Meyering  <jim@meyering.net>
75049
75050         * lib/safe-read.c, safe-write.c: Change variable names and comments,
75051         but not semantics, to minimize the differences between these two files.
75052         (safe_read): Change comment to mention SAFE_READ_ERROR.
75053
75054         * lib/safe-read.c (IS_EINTR): Define.
75055         (safe_read): Use IS_EINTR in place of in-function cpp directives.
75056
75057 2002-12-02  Jim Meyering  <jim@meyering.net>
75058
75059         * lib/safe-read.c (EINTR): Define.
75060         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75061         (INT_MAX): Provide fallback.
75062         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
75063
75064         * lib/safe-read.h (SAFE_READ_ERROR): Define.
75065
75066 2002-12-02  Bruno Haible  <bruno@clisp.org>
75067
75068         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
75069         Define, taken from safe-read.c.
75070         (INT_MAX): Provide fallback.
75071         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
75072         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
75073
75074         * lib/safe-read.c (EINTR): Remove definition.
75075         (safe_read): Don't use EINTR if it is absent.
75076
75077 2002-12-01  Jim Meyering  <jim@meyering.net>
75078
75079         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
75080         zero.
75081         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
75082
75083 2002-11-27  Paul Eggert  <eggert@twinsun.com>
75084
75085         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
75086         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
75087         with `if (! (value < limit)) abort ();', for readability.
75088
75089 2002-11-26  Karl Berry  <karl@gnu.org>
75090
75091         * lib/strdup.c: copy from libc again, with jim's ok.
75092         * lib/.cppi-disable: re-add strdup.c
75093
75094 2002-11-25  Karl Berry  <karl@gnu.org>
75095
75096         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
75097         instead of "strtol.c".
75098
75099 2002-11-25  Karl Berry  <karl@gnu.org>
75100
75101         * config/install-sh: update from automake for variable quoting, $0 in
75102         error msgs, etc.
75103
75104         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
75105         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
75106         entry.
75107
75108 2002-11-25  Jim Meyering  <jim@meyering.net>
75109
75110         * lib/mktime.c: Sync from libc, now that it has the latest fix.
75111
75112 2002-11-24  Karl Berry  <karl@gnu.org>
75113
75114         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
75115         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
75116
75117 2002-11-24  Jim Meyering  <jim@meyering.net>
75118
75119         Update from coreutils:
75120
75121         * lib/mktime.c: Merge in changes from libc.
75122
75123         Avoid a link-time failure on some Linux systems.
75124         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
75125         (otherwise).
75126         (__mon_yday): Declare with the STATIC attribute.
75127         (__mktime_internal): Likewise.
75128         Based on a report from Greg Schafer.
75129
75130 2002-11-23  Jim Meyering  <jim@meyering.net>
75131
75132         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
75133         Use `unsigned', not `int', as type of index.
75134
75135         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
75136
75137         * lib/fsusage.c: Remove unneeded parentheses around operands of
75138         `defined'.
75139
75140 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75141
75142         * lib/quotearg.h: Allow multiple inclusion by surrounding with
75143         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
75144         so that we can be included first.
75145         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
75146         * lib/quotearg.c: Include quotearg.h immediately after config.h.
75147         No need to include stddef.h or sys/types.h any more.
75148         Surround local include files with "", not "<>".
75149         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
75150         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
75151         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
75152         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
75153         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
75154         (ISPRINT): Remove; no longer needed now that we assume C89.
75155
75156         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
75157         Preserve errno.
75158
75159         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
75160         quotearg_char): Use SIZE_MAX rather than
75161         (size_t) -1 when we are talking about "infinity".
75162
75163         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
75164
75165 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75166
75167         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
75168         hint that one should use `if (! x) abort ();' rather than `assert
75169         (x);', and anyway it's one less thing to worry about configuring.
75170         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
75171         hash_rehash, hash_insert): Use abort rather than assert.
75172
75173 2002-11-22  Bruno Haible  <bruno@clisp.org>
75174
75175         * lib/safe-read.h: Assume C89. Add comments.
75176         (safe_read): Change return type to size_t.
75177         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
75178         byte counts > SSIZE_MAX correctly.
75179         * lib/safe-write.h: New file.
75180         * lib/safe-write.c: New file.
75181         * lib/full-read.h: New file.
75182         * lib/full-read.c: New file.
75183         * lib/full-write.h: Assume C89. Add comments.
75184         * lib/full-write.c: Include safe-write.h.
75185         (full_write): Rewritten to use safe_write.
75186         Suggested by Jim Meyering and Paul Eggert.
75187
75188 2002-11-21  Jim Meyering  <jim@meyering.net>
75189
75190         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
75191
75192         Merge in changes from the coreutils.
75193
75194         2002-09-25  Paul Eggert  <eggert@twinsun.com>
75195         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
75196         <stdint.h>.
75197         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
75198         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
75199         int.  Work more efficiently if X is the same width as uintmax_t.
75200         Do not compare X to -1, to avoid bogus compiler warning.
75201         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
75202         Don't assume that f_frsize and f_bsize are the same type.
75203
75204         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
75205         warning on FreeBSD.
75206
75207         * lib/makepath.c (make_path): Restore umask *before* creating the final
75208         component.
75209         (make_path): Minor reformatting.
75210
75211         * lib/xmalloc.c: Adjust to work with new autoconf macros,
75212         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
75213         HAVE_MALLOC/HAVE_REALLOC.
75214
75215         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
75216         dummy ones.  At least on GNU/Linux systems, `auto' means something
75217         else.
75218         From Michael Stone.
75219
75220 2002-11-21  Bruno Haible  <bruno@clisp.org>
75221
75222         Remove case insensitive option matching.
75223         * lib/argmatch.h (argcasematch): Remove declaration.
75224         (ARGCASEMATCH): Remove macro.
75225         (__xargmatch_internal): Remove case_sensitive argument.
75226         (XARGMATCH): Update.
75227         (XARGCASEMATCH): Remove macro.
75228         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
75229         case_sensitive argument.
75230         (argcasematch): Remove function.
75231         (__xargmatch_internal): Remove case_sensitive argument.
75232         (main): Use XARGMATCH instead of XARGCASEMATCH.
75233
75234         * lib/xmalloc.c: Change compile-time error message. Add comment about
75235         required autoconf version.
75236
75237 2002-11-20  Paul Eggert  <eggert@twinsun.com>
75238
75239         Merge argmatch cleanups from Bison.  Assume C89.
75240
75241         * lib/argmatch.c: Include config.h here, not in argmatch.h.
75242         Include stdlib.h, for EXIT_FAILURE.
75243         Always include <string.h>, since we assume C89.
75244         (EXIT_FAILURE): Remove pre-C89 bug workaround.
75245         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
75246         Include <stddef.h> instead, since it's all we need for size_t.
75247         (PARAMS): Remove.  All uses removed.
75248         (ARRAY_CARDINALITY): Do not bother to #undef.
75249         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
75250         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75251         Remove unnecessary parentheses.
75252         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75253         Insert necessary parentheses.
75254         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
75255         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
75256
75257 2002-11-19  Bruno Haible  <bruno@clisp.org>
75258
75259         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
75260         * lib/mbswidth.h: Include <stddef.h>, for size_t.
75261
75262         * lib/mbswidth.h (PARAMS): Remove macro.
75263         (mbswidth, mbsnwidth): Use ANSI C function declarations.
75264         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
75265
75266         * lib/gcd.h (PARAMS): Remove macro.
75267         (gcd): Use ANSI C function declarations.
75268         * lib/gcd.c (gcd): Likewise.
75269
75270 2002-11-15  Bruno Haible  <bruno@clisp.org>
75271
75272         * lib/strcspn.c: Include <stddef.h>.
75273         (strcspn): Use ANSI C function declaration. Change return type to
75274         size_t. Use NULL.
75275         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
75276         (strpbrk): Use NULL.
75277         * lib/strpbrk.h (PARAMS): Remove macro.
75278         (strpbrk): Use ANSI C function declaration.
75279         * lib/strstr.c: Don't include <sys/types.h>.
75280         * lib/strstr.h (PARAMS): Remove macro.
75281         (strstr): Use ANSI C function declarations.
75282
75283 2002-11-14  Karl Berry  <karl@gnu.org>
75284
75285         * config/mkinstalldirs: `do' on separate line, instead of
75286         `for var; do'.
75287
75288 2002-11-06  Bruno Haible  <bruno@clisp.org>
75289
75290         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
75291         * lib/gcd.c (gcd): Likewise.
75292
75293 2002-11-05  Bruno Haible  <bruno@clisp.org>
75294
75295         * lib/gcd.h: New file, from gettext-0.11.5.
75296         * lib/gcd.c: New file, from gettext-0.11.5.
75297
75298 2002-11-05  Bruno Haible  <bruno@clisp.org>
75299
75300         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75301         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75302         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75303         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75304
75305         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
75306         <libintl.h>.
75307         * lib/makepath.c: Include gettext.h instead of <locale.h> and
75308         <libintl.h>.
75309
75310         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
75311         * lib/human.c: Include gettext.h instead of <libintl.h>.
75312         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
75313         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
75314         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
75315         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
75316         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
75317         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
75318         (textdomain): Remove definition.
75319         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
75320
75321         * lib/long-options.c: Remove include of <libintl.h> and definition of
75322         _.
75323         * lib/same.c: Remove include of <libintl.h> and definition of _.
75324
75325 2002-11-04  Owen Taylor  <otaylor@redhat.com>
75326
75327         * lib/config.charset: A few additions for Solaris.
75328
75329 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75330
75331         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
75332         * lib/localcharset.c (locale_charset): Declare as extern "C".
75333
75334 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75335
75336         * lib/config.charset: msdos in uk_UA uses CP1125.
75337
75338 2002-11-04  Bruno Haible  <bruno@clisp.org>
75339
75340         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
75341         * lib/strcase.h: New file, from GNU gettext-0.11.5.
75342         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
75343         * lib/strstr.h: New file, from GNU gettext-0.11.5.
75344         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
75345
75346 2002-11-04  Bruno Haible  <bruno@clisp.org>
75347
75348         * lib/localcharset.c (locale_charset): Don't return an empty string.
75349
75350 2002-11-04  Bruno Haible  <bruno@clisp.org>
75351
75352         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
75353         aliases.
75354
75355 2002-11-04  Bruno Haible  <bruno@clisp.org>
75356
75357         * lib/config.charset: Update for newest glibc. Add canonical names
75358         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
75359
75360 2002-11-04  Bruno Haible  <bruno@clisp.org>
75361
75362         * lib/config.charset: Add support for NetBSD.
75363
75364 2002-11-04  Bruno Haible  <bruno@clisp.org>
75365
75366         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
75367
75368 2002-11-01  Bruno Haible  <bruno@clisp.org>
75369
75370         * configure.in: Add AC_CONFIG_AUX_DIR call.
75371         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
75372         test/Makefile.
75373         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
75374
75375 2002-09-28  Karl Berry  <karl@gnu.org>
75376
75377         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
75378         installed automake until the next release, since changes have been
75379         made.
75380
75381 2002-09-25  Karl Berry  <karl@gnu.org>
75382
75383         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
75384         * lib/getopt*: copy from libc/posix.
75385         * lib/gettext.h: copy from gettext.
75386         * lib/.cppi-disable: add strdup.c, gettext.h.
75387
75388 2002-09-25  Karl Berry  <karl@gnu.org>
75389
75390         * config/srclist.txt: enable gettext.h check.
75391         * config/config.{guess,sub}: update from prep.
75392         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
75393                 from automake 1.6.3.
75394         See srclist*.
75395
75396 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
75397
75398         * regex.c (PATFETCH): Remove the translating fetch.
75399         (PATFETCH_RAW): Rename to PATFETCH.
75400         (set_image_of_range): New fun.
75401         (SET_RANGE_TABLE_WORK_AREA): Use it.
75402         (regex_compile): Don't translate the pattern chars so eagerly.
75403         Only do it when inserting an `exactn' bytecode or when handling
75404         a char-range.
75405         (mutually_exclusive_p): Avoid empty statement.
75406
75407 2002-07-06  Jim Meyering  <meyering@lucent.com>
75408
75409         * m4/README: Don't mention Makefile.am.in.
75410         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
75411
75412 2002-07-01  Jim Meyering  <meyering@lucent.com>
75413
75414         * lib/c-stack.c: Include sys/time.h.
75415         From Volker Borchert.
75416
75417 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75418
75419         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
75420
75421 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75422
75423         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
75424         New macro.  Use it uniformly instead of
75425         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
75426         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
75427         reported by Vin Shelton.
75428
75429 2002-06-22  Paul Eggert  <eggert@twinsun.com>
75430
75431         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
75432         Do not assume SA_SIGINFO behavior.
75433         Bug reported by Jim Meyering on NetBSD 1.5.2.
75434
75435 2002-06-22  Jim Meyering  <meyering@lucent.com>
75436
75437         * m4/c-stack.m4: New file, from diffutils-2.8.2.
75438         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
75439
75440         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
75441         now that configure.ac uses AC_GNU_SOURCE.
75442         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
75443         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
75444
75445         Update to latest tools.  Suggestions from Paul Eggert.
75446         * m4/stdbool.m4: New file, from diffutils-2.8.2.
75447         * m4/gnu-source.m4: Update from diffutils-2.8.2.
75448         * m4/fnmatch.m4: Likewise.
75449         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
75450         to AC_HEADER_STDBOOL
75451
75452 2002-06-22  Jim Meyering  <meyering@lucent.com>
75453
75454         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
75455         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
75456
75457 2002-06-22  Jim Meyering  <meyering@lucent.com>
75458
75459         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
75460
75461         * lib/exitfail.c, exitfail.h: Likewise.
75462         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
75463
75464         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
75465         of fnmatch.h.
75466         (EXTRA_DIST): Add fnmatch_loop.c.
75467         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
75468
75469         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
75470         * lib/fnmatch.c: Update from diffutils-2.8.2.
75471         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
75472         * lib/fnmatch.h: Remove file.
75473
75474 2002-06-21  Jim Meyering  <meyering@lucent.com>
75475
75476         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
75477         * m4/mbrtowc.m4: Likewise.
75478
75479         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
75480         * m4/mbswidth.m4: Reflect name change:
75481         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
75482         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75483
75484         * m4/lib-link.m4: Update from gettext-0.11.2.
75485         * m4/gettext.m4: Likewise.
75486
75487         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
75488         From Alfred M. Szmidt.
75489
75490 2002-06-18  Paul Eggert  <eggert@twinsun.com>
75491
75492         * lib/file-type.h: Report an error if neither S_ISREG nor
75493         S_IFREG is defined, instead of using a test specific to glibc
75494         2.2.  This should be safe, since POSIX requires S_ISREG and
75495         Unix Version 7 had S_IFREG.  We don't need to check for
75496         <sys/types.h> since we don't use any symbols that it defines.
75497
75498 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
75499
75500         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
75501         $@-t, so that each temporary file name is unique and valid in the first
75502         8 characters, for operation under DOS.
75503
75504 2002-06-15  Paul Eggert  <eggert@twinsun.com>
75505
75506         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
75507
75508 2002-06-15  Jim Meyering  <meyering@lucent.com>
75509
75510         Work even with DJGPP 2.03, which lacks support for symlinks.
75511         From Richard Dawe.
75512         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
75513         is defined.
75514         * lib/lchown.c (S_ISLNK): Likewise.
75515
75516 2002-06-15  Jim Meyering  <meyering@lucent.com>
75517
75518         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
75519         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
75520         have been included before this file.
75521
75522 2002-06-14  Jim Meyering  <meyering@lucent.com>
75523
75524         * lib/file-type.h: Use the version from diffutils-2.8.2.
75525         * lib/file-type.c: Likewise.
75526
75527 2002-06-07  Jim Meyering  <meyering@lucent.com>
75528
75529         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
75530         They're needed at least for NetBSD 1.5.2.
75531         ($statxfs_includes): Include those same headers.
75532         ($statxfs_includes): Include sys/vfs.h if available.
75533         ($statxfs_includes): Likewise for sys/statvfs.h.
75534         Check for the following members in both structs statfs and statvfs:
75535         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
75536
75537 2002-06-01  Jim Meyering  <meyering@lucent.com>
75538
75539         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
75540         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
75541
75542 2002-05-28  Jim Meyering  <meyering@lucent.com>
75543
75544         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
75545         Reported by Volker Borchert.
75546
75547 2002-05-27  Jim Meyering  <meyering@lucent.com>
75548
75549         Fix a problem seen only on nonconforming systems whereby ls.c's
75550         use of localtime, and then of gettimeofday would cause trouble:
75551         the localtime call used to initialize rpl_gettimeofday's save
75552         mechanism would clobber ls's current local time information so
75553         that in any long listing the first file would always be listed
75554         with date 1970-01-01.  Analysis by Volker Borchert.
75555
75556         * lib/gettimeofday.c (localtime): Undefine.
75557         (rpl_localtime): New function.
75558
75559 2002-05-27  Jim Meyering  <meyering@lucent.com>
75560
75561         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
75562         localtime.
75563
75564         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
75565         use the replacement function; it wouldn't resolve at link time.
75566         Reported by Volker Borchert.
75567
75568 2002-05-22  Jim Meyering  <meyering@lucent.com>
75569
75570         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
75571         file-type.h.
75572         * lib/file-type.h: New file.
75573         * lib/file-type.c (file_type): New file/function.  Extracted from
75574         diffutils.
75575
75576 2002-04-30  Jim Meyering  <meyering@lucent.com>
75577
75578         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
75579
75580 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75581
75582         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
75583
75584 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75585
75586         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
75587         Do not check for alloca.h (no longer used) or stdbool.h (was never
75588         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
75589
75590 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75591
75592         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
75593
75594 2002-04-29  Jim Meyering  <meyering@lucent.com>
75595
75596         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
75597         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
75598         Use AC_FUNC_STRNLEN here instead.
75599
75600         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
75601         With autoconf-2.53a, it's part of AC_PROG_CC.
75602
75603 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75604
75605         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
75606         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
75607
75608 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75609
75610         * lib/sig2str.h, lib/sig2str.c: New files.
75611         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
75612
75613 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75614
75615         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
75616         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
75617         of 127, since 64 is the largest conceivable number for ancient
75618         nonstandard hosts.
75619         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
75620
75621 2002-04-28  Jim Meyering  <meyering@lucent.com>
75622
75623         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
75624
75625 2002-04-24  Jim Meyering  <meyering@lucent.com>
75626
75627         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
75628         (jm_PREREQ): Use it.
75629
75630         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
75631         mach/mach.h fcntl.h.
75632         Check for this function: setlocale.
75633
75634 2002-04-24  Jim Meyering  <meyering@lucent.com>
75635
75636         * lib/gettext.h: New file, from Gettext.
75637         * lib/Makefile.am (INCLUDES): Remove -I../intl.
75638         (libfetish_a_SOURCES): Add gettext.h.
75639
75640 2002-04-16  Jim Meyering  <meyering@lucent.com>
75641
75642         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
75643         ut_pid, ut_id, ut_exit.
75644
75645 2002-04-16  Jim Meyering  <meyering@lucent.com>
75646
75647         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
75648         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
75649         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
75650
75651 2002-04-12  Jim Meyering  <meyering@lucent.com>
75652
75653         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
75654         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
75655         existence of the getmntinfo function.  Needed for Darwin 5.3.
75656
75657         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
75658         This is necessary at least on Darwin 5.3.
75659
75660         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
75661         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
75662         strnlen.o in the library, and that makes some versions of ranlib
75663         object.
75664
75665 2002-04-12  Jim Meyering  <meyering@lucent.com>
75666
75667         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
75668
75669 2002-04-09  Jim Meyering  <meyering@lucent.com>
75670
75671         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
75672         to be more precise.  Rather than saying we're checking whether the
75673         function `works', say what we're testing.
75674         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
75675         Reported by Bruno Haible.
75676
75677 2002-03-10  Jim Meyering  <meyering@lucent.com>
75678
75679         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
75680         Suggestion from Santiago Vila.
75681
75682 2002-03-08  Jim Meyering  <meyering@lucent.com>
75683
75684         * lib/rename.c: Mention that this wrapper is needed also on
75685         mips-dec-ultrix4.4 systems.
75686
75687 2002-03-02  Jim Meyering  <meyering@lucent.com>
75688
75689         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
75690         not HAVE_CLOCK_SETTIME.
75691
75692 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75693
75694         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
75695         Check for clock_settime.
75696
75697 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75698
75699         * lib/nanosleep.h: Rename to....
75700         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
75701
75702         * lib/gettime.c: New file.
75703         * lib/settime.c: New file.
75704         * lib/stime.c: Remove.
75705
75706         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
75707         timespec.h.  Remove nanosleep.h.
75708
75709 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75710
75711         * m4/acl.m4: New file.
75712         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
75713         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
75714
75715 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75716
75717         * lib/acl.c, lib/acl.h: New files.
75718         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
75719
75720 2002-02-24  Jim Meyering  <meyering@lucent.com>
75721
75722         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
75723         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
75724         cause trouble.  Reported by Nelson Beebe.
75725
75726 2002-02-23  Paul Eggert  <eggert@twinsun.com>
75727
75728         * lib/path-concat.c (xpath_concat): Reorder code to pacify
75729         compilers that don't know that xalloc_die never returns.
75730
75731 2002-02-20  Jim Meyering  <meyering@lucent.com>
75732
75733         * lib/getdate.c: Regenerate using bison-1.33.
75734
75735 2002-02-17  Jim Meyering  <meyering@lucent.com>
75736
75737         * config/config.guess (main): Don't use `head -1'; it's no longer
75738         portable. Use `sed 1q' instead.
75739
75740 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
75741
75742         * m4/codeset.m4: Upgrade to gettext-0.11.
75743         * m4/gettext.m4: Upgrade to gettext-0.11.
75744         * m4/glibc21.m4: Upgrade to gettext-0.11.
75745         * m4/iconv.m4: Upgrade to gettext-0.11.
75746         * m4/isc-posix.m4: Upgrade to gettext-0.11.
75747         * m4/lcmessage.m4: Upgrade to gettext-0.11.
75748         * m4/lib-ld.m4: New file, from gettext-0.11.
75749         * m4/lib-link.m4: New file, from gettext-0.11.
75750         * m4/lib-prefix.m4: New file, from gettext-0.11.
75751         * m4/progtest.m4: Upgrade to gettext-0.11.
75752
75753 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75754
75755         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
75756         (jm_PREREQ): Use it.
75757
75758 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75759
75760         * lib/posixver.c, lib/posixver.h: New files.
75761         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75762
75763 2002-02-02  Paul Eggert  <eggert@twinsun.com>
75764             Bruno Haible  <bruno@clisp.org>
75765
75766         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
75767         (fwrite_success_callback): New declaration.
75768         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
75769         print_unicode_char. Call failure callback instead of error.
75770         (fwrite_success_callback): New function.
75771         (exit_failure_callback): New function.
75772         (fallback_failure_callback): New function.
75773         (print_unicode_char): Call unicode_to_mb.
75774
75775 2002-01-26  Jim Meyering  <meyering@lucent.com>
75776
75777         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
75778         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
75779
75780 2002-01-26  Jim Meyering  <meyering@lucent.com>
75781
75782         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
75783
75784 2002-01-22  Paul Eggert  <eggert@twinsun.com>
75785
75786         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
75787
75788 2002-01-22  Jim Meyering  <meyering@lucent.com>
75789
75790         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
75791         Otherwise, some versions of automake would omit the rule that makes
75792         Makefile from Makefile.in.
75793
75794 2002-01-21  Paul Eggert  <eggert@twinsun.com>
75795
75796         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
75797         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75798         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
75799         (memcoll): Set errno to zero if there is no error.
75800
75801         * lib/quotearg.c (quotearg_buffer_restyled):
75802         Fix bug with quoting buffers containing NUL when backslashing escapes.
75803         This bug was exposed by the other changes in this patch.
75804         (quotearg_n_options): New arg ARGSIZE.
75805         All callers changed.
75806         (quoting_options_from_style): New function.
75807         (quotearg_n_style): Use it.
75808         (quotearg_n_style_mem): New function.
75809
75810         * lib/quotearg.h (quotearg_n_style_mem): New function.
75811
75812 2002-01-19  Jim Meyering  <meyering@lucent.com>
75813
75814         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
75815         Remove useless quotes: DF_PROG="df".
75816         * m4/strnlen.m4: New file.
75817
75818 2002-01-16  Paul Eggert  <eggert@twinsun.com>
75819
75820         * lib/backupfile.c (ISDIGIT): Comment fix.
75821         * lib/getdate.y (ISDIGIT): Likewise.
75822         * lib/posixtm.c (ISDIGIT, year): Likewise.
75823         * lib/strverscmp.c (ISDIGIT): Likewise.
75824         * lib/userspec.c (ISDIGIT): Likewise.
75825
75826 2002-01-16  Jim Meyering  <meyering@lucent.com>
75827
75828         * lib/getdate.y: Add three semicolons, each just before a closing
75829         brace. Bison (as of version 1.31) no longer papers over that mistake.
75830
75831 2002-01-05  Jim Meyering  <meyering@lucent.com>
75832
75833         * lib/version-etc.c (version_etc_copyright): Update copyright year.
75834
75835 2001-12-19  Paul Eggert  <eggert@twinsun.com>
75836
75837         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
75838         not silently exit merely because the output buffer happens to
75839         have nothing pending.
75840
75841 2001-12-18  Paul Eggert  <eggert@twinsun.com>
75842
75843         See the big note in ../ChangeLog.
75844         * lib/human.c (suffixes): Prefer K to k for 1024.
75845         (generate_suffix_backwards): New function.
75846         (human_readable_inexact): Use it.
75847         * lib/xstrtol.c (__xstrtol): If there is no number but there
75848         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
75849         Accept 'K' as well as 'k'.
75850
75851 2001-12-15  Jim Meyering  <meyering@lucent.com>
75852
75853         * lib/regex.h (__restrict_arr): Update from libc.
75854
75855         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
75856         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
75857         (STREQ): Define.
75858
75859 2001-12-14  Jim Meyering  <meyering@lucent.com>
75860
75861         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
75862         Suggestion from Bruno Haible.
75863
75864 2001-12-10  Jim Meyering  <meyering@lucent.com>
75865
75866         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
75867         xrealloc, Instead, include "xalloc.h".
75868         (initbuffer): Don't cast xmalloc return value to char*.
75869         (readline): Reword comment.
75870         Don't cast xrealloc return value to char*
75871         Return NULL, not 0.
75872
75873 2001-12-09  Jim Meyering  <meyering@lucent.com>
75874
75875         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
75876         about `signed and unsigned type in conditional expression'.
75877         * lib/posixtm.c (posix_time_parse): Likewise.
75878
75879         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
75880
75881         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
75882         to avoid a pedantic warning.
75883
75884         * lib/getstr.c: Don't include assert.h.
75885         (getstr): Remove warning-evoking assertions.
75886         Return -1 if offset parameter is out of bounds.
75887         Change the type of a local from int to size_t.
75888
75889         * lib/strftime.c (my_strftime_localtime_r): Include this function
75890         definition in the `#if ! HAVE_TM_GMTOFF' block.
75891
75892         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
75893         Include xalloc.h instead.
75894
75895 2001-12-02  Jim Meyering  <meyering@lucent.com>
75896
75897         * lib/tempname.c: Don't declare getenv, thus reverting the change of
75898         2001-11-18.  It's no longer necessary, now that stdlib.h is always
75899         included.
75900
75901         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75902         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75903
75904 2001-11-30  Akim Demaille  <akim@epita.fr>
75905
75906         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
75907         before being defined.
75908
75909 2001-11-27  Paul Eggert  <eggert@twinsun.com>
75910
75911         * lib/quotearg.h (quotearg_n, quotearg_n_style):
75912         First arg is int, not unsigned.
75913         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
75914         (SIZE_MAX, UINT_MAX): New macros.
75915         (quotearg_n_options): Abort if N is negative.
75916         Avoid overflow check on hosts where size_t is 64 bits and int
75917         is 32 bits, as overflow is impossible there.
75918         Fix off-by-one typo that caused unnecessary reallocation.
75919
75920 2001-11-27  Jim Meyering  <meyering@lucent.com>
75921
75922         * lib/tempname.c: Merge with version from libc.
75923         * lib/regex.c: Likewise.
75924
75925         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
75926         systems for which STDC_HEADERS is 0, it was not included, resulting in
75927         a warning about an integer-to-pointer conversion problem with getenv.
75928         Reported by Volker Borchert.
75929
75930 2001-11-26  Jim Meyering  <meyering@lucent.com>
75931
75932         * lib/gtod.h: Remove file.
75933         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
75934         * lib/gettimeofday.c: Don't include gtod.h.
75935         (GTOD_init): Remove function.
75936         (rpl_gettimeofday): Do its job here instead, rather than aborting.
75937         Suggestion from Volker Borchert.
75938
75939 2001-11-23  Jim Meyering  <meyering@lucent.com>
75940
75941         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
75942         it.
75943         * lib/hash.c (struct hash_table): Define it here instead.
75944
75945 2001-11-22  Jim Meyering  <meyering@lucent.com>
75946
75947         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
75948
75949 2001-11-20  Jim Meyering  <meyering@lucent.com>
75950
75951         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
75952         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
75953
75954 2001-11-19  Jim Meyering  <meyering@lucent.com>
75955
75956         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
75957         directory.  Use "conftestXXXXXX" as the template.
75958         Suggestion from Paul Eggert.
75959
75960         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
75961         immediately, so the test doesn't mistakenly hit the max-open-files
75962         limit.
75963
75964 2001-11-18  Paul Eggert  <eggert@twinsun.com>
75965
75966         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
75967         (TEMPORARIES): New macro.
75968         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
75969         removes an artificial limitation (e.g. HP-UX 10.20, where
75970         TMP_MAX is 17576).
75971
75972 2001-11-18  Jim Meyering  <meyering@lucent.com>
75973
75974         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
75975
75976 2001-11-18  Jim Meyering  <meyering@lucent.com>
75977
75978         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
75979         on SunOS 4.
75980
75981         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
75982         files will be created before anything else.
75983
75984 2001-11-17  Paul Eggert  <eggert@twinsun.com>
75985
75986         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
75987         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
75988
75989 2001-11-17  Jim Meyering  <meyering@lucent.com>
75990
75991         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
75992         Prompted by a report from Bob Proulx.
75993
75994         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
75995         Instead, require UTILS_FUNC_MKSTEMP.
75996
75997 2001-11-17  Jim Meyering  <meyering@lucent.com>
75998
75999         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
76000         Now, that's done as part of AC_FUNC_STRTOD.
76001
76002 2001-11-17  Jim Meyering  <meyering@lucent.com>
76003
76004         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
76005         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
76006         rather than group writable.  Patch by Juan F. Codagnone.
76007
76008         * lib/readtokens.c: Remove explicit declarations of xmalloc and
76009         xrealloc, Instead, include "xalloc.h".
76010
76011         * lib/mountlist.c: Include unlocked-io.h after all system headers.
76012         Remove explicit declarations of xmalloc, xrealloc,
76013         and xstrdup.  Instead, include "xalloc.h".
76014
76015         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
76016         unlocked-io.h.
76017         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
76018         Likewise.
76019         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
76020
76021         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
76022         Reported by Padraig Brady.
76023
76024         * lib/mkstemp.c: #undef mkstemp.
76025         Include config.h.
76026         (rpl_mkstemp): Rename from mkstemp.
76027         Protoize.
76028
76029 2001-11-16  Jim Meyering  <meyering@lucent.com>
76030
76031         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
76032         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
76033         determine the amount of total physical memory, use pstat_getstatic.
76034         HPUX-11 doesn't define _SC_PHYS_PAGES.
76035         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
76036         If sysconf couldn't be used to determine the amount of available
76037         physical memory, use both pstat_getstatic and pstat_getdynamic.
76038         Based on a patch from Bob Proulx.
76039
76040 2001-11-10  Jim Meyering  <meyering@lucent.com>
76041
76042         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
76043         (jm_PREREQ): Use it.
76044
76045 2001-11-09  Jim Meyering  <meyering@lucent.com>
76046
76047         * m4/jm-macros.m4: Require autoconf-2.52f.
76048         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
76049         Use these AC_-prefixed names, not the AM_-prefixed ones.
76050
76051         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
76052
76053 2001-11-05  Jim Meyering  <meyering@lucent.com>
76054
76055         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
76056
76057 2001-11-04  Jim Meyering  <meyering@lucent.com>
76058
76059         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
76060         $DEFS.
76061
76062 2001-11-03  Jim Meyering  <meyering@lucent.com>
76063
76064         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
76065         of AC_DEFUN.
76066
76067         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
76068         know the name of the variable in the macro definition.
76069
76070 2001-11-03  Jim Meyering  <meyering@lucent.com>
76071
76072         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
76073         in argmatch_to_argument call.
76074
76075         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
76076         argument.
76077
76078         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
76079         e.g., a fault due to an attempt to free a NULL pointer.
76080
76081 2001-11-01  Jim Meyering  <meyering@lucent.com>
76082
76083         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
76084         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
76085
76086 2001-11-01  Jim Meyering  <meyering@lucent.com>
76087
76088         * lib/dirfd.c, lib/dirfd.h: New files.
76089         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
76090
76091         * lib/hash.c (hash_print) [TESTING]: Clean up.
76092
76093 2001-10-22  Paul Eggert  <eggert@twinsun.com>
76094
76095         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
76096         to avoid a warning if -Wall.
76097
76098 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
76099
76100         * README: New file
76101         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
76102         (per RMS's instructions, this is now the canonical source)
76103         * lgpl/, gpl/: New directories.
76104
76105 2001-10-21  Paul Eggert  <eggert@twinsun.com>
76106
76107         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
76108
76109 2001-10-21  Jim Meyering  <meyering@lucent.com>
76110
76111         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
76112         this code would end up calling gettext even in packages built
76113         with --disable-nls.
76114         * lib/getopt.c (_): Likewise.
76115         * lib/regex.c (_): Likewise.
76116
76117 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76118
76119         * m4/error.m4 (jm_PREREQ_ERROR):
76120         Do not invoke AC_CHECK_FUNCS with strerror_r, as
76121         AC_FUNC_STRERROR_R does that.
76122         Check for strerror declaration.
76123
76124         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
76125         are supposed to have them these days.
76126         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
76127         Merge changes from latest Autoconf CVS.
76128         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
76129         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
76130         POSIX decided to standardize on the int flavor of strerror_r.
76131
76132 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76133
76134         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
76135         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
76136         Use strerror_r that is only a macro, even if it is not a function.
76137         (strerror): Check for HAVE_DECL_STRERROR before declaring.
76138         (private_strerror): Use prototypes, not old-style function definition.
76139         (print_errno_message): New function.
76140         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
76141         char*-flavored one.
76142         (error_tail, error, error_at_line): Use it.
76143
76144 2001-10-11  Jim Meyering  <meyering@lucent.com>
76145
76146         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
76147         and quote_n (1, ... to avoid clobbering a buffer.
76148
76149 2001-10-05  Jim Meyering  <meyering@lucent.com>
76150
76151         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
76152         hash-pjw.h.
76153         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
76154         * lib/hash-pjw.h: New file.
76155
76156 2001-09-30  Jim Meyering  <meyering@lucent.com>
76157
76158         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
76159         `struct fsstat' has the `f_fstypename' member.
76160         Use that to define FS_TYPE, which is now used to make
76161         the getfsstat link test tighter.
76162
76163 2001-09-30  Jim Meyering  <meyering@lucent.com>
76164
76165         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
76166         Include <sys/ucred.h>, for Apple Darwin.
76167         Include sys/mount.h and sys/fs_types.h only if available.
76168         (FS_TYPE): Define.
76169         (read_filesystem_list): Use FS_TYPE.
76170
76171 2001-09-29  Paul Eggert  <eggert@twinsun.com>
76172
76173         * lib/exclude.c (excluded_filename): 0 -> false, since it's
76174         a boolean context.
76175
76176 2001-09-29  Jim Meyering  <meyering@lucent.com>
76177
76178         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76179         [one-argument getmntent function]): Include stdio.h before mntent.h.
76180         SunOS 4.1.x needs it for the declaration of `FILE'.
76181         Patch by Volker Borchert.
76182
76183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76184         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
76185         sys/fs_types.h, and make the link-test for getfsstat guard #include
76186         directives with appropriate #if HAVE_*_H tests so that we can
76187         detect getfsstat on Apple Darwin1.3.7 systems.
76188         Reported by Nelson Beebe.
76189         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
76190
76191 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76192
76193         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76194         #defines strtoimax.  Also treat the other strto* functions
76195         like strtoimax.
76196
76197         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76198         Check for strtoul and strtoumax,
76199         as those declarations are made even in the signed case.
76200         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
76201         Likewise, for strtol and strtoimax.
76202
76203 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76204
76205         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76206         #defines strtoimax.  Also treat the other strto* functions
76207         like strtoimax.
76208
76209         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
76210         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
76211         (strtoimax, strtoumax): Do not declare if already defined as a macro.
76212
76213 2001-09-26  Jim Meyering  <meyering@lucent.com>
76214
76215         Most macros in unlocked-io.h had the wrong number of arguments.
76216         * lib/gen-uio: New script.
76217         (USE_UNLOCKED_IO): Define to 1 if not already defined.
76218         * lib/unlocked-io.hin: Remove file.
76219         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
76220         rather than trying to embed it here.
76221         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
76222         Reported by Padraig Brady.
76223
76224 2001-09-25  Volker Borchert  <bt@teknon.de>
76225
76226         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
76227         `result'.
76228
76229 2001-09-24  Jim Meyering  <meyering@lucent.com>
76230
76231         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
76232
76233 2001-09-23  Jim Meyering  <meyering@lucent.com>
76234
76235         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
76236         instead of the mere test for existence of mntent.h.  The latter
76237         would get a false-positive on AIX 3.4 systems.
76238         In the outer getmntent if-block, don't die if neither of the getmntent
76239         tests succeeds.  Instead, just fall through and continue with the
76240         remaining tests.
76241
76242 2001-09-23  Jim Meyering  <meyering@lucent.com>
76243
76244         * lib/mountlist.c: Remove useless parentheses in #if directives.
76245         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
76246         the deprecated MOUNTED symbol is no longer defined in mntent.h.
76247
76248 2001-09-22  Jim Meyering  <meyering@lucent.com>
76249
76250         * m4/gettext.m4: New file.  From gettext.
76251         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
76252         * m4/progtest.m4: Likewise
76253         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
76254         * m4/glibc21.m4: Likewise.
76255
76256         * m4/libintl.m4: Remove.  No longer used.
76257
76258 2001-09-22  Jim Meyering  <meyering@lucent.com>
76259
76260         * lib/localcharset.c: Update from latest gettext.
76261         * lib/config.charset: Likewise.
76262
76263 2001-09-20  Jim Meyering  <meyering@lucent.com>
76264
76265         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
76266         strtoimax.
76267         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
76268         strtoumax.
76269
76270 2001-09-20  Jim Meyering  <meyering@lucent.com>
76271
76272         * lib/xstrtol.c (strtoimax): Guard declaration with
76273         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
76274         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
76275         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
76276         (strtoumax): Likewise, for completeness (it wasn't necessary).
76277
76278 2001-09-17  Paul Eggert  <eggert@twinsun.com>
76279
76280         * lib/strtoimax.c (HAVE_LONG_LONG):
76281         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
76282         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
76283         to work around bug in IBM C compiler.
76284
76285 2001-09-17  Jim Meyering  <meyering@lucent.com>
76286
76287         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
76288         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
76289         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
76290         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
76291         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
76292         whenever the right hand side need not be expanded by the shell.
76293
76294 2001-09-16  Paul Eggert  <eggert@twinsun.com>
76295
76296         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
76297         library.  It's not correct, as some older glibcs are buggy.
76298         fnmatch wasn't fixed until glibc 2.2.
76299
76300         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
76301         special shell magic here.
76302
76303 2001-09-16  Jim Meyering  <meyering@lucent.com>
76304
76305         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
76306         * m4/jm-macros.m4: Require it.
76307
76308 2001-09-16  Jim Meyering  <meyering@lucent.com>
76309
76310         * lib/mkdir.c: New file.
76311
76312 2001-09-15  Jim Meyering  <meyering@lucent.com>
76313
76314         * m4/jm-macros.m4: Check for help2man.
76315
76316 2001-09-11  Jim Meyering  <meyering@lucent.com>
76317
76318         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
76319         The body, by Paul Eggert, was moved here from configure.in.
76320         * m4/jm-macros.m4: Require UTILS_HOST_OS.
76321
76322 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76323
76324         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
76325         (jm_PREREQ): Use it.
76326
76327 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76328
76329         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
76330         Use ssize_t, not int, to store result of readlink.
76331         Check for ssize_t overflow as well as size_t overflow,
76332         as POSIX says the result of readlink is implementation-defined
76333         when ssize_t overflows.
76334         Remove unnecessary cast to char*.
76335         Use free+malloc instead of realloc, as the storage doesn't need
76336         to be preserved and it's clearer and can be more efficient that way.
76337         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
76338         * lib/xreadlink.h (xreadlink): Update prototype.
76339
76340 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76341
76342         * lib/xgetcwd.c: Revert some of the previous change; intead,
76343         fix the HAVE_GETCWD_NULL code to behave more like the
76344         !HAVE_GETCWD_NULL code used to.
76345
76346         Include "xalloc.h".
76347         (xgetcwd): Do not return NULL when memory is exhausted; instead,
76348         invoke xalloc_die.
76349
76350 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76351
76352         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
76353         sys/param.h, as pathmax.h includes them.
76354
76355 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76356
76357         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
76358         (jm_PREREQ_XGETCWD): New macro.
76359
76360         * m4/getcwd.m4: New file.
76361
76362 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76363
76364         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
76365         like the HAVE_GETCWD_NULL code.
76366         Include pathmax.h if not HAVE_GETCWD.
76367         Do not include xalloc.h.
76368         (INITIAL_BUFFER_SIZE): New symbol.
76369         Do not use xmalloc / xrealloc, since the caller is responsible for
76370         handling errors.  Preserve errno around `free' during failure.
76371         Do not overrun buffer when using getwd.
76372
76373 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76374
76375         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
76376         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
76377         getcwd (NULL, 0).
76378
76379 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76380
76381         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
76382         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
76383         spotted by Jim Meyering.
76384
76385 2001-09-03  Jim Meyering  <meyering@lucent.com>
76386
76387         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
76388         failure.
76389
76390 2001-09-02  Jim Meyering  <meyering@lucent.com>
76391
76392         * lib/error.c: Update from GNU libc.
76393
76394 2001-09-01  Jim Meyering  <meyering@lucent.com>
76395
76396         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
76397         Used by df.
76398
76399 2001-09-01  Jim Meyering  <meyering@lucent.com>
76400
76401         * lib/xreadlink.c: New file.
76402         * lib/xreadlink.h: New file.
76403         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
76404         xreadlink.h.
76405
76406         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
76407         doesn't conflict with sparc Solaris 7's definition in
76408         /usr/include/sys/int_types.h.
76409
76410         * lib/exclude.c: Use `""', not `<>' to #include non-system header
76411         files.
76412         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
76413         and strncasecmp as r-values.  Unixware didn't have declarations.
76414
76415 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76416
76417         * lib/xstrtol.h: Add copyright notice.
76418         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
76419         LONGINT_INVALID_SUFFIX_CHAR.
76420
76421 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76422
76423         * lib/xstrtol.c (strtoimax): New decl.
76424
76425 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76426
76427         * lib/xgetcwd.c: Don't include pathmax.h.
76428         Include stdlib.h and unistd.h if available.
76429         Include xalloc.h.
76430         (xmalloc, xstrdup, free): Remove decls.
76431         (xgetcwd): Don't assume sizes fit in unsigned.
76432         Check for overflow when computing sizes.
76433         Simplify reallocation code.
76434
76435 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76436
76437         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
76438         a directory's st_size can have an arbitrary value, so the old
76439         usage could waste an arbitrary amount of memory.  All uses
76440         changed.
76441         * lib/savedir.h: Update prototype.
76442
76443 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76444
76445         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
76446
76447         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
76448         old strtoimax.c.
76449
76450         Also, make the following further changes to make this file's
76451         configuration more similar to that of strtol.c:
76452         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
76453         (strtoumax, uintmax_t, strtoull, strtol): Remove.
76454         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
76455         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
76456         changed to signed values.
76457
76458         And make the following changes as well:
76459         Fix copyright notice, as 1999 was missing.
76460         (verify): New macro.
76461         (strtoimax): Check sizes at compile-time, not run-time.
76462         Prefer strtol to strtoll if both work.
76463         (main): Remove; it was not that useful and was a pain to maintain.
76464
76465         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
76466
76467 2001-08-31  Jim Meyering  <meyering@lucent.com>
76468
76469         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
76470         Use an initial, malloc'd, buffer of length 128 rather than
76471         a statically allocated one of length 1024.
76472
76473 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76474
76475         Simplify code, partly by assuming autoconf 2.52 semantics.
76476
76477         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
76478
76479         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
76480         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
76481         All uses removed.
76482         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
76483         Move AC_REQUIRE to next-to-top level, to avoid confusion.
76484         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
76485         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
76486         jm_AC_HEADER_INTTYPES_H.
76487         * m4/jm-macros.m4 (jm_MACROS): Likewise.
76488
76489         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
76490
76491         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76492         Quote first arg of AC_DEFUN.
76493         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
76494         since they are needed to parse the include file even if we need
76495         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
76496         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
76497         but with opposite signedness.
76498
76499 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76500
76501         Merge 'exclude' changes from tar 1.13.22.
76502         This fixes one or two unlikely storage allocation overflow bugs,
76503         but doesn't change user-visible behavior otherwise.
76504
76505 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76506
76507         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
76508         (jm_PREREQ_EXCLUDE): New macro.
76509
76510 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76511
76512         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
76513         tm to be declared.
76514
76515 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76516
76517         * lib/hash.c: Remove '2001' from copyright notice.
76518
76519 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76520
76521         * lib/full-write.h: New file.
76522         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
76523         * lib/full-write.c: Correct credits, as cccp.c no longer
76524         exists and anyway it was so heavily changed from the old cccp
76525         code as to be unrecognizable.  Include full-write.h.
76526         (full_write): Return size_t, with short writes meaning failure.
76527         All callers changed.  This fixes a bug with large buffers
76528         on 64-bit hosts.
76529         * lib/utime.c: Include full-write.h.
76530
76531 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76532
76533         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
76534         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
76535         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
76536         Include if available.
76537         (<xalloc.h>): Include
76538         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
76539         (verify): New macro.  Use it to verify that EXCLUDE macros do not
76540         collide with FNM macros.
76541         (struct patopts): New struct.
76542         (struct exclude): Use it, as exclude patterns now come with options.
76543         (new_exclude): Support above changes.
76544         (new_exclude, add_exclude_file):
76545         Initial size must now be a power of two to simplify overflow checking.
76546         (free_exclude, fnmatch_no_wildcards): New function.
76547         (excluded_filename): No longer requires options arg, as the options
76548         are determined by add_exclude.  Now returns bool, not int.
76549         (excluded_filename, add_exclude):
76550         Add support for the fancy new exclusion options.
76551         (add_exclude, add_exclude_file): Now takes int options arg.
76552         Check for arithmetic overflow when computing sizes.
76553         (add_exclude_file): xrealloc might modify errno, so don't
76554         realloc until after errno might be used.
76555
76556         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
76557         New macros.
76558         (free_exclude): New decl.
76559         (add_exclude, add_exclude_file): Now takes int options arg.
76560         (excluded_filename): No longer requires options arg, as the options
76561         are determined by add_exclude.  Now returns bool, not int.
76562
76563 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76564
76565         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
76566
76567 2001-08-27  Jim Meyering  <meyering@lucent.com>
76568
76569         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
76570
76571         * lib/version-etc.c (N_): Remove definition.
76572         Revert most of last change.
76573         Instead, simply don't mark the `Copyright...' string for translation.
76574         Based on advice from Paul Eggert.
76575
76576         * lib/strtoxmax.c: Tweak comment.
76577
76578 2001-08-26  Jim Meyering  <meyering@lucent.com>
76579
76580         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
76581
76582         * m4/xstrtoimax.m4: New file.
76583         * m4/xstrtoumax.m4: Add comments explaining why we
76584         AC_REPLACE_FUNCS(strtol).
76585
76586 2001-08-26  Jim Meyering  <meyering@lucent.com>
76587
76588         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
76589         of copyright with `%s' so translators don't get an untranslated
76590         message in 2002.
76591         (COPYRIGHT_YEAR): Define.
76592         (version_etc): Use fprintf rather than fputs.
76593         Suggestion from Ulrich Drepper.
76594
76595         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
76596
76597         * lib/strtoll.c: New file, from GNU libc.
76598         * lib/xstrtoimax.c: New file.
76599
76600         * lib/xstrtol.h: Add xstrtoimax.
76601         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
76602         * lib/strtoimax.c: New file.  Likewise, but first define
76603         STRTOUXMAX_SIGNED.
76604
76605         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
76606         ...
76607         * lib/strtoxmax.c: ... then renamed to this.
76608
76609 2001-08-18  Paul Eggert  <eggert@twinsun.com>
76610
76611         * m4/inttypes.m4: Add AC_PREREQ(2.13).
76612         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
76613         (jm_AC_TYPE_INTMAX_T): New macro.
76614         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
76615
76616         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
76617
76618         * m4/longlong.m4: Renamed from ulonglong.m4.
76619         * m4/inttypes.m4: Renamed from inttypes_h.m4.
76620         * m4/uintmax_t.m4: Removed.
76621
76622 2001-08-13  Paul Eggert  <eggert@twinsun.com>
76623
76624         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
76625         Port to Solaris 8, where 'sed' requires a space after the 'r'
76626         command, and where sh dislikes "$/".  Clean up the spacing a bit.
76627         Redirect output to $tmp just once.
76628
76629 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
76630
76631         * lib/addext.c (<errno.h>): Include.
76632         (errno): Declare if not defined.
76633         (addext): Work correctly when pathconf returns -1 and leaves
76634         errno alone because there is no limit.  Also, work even if
76635         pathconf returns a value greater than SIZE_MAX.
76636
76637 2001-08-12  Jim Meyering  <meyering@lucent.com>
76638
76639         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
76640         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
76641         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
76642         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
76643         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
76644         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
76645         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
76646         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
76647         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
76648         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
76649         utime.m4, utimes.m4, xstrtoumax.m4:
76650         Quote the first argument in each use of AC_DEFUN.
76651
76652 2001-08-12  Jim Meyering  <meyering@lucent.com>
76653
76654         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
76655         Simply `return getcwd (NULL, 0);'.
76656         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
76657         Use 1300 as initial value for length, not PATH_MAX.
76658
76659         * lib/pathmax.h: Clean up cpp syntax.
76660
76661 2001-08-12  Jim Meyering  <meyering@lucent.com>
76662
76663         * lib/gettimeofday.c: New file.
76664         * lib/gtod.h: New file.
76665         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
76666
76667 2001-08-05  Jim Meyering  <meyering@lucent.com>
76668
76669         * m4/jm-macros.m4: Require autoconf-2.52.
76670
76671 2001-08-04  Jim Meyering  <meyering@lucent.com>
76672
76673         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
76674         stmt, to get in sync with glibc.
76675
76676 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76677
76678         The following changes are from gettext 0.10.39 as maintained by
76679         Bruno Haible.
76680
76681         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
76682         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
76683         with inverted sense.  All uses changed.
76684
76685         * lib/mbswidth.c: Don't include <limits.h>.
76686         Include <stdlib.h> and <string.h> unconditionally.
76687         (iswcntrl, mbsinit, ISCNTRL): New macros.
76688         (mbsnwidth): Use K&R style function declarations.
76689         Don't bother checking for MB_LEN_MAX == 1, since the compiler
76690         can optimize it when MB_CUR_MAX == 1.
76691         The width of control characters is zero, not 1.
76692
76693 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76694
76695         The following changes are from gettext 0.10.39 as maintained by
76696         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
76697
76698         * m4/codeset.m4: Upgrade to serial AM1.
76699         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
76700         all uses changed.  Quote first arg of AC_DEFUN.
76701         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
76702
76703         * m4/iconv.m4: Upgrade to serial AM2.
76704         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
76705         Add --with-libconv-prefix.
76706         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
76707         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
76708         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
76709         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
76710         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
76711
76712         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
76713         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
76714         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
76715         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
76716         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
76717         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
76718         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
76719         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
76720         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76721
76722         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
76723         string.h any more.
76724
76725         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
76726         not the default value.
76727
76728         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
76729         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
76730         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
76731         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
76732         Also check for iswcntrl, used for wcwidth fallback.
76733         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
76734         to Autoconf 2.13.
76735
76736 2001-08-03  Jim Meyering  <meyering@lucent.com>
76737
76738         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
76739         as it was in the original.  Reported by Paul Eggert.
76740
76741 2001-07-16  Jim Meyering  <meyering@lucent.com>
76742
76743         * m4/gettimeofday.m4: New file.
76744         Prompted by a report from Bernhard Baehr.
76745
76746 2001-07-15  Jim Meyering  <meyering@lucent.com>
76747
76748         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
76749         stuff. Now it's in ../Makefile.cfg.
76750
76751 2001-07-15  Jim Meyering  <meyering@lucent.com>
76752
76753         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
76754         (BUILT_SOURCES): Add unlocked-io.h.
76755         (io_functions): Define.
76756         (unlocked-io.h): New rule.
76757         (DISTCLEANFILES): Add unlocked-io.h.
76758         (all-local): Depend on unlocked-io.h, to ensure it is created.
76759
76760         * lib/unlocked-io.hin: New file
76761
76762         * lib/regex.c: Update from glibc.
76763
76764 2001-07-05  Jim Meyering  <meyering@lucent.com>
76765
76766         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
76767         recommendation.
76768         (libfetish_a_SOURCES): Put all .h files here instead.
76769         Remove a thus-exposed (better checks in automake) duplicate and
76770         two unnecessary .h files.
76771
76772 2001-07-04  Jim Meyering  <meyering@lucent.com>
76773
76774         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
76775         that generates jm-glibc-io.m4 so that it doesn't trigger any make
76776         distcheck failure.
76777
76778 2001-07-02  Jim Meyering  <meyering@lucent.com>
76779
76780         The following changes were prompted by suggestions from Bruno Haible.
76781
76782         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
76783         is now generated.
76784         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
76785         definition of EXTRA_DIST.
76786         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
76787         ensure that the generated file is created/updated whenever the list
76788         of $(unlocked_functions) is changed.
76789         (jm-glibc-io.m4): New rule.
76790         (unlocked-io.h): New rule -- currently unused.
76791
76792 2001-06-24  Jim Meyering  <meyering@lucent.com>
76793
76794         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
76795         unmatched right bracket, rather than kludging it with an extra,
76796         falsely-matching quote in a comment.  Patch by Akim Demaille.
76797
76798 2001-06-11  Jim Meyering  <meyering@lucent.com>
76799
76800         * lib/regex.c: Update from GNU libc.
76801
76802 2001-05-27  Jim Meyering  <meyering@lucent.com>
76803
76804         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
76805         Check for ut_type in struct utmp.
76806
76807 2001-05-27  Jim Meyering  <meyering@lucent.com>
76808
76809         * lib/readutmp.h (UT_TYPE): Define.
76810
76811 2001-05-24  Jim Meyering  <meyering@lucent.com>
76812
76813         * lib/argmatch.c: Include "quote.h".
76814         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
76815         quote function.  Reported by Göran Uddeborg.
76816
76817 2001-05-22  Jim Meyering  <meyering@lucent.com>
76818
76819         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
76820         now that we use the package-supplied version unconditionally.
76821         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
76822
76823 2001-05-21  Jim Meyering  <meyering@lucent.com>
76824
76825         * m4/regex.m4: Change a couple backticks to single quotes to avoid
76826         shell syntax errors.
76827
76828 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76829
76830         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
76831
76832 2001-05-20  Paul Eggert  <eggert@twinsun.com>
76833
76834         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
76835         Don't bother to check library strftime, since
76836         we'll be using our own my_strftime function anyway.
76837         Define my_strftime instead of strftime.
76838
76839 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
76840
76841         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
76842         which is not yet declared.
76843
76844 2001-05-15  Jim Meyering  <meyering@lucent.com>
76845
76846         * m4/regex.m4: Use proper quoting so brackets appear in the test
76847         program.
76848         Reported by, and with help from, Bruno Haible.
76849
76850 2001-05-13  Jim Meyering  <meyering@lucent.com>
76851
76852         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
76853         undefined.
76854
76855 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76856
76857         dirname code cleanup.  base_name now behaves more compatibly
76858         with POSIX basename when given file names that have trailing
76859         slashes, and similarly for dir_name.  Add new primitives
76860         base_len and dir_len.  Put the directory-name-related decls
76861         into dirname.h.
76862
76863         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
76864         * lib/backupfile.c (base_name): Likewise.
76865         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
76866         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
76867         * lib/makepath.c (strip_trailing_slashes): Likewise.
76868         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
76869         ISSLASH): Likewise.
76870         * lib/rename.c (strip_trailing_slashes): Likewise.
76871         * lib/same.c (base_name): Likewise.
76872         * lib/stripslash.c (ISSLASH): Likewise.
76873
76874         * lib/addext.c: Include <dirname.h> after size_t is defined.
76875         * lib/backupfile.c: Likewise.
76876
76877         * lib/addext.c (addext): Use base_len to trim redundant
76878         trailing slashes instead of doing it ourselves.
76879         But do not trim the last slash if it is not redundant.
76880
76881         * lib/backupfile.c (find_backup_file_name,
76882         max_backup_version): Use base_len instead of rolling it ourselves.
76883         Handle the case of "" and (on DOS) "C:" correctly.
76884
76885         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
76886         needed. Include <string.h>, <dirname.h>.
76887         (base_name): Allow file names ending in slashes, other than names
76888         that are all slashes.  In this case, return the basename followed
76889         by the slashes.  This is more general, and can be used in places
76890         where the original base_name purposely had an assertion failure.
76891         (base_len): New function.
76892
76893         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
76894         Do not include <assert.h>; no longer needed.
76895         Include xalloc.h.
76896         (memrchr): Remove decl.
76897         (dir_name_r): Remove.
76898         (dir_len): Renamed from dirlen.  All callers changed.
76899         Rewrite in terms of base_name, for simplicity and consistency.
76900         (dir_name): Never return NULL.  All callers changed.
76901         Do not include <stdlib.h> in test program; no longer needed.
76902         return 0; is fine for test program.
76903
76904         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
76905         New macros.
76906         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
76907
76908         * lib/path-concat.c (path_concat): Use base_len to compute
76909         base length, not strlen; this means we cannot rely on memcpy
76910         to null-terminate.
76911
76912         * lib/same.c (STREQ): Remove.
76913         (same_name): Handle the case where the basename ends in trailing '/'.
76914
76915         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
76916         a slash was stripped.  Do not strip the last slash after a
76917         file system prefix.
76918
76919 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76920
76921         * lib/Makefile.am (libfetish_a_SOURCES):
76922         Add strftime.c, since we now compile it on all hosts.
76923
76924         * lib/strftime.c (my_strftime):
76925         Define to nstrftime if emacs, but only if my_strftime is not defined.
76926         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
76927         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
76928         Add one more extra argument: a nanoseconds value.
76929         All uses changed.
76930         (ns): New macro.
76931         (my_strftime function): Add %N format.
76932         (emacs_strftimeu): Renamed from emacs_strftime,
76933         with extra ut argument.
76934
76935 2001-05-09  Paul Eggert  <eggert@twinsun.com>
76936
76937         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
76938
76939 2001-04-21  Jim Meyering  <meyering@lucent.com>
76940
76941         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
76942         doesn't interfere.
76943
76944 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76945
76946         * m4/ftruncate.m4: Check for chsize.
76947         Link with ftruncate.o unconditionally if ftruncate is missing.
76948         This was required when cross-compiling to i586-mingw32msvc.
76949
76950 2001-04-08  Jim Meyering  <meyering@lucent.com>
76951
76952         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
76953         recomputed; that's necessary when the offset spans a DST transition.
76954         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
76955
76956 2001-04-02  Jim Meyering  <meyering@lucent.com>
76957
76958         * lib/regex.h, regex.c: Update from GNU libc.
76959
76960 2001-03-24  Jim Meyering  <meyering@lucent.com>
76961
76962         * m4/jm-macros.m4: Require autoconf-2.49d.
76963
76964 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
76965
76966         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
76967
76968 2001-03-19  Paul Eggert  <eggert@twinsun.com>
76969
76970         * lib/version-etc.c (version_etc_copyright): Update to 2001.
76971
76972 2001-03-17  Jim Meyering  <meyering@lucent.com>
76973
76974         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
76975         now that the version in autoconf is equivalent.
76976         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
76977
76978         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
76979         Suggestion from Akim Demaille.
76980
76981         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
76982         (jm_PREREQ_TEMPNAME): New function.
76983
76984 2001-03-16  Paul Eggert  <eggert@twinsun.com>
76985
76986         * lib/tempname.c (uint64_t): Define to uintmax_t if
76987         not defined, and if UINT64_MAX is not defined.
76988         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
76989         Reported by John David Anglin.
76990
76991 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
76992
76993         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
76994         resolve alias if codeset is empty.
76995         * lib/config.charset (BeOS): Use wildcard syntax.
76996
76997 2001-03-13  Jim Meyering  <meyering@lucent.com>
76998
76999         * lib/path-concat.c (path_concat)
77000         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
77001         concatenating e.g., `C:' and `foo'.
77002         From Bruno Haible.
77003
77004 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77005
77006         * lib/localcharset.c (locale_charset): Don't use
77007         setlocale(LC_CTYPE,NULL). Don't return NULL.
77008         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
77009
77010 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77011
77012         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
77013         support for DOS/DJGPP.
77014
77015 2001-03-01  Paul Eggert  <eggert@twinsun.com>
77016
77017         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
77018         lacks mkstemp.  Compile our own tempname.c if we compile our own
77019         mkstemp.c, as mkstemp relies on tempname.
77020
77021 2001-03-01  Jim Meyering  <meyering@lucent.com>
77022
77023         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
77024         AH_VERBATIM really does output its argument verbatim.
77025
77026 2001-02-28  Paul Eggert  <eggert@twinsun.com>
77027
77028         * lib/Makefile.am (libfetish_a_SOURCES):
77029         Add dup-safer.c, fopen-safer.c.
77030         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
77031
77032         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
77033         * lib/unistd-safer.h: New files.
77034
77035 2001-02-25  Paul Eggert  <eggert@twinsun.com>
77036
77037         The mkstemp replacement is taken from glibc 2.2.2, with some
77038         portability fixes for use outside glibc, as follows:
77039
77040         * lib/tempname.c (struct_stat64): New macro.
77041         (direxists, __gen_tempname): Use it.
77042         This avoids a portability problem with Solaris 8.
77043
77044         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
77045         (<stddef.h>, <stdint.h>, <string.h>):
77046         Include only if STDC_HEADERS || _LIBC.
77047         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
77048         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
77049         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
77050         (__set_errno): Define this macro if <errno.h> doesn't.
77051         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
77052         Define these macros if <stdio.h> doesn't.
77053         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
77054         Define these macros if <sys/stat.h>
77055         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
77056         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
77057         __xstat64): Define if not _LIBC.
77058         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
77059         (__gen_tempname): Invoke gettimeofday only if
77060         HAVE_GETTIMEOFDAY || _LIBC;
77061         otherwise, fall back on plain "time".
77062         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
77063
77064         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
77065
77066         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
77067
77068 2001-02-18  Paul Eggert  <eggert@twinsun.com>
77069
77070         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
77071
77072 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77073
77074         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
77075         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
77076         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
77077         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77078
77079 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77080
77081         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
77082         Remove workaround macros for hosts that have mbrtowc but not
77083         mbstate_t, as we now insist on proper declarations for both
77084         before using mbrtowc.
77085
77086 2001-02-17  Jim Meyering  <meyering@lucent.com>
77087
77088         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
77089         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
77090         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
77091         UnixWare 7.1.1.
77092
77093         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
77094         rather than AC_CACHE_VAL.
77095
77096 2001-02-17  Jim Meyering  <meyering@lucent.com>
77097
77098         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
77099         around included file name.
77100
77101         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
77102
77103         * lib/strftime.c: Update from GNU libc (the only changes were to
77104         comments).
77105
77106 2001-02-17  Jim Meyering  <meyering@lucent.com>
77107
77108         * lib/regex.c: Update from libc.
77109
77110 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
77111
77112         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
77113         clash.
77114
77115 2001-02-16  Paul Eggert  <eggert@twinsun.com>
77116
77117         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
77118         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
77119         Reported by Mark Hounschell via Paul Eggert.
77120
77121 2001-02-07  Jim Meyering  <meyering@lucent.com>
77122
77123         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
77124
77125 2001-02-05  Jim Meyering  <meyering@lucent.com>
77126
77127         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
77128         it includes the patch required for `large file' support with at least
77129         HP-UX's 10.20 /bin/cc.
77130
77131 2001-02-03  Jim Meyering  <meyering@lucent.com>
77132
77133         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
77134         AS_IF, now that it works once again (mysteriously).
77135         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77136
77137 2001-01-30  Jim Meyering  <meyering@lucent.com>
77138
77139         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
77140         * m4/chown.m4: Rename conftestchown to conftest.chown.
77141         * m4/rename.m4: s/conftestdir/conftest.d1/ and
77142         s/conftestdir2/conftest.d2/.
77143         * m4/utimes.m4: s/conftestdata/conftest.data/
77144         Inspired by Pavel Roskin's change in autoconf.
77145
77146 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
77147
77148         * lib/config.charset: Update for FreeBSD 4.2.
77149
77150 2001-01-27  Jim Meyering  <meyering@lucent.com>
77151
77152         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
77153         a use of AS_IF.
77154         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77155
77156 2001-01-26  Jim Meyering  <meyering@lucent.com>
77157
77158         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
77159         quotearg.c includes it.
77160
77161 2001-01-26  Jim Meyering  <meyering@lucent.com>
77162
77163         * lib/quotearg.c: Include stddef.h.
77164         * lib/quote.c: Include stddef.h.
77165         Reported by Axel Kittenberger.
77166
77167         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
77168         line in double quotes so that it evokes a better diagnostic.
77169         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
77170         Reported by Axel Kittenberger.
77171
77172 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
77173
77174         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
77175         as if it was a `charset'.
77176
77177 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77178
77179         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
77180         has const.
77181
77182 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77183
77184         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
77185         to avoid a warning.  Add back 'const' to inptr.
77186
77187 2001-01-20  Jim Meyering  <meyering@lucent.com>
77188
77189         Be sure that headers are checked before used in code compiled
77190         for the type checks.
77191         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
77192         In place of that, invoke jm_CHECK_ALL_TYPES.
77193         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
77194         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
77195         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
77196         The check for ssize_t was mistakenly run before the test for unistd.h.
77197
77198         The configure-time check for stdbool.h was missing.
77199         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
77200         (jm_PREREQ_HASH): New function.
77201
77202 2001-01-17  Jim Meyering  <meyering@lucent.com>
77203
77204         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
77205         for autoconf-2.49c.
77206         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
77207
77208 2001-01-16  Jim Meyering  <meyering@lucent.com>
77209
77210         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
77211         From Bruno Haible.
77212
77213 2001-01-14  Jim Meyering  <meyering@lucent.com>
77214
77215         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
77216         foo and bar.  Create conftestdir/ in the script, not in the C code.
77217         Remove directories in the script, not in the C code.
77218         Remove conftestdir{,2} before trying to create the directory.
77219         Make the entire configure script fail if the mkdir fails.
77220
77221 2001-01-14  Jim Meyering  <meyering@lucent.com>
77222
77223         * lib/rename.c: New file.  From Volker Borchert.
77224         Include stdlib.h, string.h or strings.h, and xalloc.h.
77225         Use strip_trailing_slashes rather than open-coding it.
77226
77227 2001-01-03  Paul Eggert  <eggert@twinsun.com>
77228
77229         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
77230
77231 2001-01-03  Jim Meyering  <meyering@lucent.com>
77232
77233         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
77234         of local `inptr' to avoid warning with some system declarations of
77235         iconv.
77236
77237 2001-01-02  Volker Borchert  <bt@teknon.de>
77238
77239         * m4/rename.m4: New file.
77240         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
77241
77242 2001-01-01  Jim Meyering  <meyering@lucent.com>
77243
77244         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
77245         even on systems with utmpx.h.  It's necessary for the declaration of
77246         utmp's ut_user member.  Reported by Andreas Jaeger.
77247
77248         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
77249         available. They are required for the declarations of getgrgid and
77250         getpwuid resp.
77251         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
77252         Reported by Andreas Jaeger.
77253
77254 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
77255
77256         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
77257         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
77258         so `make install' also works in VPATH builds.
77259
77260 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
77261
77262         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
77263         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
77264         can be used in subdirectories.
77265
77266 2000-12-29  Paul Eggert  <eggert@twinsun.com>
77267
77268         * lib/modechange.c: Do not assume that mode_t uses the
77269         traditional octal encoding.  E.g. "chmod 1 FOO" should set
77270         the other-execute bit of FOO even if S_IXOTH != 1.
77271
77272         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
77273         WOTH, XOTH, ALLM): New macros.
77274         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
77275          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
77276         Use them.
77277         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
77278         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
77279         (mode_compile):
77280         No need to use uintmax_t; unsigned long is long enough.
77281         Don't bother to get suffix since we don't use it.
77282
77283 2000-12-26  Jim Meyering  <meyering@lucent.com>
77284
77285         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
77286         better with autoheader.
77287
77288 2000-12-24  Jim Meyering  <meyering@lucent.com>
77289
77290         * lib/hash.c (is_prime): Return explicit boolean values.
77291         (hash_get_first): Return NULL to appease Irix5.6's 89.
77292         Reported by Nelson Beebe.
77293
77294 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
77295
77296         * lib/localcharset.c (locale_charset): Add support for Win32.
77297
77298 2000-12-18  Paul Eggert  <eggert@twinsun.com>
77299
77300         * lib/physmem.h, lib/physmem.c: New files.
77301
77302         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
77303         (noinst_HEADERS): Add physmem.h.
77304
77305         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
77306         't' for compatibility with Solaris 8 sort.
77307
77308 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
77309
77310         * lib/config.charset: Add support for BeOS.
77311
77312 2000-12-17  Jim Meyering  <meyering@lucent.com>
77313
77314         * m4/dos.m4 (jm_AC_DOS): New file and macro.
77315         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
77316
77317 2000-12-16  Jim Meyering  <meyering@lucent.com>
77318
77319         This bug had a serious impact on chown: `chown N:M FILE' (for integer
77320         N and M) would have treated it like `chown N:N FILE'.
77321
77322         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
77323
77324 2000-12-16  Jim Meyering  <meyering@lucent.com>
77325
77326         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
77327         SHELLS_FILE to a file name that's useful on djgpp systems.
77328         Include stdlib.h.
77329         (ADDITIONAL_DEFAULT_SHELLS): Define.
77330         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
77331         Based mostly on a patch from Prashant TR.
77332
77333 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
77334
77335         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
77336         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
77337         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
77338
77339 2000-12-08  Andreas Schwab  <schwab@suse.de>
77340
77341         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
77342         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
77343
77344 2000-12-07  Jim Meyering  <meyering@lucent.com>
77345
77346         * lib/stripslash.c (ISSLASH): Define.
77347         (strip_trailing_slashes): Use ISSLASH rather than comparing against
77348         `/'.
77349         From Prashant TR.
77350
77351         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
77352         (dir_name_r): Declare this function as static.
77353         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
77354         manifest itself on a name containing a mix of slashes and
77355         backslashes.
77356         Make this function work with names starting with a DOS-style
77357         drive letter and colon prefix.
77358         (dir_name): Append `.' if necessary.
77359         Based mostly on patches from Prashant TR and Eli Zaretskii.
77360
77361         * lib/dirname.h (dir_name_r): Remove prototype.
77362
77363 2000-12-06  Paul Eggert  <eggert@twinsun.com>
77364
77365         * m4/off_t-format.m4: Remove this file.
77366         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
77367
77368 2000-12-06  Jim Meyering  <meyering@lucent.com>
77369
77370         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
77371         replacement strtoull, we may well need the replacement strtoul, too.
77372         Check for declarations of strtoul and strtoull.
77373         Check for strtol.  Mainly as a cue to cause automake to include
77374         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
77375         Check for limits.h -- strtol.c needs it.
77376
77377 2000-12-05  Jim Meyering  <meyering@lucent.com>
77378
77379         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
77380
77381 2000-12-04  Jim Meyering  <meyering@lucent.com>
77382
77383         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
77384         Also include memory.h, stdlib.h, unistd.h if appropriate.
77385         Reported by Andreas Jaeger (conflicting declaration of malloc).
77386
77387 2000-12-02  Jim Meyering  <meyering@lucent.com>
77388
77389         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
77390         * m4/jm-macros.m4 (jm_MACROS): require it.
77391
77392 2000-12-02  Jim Meyering  <meyering@lucent.com>
77393
77394         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
77395
77396 2000-12-01  Paul Eggert  <eggert@twinsun.com>
77397
77398         * lib/memrchr.c: Include <config.h> before any system include file.
77399
77400 2000-11-30  Jim Meyering  <meyering@lucent.com>
77401
77402         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
77403
77404 2000-11-30  Jim Meyering  <meyering@lucent.com>
77405
77406         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
77407
77408 2000-11-29  Paul Eggert  <eggert@twinsun.com>
77409
77410         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
77411
77412 2000-11-26  Jim Meyering  <meyering@lucent.com>
77413
77414         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
77415
77416 2000-11-22  Paul Eggert  <eggert@twinsun.com>
77417
77418         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
77419         size of (size_t) -1; it's not portable.
77420
77421 2000-11-17  Jim Meyering  <meyering@lucent.com>
77422
77423         * lib/strstr.c: Update from GNU libc.
77424
77425 2000-11-17  Akim Demaille  <akim@epita.fr>
77426
77427         * lib/obstack.h: Formatting changes.
77428         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
77429         prevent type checking.
77430         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
77431         cast the value to (void *): assigning a `foo *' to a `void *'
77432         variable is valid.
77433         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
77434
77435 2000-11-16  Jim Meyering  <meyering@lucent.com>
77436
77437         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
77438
77439 2000-11-11  Jim Meyering  <meyering@lucent.com>
77440
77441         * lib/error.c: Add a couple #includes, merging from GNU libc version.
77442
77443 2000-11-10  Jim Meyering  <meyering@lucent.com>
77444
77445         * lib/obstack.h: Update from GNU libc.
77446         * lib/obstack.c: Likewise.
77447
77448 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
77449
77450         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
77451
77452 2000-11-06  Paul Eggert  <eggert@twinsun.com>
77453
77454         * lib/getusershell.c (setusershell): Use rewind rather than
77455         fseek/fseeko, to avoid configuration hassles with fseeko.
77456         Don't bother opening SHELLS_FILE if shellstream is NULL;
77457         it's not necessary.
77458
77459 2000-11-05  Jim Meyering  <meyering@lucent.com>
77460
77461         * lib/makepath.h (make_dir): Declare.
77462         * lib/makepath.c (make_dir): Remove `static' attribute.
77463         Tweak a comment.
77464
77465 2000-11-04  Jim Meyering  <meyering@lucent.com>
77466
77467         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
77468
77469 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
77470
77471         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
77472         last one in a bucket, advance to the next bucket.
77473
77474 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
77475
77476         * lib/fnmatch.c: Do not comment out all the code if we are using
77477         the GNU C library, because in some cases we are replacing buggy
77478         code in the GNU C library itself.
77479
77480 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
77481
77482         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
77483         (regex_compile): Catch bogus \(\1\).
77484
77485 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77486
77487         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
77488         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
77489         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
77490
77491 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77492
77493         * lib/error.h, getline.h, modechange.h:
77494         Remove "2000" from Copyright line, as the file hasn't been
77495         changed this year other than in the copyright notice.
77496
77497         * lib/xalloc.h: Add "2000" to Copyright line, as this file
77498         was changed this year.
77499
77500 2000-10-29  Jim Meyering  <meyering@lucent.com>
77501
77502         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
77503         renaming.
77504         * m4/ls-mntd-fs.m4: Likewise
77505
77506 2000-10-29  Jim Meyering  <meyering@lucent.com>
77507
77508         * lib/xstat.in: Fix grammar in comment.
77509
77510 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
77511
77512         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
77513         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
77514         doesn't define __restrict_arr.
77515
77516 2000-10-28  Jim Meyering  <meyering@lucent.com>
77517
77518         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
77519         (jm_PREREQ_MEMCHR): New function.
77520
77521 2000-10-28  Jim Meyering  <meyering@lucent.com>
77522
77523         * lib/memchr.c: Update from libc.
77524         Adjust for portability:
77525         [HAVE_STDLIB_H]: Include stdlib.h.
77526         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
77527         Undef __memchr, too.
77528         [!weak_alias]: Define __memchr to memchr.
77529
77530         * lib/regex.c: Update from libc.
77531         * lib/regex.h: Likewise.
77532         * lib/getopt1.c: Likewise.
77533         * lib/memcmp.c: Likewise.
77534
77535         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
77536         Avoid using fseek, when possible -- it's broken by design.
77537         Patch by Ulrich Drepper.
77538
77539 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
77540
77541         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
77542         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
77543         Giving in to popular pressure to shut up the compiler with casts.
77544
77545 2000-10-26  Jim Meyering  <meyering@lucent.com>
77546
77547         * lib/strftime.c: Update from libc.
77548
77549 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
77550
77551         * regex.c: More `unsigned char' -> `re_char' changes.
77552         Also change several `int' into `re_wchar_t'.
77553         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
77554         (PUSH_FAILURE_POINTER): Don't cast any more.
77555         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
77556         We want GCC to complain, since this piece of code makes
77557         re_match non-reentrant, which *should* be fixed.
77558         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
77559         (EXTEND_BUFFER): Use RETALLOC.
77560         (SET_LIST_BIT): Don't cast.
77561         (re_wchar_t): New type.
77562         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
77563         that those two functions will always properly return.
77564         (IMMEDIATE_QUIT_CHECK): Cast to void.
77565         (analyse_first): Use recursion rather than an explicit stack.
77566         (re_compile_fastmap): Can't fail anymore.
77567         (re_search_2): Don't check re_compile_fastmap for failure.
77568         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
77569         Now also sets the new value (passed in a new argument).
77570         (re_match_2_internal): Use it.
77571         Also, use a new var `reg' of type size_t when looping through regs
77572         rather than reuse the inappropriate `mcnt'.
77573
77574 2000-10-25  Jim Meyering  <meyering@lucent.com>
77575
77576         * lib/obstack.c: Update from libc.
77577
77578 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
77579
77580         * regex.c (regex_compile): Change the way of handling a range from
77581         a char less than 256 to a char not less than 256.
77582
77583 2000-10-24  Andrew Innes  <andrewi@gnu.org>
77584
77585         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
77586         NT-Emacs only.
77587         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
77588         so that re_search functions only quit when callers expect them to.
77589
77590 2000-10-23  Jim Meyering  <meyering@lucent.com>
77591
77592         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
77593         wrong.  That set_locale call must not have any side effects.
77594         From Paul Eggert.
77595
77596 2000-10-22  Jim Meyering  <meyering@lucent.com>
77597
77598         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
77599         [CYCLIC]: Remove now-unused definition.
77600
77601         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
77602         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
77603         Suggestion from Ulrich Drepper.
77604
77605 2000-10-21  Jim Meyering  <meyering@lucent.com>
77606
77607         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
77608         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
77609         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
77610
77611 2000-10-21  Jim Meyering  <meyering@lucent.com>
77612
77613         * lib/dirname.c (memrchr): Declare if necessary.
77614         (dir_name): Remove the restriction that there be no
77615         trailing slashes.  Now, this code skips past them, effectively
77616         ignoring them.
77617         [TEST_DIRNAME] (main): New unit tests.
77618
77619         * lib/memrchr.c: New file from GNU libc.
77620         Undef __memrchr, too.
77621         [!weak_alias]: Define __memrchr to memrchr.
77622         Guard weak_alias use with `#ifdef weak_alias'.
77623
77624 2000-10-21  Jim Meyering  <meyering@lucent.com>
77625
77626         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
77627         (dir_name): Use dir_name_r.
77628         * lib/dirname.h (dir_name_r): Declare it.
77629
77630 2000-10-17  Jim Meyering  <meyering@lucent.com>
77631
77632         * lib/quote.h (PARAMS): Define and use.
77633         Reported by Akim Demaille.
77634
77635         * lib/getopt.c: Update from libc.
77636
77637 2000-10-16  Jim Meyering  <meyering@lucent.com>
77638
77639         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
77640         setlocale.
77641         From Jan Fedak.
77642
77643 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
77644
77645         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
77646
77647 2000-09-25  Jim Meyering  <meyering@lucent.com>
77648
77649         * lib/md5.h (rol): Define (from GnuPG).
77650
77651         * lib/sha.c: Give credit (GnuPG) where due.
77652         (M): Use rol rather than open-coding it.
77653         Add a FIXME comment.
77654
77655 2000-09-21  Jim Meyering  <meyering@lucent.com>
77656
77657         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
77658         Reported by Michael Stone.
77659
77660 2000-09-20  Jim Meyering  <meyering@lucent.com>
77661
77662         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
77663         (noinst_HEADERS): Add sha.h.
77664         Based on code from Scott G. Miller and from GnuPG.
77665
77666 2000-09-18  Jim Meyering  <meyering@lucent.com>
77667
77668         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
77669         LIBS. Otherwise, everyone ends up linking with -lelf for some
77670         configurations.
77671         Reported by Mike Stone.
77672
77673 2000-09-15  Jim Meyering  <meyering@lucent.com>
77674
77675         * lib/regex.c: Update from libc.
77676
77677 2000-09-10  Jim Meyering  <meyering@lucent.com>
77678
77679         * lib/getopt.c (_getopt_internal): Update from glibc.
77680
77681 2000-09-09  Jim Meyering  <meyering@lucent.com>
77682
77683         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
77684         think it should be used as a general replacement for isascii.
77685         * lib/fnmatch.c: Likewise.
77686         * lib/mbswidth.c: Likewise
77687         * lib/regex.c: Likewise.
77688
77689         Don't use atoi.
77690         * lib/userspec.c: Include sys/param.h and limits.h.
77691         Include xstrtol.h.
77692         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77693         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
77694         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
77695         UID, GID.  Check range.
77696
77697 2000-09-06  Jim Meyering  <meyering@lucent.com>
77698
77699         * lib/getopt.c (_getopt_internal): Update from glibc.
77700
77701 2000-08-30  Jim Meyering  <meyering@lucent.com>
77702
77703         * lib/strftime.c: Merge in changes from GNU libc.
77704
77705 2000-08-26  Jim Meyering  <meyering@lucent.com>
77706
77707         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
77708         * m4/fpending.m4: New file.
77709
77710 2000-08-26  Jim Meyering  <meyering@lucent.com>
77711
77712         * lib/closeout.c: Include "__fpending.h".
77713         (close_stdout_status): Return right away if there's nothing to flush.
77714
77715         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
77716         * lib/__fpending.c: New file.
77717         * lib/__fpending.h: New file.
77718
77719 2000-08-20  Jim Meyering  <meyering@lucent.com>
77720
77721         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
77722         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
77723         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
77724
77725 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
77726
77727         Improve fileutils installation on systems where running
77728         programs (like install) can't be unlinked.
77729         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
77730         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
77731
77732 2000-08-07  Paul Eggert  <eggert@twinsun.com>
77733
77734         Standardize on "memory exhausted" instead of "Memory exhausted"
77735         or "virtual memory exhausted".
77736         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
77737         "virtual memory exhausted".
77738         * lib/same.c (same_name): Invoke xalloc_die instead of printing
77739         our own message.
77740         * lib/userspec.c (parse_user_spec): Likewise.
77741         * lib/bumpalloc.h: comment fix
77742         * lib/same.c, userspec.c: Include xalloc.h.
77743
77744         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
77745         not char *const and pointing to a constant array.
77746         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
77747         (xrealloc): Comment fix.
77748
77749         * lib/userspec.c (parse_user_spec):
77750         Don't translate a message until just before returning,
77751         to avoid unnecessary translation.
77752
77753 2000-08-07  Jim Meyering  <meyering@lucent.com>
77754
77755         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
77756         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
77757         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
77758         getgroups.c, gethostname.c, getopt.h, group-member.c,
77759         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
77760         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
77761         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
77762         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
77763         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
77764         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
77765         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
77766         yesno.c: Back out Copyright date changes for each file with no change
77767         this year.  This eases coordination with other programs using the same
77768         source code modules.  From Paul Eggert.
77769
77770 2000-08-06  Paul Eggert  <eggert@twinsun.com>
77771
77772         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
77773         not char, for compatibility with glibc 2.1.3 strftime.c.
77774
77775 2000-08-03  Greg McGary  <greg@mcgary.org>
77776
77777         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
77778         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
77779         (EXTEND_BUFFER): Use them.
77780
77781 2000-08-01  Jim Meyering  <meyering@lucent.com>
77782
77783         * lib/dirname.c (ISSLASH): Define.
77784         (BACKSLASH_IS_PATH_SEPARATOR): Define.
77785         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
77786         both `\' and `/' may be use as path separators.
77787         Based on a patch from Prashant TR.
77788
77789 2000-07-31  Paul Eggert  <eggert@twinsun.com>
77790
77791         * lib/quotearg.c (quotearg_n_options): Don't make the initial
77792         slot vector a constant, since it might get modified.
77793
77794 2000-07-31  Jim Meyering  <meyering@lucent.com>
77795
77796         * lib/xmalloc.c: Use `virtual memory exhausted', not
77797         `Memory exhausted'.
77798         * lib/obstack.c (print_and_abort): Likewise.
77799
77800 2000-07-30  Paul Eggert  <eggert@twinsun.com>
77801
77802         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
77803         buffer, so that the caller can always quote one small
77804         component of a "memory exhausted" message in slot 0.
77805         From a suggestion by Jim Meyering.
77806
77807 2000-07-30  Jim Meyering  <meyering@lucent.com>
77808
77809         * lib/makepath.c (make_path): Quote the other instance, too.
77810
77811         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
77812         (STATIC_BUF_SIZE): Define.
77813         (quotearg_n_options): Use only statically allocated storage when
77814         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
77815         than STATIC_BUF_SIZE.
77816
77817 2000-07-29  Jim Meyering  <meyering@lucent.com>
77818
77819         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
77820         * lib/dirname.c (dir_name): Likewise.
77821
77822         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
77823         `/'.
77824
77825         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
77826         (dir_name): Assert that there are no trailing slashes.
77827
77828 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
77829
77830         * lib/mbswidth.h (mbswidth): Add a flags argument.
77831         (mbswidth): New declaration.
77832         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
77833         * lib/mbswidth.c (mbswidth): Add a flags argument.
77834         (mbsnwidth): New function.
77835
77836 2000-07-24  Jim Meyering  <meyering@lucent.com>
77837
77838         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
77839
77840 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77841
77842         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
77843
77844 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77845
77846         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
77847         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
77848         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
77849         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
77850         invoke multibyte primitives.
77851
77852 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77853
77854         * lib/quotearg.c:
77855         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
77856         so that mbstate_t is always defined.
77857
77858         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
77859         be 1 in at least one GCC installation, and this configuration
77860         error is likely to be common.  Ignoring MB_LEN_MAX hurts
77861         performance on hosts that have mbrtowc but have only unibyte
77862         locales, but I assume these hosts are rare.
77863
77864 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77865
77866         * lib/mbswidth.c (_XOPEN_SOURCE):
77867         Don't define; this causes problems on Solaris 7.
77868         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
77869
77870 2000-07-23  Jim Meyering  <meyering@lucent.com>
77871
77872         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
77873         too: getgrgid, getpwuid, getuid.
77874
77875 2000-07-23  Jim Meyering  <meyering@lucent.com>
77876
77877         * lib/basename.c (base_name): Add an assertion.
77878
77879 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
77880
77881         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
77882         shadow its mbsinit function.
77883
77884 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77885
77886         * lib/mbswidth.h: New file.
77887         * lib/mbswidth.c: New file.
77888         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
77889         (noinst_HEADERS): Add mbswidth.h.
77890
77891 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77892
77893         * lib/config.charset: Add support for FreeBSD. Improve support for
77894         HP-UX and IRIX 6.
77895
77896 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
77897
77898         * m4/mbswidth.m4: New file.
77899         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
77900
77901 2000-07-15  Jim Meyering  <meyering@lucent.com>
77902
77903         * lib/makepath.c: Include quote.h.
77904         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
77905         corresponding argument in a `quote (...)' call.
77906         Give better diagnostics.
77907
77908         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
77909         (noinst_HEADERS): Add quote.h.
77910
77911         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
77912         from tar's src/misc.c.
77913         * lib/quote.h: New file.  Prototypes for same.
77914
77915 2000-07-14  Paul Eggert  <eggert@twinsun.com>
77916
77917         From a suggestion by Bruno Haible.
77918         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
77919         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
77920         to decide whether to define the BeOS workaround macro;
77921         this adjusts to the change to AC_MBSTATE_T.
77922
77923 2000-07-14  Jim Meyering  <meyering@lucent.com>
77924
77925         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
77926         jm_AC_TYPE_UINTMAX_T.
77927
77928 2000-07-13  Paul Eggert  <eggert@twinsun.com>
77929
77930         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
77931
77932         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
77933         quotearg_buffer_restyled): Add support for
77934         clocale_quoting_style.  Undo previous change to
77935         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
77936         and "{RIGHT QUOTATION MARK}" msgids.
77937
77938 2000-07-10  Paul Eggert  <eggert@twinsun.com>
77939
77940         From a suggestion by Bruno Haible.
77941         * m4/mbstate_t.m4 (AC_MBSTATE_T):
77942         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
77943         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
77944         and mbstate_t, to a single-part test that simply defines mbstate_t.
77945         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
77946         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
77947
77948 2000-07-10  Jim Meyering  <meyering@lucent.com>
77949
77950         * m4/strerror_r.m4: Mirror the correction made in autoconf.
77951
77952         * m4/gnu-source.m4: Output to confdefs.h directly.
77953         Suggestion from Akim Demaille.
77954
77955 2000-07-09  Paul Eggert  <eggert@twinsun.com>
77956
77957         The old behavior of quoting `like this' doesn't look good with
77958         newer, ISO-style fonts.  See:
77959         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
77960
77961         Instead, quote "like this" by default.  Let the translator
77962         tailor the locale-specific quoting behavior by providing
77963         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
77964
77965         * lib/quotearg.c (N_): New macro.
77966         (gettext_default): New function.
77967         (quotearg_buffer_restyled): Use
77968         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
77969         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
77970
77971 2000-07-09  Jim Meyering  <meyering@lucent.com>
77972
77973         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
77974         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
77975
77976         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
77977         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
77978
77979 2000-07-09  Jim Meyering  <meyering@lucent.com>
77980
77981         * lib/Most files: Update copyright dates to include 2000.
77982
77983 2000-07-08  Jim Meyering  <meyering@lucent.com>
77984
77985         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
77986         if not defined.
77987         (xgethostname): Remove now-unnecessary #ifdef.
77988         Move declaration of `err' into loop where it's used.
77989
77990 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77991         and Bruno Haible  <haible@clisp.cons.org>
77992
77993         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
77994         only if the test for an object-type mbstate_t fails.  This
77995         prevents us from mistakenly reporting that mbstate_t is a
77996         system object type after we "#define mbstate_t int" to work
77997         around its lack.
77998
77999 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78000         and Bruno Haible  <haible@clisp.cons.org>
78001
78002         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
78003
78004 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78005
78006         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
78007         to strerror_r.
78008         Include <ctype.h> for use of isalpha.
78009
78010 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78011
78012         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
78013         by allocating a larger buffer. Test the gethostname return value for
78014         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
78015         returns an error and ENAMETOOLONG isn't defined.
78016
78017 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78018
78019         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
78020         dimension.
78021
78022 2000-07-04  Jim Meyering  <meyering@lucent.com>
78023
78024         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
78025         of the deprecated AC_CHECKING.
78026
78027 2000-07-04  Jim Meyering  <meyering@lucent.com>
78028
78029         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
78030         Reported by Bruno Haible.
78031
78032 2000-07-04  Jim Meyering  <meyering@lucent.com>
78033
78034         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
78035         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
78036         lacks mbrtowc.
78037
78038 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78039
78040         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
78041         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
78042
78043 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78044         and Bruno Haible  <haible@clisp.cons.org>
78045
78046         * lib/quotearg.c (mbrtowc):
78047         Assign to *pwc, and return 1 only if result is nonzero.
78048         (iswprint): Use ISPRINT when substituting our own mbrtowc.
78049
78050 2000-07-03  Jim Meyering  <meyering@lucent.com>
78051
78052         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
78053
78054 2000-07-03  Jim Meyering  <meyering@lucent.com>
78055
78056         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
78057         This is necessary to get a definition of e.g., UTMP_FILE on
78058         HP-UX 10.20.
78059         From Bob Proulx.
78060
78061 2000-07-02  Jim Meyering  <meyering@lucent.com>
78062
78063         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
78064
78065         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
78066         AC_LIBOBJ(function_name).
78067         * m4/chown.m4: Likewise.
78068         * m4/fnmatch.m4: Likewise.
78069         * m4/ftruncate.m4: Likewise.
78070         * m4/getgroups.m4: Likewise.
78071         * m4/getline.m4: Likewise.
78072         * m4/group-member.m4: Likewise.
78073         * m4/jm-macros.m4: Likewise.
78074         * m4/lstat.m4: Likewise.
78075         * m4/malloc.m4: Likewise.
78076         * m4/memcmp.m4: Likewise.
78077         * m4/nanosleep.m4: Likewise.
78078         * m4/putenv.m4: Likewise.
78079         * m4/realloc.m4: Likewise.
78080         * m4/regex.m4: Likewise.
78081         * m4/stat.m4: Likewise.
78082         * m4/strftime.m4: Likewise.
78083
78084 2000-07-02  Jim Meyering  <meyering@lucent.com>
78085
78086         * lib/quotearg.c (mbstate_t): Don't define here.
78087
78088 2000-07-02  Jim Meyering  <meyering@lucent.com>
78089
78090         * lib/nanosleep.c (SIGCONT): Define if not already defined.
78091
78092 2000-07-01  Jim Meyering  <meyering@lucent.com>
78093
78094         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
78095
78096 2000-07-01  Jim Meyering  <meyering@lucent.com>
78097
78098         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
78099         problem.
78100
78101 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78102
78103         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
78104         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
78105
78106 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78107
78108         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
78109         per change in ../m4/ls-mntd-fs.m4.
78110         (read_filesystem_list): Ignore symbolic links.
78111
78112 2000-06-29  Jim Meyering  <meyering@lucent.com>
78113
78114         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
78115         for declaration of strcmp.
78116
78117         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
78118
78119         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
78120         Avoid warning by casting result to `char *' to remove `const'.
78121
78122 2000-06-28  Jim Meyering  <meyering@lucent.com>
78123
78124         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
78125         included by quotearg.c, for which we perform this test.  From
78126         Bruno Haible.
78127
78128 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78129
78130         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
78131         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
78132         <utmpx.h> exists, put readutmp.o into LIBOBJS.
78133
78134 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78135
78136         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
78137
78138 2000-06-26  Paul Eggert  <eggert@twinsun.com>
78139
78140         savedir now sets errno on failure and invokes xmalloc to get memory.
78141         Fix a couple of other minor bugs while we're at it.
78142
78143         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
78144         (NAMLEN): Remove macro.
78145         (malloc, realloc): Remove decls.
78146         (stpcpy): Likewise.
78147         ("xalloc.h"): Include.
78148         (NAME_SIZE_DEFAULT): New macro.
78149         (savedir): Use xmalloc / xrealloc to allocate memory.
78150         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
78151         Skip "" directory entries.
78152         Use strlen to calculate directory entry length, since the old method
78153         is rarely used these days and isn't worth supporting.
78154         Don't use a pointer after freeing it.
78155         Check for integer overflow when calculating allocation size.
78156         Use memcpy to copy entries, instead of stpcpy.
78157         Set errno properly when returning NULL.
78158         Check for readdir error.
78159
78160 2000-06-26  Jim Meyering  <meyering@lucent.com>
78161
78162         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
78163
78164 2000-06-25  Jim Meyering  <meyering@lucent.com>
78165
78166         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
78167         Linux header bug when _XOPEN_SOURCE is defined to 500.
78168
78169 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78170
78171         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
78172         deficiency.
78173
78174 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78175
78176         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
78177         Include xalloc.h.
78178         Don't include <stdlib.h>.  Don't declare malloc, realloc.
78179
78180 2000-06-24  Jim Meyering  <meyering@lucent.com>
78181
78182         * m4/strerror_r.m4: Revive this file -- to try out an experimental
78183         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
78184         for which strerror does return char*, but which lacks a conveniently
78185         accessible declaration of the function.  If the compile-test says
78186         strerror_r doesn't work, then resort to a `run'-test that works on
78187         BeOS and segfaults on DEC Unix.
78188
78189 2000-06-24  Jim Meyering  <meyering@lucent.com>
78190
78191         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
78192
78193 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78194
78195         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
78196         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
78197
78198 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78199
78200         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
78201         (mbrtowc, mbstate_t): Define substitutes if
78202         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
78203         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
78204         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
78205
78206 2000-06-23  Jim Meyering  <meyering@lucent.com>
78207
78208         * m4/afs.m4: Add missing AC_MSG_RESULT.
78209         Reported by Bruno Haible.
78210
78211         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
78212         Suggestion from Bruno Haible.
78213
78214 2000-06-23  Jim Meyering  <meyering@lucent.com>
78215
78216         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
78217
78218 2000-06-21  Jim Meyering  <meyering@lucent.com>
78219
78220         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
78221
78222 2000-06-21  Jim Meyering  <meyering@lucent.com>
78223
78224         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
78225         (noinst_HEADERS): Add getstr.h.
78226
78227         * lib/getline.c (getstr): Move into a separate file.
78228         * lib/getstr.c (getstr): New file, extracted from getline.c, with
78229         the following changes: new parameter, delim2; both delim[12]
78230         parameters have type `int', not `char'.  The latter would lose
78231         with 8-bit delimiters.
78232         * lib/getstr.h: New file.
78233
78234 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78235
78236         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
78237         than 1024, return a memory chunk of least possible size, instead
78238         of size PATH_MAX + 2. In the loop, increment the size proportionally.
78239         Use free/xmalloc instead of xrealloc to avoid copying for very long
78240         paths.
78241
78242 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78243
78244         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
78245         the empty string.
78246
78247 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78248
78249         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
78250         address, not strdup.  Include <stdlib.h> and don't declare free().
78251
78252 2000-06-19  Jim Meyering  <meyering@lucent.com>
78253
78254         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
78255
78256 2000-06-18  Jim Meyering  <meyering@lucent.com>
78257
78258         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
78259
78260         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
78261         `checking whether...' message to be consistent with that of the
78262         lstat test.
78263
78264 2000-06-18  Jim Meyering  <meyering@lucent.com>
78265
78266         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
78267         Besides, these days every porting target provides a mkdir function.
78268
78269         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
78270         needed. (this snippet comes from src/system.h).
78271
78272 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
78273
78274         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
78275
78276 2000-06-15  Paul Eggert  <eggert@twinsun.com>
78277
78278         * lib/human.c (adjust_value): New function.
78279         (human_readable_inexact): Apply rounding style even when
78280         printing approximate values.
78281
78282 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78283
78284         * lib/human.c (human_readable_inexact): Allow an input block
78285         size that is not a multiple of the output block size, and vice versa.
78286         Reported by Piergiorgio Sartor.
78287
78288 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78289
78290         * lib/getdate.y (get_date): Apply relative times after time
78291         zone indicator, not before.  Reported by Todd A. Jacobs.
78292
78293 2000-06-13  Jim Meyering  <meyering@lucent.com>
78294
78295         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
78296
78297         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
78298
78299 2000-06-12  Paul Eggert  <eggert@twinsun.com>
78300
78301         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
78302
78303 2000-06-12  Jim Meyering  <meyering@lucent.com>
78304
78305         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
78306         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
78307         optional argument.
78308         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
78309         the optional argument, `lib'.
78310
78311 2000-06-08  Jim Meyering  <meyering@lucent.com>
78312
78313         * m4/largefile.m4: Remove file (now that it's part of autoconf).
78314
78315 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78316
78317         Rewrite largefile configuration so that we don't need to run
78318         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
78319         AC_CANONICAL_HOST in configure.in -- jmm]
78320
78321         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
78322         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
78323         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
78324         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
78325         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
78326         All uses changed.
78327         Instead of inspecting the output of getconf, try to compile the
78328         test program without and with the macro definition.
78329         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
78330         for getconf.  Instead, check for the needed flags by compiling
78331         test programs.
78332
78333 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78334
78335         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
78336
78337 2000-06-04  Jim Meyering  <meyering@lucent.com>
78338
78339         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
78340         SunOS 4.1.4 for which gid_t is an unsigned type.
78341
78342 2000-06-03  Jim Meyering  <meyering@lucent.com>
78343
78344         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
78345         now that autoconf requires that.
78346
78347         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
78348         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
78349         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
78350
78351 2000-06-03  Jim Meyering  <meyering@lucent.com>
78352
78353         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
78354
78355 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78356
78357         * m4/glibc21.m4: New file.
78358         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
78359
78360 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78361
78362         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
78363         newer, don't install charset.alias.
78364         * lib/config.charset: Change the Linux/glibc rules so they become empty
78365         on glibc-2.1 or newer.
78366
78367 2000-06-02  Jim Meyering  <meyering@lucent.com>
78368
78369         * lib/mountlist.c: Back out last change.  Instead, do this...
78370         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
78371         me_dummy member using the same `ignore'-testing code.
78372         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
78373         fs_type strings.
78374         From Mark D. Roth.
78375
78376 2000-05-29  Jim Meyering  <meyering@lucent.com>
78377
78378         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
78379         mounts with the `ignore' attribute.  Based on a patch from
78380         Mark D. Roth.
78381
78382 2000-05-28  Jim Meyering  <meyering@lucent.com>
78383
78384         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
78385         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78386         * m4/stat.m4: Likewise.
78387         * m4/lstat.m4: Likewise.
78388         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
78389
78390         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
78391         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
78392
78393 2000-05-26  Jim Meyering  <meyering@lucent.com>
78394
78395         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
78396
78397 2000-05-24  Jim Meyering  <meyering@lucent.com>
78398
78399         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
78400         autoconf requires that.
78401         * m4/lib-check.m4: Likewise.
78402         * m4/jm-macros.m4: Likewise.
78403         * m4/strftime.m4: Likewise.
78404
78405         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
78406         AC_CHECK_DECLS, now that autoconf requires that.
78407
78408 2000-05-22  Jim Meyering  <meyering@lucent.com>
78409
78410         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78411         * m4/lstat.m4: Likewise.
78412
78413 2000-05-22  Jim Meyering  <meyering@lucent.com>
78414
78415         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
78416
78417 2000-05-20  Jim Meyering  <meyering@lucent.com>
78418
78419         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
78420         (jm_PREREQ): Use it.
78421
78422 2000-05-18  Jim Meyering  <meyering@lucent.com>
78423
78424         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
78425         back, too, since it may have been modified by allocate_entry.
78426         (hash_delete): Rewrite to use neither the assignment operator
78427         nor the comma operator in an if-expression.
78428
78429 2000-05-15  Paul Eggert  <eggert@twinsun.com>
78430
78431         * lib/closeout.c:
78432         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
78433         Remove; no longer needed.
78434         "quotearg.h": Add include.
78435         (file_name): Do not bother to explicitly initialize to NULL; it's less
78436         efficient on some hosts.
78437         (close_stdout_status): Remove test as to whether stdout was already
78438         closed; it breaks for the case "echo x | sort >&-".
78439         Quote file name colons.
78440         Do not assume that _("write error") lacks format strings.
78441
78442 2000-05-15  Jim Meyering  <meyering@lucent.com>
78443
78444         * lib/version-etc.c (version_etc_copyright): Update the copyright
78445         string used in all --version output.
78446
78447 2000-05-14  Jim Meyering  <meyering@lucent.com>
78448
78449         * lib/closeout.c (close_stdout_set_file_name): New function.
78450         (close_stdout_status): Use new file-scoped global.
78451         Return right away if fstat says the stdout file descriptor is invalid.
78452         * lib/closeout.h (close_stdout_set_file_name): Declare.
78453
78454 2000-05-10  Jim Meyering  <meyering@lucent.com>
78455
78456         * lib/closeout.c [default_exit_status]: New file-scoped variable.
78457         (close_stdout_set_status): New function.
78458         * lib/closeout.h (close_stdout_set_status): Declare.
78459
78460 2000-05-09  Jim Meyering  <meyering@lucent.com>
78461
78462         * m4/gettext.m4: Rename this...
78463         * m4/libintl.m4: ...to this.
78464
78465 2000-05-08  Jim Meyering  <meyering@lucent.com>
78466
78467         * lib/long-options.c: Don't include closeout.h.
78468         (parse_long_options): Don't call close_stdout for --version.
78469
78470 2000-05-06  Paul Eggert  <eggert@twinsun.com>
78471
78472         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
78473         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
78474         2.1.3 bug.  This avoids a clash when files like regex.c define
78475         _GNU_SOURCE.
78476
78477 2000-05-06  Jim Meyering  <meyering@lucent.com>
78478
78479         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
78480         (AC_REPLACE_FUNCS): Add strnlen.
78481
78482         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
78483         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
78484
78485         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
78486         AC_SEARCH_LIBS call for nanosleep.
78487         (LIB_NANOSLEEP): Set and AC_SUBST.
78488
78489 2000-05-06  Jim Meyering  <meyering@lucent.com>
78490
78491         * lib/strnlen.c: Undefine __strnlen and strnlen.
78492         [!weak_alias]: Define __strnlen to strnlen.
78493
78494         * lib/atexit.c: New file, from libiberty.
78495
78496 2000-05-06  Jim Meyering  <meyering@lucent.com>
78497
78498         * lib/closeout.c (close_stdout_status): Also check for errors on the
78499         stderr stream.
78500
78501 2000-05-05  Jim Meyering  <meyering@lucent.com>
78502
78503         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
78504         AC_SEARCH_LIBS call for clock_gettime.
78505         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
78506
78507         * m4/search-libs.m4: Update from autoconf.
78508
78509         su doesn't work on Solaris 2.6.
78510         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
78511         <shadow.h>.  Reported by Dragos Harabor.
78512
78513 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
78514
78515         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
78516         memcpy instead of xmalloc, xrealloc, path_concat.
78517         (locale_charset): Treat empty environment variables as absent.
78518         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
78519
78520 2000-05-04  Jim Meyering  <meyering@lucent.com>
78521
78522         * lib/getopt.c: Update from glibc.
78523         * lib/obstack.c: Likewise.
78524         * lib/obstack.h: Likewise.
78525         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
78526         file
78527
78528         * lib/regex.h: Likewise.
78529         * lib/strndup.c: Likewise.
78530         * lib/strnlen.c: New file, from glibc.
78531
78532 2000-05-03  Jim Meyering  <meyering@lucent.com>
78533
78534         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
78535
78536 2000-05-02  Paul Eggert  <eggert@twinsun.com>
78537
78538         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
78539         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
78540         compile-time test, rather than inspecting host and OS, to
78541         decide whether to define _LARGEFILE_SOURCE.
78542
78543 2000-05-01  Jim Meyering  <meyering@lucent.com>
78544
78545         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
78546
78547         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
78548         Based on a patch from Bruno Haible.
78549
78550 2000-05-01  Jim Meyering  <meyering@lucent.com>
78551
78552         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
78553
78554 2000-04-29  Jim Meyering  <meyering@lucent.com>
78555
78556         * lib/path-concat.c: Declare strdup only if it's not defined.
78557         * lib/canon-host.c: Likewise.
78558
78559 2000-04-28  Jim Meyering  <meyering@lucent.com>
78560
78561         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
78562         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
78563         is included first, then limits.h is included by locale.h by libintl.h.
78564         From John David Anglin.
78565
78566 2000-04-25  Jim Meyering  <meyering@lucent.com>
78567
78568         * lib/makepath.c (S_IRWXUGO): Define.
78569         (make_path): Always perform explicit chmod if MODE specifies any
78570         of the `special' permission bits.  Prompted by a bug report against
78571         install from Mate Wierdl and Joost van Baal.
78572
78573 2000-04-18  Jim Meyering  <meyering@lucent.com>
78574
78575         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
78576         (jm_PREREQ): Use it.
78577
78578 2000-04-18  Jim Meyering  <meyering@lucent.com>
78579
78580         * lib/README: New file.
78581
78582         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
78583         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
78584
78585 2000-04-17  Jim Meyering  <meyering@lucent.com>
78586
78587         Get it right :-)
78588         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
78589         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
78590         Suggestion from Akim Demaille.
78591
78592 2000-04-17  Jim Meyering  <meyering@lucent.com>
78593
78594         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
78595         the definition of it to rpl_strftime also defined-away the system's
78596         declaration.
78597
78598 2000-04-15  Jim Meyering  <meyering@lucent.com>
78599
78600         Use `C' to denote so-called `contiguous' files, the same way
78601         that tar does.
78602         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
78603         (ftypelet): Use S_ISCTG.
78604         From Michael Deutschmann.
78605
78606 2000-04-14  Jim Meyering  <meyering@lucent.com>
78607
78608         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
78609         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
78610         clobbered.
78611
78612 2000-04-14  Jim Meyering  <meyering@lucent.com>
78613
78614         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
78615
78616 2000-04-13  Jim Meyering  <meyering@lucent.com>
78617
78618         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
78619         AH_VERBATIM to insert required #ifndef into config.h.in.
78620         Suggestion from Akim Demaille.
78621
78622 2000-04-12  Jim Meyering  <meyering@lucent.com>
78623
78624         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
78625         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
78626         Christian Krackowizer.
78627
78628         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
78629         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
78630         (AC_SYS_LARGEFILE): Require.
78631         (AM_C_PROTOTYPES): Require.
78632
78633 2000-04-08  Jim Meyering  <meyering@lucent.com>
78634
78635         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
78636         names don't conflict.  Reported by Eli Zaretskii.
78637
78638 2000-04-07  Jim Meyering  <meyering@lucent.com>
78639
78640         * lib/putenv.c: Move inclusion of errno.h so it follows that of
78641         sys/types.h, to work around system header problems on AIX 3.2.5.
78642         From Bruno Haible.
78643
78644 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
78645
78646         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
78647         bug.  Deal with the different error behavior of Irix iconv.
78648
78649 2000-04-05  Paul Eggert  <eggert@twinsun.com>
78650
78651         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
78652         IRIX if the installer said otherwise.
78653
78654 2000-04-05  Jim Meyering  <meyering@lucent.com>
78655
78656         Portability tweaks required for ultrix4.3.
78657         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
78658         (jm_CHECK_DECLS): Add getutent to the list of functions.
78659         (_jm_DECL_HEADERS): Add utmpx.h.
78660         From John David Anglin.
78661
78662         * m4/strftime.m4: Back out the 2000-04-02 change.
78663         Instead of that change, simply undefine putenv in the test program.
78664
78665 2000-04-05  Jim Meyering  <meyering@lucent.com>
78666
78667         Portability tweaks required for ultrix4.3.
78668         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
78669         getutent.
78670         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
78671         * lib/canon-host.c: Declare strdup.
78672         * lib/path-concat.c: Likewise.
78673         From John David Anglin.
78674
78675 2000-04-04  Jim Meyering  <meyering@lucent.com>
78676
78677         Be more DOS 8.3-friendly.
78678         * lib/ref-add.sin: Renamed from ref-add.sed.in.
78679         * lib/ref-del.sin: Renamed from ref-del.sed.in.
78680         * lib/Makefile.am: Reflect renaming.
78681         Reported by Eli Zaretskii.
78682
78683         Use a temporary file name that won't clash with `charset.alias'
78684         in the DOS 8.3 name space.
78685         * lib/Makefile.am (charset_tmp): Define.
78686         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
78687         (uninstall-local): Likewise.
78688         Reported by Eli Zaretskii.
78689
78690 2000-04-03  Jim Meyering  <meyering@lucent.com>
78691
78692         * m4/gettext.m4: Fix typo in comment.
78693
78694         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
78695         textutils/configure.in).  Suggestion from Paul Eggert.
78696         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
78697
78698 2000-04-02  Paul Eggert  <eggert@twinsun.com>
78699
78700         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
78701         variable in the shell rather than using putenv, which isn't
78702         portable.  This avoids the configure-time inter-test dependency
78703         on the potentially-renamed putenv function.
78704
78705 2000-03-30  Paul Eggert  <eggert@twinsun.com>
78706
78707         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
78708         before checking struct stat.st_blksize, so that
78709         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
78710
78711 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78712
78713         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
78714         since strftime.c uses HAVE_STRFTIME to decide whether to use
78715         the underlying strftime.
78716
78717 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78718
78719         * lib/time/strftime.c (my_strftime): Make sure we call the system
78720         strftime, not ourselves, when invoking the underlying strftime.
78721
78722 2000-03-24  Jim Meyering  <meyering@lucent.com>
78723
78724         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
78725         (charset_alias): Define.
78726         (install-exec-local): Factor out common code.
78727         (uninstall-local): Split lines longer than 80.
78728         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
78729         (SUFFIXES): Define.
78730         (.sed.in.sed): New rule.  Don't redirect directly to $@.
78731         (CLEANFILES): Add ref-add.sed and ref-del.sed.
78732
78733 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
78734
78735         * lib/config.charset: Output a line containing "Packages using this
78736         file".
78737         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
78738         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
78739         ref-del.sed): New rules.
78740
78741 2000-03-17  Jim Meyering  <meyering@lucent.com>
78742
78743         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
78744         Otherwise, include <strings.h>
78745
78746 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
78747
78748         * lib/unicodeio.c (utf8_wctomb): New function.
78749         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
78750         format instead of in UCS-4 with platform dependent endianness.
78751
78752 2000-03-10  Jim Meyering  <meyering@lucent.com>
78753
78754         * m4/lib-check.m4: Look for getspnam in -lgen, too.
78755         From Marco Franzen.
78756
78757 2000-03-07  Paul Eggert  <eggert@twinsun.com>
78758
78759         * lib/savedir.c (savedir): Work even if directory size is
78760         negative; this can happen with some screwy NFS configurations.
78761
78762 2000-03-06  Jim Meyering  <meyering@lucent.com>
78763
78764         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
78765         if it's NULL (because we ran out of memory).  From Bruno Haible.
78766
78767 2000-03-05  Jim Meyering  <meyering@lucent.com>
78768
78769         * lib/localcharset.c ("path-concat.h"): Include.
78770         (get_charset_aliases): Use path_concat instead of ANSI string
78771         concatenation.
78772
78773         * lib/unicodeio.h (PARAMS): Define.
78774         Use it to guard prototype.
78775
78776 2000-03-04  Jim Meyering  <meyering@lucent.com>
78777
78778         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
78779         for lib/localcharset.c.
78780
78781 2000-03-04  Jim Meyering  <meyering@lucent.com>
78782
78783         * lib/Makefile.am (install-exec-local): Create $(libdir) before
78784         installing into it.
78785         (uninstall-local): Uncomment this rule so `make distcheck' works
78786         once again.
78787
78788         * lib/unicodeio.c (<errno.h>): Include it.
78789         (errno): Declare if not defined.
78790
78791         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
78792
78793         * lib/config.charset: New version, incorporating remarks from a linux
78794         i18n mailing list.  From Bruno Haible.
78795
78796 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
78797
78798         * m4/codeset.m4: New file.
78799         * m4/iconv.m4: New file.
78800         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
78801
78802 2000-03-03  Jim Meyering  <meyering@lucent.com>
78803
78804         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
78805
78806 2000-03-02  Jim Meyering  <meyering@lucent.com>
78807
78808         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
78809         the messages come out on separate lines.
78810
78811         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
78812         rather than jm_CHECK_DECLARATIONS.
78813         * m4/decl.m4: Remove now-unused file.
78814
78815         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
78816         geteuid.
78817
78818 2000-03-02  Jim Meyering  <meyering@lucent.com>
78819
78820         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
78821
78822 2000-03-01  Jim Meyering  <meyering@lucent.com>
78823
78824         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
78825         * lib/unicodeio.c: Likewise.
78826
78827 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
78828
78829         * lib/config.charset: New file.
78830         * lib/localcharset.c: New file.
78831         * lib/unicodeio.h, lib/unicodeio.c: New files.
78832         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
78833         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
78834         (noinst_HEADERS): Add unicodeio.h.
78835         (all-local, install-exec-local, charset.alias): New targets.
78836
78837 2000-02-28  Paul Eggert  <eggert@twinsun.com>
78838
78839         * lib/quotearg.c (ALERT_CHAR): New macro.
78840         (quotearg_buffer_restyled): Use it.
78841
78842 2000-02-27  Jim Meyering  <meyering@lucent.com>
78843
78844         * m4/check-decl.m4: Add getenv to the list.
78845
78846 2000-02-27  Jim Meyering  <meyering@lucent.com>
78847
78848         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
78849         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
78850
78851         * lib/backupfile.c: Guard inclusion of stdlib.h with
78852         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
78853         Declare malloc if needed.
78854
78855         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
78856         `#ifndef HAVE_DECL..'
78857         now that autoconf always defines the HAVE_DECL_ symbols.
78858         * lib/human.c: Likewise.
78859         * lib/same.c: Likewise.
78860         * lib/strtoumax.c: Likewise.
78861
78862         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
78863         declaration check was not run.
78864         * lib/hash.c: Likewise.
78865         * lib/human.c: Likewise.
78866         * lib/same.c: Likewise.
78867         * lib/strtoumax.c: Likewise.
78868
78869         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
78870         `.', then first look up the entire `.'-containing string as a login
78871         name.
78872
78873 2000-02-23  Jim Meyering  <meyering@lucent.com>
78874
78875         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
78876         in place of my hack.
78877
78878 2000-02-18  Paul Eggert  <eggert@twinsun.com>
78879
78880         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
78881         (textint): New typedef.
78882         (parser_control): Member year changed from int to textint.
78883         All uses changed.
78884         (YYSTYPE): Removed; replaced by %union with int and textint members.
78885         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
78886         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
78887         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
78888         (tSNUMBER, tUNUMBER): Now of type <textintval>.
78889         (date, number, to_year): Use width of number in digits, not its value,
78890         to determine whether it's a 2-digit year, or a 2-digit time.
78891         (yylex): Store number of digits of numeric tokens.
78892         Reported by John Kendall.
78893
78894         (parser_control): Changed from struct parser_control to typedef (for
78895         consistency).  All uses changed.
78896
78897         (tID): Removed; not used.
78898         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
78899
78900 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78901
78902         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78903         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78904
78905 2000-02-12  Jim Meyering  <meyering@lucent.com>
78906
78907         * lib/userspec.c (ISDIGIT): Define it.
78908         (isdigit): Remove definition.
78909         (is_number): Use ISDIGIT, not isdigit.
78910         <libintl.h>: Include.
78911         (_ and N_): Define.
78912         (parse_user_spec): Mark translatable strings.
78913
78914 2000-02-10  Jim Meyering  <meyering@lucent.com>
78915
78916         With these changes, nanosleep.[ch] are finally enough like the other
78917         lib/* replacement files to compile on a few more losing systems.
78918
78919         * lib/nanosleep.h: Don't include config.h.
78920         Remove prototype from declaration of nanosleep.
78921         (PARAMS): Remove now-unneeded definition.
78922         * lib/nanosleep.c: #undef nanosleep.
78923         (rpl_nanosleep): Rename from nanosleep.
78924
78925 2000-02-10  Jim Meyering  <meyering@lucent.com>
78926
78927         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
78928         gnu_nanosleep to rpl_nanosleep.
78929
78930 2000-02-09  Jim Meyering  <meyering@lucent.com>
78931
78932         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
78933         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
78934
78935 2000-02-08  Akim Demaille  <akim@epita.fr>
78936
78937         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
78938         `[' and `]' and remove uses of `changequote'.
78939         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
78940         (AC_SYS_LARGEFILE): Likewise.
78941         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
78942         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
78943         of changequote.
78944         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
78945         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
78946         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
78947         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
78948
78949 2000-02-05  Jim Meyering  <meyering@lucent.com>
78950
78951         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
78952         Remove explicit use of AC_HEADER_TIME.  It is required by
78953         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
78954         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
78955         in autoconf whereby the expansion of the latter ended up preceding
78956         the expansion of its prerequisite, AC_HEADER_TIME.
78957         Reported by Volker Borchert.
78958
78959 2000-02-03  Jim Meyering  <meyering@lucent.com>
78960
78961         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
78962
78963 2000-02-03  Jim Meyering  <meyering@lucent.com>
78964
78965         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
78966         rather than with `#if HAVE_UTMPNAME'.
78967
78968 2000-02-02  Jim Meyering  <meyering@lucent.com>
78969
78970         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
78971         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
78972         Reported by Eli Zaretskii.
78973
78974 2000-02-01  Jim Meyering  <meyering@lucent.com>
78975
78976         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
78977
78978 2000-01-31  Jim Meyering  <meyering@lucent.com>
78979
78980         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
78981         functions.  Add the time.h and sys/time.h headers along with the
78982         AC_REQUIRE'ment of AC_HEADER_TIME.
78983
78984 2000-01-31  Jim Meyering  <meyering@lucent.com>
78985
78986         * lib/nanosleep.h (nanosleep): Guard declaration with
78987         `#if ! HAVE_DECL_NANOSLEEP'.
78988         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
78989         the declaration in that vendor's sys/timers.h.
78990         Reported by Christian Krackowizer.
78991
78992         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
78993         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
78994         (ISPRINT): Likewise.
78995         Reported by Tom Tromey.
78996
78997 2000-01-30  Jim Meyering  <meyering@lucent.com>
78998
78999         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
79000
79001         * m4/prereq.m4 (utmp_includes): Define.
79002         Check for ut_user and ut_name members in both struct utmpx
79003         and struct utmp.
79004
79005 2000-01-30  Jim Meyering  <meyering@lucent.com>
79006
79007         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
79008         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
79009         header files where only utmpx.ut_user is declared.
79010
79011         * lib/readutmp.h (UT_USER): Define.
79012
79013 2000-01-29  Jim Meyering  <meyering@lucent.com>
79014
79015         * m4/lib-check.m4: New file containing library-related checks from
79016         fileutils and sh-utils (textutils had none).
79017
79018 2000-01-28  Jim Meyering  <meyering@lucent.com>
79019
79020         * m4/perl.m4: Change format of warning message to look more like that
79021         from the missing script.  Suggestion from François Pinard.
79022
79023 2000-01-25  Jim Meyering  <meyering@lucent.com>
79024
79025         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
79026         well as time.h in the compile check.
79027         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
79028         Fix typo in cross-compiling case: s/yes/no/.
79029
79030 2000-01-23  Jim Meyering  <meyering@lucent.com>
79031
79032         * m4/jm-macros.m4: Move df-related tests here from
79033         fileutils/configure.in
79034
79035         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
79036         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
79037
79038         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
79039         s/space/ac_fsusage_space/.
79040         (jm_FILE_SYSTEM_USAGE): Take two parameters.
79041
79042         * m4/ftruncate.m4: New file (derived from part of
79043         fileutils/configure.in).
79044         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
79045         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
79046
79047         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
79048         AC_SUBST these here, rather than just in sh-util/configure.in, so
79049         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
79050         all the same.
79051         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
79052         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
79053         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
79054         (AC_SUBST(POW_LIBM)): Likewise.
79055         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
79056
79057 2000-01-23  Jim Meyering  <meyering@lucent.com>
79058
79059         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
79060         obstack.c.
79061
79062 2000-01-22  Jim Meyering  <meyering@lucent.com>
79063
79064         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
79065
79066         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
79067
79068         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
79069         configure.in
79070         (AC_CHECK_HEADERS): Likewise for sh-utils.
79071         (AC_CHECK_HEADERS): Likewise for textutils.
79072         Merge the three lists of headers.
79073
79074         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
79075         from fileutils' configure.in.
79076
79077         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
79078         code. Moved tests into their own function (_jm_DECL_HEADERS) in
79079         check-decl.m4.
79080
79081         * m4/check-decl.m4: Use #if rather than #ifdef.
79082         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
79083         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
79084         (_jm_DECL_HEADERS): Define new function.
79085         (jm_CHECK_DECLARATIONS): Require it.
79086
79087 2000-01-22  Jim Meyering  <meyering@lucent.com>
79088
79089         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
79090         [! HAVE_DECL_STRTOULL]: Declare strtoull.
79091         Required for some AIX systems.  Reported by Christian Krackowizer.
79092         [TESTING] (main): New function.
79093
79094         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
79095         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
79096         letters.
79097
79098         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
79099         iswprint.
79100
79101         * lib/strverscmp.c (ISDIGIT): Define.
79102         (strverscmp): Use ISDIGIT, not isdigit.
79103
79104 2000-01-19  Jim Meyering  <meyering@lucent.com>
79105
79106         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
79107         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
79108         defines `struct timespec' in <sys/time.h>
79109
79110         * m4/c-bs-a.m4: Remove uses of changequote altogether.
79111         Thanks to Akim for explaining.
79112
79113 2000-01-17  Paul Eggert  <eggert@twinsun.com>
79114
79115         * lib/nanosleep.c (nanosleep):
79116         Don't use SA_INTERRUPT to decide whether to call sigaction, as
79117         POSIX.1 doesn't require SA_INTERRUPT and some systems
79118         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
79119         it's been part of POSIX.1 since day 1 (in 1988).
79120
79121 2000-01-17  Jim Meyering  <meyering@lucent.com>
79122
79123         * lib/interlock: Remove unused file.  Reported by François Pinard.
79124
79125 2000-01-16  Paul Eggert  <eggert@twinsun.com>
79126
79127         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
79128         alert, backslash, formfeed, and vertical tab unnecessarily in
79129         shell quoting style.
79130
79131 2000-01-16  Jim Meyering  <meyering@lucent.com>
79132
79133         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
79134         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
79135         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
79136         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
79137
79138 2000-01-16  Jim Meyering  <meyering@lucent.com>
79139
79140         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
79141         because the latter didn't work.
79142
79143 2000-01-15  Jim Meyering  <meyering@lucent.com>
79144
79145         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
79146         (AC_REPLACE_FUNCS): Add memcpy and memset.
79147         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
79148         Add strpbrk.
79149         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
79150
79151 2000-01-12  Jim Meyering  <meyering@lucent.com>
79152
79153         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
79154         (jm_PREREQ): Use it.
79155         (jm_PREREQ_READUTMP): New macro.
79156         (jm_PREREQ): Use it.
79157
79158 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79159
79160         Quote multibyte characters correctly.
79161         * m4/c-bs-a.m4: New file.
79162         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
79163         (jm_PREREQ): Use it.
79164
79165 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79166
79167         * m4/uintmax_t.m4: Port to autoconf 2.13.
79168
79169 2000-01-08  Jim Meyering  <meyering@ascend.com>
79170
79171         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
79172         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
79173
79174 2000-01-04  Jim Meyering  <meyering@ascend.com>
79175
79176         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
79177         jm_STRUCT_DIRENT_D_TYPE.
79178         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
79179         jm_STRUCT_DIRENT_D_INO.
79180         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
79181         jm_STRUCT_UTIMBUF.
79182         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
79183         renamings.
79184         * m4/utime.m4: Likewise.
79185
79186         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
79187         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
79188
79189 2000-01-03  Paul Eggert  <eggert@twinsun.com>
79190
79191         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
79192         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
79193
79194 2000-01-02  Jim Meyering  <meyering@ascend.com>
79195
79196         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
79197         remember if this is necessary.
79198
79199 1999-12-26  Jim Meyering  <meyering@ascend.com>
79200
79201         * m4/jm-macros.m4: Use it here.
79202         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
79203
79204 1999-12-23  Jim Meyering  <meyering@ascend.com>
79205
79206         * m4/jm-macros.m4: Check for clock_gettime (moved from
79207         fileutils/configure.in)
79208         Check for gettimeofday.
79209
79210 1999-12-20  Jim Meyering  <meyering@ascend.com>
79211
79212         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
79213         autoconf-2.14a-1999-12-20.
79214
79215 1999-12-19  Jim Meyering  <meyering@ascend.com>
79216
79217         * m4/lstat-slash.m4: New file.
79218         * m4/jm-macros.m4: Use the new macro:
79219         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79220
79221 1999-12-07  Jim Meyering  <meyering@ascend.com>
79222
79223         * m4/perl.m4: Require that File::Compare be available, too.
79224         Too many systems seem to lack it.
79225
79226         * m4/strftime.m4: Add checks for most of the cpp macros tested in
79227         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
79228
79229 1999-11-18  Paul Eggert  <eggert@twinsun.com>
79230
79231         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
79232         problem with the QNX 4.25 shell, which doesn't propagate exit
79233         status of failed commands inside shell assignments.
79234
79235 1999-11-17  Jim Meyering  <meyering@ascend.com>
79236
79237         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
79238
79239 1999-11-07  Jim Meyering  <meyering@ascend.com>
79240
79241         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
79242
79243 1999-11-06  Jim Meyering  <meyering@ascend.com>
79244
79245         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
79246         * m4/jm-macros.m4 (jm_MACROS): Use it here.
79247
79248 1999-11-05  Jim Meyering  <meyering@ascend.com>
79249
79250         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
79251         configure.in of textutils, fileutils, and sh-utils into this one
79252         (shared between those packages) file.
79253         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
79254         AC_STRUCT_ST_BLKSIZE.
79255
79256 1999-11-03  Jim Meyering  <meyering@ascend.com>
79257
79258         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
79259         of AC_CHECK_TYPE checks includes unistd.h.
79260         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
79261         Suggestion from Akim Demaille.
79262
79263 1999-10-30  Jim Meyering  <meyering@ascend.com>
79264
79265         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
79266         m4-quoted string.
79267         * m4/ls-mntd-fs.m4: Likewise.
79268         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
79269         * m4/jm-winsz1.m4: Likewise.
79270
79271         * m4/const.m4: Remove file, since the fix made it into the experimental
79272         version of autoconf.
79273         * m4/mktime.m4: Likewise.
79274
79275         * m4/check-type.m4: Remove file, now that the latest version of
79276         AC_CHECK_TYPE takes a third arg to specify additional #includes.
79277
79278         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
79279         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
79280         AC_CHECK_TYPE.
79281
79282 1999-10-04  Jim Meyering  <meyering@ascend.com>
79283
79284         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
79285
79286 1999-09-22  Paul Eggert  <eggert@twinsun.com>
79287
79288         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
79289         2.95.1 bug with HP-UX 10.20.
79290
79291 1999-09-17  Jim Meyering  <meyering@ascend.com>
79292
79293         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
79294         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
79295         due to missing strdup (against sh-utils-2.0).
79296
79297 1999-08-29  Jim Meyering  <meyering@ascend.com>
79298
79299         * m4/jm-macros.m4: Require jm_BISON.
79300         * m4/bison.m4: New file.
79301
79302 1999-08-17  Paul Eggert  <eggert@twinsun.com>
79303
79304         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
79305         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
79306
79307 1999-08-05  Jim Meyering  <meyering@ascend.com>
79308
79309         * m4/getline.m4: Rename test file from conftestdata to conftest.data
79310         to avoid conflicts with `conftest' on 8+3 filesystems.
79311         Suggestion from Eli Zaretskii.
79312
79313 1999-08-04  Jim Meyering  <meyering@ascend.com>
79314
79315         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
79316         fileutils and sh-utils (textutils's getline test was inadequate).
79317         (AM_FUNC_GETLINE): Run this test.
79318         (AC_CHECK_FUNCS): Check for getdelim.
79319         Reported by Bob Proulx.
79320
79321 1999-08-02  Jim Meyering  <meyering@ascend.com>
79322
79323         * m4/jm-macros.m4: Add a comment.
79324
79325 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79326
79327         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
79328         <inttypes.h> defines strtoumax as a macro (and not as a
79329         function).
79330
79331 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79332
79333         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
79334         that we can shift, multiply and divide unsigned long long
79335         values; Ultrix cc can't do it.
79336
79337 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79338
79339         * m4/mktime.m4: New file, which is a preview of what should appear
79340         in the next public autoconf release.
79341
79342 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79343
79344         * m4/lfs.m4: Remove this file.
79345         * m4/largefile.m4: New file.  It contains the old contents of
79346         lfs.m4, except that all names with prefix AC_LFS have been
79347         changed to use the prefix AC_SYS_LARGEFILE instead, to be
79348         compatible with future autoconf versions.  Also, some minor m4
79349         quoting problems have been fixed.
79350
79351 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79352
79353         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
79354         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
79355         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
79356         and simplify the shell code.
79357
79358 1999-08-01  Jim Meyering  <meyering@ascend.com>
79359
79360         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
79361         m4.
79362
79363 1999-07-20  Jim Meyering  <meyering@ascend.com>
79364
79365         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
79366
79367 1999-07-15  Jim Meyering  <meyering@ascend.com>
79368
79369         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
79370
79371 1999-05-22  Jim Meyering  <meyering@ascend.com>
79372
79373         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
79374
79375 1999-05-20  Jim Meyering  <meyering@ascend.com>
79376
79377         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
79378         Add a colon after each `then' in case $4 is empty.
79379
79380 1999-05-16  Jim Meyering  <meyering@ascend.com>
79381
79382         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
79383
79384 1999-05-10  Jim Meyering  <meyering@ascend.com>
79385
79386         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
79387
79388         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
79389         AC_FUNC_MKTIME.
79390
79391 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
79392
79393         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
79394
79395 1999-05-04  Paul Eggert  <eggert@twinsun.com>
79396
79397         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
79398         not CPPFLAGS, so that linking works correctly in IRIX.
79399
79400 1999-04-30  Paul Eggert  <eggert@twinsun.com>
79401
79402         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
79403
79404 1999-04-20  Paul Eggert  <eggert@twinsun.com>
79405
79406         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
79407         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
79408         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
79409         jm_AC_TYPE_UNSIGNED_LONG_LONG.
79410         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
79411
79412         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
79413
79414 1999-04-20  Jim Meyering  <meyering@ascend.com>
79415
79416         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
79417         AC_REPLACE xstroull if necessary.  From Paul Eggert.
79418         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
79419
79420 1999-04-18  Jim Meyering  <meyering@ascend.com>
79421
79422         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
79423         * m4/jm-macros.m4: Use it.
79424
79425 1999-04-06  Jim Meyering  <meyering@ascend.com>
79426
79427         * m4/strftime.m4: Remove test for %f.
79428
79429 1999-03-29  Jim Meyering  <meyering@ascend.com>
79430
79431         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
79432         superset of the AC_TYPE_* checks in the textutils, fileutils,
79433         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
79434         AC_TYPE_PID_T.
79435
79436 1999-03-28  Jim Meyering  <meyering@ascend.com>
79437
79438         * m4/jm-macros.m4: Define GNU_PACKAGE here.
79439         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
79440         replaced e.g., in the *.sh files of the sh-utils.
79441
79442 1999-03-20  Jim Meyering  <meyering@ascend.com>
79443
79444         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
79445         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
79446         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
79447
79448 1999-03-19  Jim Meyering  <meyering@ascend.com>
79449
79450         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
79451
79452 1999-03-12  Jim Meyering  <meyering@ascend.com>
79453
79454         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
79455
79456 1999-03-07  Jim Meyering  <meyering@ascend.com>
79457
79458         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
79459         declared.
79460
79461 1999-02-17  Jim Meyering  <meyering@ascend.com>
79462
79463         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
79464         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
79465
79466 1999-02-07  Jim Meyering  <meyering@ascend.com>
79467
79468         * m4/group-member.m4: New file -- extracted from sh-utils'
79469         configure.in.
79470
79471         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
79472         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
79473
79474 1999-02-06  Jim Meyering  <meyering@ascend.com>
79475
79476         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
79477         * m4/fnmatch.m4: Likewise.
79478         * m4/getgroups.m4: Likewise.
79479         * m4/lstat.m4: Likewise.
79480         * m4/malloc.m4: Likewise.
79481         * m4/putenv.m4: Likewise.
79482         * m4/realloc.m4: Likewise.
79483         * m4/regex.m4: Likewise.
79484         * m4/stat.m4: Likewise.
79485         * m4/strftime.m4: Likewise.
79486         Suggestion from Alain Magloire.
79487
79488         * m4/chown.m4: Use `.$ac_objext', not `.o'.
79489         * m4/fnmatch.m4: Likewise.
79490         * m4/getgroups.m4: Likewise.
79491         * m4/getline.m4: Likewise.
79492         * m4/lstat.m4: Likewise.
79493         * m4/malloc.m4: Likewise.
79494         * m4/memcmp.m4: Likewise.
79495         * m4/putenv.m4: Likewise.
79496         * m4/realloc.m4: Likewise.
79497         * m4/regex.m4: Likewise.
79498         * m4/stat.m4: Likewise.
79499         * m4/strftime.m4: Likewise.
79500         Suggestion from Alain Magloire.
79501
79502         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
79503         an argument.
79504
79505         * m4/regex.m4: Add a run-time Test for proper operation of
79506         re_compile_pattern.
79507
79508 1999-01-31  Jim Meyering  <meyering@ascend.com>
79509
79510         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
79511
79512 1999-01-30  Jim Meyering  <meyering@ascend.com>
79513
79514         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
79515
79516         * m4/jm-mktime.m4: Make this a wrapper around the official
79517         AM_FUNC_MKTIME rather than my private copy, now that the official one
79518         is up to date.
79519         * m4/mktime.m4: Remove file.
79520
79521         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
79522         * m4/uptime.m4: Likewise.
79523         * m4/uintmax_t.m4: Likewise.
79524
79525 1999-01-28  Jim Meyering  <meyering@ascend.com>
79526
79527         * m4/jm-macros.m4: Use jm_AFS.
79528         * m4/afs.m4: New file (from fileutils' configure.in).
79529
79530         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
79531         * m4/chown.m4: Likewise.
79532         * m4/d-ino.m4: Likewise.
79533         * m4/d-type.m4: Likewise.
79534         * m4/fnmatch.m4: Likewise.
79535         * m4/getgroups.m4: Likewise.
79536         * m4/gettext.m4: Likewise.
79537         * m4/jm-mktime.m4: Likewise.
79538         * m4/jm-winsz2.m4: Likewise.
79539         * m4/lcmessage.m4: Likewise.
79540         * m4/ls-mntd-fs.m4: Likewise.
79541         * m4/malloc.m4: Likewise.
79542         * m4/memcmp.m4: Likewise.
79543         * m4/putenv.m4: Likewise.
79544         * m4/realloc.m4: Likewise.
79545         * m4/st_mtim.m4: Likewise.
79546         * m4/strftime.m4: Likewise.
79547
79548 1999-01-16  Jim Meyering  <meyering@ascend.com>
79549
79550         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
79551         (ARGMATCH_DIE_DECL): Define.
79552
79553 1999-01-12  Jim Meyering  <meyering@ascend.com>
79554
79555         * m4/Makefile.am.in: Rewrite to avoid using fmt.
79556         Reported by Lars Hecking.
79557
79558 1999-01-10  Jim Meyering  <meyering@ascend.com>
79559
79560         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
79561         gross kludge.
79562         * m4/inttypes_h.m4: Likewise.
79563         * m4/lstat.m4: Likewise.
79564         * m4/malloc.m4: Likewise.
79565         * m4/readdir.m4: Likewise.
79566         * m4/realloc.m4: Likewise.
79567         * m4/st_dm_mode.m4: Likewise.
79568         * m4/stat.m4: Likewise.
79569         * m4/utimbuf.m4: Likewise.
79570         * m4/utimes.m4: Likewise.
79571
79572         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
79573         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
79574         comments in config.h.in are meaningful.
79575
79576         * m4/jm-macros.m4: Require autoconf-2.13 here.
79577
79578         * m4/regex.m4: By default, don't use the included regex.c on systems
79579         with glibc 2.  Suggestion from Uli Drepper.
79580
79581 1999-01-02  Jim Meyering  <meyering@ascend.com>
79582
79583         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
79584
79585 1998-12-18  Jim Meyering  <meyering@ascend.com>
79586
79587         * m4/Makefile.am.in (Makefile.am): Simplify rule.
79588         Based on a suggestion from Lars Hecking.
79589
79590 1998-11-16  Paul Eggert  <eggert@twinsun.com>
79591
79592         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
79593
79594 1998-11-16  Jim Meyering  <meyering@ascend.com>
79595
79596         * m4/lfs.m4: Double-quote the `uname...` expression.
79597
79598 1998-11-14  Jim Meyering  <meyering@ascend.com>
79599
79600         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
79601         * m4/stat.m4: Likewise.
79602
79603 1998-11-03  Jim Meyering  <meyering@ascend.com>
79604
79605         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
79606         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
79607
79608 1998-10-18  Jim Meyering  <meyering@ascend.com>
79609
79610         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
79611
79612 1998-10-17  Jim Meyering  <meyering@ascend.com>
79613
79614         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
79615         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
79616         calls for those previously hard-coded headers.  Instead, take a new
79617         parameter.
79618         (jm_CHECK_DECLARATIONS): Reflect interface change.
79619         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
79620         (jm_CHECK_DECL_LOCALTIME_R): New macro.
79621
79622         * m4/mktime.m4: Test for spring-forward gap before long-running test.
79623
79624 1998-10-14  Jim Meyering  <meyering@ascend.com>
79625
79626         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
79627         instead of "TZ=America/Vancouver".  From Paul Eggert.
79628
79629 1998-10-11  Jim Meyering  <meyering@ascend.com>
79630
79631         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
79632         This adds a test for a recently added compatibility fix for mktime.c.
79633         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
79634
79635 1998-09-27  Jim Meyering  <meyering@ascend.com>
79636
79637         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
79638
79639         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
79640         ../configure.in, including a change from Gordon Matzigkeit to allow
79641         cross-compiling for the Hurd.
79642
79643         * m4/glibc.m4: New file/macro to test for the GNU C Library
79644         versions 1 and 2.  From Gordon Matzigkeit.
79645         Indent.
79646
79647 1998-09-21  Jim Meyering  <meyering@ascend.com>
79648
79649         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
79650
79651 1998-08-18  Paul Eggert  <eggert@twinsun.com>
79652
79653         Port nanosecond-resolution times to UnixWare 2.1.2 and
79654         pedantic Solaris 2.6.
79655
79656         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
79657         AC_STRUCT_ST_MTIM.
79658         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
79659         Generate name of ns member, instead of just 1 or undef.
79660         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
79661
79662 1998-08-15  Jim Meyering  <meyering@ascend.com>
79663
79664         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
79665         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
79666         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
79667         instead of jm_TYPE_SSIZE_T.
79668
79669 1998-08-12  Jim Meyering  <meyering@ascend.com>
79670
79671         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
79672
79673 1998-08-02  Jim Meyering  <meyering@ascend.com>
79674
79675         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
79676         in acconfig.h manually.
79677
79678 1998-07-31  Paul Eggert  <eggert@twinsun.com>
79679
79680         * m4/st_mtim.m4: New file.
79681
79682 1998-07-28  Jim Meyering  <meyering@ascend.com>
79683
79684         * m4/utimes.m4: Undef stat.
79685
79686 1998-07-25  Jim Meyering  <meyering@ascend.com>
79687
79688         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
79689         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
79690
79691 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
79692
79693         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
79694         uid and gid actually remain unchanged.
79695
79696 1998-07-07  Jim Meyering  <meyering@ascend.com>
79697
79698         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
79699
79700 1998-07-04  Jim Meyering  <meyering@ascend.com>
79701
79702         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
79703         to prove that this macro can be used in packages without regex.c.
79704
79705 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
79706
79707         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
79708         is to be used.
79709
79710 1998-07-03  Jim Meyering  <meyering@ascend.com>
79711
79712         * m4/gettext.m4: Add -lintl if it's found to be necessary.
79713
79714         * m4/gettext.m4: New file -- from gettext-0.10.35.
79715         * m4/lcmessage.m4: Likewise.
79716         * m4/progtest.m4: Likewise.
79717
79718         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
79719         * m4/jm-macros.m4: Require the new macro.
79720
79721 1998-06-29  Jim Meyering  <meyering@ascend.com>
79722
79723         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
79724         for the definition of NGROUPS (used in a system header included
79725         by sys/mount.h).
79726
79727 1998-06-28  Jim Meyering  <meyering@ascend.com>
79728
79729         * m4/ls-mntd-fs.m4: New file.
79730         * m4/fstypename.m4: New file.
79731
79732         * m4/jm-macros.m4: Require the new macro.
79733         * m4/jm-glibc-io.m4: New file.
79734
79735 1998-05-19  Jim Meyering  <meyering@ascend.com>
79736
79737         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
79738         * m4/lchown.m4: New file.
79739
79740         * m4/Makefile.am.in: New file.
79741         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
79742
79743 1998-05-14  Jim Meyering  <meyering@ascend.com>
79744
79745         * m4/Makefile.am (EXTRA_DIST): Add them.
79746         * m4/jm-macros.m4: New file.
79747         * m4/utimbuf.m4: New file.
79748
79749 1998-05-12  Jim Meyering  <meyering@ascend.com>
79750
79751         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
79752
79753 1998-05-11  Jim Meyering  <meyering@ascend.com>
79754
79755         * m4/isc-posix.m4: New file.
79756
79757 1998-05-10  Jim Meyering  <meyering@ascend.com>
79758
79759         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
79760
79761 1998-05-09  Jim Meyering  <meyering@ascend.com>
79762
79763         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
79764         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
79765         with automake.
79766
79767         * m4/ssize_t.m4: New file.
79768         * m4/mktime.m4: Remove file -- the new automake has this now.
79769
79770 1998-04-26  Jim Meyering  <meyering@ascend.com>
79771
79772         * m4/assert.m4: New file.
79773         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
79774
79775 1998-04-05  Jim Meyering  <meyering@ascend.com>
79776
79777         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
79778         (jm_PREREQ): Use it here.
79779
79780 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
79781
79782         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
79783         in acconfig.h.
79784
79785 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
79786
79787         * m4/prereq.m4: New file.
79788         * m4/error.m4: New file.
79789         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
79790
79791 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
79792
79793         * m4/getline.m4: Don't set am_cv_func_working_getline before the
79794         cache-check for the same variable -- that defeated the purpose of
79795         the test; the test program was never run.  This was a problem only
79796         on systems with losing getline functions -- HP-UX 10.20 is one.
79797         Reported by Bjorn Helgaas.
79798
79799 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
79800
79801         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
79802
79803 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
79804
79805         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
79806
79807         * m4/const.m4: New file.  Use an initializer in this declaration
79808         typedef int charset[2]; const charset x;
79809         Reported by Bob Glickstein.
79810
79811 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
79812
79813         * m4/chown.m4: Fix reversed types on -1 args to chown.
79814         From Kaveh Ghazi.
79815
79816 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
79817
79818         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
79819         Add lseek and memchr.
79820
79821         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
79822         T.E.Dickey <dickey@clark.net> said that some older preprocessors
79823         have a 20-character limit on names.
79824
79825 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
79826
79827         * m4/inttypes_h.m4: New file.
79828         * m4/uintmax_t.m4: New file.
79829         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
79830
79831
79832         -----
79833
79834         Local Variables:
79835         coding: utf-8
79836         End:
79837
79838         Copyright (C) 1997-2011 Free Software Foundation, Inc.
79839
79840         Copying and distribution of this file, with or without
79841         modification, are permitted provided the copyright notice
79842         and this notice are preserved.