utimensat: do not reference an out-of-scope buffer
[gnulib.git] / ChangeLog
1 2011-05-24  Jim Meyering  <meyering@redhat.com>
2
3         utimensat: do not reference an out-of-scope buffer
4         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
5         declared in an inner scope, yet "times" would be dereferenced outside
6         the scope in which "ts" was valid.
7         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
8         of ts[2] "out/up", so that the use of aliased "times" (via "times = ts;")
9         does not end up referencing an out-of-scope "ts"
10
11         opendir-safer.c: don't clobber errno; don't close negative FD
12         * lib/opendir-safer.c (opendir_safer):
13         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
14         file descriptor, and more importantly, don't clobber the
15         offending errno value with EINVAL.  Before, upon failure
16         of dup_safer, we would pass the negative file descriptor to
17         fdopendir, which would clobber errno.
18
19 2011-05-23  Bruno Haible  <bruno@clisp.org>
20
21         idcache: Fix module description.
22         * modules/idcache (Include): Set to "idcache.h".
23
24 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
25
26         gnulib-tool: fix portability problem with MacOS sed
27         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
28         before the "}".  Problem reported by Leo in
29         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
30         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
31         sed_extract_condition1, sed_extract_condition2.
32
33 2011-05-23  Bruno Haible  <bruno@clisp.org>
34
35         hash: Simplify autoconf macro.
36         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
37
38 2011-05-23  Bruno Haible  <bruno@clisp.org>
39
40         getugroups: Fix module description.
41         * modules/getugroups (Include): Set to "getugroups.h".
42
43 2011-05-23  Bruno Haible  <bruno@clisp.org>
44
45         linkat: Simplify autoconf macro.
46         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
47
48 2011-05-23  Bruno Haible  <bruno@clisp.org>
49             Eric Blake  <eblake@redhat.com>
50
51         linkat, renameat: Update dependencies.
52         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
53         * modules/linkat (Depends-on): Likewise. Remove also readlink,
54         symlinkat.
55
56 2011-05-23  Jim Meyering  <meyering@redhat.com>
57
58         maint.mk: more tight_scope improvements
59         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
60         (_gl_TS_headers): Define only in if-0'd block.
61         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
62         sometimes we must *not* use it.  Adjust uses accordingly.
63         (sc_tight_scope): Use much simpler grep-based test to determine
64         whether we skip this rule.
65
66         maint.mk: generalize/improve the tight-scope rule
67         * top/maint.mk: Emit a warning when the test is skipped.
68         (_gl_TS_dir): Add $(srcdir)/ prefix.
69         (_gl_TS_function_match): Simplify, rather than trying
70         to enumerate common types.  Otherwise, it would fail to match an
71         "extern unsigned char const *" declaration in idutils.
72         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
73         a way to support use of that type of macro.
74         (_gl_TS_var_match): Simplify regexp.
75         (_gl_TS_obj_files): New configurable variable.
76         (_gl_TS_headers): Likewise.
77
78 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79
80         verify: fix bug when gnulib <assert.h> is also included
81         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
82         is defined, not if _GL_STATIC_ASSERT_H is not defined.
83         Perhaps there's a better way, but this fixes the immediate problem.
84         Problem reported by Bruno Haible in
85         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
86
87 2011-05-22  Bruno Haible  <bruno@clisp.org>
88
89         xgetcwd: Simplify autoconf macro.
90         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
91
92 2011-05-22  Bruno Haible  <bruno@clisp.org>
93
94         New module 'mktime-internal'.
95         * modules/mktime-internal: New file.
96         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
97         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
98         mktime_internal as a C macro if libc has __mktime_internal.
99         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
100         conditions.
101         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
102
103 2011-05-22  Bruno Haible  <bruno@clisp.org>
104
105         timegm: Correct mktime replacement statements.
106         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
107         defining mktime as a C macro. This completes a 2009-07-28 commit.
108
109 2011-05-22  Bruno Haible  <bruno@clisp.org>
110
111         timegm: Simplify autoconf macro.
112         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
113
114 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
115
116         clock-time: change to LGPLv2+.
117         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
118         BSD-like but we have no mark for that; this is good enough for now.
119
120 2011-05-21  Bruno Haible  <bruno@clisp.org>
121
122         strerror_r: Fix comments.
123         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
124
125 2011-05-21  Bruno Haible  <bruno@clisp.org>
126
127         relocatable-prog-wrapper: Fix possible link error.
128         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
129         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
130         (gl_FUNC_SETENV): ... to here.
131         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
132         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
133
134 2011-05-21  Bruno Haible  <bruno@clisp.org>
135
136         relocatable-prog-wrapper: Assume strerror() exists.
137         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
138         m4/strerror.m4.
139         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
140         * lib/relocwrapper.c: Remove mention of strerror module.
141         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
142         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
143         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
144         C macro.
145
146 2011-05-21  Bruno Haible  <bruno@clisp.org>
147
148         select: Simplify replacement idiom.
149         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
150         Win32 platforms.
151         * lib/sys_select.in.h (select): Simplify accordingly.
152         * modules/select (Depends-on): Likewise.
153
154 2011-05-21  Bruno Haible  <bruno@clisp.org>
155
156         mkdir-p: Simplify autoconf macro.
157         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
158         gl_FUNC_LCHOWN.
159
160 2011-05-21  Eric Blake  <eblake@redhat.com>
161
162         strerror_r: avoid clobbering strerror on cygwin
163         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
164         fall back instead to sys_errlist.
165         * modules/strerror (configure.ac): Add witness.
166         * tests/test-strerror_r.c (main): Enhance test.
167         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
168         * tests/test-perror2.c (main): Free memory before exit.
169
170 2011-05-21  Bruno Haible  <bruno@clisp.org>
171
172         mkdtemp: Use gnulib naming conventions.
173         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
174         * modules/mkdtemp (configure.ac): Update.
175
176 2011-05-20  Eric Blake  <eblake@redhat.com>
177
178         strerror_r: avoid corrupting errno on Solaris
179         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
180         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
181
182         strerror_r: avoid compiler warning
183         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
184
185         strerror_r: simplify AIX code
186         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
187
188         test-perror: avoid spurious failure on FreeBSD
189         * modules/perror-tests (Depends-on): Add strerror, now that
190         strerror_r no longer pulls it in.
191
192 2011-05-20  Bruno Haible  <bruno@clisp.org>
193
194         strerror_r-posix: Remove unused dependencies.
195         * modules/strerror_r-posix (Depends-on): Remove strerror.
196         Reported by Eric Blake.
197
198 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
199
200         intprops: remove assumption about A|B representation
201         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
202         is a valid integer if both A and B are.  Although this is true for
203         all known practical hosts, the C standard doesn't guarantee it,
204         and the code need not assume it.  Also, this change may work around
205         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
206         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
207
208 2011-05-20  Eric Blake  <eblake@redhat.com>
209
210         perror: work around FreeBSD bug
211         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
212         is broken.  Move AC_LIBOBJ...
213         * modules/perror (configure.ac): Here.
214         * doc/posix-functions/perror.texi (perror): Document this.
215         * tests/test-perror2.c (main): Enhance test.
216
217         test-perror: check for strerror interactions
218         * tests/macros.h (STREQ): Add macro.
219         * modules/perror-tests (Files): Add second test.
220         * tests/test-perror2.c (main): New file.
221         * doc/posix-functions/perror.texi (perror): Document glibc bug.
222
223         test-perror: rewrite to use init script
224         * modules/perror-tests (Files): Add init.sh.
225         * tests/test-perror.sh: Use temporary directory.
226
227 2011-05-20  Jim Meyering  <meyering@redhat.com>
228
229         maint: replace misused "a" with "an"
230         * doc/intprops.texi: "a integer"
231         * doc/regex.texi: "a explanation"
232         * lib/alignof.h: "a object"
233         * lib/argmatch.h: "a explanation"
234         * lib/argp-help.c: "a option" and "a OPTION_DOC"
235         * lib/stdint.in.h: "a integer"
236         * lib/userspec.c: "a owner"
237         * doc/gnulib.texi: Fix "a idea", and reword.
238
239 2011-05-19  Jim Meyering  <meyering@redhat.com>
240
241         maint: correct misuse of "a" and "an"
242         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
243         * lib/argp-help.c: "an docum...": s/an/a/
244         * lib/argp-parse.c: "An vector": s/An/A/
245         * lib/execute.c: "an native": s/an/a/
246         * lib/spawn-pipe.c: Likewise.
247         * lib/gc.h: "an Gc_rc": s/an/a/
248         * lib/unigbrk.in.h: "an grapheme": s/an/a/
249         * lib/fts.c: "an stat.st_dev": s/an/a/
250
251 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
252
253         intprops-tests: work around HP-UX 11.23 cc bug with constants
254         * tests/test-intprops.c (VERIFY): New macro.
255         (main): Use it, instead of verify, to work around the compiler bug; see
256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
257
258         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
259         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
260         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
261         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
262         (_GL_REMAINDER_OVERFLOW): Use it.
263
264         intprops-tests: revert unsigned part of previous change
265         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
266         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
267         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
268         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
269
270 2011-05-19  Bruno Haible  <bruno@clisp.org>
271
272         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
273         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
274         strerror_r() returned without filling the buffer.
275         Reported by Eric Blake.
276
277 2011-05-19  Eric Blake  <eblake@redhat.com>
278
279         strerror_r: guarantee unchanged errno
280         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
281         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
282         failure.
283         * tests/test-strerror_r.c (main): Enhance test.
284
285 2011-05-19  Bruno Haible  <bruno@clisp.org>
286
287         strerror_r: Reorder #if blocks.
288         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
289         for consistency with the previous commit.
290
291 2011-05-19  Bruno Haible  <bruno@clisp.org>
292
293         perror: Avoid clobbering the strerror buffer when possible.
294         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
295         * lib/strerror.c: Include it.
296         * modules/strerror (Files): Add lib/strerror-impl.h.
297         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
298         (my_strerror): New function, defined through lib/strerror-impl.h.
299         (perror): Use it instead of strerror.
300         * modules/perror (Files): Add lib/strerror-impl.h.
301         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
302
303 2011-05-19  Eric Blake  <eblake@redhat.com>
304
305         strerror_r: fix on newer cygwin
306         * lib/strerror_r.c (strerror_r): Cygwin now has
307         __xpg_strerror_r, use it.
308
309 2011-05-19  Bruno Haible  <bruno@clisp.org>
310
311         strerror_r: Avoid clobbering the strerror buffer when possible.
312         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
313         (sys_nerr, sys_errlist): New declarations.
314         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
315         HP-UX, native Win32, IRIX, and 32-bit Solaris.
316         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
317
318 2011-05-19  Bruno Haible  <bruno@clisp.org>
319
320         strerror_r: Fix test failure on mingw.
321         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
322         EXTEND_STRERROR_R.
323         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
324         macros from errno.in.h instead.
325
326 2011-05-19  Eric Blake  <eblake@redhat.com>
327
328         strerror: relax test for Solaris
329         * tests/test-strerror.c (main): Permit Solaris behavior.
330         * tests/test-strerror_r.c (main): Likewise.
331
332         strerror: enforce POSIX ruling on strerror(0)
333         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
334         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
335         * lib/strerror_r.c (rpl_strerror_r): Work around it.
336         * doc/posix-functions/strerror.texi (strerror): Document it.
337         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
338         * tests/test-strerror.c (main): Strengthen test.
339         * tests/test-strerror_r.c (main): Likewise.
340
341 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
342
343         intprop-tests: port to older and more-pedantic compilers
344         * modules/intprops-tests (Files): Add tests/macros.h.
345         * tests/test-intprops.c: Include macros.h.
346         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
347         it's no longer documented to expand to an integer constant expression.
348         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
349         argument is floating point, as it's no longer documented to expand
350         to an integer constant expression in that case.
351         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
352         compiler bugs reported by Bruno Haible.  See
353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
354         (U0, U1): New constants, to work around the same bugs.  Also,
355         in tests, use e.g., "(unsigned int) 39" rather than "39u".
356
357         intprops: work around C compiler bugs
358         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
359         bug in Sun C 5.11 2010/08/13 and other compilers; see
360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
361
362         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
363         * doc/intprops.texi (Integer Type Determination): Fix
364         documentation for TYPE_IS_INTEGER: it returns an constant
365         expression, not an integer constant expression.  Fix doc for
366         TYPE_SIGNED: it returns an integer constant expression only if its
367         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
368         hardly worth documented that way....)
369
370 2011-05-18  Bruno Haible  <bruno@clisp.org>
371
372         strerror_r: Avoid clobbering the strerror buffer when possible.
373         * lib/strerror_r.c (strerror_r): Merge the three implementations.
374         Handle gnulib defined errno values here. When strerror() returns NULL
375         or an empty string, return EINVAL.
376         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
377         gnulib defined errno values here.
378         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
379
380 2011-05-18  Eric Blake  <eblake@redhat.com>
381
382         fnmatch: avoid compiler warning
383         * lib/fnmatch_loop.c (FCT): Use correct type.
384         Reported by Matthias Bolte.
385
386 2011-05-13  Jim Meyering  <meyering@redhat.com>
387
388         maint.mk: three new prohibit_<HDR>_without_use rules
389         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
390         (sc_prohibit_stdio-safer_without_use): Likewise.
391         (sc_prohibit_xfreopen_without_use): Likewise.
392
393 2011-05-17  Jim Meyering  <meyering@redhat.com>
394
395         announce-gen: fail if the NEWS delta is empty
396         If there's nothing noteworthy in NEWS, then either you forgot
397         or you shouldn't be releasing.
398         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
399
400 2011-05-17  Pádraig Brady <P@draigBrady.com>
401
402         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
403         reserved symbols starting with double underscore from the check.
404
405 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
406
407         intprops: add doc
408         * doc/intprops.texi: New file, documenting intprops.
409         * doc/gnulib.texi (Particular Modules): Include it.
410
411         verify: add doc to gnulib manual and fix example
412         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
413         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
414         (Compile-time Assertions): Fix example so it can't overflow.
415
416 2011-05-17  Jim Meyering  <meyering@redhat.com>
417
418         warnings.m4: don't usurp save_CPPFLAGS variable name
419         * m4/warnings.m4: Prefix local temporary variable name with gl_.
420
421         doc: fix typo
422         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
423
424 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
425             Bruno Haible  <bruno@clisp.org>
426
427         doc: Tweak recent change.
428         * README (Portability guidelines): Tweak new text.
429         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
430         Interix 6.1.
431
432 2011-05-16  Eric Blake  <eblake@redhat.com>
433
434         inttypes: avoid autoconf warning
435         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
436         * m4/stdint.m4 (gl_STDINT_H): Likewise.
437
438 2011-05-16  Sam Steingold <sds@gnu.org>
439         and Eric Blake  <eblake@redhat.com>
440
441         vc-list-files: accept multiple directory operands
442         * build-aux/vc-list-files: Iterate over all remaining operands.
443
444 2011-05-16  Bruno Haible  <bruno@clisp.org>
445
446         Fix confusion regarding deprecated modules.
447         * modules/calloc (Status, Notice): Mark module as deprecated, not
448         obsolete.
449         * modules/fnmatch-posix (Status, Notice): Likewise.
450         * modules/getdate (Status, Notice): Likewise.
451         * modules/getopt (Status, Notice): Likewise.
452         * modules/malloc (Status, Notice): Likewise.
453         * modules/pipe (Status, Notice): Likewise.
454         * modules/realloc (Status, Notice): Likewise.
455         * modules/rename-dest-slash (Status, Notice): Likewise.
456         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
457         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
458         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
459         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
460         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
461
462 2011-05-16  Bruno Haible  <bruno@clisp.org>
463
464         doc: List the target platforms.
465         * doc/gnulib-intro.texi (Target Platforms): New section.
466         * doc/gnulib.texi (Introduction): Update menu.
467         * README (Portability guidelines): Refer to the new section. Update
468         statement about oldest supported environment. Remove rationale why
469         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
470         unportable C89 function.
471         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
472         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
473
474 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
475
476         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
477
478 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
479
480         intprops-tests: new module
481         * modules/intprops-tests, tests/test-intprops.c: New files.
482
483         intprops: add safe, portable integer overflow checking
484         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
485         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
486         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
487         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
488         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
489         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
490         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
491         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
492         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
493         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
494         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
495
496 2011-05-12  James Youngman  <jay@gnu.org>
497
498         Add a test for glibc's Bugzilla bug #12378.
499         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
500         doesn't allow the literal matching of a lone "[" (which is
501         required by POSIX).
502         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
503
504 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
505
506         Sync glibc change fixing Bugzilla bug #12378.
507         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
508         beginning and fall back to matching as normal character if the
509         string ends before the matching ']' is found.  This is what POSIX
510         requires.
511
512 2011-05-13  Eric Blake  <eblake@redhat.com>
513
514         getcwd-lgpl: relax test for FreeBSD
515         * doc/posix-functions/getcwd.texi (getcwd): Document portability
516         issue.
517         * tests/test-getcwd-lgpl.c (main): Relax test.
518         Reported by Matthias Bolte.
519
520 2011-05-11  Eric Blake  <eblake@redhat.com>
521
522         test-fflush: silence compiler warning
523         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
524
525 2011-05-11  Bruno Haible  <bruno@clisp.org>
526
527         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
528         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
529         * modules/canonicalize (Depends-on): Add 'nocrash'.
530         * modules/canonicalize-lgpl (Depends-on): Likewise.
531         * doc/posix-functions/realpath.texi: Update platforms list.
532         Reported by Ryan Schmidt <ryandesign@macports.org>.
533
534 2011-05-11  Bruno Haible  <bruno@clisp.org>
535
536         group-member: Declare function in <unistd.h>.
537         * lib/unistd.in.h (group_member): New declaration.
538         * lib/group-member.h: Remove file.
539         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
540         * tests/test-unistd-c++.cc: Check signature of group_member.
541         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
542         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
543         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
544         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
545         HAVE_GROUP_MEMBER.
546         * modules/group-member (Files): Remove lib/group-member.h.
547         (Depends-on): Add unistd. Specify conditions.
548         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
549         (Include): Change to <unistd.h>.
550         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
551         HAVE_GROUP_MEMBER.
552         * NEWS: Mention the change.
553         * lib/euidaccess.c: Don't include group-member.h.
554
555 2011-05-11  Bruno Haible  <bruno@clisp.org>
556
557         group-member: Document module.
558         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
559         module.
560
561 2011-05-11  Bruno Haible  <bruno@clisp.org>
562
563         fclose: Fix mistake earlier today.
564         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
565
566 2011-05-11  Eric Blake  <eblake@redhat.com>
567
568         fclose: preserve fflush errors
569         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
570         Reported by Jim Meyering.
571
572         bootstrap: support a prereq of 'rpcgen -' on RHEL5
573         * build-aux/bootstrap (check_versions): When no specific version
574         is required, merely check that the app produces an exit status
575         that indicates its existence.
576
577         maint.mk: drop redundant check
578         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
579         the same but better.
580
581 2011-05-11  Bruno Haible  <bruno@clisp.org>
582
583         fclose: Fix possible link error.
584         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
585         unregister_shadow_fd. Improve comments.
586         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
587         Eric Blake.
588
589 2011-05-11  Jim Meyering  <meyering@redhat.com>
590
591         maint.mk: improve "can not" detection and generalize rule name
592         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
593         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
594         Use the same technique as in sc_prohibit_doubled_word, so that
595         we recognize "can not" also when the words are separated by a newline.
596         Suggested by Eric Blake.
597         (perl_filename_lineno_text_): Define.  Factored out of...
598         (prohibit_doubled_word_): ...here.  Use the new definition.
599         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
600         (prohibit_undesirable_word_seq_RE_): New overridable variable.
601         (ignore_undesirable_word_sequence_RE_): New overridable variable.
602
603 2011-05-10  Eric Blake  <eblake@redhat.com>
604
605         fclose: avoid double close race when possible
606         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
607         all but WINDOWS_SOCKETS.
608
609 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
610
611         openat: correct new comment
612         * lib/openat-proc.c (openat_proc_name): Correct the comment.
613
614 2011-05-10  Jim Meyering  <meyering@redhat.com>
615
616         openat: add comments
617         * lib/openat-proc.c (openat_proc_name): Add comments,
618         mostly from Eric Blake.
619
620 2011-05-09  Eric Blake  <eblake@redhat.com>
621
622         openat: reduce syscalls in first probe of /proc
623         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
624         be a directory.  Simplify the probe for .. bugs.
625         * modules/openat (Depends-on): Drop same-inode.
626         Reported by Bastien ROUCARIES.
627
628 2011-05-09  Jim Meyering  <meyering@redhat.com>
629
630         maint.mk: change semantics/name of tight_scope variables
631         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
632         Rename variables to align with semantics that make them more useful.
633
634         maint.mk: tweak new rule's name not to impinge
635         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
636         (sc_tight_scope): Use new rule name rather than $@-0.
637
638         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
639         * top/maint.mk (sc_tight_scope): New rule.
640         (sc_tight_scope-0): New rule, ifdef'd out.
641         (_gl_TS_dir): Default.
642         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
643         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
644
645 2011-05-09  Simon Josefsson  <simon@josefsson.org>
646
647         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
648         Haible <bruno@clisp.org>.
649
650 2011-05-08  Bruno Haible  <bruno@clisp.org>
651
652         Comments.
653         * m4/isnanf.m4: Add comment.
654         * m4/isnanl.m4: Likewise.
655
656 2011-05-08  Bruno Haible  <bruno@clisp.org>
657
658         glob: Remove obsolete macro.
659         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
660
661 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
662
663         intprops: Sun C 5.11 supports __typeof__
664         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
665         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
666         which is new.
667         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
668
669         intprops: switch to usual gnulib indenting and naming
670         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
671         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
672
673         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
674
675 2011-05-08  Jim Meyering  <meyering@redhat.com>
676
677         maint.mk: suppress "Entering/Leaving directory" diag in announcement
678         * top/maint.mk (release-prep): Use make's --no-print-directory
679         option when generating the announcement.  This eliminates the
680         pesky "make[2]: Entering/Leaving directory" diagnostics in the
681         generated announcement template.
682
683 2011-05-08  Bruno Haible  <bruno@clisp.org>
684
685         tzset: Fix gettimeofday wrapper on Solaris 2.6.
686         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
687         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
688
689 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
690
691         ignore-value, verify: Omit include files from lib_SOURCES.
692         * modules/ignore-value, modules/verify (Makefile.am):
693         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
694         that leads Automake to duplicate use of am__objects_... variables
695         in Makefile.in.  See
696         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
697
698 2011-05-07  Bruno Haible  <bruno@clisp.org>
699
700         fclose: Simplify autoconf macro.
701         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
702         defined.
703
704 2011-05-07  Bruno Haible  <bruno@clisp.org>
705
706         canonicalize-lgpl: Fix autoconf macro ordering bug.
707         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
708         gl_STDLIB_H_DEFAULTS.
709
710 2011-05-06  Eric Blake  <eblake@redhat.com>
711
712         maintainer-makefile: make sc_po_check easier to tune
713         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
714         to probe for strings, such as an alternate location for gnulib.
715
716         fclose: guarantee behavior on seekable stdin
717         * modules/fclose (Depends-on): Add fflush.
718         * doc/posix-functions/fclose.texi (fclose): Document this.
719         * tests/test-fclose.c (main): Make test for this unconditional.
720
721 2011-05-06  Bruno Haible  <bruno@clisp.org>
722
723         fflush, fpurge: Relicense under LGPLv2+.
724         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
725         * modules/fpurge (License): Likewise.
726         With permission from Eric Blake and Jim Meyering.
727         Suggested by Eric Blake.
728
729 2011-05-06  Karl Berry  <karl@gnu.org>
730
731         * MODULES.html.sh (func_all_modules): remove exit.
732
733 2011-05-06  Jim Meyering  <meyering@redhat.com>
734
735         maint.mk: use info-gnu@ as the default only for a stable release
736         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
737         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
738         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
739         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
740
741 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
742
743         assert-h: new module, which supports C1X-style static_assert
744         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
745         * lib/verify.h: Revamp so that this can be copied into assert.h,
746         while retaining the ability to use it standalone as before.
747         Rename private identifiers so as not to encroach on the
748         standard C namespace, since this is now used by assert.h.
749         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
750         the old verify_true.
751         (_GL_VERIFY_TRUE): New macro, with much of the contents of
752         the old verify_true.  Use _GL_VERIFY_TYPE.
753         (_GL_VERIFY): New macro, with much of the contents of the old verify.
754         (static_assert): New macro, if _GL_STATIC_ASSERT_H
755         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
756         defined when this file is copied into the replacement assert.h.
757         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
758         and _Static_assert is not built in.
759         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
760         defined, and use the new macros mentioned above.
761         * doc/posix-headers/assert.texi: Document this.
762
763 2011-05-05  Bruno Haible  <bruno@clisp.org>
764
765         fclose, fflush: Respect rules for use of AC_LIBOBJ.
766         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
767         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
768         gl_REPLACE_FCLOSE here.
769         * modules/fflush (Depends-on): Remove fclose.
770         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
771         combination with module 'fclose'.
772
773 2011-05-05  Bruno Haible  <bruno@clisp.org>
774
775         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
776         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
777         gl_FUNC_FFLUSH.
778         (gl_FUNC_FFLUSH): Use it.
779         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
780         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
781         gl_REPLACE_FSEEKO here.
782
783 2011-05-05  Bruno Haible  <bruno@clisp.org>
784
785         tzset: Relicense under LGPL.
786         * modules/tzset (License): Change to LGPL.
787         No agreement needed; it's a no-op.
788
789         strtoimax, strtoumax: Relicense under LGPL.
790         * modules/strtoimax (License): Change to LGPL.
791         * modules/strtoumax (License): Likewise.
792         With permission from Jim Meyering, Paul Eggert:
793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
795
796         getgroups: Relicense under LGPL.
797         * modules/getgroups (License): Change to LGPL.
798         With permission from Jim Meyering, Paul Eggert, Eric Blake:
799         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
802
803         nanosleep: Relicense under LGPL.
804         * modules/nanosleep (License): Change to LGPL.
805         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
806         Haible:
807         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
811
812         futimens: Relicense under LGPL.
813         * modules/futimens (License): Change to LGPL.
814         With permission from Eric Blake:
815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
816
817         fflush: Relicense under LGPL.
818         * modules/fflush (License): Change to LGPL.
819         With permission from Eric Blake, Bruno Haible, Jim Meyering:
820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
821         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
823
824         tmpfile: Relicense under LGPL.
825         * modules/tmpfile (License): Change to LGPL.
826         With permission from Ben Pfaff:
827         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
828
829         isfinite: Relicense under LGPL.
830         * modules/isfinite (License): Change to LGPL.
831         With permission from Ben Pfaff, Bruno Haible:
832         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
833         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
834
835         acosl..tanl: Relicense under LGPL.
836         * modules/acosl (License): Change to LGPL.
837         * modules/asinl (License): Likewise.
838         * modules/atanl (License): Likewise.
839         * modules/cosl (License): Likewise.
840         * modules/expl (License): Likewise.
841         * modules/logl (License): Likewise.
842         * modules/sinl (License): Likewise.
843         * modules/sqrtl (License): Likewise.
844         * modules/tanl (License): Likewise.
845         Source code originally from glibc and Paolo Bonzini. Agreements:
846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
847         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
848
849 2011-05-05  Bruno Haible  <bruno@clisp.org>
850
851         signal: Define sighandler_t.
852         * lib/signal.in.h (sighandler_t): New type.
853         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
854         whether sighandler_t is defined.
855         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
856         * modules/signal (Depends-on): Add extensions.
857         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
858         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
859         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
860
861 2011-05-05  Eric Blake  <eblake@redhat.com>
862
863         maint: remove useless REPLACE_*_H macros
864         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
865         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
866         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
867         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
868         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
869         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
870         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
871         * m4/btowc.m4: Update callers.
872         * m4/dirfd.m4: Likewise.
873         * m4/duplocale.m4: Likewise.
874         * m4/fchdir.m4: Likewise.
875         * m4/fdopendir.m4: Likewise.
876         * m4/inet_ntop.m4: Likewise.
877         * m4/inet_pton.m4: Likewise.
878         * m4/ioctl.m4: Likewise.
879         * m4/mbrlen.m4: Likewise.
880         * m4/mbrtowc.m4: Likewise.
881         * m4/mbsinit.m4: Likewise.
882         * m4/mbsnrtowcs.m4: Likewise.
883         * m4/mbsrtowcs.m4: Likewise.
884         * m4/poll.m4: Likewise.
885         * m4/setlocale.m4: Likewise.
886         * m4/wcrtomb.m4: Likewise.
887         * m4/wcsnrtombs.m4: Likewise.
888         * m4/wcsrtombs.m4: Likewise.
889         * m4/wctob.m4: Likewise.
890         * m4/wcwidth.m4: Likewise.
891         * modules/posix_spawn: Likewise.
892         * modules/posix_spawn_file_actions_addclose: Likewise.
893         * modules/posix_spawn_file_actions_adddup2: Likewise.
894         * modules/posix_spawn_file_actions_addopen: Likewise.
895         * modules/posix_spawn_file_actions_destroy: Likewise.
896         * modules/posix_spawn_file_actions_init: Likewise.
897         * modules/posix_spawnattr_destroy: Likewise.
898         * modules/posix_spawnattr_getflags: Likewise.
899         * modules/posix_spawnattr_getpgroup: Likewise.
900         * modules/posix_spawnattr_getschedparam: Likewise.
901         * modules/posix_spawnattr_getschedpolicy: Likewise.
902         * modules/posix_spawnattr_getsigdefault: Likewise.
903         * modules/posix_spawnattr_getsigmask: Likewise.
904         * modules/posix_spawnattr_init: Likewise.
905         * modules/posix_spawnattr_setflags: Likewise.
906         * modules/posix_spawnattr_setpgroup: Likewise.
907         * modules/posix_spawnattr_setschedparam: Likewise.
908         * modules/posix_spawnattr_setschedpolicy: Likewise.
909         * modules/posix_spawnattr_setsigdefault: Likewise.
910         * modules/posix_spawnattr_setsigmask: Likewise.
911         * modules/posix_spawnp: Likewise.
912
913 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
914
915         Add option to do-release-commit-and-tag to specify branch.
916         * build-aux/do-release-commit-and-tag: Add --branch.
917
918 2011-05-03  Bruno Haible  <bruno@clisp.org>
919
920         Avoid unnecessary compilation units, through conditional dependencies.
921         * modules/accept (Depends-on): Add conditions to the dependencies.
922         * modules/acosl (Depends-on): Likewise.
923         * modules/argz (Depends-on): Likewise.
924         * modules/asinl (Depends-on): Likewise.
925         * modules/atanl (Depends-on): Likewise.
926         * modules/atoll (Depends-on): Likewise.
927         * modules/bind (Depends-on): Likewise.
928         * modules/btowc (Depends-on): Likewise.
929         * modules/canonicalize-lgpl (Depends-on): Likewise.
930         * modules/ceil (Depends-on): Likewise.
931         * modules/ceilf (Depends-on): Likewise.
932         * modules/ceill (Depends-on): Likewise.
933         * modules/chdir-long (Depends-on): Likewise.
934         * modules/chown (Depends-on): Likewise.
935         * modules/close (Depends-on): Likewise.
936         * modules/connect (Depends-on): Likewise.
937         * modules/cosl (Depends-on): Likewise.
938         * modules/dirfd (Depends-on): Likewise.
939         * modules/dprintf (Depends-on): Likewise.
940         * modules/dprintf-posix (Depends-on): Likewise.
941         * modules/error (Depends-on): Likewise.
942         * modules/euidaccess (Depends-on): Likewise.
943         * modules/expl (Depends-on): Likewise.
944         * modules/faccessat (Depends-on): Likewise.
945         * modules/fchdir (Depends-on): Likewise.
946         * modules/fclose (Depends-on): Likewise.
947         * modules/fcntl (Depends-on): Likewise.
948         * modules/fdopendir (Depends-on): Likewise.
949         * modules/fflush (Depends-on): Likewise.
950         * modules/floor (Depends-on): Likewise.
951         * modules/floorf (Depends-on): Likewise.
952         * modules/floorl (Depends-on): Likewise.
953         * modules/fnmatch (Depends-on): Likewise.
954         * modules/fopen (Depends-on): Likewise.
955         * modules/fprintf-posix (Depends-on): Likewise.
956         * modules/frexp (Depends-on): Likewise.
957         * modules/frexp-nolibm (Depends-on): Likewise.
958         * modules/frexpl (Depends-on): Likewise.
959         * modules/frexpl-nolibm (Depends-on): Likewise.
960         * modules/fseek (Depends-on): Likewise.
961         * modules/fsusage (Depends-on): Likewise.
962         * modules/ftell (Depends-on): Likewise.
963         * modules/ftello (Depends-on): Likewise.
964         * modules/futimens (Depends-on): Likewise.
965         * modules/getcwd (Depends-on): Likewise.
966         * modules/getcwd-lgpl (Depends-on): Likewise.
967         * modules/getdelim (Depends-on): Likewise.
968         * modules/getdomainname (Depends-on): Likewise.
969         * modules/getgroups (Depends-on): Likewise.
970         * modules/gethostname (Depends-on): Likewise.
971         * modules/getline (Depends-on): Likewise.
972         * modules/getlogin_r (Depends-on): Likewise.
973         * modules/getopt-posix (Depends-on): Likewise.
974         * modules/getpeername (Depends-on): Likewise.
975         * modules/getsockname (Depends-on): Likewise.
976         * modules/getsockopt (Depends-on): Likewise.
977         * modules/getsubopt (Depends-on): Likewise.
978         * modules/getusershell (Depends-on): Likewise.
979         * modules/glob (Depends-on): Likewise.
980         * modules/grantpt (Depends-on): Likewise.
981         * modules/iconv_open (Depends-on): Likewise.
982         * modules/iconv_open-utf (Depends-on): Likewise.
983         * modules/inet_ntop (Depends-on): Likewise.
984         * modules/inet_pton (Depends-on): Likewise.
985         * modules/ioctl (Depends-on): Likewise.
986         * modules/isapipe (Depends-on): Likewise.
987         * modules/isfinite (Depends-on): Likewise.
988         * modules/isinf (Depends-on): Likewise.
989         * modules/lchown (Depends-on): Likewise.
990         * modules/ldexpl (Depends-on): Likewise.
991         * modules/link (Depends-on): Likewise.
992         * modules/linkat (Depends-on): Likewise.
993         * modules/listen (Depends-on): Likewise.
994         * modules/logl (Depends-on): Likewise.
995         * modules/lstat (Depends-on): Likewise.
996         * modules/mbrlen (Depends-on): Likewise.
997         * modules/mbrtowc (Depends-on): Likewise.
998         * modules/mbsinit (Depends-on): Likewise.
999         * modules/mbsnrtowcs (Depends-on): Likewise.
1000         * modules/mbsrtowcs (Depends-on): Likewise.
1001         * modules/mbtowc (Depends-on): Likewise.
1002         * modules/memcmp (Depends-on): Likewise.
1003         * modules/mkdir (Depends-on): Likewise.
1004         * modules/mkdtemp (Depends-on): Likewise.
1005         * modules/mkfifo (Depends-on): Likewise.
1006         * modules/mkfifoat (Depends-on): Likewise.
1007         * modules/mknod (Depends-on): Likewise.
1008         * modules/mkostemp (Depends-on): Likewise.
1009         * modules/mkostemps (Depends-on): Likewise.
1010         * modules/mkstemp (Depends-on): Likewise.
1011         * modules/mkstemps (Depends-on): Likewise.
1012         * modules/mktime (Depends-on): Likewise.
1013         * modules/nanosleep (Depends-on): Likewise.
1014         * modules/open (Depends-on): Likewise.
1015         * modules/openat (Depends-on): Likewise.
1016         * modules/perror (Depends-on): Likewise.
1017         * modules/poll (Depends-on): Likewise.
1018         * modules/popen (Depends-on): Likewise.
1019         * modules/posix_spawn (Depends-on): Likewise.
1020         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
1021         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1022         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1023         * modules/posix_spawnp (Depends-on): Likewise.
1024         * modules/pread (Depends-on): Likewise.
1025         * modules/printf-posix (Depends-on): Likewise.
1026         * modules/ptsname (Depends-on): Likewise.
1027         * modules/putenv (Depends-on): Likewise.
1028         * modules/pwrite (Depends-on): Likewise.
1029         * modules/readline (Depends-on): Likewise.
1030         * modules/readlink (Depends-on): Likewise.
1031         * modules/readlinkat (Depends-on): Likewise.
1032         * modules/recv (Depends-on): Likewise.
1033         * modules/recvfrom (Depends-on): Likewise.
1034         * modules/regex (Depends-on): Likewise.
1035         * modules/remove (Depends-on): Likewise.
1036         * modules/rename (Depends-on): Likewise.
1037         * modules/renameat (Depends-on): Likewise.
1038         * modules/rmdir (Depends-on): Likewise.
1039         * modules/round (Depends-on): Likewise.
1040         * modules/roundf (Depends-on): Likewise.
1041         * modules/roundl (Depends-on): Likewise.
1042         * modules/rpmatch (Depends-on): Likewise.
1043         * modules/select (Depends-on): Likewise.
1044         * modules/send (Depends-on): Likewise.
1045         * modules/sendto (Depends-on): Likewise.
1046         * modules/setenv (Depends-on): Likewise.
1047         * modules/setlocale (Depends-on): Likewise.
1048         * modules/setsockopt (Depends-on): Likewise.
1049         * modules/shutdown (Depends-on): Likewise.
1050         * modules/sigaction (Depends-on): Likewise.
1051         * modules/signbit (Depends-on): Likewise.
1052         * modules/sigprocmask (Depends-on): Likewise.
1053         * modules/sinl (Depends-on): Likewise.
1054         * modules/sleep (Depends-on): Likewise.
1055         * modules/snprintf (Depends-on): Likewise.
1056         * modules/snprintf-posix (Depends-on): Likewise.
1057         * modules/socket (Depends-on): Likewise.
1058         * modules/sprintf-posix (Depends-on): Likewise.
1059         * modules/sqrtl (Depends-on): Likewise.
1060         * modules/stat (Depends-on): Likewise.
1061         * modules/strchrnul (Depends-on): Likewise.
1062         * modules/strdup-posix (Depends-on): Likewise.
1063         * modules/strerror (Depends-on): Likewise.
1064         * modules/strerror_r-posix (Depends-on): Likewise.
1065         * modules/strndup (Depends-on): Likewise.
1066         * modules/strnlen (Depends-on): Likewise.
1067         * modules/strptime (Depends-on): Likewise.
1068         * modules/strsep (Depends-on): Likewise.
1069         * modules/strsignal (Depends-on): Likewise.
1070         * modules/strstr-simple (Depends-on): Likewise.
1071         * modules/strtod (Depends-on): Likewise.
1072         * modules/strtoimax (Depends-on): Likewise.
1073         * modules/strtok_r (Depends-on): Likewise.
1074         * modules/strtoumax (Depends-on): Likewise.
1075         * modules/symlink (Depends-on): Likewise.
1076         * modules/symlinkat (Depends-on): Likewise.
1077         * modules/tanl (Depends-on): Likewise.
1078         * modules/tcgetsid (Depends-on): Likewise.
1079         * modules/tmpfile (Depends-on): Likewise.
1080         * modules/trunc (Depends-on): Likewise.
1081         * modules/truncf (Depends-on): Likewise.
1082         * modules/truncl (Depends-on): Likewise.
1083         * modules/uname (Depends-on): Likewise.
1084         * modules/unlink (Depends-on): Likewise.
1085         * modules/unlockpt (Depends-on): Likewise.
1086         * modules/unsetenv (Depends-on): Likewise.
1087         * modules/usleep (Depends-on): Likewise.
1088         * modules/utimensat (Depends-on): Likewise.
1089         * modules/vasprintf (Depends-on): Likewise.
1090         * modules/vdprintf (Depends-on): Likewise.
1091         * modules/vdprintf-posix (Depends-on): Likewise.
1092         * modules/vfprintf-posix (Depends-on): Likewise.
1093         * modules/vprintf-posix (Depends-on): Likewise.
1094         * modules/vsnprintf (Depends-on): Likewise.
1095         * modules/vsnprintf-posix (Depends-on): Likewise.
1096         * modules/vsprintf-posix (Depends-on): Likewise.
1097         * modules/wcrtomb (Depends-on): Likewise.
1098         * modules/wcscasecmp (Depends-on): Likewise.
1099         * modules/wcscspn (Depends-on): Likewise.
1100         * modules/wcsdup (Depends-on): Likewise.
1101         * modules/wcsncasecmp (Depends-on): Likewise.
1102         * modules/wcsnrtombs (Depends-on): Likewise.
1103         * modules/wcspbrk (Depends-on): Likewise.
1104         * modules/wcsrtombs (Depends-on): Likewise.
1105         * modules/wcsspn (Depends-on): Likewise.
1106         * modules/wcsstr (Depends-on): Likewise.
1107         * modules/wcstok (Depends-on): Likewise.
1108         * modules/wcswidth (Depends-on): Likewise.
1109         * modules/wctob (Depends-on): Likewise.
1110         * modules/wctomb (Depends-on): Likewise.
1111         * modules/wctype (Depends-on): Likewise.
1112         * modules/wcwidth (Depends-on): Likewise.
1113         * modules/write (Depends-on): Likewise.
1114
1115 2011-05-03  Bruno Haible  <bruno@clisp.org>
1116
1117         Support for conditional dependencies.
1118         * doc/gnulib.texi (Module description): Document the syntax of
1119         conditional dependencies.
1120         * gnulib-tool: New option --conditional-dependencies.
1121         (func_usage): Document it.
1122         (cond_dependencies): New variable.
1123         (func_get_automake_snippet_conditional,
1124         func_get_automake_snippet_unconditional): New functions, extracted from
1125         func_get_automake_snippet.
1126         (func_get_automake_snippet): Use them.
1127         (sed_first_32_chars): New variable.
1128         (func_module_shellfunc_name): New function.
1129         (func_module_shellvar_name): New function.
1130         (func_module_conditional_name): New function.
1131         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
1132         func_cond_module_condition): New functions.
1133         (func_modules_transitive_closure): Add support for conditional
1134         dependencies.
1135         (func_emit_lib_Makefile_am): For a conditional module, enclose the
1136         conditional automake snippet in an automake conditional.
1137         (func_emit_autoconf_snippets): Emit shell functions that contain the
1138         code for conditional modules.
1139         (func_import, func_create_testdir): Update specification.
1140
1141 2011-05-03  Eric Blake  <eblake@redhat.com>
1142
1143         test-getaddrinfo: report error information
1144         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
1145
1146 2011-05-03  Jim Meyering  <meyering@redhat.com>
1147
1148         bootstrap: avoid build failure when $GZIP is set
1149         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
1150         program name.  If defined at all, it is supposed to list gzip options.
1151         Reported by Alan Curry in http://debbugs.gnu.org/8609
1152
1153 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
1154
1155         readme-release: new module with release instructions
1156         * modules/readme-release: New module.
1157         * top/README-release: New file, from coreutils, grep, diffutils.
1158         * MODULES.html.sh (Support for maintaining and releasing): Add it.
1159
1160 2011-05-02  Eric Blake  <eblake@redhat.com>
1161
1162         fflush: also replace fclose when fixing fflush
1163         * modules/fflush (Depends-on): Add fclose.
1164         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
1165         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
1166         memstreams with no backing fd.
1167         * doc/posix-functions/fclose.texi (fclose): Document the use of
1168         fflush module to fix the bug.
1169         * tests/test-fclose.c (main): Relax test when fclose is used in
1170         isolation.
1171
1172         fclose: add some tests
1173         * modules/fclose-tests: New test module.
1174         * tests/test-fclose.c: New file.
1175         * doc/posix-functions/fclose.texi (fclose): Document the bug.
1176
1177         fclose: reduced dependencies
1178         * modules/fclose (Depends-on): Switch from fflush/fseeko to
1179         simpler lseek.
1180         * lib/fclose.c (rpl_fclose): Likewise.
1181         Reported by Simon Josefsson.
1182
1183         exit: drop remaining clients
1184         * modules/argmatch (Depends-on): Replace exit with stdlib.
1185         * modules/copy-file (Depends-on): Likewise.
1186         * modules/execute (Depends-on): Likewise.
1187         * modules/exitfail (Depends-on): Likewise.
1188         * modules/obstack (Depends-on): Likewise.
1189         * modules/pagealign_alloc (Depends-on): Likewise.
1190         * modules/pipe-filter-gi (Depends-on): Likewise.
1191         * modules/pipe-filter-ii (Depends-on): Likewise.
1192         * modules/savewd (Depends-on): Likewise.
1193         * modules/spawn-pipe (Depends-on): Likewise.
1194         * modules/wait-process (Depends-on): Likewise.
1195         * modules/xsetenv (Depends-on): Likewise.
1196         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
1197         * modules/git-merge-changelog (Depends-on): Likewise.
1198         * modules/long-options (Depends-on): Likewise.
1199         * modules/pt_chown (Depends-on): Likewise.
1200         * modules/sysexits (Depends-on): Likewise.
1201
1202         freading: relax license from LGPLv3+ to LGPLv2+
1203         * modules/freading (License): Relax LGPL version.
1204
1205 2011-05-02  Bruno Haible  <bruno@clisp.org>
1206
1207         fchdir: Remove unused dependencies.
1208         * modules/fchdir (Depends-on): Remove include_next.
1209
1210 2011-05-02  Bruno Haible  <bruno@clisp.org>
1211
1212         gnulib-tool: Refactor.
1213         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
1214         from func_emit_autoconf_snippets.
1215         (func_emit_autoconf_snippets): Use it.
1216
1217 2011-05-02  Simon Josefsson  <simon@josefsson.org>
1218
1219         * NEWS: Document removal of 'exit'.
1220         * modules/exit: Remove file.
1221
1222 2011-05-01  Bruno Haible  <bruno@clisp.org>
1223
1224         Update DEPENDENCIES.
1225         * DEPENDENCIES (gettext): Recommend the newest release.
1226         Reported by Simon Josefsson.
1227
1228 2011-05-01  Bruno Haible  <bruno@clisp.org>
1229
1230         gnulib-tool: Reduce code duplication.
1231         * gnulib-tool (func_emit_autoconf_snippets): New function.
1232         (func_import, func_create_testdir): Use it.
1233
1234 2011-04-30  Eric Blake  <eblake@redhat.com>
1235
1236         fclose: don't fail on non-seekable input stream
1237         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
1238         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
1239         since fflush is allowed to fail in that case.
1240
1241 2011-04-30  Bruno Haible  <bruno@clisp.org>
1242
1243         dup3: cleanup
1244         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
1245
1246 2011-04-30  Bruno Haible  <bruno@clisp.org>
1247
1248         netdb: Make it work in C++ mode.
1249         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
1250         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
1251         module.
1252         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
1253         gl_MODULE_INDICATOR_FOR_TESTS.
1254         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
1255         * modules/netdb-c++-tests: New file.
1256         * tests/test-netdb-c++.cc: New file.
1257
1258 2011-04-30  Bruno Haible  <bruno@clisp.org>
1259
1260         New modules 'vfscanf', 'vscanf'.
1261         * modules/vfscanf: New file.
1262         * modules/vscanf: New file.
1263         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
1264         here.
1265         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
1266         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
1267
1268 2011-04-30  Bruno Haible  <bruno@clisp.org>
1269
1270         passfd: Add comments.
1271         * lib/passfd.c: Add comments about platforms.
1272
1273 2011-04-30  Bruno Haible  <bruno@clisp.org>
1274
1275         sys_uio: Make <sys/uio.h> self-contained.
1276         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
1277         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
1278
1279 2011-04-30  Bruno Haible  <bruno@clisp.org>
1280
1281         sys_socket: Ensure 'struct iovec' definition.
1282         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
1283         <sys/socket.h>.
1284         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
1285
1286 2011-04-30  Bruno Haible  <bruno@clisp.org>
1287
1288         sys_uio: Protect definition of 'struct iovec'.
1289         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
1290         it as a C struct.
1291
1292 2011-04-30  Bruno Haible  <bruno@clisp.org>
1293
1294         manywarnings: fix indentation
1295         * m4/manywarnings.m4: Indent by 2 spaces consistently.
1296
1297 2011-04-30  Pádraig Brady <P@draigBrady.com>
1298
1299         manywarnings: add -Wno-missing-field-initializers if needed.
1300         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
1301         option if it's needed to allow initialization with { 0, }
1302
1303 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
1304
1305         announce-gen: cosmetic improvement
1306         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
1307
1308 2011-04-29  Jim Meyering  <meyering@redhat.com>
1309
1310         vc-list-files: indent with spaces, not TABs
1311         * build-aux/vc-list-files: Convert leading TABs to spaces,
1312         to match the style of most other files in gnulib.
1313
1314         announce-gen: indent with spaces, not TABs
1315         * build-aux/announce-gen: Convert all TABs to spaces, to match
1316         the style of most other files in gnulib.
1317
1318 2011-04-29  Eric Blake  <eblake@redhat.com>
1319
1320         quotearg: avoid uninitialized variable use
1321         * lib/quotearg.c (quoting_options_from_style): Initialize
1322         remaining fields, and ensure that custom styles are only used via
1323         quoting_options rather than quoting_style.
1324
1325 2011-04-29  Jim Meyering  <meyering@redhat.com>
1326
1327         maint.mk: remove unused VC-tag variable
1328         * top/maint.mk (VC-tag): Remove unused variable.
1329
1330 2011-04-29  Bruno Haible  <bruno@clisp.org>
1331
1332         netdb: fix gai_strerror replacements
1333         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
1334         * modules/netdb: Substitute it.
1335
1336 2011-04-29  Jim Meyering  <meyering@redhat.com>
1337
1338         test-getcwd.c: avoid new set-but-not-used warning
1339         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
1340         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
1341         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
1342         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
1343
1344         test-hash.c: avoid a new shadowing warning
1345         * tests/test-hash.c (main): Don't shadow "dup".
1346
1347 2011-04-28  Eric Blake  <eblake@redhat.com>
1348
1349         getaddrinfo: fix gai_strerror signature
1350         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
1351         and work around mingw with UNICODE defined.
1352         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
1353         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
1354         * modules/netdb (Makefile.am): Substitute it.
1355         * lib/netdb.in.h (gai_strerror): Declare replacement.
1356         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
1357         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
1358         the fix.
1359
1360         getsockopt: avoid compiler warning
1361         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
1362         Reported by Matthias Bolte.
1363
1364         tests: drop unused link dependency
1365         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
1366         * modules/dirent-safer-tests (Makefile.am): Likewise.
1367         * modules/fdopendir-tests (Makefile.am): Likewise.
1368         * modules/mkfifoat-tests (Makefile.am): Likewise.
1369         * modules/openat-safer-tests (Makefile.am): Likewise.
1370         * modules/openat-tests (Makefile.am): Likewise.
1371         * modules/readlinkat-tests (Makefile.am): Likewise.
1372         * modules/symlinkat-tests (Makefile.am): Likewise.
1373         * modules/linkat-tests (Makefile.am): Likewise.
1374         (Depends-on): Switch to filenamecat-lgpl.
1375         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
1376         LIBINTL.
1377         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
1378         * tests/test-linkat.c (main): Don't require xalloc.
1379
1380         hash, mgetgroups: drop xalloc dependency
1381         * lib/hash.c (includes): Adjust includes.
1382         * lib/mgetgroups.c (includes): Likewise.
1383         (xgetgroups): Move...
1384         * lib/xgetgroups.c: ...to new file.
1385         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
1386         * modules/xgetgroups: New file, split from...
1387         * modules/mgetgroups: ...here.
1388         (Depends-on): Add xalloc-oversized.
1389         * modules/hash (Depends-on): Likewise.
1390         * modules/hash-tests (Depends-on): Drop xalloc.
1391         (test_hash_LDADD): Drop unused library.
1392         * tests/test-hash.c (main): Break xalloc dependency.
1393         (includes): Drop unused include.
1394
1395         xalloc-oversized: new module
1396         * modules/xalloc-oversized: New module.
1397         * modules/xalloc (Depends-on): Add it.
1398         * lib/xalloc.h (xalloc_oversized): Move...
1399         * lib/xalloc-oversized.h: ...into new file.
1400
1401         utimecmp: drop dependency on xmalloc
1402         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
1403         due to memory pressure.
1404         * modules/utimecmp (Depends-on): Drop xalloc.
1405
1406 2011-04-27  Eric Blake  <eblake@redhat.com>
1407
1408         getcwd: fix mingw bugs
1409         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
1410         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
1411         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
1412
1413 2011-04-27  Bruno Haible  <bruno@clisp.org>
1414
1415         mkstemps: Ensure declaration on MacOS X 10.5.
1416         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
1417         * doc/glibc-functions/mkstemps.texi: Document header file problem on
1418         MacOS X.
1419
1420 2011-04-27  Bruno Haible  <bruno@clisp.org>
1421
1422         mkstemp: More documentation.
1423         * doc/posix-functions/mkstemp.texi: Document header file problem on
1424         MacOS X.
1425
1426 2011-04-27  Bruno Haible  <bruno@clisp.org>
1427
1428         mkstemp: Tweak configure message when cross-compiling.
1429         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
1430         result as a guess.
1431
1432 2011-04-27  Bruno Haible  <bruno@clisp.org>
1433
1434         clean-temp: Clarify what it does.
1435         * lib/clean-temp.h: Add more comments.
1436         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
1437         module.
1438         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
1439         * doc/glibc-functions/mkstemps.texi: Likewise.
1440         * doc/glibc-functions/mkostemps.texi: Likewise.
1441
1442 2011-04-27  Eric Blake  <eblake@redhat.com>
1443
1444         fchdir: avoid extra chdir and fix test
1445         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
1446         getcwd-lgpl.
1447         * lib/fchdir.c (get_name): Any absolute name will do; it does not
1448         have to be canonical.
1449         (canonicalize_file_name): Drop unused macro.
1450         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
1451
1452         filenamecat-lgpl: fix licence
1453         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
1454         when it was first created.
1455
1456         linkat, renameat: add missing dependency
1457         * modules/linkat (Depends-on): Require getcwd-lgpl.
1458         * modules/renameat (Depends-on): Likewise.
1459
1460         tests: reduce dependencies
1461         * tests/test-linkat.c (main): Use lighter-weight getcwd.
1462         * tests/test-renameat.c (main): Likewise.
1463         * modules/linkat-tests (Depends-on): Relax dependency.
1464         * modules/renameat-tests (Depends-on): Likewise.
1465         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
1466         dependency explicit.
1467
1468         save-cwd: reduce default dependency
1469         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
1470         * lib/save-cwd.c: Update comments.
1471         * NEWS: Document the semantic change.
1472
1473         getcwd: enhance tests
1474         * tests/test-getcwd-lgpl.c: New file, taken from...
1475         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
1476         repeat long path stress tests from m4 probe.
1477         * modules/getcwd-lgpl-tests: New module.
1478         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
1479         * m4/getcwd-abort-bug.m4: Update comment.
1480         * m4/getcwd-path-max.m4: Likewise.
1481
1482         getcwd-lgpl: new module
1483         * modules/getcwd-lgpl: New module.
1484         * lib/getcwd-lgpl.c: New file.
1485         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1486         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1487         * modules/getcwd (configure.ac): Set C witness.
1488         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
1489
1490         getcwd: tweak comments
1491         * m4/getcwd-abort-bug.m4: Fix comments.
1492         * m4/getcwd-path-max.m4: Likewise.
1493         * m4/getcwd.m4: Likewise.
1494
1495 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1496         and Eric Blake  <eblake@redhat.com>
1497
1498         mkstemp: replace if system version uses wrong permissions
1499         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
1500         read/write mode bits set in file created by mkstemp.
1501         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
1502
1503 2011-04-27  Eric Blake  <eblake@redhat.com>
1504
1505         passfd: avoid compiler warning
1506         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
1507         Reported by Laine Stump.
1508
1509 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
1510
1511         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
1512         required by the NetBSD (and perhaps other 4.4BSD derived) join.
1513
1514 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1515         and Eric Blake  <eblake@redhat.com>
1516
1517         mkstemp: mention clean-temp module
1518         * lib/mkstemp.c: Add comment.
1519         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
1520
1521 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1522
1523         inttypes: also provide default values for 32-bit tests
1524         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
1525         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
1526
1527 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1528
1529         strtoumax: remove dependency on strtoimax
1530         This is like the strtoull change of yesterday.
1531         * modules/strtoumax (Files): Add lib/strtoimax.c.
1532         (Depends-on): Remove strtoimax and add verify.
1533
1534         inttypes-incomplete: new module
1535         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
1536         all but the PRI* and SCN* parts of gl_INTTYPES_H.
1537         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
1538         of gl_INTTYPES_H.
1539         (gl_INTTYPES_H): Rewrite in terms of these new macros.
1540         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
1541         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
1542         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
1543         * modules/strtoumax, modules/xstrtol (Depends-on):
1544         Depend on inttypes-incomplete, not inttypes.
1545         * modules/inttypes-incomplete: New module, containing the contents
1546         of the old modules/inttypes module, except that the Files: section
1547         omits m4/inttypes-pri.m4, and the configure.ac section invokes
1548         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
1549         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
1550         (Depends-on): Depend only on inttypes-incomplete.
1551         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
1552
1553         inttypes: omit now-redundant strtoimax and strtoumax work
1554         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
1555         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
1556
1557         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
1558         This supports apps that need pointers to strtoimax and strtoumax,
1559         and ports to HP-UX 11.00 64.bit, which has macros that expand to
1560         nonexistent functions.  See
1561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
1562         et seq.
1563         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
1564         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
1565         a macro.
1566         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1567
1568 2011-04-25  Simon Josefsson  <simon@josefsson.org>
1569
1570         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
1571
1572 2011-04-25  Bruno Haible  <bruno@clisp.org>
1573
1574         strtol, strtoul: Mark modules as obsolete.
1575         * modules/strtol (Status, Notice): New sections.
1576         * modules/strtoul (Status, Notice): New sections.
1577
1578 2011-04-25  Bruno Haible  <bruno@clisp.org>
1579
1580         strtod: Remove check for strtod, unless supporting old platforms.
1581         * modules/strtod-obsolete: New file.
1582         * m4/strtod-obsolete.m4: New file.
1583         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
1584         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
1585         * modules/strtod (Depends-on): Add strtod-obsolete.
1586         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
1587
1588 2011-04-25  Bruno Haible  <bruno@clisp.org>
1589
1590         strcase: Make module obsolete.
1591         * modules/strcase (Status, Notice): New sections.
1592
1593 2011-04-25  Bruno Haible  <bruno@clisp.org>
1594
1595         dup2: Remove check for dup2, unless supporting old obsolete platforms.
1596         * modules/dup2-obsolete: New file.
1597         * m4/dup2-obsolete.m4: New file.
1598         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
1599         gl_FUNC_DUP2_OBSOLETE is not also defined.
1600         * modules/dup2 (Depends-on): Add dup2-obsolete.
1601         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
1602
1603 2011-04-25  Bruno Haible  <bruno@clisp.org>
1604
1605         strnlen: Avoid memchr related link error on old obsolete platforms.
1606         * modules/memchr-obsolete: New file.
1607         * m4/memchr-obsolete.m4: New file.
1608         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
1609         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
1610         * modules/memchr (Depends-on): Add memchr-obsolete.
1611         * modules/strnlen (Depends-on): Likewise.
1612         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
1613
1614 2011-04-25  Jim Meyering  <meyering@redhat.com>
1615
1616         maint.mk: makefile_at_at_check extend and clean up
1617         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
1618         in addition to */Makefile.am.
1619         Exempt legitimate uses of @VAR@ notation, e.g.,
1620         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
1621         Remove obsolete coreutils-specific comment.
1622         Prompted by discussion here:
1623         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
1624
1625 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
1626
1627         strtoul: remove dependency on strtol
1628         This is so that 'configure' need not check for strtol merely because
1629         the application needs strtoul.
1630         * modules/strtoul (Files): Add lib/strtol.c.
1631         (Depends-on): Remove strtol.
1632
1633         strtoull: remove dependency on strtoul
1634         This is like the strtoll change.
1635         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
1636         (Depends-on): Remove strtoul.
1637
1638         strtoll: remove dependency on strtol
1639         This is so that 'configure' need not check for strtol merely because
1640         the application needs strtoll.
1641         * modules/strtoll (Files): Add lib/strtol.c.
1642         (Depends-on): Remove strtol.
1643
1644 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1645
1646         inttypes: Move some configure check to module 'imaxdiv'.
1647         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
1648         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
1649         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
1650
1651 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1652
1653         inttypes: Move some configure check to module 'imaxabs'.
1654         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
1655         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
1656         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
1657
1658 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1659
1660         inttypes: Remove configure tests that are not needed since 2009-12-31.
1661         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
1662         gl_cv_header_working_inttypes_h.
1663
1664 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1665
1666         * modules/strnlen (Depends-on): Remove memchr.
1667         The strnlen implementation doesn't need the memchr module's fixes; see
1668         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
1669
1670         strtol: remove dependency on wchar
1671         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
1672         * modules/strtol (Depends-on): Remove wchar.
1673
1674 2011-04-21  Eric Blake  <eblake@redhat.com>
1675
1676         passfd: fix test regression on Linux
1677         * modules/passfd-tests (configure.ac): Correct socketpair check.
1678
1679         passfd: speed up configure and drop unused code
1680         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
1681         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
1682         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
1683         Instead of probing at configure for unix_scm_rights_bsd44_way,
1684         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
1685         check to a struct member probe.
1686         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
1687         (sendfd, recvfd): Update preprocessor checks.
1688         * modules/passfd (Files): Reflect rename, and drop unused file.
1689         (Depends-on): Drop unused dependency.
1690
1691         passfd: allow compilation on mingw
1692         * modules/sys_socket (Depends-on): Add sys_uio.
1693         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
1694         iovec and a minimal struct msghdr.
1695         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
1696         * tests/test-sys_socket.c (main): Enhance test.
1697         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
1698         guaranteed to provide what we need.
1699         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
1700         * modules/passfd-tests (Depends-on): Add sys_wait.
1701         * tests/test-passfd.c (main): Skip test on mingw, for now.
1702         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
1703         partial 'struct msghdr' implementation.
1704
1705         sys_uio: new module
1706         * modules/sys_uio: New module.
1707         * modules/sys_uio-tests: Likewise.
1708         * lib/sys_uio.in.h: New file.
1709         * m4/sys_uio_h.m4: Likewise.
1710         * tests/test-sys_uio.c: Likewise.
1711         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
1712         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
1713
1714 2011-04-20  Jim Meyering  <meyering@redhat.com>
1715
1716         useless-if-before-free: avoid false-positive
1717         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
1718         disjunct so that it too requires a terminating ";".  Without that,
1719         this script would identify as useless one statement from gcc that
1720         was not:
1721           if (aligned_ptr)
1722             free (((void **) aligned_ptr) [-1]);
1723
1724 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
1725
1726         doc: update users.txt.
1727         * users.txt: Add barcode.
1728
1729 2011-04-19  Bruno Haible  <bruno@clisp.org>
1730
1731         ioctl: Remove link dependency on native Windows.
1732         * lib/fd-hook.h: Renamed from lib/close-hook.h.
1733         (gl_close_fn, gl_ioctl_fn): New types.
1734         (struct fd_hook): Renamed from struct close_hook. Change type of
1735         private_close_fn field. Add private_ioctl_fn field.
1736         (close_hook_fn): Add parameter for primary close method.
1737         (execute_close_hooks, execute_all_close_hooks): Likewise.
1738         (ioctl_hook_fn): New type.
1739         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
1740         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1741         argument.
1742         (unregister_fd_hook): Renamed from unregister_close_hook.
1743         * lib/fd-hook.c: Renamed from lib/close-hook.c.
1744         Don't include <unistd.h>.
1745         (close): Remove undef.
1746         (anchor): Update.
1747         (execute_close_hooks): Add argument for primary close method.
1748         (execute_all_close_hooks): Likewise.
1749         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
1750         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1751         argument. Allow each argument to be NULL.
1752         (unregister_fd_hook): Renamed from unregister_close_hook.
1753         * lib/close.c (rpl_close): Pass 'close' function pointer to
1754         execute_all_close_hooks.
1755         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
1756         (primary_ioctl): New function.
1757         (ioctl): Don't call ioctlsocket here. Instead, call
1758         execute_all_ioctl_hooks.
1759         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
1760         close method.
1761         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
1762         (fd_sockets_hook): Renamed from close_sockets_hook.
1763         (gl_sockets_startup, gl_sockets_cleanup): Update.
1764         * modules/fd-hook: Renamed from modules/close-hook. Update.
1765         * modules/close (Depends-on): Add fd-hook, remove close-hook.
1766         * modules/sockets (Depends-on): Likewise.
1767         * modules/ioctl (Depends-on): Add fd-hook.
1768         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
1769         GNULIB_SOCKET.
1770
1771 2011-04-19  Bruno Haible  <bruno@clisp.org>
1772
1773         Move the support of O_NONBLOCK in open() to the 'open' module.
1774         * modules/nonblocking (Depends-on): Remove 'open'.
1775         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
1776         gl_cv_have_open_O_NONBLOCK.
1777         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
1778         O_NONBLOCK support.
1779         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
1780
1781 2011-04-17  Bruno Haible  <bruno@clisp.org>
1782
1783         pipe2: Simplify code.
1784         * lib/pipe2.c (pipe2): Reduce code duplication.
1785
1786 2011-04-17  Bruno Haible  <bruno@clisp.org>
1787
1788         nonblocking: Add comment.
1789         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
1790
1791 2011-04-17  Bruno Haible  <bruno@clisp.org>
1792
1793         nonblocking: Add tests for sockets.
1794         * tests/test-nonblocking-socket.sh: New file.
1795         * tests/test-nonblocking-socket-main.c: New file.
1796         * tests/test-nonblocking-socket-child.c: New file.
1797         * tests/test-nonblocking-socket.h: New file.
1798         * tests/socket-server.h: New file.
1799         * tests/socket-client.h: New file.
1800         * modules/nonblocking-socket-tests: New file.
1801         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
1802
1803 2011-04-17  Bruno Haible  <bruno@clisp.org>
1804
1805         nonblocking: Add tests for pipes.
1806         * tests/test-nonblocking-pipe.sh: New file.
1807         * tests/test-nonblocking-pipe-main.c: New file.
1808         * tests/test-nonblocking-pipe-child.c: New file.
1809         * tests/test-nonblocking-pipe.h: New file.
1810         * tests/test-nonblocking-writer.h: New file.
1811         * tests/test-nonblocking-reader.h: New file.
1812         * tests/test-nonblocking-misc.h: New file.
1813         * modules/nonblocking-pipe-tests: New file.
1814         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
1815
1816 2011-04-16  Bruno Haible  <bruno@clisp.org>
1817
1818         gettext: Clarify the needed programmer actions.
1819         * modules/gettext (Notice): New field.
1820         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1821
1822 2011-04-16  Bruno Haible  <bruno@clisp.org>
1823
1824         strchrnul: Tweak last commit.
1825         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
1826         bug.
1827         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
1828         as in _GL_FUNCDECL_SYS.
1829         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
1830         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
1831
1832 2011-04-15  Eric Blake  <eblake@redhat.com>
1833
1834         strchrnul: work around cygwin bug
1835         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
1836         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
1837         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
1838         * modules/string (Makefile.am): Substitute it.
1839         * lib/string.in.h (strchrnul): Use it.
1840
1841 2011-04-15  Bruno Haible  <bruno@clisp.org>
1842
1843         Don't require lib/stdio-write.c when only module 'stdio' is used.
1844         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
1845         invocation.
1846         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
1847
1848 2011-04-14  Bruno Haible  <bruno@clisp.org>
1849
1850         Support non-blocking pipe I/O in read() on native Windows.
1851         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
1852         (read): New declaration.
1853         * lib/read.c: New file.
1854         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
1855         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
1856         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
1857         vscanf): New declarations.
1858         * lib/stdio-read.c: New file.
1859         * m4/read.m4: New file.
1860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
1861         REPLACE_READ.
1862         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
1863         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1864         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
1865         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
1866         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
1867         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1868         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1869         * modules/read: New file.
1870         * modules/nonblocking (Files): Add lib/stdio-read.c.
1871         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
1872         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
1873         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1874         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1875         * modules/pread (Depends-on): Add read.
1876         * modules/safe-read (Depends-on): Likewise.
1877         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
1878         gets, scanf, vfscanf, vscanf): Verify signatures.
1879         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
1880         problem with non-blocking pipes.
1881         * doc/posix-functions/fgetc.texi: Likewise.
1882         * doc/posix-functions/fgets.texi: Likewise.
1883         * doc/posix-functions/fread.texi: Likewise.
1884         * doc/posix-functions/fscanf.texi: Likewise.
1885         * doc/posix-functions/getc.texi: Likewise.
1886         * doc/posix-functions/getchar.texi: Likewise.
1887         * doc/posix-functions/gets.texi: Likewise.
1888         * doc/posix-functions/scanf.texi: Likewise.
1889         * doc/posix-functions/vfscanf.texi: Likewise.
1890         * doc/posix-functions/vscanf.texi: Likewise.
1891
1892 2011-04-14  Bruno Haible  <bruno@clisp.org>
1893
1894         Support non-blocking pipe I/O in write() on native Windows.
1895         * lib/write.c (rpl_write): Split a write request that failed merely
1896         because the byte count was larger than the pipe buffer's size.
1897         * doc/posix-functions/write.texi: Mention the problem with large byte
1898         counts.
1899
1900 2011-04-14  Bruno Haible  <bruno@clisp.org>
1901
1902         wchar: Ensure that wchar_t gets defined on uClibc.
1903         * lib/wchar.in.h: On uClibc, include <stddef.h>.
1904         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
1905
1906 2011-04-13  Bruno Haible  <bruno@clisp.org>
1907
1908         safe-write, full-read: Avoid unnecessary compilation units.
1909         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
1910         (Depends-on): Remove safe-read. Add ssize_t.
1911         * modules/full-read (Files): Add lib/full-write.c.
1912         (Depends-on): Add full-write.
1913
1914 2011-04-13  Bruno Haible  <bruno@clisp.org>
1915
1916         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1917         * modules/pwrite (Depends-on): Add 'write'.
1918
1919 2011-04-13  Bruno Haible  <bruno@clisp.org>
1920
1921         Support non-blocking pipe I/O in write() on native Windows.
1922         * lib/unistd.in.h (write): Enable replacement also if
1923         GNULIB_UNISTD_H_NONBLOCKING is 1.
1924         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
1925         (rpl_write): When failing to write on a non-blocking pipe, change
1926         errno from ENOSPC to EAGAIN.
1927         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
1928         putchar, puts, vfprintf, vprintf): Enable replacement also if
1929         GNULIB_STDIO_H_NONBLOCKING is 1.
1930         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
1931         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
1932         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
1933         CALL_WITH_SIGPIPE_EMULATION.
1934         (CALL_WITH_SIGPIPE_EMULATION): Use them.
1935         * m4/nonblocking.m4: New file.
1936         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
1937         for non-blocking I/O support.
1938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1939         GNULIB_UNISTD_H_NONBLOCKING.
1940         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
1941         required for non-blocking I/O support.
1942         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
1943         * modules/nonblocking (Files): Add m4/nonblocking.m4,
1944         lib/stdio-write.c, m4/asm-underscore.m4.
1945         (Depends-on): Add stdio, unistd.
1946         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
1947         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
1948         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
1949         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
1950         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
1951         problem with non-blocking pipes.
1952         * doc/posix-functions/fputc.texi: Likewise.
1953         * doc/posix-functions/fputs.texi: Likewise.
1954         * doc/posix-functions/fwrite.texi: Likewise.
1955         * doc/posix-functions/printf.texi: Likewise.
1956         * doc/posix-functions/putc.texi: Likewise.
1957         * doc/posix-functions/putchar.texi: Likewise.
1958         * doc/posix-functions/puts.texi: Likewise.
1959         * doc/posix-functions/vfprintf.texi: Likewise.
1960         * doc/posix-functions/vprintf.texi: Likewise.
1961         * doc/posix-functions/write.texi: Likewise.
1962
1963 2011-04-10  Jim Meyering  <meyering@redhat.com>
1964
1965         maint.mk: prohibit doubled words
1966         Detect them also when they're separated by a newline.
1967         There are 3 ways to customize it:
1968           - disable the test on a per file basis, as usual with rules using
1969             $(VC_LIST_EXCEPT)
1970           - replace the default doubled-word-selecting regexp (affects all files)
1971           - ignore a particular file-vs-doubled-word match
1972         I nearly used that last one to ignore the "is is" match in
1973         coreutils' NEWS file, since the text was "ls -is is ..."
1974         To do that, I would have added this line to cfg.mk:
1975           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
1976         but it would have ignored any "is is" match in NEWS.
1977         Low probability, but still...
1978         Instead, I changed the text, slightly:
1979           -  ls -is is now consistent with ls -lis in ignoring values returned
1980           +  "ls -is" is now consistent with ls -lis in ignoring values returned
1981         * top/maint.mk (prohibit_double_word_RE_): Provide default.
1982         (prohibit_doubled_word_): Define.
1983         (sc_prohibit_doubled_word): New rule.
1984         (sc_prohibit_the_the): Remove.  Subsumed by the above.
1985
1986 2011-04-10  Jim Meyering  <meyering@redhat.com>
1987
1988         maint: fix doubled-word typo in comment
1989         * m4/gethostname.m4: s/is is/it is/
1990         * m4/getdomainname.m4: Likewise.
1991
1992 2011-04-10  Jim Meyering  <meyering@redhat.com>
1993
1994         maint: remove doubled word: s/it it/it/
1995         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
1996
1997 2011-04-10  Jim Meyering  <meyering@redhat.com>
1998
1999         maint.mk: remove useless semicolon and backslash
2000         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
2001         semicolon and backslash.
2002
2003 2011-04-10  Bruno Haible  <bruno@clisp.org>
2004
2005         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
2006         * modules/stdint-tests (Depends-on): Add wchar.
2007
2008 2011-04-10  Jim Meyering  <meyering@redhat.com>
2009
2010         maint: remove doubled words in comments, e.g., s/a a/a/
2011         * lib/strptime.c (day_of_the_week): s/the the/the/
2012         * tests/test-chown.h (test_chown): s/a a/a/
2013
2014         test-chown.h: correct a cast
2015         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
2016         when the destination is a stat.st_gid.
2017
2018 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
2019
2020         getaddrinfo: Fix test for sa_len member.
2021         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
2022         include <sys/types.h> before <sys/socket.h>.
2023
2024 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
2025
2026         maint: change "can not" to "cannot"
2027         * doc/posix-functions/iconv.texi (iconv): This one crossed line
2028         boundaries.
2029
2030 2011-04-09  Jim Meyering  <meyering@redhat.com>
2031
2032         maint: change "a a" to "a"
2033         * tests/test-lchown.h (test_lchown): s/a a/a/
2034
2035         maint.mk: prohibit \<the the\>
2036         * top/maint.mk (sc_prohibit_the_the): New rule.
2037
2038         maint: fix "the the" in comment
2039         * lib/count-one-bits.h: s/the the/the/
2040
2041         maint: change "can not" to "cannot"
2042         But do not change the occurrences in maintain.texi or in
2043         build-aux/po/Makefile.in.in, which I presume comes from gettext.
2044         * doc/gnulib-tool.texi: s/can not/cannot/
2045         * doc/posix-functions/accept.texi (accept): Likewise.
2046         * doc/posix-functions/socket.texi (socket): Likewise.
2047         * lib/mbrtowc.c: Likewise.
2048
2049         maint.mk: prohibit use of "can not"
2050         * top/maint.mk (sc_prohibit_can_not): New rule.
2051         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
2052
2053 2011-04-09  Bruno Haible  <bruno@clisp.org>
2054
2055         careadlinkat: Guard against misuse of careadlinkatcwd.
2056         * lib/careadlinkat.c: Include <stdlib.h>.
2057         (careadlinkatcwd): Check that the fd argument is as expected.
2058
2059 2011-04-09  Bruno Haible  <bruno@clisp.org>
2060
2061         careadlinkat: Use common coding style.
2062         * lib/careadlinkat.c: Move gnulib includes after system includes.
2063
2064 2011-04-09  Bruno Haible  <bruno@clisp.org>
2065
2066         careadlinkat: Clarify specification.
2067         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
2068         (careadlinkatcwd): Add comment.
2069         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
2070
2071 2011-04-09  Bruno Haible  <bruno@clisp.org>
2072
2073         areadlinkat: Avoid link error on many platforms.
2074         * modules/areadlinkat (Depends-on): Add areadlink.
2075
2076 2011-04-09  Bruno Haible  <bruno@clisp.org>
2077
2078         allocator, careadlinkat: Fix double-inclusion guard.
2079         * lib/allocator.h: Fix double-inclusion guard.
2080         * lib/careadlinkat.h: Likewise.
2081
2082 2011-04-09  Bruno Haible  <bruno@clisp.org>
2083
2084         relocatable-prog-wrapper: Update after module 'areadlink' changed.
2085         * lib/relocwrapper.c: Update dependencies hierarchy.
2086         * build-aux/install-reloc: Update list of files to be compiled.
2087         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
2088         lib/allocator.[hc].
2089
2090 2011-04-08  Eric Blake  <eblake@redhat.com>
2091
2092         strftime: silence gnulib-tool warning
2093         * modules/strftime-tests (Depends-on): Drop automatic dependency.
2094
2095 2011-04-08  Bruno Haible  <bruno@clisp.org>
2096
2097         verify: Fix syntax error with GCC 4.6 in C++ mode.
2098         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
2099         (HAVE_STATIC_ASSERT): New macro.
2100         (verify_true, verify): Use 'static_assert' if it is supported and
2101         '_Static_assert' is not supported.
2102
2103 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2104
2105         allocator: New module.
2106         * modules/allocator, lib/allocator.c: New files.
2107         * lib/allocator.h (stdlib_allocator): New decl.
2108         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
2109         Remove.  Do not include <stdlib.h>.
2110         (careadlinkat): Use stdlib_allocator instead of rolling our own.
2111         * modules/careadlinkat (Files): Remove lib/allocator.h.
2112         (Depends-on): Add allocator.
2113
2114         stdlib: let modules use system malloc, realloc
2115         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
2116         if !_GL_USE_STDLIB_ALLOC.
2117         (malloc, realloc): Limit this change to a smaller scope.
2118
2119         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
2120         (malloc, realloc): Don't #undef; no longer needed.
2121         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2122         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2123         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2124         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2125         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2126         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2127         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2128         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2129
2130         careadlinkat: rename members to avoid problem
2131         * lib/allocator.h (struct allocator): Rename members from
2132         malloc/realloc to allocate/reallocate, to avoid problems if malloc
2133         and realloc are #define'd.  Reported by Eric Blake in
2134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
2135         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
2136
2137 2011-04-08  Eric Blake  <eblake@redhat.com>
2138
2139         nonblocking: reduce dependency
2140         * tests/test-nonblocking.c: Only test sockets when in use.
2141         * modules/nonblocking-tests (Depends-on): Drop socket.
2142         (Makefile.am): Link even if sockets are not present.
2143         * modules/pipe2-tests (Makefile.am): Likewise.
2144         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
2145
2146         pipe2: fix O_NONBLOCK support on mingw
2147         * modules/pipe2 (Depends-on): Add nonblocking.
2148         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
2149         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
2150         * tests/test-nonblocking.c (main): Likewise.
2151         * modules/pipe2-tests (Makefile.am): Avoid link failure.
2152
2153         fcntl-h: fix O_ACCMODE on cygwin
2154         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
2155         * lib/fcntl.in.h (O_ACCMODE): Fix it.
2156
2157         pipe-filter: drop O_NONBLOCK workarounds
2158         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
2159         * modules/pipe-filter-ii (Depends-on): Likewise.
2160         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
2161
2162         nonblocking: provide O_NONBLOCK for mingw
2163         * modules/nonblocking (Depends-on): Add open.
2164         (configure.ac): Set new witness macro.
2165         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
2166         * modules/fcntl-h (Makefile.am): Substitute it.
2167         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
2168         nonblocking module is in use.
2169         * lib/nonblocking.c: Adjust portability test.
2170         * lib/open.c (open): Don't let native open see gnulib flag.
2171         * tests/test-fcntl-h.c (main): Enhance test.
2172         * tests/test-open.h (test_open): Likewise.
2173         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
2174
2175         careadlinkat: fix compilation error on mingw
2176         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
2177         within struct allocator.
2178
2179 2011-04-06  Eric Blake  <eblake@redhat.com>
2180
2181         binary-io: relicense under LGPLv2+
2182         * modules/binary-io (License): Relax to LGPLv2+.
2183         Requested for libvirt, and required by pipe2.
2184
2185 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2186
2187         verify: use _Static_assert if available
2188         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
2189         (verify_true, verify): Use it if available.  This generates better
2190         diagnostics with GCC 4.6.0 and later.
2191
2192 2011-04-05  Bruno Haible  <bruno@clisp.org>
2193
2194         Remove leftover generated .h files after config.status changed.
2195
2196         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
2197         GL_GENERATE_ALLOCA_H.
2198         * modules/alloca-opt (Makefile.am): Remove alloca.h if
2199         GL_GENERATE_ALLOCA_H evaluates to false.
2200
2201         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
2202         GL_GENERATE_ARGZ_H.
2203         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
2204         evaluates to false.
2205
2206         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
2207         GL_GENERATE_BYTESWAP_H.
2208         * modules/byteswap (Makefile.am): Remove byteswap.h if
2209         GL_GENERATE_BYTESWAP_H evaluates to false.
2210
2211         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
2212         GL_GENERATE_ERRNO_H.
2213         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
2214         evaluates to false.
2215
2216         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
2217         GL_GENERATE_FLOAT_H.
2218         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
2219         evaluates to false.
2220
2221         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
2222         GL_GENERATE_FNMATCH_H.
2223         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
2224         GL_GENERATE_FNMATCH_H evaluates to false.
2225
2226         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
2227         GL_GENERATE_GLOB_H.
2228         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
2229         evaluates to false.
2230
2231         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
2232         automake conditional GL_GENERATE_ICONV_H.
2233         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
2234         evaluates to false.
2235
2236         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
2237         GL_GENERATE_NETINET_IN_H.
2238         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
2239         GL_GENERATE_NETINET_IN_H evaluates to false.
2240
2241         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
2242         conditional GL_GENERATE_PTHREAD_H.
2243         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
2244         * modules/pthread (Makefile.am): Remove pthread.h if
2245         GL_GENERATE_PTHREAD_H evaluates to false.
2246
2247         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
2248         GL_GENERATE_SCHED_H.
2249         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
2250         evaluates to false.
2251
2252         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
2253         conditional GL_GENERATE_SELINUX_CONTEXT_H.
2254         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
2255         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
2256
2257         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
2258         GL_GENERATE_STDARG_H.
2259         * modules/stdarg (Makefile.am): Remove stdarg.h if
2260         GL_GENERATE_STDARG_H evaluates to false.
2261
2262         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
2263         GL_GENERATE_STDBOOL_H.
2264         * modules/stdbool (Makefile.am): Remove stdbool.h if
2265         GL_GENERATE_STDBOOL_H evaluates to false.
2266
2267         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
2268         conditional GL_GENERATE_STDDEF_H.
2269         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
2270         * modules/stddef (Makefile.am): Remove stddef.h if
2271         GL_GENERATE_STDDEF_H evaluates to false.
2272
2273         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
2274         GL_GENERATE_STDINT_H.
2275         * modules/stdint (Makefile.am): Remove stdint.h if
2276         GL_GENERATE_STDINT_H evaluates to false.
2277
2278         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
2279         GL_GENERATE_SYSEXITS_H.
2280         * modules/sysexits (Makefile.am): Remove sysexits.h if
2281         GL_GENERATE_SYSEXITS_H evaluates to false.
2282
2283         Reported by Karl Berry and Ralf Wildenhues.
2284
2285 2011-04-05  Bruno Haible  <bruno@clisp.org>
2286
2287         Ensure to rebuild generated .h files when config.status has changed.
2288         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
2289         config.status.
2290         * modules/ctype (Makefile.am): Likewise.
2291         * modules/dirent (Makefile.am): Likewise.
2292         * modules/errno (Makefile.am): Likewise.
2293         * modules/fcntl-h (Makefile.am): Likewise.
2294         * modules/float (Makefile.am): Likewise.
2295         * modules/getopt-posix (Makefile.am): Likewise.
2296         * modules/glob (Makefile.am): Likewise.
2297         * modules/iconv-h (Makefile.am): Likewise.
2298         * modules/inttypes (Makefile.am): Likewise.
2299         * modules/langinfo (Makefile.am): Likewise.
2300         * modules/locale (Makefile.am): Likewise.
2301         * modules/math (Makefile.am): Likewise.
2302         * modules/netdb (Makefile.am): Likewise.
2303         * modules/netinet_in (Makefile.am): Likewise.
2304         * modules/poll-h (Makefile.am): Likewise.
2305         * modules/pthread (Makefile.am): Likewise.
2306         * modules/pty (Makefile.am): Likewise.
2307         * modules/sched (Makefile.am): Likewise.
2308         * modules/search (Makefile.am): Likewise.
2309         * modules/selinux-h (Makefile.am): Likewise.
2310         * modules/signal (Makefile.am): Likewise.
2311         * modules/spawn (Makefile.am): Likewise.
2312         * modules/stdarg (Makefile.am): Likewise.
2313         * modules/stdbool (Makefile.am): Likewise.
2314         * modules/stddef (Makefile.am): Likewise.
2315         * modules/stdint (Makefile.am): Likewise.
2316         * modules/stdio (Makefile.am): Likewise.
2317         * modules/stdlib (Makefile.am): Likewise.
2318         * modules/string (Makefile.am): Likewise.
2319         * modules/strings (Makefile.am): Likewise.
2320         * modules/sys_file (Makefile.am): Likewise.
2321         * modules/sys_ioctl (Makefile.am): Likewise.
2322         * modules/sys_select (Makefile.am): Likewise.
2323         * modules/sys_socket (Makefile.am): Likewise.
2324         * modules/sys_stat (Makefile.am): Likewise.
2325         * modules/sys_time (Makefile.am): Likewise.
2326         * modules/sys_times (Makefile.am): Likewise.
2327         * modules/sys_utsname (Makefile.am): Likewise.
2328         * modules/sys_wait (Makefile.am): Likewise.
2329         * modules/sysexits (Makefile.am): Likewise.
2330         * modules/termios (Makefile.am): Likewise.
2331         * modules/time (Makefile.am): Likewise.
2332         * modules/unistd (Makefile.am): Likewise.
2333         * modules/wchar (Makefile.am): Likewise.
2334         * modules/wctype-h (Makefile.am): Likewise.
2335         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
2336
2337 2011-04-05  Bruno Haible  <bruno@clisp.org>
2338
2339         pipe2: Relicense under LGPLv2+.
2340         * modules/pipe2 (License): Change to LGPLv2+.
2341         Requested by Eric Blake, for libvirt.
2342
2343 2011-04-05  Bruce Korb  <bkorb@gnu.org>
2344
2345         bootstrap: compute gnulib_extra_files after updating build_aux
2346         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
2347         change build_aux or also supply gnulib_extra_files.  Handle correctly.
2348
2349 2011-04-05  Eric Blake  <eblake@redhat.com>
2350
2351         bootstrap: preserve git whitelist item sorting
2352         * build-aux/bootstrap (sort_patterns): New function.
2353         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
2354
2355 2011-04-05  Simon Josefsson  <simon@josefsson.org>
2356
2357         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
2358         sc_space_tab check.
2359
2360 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
2361
2362         areadlink, areadlinkat: rewrite in terms of careadlinkat
2363         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
2364         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
2365         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
2366         (malloc, realloc): Remove #undefs.
2367         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
2368         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
2369         readlink, ssize_t, stdint, unistd.
2370         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
2371         areadlink, stdint.
2372
2373         careadlinkat: new module
2374         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
2375         * modules/careadlinkat: New files, written by me with
2376         a review and feedback from Ben Pfaff in
2377         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
2378
2379 2011-04-01  Bruno Haible  <bruno@clisp.org>
2380
2381         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
2382         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
2383         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
2384         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2385         Reported by Bruce Korb <bruce.korb@gmail.com>.
2386
2387 2011-04-01  Bruno Haible  <bruno@clisp.org>
2388
2389         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
2390         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
2391         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
2392         * modules/wcpcpy (Depends-on): Add extensions.
2393         * modules/wcpncpy (Depends-on): Likewise.
2394         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
2395         systems.
2396         * doc/posix-functions/wcpncpy.texi: Likewise.
2397         * doc/posix-functions/wcwidth.texi: Likewise.
2398
2399 2011-03-31  Eric Blake  <eblake@redhat.com>
2400
2401         nonblocking: fix mingw test failures
2402         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
2403         non-blocking flag on regular file.
2404         (get_nonblocking_flag): Set errno on invalid fd.
2405         * tests/test-nonblocking.c (main): Avoid test failure on
2406         directories if fchdir is not active.
2407         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
2408
2409 2011-03-31  Bruno Haible  <bruno@clisp.org>
2410
2411         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
2412         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
2413         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
2414         Reported by Simon Josefsson <simon@josefsson.org>.
2415
2416 2011-03-31  Bruno Haible  <bruno@clisp.org>
2417         and Eric Blake  <eblake@redhat.com>
2418
2419         nonblocking: new module
2420         * modules/nonblocking: New module.
2421         * modules/nonblocking-tests: Likewise.
2422         * lib/nonblocking.h: New file.
2423         * lib/nonblocking.c: Likewise.
2424         * tests/test-nonblocking.c: New test.
2425         * lib/ioctl.c (ioctl) [mingw]: Update comment.
2426
2427 2011-03-30  Bruno Haible  <bruno@clisp.org>
2428
2429         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
2430         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
2431         instead of 'printf' format for GCC >= 4.4.
2432         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
2433         (fprintf, printf, vfprintf, vprintf): Declare with
2434         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
2435         the system's vfprintf() function.
2436         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
2437
2438 2011-03-30  Eric Blake  <eblake@redhat.com>
2439
2440         passfd: fix scoping bug
2441         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
2442         before sendmsg/recvmsg.
2443
2444         passfd: standardize coding conventions
2445         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
2446         can be learned at compile time.
2447         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
2448         ifdefs.
2449         (sendfd, recvfd): Follow gnulib code conventions.
2450
2451         passfd: fix incorrect sendmsg arguments
2452         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
2453         incorrect msg_controllen value.
2454         * modules/passfd-tests (Depends-on): Check for alarm.
2455         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
2456         Reported by Bastien ROUCARIES.
2457
2458 2011-03-30  Bruno Haible  <bruno@clisp.org>
2459
2460         c-strcasestr: Relicense under LGPLv2+.
2461         * modules/c-strcasestr (License): Change to LGPLv2+.
2462         Requested by Eric Blake, for libvirt.
2463
2464 2011-03-30  Simon Josefsson  <simon@josefsson.org>
2465
2466         * users.txt: Add libidn2.  Fix libtasn1 link.
2467
2468 2011-03-30  Jim Meyering  <meyering@redhat.com>
2469
2470         tests: readlink* ("",... fails with EINVAL on newer kernels
2471         readlink and readlinkat have typically failed with ENOENT for
2472         the invalid, empty file name,  "".  However, with the advent
2473         of linux-2.6.39, they fail with EINVAL.
2474         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
2475         when operating on the empty file name.
2476         * tests/test-readlink.h (test_readlink): Likewise.
2477
2478 2011-03-29  Bruno Haible  <bruno@clisp.org>
2479
2480         Relicense some modules under LGPLv2+, for libidn2.
2481         * modules/array-mergesort (License): Change to LGPLv2+.
2482         * modules/c-strcaseeq (License): Likewise.
2483         * modules/striconveh (License): Likewise.
2484         * modules/striconveha (License): Likewise.
2485         * modules/uniconv/base (License): Likewise.
2486         * modules/uniconv/u8-conv-from-enc (License): Likewise.
2487         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
2488         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
2489         * modules/unictype/base (License): Likewise.
2490         * modules/unictype/bidiclass-of (License): Likewise.
2491         * modules/unictype/category-M (License): Likewise.
2492         * modules/unictype/category-none (License): Likewise.
2493         * modules/unictype/category-of (License): Likewise.
2494         * modules/unictype/category-test (License): Likewise.
2495         * modules/unictype/category-test-withtable (License): Likewise.
2496         * modules/unictype/combining-class (License): Likewise.
2497         * modules/unictype/joiningtype-of (License): Likewise.
2498         * modules/unictype/scripts (License): Likewise.
2499         * modules/uninorm/base (License): Likewise.
2500         * modules/uninorm/canonical-decomposition (License): Likewise.
2501         * modules/uninorm/composition (License): Likewise.
2502         * modules/uninorm/decompose-internal (License): Likewise.
2503         * modules/uninorm/decomposition-table (License): Likewise.
2504         * modules/uninorm/nfc (License): Likewise.
2505         * modules/uninorm/nfd (License): Likewise.
2506         * modules/uninorm/u32-normalize (License): Likewise.
2507         * modules/unistr/base (License): Likewise.
2508         * modules/unistr/u32-cpy (License): Likewise.
2509         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
2510         * modules/unistr/u32-to-u8 (License): Likewise.
2511         * modules/unistr/u32-uctomb (License): Likewise.
2512         * modules/unistr/u8-check (License): Likewise.
2513         * modules/unistr/u8-mblen (License): Likewise.
2514         * modules/unistr/u8-mbtouc (License): Likewise.
2515         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
2516         * modules/unistr/u8-mbtoucr (License): Likewise.
2517         * modules/unistr/u8-prev (License): Likewise.
2518         * modules/unistr/u8-strlen (License): Likewise.
2519         * modules/unistr/u8-to-u32 (License): Likewise.
2520         * modules/unistr/u8-uctomb (License): Likewise.
2521         * modules/unitypes (License): Likewise.
2522         Requested by Simon Josefsson.
2523
2524 2011-03-29  Simon Josefsson  <simon@josefsson.org>
2525
2526         lib-symbol-visibility: Add a notice.
2527         * modules/lib-symbol-visibility (Notice): New field.
2528
2529 2011-03-29  Bruno Haible  <bruno@clisp.org>
2530
2531         getaddrinfo: Doc fix.
2532         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
2533         section "fixed in Gnulib".
2534
2535 2011-03-28  Simon Josefsson  <simon@josefsson.org>
2536
2537         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
2538         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
2539
2540 2011-03-26  Bruno Haible  <bruno@clisp.org>
2541
2542         unictype/property-byname: Reduce the number of load-time relocations.
2543         * lib/unictype/pr_byname.c: Include <stdlib.h>.
2544         (UC_PROPERTY_INDEX_*): New enumeration values.
2545         (uc_property_byname): Convert an index from the lookup table to an
2546         uc_property_t.
2547         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
2548         values.
2549
2550 2011-03-26  Bruno Haible  <bruno@clisp.org>
2551
2552         unictype/property-byname: Allow omitted word separators and aliases.
2553         * lib/unictype/pr_byname.gperf: Add property names without word
2554         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
2555         for 'space'.
2556
2557 2011-03-26  Bruno Haible  <bruno@clisp.org>
2558
2559         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
2560         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
2561         also hyphens to space.
2562         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
2563         without spaces.
2564         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
2565
2566 2011-03-26  Bruno Haible  <bruno@clisp.org>
2567
2568         unictype/joiningtype-byname: Recognize long names as well.
2569         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
2570         a long name.
2571         * lib/unictype/joiningtype_byname.c: Include <string.h>,
2572         unictype/joiningtype_byname.h.
2573         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
2574         * lib/unictype/joiningtype_byname.gperf: New file.
2575         * modules/unictype/joiningtype-byname (Files): Add
2576         lib/unictype/joiningtype_byname.gperf.
2577         (Depends-on): Add gperf.
2578         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
2579         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
2580         long names.
2581
2582         Tests for module 'unictype/joiningtype-longname'.
2583         * modules/unictype/joiningtype-longname-tests: New file.
2584         * tests/unictype/test-joiningtype_longname.c: New file.
2585
2586         New module 'unictype/joiningtype-longname'.
2587         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
2588         * lib/unictype/joiningtype_longname.c: New file.
2589         * modules/unictype/joiningtype-longname: New file.
2590         * modules/unictype/joiningtype-all (Depends-on): Add
2591         unictype/joiningtype-longname.
2592
2593 2011-03-26  Bruno Haible  <bruno@clisp.org>
2594
2595         unictype/bidiclass-byname: Recognize long names as well.
2596         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
2597         name.
2598         * lib/unictype/bidi_byname.c: Include <string.h>,
2599         unictype/bidi_byname.h.
2600         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
2601         * lib/unictype/bidi_byname.gperf: New file.
2602         * modules/unictype/bidiclass-byname (Files): Add
2603         lib/unictype/bidi_byname.gperf.
2604         (Depends-on): Add gperf.
2605         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
2606         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
2607         long names.
2608
2609         Tests for module 'unictype/bidiclass-longname'.
2610         * modules/unictype/bidiclass-longname-tests: New file.
2611         * tests/unictype/test-bidi_longname.c: New file.
2612
2613         New module 'unictype/bidiclass-longname'.
2614         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
2615         * lib/unictype/bidi_longname.c: New file.
2616         * modules/unictype/bidiclass-longname: New file.
2617         * modules/unictype/bidiclass-all (Depends-on): Add
2618         unictype/bidiclass-longname.
2619
2620 2011-03-26  Bruno Haible  <bruno@clisp.org>
2621
2622         unictype/bidi*: Rename modules.
2623         * modules/unictype/bidiclass-all: Renamed from
2624         modules/unictype/bidicategory-all.
2625         * modules/unictype/bidiclass-name: Renamed from
2626         modules/unictype/bidiclass-name.
2627         (Description): Update.
2628         * modules/unictype/bidiclass-name-tests: Renamed from
2629         modules/unictype/bidicategory-name-tests.
2630         * modules/unictype/bidiclass-byname: Renamed from
2631         modules/unictype/bidicategory-byname.
2632         (Description): Update.
2633         * modules/unictype/bidiclass-byname-tests: Renamed from
2634         modules/unictype/bidicategory-byname-tests.
2635         * modules/unictype/bidiclass-of: Renamed from
2636         modules/unictype/bidicategory-of.
2637         (Description): Update.
2638         * modules/unictype/bidiclass-of-tests: Renamed from
2639         modules/unictype/bidicategory-of-tests.
2640         * modules/unictype/bidiclass-test: Renamed from
2641         modules/unictype/bidicategory-test.
2642         (Description): Update.
2643         * modules/unictype/bidiclass-test-tests: Renamed from
2644         modules/unictype/bidicategory-test-tests.
2645         * modules/unictype/bidicategory-all: New file, a simple redirection.
2646         * modules/unictype/bidicategory-name: Likewise.
2647         * modules/unictype/bidicategory-byname: Likewise.
2648         * modules/unictype/bidicategory-of: Likewise.
2649         * modules/unictype/bidicategory-test: Likewise.
2650         * modules/unictype/property-bidi-* (Dependencies): Update.
2651         * lib/unictype/bidi_*.c: Update comment.
2652
2653 2011-03-26  Bruno Haible  <bruno@clisp.org>
2654
2655         unictype/bidi*: Rename functions, part 2.
2656         * modules/unictype/bidicategory-name (configure.ac): Update required
2657         libunistring version.
2658         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
2659
2660 2011-03-25  Bruno Haible  <bruno@clisp.org>
2661
2662         New module 'unictype/combining-class-all'.
2663         * modules/unictype/combining-class-all: New file.
2664
2665         Tests for module 'unictype/combining-class-byname'.
2666         * modules/unictype/combining-class-byname-tests: New file.
2667         * tests/unictype/test-combiningclass_byname.c: New file.
2668
2669         New module 'unictype/combining-class-byname'.
2670         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
2671         * lib/unictype/combiningclass_byname.c: New file.
2672         * lib/unictype/combiningclass_byname.gperf: New file.
2673         * modules/unictype/combining-class-byname: New file.
2674
2675         Tests for module 'unictype/combining-class-longname'.
2676         * modules/unictype/combining-class-longname-tests: New file.
2677         * tests/unictype/test-combiningclass_longname.c: New file.
2678
2679         New module 'unictype/combining-class-longname'.
2680         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
2681         * lib/unictype/combiningclass_longname.c: New file.
2682         * modules/unictype/combining-class-longname: New file.
2683
2684         Tests for module 'unictype/combining-class-name'.
2685         * modules/unictype/combining-class-name-tests: New file.
2686         * tests/unictype/test-combiningclass_name.c: New file.
2687
2688         New module 'unictype/combining-class-name'.
2689         * lib/unictype.in.h (uc_combining_class_name): New declaration.
2690         * lib/unictype/combiningclass_name.c: New file.
2691         * modules/unictype/combining-class-name: New file.
2692
2693 2011-03-25  Bruno Haible  <bruno@clisp.org>
2694
2695         unictype/combining-class: Rename source files.
2696         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
2697         of unictype/combining.h.
2698         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
2699         Update.
2700         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
2701         * modules/unictype/combining-class (Description): Fix.
2702         (Files, Makefile.am): Update.
2703         * tests/unictype/test-combiningclass.c: Renamed from
2704         tests/unictype/test-combining.c.
2705         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
2706
2707 2011-03-25  Bruno Haible  <bruno@clisp.org>
2708
2709         unictype: Update list of canonical combining classes.
2710         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
2711
2712 2011-03-25  Bruno Haible  <bruno@clisp.org>
2713
2714         unictype/category-byname: Recognize long names as well.
2715         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
2716         a long name.
2717         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
2718         unictype/categ_byname.h.
2719         (UC_CATEGORY_INDEX_*): New enumeration values.
2720         (uc_general_category_byname): Use uc_general_category_lookup and
2721         convert from index to value.
2722         * lib/unictype/categ_byname.gperf: New file.
2723         * modules/unictype/category-byname (Files): Add
2724         lib/unictype/categ_byname.gperf.
2725         (Depends-on): Add gperf.
2726         (Makefile.am): Add rule for generating unictype/categ_byname.h.
2727         * tests/unictype/test-categ_byname.c (main): Test the recognition of
2728         long names.
2729
2730         Tests for module 'unictype/category-longname'.
2731         * modules/unictype/category-longname-tests: New file.
2732         * tests/unictype/test-categ_longname.c: New file.
2733
2734         New module 'unictype/category-longname'.
2735         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
2736         * lib/unictype/categ_longname.c: New file.
2737         * modules/unictype/category-longname: New file.
2738         * modules/unictype/category-all (Depends-on): Add it.
2739
2740 2011-03-25  Bruno Haible  <bruno@clisp.org>
2741
2742         Tests for module 'unictype/category-LC'.
2743         * modules/unictype/category-LC-tests: New file.
2744         * tests/unictype/test-categ_LC.c: New file, automatically generated.
2745
2746         New module 'unictype/category-LC'.
2747         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
2748         (UC_CATEGORY_LC): New declaration.
2749         (UC_CASED_LETTER): New macro.
2750         * lib/gen-uni-tables.c (is_category_LC): New function.
2751         (output_categories): Also handle category LC.
2752         (UC_CATEGORY_MASK_LC): New enumeration value.
2753         (general_category_byname): Also handle category LC.
2754         * lib/unictype/categ_LC.c: New file.
2755         * lib/unictype/categ_LC.h: New file, automatically generated.
2756         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
2757         category LC.
2758         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
2759         * modules/unictype/category-LC: New file.
2760         * modules/unictype/category-byname (Depends-on): Add
2761         unictype/category-LC.
2762         * modules/unictype/category-all (Depends-on): Likewise.
2763
2764 2011-03-25  Eric Blake  <eblake@redhat.com>
2765
2766         xmalloc: revert yesterday's regression
2767         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
2768         realloc's underlying behavior (allowing allocation of zero-size
2769         objects, especially if malloc-gnu is also in use).
2770
2771 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
2772
2773         maint.mk: add missing version to VC-tag
2774         * top/maint.mk: git tag was missing actual tag name; add it.
2775
2776         valgrind: do leak checking, and exit with code 1 on error (not 0)
2777         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
2778         to VALGRIND.
2779
2780 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
2781
2782         posix-modules: say what it does.
2783         * posix-modules: Add a line to the --help output saying what it does.
2784
2785 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
2786
2787         xmalloc: Do not leak if underlying realloc is C99 compatible.
2788         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
2789         This avoids a leak on C99-based systems.  See
2790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
2791
2792 2011-03-24  Eric Blake  <eblake@redhat.com>
2793
2794         realloc: document portability problem
2795         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
2796         passing 0 size to realloc.
2797
2798 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
2799
2800         doc: update users.txt
2801         * users.txt: Add cvsps, tmpwatch
2802
2803 2011-03-23  Matt Rice  <ratmice@gmail.com>
2804
2805         doc: update users.txt
2806         * users.txt: Add gdb.
2807
2808 2011-03-23  Jim Meyering  <meyering@redhat.com>
2809
2810         doc: update users.txt
2811         Looking through matches up to the following URL (there are still
2812         several more pages), I found several projects that use gnulib:
2813         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
2814         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
2815         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
2816
2817 2011-03-22  Bruno Haible  <bruno@clisp.org>
2818
2819         unictype/bidi*: Rename functions.
2820         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
2821         uc_bidi_class, uc_is_bidi_class): New declarations.
2822         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
2823         uc_bidi_category_byname.
2824         (uc_bidi_category_byname): New function.
2825         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
2826         u_bidi_category_name.
2827         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
2828         (uc_bidi_category_name): New function.
2829         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
2830         uc_bidi_category.
2831         (uc_bidi_category): New function.
2832         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
2833         uc_is_bidi_category. Invoke uc_bidi_class.
2834         (uc_is_bidi_category): New function.
2835         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
2836         instead of uc_bidi_category_byname.
2837         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
2838         instead of uc_bidi_category_name.
2839         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
2840         uc_bidi_category.
2841         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
2842         instead of uc_is_bidi_category.
2843
2844 2011-03-21  Bruno Haible  <bruno@clisp.org>
2845
2846         New module 'unictype/joininggroup-all'.
2847         * modules/unictype/joininggroup-all: New file.
2848
2849         Tests for module 'unictype/joininggroup-of'.
2850         * modules/unictype/joininggroup-of-tests: New file.
2851         * tests/unictype/test-joininggroup_of.c: New file.
2852         * tests/unictype/test-joininggroup_of.h: New file, automatically
2853         generated by gen-uni-tables.
2854
2855         New module 'unictype/joininggroup-of'.
2856         * modules/unictype/joininggroup-of: New file.
2857         * lib/unictype/joininggroup_of.c: New file.
2858         * lib/unictype/joininggroup_of.h: New file, automatically generated by
2859         gen-uni-tables.
2860
2861         Tests for module 'unictype/joininggroup-byname'.
2862         * modules/unictype/joininggroup-byname-tests: New file.
2863         * tests/unictype/test-joininggroup_byname.c: New file.
2864
2865         New module 'unictype/joininggroup-byname'.
2866         * modules/unictype/joininggroup-byname: New file.
2867         * lib/unictype/joininggroup_byname.c: New file.
2868         * lib/unictype/joininggroup_byname.gperf: New file.
2869
2870         Tests for module 'unictype/joininggroup-name'.
2871         * modules/unictype/joininggroup-name-tests: New file.
2872         * tests/unictype/test-joininggroup_name.c: New file.
2873
2874         New module 'unictype/joininggroup-name'.
2875         * modules/unictype/joininggroup-name: New file.
2876         * lib/unictype/joininggroup_name.c: New file.
2877         * lib/unictype/joininggroup_name.h: New file.
2878
2879         New module 'unictype/joiningtype-all'.
2880         * modules/unictype/joiningtype-all: New file.
2881
2882         Tests for module 'unictype/joiningtype-of'.
2883         * modules/unictype/joiningtype-of-tests: New file.
2884         * tests/unictype/test-joiningtype_of.c: New file.
2885         * tests/unictype/test-joiningtype_of.h: New file, automatically
2886         generated by gen-uni-tables.
2887
2888         New module 'unictype/joiningtype-of'.
2889         * modules/unictype/joiningtype-of: New file.
2890         * lib/unictype/joiningtype_of.c: New file.
2891         * lib/unictype/joiningtype_of.h: New file, automatically generated by
2892         gen-uni-tables.
2893
2894         Tests for module 'unictype/joiningtype-byname'.
2895         * modules/unictype/joiningtype-byname-tests: New file.
2896         * tests/unictype/test-joiningtype_byname.c: New file.
2897
2898         New module 'unictype/joiningtype-byname'.
2899         * modules/unictype/joiningtype-byname: New file.
2900         * lib/unictype/joiningtype_byname.c: New file.
2901
2902         Tests for module 'unictype/joiningtype-name'.
2903         * modules/unictype/joiningtype-name-tests: New file.
2904         * tests/unictype/test-joiningtype_name.c: New file.
2905
2906         New module 'unictype/joiningtype-name'.
2907         * modules/unictype/joiningtype-name: New file.
2908         * lib/unictype/joiningtype_name.c: New file.
2909
2910         unictype: Add support for Arabic shaping properties.
2911         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
2912         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
2913         declarations.
2914         (UC_JOINING_GROUP_*): New enumeration values.
2915         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
2916         declarations.
2917         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2918         (unicode_joining_type): New variable.
2919         (UC_JOINING_GROUP_*): New enumeration values.
2920         (unicode_joining_group): New variable.
2921         (fill_arabicshaping, joining_type_as_c_identifier,
2922         output_joining_type_test, output_joining_type,
2923         joining_group_as_c_identifier, output_joining_group_test,
2924         output_joining_group): New functions.
2925         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
2926         fill_arabicshaping and output_joining_type_test, output_joining_type,
2927         output_joining_group_test, output_joining_group.
2928         Reported by Simon Josefsson.
2929
2930 2011-03-21  Jim Meyering  <meyering@redhat.com>
2931
2932         strftime: fix a bug in yesterday's change
2933         * lib/strftime.c (add): Accommodate width's initial value of -1.
2934         Otherwise, nstrftime would copy uninitialized data into
2935         the result buffer.
2936
2937 2011-03-21  Jim Meyering  <meyering@redhat.com>
2938
2939         tests: add strftime-tests module
2940         * tests/test-strftime.c: New file.
2941         * modules/strftime-tests: New module.
2942
2943 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2944
2945         strftime: don't assume a byte count fits in 'int'
2946         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
2947         found this problem by static analysis, using gcc -Wstrict-overflow
2948         (GCC 4.5.2, x86-64).  This reported an optimization that depended
2949         on an integer overflow having undefined behavior, but it turns out
2950         that the argument is a size, which might not fit in 'int' anyway,
2951
2952 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2953
2954         stdio: don't require ignore_value around fwrite
2955
2956         This patch works around libc bug 11959
2957         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
2958         Without this patch, applications must often write
2959         ignore_value (fwrite (...)) even though the ignore_value is
2960         not helpful here.  It's common to write many objects, using
2961         fwrite/printf/etc., and then use ferror to detect output error.
2962
2963         I considered making this patch optional, but decided against it,
2964         because libc is obviously being inconsistent here: there is no
2965         reason libc should insist that user code must inspect fwrite
2966         return's value without also insisting that it inspect printf's,
2967         putchar's, etc.  If user code wants to have a strict style where
2968         all these functions' values are checked (so that ferror need not
2969         be checked), we could add support for that style in a new gnulib
2970         module, but in the meantime it's better to be consistent and to
2971         support common usage.
2972
2973         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
2974         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
2975         that we are compiling in checking mode, and if not C++, and
2976         if not already wrapping fwrite for some other reason.
2977         (fwrite): #define to rpl_fwrite if the latter is defined.
2978
2979 2011-03-20  Bruno Haible  <bruno@clisp.org>
2980
2981         verror: Fix compilation error introduced on 2011-02-13.
2982         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
2983         instead of __attribute__.
2984         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2985
2986 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2987             Bruno Haible  <bruno@clisp.org>
2988
2989         socklen: do not depend on sys_socket
2990         While trying to modify Emacs to use gnulib's socklen module,
2991         I discovered a circular dependency: socklen depends on sys_socket
2992         and vice versa.  Emacs can use socklen, but it does not need
2993         sys_socket because it has its own substitute for sys/socket.h.
2994         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
2995         gl_TYPE_SOCKLEN_T.
2996         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
2997         gl_PREREQ_SYS_H_SOCKET.
2998         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
2999         gl_PREREQ_SYS_H_SOCKET.
3000         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
3001         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
3002         * modules/socklen (Depends-on): Do not depend on sys_socket.
3003         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
3004
3005 2011-03-20  Jim Meyering  <meyering@redhat.com>
3006
3007         maint.mk: sort file names *after* new transformation
3008         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
3009         prefix would have led to an unwarranted failure in GNU parted.
3010         Sort after that transformation.
3011
3012 2011-03-19  Jim Meyering  <meyering@redhat.com>
3013
3014         maint.mk: fix po-file syntax-check rule
3015         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
3016         Patch by Bruno Haible.
3017
3018 2011-03-19  Bruno Haible  <bruno@clisp.org>
3019
3020         socklen: Update comment.
3021         * m4/socklen.m4: Update comment about platforms.
3022
3023 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3024             Bruno Haible  <bruno@clisp.org>
3025
3026         inet_ntop, inet_pton: Simplify.
3027         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
3028         documented to provide socklen_t and we already depend on sys_socket.
3029         * modules/inet_pton (Depends-on): Likewise.
3030         * lib/arpa_inet.in.h: Adjust comment.
3031
3032 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3033             Bruno Haible  <bruno@clisp.org>
3034
3035         netdb: Simplify.
3036         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
3037         documented to provide socklen_t and we already depend on sys_socket.
3038         * lib/netdb.in.h: Adjust comment.
3039
3040 2011-03-19  Bruno Haible  <bruno@clisp.org>
3041
3042         sys_socket, netdb: Document problem with socklen_t.
3043         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
3044         platforms.
3045         * doc/posix-headers/netdb.texi: Likewise.
3046
3047 2011-03-18  Eric Blake  <eblake@redhat.com>
3048
3049         maint.mk: let po check work in VPATH build
3050         * top/maint.mk (po_file): Allow cfg.mk override.
3051         (sc_po_check): Allow VPATH use.
3052         Reported by Jiri Denemark.
3053
3054 2011-03-16  Jim Meyering  <meyering@redhat.com>
3055
3056         maint.mk: allow fine-grained syntax-check exclusion via Make variables
3057         Before, you would have had to create one .x-sc_ file per rule in order
3058         to exempt offending files.  Now, you may instead use a Make variable --
3059         usually defined in cfg.mk -- whose name identifies the affected rule.
3060         * top/maint.mk (_sc_excl): Define.
3061         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
3062         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
3063
3064 2011-03-13  Bruno Haible  <bruno@clisp.org>
3065
3066         ignore-value tests: Avoid warnings.
3067         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
3068         empty for gcc < 3.4.
3069
3070 2011-03-13  Bruno Haible  <bruno@clisp.org>
3071
3072         passfd: Fix link error on Solaris.
3073         * modules/passfd (Description): Correct.
3074         (Depends-on): Add socketlib.
3075         (Link): New section.
3076         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
3077
3078 2011-03-13  Bruno Haible  <bruno@clisp.org>
3079
3080         passfd: Fix link error on AIX 5.2.
3081         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
3082
3083 2011-03-13  Bruno Haible  <bruno@clisp.org>
3084
3085         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
3086         * lib/sys_socket.in.h: Include <stddef.h>.
3087         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
3088         CMSG_FIRSTHDR. Remove unused variable.
3089
3090 2011-03-13  Bruno Haible  <bruno@clisp.org>
3091
3092         passfd: Fix compilation error on OpenBSD.
3093         * lib/passfd.c: Include <sys/uio.h>.
3094
3095 2011-03-13  Bruno Haible  <bruno@clisp.org>
3096
3097         passfd test: Fix warnings.
3098         * tests/test-passfd.c: Include <sys/wait.h>.
3099         (main): Fix typo.
3100
3101 2011-03-13  Bruno Haible  <bruno@clisp.org>
3102
3103         passfd module, part 4, tweaks.
3104         * tests/test-passfd.c: Reorder includes.
3105         (main): Fix perror and printf calls.
3106
3107 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3108
3109         passfd module, part 4.
3110         * modules/passfd-tests: New file.
3111         * tests/test-passfd.c: New file.
3112
3113 2011-03-13  Jim Meyering  <meyering@redhat.com>
3114
3115         Makefile: rely on GNU make; derive syntax-check rule names
3116         Rather than requiring that each sc_ rule be listed as a dependent
3117         of "check", use features of GNU make to derive the list.
3118         * Makefile (syntax-check-rules): Define.
3119         (check): Depend on the new variable, not the hard-coded list.
3120
3121 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
3122             Bruno Haible  <bruno@clisp.org>
3123
3124         passfd module, part 3.
3125         * lib/passfd.h (recvfd): Add a flags argument.
3126         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
3127         (recvfd): Add a flags argument.
3128         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
3129         exists.
3130         * modules/passfd (Depends-on): Add cloexec.
3131         Suggested by Eric Blake.
3132
3133 2011-03-13  Bruno Haible  <bruno@clisp.org>
3134
3135         passfd module, part 2, tweaks.
3136         * modules/passfd (Files): Reorder.
3137         (Depends-on): Remove errno.
3138         (Include): Remove <sys/socket.h>, <sys/un.h>.
3139         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
3140         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
3141         specification header. Include <sys/socket.h> always. Don't include
3142         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
3143         (sendfd): Clarify that it sets errno when it fails.
3144         (recvfd): Fix specification.
3145
3146 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3147
3148         passfd module, part 2.
3149         * modules/passfd: New file.
3150         * lib/passfd.h: New file.
3151         * lib/passfd.c: New file.
3152
3153 2011-03-12  Bruno Haible  <bruno@clisp.org>
3154
3155         wcswidth, mbswidth: Avoid integer overflow.
3156         * lib/wcswidth.c: Include <limits.h>.
3157         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
3158         * lib/mbswidth.c: Include <limits.h>.
3159         (mbsnwidth): Avoid 'int' overflow.
3160         Reported by Jim Meyering.
3161
3162 2011-03-12  Bruno Haible  <bruno@clisp.org>
3163
3164         futimens, utimensat: Avoid endless recursion on Solaris 10.
3165         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
3166         Solaris.
3167         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
3168         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
3169
3170 2011-03-11  Jim Meyering  <meyering@redhat.com>
3171
3172         maint.mk: relax a regexp to accommodate other formatting styles
3173         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
3174         between "ngettext" and the following "(".
3175
3176 2011-03-11  Pádraig Brady <P@draigBrady.com>
3177
3178         maint.mk: suppress a false positive warning
3179         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
3180         diagnostics are marked with ngettext.
3181
3182 2011-03-10  Eric Blake  <eblake@redhat.com>
3183
3184         wchar: add explicit dependencies, for Tru64
3185         * modules/mbmemcasecoll (Depends-on): Add wchar.
3186         * modules/mbtowc (Depends-on): Likewise.
3187         * modules/vasnprintf (Depends-on): Likewise.
3188         * modules/unistdio/u-printf-args (Depends-on): Likewise.
3189         * modules/wctomb (Depends-on): Likewise.
3190         Reported by Peter O'Gorman.
3191
3192 2011-03-08  Bruno Haible  <bruno@clisp.org>
3193
3194         passfd module, part 1, tweaks.
3195         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
3196         Improve indentation. Improve AC_MSG_CHECKING messages.
3197         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
3198         gl_SOCKET_FAMILIES.
3199
3200 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3201
3202         passfd module, part 1.
3203         * m4/afunix.m4: New file.
3204         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
3205         sockets.
3206
3207 2011-03-08  Bruno Haible  <bruno@clisp.org>
3208
3209         regex-quote: New API.
3210         * lib/regex-quote.h: Include <stdbool.h>.
3211         (struct regex_quote_spec): New type.
3212         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3213         New declarations.
3214         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3215         'const struct regex_quote_spec *' argument.
3216         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
3217         (pcre_special): New constant.
3218         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3219         New functions.
3220         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3221         'const struct regex_quote_spec *' argument.
3222         * modules/regex-quote (Depends-on): Add stdbool.
3223         * tests/test-regex-quote.c (check): Update for new API. Add test for
3224         anchored results.
3225         * NEWS: Mention the API change.
3226         Reported by Reuben Thomas and Eric Blake.
3227
3228 2011-03-06  Bruno Haible  <bruno@clisp.org>
3229
3230         regex-quote: Fix creation of POSIX extended regular expressions.
3231         * lib/regex-quote.c (ere_special): Add grouping and alternation
3232         operators.
3233
3234 2011-03-05  Bruno Haible  <bruno@clisp.org>
3235
3236         doc: Improve doc regarding autopoint vs. gnulib.
3237         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
3238         disable autopoint while running autoreconf.
3239         Suggested by Ralf Wildenhues.
3240
3241 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3242
3243         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
3244         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
3245
3246 2011-03-03  Bruce Korb  <bkorb@gnu.org>
3247
3248         parse-duration: remove xalloc.h dependency
3249         * lib/parse-duration.c (parse_period): handle NULL return from
3250         strdup instead of calling xstrdup().
3251         * modules/parse-duration: remove "xalloc" dependency
3252
3253 2011-03-03  Matthew Booth  <mbooth@redhat.com>
3254
3255         bootstrap: honor m4_base when running aclocal
3256         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
3257
3258 2011-03-02  Jim Meyering  <meyering@redhat.com>
3259
3260         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
3261         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
3262         on request from Matt Booth.
3263
3264 2011-03-01  Eric Blake  <eblake@redhat.com>
3265
3266         test-link: work on Hurd
3267         * tests/test-link.h (test_link): Hurd rejects linking directories
3268         with EISDIR instead of the POSIX-mandated EPERM.
3269
3270 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
3271
3272         stdio: simplify by moving files to printf-posix, sigpipe
3273         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
3274         since this symbol is needed only if printf is replaced.
3275         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
3276         Require gl_ASM_SYMBOL_PREFIX.
3277         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
3278         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
3279         (Depends-on): Add 'raise'.
3280         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
3281         * modules/stdio (Files): Remove lib/stdio-write.c,
3282         m4/asm-underscore.m4.
3283         (Depends-on): Remove 'raise'.
3284
3285         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
3286         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
3287         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
3288         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
3289
3290 2011-02-28  Bruno Haible  <bruno@clisp.org>
3291
3292         localcharset: Assume ANSI C behaviour of free().
3293         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
3294         calling free().
3295         Suggested by Simon Josefsson <simon@josefsson.org>.
3296
3297 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
3298             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
3299             Bruno Haible  <bruno@clisp.org>  (tiny change)
3300
3301         On Cygwin, use /proc file system instead of win32 API.
3302         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
3303         Win32 file names.
3304         (DllMain): Simplify by removing Cygwin specific code.
3305         (find_shared_library_fullname): Use Linux specific implementation also
3306         for Cygwin.
3307         (get_shared_library_fullname): Update accordingly.
3308         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
3309         Win32 file names.
3310         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
3311         Cygwin specific code.
3312
3313 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
3314             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
3315
3316         Fix OpenMP flag detection for various Fortran compilers.
3317         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
3318         OpenMP-conditional compilation construct, to force compile
3319         failure with missing OpenMP flag.
3320         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
3321
3322 2011-02-25  Eric Blake  <eblake@redhat.com>
3323
3324         strstr: expand test coverage
3325         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
3326         compilation.
3327         * tests/test-memmem.c (main): Duplicate tests.
3328         * tests/test-strcasestr.c (main): Likewise.
3329         * tests/test-c-strcasestr.c (main): Likewise.
3330
3331 2011-02-25  Jim Meyering  <meyering@redhat.com>
3332
3333         maint.mk: detect missing-NL-at-EOF, too
3334         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
3335         it also detects when a file lacks a newline at EOF.
3336         (require_exactly_one_NL_at_EOF_): Renamed from
3337         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
3338         since people may well have .x-sc_... file names tied to the
3339         existing name.  Suggested by Eric Blake.
3340
3341 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
3342
3343         dirname: move m4/dos.m4 functionality into lib/dosname.h
3344
3345         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
3346         extracts symbols from it, puts them into config.h; but it's much
3347         easier to use the symbols directly.  filename.h already does this,
3348         but it disagrees with dos.m4 in some respects.  This patch
3349         introduces a different include file dosname.h that packages up
3350         dos.m4, and then later we can work on merging filename.h and
3351         dosname.h.  Applications that need only the easy-to-configure
3352         symbols should consider including dosname.h rather than dirname.h.
3353         * NEWS: Mention incompatible changes.
3354         * m4/dos.m4: Remove.
3355         * lib/dosname.h, modules/dosname: New files.
3356         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
3357         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
3358         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
3359         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
3360         Include dosname.h, not dirname.h.
3361         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
3362         Include dosname.h, for definitions of symbols like ISSLASH
3363         that used to be in config.h.
3364         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
3365         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3366         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3367         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3368         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
3369         * modules/rmdir (Files): Likewise.
3370         * modules/stat (Files): Likewise.
3371         * modules/unlink (Files): Likewise.
3372         * modules/dirname-lgpl (Depends-on): Add dosname.
3373         * modules/lstat (Depends-on): Likewise.
3374         * modules/openat (Depends-on): Likewise.
3375         * modules/rmdir (Depends-on): Likewise.
3376         * modules/savewd (Depends-on): Likewise.
3377         * modules/stat (Depends-on): Likewise.
3378         * modules/unlink (Depends-on): Likewise.
3379         * modules/openat (Depends-on): Remove dirname-lgpl.
3380         * modules/savewd (Depends-on): Likewise.
3381         * tests/test-dirname.c: Do not use removed symbols like
3382         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
3383         the remaining symbols, e.g., ISSLASH ('\\').
3384
3385 2011-02-25  Eric Blake  <eblake@redhat.com>
3386
3387         strstr: revert patches that introduced bug and pessimization
3388         * lib/str-two-way.h: Add another reference.
3389         (two_way_short_needle, two_way_long_needle): Revert changes from
3390         2011-02-24; they pessimize search speed.
3391         (critical_factorization): Partially revert changes from
3392         2010-06-22; they violate the requirement that the left half of the
3393         needle be smaller than the period of the needle.
3394
3395 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3396
3397         filenamecat: remove unnecessary dependency on dirname-lgpl
3398         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
3399         is no direct dependency, just an indirect one via filenamecat-lgpl.
3400
3401         remove: remove unnecessary use of m4/dos.m4
3402         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
3403         * modules/remove (FILES): Remove m4/dos.m4.
3404
3405         * lib/openat-proc.c: Don't include dirname.h; not needed.
3406
3407         backupfile: remove unnecessary use of m4/dos.m4
3408         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
3409         of its symbols are used by the backupfile code.  backupfile.c does
3410         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
3411         for the rare case of programs that want all their backup file
3412         names to live within 8+3 limits, and dos.m4 doesn't address that.
3413         * modules/backupfile (Files): Remove m4/dos.m4.
3414
3415 2011-02-24  Jim Meyering  <meyering@redhat.com>
3416
3417         strstr: fix a bug whereby strstr would mistakenly return NULL
3418         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
3419         in period calculation.
3420         (two_way_long_needle): Likewise.
3421         The original problem was reported by Mike Stump in
3422         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
3423         Ralf Wildenhues provided the short needle and haystack.
3424         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
3425         Add a more involved test to trigger the bug in two_way_long_needle.
3426
3427 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3428
3429         gnulib-tool: remove use of bold display in help screen
3430         * gnulib-tool (func_usage): Do not use bold display anymore in the
3431         help screen.  That was just meant to be a temporary emphasis for a
3432         backward-incompatible change.
3433
3434 2011-02-23  Bruno Haible  <bruno@clisp.org>
3435
3436         Fix misindentation of preprocessor directives.
3437         * lib/argp-namefrob.h: Reindent preprocessor directives.
3438         * lib/getopt_int.h (struct _getopt_data): Likewise.
3439         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
3440         * lib/vasnprintf.c (decode_long_double): Likewise.
3441         * tests/test-argmatch.c: Insert blank lines, for clarity.
3442         * tests/test-exclude.c: Likewise.
3443
3444 2011-02-22  Bruno Haible  <bruno@clisp.org>
3445
3446         ioctl: Fix for MacOS X in 64-bit mode.
3447         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
3448         value.
3449         Suggested by Eric Blake.
3450         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
3451
3452 2011-02-22  Jim Meyering  <meyering@redhat.com>
3453
3454         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
3455         * Makefile (sc_cpp_indent_check): Don't limit the check to files
3456         in lib/.
3457
3458 2011-02-22  Eric Blake  <eblake@redhat.com>
3459
3460         maint: avoid any CDPATH issue
3461         * Makefile (sc_cpp_indent_check): Anchor cd argument.
3462
3463         maint: adjust cpp indentation for my modules, as well
3464         * Makefile (sc_cpp_indent_check): Add my name.
3465         * lib/fbufmode.c: Filter through cppi.
3466         * lib/fpurge.c: Likewise.
3467         * lib/freadable.c: Likewise.
3468         * lib/freading.c: Likewise.
3469         * lib/fwritable.c: Likewise.
3470         * lib/fwriting.c: Likewise.
3471         * lib/sigaction.c: Likewise.
3472
3473 2011-02-22  Jim Meyering  <meyering@redhat.com>
3474
3475         maint: adjust cpp indentation to reflect nesting depth
3476         I.e., in a block of code that begins with an unnested "#if",
3477         put one space between the "#" in column 1 and following token.
3478         For example,
3479         -#include <sys/vfs.h>
3480         +# include <sys/vfs.h>
3481         Do this only in .c files that are part of a module I maintain.
3482         * lib/linkat.c: Filter through cppi.
3483         * lib/nanosleep.c: Likewise.
3484         * lib/openat.c: Likewise.
3485         * lib/openat-die.c: Likewise.
3486         * lib/dup3.c: Likewise.
3487         * lib/fchownat.c: Likewise.
3488         * lib/flock.c: Likewise.
3489         * lib/fsync.c: Likewise.
3490         * lib/fts.c: Likewise.
3491         * lib/getpass.c: Likewise.
3492         * lib/gettimeofday.c: Likewise.
3493         * lib/userspec.c: Likewise.
3494         * Makefile (sc_cpp_indent_check): New rule, to check this.
3495
3496 2011-02-22  Bruno Haible  <bruno@clisp.org>
3497
3498         New module 'wctomb'.
3499         * lib/stdlib.in.h (wctomb): New declaration.
3500         * lib/wctomb.c: New file.
3501         * lib/wctomb-impl.h: New file.
3502         * m4/wctomb.m4: New file.
3503         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
3504         REPLACE_WCTOMB.
3505         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
3506         REPLACE_WCTOMB.
3507         * modules/wctomb: New file.
3508         * tests/test-stdlib-c++.cc: Test signature of wctomb.
3509         * doc/posix-functions/wctomb.texi: Mention the new module.
3510         * modules/wctob (Depends-on): Add wctomb.
3511
3512 2011-02-22  Bruno Haible  <bruno@clisp.org>
3513
3514         New module 'mbtowc'.
3515         * lib/stdlib.in.h (mbtowc): New declaration.
3516         * lib/mbtowc.c: New file.
3517         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
3518         * m4/mbtowc.m4: New file.
3519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
3520         REPLACE_MBTOWC.
3521         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
3522         REPLACE_MBTOWC.
3523         * modules/mbtowc: New file.
3524         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
3525         * doc/posix-functions/mbtowc.texi: Mention the new module.
3526         * modules/btowc (Depends-on): Add mbtowc.
3527
3528 2011-02-22  Bruno Haible  <bruno@clisp.org>
3529
3530         wcrtomb: Add more tests for native Windows platforms.
3531         * tests/test-wcrtomb-w32-1.sh: New file.
3532         * tests/test-wcrtomb-w32-2.sh: New file.
3533         * tests/test-wcrtomb-w32-3.sh: New file.
3534         * tests/test-wcrtomb-w32-4.sh: New file.
3535         * tests/test-wcrtomb-w32-5.sh: New file.
3536         * tests/test-wcrtomb-w32.c: New file.
3537         * modules/wcrtomb-tests (Files): Add them.
3538         (Makefile.am): Arrange to run these tests.
3539         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
3540         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
3541
3542 2011-02-20  Bruno Haible  <bruno@clisp.org>
3543
3544         wcrtomb: Enhance test.
3545         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
3546
3547 2011-02-20  Bruno Haible  <bruno@clisp.org>
3548
3549         mbrtowc: Tiny optimization.
3550         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
3551
3552 2011-02-20  Jim Meyering  <meyering@redhat.com>
3553
3554         test-exclude.c: remove unmatched #endif
3555         * tests/test-exclude.c: Remove stray #endif, left over from
3556         the change of a week ago.
3557
3558 2011-02-19  Jim Meyering  <meyering@redhat.com>
3559
3560         git-version-gen: skip "-dirty" check when appropriate
3561         * build-aux/git-version-gen: Don't run any git commands when the
3562         version string comes from .tarball-version.  Prior to this, we
3563         would run git update-index --refresh even from a just-unpacked
3564         tarball directory, and that could affect a .git/ directory in a
3565         parent of the build directory.  Reported by Mike Frysinger.
3566
3567 2011-02-19  Bruno Haible  <bruno@clisp.org>
3568
3569         unictype/property-byname: Reduce the size of the 'data' segment.
3570         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
3571
3572 2011-02-19  Bruno Haible  <bruno@clisp.org>
3573
3574         unictype/scripts: Reduce the size of the 'data' segment.
3575         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
3576         '%pic'.
3577         * lib/unictype/scripts_byname.gperf: Regenerated.
3578
3579 2011-02-19  Bruno Haible  <bruno@clisp.org>
3580
3581         stdint: Update documentation.
3582         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
3583
3584 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
3585
3586         stdint: omit redundant check for wchar.h
3587         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
3588         always tests whether wchar.h exists, so remove the now-redundant test.
3589
3590 2011-02-18  Bruno Haible  <bruno@clisp.org>
3591
3592         stdint: Cut dependency to module 'wchar'.
3593         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
3594         include the necessary prerequisites.
3595         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
3596         * modules/stdint (Depends-on): Remove wchar.
3597         (Makefile.am): Substitute HAVE_WCHAR_H.
3598         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
3599
3600 2011-02-18  Eric Blake  <eblake@redhat.com>
3601
3602         longlong: skip, rather than fail, on cross-compilation
3603         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
3604         when cross-compiling; regression from 2011-02-16.
3605
3606 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3607
3608         * NEWS: Mention 2011-02-08 change to stdlib.
3609
3610 2011-02-17  Bruno Haible  <bruno@clisp.org>
3611
3612         getloadavg: Add comments about platforms.
3613         * m4/getloadavg.m4: Add comment.
3614         * lib/getloadavg.c: Likewise.
3615
3616 2011-02-17  Bruno Haible  <bruno@clisp.org>
3617
3618         getloadavg: Fix link error on Solaris 2.6.
3619         * modules/getloadavg (Link): New section.
3620         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
3621         linking test-getloadavg.
3622         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
3623         getloadavg.
3624
3625 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3626
3627         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
3628         It was 'int', but this doesn't match the IRIX 6.5 manual.
3629         Suggested by Bruno Haible in
3630         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
3631
3632 2011-02-17  Bruno Haible  <bruno@clisp.org>
3633
3634         havelib: Fix comments.
3635         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
3636         change.
3637
3638 2011-02-17  Bruno Haible  <bruno@clisp.org>
3639
3640         havelib: Update config.rpath.
3641         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
3642
3643 2011-02-17  Bruno Haible  <bruno@clisp.org>
3644
3645         getloadavg test: Add some plausibility checks.
3646         * tests/test-getloadavg.c (check_avg): Print a warning when the value
3647         is improbable.
3648
3649 2011-02-16  Eric Blake  <eblake@redhat.com>
3650
3651         maintainer-makefile: make syntax-check a no-op from tarballs
3652         * top/maint.mk (no-vc-detected): New rule.
3653         (local-checks-available): Use it to avoid hanging if someone tries
3654         'make syntax-check' from a tarball.  Also append to any non-syntax
3655         checks already defined in cfg.mk.
3656
3657 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3658
3659         longlong: tune, particularly for common case of c99
3660
3661         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
3662         or running anything if c99, or if unsigned long long int does not
3663         work.  In either case, we know the answer without further tests.
3664         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
3665         it at most once, and use its results for both long long int and
3666         unsigned long long int.  This is more likely to be efficient in
3667         the common case where the program wants to check for both long
3668         long int and unsigned long long int.
3669         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
3670         since the answer is already known.
3671
3672 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
3673
3674         getloadavg: set errno
3675         * lib/getloadavg.c: Set errno when returning -1.  If no other
3676         error number looks appropriate, set it to ENOSYS if the getloadavg
3677         looks like it can't possibly ever work, ENOTSUP otherwise.
3678         Suggested by Bruno Haible in
3679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
3680
3681         getloadavg: trim unused parts and speed up 'configure'
3682         * NEWS: Document this.
3683         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
3684         always compiled if getloadavg is absent.
3685         Move test code to ...
3686         * tests/test-getloadavg.c: New file, containing previous
3687         contents of test from lib/getloadavg.c.  It also contains
3688         suggestions by Bruno Haible in
3689         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
3690         * modules/getloadavg-tests: New file.
3691         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
3692         Do tests in the same order as they're needed for getloadavg.c.
3693         Omit setgid-related tests that generate symbols KMEM_GROUP,
3694         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
3695         Do only the tests that are needed to see whether the system has
3696         getloadavg, moving the other tests into ...
3697         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
3698         NLIST_NAME_UNION; nobody should be using it.  Do not define
3699         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
3700         relevant, as the user of this module shouldn't care how getloadavg
3701         is implemented.
3702
3703         getloadavg: omit unused var
3704         * lib/getloadavg.c (getloadavg): Omit unused local variable.
3705
3706 2011-02-15  Jim Meyering  <meyering@redhat.com>
3707
3708         doc: update users.txt
3709         * users.txt: Update iwhd's URL.
3710
3711 2011-02-13  Bruno Haible  <bruno@clisp.org>
3712
3713         Consistent macro naming for macros that use GCC __attribute__.
3714         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
3715         _ATTRIBUTE_NONNULL_.
3716         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
3717         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
3718         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
3719         ATTRIBUTE_DEPRECATED.
3720         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
3721         ATTRIBUTE_NORETURN.
3722         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3723         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3724         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3725         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3726         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
3727         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
3728         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
3729         ATTRIBUTE_SENTINEL.
3730         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
3731         ATTRIBUTE_RETURN_CHECK.
3732         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
3733         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
3734         ATTRIBUTE_NORETURN.
3735         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
3736         Reported by Paul Eggert.
3737
3738 2011-02-13  Bruno Haible  <bruno@clisp.org>
3739
3740         Don't interfere with a program's definition of __attribute__.
3741         * lib/argp.h (__attribute__): Remove definition.
3742         (_GL_ATTRIBUTE_FORMAT): New macro.
3743         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
3744         * lib/argp-fmtstream.h (__attribute__): Remove definition.
3745         (_GL_ATTRIBUTE_FORMAT): New macro.
3746         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
3747         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
3748         GCC 3 or newer.
3749         * lib/error.h (__attribute__): Remove definition.
3750         (_GL_ATTRIBUTE_FORMAT): New macro.
3751         (error, error_at_line): Use it.
3752         * lib/hash.h (__attribute__): Remove definition.
3753         (ATTRIBUTE_WUR): Update definition. Define always.
3754         * lib/openat.h (__attribute__): Remove definition.
3755         (ATTRIBUTE_NORETURN): Update definition. Define always.
3756         * lib/sigpipe-die.h (__attribute__): Remove definition.
3757         (ATTRIBUTE_NORETURN): Update definition. Define always.
3758         * lib/vasnprintf.h (__attribute__): Remove definition.
3759         (_GL_ATTRIBUTE_FORMAT): New macro.
3760         (asnprintf, vasnprintf): Use it.
3761         * lib/xalloc.h (__attribute__): Remove definition.
3762         (ATTRIBUTE_NORETURN): Update definition. Define always.
3763         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
3764         * lib/xmemdup0.h (__attribute__): Remove definition.
3765         (ATTRIBUTE_NORETURN): Update definition. Define always.
3766         * lib/xprintf.h (__attribute__): Remove definition.
3767         (_GL_ATTRIBUTE_FORMAT): New macro.
3768         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
3769         * lib/xstrtol.h (__attribute__): Remove definition.
3770         (ATTRIBUTE_NORETURN): Update definition. Define always.
3771         * lib/xvasprintf.h (__attribute__): Remove definition.
3772         (_GL_ATTRIBUTE_FORMAT): New macro.
3773         (xasprintf, xvasprintf): Use it.
3774         * tests/test-argmatch.c (__attribute__): Remove definition.
3775         (ATTRIBUTE_NORETURN): Update definition. Define always.
3776         * tests/test-exclude.c (__attribute__): Remove definition.
3777         (ATTRIBUTE_NORETURN): Update definition. Define always.
3778         Reported by Paul Eggert.
3779
3780 2011-02-13  Bruno Haible  <bruno@clisp.org>
3781
3782         mbrtowc: Add more tests for native Windows platforms.
3783         * tests/test-mbrtowc-w32-1.sh: New file.
3784         * tests/test-mbrtowc-w32-2.sh: New file.
3785         * tests/test-mbrtowc-w32-3.sh: New file.
3786         * tests/test-mbrtowc-w32-4.sh: New file.
3787         * tests/test-mbrtowc-w32-5.sh: New file.
3788         * tests/test-mbrtowc-w32.c: New file.
3789         * modules/mbrtowc-tests (Files): Add them.
3790         (Makefile.am): Arrange to run these tests.
3791         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
3792         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
3793
3794 2011-02-13  Bruno Haible  <bruno@clisp.org>
3795
3796         mbrtowc: Work around native Windows bug.
3797         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
3798         guess when no suitable locale for testing was found.
3799         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
3800
3801 2011-02-13  Bruno Haible  <bruno@clisp.org>
3802
3803         mbsinit: Work around mingw bug.
3804         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
3805         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
3806         Windows.
3807         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
3808
3809 2011-02-13  Bruno Haible  <bruno@clisp.org>
3810
3811         mbsinit: Don't crash for a NULL argument.
3812         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
3813         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
3814
3815 2011-02-13  Bruno Haible  <bruno@clisp.org>
3816
3817         Don't interfere with a program's definition of __attribute__.
3818         * lib/stdio.in.h (__attribute__): Remove definition.
3819         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
3820         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
3821         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
3822         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
3823         * lib/string.in.h (__attribute__): Remove definition.
3824         Reported by Paul Eggert.
3825
3826 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3827
3828         stdlib: don't get in the way of non-GCC __attribute__
3829         See thread starting at
3830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
3831         Revert previous stdlib change, installing the following instead:
3832         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
3833         to get in the way of a non-GCC compiler that supports __attribute__.
3834         (_GL_ATTRIBUTE_RETURN): New macro.
3835         (_Exit): Use it instead of __attribute__.
3836
3837 2011-02-12  Bruno Haible  <bruno@clisp.org>
3838
3839         quotearg test: Avoid test failure on mingw.
3840         * tests/test-quotearg.sh: Convert the locale identifier from native
3841         Windows syntax to Unix syntax.
3842
3843 2011-02-12  Bruno Haible  <bruno@clisp.org>
3844
3845         setlocale: Prefer gnulib's override over libintl's override.
3846         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
3847         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
3848         GNULIB_defined_setlocale is set.
3849
3850 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3851
3852         stdlib: support non-GCC __attribute__
3853
3854         Fix a serious and tricky problem encountered when attempting to
3855         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
3856         5.5, but it crashed due to memory corruption on Solaris 10 with
3857         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
3858         bits that are otherwise zero.  This tagging is optional inside
3859         Emacs but is preferred and is used when __attribute__ ((__aligned
3860         (8))) works, as it does with both recent-enough GCC and with Sun C
3861         5.11.  However, Sun C 5.11 is not GCC and does not #define
3862         __GNUC__ and __GNUC_MINOR__.
3863
3864         When I added the getloadavg module to Emacs, it brought in
3865         stdlib.in.h, which contained this fragment:
3866
3867            #ifndef __attribute__
3868            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
3869            #  define __attribute__(Spec)   /* empty */
3870            # endif
3871            #endif
3872
3873         When files that include <stdlib.h> were compiled with Sun C 5.11,
3874         the above code disabled __attribute__ ((__aligned (8))), which
3875         caused variables to not be properly aligned, which eventually led
3876         to the pointer corruption mentioned above.  (This was a bit hard
3877         to diagnose, unfortunately.)
3878
3879         Several "#define __attribute__(X) /* empty */" code snippets need
3880         to be eradicated from Gnulib to work with non-GCC compilers that
3881         support __attribute__.  The Autoconf way to do this is to test for
3882         each kind of attribute that we want support for, and selectively
3883         enable that in source code.
3884
3885         Fix this problem just for stdlib.h, by adding a test for the
3886         __noreturn__ attribute, and change stdlib.in.h to use that test
3887         when needed.  This technique can be easily generalized to the
3888         other *.in.h files and attributes, and a similar technique can be
3889         used for *.h and *.c files.  This patch is enough to solve the
3890         problem for Emacs + getloadavg, and I thought I'd publish it for
3891         feedback before undertaking further, similar fixes in other
3892         modules.
3893
3894         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
3895         because it's not needed for stdlib.h.  It merely substitutes the
3896         value directly into stdlib.h.  We may well need to #define it, or
3897         similar symbols, for other modules, but it's nice to also have an
3898         option to not #define it for applications like Emacs that do not
3899         need it.
3900
3901         * lib/stdlib.in.h (__attribute__): Do not #define.
3902         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
3903         be defined only if the _Exit module is also used.
3904         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
3905         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
3906         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
3907         platforms.
3908         * modules/_Exit (Files): Add m4/attribute.m4.
3909         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
3910         * m4/attribute.m4: New file.
3911
3912 2011-02-12  Bruno Haible  <bruno@clisp.org>
3913
3914         wcsrtombs: Work around bug on native Windows.
3915         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
3916         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3917         instead of len.
3918         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3919
3920 2011-02-12  Bruno Haible  <bruno@clisp.org>
3921
3922         mbsrtowcs: Work around bug on native Windows.
3923         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
3924         against mingw bug.
3925         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
3926
3927 2011-02-12  Bruno Haible  <bruno@clisp.org>
3928
3929         Avoid setlocale bugs in tests.
3930         * modules/btowc (Dependencies): Add setlocale.
3931         * modules/c-strcase (Dependencies): Likewise.
3932         * modules/mbmemcasecmp (Dependencies): Likewise.
3933         * modules/mbmemcasecoll (Dependencies): Likewise.
3934         * modules/mbrtowc (Dependencies): Likewise.
3935         * modules/mbscasecmp (Dependencies): Likewise.
3936         * modules/mbscasestr (Dependencies): Likewise.
3937         * modules/mbschr (Dependencies): Likewise.
3938         * modules/mbscspn (Dependencies): Likewise.
3939         * modules/mbsinit (Dependencies): Likewise.
3940         * modules/mbsncasecmp (Dependencies): Likewise.
3941         * modules/mbsnrtowcs (Dependencies): Likewise.
3942         * modules/mbspbrk (Dependencies): Likewise.
3943         * modules/mbspcasecmp (Dependencies): Likewise.
3944         * modules/mbsrchr (Dependencies): Likewise.
3945         * modules/mbsrtowcs (Dependencies): Likewise.
3946         * modules/mbsspn (Dependencies): Likewise.
3947         * modules/mbsstr (Dependencies): Likewise.
3948         * modules/nl_langinfo (Dependencies): Likewise.
3949         * modules/quotearg (Dependencies): Likewise.
3950         * modules/unicase/locale-language (Dependencies): Likewise.
3951         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
3952         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
3953         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
3954         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
3955         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
3956         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
3957         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
3958         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
3959         * modules/vasnprintf-posix (Dependencies): Likewise.
3960         * modules/wcrtomb (Dependencies): Likewise.
3961         * modules/wcsnrtombs (Dependencies): Likewise.
3962         * modules/wcsrtombs (Dependencies): Likewise.
3963
3964 2011-02-12  Bruno Haible  <bruno@clisp.org>
3965
3966         setlocale: Workaround native Windows bug.
3967         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
3968         succeeds but sets LC_CTYPE to "C", report a failure.
3969         * tests/test-setlocale2.sh: New file.
3970         * tests/test-setlocale2.c: New file.
3971         * modules/setlocale-tests (Files): Add the new files.
3972         (Makefile.am): Enable test-setlocale2.sh test.
3973         * doc/posix-functions/setlocale.texi: Mention workaround.
3974
3975 2011-02-11  Bruno Haible  <bruno@clisp.org>
3976
3977         Tests for module 'setlocale'.
3978         * modules/setlocale-tests: New file.
3979         * tests/test-setlocale1.sh: New file.
3980         * tests/test-setlocale1.c: New file.
3981
3982         New module 'setlocale'.
3983         * lib/locale.in.h (setlocale): New declaration.
3984         * lib/setlocale.c: New file, based on
3985         gettext/gettext-runtime/intl/setlocale.c.
3986         * m4/setlocale.m4: New file.
3987         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
3988         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
3989         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
3990         REPLACE_SETLOCALE.
3991         * modules/setlocale: New file.
3992         * tests/test-locale-c++.cc: Test the declaration of setlocale.
3993         * doc/posix-functions/setlocale.texi: Mention the new module.
3994
3995 2011-02-11  Bruno Haible  <bruno@clisp.org>
3996
3997         Prepare for locale dependent tests on mingw.
3998         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
3999         because it has the wrong locale encoding.
4000         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
4001         French_France.1252 instead of "fr".
4002         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
4003         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
4004         because it has the wrong locale encoding.
4005         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
4006         native Windows, try Turkish_Turkey.65001.
4007         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
4008         Chinese_China.54936.
4009
4010         Prepare for locale dependent tests on mingw.
4011         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
4012         differently.
4013         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4014         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4015         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4016         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4017
4018 2011-02-11  Eric Blake  <eblake@redhat.com>
4019
4020         strptime: avoid compiler warnings
4021         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
4022         compiler warnings about dead code.
4023         Reported by Daniel P. Berrange.
4024
4025 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
4026
4027         doc: update users.txt
4028         * users.txt: Add rcs.
4029
4030 2011-02-10  John W. Eaton  <jwe@gnu.org>
4031
4032         doc: update users.txt
4033         * users.txt: Add octave.
4034
4035 2011-02-10  Jim Meyering  <meyering@redhat.com>
4036
4037         doc: update users.txt
4038         * users.txt: Add iwhd.
4039
4040 2011-02-09  Bruno Haible  <bruno@clisp.org>
4041
4042         gnulib-tool: Make copyright notice adjustment more robust.
4043         * gnulib-tool (func_import): In sed_transform_main_lib_file,
4044         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
4045         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
4046         License".
4047         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
4048
4049 2011-02-06  Bruno Haible  <bruno@clisp.org>
4050
4051         New module 'towctrans'.
4052         * modules/towctrans: New file.
4053         * lib/wctype.in.h (towctrans): New declaration.
4054         * lib/towctrans.c: New file.
4055         * lib/towctrans-impl.h: New file.
4056         * m4/towctrans.m4: New file.
4057         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
4058         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
4059         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
4060         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
4061         * doc/posix-functions/towctrans.texi: Mention the new module.
4062
4063 2011-02-06  Bruno Haible  <bruno@clisp.org>
4064
4065         New module 'wctrans'.
4066         * modules/wctrans: New file.
4067         * lib/wctype.in.h (wctrans): New declaration.
4068         * lib/wctrans.c: New file.
4069         * lib/wctrans-impl.h: New file.
4070         * m4/wctrans.m4: New file.
4071         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
4072         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
4073         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
4074         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
4075         * doc/posix-functions/wctrans.texi: Mention the new module.
4076
4077 2011-02-06  Bruno Haible  <bruno@clisp.org>
4078
4079         New module 'iswctype'.
4080         * modules/iswctype: New file.
4081         * lib/wctype.in.h (iswctype): New declaration.
4082         * lib/iswctype.c: New file.
4083         * lib/iswctype-impl.h: New file.
4084         * m4/iswctype.m4: New file.
4085         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
4086         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
4087         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
4088         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
4089         * doc/posix-functions/iswctype.texi: Mention the new module and the
4090         HP-UX 11.00 problem.
4091
4092 2011-02-06  Bruno Haible  <bruno@clisp.org>
4093
4094         New module 'wctype'.
4095         * modules/wctype: Change to represent the wctype() substitute.
4096         * lib/wctype.in.h (wctype): New declaration.
4097         * lib/wctype.c: New file.
4098         * lib/wctype-impl.h: New file.
4099         * m4/wctype.m4: New file.
4100         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
4101         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
4102         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
4103         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
4104         * doc/posix-functions/wctype.texi: Mention the new module and the
4105         HP-UX 11.00 problem.
4106
4107 2011-02-06  Bruno Haible  <bruno@clisp.org>
4108
4109         wctype-h: Ensure wctype_t and wctrans_t are defined.
4110         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
4111         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4112         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4113         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
4114         HAVE_WCTRANS_T.
4115         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
4116
4117 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4118
4119         flock: fix license typo
4120
4121         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
4122         omitted.
4123
4124 2011-02-08  Bruno Haible  <bruno@clisp.org>
4125
4126         Split large sed scripts, for HP-UX sed.
4127         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
4128         to avoid HP-UX limit of 99 commands, in the near future.
4129         * modules/stdlib (Makefile.am): Likewise.
4130         * modules/unistd (Makefile.am): Likewise.
4131         * modules/wchar (Makefile.am): Likewise.
4132         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4133         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
4134         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
4135
4136 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4137             Bruno Haible  <bruno@clisp.org>
4138
4139         stdlib: improve random_r modularization
4140         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
4141         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
4142         you also need the random_r module to get this material right.
4143         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
4144         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
4145         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
4146
4147 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4148
4149         stdlib: don't depend on stdint
4150         * lib/stdlib.in.h: Don't include <stdint.h> merely because
4151         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
4152         be independent of whether stdint.h is needed.
4153         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
4154         here, instead of ...
4155         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
4156         struct random_data should be using the random_r module, not just
4157         the stdlib module (which wouldn't make sense: what package needs
4158         just struct random_data without also needing random_r?).
4159         * modules/stdlib (Depends-on): Remove stdint.
4160
4161         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
4162         See the thread rooted at
4163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
4164         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
4165         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
4166         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
4167         __VMS)); previously it was always included (via fcntl--.h).
4168         (getloadavg): Do not use c_strtod.  Instead, approximate it by
4169         hand; this is good enough for load averages.  Also, do not use
4170         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
4171         flags directly if available and don't bother otherwise.  (Packages
4172         that need the extra reliability should use the modules that define
4173         these flags on older platforms that lack them.)
4174         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
4175         fcntl-safer.
4176
4177 2011-02-08  Jim Meyering  <meyering@redhat.com>
4178
4179         di-set.h, ino-map.h: add multiple-inclusion guard
4180         Technically, the guard is required only for ino-map.h, due to its
4181         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
4182         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
4183         * lib/ino-map.h: Likewise.
4184
4185 2011-02-06  Bruno Haible  <bruno@clisp.org>
4186
4187         iswblank: Ensure declaration on glibc systems.
4188         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
4189         * modules/iswblank (Dependencies): Add 'extensions'.
4190         * doc/posix-functions/iswblank.texi: Document the glibc problem.
4191
4192 2011-02-06  Bruno Haible  <bruno@clisp.org>
4193
4194         New module 'iswblank'.
4195         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
4196         * modules/iswblank: New file.
4197         * modules/wctype-h (Files): Remove lib/iswblank.c.
4198         (Makefile.am): Substitute GNULIB_ISWBLANK.
4199         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
4200         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
4201         (gl_WCTYPE_H_DEFAULTS): New macro.
4202         (gl_WCTYPE_H): Require it. Remove iswblank related code.
4203         * modules/iswblank-tests: New file.
4204         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
4205         * tests/test-wctype-h.c (main): Remove iswblank tests.
4206         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
4207         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
4208         of 'wctype-h'.
4209         * NEWS: Mention the change.
4210         * modules/mbchar (Depends-on): Add iswblank.
4211
4212 2011-02-08  Bruno Haible  <bruno@clisp.org>
4213
4214         di-set tests: Refactor.
4215         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
4216         unnecessary includes.
4217         (ASSERT): Remove macro.
4218         (main): Make C90 compliant by avoiding variable declaration after
4219         statement.
4220         * modules/di-set-tests (Files): Add tests/macros.h.
4221
4222 2011-02-08  Bruno Haible  <bruno@clisp.org>
4223
4224         ino-map tests: Refactor.
4225         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
4226         unnecessary includes.
4227         (ASSERT): Remove macro.
4228         (main): Make C90 compliant by avoiding variable declaration after
4229         statement.
4230         * modules/ino-map-tests (Files): Add tests/macros.h.
4231
4232 2011-02-08  Jim Meyering  <meyering@redhat.com>
4233
4234         di-set: add "const" to a cast
4235         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
4236         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
4237
4238 2011-02-06  Bruno Haible  <bruno@clisp.org>
4239
4240         Rename module 'wctype' to 'wctype-h'.
4241         * modules/wctype-h: Renamed from modules/wctype.
4242         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
4243         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
4244         (Files, Depends-on, Makefile.am): Update.
4245         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
4246         (Files, Makefile.am): Update.
4247         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
4248         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
4249         * doc/posix-headers/wctype.texi: Update.
4250         * doc/posix-functions/iswalnum.texi: Update.
4251         * doc/posix-functions/iswalpha.texi: Update.
4252         * doc/posix-functions/iswblank.texi: Update.
4253         * doc/posix-functions/iswcntrl.texi: Update.
4254         * doc/posix-functions/iswdigit.texi: Update.
4255         * doc/posix-functions/iswgraph.texi: Update.
4256         * doc/posix-functions/iswlower.texi: Update.
4257         * doc/posix-functions/iswprint.texi: Update.
4258         * doc/posix-functions/iswpunct.texi: Update.
4259         * doc/posix-functions/iswspace.texi: Update.
4260         * doc/posix-functions/iswupper.texi: Update.
4261         * doc/posix-functions/iswxdigit.texi: Update.
4262         * doc/posix-functions/towlower.texi: Update.
4263         * doc/posix-functions/towupper.texi: Update.
4264         * NEWS: Mention the change.
4265         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
4266         * modules/mbchar (Dependencies): Likewise.
4267         * modules/mbswidth (Dependencies): Likewise.
4268         * modules/quotearg (Dependencies): Likewise.
4269         * modules/regex (Dependencies): Likewise.
4270         * modules/wcscasecmp (Dependencies): Likewise.
4271         * modules/wcsncasecmp (Dependencies): Likewise.
4272         * modules/wcwidth (Dependencies): Likewise.
4273
4274 2011-02-06  Bruno Haible  <bruno@clisp.org>
4275
4276         New module 'wcswidth'.
4277         * modules/wcswidth: New file.
4278         * lib/wchar.in.h (wcswidth): New declaration.
4279         * lib/wcswidth.c: New file.
4280         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
4281         * m4/wcswidth.m4: New file.
4282         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
4283         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
4284         REPLACE_WCSWIDTH.
4285         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
4286         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
4287         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
4288         * doc/posix-functions/wcswidth.texi: Mention the new module.
4289
4290 2011-02-06  Bruno Haible  <bruno@clisp.org>
4291
4292         New module 'wcstok'.
4293         * modules/wcstok: New file.
4294         * lib/wchar.in.h (wcstok): New declaration.
4295         * lib/wcstok.c: New file.
4296         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
4297         * m4/wcstok.m4: New file.
4298         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
4299         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
4300         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
4301         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
4302         * doc/posix-functions/wcstok.texi: Mention the new module.
4303
4304 2011-02-06  Bruno Haible  <bruno@clisp.org>
4305
4306         New module 'wcsstr'.
4307         * modules/wcsstr: New file.
4308         * lib/wchar.in.h (wcsstr): New declaration.
4309         * lib/wcsstr.c: New file.
4310         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
4311         * m4/wcsstr.m4: New file.
4312         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
4313         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
4314         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
4315         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
4316         * doc/posix-functions/wcsstr.texi: Mention the new module.
4317
4318 2011-02-06  Bruno Haible  <bruno@clisp.org>
4319
4320         New module 'wcspbrk'.
4321         * modules/wcspbrk: New file.
4322         * lib/wchar.in.h (wcspbrk): New declaration.
4323         * lib/wcspbrk.c: New file.
4324         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
4325         * m4/wcspbrk.m4: New file.
4326         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
4327         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
4328         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
4329         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
4330         * doc/posix-functions/wcspbrk.texi: Mention the new module.
4331
4332 2011-02-06  Bruno Haible  <bruno@clisp.org>
4333
4334         New module 'wcsspn'.
4335         * modules/wcsspn: New file.
4336         * lib/wchar.in.h (wcsspn): New declaration.
4337         * lib/wcsspn.c: New file.
4338         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
4339         * m4/wcsspn.m4: New file.
4340         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
4341         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
4342         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
4343         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
4344         * doc/posix-functions/wcsspn.texi: Mention the new module.
4345
4346 2011-02-06  Bruno Haible  <bruno@clisp.org>
4347
4348         New module 'wcscspn'.
4349         * modules/wcscspn: New file.
4350         * lib/wchar.in.h (wcscspn): New declaration.
4351         * lib/wcscspn.c: New file.
4352         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
4353         * m4/wcscspn.m4: New file.
4354         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
4355         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
4356         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
4357         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
4358         * doc/posix-functions/wcscspn.texi: Mention the new module.
4359
4360 2011-02-06  Bruno Haible  <bruno@clisp.org>
4361
4362         New module 'wcsrchr'.
4363         * modules/wcsrchr: New file.
4364         * lib/wchar.in.h (wcsrchr): New declaration.
4365         * lib/wcsrchr.c: New file.
4366         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
4367         * m4/wcsrchr.m4: New file.
4368         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
4369         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
4370         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
4371         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
4372         * doc/posix-functions/wcsrchr.texi: Mention the new module.
4373
4374 2011-02-06  Bruno Haible  <bruno@clisp.org>
4375
4376         New module 'wcschr'.
4377         * modules/wcschr: New file.
4378         * lib/wchar.in.h (wcschr): New declaration.
4379         * lib/wcschr.c: New file.
4380         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
4381         * m4/wcschr.m4: New file.
4382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
4383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
4384         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
4385         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
4386         * doc/posix-functions/wcschr.texi: Mention the new module.
4387
4388 2011-02-06  Bruno Haible  <bruno@clisp.org>
4389
4390         New module 'wcsdup'.
4391         * modules/wcsdup: New file.
4392         * lib/wchar.in.h (wcsdup): New declaration.
4393         * lib/wcsdup.c: New file.
4394         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
4395         * m4/wcsdup.m4: New file.
4396         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
4397         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
4398         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
4399         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
4400         * doc/posix-functions/wcsdup.texi: Mention the new module.
4401
4402 2011-02-06  Bruno Haible  <bruno@clisp.org>
4403
4404         New module 'wcsxfrm'.
4405         * modules/wcsxfrm: New file.
4406         * lib/wchar.in.h (wcsxfrm): New declaration.
4407         * lib/wcsxfrm.c: New file.
4408         * lib/wcsxfrm-impl.h: New file.
4409         * m4/wcsxfrm.m4: New file.
4410         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
4411         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
4412         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
4413         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
4414         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
4415
4416 2011-02-06  Bruno Haible  <bruno@clisp.org>
4417
4418         New module 'wcscoll'.
4419         * modules/wcscoll: New file.
4420         * lib/wchar.in.h (wcscoll): New declaration.
4421         * lib/wcscoll.c: New file.
4422         * lib/wcscoll-impl.h: New file.
4423         * m4/wcscoll.m4: New file.
4424         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
4425         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
4426         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
4427         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
4428         * doc/posix-functions/wcscoll.texi: Mention the new module.
4429
4430 2011-02-06  Bruno Haible  <bruno@clisp.org>
4431
4432         New module 'wcsncasecmp'.
4433         * modules/wcsncasecmp: New file.
4434         * lib/wchar.in.h (wcsncasecmp): New declaration.
4435         * lib/wcsncasecmp.c: New file.
4436         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
4437         * m4/wcsncasecmp.m4: New file.
4438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
4439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
4440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
4441         HAVE_WCSNCASECMP.
4442         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
4443         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
4444
4445 2011-02-06  Bruno Haible  <bruno@clisp.org>
4446
4447         New module 'wcscasecmp'.
4448         * modules/wcscasecmp: New file.
4449         * lib/wchar.in.h (wcscasecmp): New declaration.
4450         * lib/wcscasecmp.c: New file.
4451         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
4452         * m4/wcscasecmp.m4: New file.
4453         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
4454         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
4455         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
4456         HAVE_WCSCASECMP.
4457         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
4458         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
4459
4460 2011-02-05  Bruno Haible  <bruno@clisp.org>
4461
4462         New module 'wcsncmp'.
4463         * modules/wcsncmp: New file.
4464         * lib/wchar.in.h (wcsncmp): New declaration.
4465         * lib/wcsncmp.c: New file.
4466         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
4467         * m4/wcsncmp.m4: New file.
4468         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
4469         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
4470         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
4471         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
4472         * doc/posix-functions/wcsncmp.texi: Mention the new module.
4473
4474 2011-02-05  Bruno Haible  <bruno@clisp.org>
4475
4476         New module 'wcscmp'.
4477         * modules/wcscmp: New file.
4478         * lib/wchar.in.h (wcscmp): New declaration.
4479         * lib/wcscmp.c: New file.
4480         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
4481         * m4/wcscmp.m4: New file.
4482         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
4483         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
4484         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
4485         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
4486         * doc/posix-functions/wcscmp.texi: Mention the new module.
4487
4488 2011-02-05  Bruno Haible  <bruno@clisp.org>
4489
4490         New module 'wcsncat'.
4491         * modules/wcsncat: New file.
4492         * lib/wchar.in.h (wcsncat): New declaration.
4493         * lib/wcsncat.c: New file.
4494         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
4495         * m4/wcsncat.m4: New file.
4496         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
4497         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
4498         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
4499         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
4500         * doc/posix-functions/wcsncat.texi: Mention the new module.
4501
4502 2011-02-05  Bruno Haible  <bruno@clisp.org>
4503
4504         New module 'wcscat'.
4505         * modules/wcscat: New file.
4506         * lib/wchar.in.h (wcscat): New declaration.
4507         * lib/wcscat.c: New file.
4508         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
4509         * m4/wcscat.m4: New file.
4510         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
4511         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
4512         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
4513         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
4514         * doc/posix-functions/wcscat.texi: Mention the new module.
4515
4516 2011-02-05  Bruno Haible  <bruno@clisp.org>
4517
4518         New module 'wcpncpy'.
4519         * modules/wcpncpy: New file.
4520         * lib/wchar.in.h (wcpncpy): New declaration.
4521         * lib/wcpncpy.c: New file.
4522         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
4523         * m4/wcpncpy.m4: New file.
4524         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
4525         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
4526         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
4527         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
4528         * doc/posix-functions/wcpncpy.texi: Mention the new module.
4529
4530 2011-02-05  Bruno Haible  <bruno@clisp.org>
4531
4532         New module 'wcsncpy'.
4533         * modules/wcsncpy: New file.
4534         * lib/wchar.in.h (wcsncpy): New declaration.
4535         * lib/wcsncpy.c: New file.
4536         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
4537         * m4/wcsncpy.m4: New file.
4538         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
4539         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
4540         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
4541         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
4542         * doc/posix-functions/wcsncpy.texi: Mention the new module.
4543
4544 2011-02-05  Bruno Haible  <bruno@clisp.org>
4545
4546         New module 'wcpcpy'.
4547         * modules/wcpcpy: New file.
4548         * lib/wchar.in.h (wcpcpy): New declaration.
4549         * lib/wcpcpy.c: New file.
4550         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
4551         * m4/wcpcpy.m4: New file.
4552         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
4553         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
4554         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
4555         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
4556         * doc/posix-functions/wcpcpy.texi: Mention the new module.
4557
4558 2011-02-05  Bruno Haible  <bruno@clisp.org>
4559
4560         New module 'wcscpy'.
4561         * modules/wcscpy: New file.
4562         * lib/wchar.in.h (wcscpy): New declaration.
4563         * lib/wcscpy.c: New file.
4564         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
4565         * m4/wcscpy.m4: New file.
4566         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
4567         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
4568         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
4569         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
4570         * doc/posix-functions/wcscpy.texi: Mention the new module.
4571
4572 2011-02-05  Bruno Haible  <bruno@clisp.org>
4573
4574         New module 'wcsnlen'.
4575         * modules/wcsnlen: New file.
4576         * lib/wchar.in.h (wcsnlen): New declaration.
4577         * lib/wcsnlen.c: New file.
4578         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
4579         * m4/wcsnlen.m4: New file.
4580         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
4581         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
4582         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
4583         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
4584         * doc/posix-functions/wcsnlen.texi: Mention the new module.
4585
4586 2011-02-05  Bruno Haible  <bruno@clisp.org>
4587
4588         New module 'wcslen'.
4589         * modules/wcslen: New file.
4590         * lib/wchar.in.h (wcslen): New declaration.
4591         * lib/wcslen.c: New file.
4592         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
4593         * m4/wcslen.m4: New file.
4594         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
4595         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
4596         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
4597         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
4598         * doc/posix-functions/wcslen.texi: Mention the new module.
4599
4600 2011-02-05  Bruno Haible  <bruno@clisp.org>
4601
4602         New module 'wmemset'.
4603         * modules/wmemset: New file.
4604         * lib/wchar.in.h (wmemset): New declaration.
4605         * lib/wmemset.c: New file.
4606         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
4607         * m4/wmemset.m4: New file.
4608         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
4609         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
4610         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
4611         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
4612         * doc/posix-functions/wmemset.texi: Mention the new module.
4613
4614 2011-02-05  Bruno Haible  <bruno@clisp.org>
4615
4616         New module 'wmemmove'.
4617         * modules/wmemmove: New file.
4618         * lib/wchar.in.h (wmemmove): New declaration.
4619         * lib/wmemmove.c: New file.
4620         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
4621         * m4/wmemmove.m4: New file.
4622         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
4623         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
4624         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
4625         HAVE_WMEMMOVE.
4626         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
4627         * doc/posix-functions/wmemmove.texi: Mention the new module.
4628
4629 2011-02-05  Bruno Haible  <bruno@clisp.org>
4630
4631         New module 'wmemcpy'.
4632         * modules/wmemcpy: New file.
4633         * lib/wchar.in.h (wmemcpy): New declaration.
4634         * lib/wmemcpy.c: New file.
4635         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
4636         * m4/wmemcpy.m4: New file.
4637         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
4638         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
4639         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
4640         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
4641         * doc/posix-functions/wmemcpy.texi: Mention the new module.
4642
4643 2011-02-05  Bruno Haible  <bruno@clisp.org>
4644
4645         New module 'wmemcmp'.
4646         * modules/wmemcmp: New file.
4647         * lib/wchar.in.h (wmemcmp): New declaration.
4648         * lib/wmemcmp.c: New file.
4649         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
4650         * m4/wmemcmp.m4: New file.
4651         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
4652         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
4653         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
4654         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
4655         * doc/posix-functions/wmemcmp.texi: Mention the new module.
4656
4657 2011-02-07  Jim Meyering  <meyering@redhat.com>
4658
4659         di-set, ino-map: new modules, from coreutils
4660         * lib/di-set.c: New file.
4661         * lib/di-set.h: Likewise.
4662         * lib/ino-map.c: Likewise.
4663         * lib/ino-map.h: Likewise.
4664         * modules/di-set: Likewise.
4665         * modules/di-set-tests: Likewise.
4666         * modules/ino-map: Likewise.
4667         * modules/ino-map-tests: Likewise.
4668         * tests/test-di-set.c: Likewise.
4669         * tests/test-ino-map.c: Likewise.
4670
4671 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
4672
4673         getloadavg: merge minor changes from Emacs
4674
4675         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
4676         (getloadavg): Use memset, not bzero.
4677
4678         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
4679         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4680         clash (bug#86).
4681
4682 2010-11-14  Bruno Haible  <bruno@clisp.org>
4683
4684         Allow multiple gnulib generated replacements to coexist.
4685         * lib/getopt.in.h (struct option): Avoid identical redefinition.
4686         * lib/inttypes.in.h (imaxdiv_t): Likewise.
4687         * lib/langinfo.in.h (nl_item): Likewise.
4688         * lib/math.in.h (_NaN, NAN): Likewise.
4689         * lib/netdb.in.h (struct addrinfo): Likewise.
4690         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
4691         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
4692         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
4693         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
4694         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
4695         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
4696         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
4697         pthread_mutexattr_init, pthread_mutexattr_settype,
4698         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
4699         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
4700         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
4701         pthread_spin_trylock, pthread_spin_unlock): Likewise.
4702         * lib/sched.in.h (struct sched_param): Likewise.
4703         * lib/se-selinux.in.h (security_class_t, security_context_t,
4704         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
4705         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
4706         lsetfilecon, fsetfilecon, security_check_context,
4707         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
4708         Likewise.
4709         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
4710         Likewise.
4711         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
4712         _gl_function_taking_int_returning_void_t, union sigval,
4713         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
4714         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
4715         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4716         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
4717         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
4718         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
4719         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
4720         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
4721         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
4722         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
4723         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
4724         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
4725         socklen_t, rpl_fd_isset): Likewise.
4726         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
4727         * lib/sys_time.in.h (struct timeval): Likewise.
4728         * lib/sys_times.in.h (struct tms): Likewise.
4729         * lib/sys_utsname.in.h (struct utsname):
4730         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
4731         * lib/unistd.in.h (getpagesize): Likewise.
4732         * lib/wchar.in.h (mbstate_t): Likewise.
4733         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4734         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
4735         towlower, towupper): Likewise.
4736         Reported by Sam Steingold <sds@gnu.org>.
4737
4738 2011-02-05  Eric Blake  <eblake@redhat.com>
4739
4740         unsetenv: work around Haiku issues
4741         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
4742         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
4743
4744 2010-12-30  Bruce Korb  <bkorb@gnu.org>
4745
4746         libposix: avoid calling error() within libposix
4747         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
4748         is defined.
4749
4750 2011-02-05  Eric Blake  <eblake@redhat.com>
4751
4752         strerror_r-posix: port to cygwin
4753         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
4754         implementation.
4755         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
4756         * tests/test-strerror_r.c (main): Fix test.
4757         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4758         issue.
4759
4760 2011-02-05  Bruno Haible  <bruno@clisp.org>
4761
4762         New module 'wmemchr'.
4763         * modules/wmemchr: New file.
4764         * lib/wchar.in.h (wmemchr): New declaration.
4765         * lib/wmemchr.c: New file.
4766         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
4767         * m4/wmemchr.m4: New file.
4768         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
4769         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
4770         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
4771         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
4772         * doc/posix-functions/wmemchr.texi: Mention the new module.
4773
4774 2011-02-04  Eric Blake  <eblake@redhat.com>
4775
4776         fdopendir: detect FreeBSD bug
4777         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
4778         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
4779
4780 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4781
4782         stdbool: do not define HAVE_STDBOOL_H
4783         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
4784         AC_HEADER_STDBOOL.  All uses changed.  Do not define
4785         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
4786         imported from the latest Autoconf git.  It was motivated by Emacs,
4787         which uses gnulib but does not need HAVE_STDBOOL_H.
4788
4789 2011-02-04  Bruno Haible  <bruno@clisp.org>
4790
4791         wcsnrtombs: Prepare for new module wwcsnrtombs.
4792         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
4793         * lib/wcsnrtombs.c: Include it.
4794         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
4795
4796         wcsrtombs: Prepare for new module wwcsrtombs.
4797         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
4798         * lib/wcsrtombs.c: Include it.
4799         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
4800
4801         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
4802         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
4803         * lib/mbsnrtowcs.c: Include it.
4804         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
4805
4806         mbsrtowcs: Prepare for new module mbsrtowwcs.
4807         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
4808         * lib/mbsrtowcs.c: Include it.
4809         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
4810
4811 2011-02-04  Bruno Haible  <bruno@clisp.org>
4812
4813         vasnprintf: Reduce use of malloc for small format strings.
4814         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
4815         (arguments): Add room for the first 7 arguments.
4816         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
4817         (char_directives, u8_directives, u16_directives, u32_directives): Add
4818         room for the first 7 directives.
4819         * lib/printf-parse.c: Include <string.h>.
4820         (PRINTF_PARSE): Change memory handling code so that it uses the first
4821         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
4822         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
4823         Reported by Pádraig Brady <P@draigbrady.com>.
4824
4825 2011-01-31  Eric Blake  <eblake@redhat.com>
4826
4827         dup2: work around Haiku bug
4828         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
4829         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
4830         * doc/posix-functions/dup2.texi (dup2): Document the bug.
4831         * tests/test-dup2.c (main): Enhance test.
4832
4833 2011-01-31  Simon Josefsson  <simon@josefsson.org>
4834
4835         doc: off_t is not available in eglibc 2.11.2 stdio.h.
4836         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
4837         declared by eglibc 2.11.2.
4838         * lib/stdio.in.h: Likewise.
4839
4840 2011-01-31  Eric Blake  <eblake@redhat.com>
4841
4842         ignore-value: add missing test dependency
4843         * tests/test-ignore-value.c: Revert previous change; stdio.h
4844         provides off_t.
4845         * modules/ignore-value-tests (Depends-on): Add missing dependency.
4846
4847 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4848
4849         mktime: clarify long_int width checking
4850         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
4851         the top level, to make it clearer that the assumption about
4852         long_int width is being checked.  See
4853         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
4854
4855 2011-01-30  Simon Josefsson  <simon@josefsson.org>
4856
4857         ignore-value: Fix self-test.
4858         * tests/test-ignore-value.c: Include sys/types.h for off_t.
4859
4860 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4861
4862         TYPE_MAXIMUM: avoid theoretically undefined behavior
4863         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
4864         negative number, which the C Standard says has undefined behavior.
4865         In practice this is not a problem, but might as well do it by the book.
4866         Reported by Rich Felker and Eric Blake; see
4867         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
4868         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
4869         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4870         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4871         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
4872         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4873         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
4874
4875         mktime: #undef mktime before #defining it
4876         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
4877
4878         mktime: systematically normalize tm_isdst comparisons
4879         * lib/mktime.c (isdst_differ): New function.
4880         (__mktime_internal): Use it systematically for all isdst comparisons.
4881         This completes the fix for libc BZ #6723, and removes the need for
4882         normalizing tm_isdst.  See
4883         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
4884         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
4885
4886         mktime: fix some integer overflow issues and sidestep the rest
4887
4888         This was prompted by a bug report by Benjamin Lindner for MinGW
4889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
4890         His bug is due to signed integer overflow (0 - INT_MIN), and I
4891         I scanned through mktime.c looking for other integer overflow
4892         problems, fixing all the bugs I found.
4893
4894         Although the C Standard says the resulting code is still not safe
4895         in the presence of integer overflow, in practice it should be good
4896         enough for all real-world two's-complement implementations, except
4897         for debugging environments that deliberately trap on integer
4898         overflow (e.g., gcc -ftrapv).
4899
4900         * lib/mktime.c (WRAPV): New macro.
4901         (SHR): Also check that long_int and time_t shift right in the
4902         usual way, before using the fast-but-unportable method.
4903         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
4904         used.  The code already assumed two's complement, so there's
4905         no need to test for alternatives.  All uses removed.
4906         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
4907         the C standard.  Problem reported by Rich Felker in
4908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
4909         (twos_complement_arithmetic): Also check long_int and time_t.
4910         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
4911         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
4912         (__mktime_internal): Avoid integer overflow with unary subtraction
4913         in two instances where -1 - X is an adequate replacement for -X,
4914         since the calculations are approximate.
4915
4916 2011-01-29  Eric Blake  <eblake@redhat.com>
4917
4918         mktime: avoid infinite loop
4919         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4920         type; behavior is still undefined but portable to all known targets.
4921         Reported by Rich Felker.
4922
4923 2011-01-29  Simon Josefsson  <simon@josefsson.org>
4924
4925         rename, unlink, same-inode: Relicense.
4926         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
4927         * modules/unlink (License): Likewise.
4928         * modules/same-inode (License): Likewise.
4929
4930 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4931
4932         mktime: avoid problems on NetBSD 5 / i386
4933         * lib/mktime.c (long_int): New type.  This works around a problem
4934         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
4935         but time_t is 64 bits, and where I expect the existing code is
4936         wrong in some cases.
4937         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
4938         (ydhms_diff): Bring back the compile-time check for wide-enough
4939         year and yday.
4940
4941         mktime: fix misspelling in comment
4942         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
4943         This merges all recent glibc changes of importance.
4944
4945 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4946
4947         move-if-change: cope with concurrent mv of identical file.
4948         * build-aux/move-if-change (CMPPROG): Accept environment
4949         variable as an override for `cmp'.
4950         (usage): Document CMPPROG.
4951         Adjust comparison to drop stdout.  Cope with failure of mv if
4952         the target file exists and is identical to the source, for
4953         parallel builds.
4954         Report from H.J. Lu against binutils in PR binutils/12283.
4955
4956 2011-01-28  Bruce Korb  <bkorb@gnu.org>
4957
4958         * users.txt: Mention sharutils.
4959
4960 2011-01-28  Simon Josefsson  <simon@josefsson.org>
4961
4962         * users.txt: Mention OATH Toolkit.
4963
4964 2011-01-27  Bruno Haible  <bruno@clisp.org>
4965
4966         Prepare for supporting FreeBSD 10.
4967         * build-aux/config.libpath: Remove handling of freebsd1*.
4968
4969 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
4970
4971         Prepare for supporting FreeBSD 10.
4972         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
4973         match FreeBSD 10.0.
4974
4975 2011-01-27  Bruno Haible  <bruno@clisp.org>
4976
4977         vma-iter, get-rusage-as: Add OpenBSD support.
4978         * modules/vma-iter (configure.ac): Test for mquery.
4979         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
4980         * lib/vma-iter.c: Include <sys/mman.h>.
4981         (vma_iterate): Add an implementation based on mquery().
4982         * lib/resource-ext.h (get_rusage_as): Update comments.
4983         * lib/get-rusage-as.c: Likewise.
4984         * lib/get-rusage-data.c: Likewise.
4985
4986 2011-01-26  Karl Berry  <karl@gnu.org>
4987
4988         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
4989         variables to make it easier to override the makeinfo program used.
4990
4991 2011-01-26  Eric Blake  <eblake@redhat.com>
4992
4993         fcntl: work around Haiku F_DUPFD bugs
4994         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
4995         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
4996         cloexec bit on duplication.
4997         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
4998
4999 2011-01-26  Bruno Haible  <bruno@clisp.org>
5000
5001         Enable memory leak tests on AIX.
5002         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
5003         * tests/test-fprintf-posix3.c (main): Likewise.
5004
5005 2011-01-26  Bruno Haible  <bruno@clisp.org>
5006
5007         Tests for module 'get-rusage-data'.
5008         * modules/get-rusage-data-tests: New file.
5009         * tests/test-get-rusage-data.c: New file.
5010
5011         New module 'get-rusage-data'.
5012         * lib/resource-ext.h (get_rusage_data): New declaration.
5013         * lib/get-rusage-data.c: New file.
5014         * modules/get-rusage-data: New file.
5015
5016 2011-01-25  Bruno Haible  <bruno@clisp.org>
5017
5018         get-rusage-as: Allow for easier testing.
5019         * lib/resource-ext.h (get_rusage_as): Add comment.
5020         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
5021         (main): New function for interactive testing.
5022
5023 2011-01-25  Bruno Haible  <bruno@clisp.org>
5024
5025         vma-iter: Treat Haiku like BeOS.
5026         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
5027         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
5028
5029 2011-01-25  Eric Blake  <eblake@redhat.com>
5030
5031         c-stack: fix regression on cygwin when libsigsegv is present
5032         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
5033
5034 2011-01-24  Bruno Haible  <bruno@clisp.org>
5035
5036         vma-iter: Avoid empty intervals.
5037         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
5038         on an empty interval.
5039
5040 2011-01-24  Jim Meyering  <meyering@redhat.com>
5041
5042         u64: remove unnecessary #include
5043         * lib/u64.h: Don't include <stddef.h>.  It was not used.
5044
5045 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5046
5047         Allow the user to avoid the HAVE_RAW_DECL_* macros.
5048         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
5049
5050 2011-01-23  Bruno Haible  <bruno@clisp.org>
5051
5052         New module 'vma-iter'.
5053         * lib/vma-iter.h: New file.
5054         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
5055         * modules/vma-iter: New file.
5056         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
5057         for get_rusage_as_via_iterator.
5058         (vma_iterate_callback): New function.
5059         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
5060         * modules/get-rusage-as (Depends-on): Add vma-iter.
5061
5062 2011-01-23  Bruno Haible  <bruno@clisp.org>
5063
5064         uninorm: Tweak includes.
5065         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
5066         Reported by Jim Meyering.
5067
5068 2011-01-23  Bruno Haible  <bruno@clisp.org>
5069
5070         get-rusage-as: Improve on NetBSD.
5071         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
5072         /proc, like on FreeBSD.
5073
5074 2011-01-23  Jim Meyering  <meyering@redhat.com>
5075
5076         xreadlink.h: remove unnecessary #include
5077         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
5078
5079         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
5080         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
5081
5082 2011-01-23  Bruno Haible  <bruno@clisp.org>
5083
5084         get-rusage-as: Fix bug.
5085         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
5086         original limit when aborting the first loop.
5087
5088 2011-01-23  Bruno Haible  <bruno@clisp.org>
5089
5090         wctype: Ensure valid C syntax.
5091         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
5092         unconditionally, instead of gl_NEXT_HEADERS conditionally.
5093
5094 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5095
5096         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
5097         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
5098         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
5099         as they are needed only for configure's test case.
5100         This removes two unnecessary symbols from config.h.
5101
5102         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
5103         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
5104         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
5105         AC_CHECK_HEADERS_ONCE on a header that we also invoke
5106         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
5107         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
5108         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
5109         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5110         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5111         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5112         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5113         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5114         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5115         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5116         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5117         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5118         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5119         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5120
5121 2011-01-21  Eric Blake  <eblake@redhat.com>
5122
5123         maintainer-makefile: work with older git for submodule check
5124         * top/maint.mk (public-submodule-commit): Rewrite to avoid
5125         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
5126         Reported by Matthias Bolte.
5127
5128         bootstrap: minor portability fixes
5129         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
5130         (usage): Omit leading capital and trailing . on help phrases, per
5131         GNU Coding Standards.
5132         (check_versions, top level): Prefix messages with script name.
5133
5134 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
5135
5136         bootstrap: support --no-git option
5137         * build-aux/bootstrap: Add --no-git option, to be used when
5138         --gnulib-srcdir points to the exact desired checkout.
5139
5140 2011-01-21  Eric Blake  <eblake@redhat.com>
5141
5142         strerror_r-posix: work with glibc 2.13
5143         * lib/strerror_r.c (strerror_r): Fix return type.
5144
5145 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5146             Bruno Haible  <bruno@clisp.org>
5147
5148         uN_strstr: New unit tests.
5149         * modules/unistr/u8-strstr-tests: New file.
5150         * modules/unistr/u16-strstr-tests: New file.
5151         * modules/unistr/u32-strstr-tests: New file.
5152         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
5153         * tests/unistr/test-u8-strstr.c: New file.
5154         * tests/unistr/test-u16-strstr.c: New file.
5155         * tests/unistr/test-u32-strstr.c: New file.
5156
5157 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5158             Bruno Haible  <bruno@clisp.org>
5159
5160         Make uN_strstr functions O(n) worst-case.
5161         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
5162         16-bit and 32-bit unit cases, use the unibyte algorithm from
5163         lib/mbsstr.c.
5164         * lib/unistr/u8-strstr.c: Include <string.h>.
5165         (UNIT_IS_UINT8_T): New macro.
5166         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
5167         (U_STRLEN, U_STRNLEN): New macros.
5168         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
5169         (U_STRLEN, U_STRNLEN): New macros.
5170         * modules/unistr/u8-strstr (Depends-on): Add strstr.
5171         (configure.ac): Update required libunistring version.
5172         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
5173         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
5174         malloca.
5175         (configure.ac): Update required libunistring version.
5176         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
5177         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
5178         malloca.
5179         (configure.ac): Update required libunistring version.
5180
5181 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5182             Bruno Haible  <bruno@clisp.org>
5183
5184         Prepare for faster uN_strstr functions.
5185         * lib/str-kmp.h: Support definable UNITs.
5186         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
5187         needle_len argument.
5188         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
5189         * lib/mbscasestr.c (mbscasestr): Likewise.
5190
5191 2011-01-21  Pádraig Brady <P@draigBrady.com>
5192
5193         malloca-tests: make faster by unsetting MALLOC_PERTURB_
5194         * tests/test-malloca.c (main): Unset the environment variable
5195         to greatly speed up the test.
5196         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
5197         * modules/malloca-tests: Depend on unsetenv.
5198
5199 2011-01-21  Pádraig Brady <P@draigBrady.com>
5200
5201         ignore-value: remove stdint dependency
5202         * lib/ignore-value.h: Remove <stdint.h>
5203         * modules/ignore-value: Remove stdint dependency.
5204
5205 2011-01-21  Jim Meyering  <meyering@redhat.com>
5206
5207         maint.mk: adjust variable name to be consistent with other gl_ vars
5208         * top/maint.mk (gl_public_submodule_commit): Rename the variable
5209         to be lower case.
5210
5211 2011-01-20  Jim Meyering  <meyering@redhat.com>
5212
5213         maint.mk: make "check" depend on public-submodule-commit by default
5214         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
5215
5216 2011-01-20  Bruno Haible  <bruno@clisp.org>
5217
5218         mbfile, mbiter: Complete change from 2008-12-21.
5219         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
5220         * m4/mbiter.m4 (gl_MBITER): Likewise.
5221
5222 2011-01-20  Jim Meyering  <meyering@redhat.com>
5223
5224         init.sh: insert space between each function name and "()"
5225         * tests/init.sh: Make it a little easier to see that a function's
5226         name is "warn_", and not "warn" when looking at the first part of
5227         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
5228
5229 2011-01-20  Jim Meyering  <meyering@redhat.com>
5230
5231         mountlist: clean up code formatting
5232         * lib/mountlist.c (read_file_system_list): Split a long line,
5233         correct bracing style, use NULL in place of "(struct statfs *)0",
5234         don't parenthesize return value, add spaces around "=" and after
5235         ";-in-for-stmt".
5236
5237 2011-01-14  Markus Duft <mduft@gentoo.org>
5238
5239         mountlist: add support for Interix
5240         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
5241         Apply statvfs to all entries of /dev/fs.
5242         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
5243         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
5244
5245 2011-01-20  Jim Meyering  <meyering@redhat.com>
5246
5247         maint.mk: improve the public-submodule-commit rule
5248         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
5249         to suppress printing of its commands... unless V=1.
5250         Add git submodule's --quiet option to suppress printing of e.g.,
5251         "Entering gnulib" output.
5252         "cd" into $(srcdir) before running git submodule.
5253
5254 2011-01-20  Bruno Haible  <bruno@clisp.org>
5255
5256         include_next: Fix bug introduced on 2011-01-18.
5257         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
5258         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
5259         ac_cv_header_... variable if the second argument is not 'check'.
5260         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
5261         gl_NEXT_HEADERS_INTERNAL.
5262
5263 2011-01-20  Bruno Haible  <bruno@clisp.org>
5264
5265         Allow the user to avoid the GNULIB_TEST_* macros.
5266         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
5267         Suggested by Paul Eggert.
5268
5269 2011-01-14  Jim Meyering  <meyering@redhat.com>
5270
5271         bootstrap: avoid failure when there is no .gitmodules file
5272         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
5273         has been assigned to, even when its value is the empty string.
5274         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
5275         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
5276         Reported by John W. Eaton <jwe@gnu.org>.
5277
5278 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
5279
5280         assume <ctype.h>, ..., <time.h> exist
5281         For years gnulib has been assuming the existence of the headers
5282         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
5283         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
5284         them, since they don't appear to be needed.
5285         * README (Portability guidelines): Document this.
5286         * lib/flock.c: Assume <fcntl.h> exists.
5287         * lib/regex_internal.h: Assume <locale.h> exists.
5288         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
5289         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
5290         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
5291         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
5292         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
5293         * m4/regex.m4 (gl_REGEX): Likewise.
5294         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
5295         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
5296         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
5297         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
5298         * tests/test-argp.c: Likewise.
5299         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
5300
5301         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
5302         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
5303         AA_APPLE_UNIVERSAL_BUILD.  See
5304         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
5305         * NEWS: Document this.
5306
5307 2011-01-19  Eric Blake  <eblake@redhat.com>
5308
5309         c-stack: assume stack overflow if SA_SIGINFO unsupported
5310         * lib/c-stack.c (SIGACTION_WORKS): Rename...
5311         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
5312         sigaction will work.
5313         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
5314         behavior match Linux.
5315         * tests/test-c-stack.c (main): Prefer NULL for pointers.
5316
5317         stdbool-tests: accomodate Haiku
5318         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
5319
5320         binary-io: fix O_TEXT on Haiku
5321         * modules/binary-io (Depends-on): Add fcntl-h.
5322         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
5323         than blindly undefining O_TEXT.
5324         Reported by Scott McCreary.
5325
5326 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5327
5328         include_next: do not check for standard headers like stddef.h
5329
5330         I found this problem when modifying Emacs to use gnulib.
5331         I noticed that it added HAVE_STDDEF_H to config.h, even though
5332         gnulib always assumes <stddef.h> exists as per README and this
5333         symbol is unnecessary.
5334         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
5335         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
5336         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
5337         faster for headers like stddef.h that are known to exist.
5338         (gl_CHECK_NEXT_HEADERS): Use it.
5339         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
5340         rather than gl_CHECK_NEXT_HEADERS.
5341         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
5342         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
5343
5344 2011-01-18  Eric Blake  <eblake@redhat.com>
5345
5346         ansi-c++-opt: skip C++ dependency style if C++ is unused
5347         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
5348         tests when we know C++ compilation is not desired.
5349         Reported by Scott McCreary.
5350
5351 2011-01-18  Bruno Haible  <bruno@clisp.org>
5352
5353         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
5354         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
5355         (main): Perform test also when getrlimit and setrlimit don't exist or
5356         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
5357         limiting the address space size using setrlimit, compare the address
5358         space size before and after the the test.
5359         * tests/test-dprintf-posix2.c: Likewise.
5360         * tests/test-fprintf-posix3.sh: Update skip messages.
5361         * tests/test-dprintf-posix2.sh: Likewise.
5362         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
5363         * modules/dprintf-posix-tests (Depends-on): Likewise.
5364         Reported by Bruce Korb <bkorb@gnu.org> and
5365         Gary V. Vaughan <gary@gnu.org>.
5366
5367 2011-01-18  Bruno Haible  <bruno@clisp.org>
5368
5369         get-rusage-as: Improvement for Cygwin.
5370         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
5371         areas that are merely reserved.
5372
5373 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5374
5375         strftime: remove dependencies on multibyte modules
5376
5377         strftime depended on mbrlen, mbsinit, and wchar, but these modules
5378         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
5379         only if __osf__ is defined, and I suspect OSF doesn't need these
5380         other modules.  If my guess is wrong, we'll need to come up with a
5381         variant of strftime that doesn't need the multibyte modules.
5382
5383         I discovered this problem when attempting modify Emacs to use the
5384         strftime module.  With the previous gnulib, this caused Emacs to
5385         need 31 new files, ranging from lib/config.charset to
5386         m4/wint_t.m4.  This was overkill and I expect would be offputting
5387         to the Emacs maintainers.  After this change, only 6 new files are
5388         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
5389         stdbool.m4, and tm_gmtoff.m4.
5390
5391         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
5392         Suggested by Bruno Haible in
5393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
5394         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
5395         and do not check for wchar.h.
5396         * modules/strftime (Files): Remove m4/mbstate_t.m4.
5397         (Depends-on): Remove mbrlen, mbsinit, wchar.
5398
5399 2011-01-18  Bruno Haible  <bruno@clisp.org>
5400
5401         Tests for module 'get-rusage-as'.
5402         * modules/get-rusage-as-tests: New file.
5403         * tests/test-get-rusage-as.c: New file.
5404
5405         New module 'get-rusage-as'.
5406         * modules/get-rusage-as: New file.
5407         * lib/resource-ext.h: New file.
5408         * lib/get-rusage-as.c: New file.
5409
5410 2011-01-17  Eric Blake  <eblake@redhat.com>
5411
5412         sigaction: relax license from LGPLv3+ to LGPLv2+
5413         * modules/sigaction (License): Relax to LGPLv2+.
5414
5415 2011-01-14  Bruno Haible  <bruno@clisp.org>
5416
5417         filemode: Make function declarations usable in C++ mode.
5418         * lib/filemode.h: Enclose function declarations in extern "C" block.
5419         Reported by John W. Eaton <jwe@gnu.org>.
5420
5421 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
5422
5423         save-cwd: no longer include "xgetcwd.h"
5424         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
5425         This avoids a compilation failure in projects that use save-cwd
5426         without also using the xgetcwd module.
5427
5428 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5429
5430         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
5431         This is so that a program like Emacs, which needs only dtoastr,
5432         does not have to bother with distributing and compiling ftoastr
5433         and ldtoastr.
5434         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
5435         * modules/dtoastr, modules/ldtoastr: New files.
5436         * modules/ftoastr: Now works just for 'float'.
5437         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
5438         (Makefile.am): Remove ftoastr.h (not needed and no effect),
5439         dtoastr.c, ldtoastr.c.
5440
5441 2011-01-11  Jim Meyering  <meyering@redhat.com>
5442
5443         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
5444         There is no need to work around the lack of the fchdir function,
5445         since gnulib can now provide a replacement when required.
5446         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
5447         * modules/save-cwd (Depends-on): Add fchdir.
5448
5449 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5450
5451         openat, save-cwd: avoid xmalloc
5452
5453         This removes a direct (but undocumented) dependency of openat on
5454         xalloc, along with an indirect dependency via save-cwd.  It also
5455         removes a dependency of save-cwd on xgetcwd, and thereby
5456         indirectly on xalloc.  This change causes the openat substitute
5457         to fall back on save_cwd when memory is tight, and for save_cwd to
5458         fail instead of dying when memory is tight, but that's good enough.
5459         Problem and initial idea for fix reported by Bastien Roucaries in
5460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
5461
5462         * lib/openat-proc.c: Include stdlib.h (for malloc), not
5463         xalloc.h (for xmalloc).
5464         (openat_proc_name): Use malloc, not xmalloc.
5465         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
5466         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
5467
5468         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
5469         This avoids heap allocation for file names whose lengths are in
5470         the range 512..1023, with the upper bound increasing to at most
5471         4031 depending on the platform's PATH_MAX.  (We do not want
5472         pathmax.h here as it might supply a non-constant PATH_MAX.)
5473         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
5474         Perhaps they should be moved to malloca.h?
5475         (OPENAT_BUFFER_SIZE): Use them.
5476
5477 2011-01-10  Bruno Haible  <bruno@clisp.org>
5478
5479         doc: Update users.txt.
5480         * users.txt: Add recutils.
5481
5482 2011-01-09  Karl Berry  <karl@gnu.org>
5483
5484         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
5485
5486         * doc/configmake.texi: New file.
5487         * doc/gnulib.texi: Include it.
5488         * modules/configmake: Move documentation from here.
5489
5490 2011-01-09  Bruno Haible  <bruno@clisp.org>
5491
5492         Update to Unicode 6.0.0.
5493         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
5494         (get_lbp): Update for Unicode 6.0.0.
5495         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
5496         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
5497         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
5498         U+11001, U+11038..U+11046. Remove U+06DE.
5499         (uc_width): Fix bounds of planes.
5500         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5501         lib/uniwidth/width.c.
5502         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
5503         trailing whitespace removed.
5504         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
5505         without comments, but with the original copyright notice.
5506         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
5507         * lib/unicase/ignorable.h: Likewise.
5508         * lib/unicase/tocasefold.h: Likewise.
5509         * lib/unicase/tolower.h: Likewise.
5510         * lib/unicase/totitle.h: Likewise.
5511         * lib/unicase/toupper.h: Likewise.
5512         * lib/unictype/bidi_of.h: Likewise.
5513         * lib/unictype/blocks.h: Likewise.
5514         * lib/unictype/categ_C.h: Likewise.
5515         * lib/unictype/categ_Cn.h: Likewise.
5516         * lib/unictype/categ_L.h: Likewise.
5517         * lib/unictype/categ_Ll.h: Likewise.
5518         * lib/unictype/categ_Lm.h: Likewise.
5519         * lib/unictype/categ_Lo.h: Likewise.
5520         * lib/unictype/categ_Lu.h: Likewise.
5521         * lib/unictype/categ_M.h: Likewise.
5522         * lib/unictype/categ_Mc.h: Likewise.
5523         * lib/unictype/categ_Me.h: Likewise.
5524         * lib/unictype/categ_Mn.h: Likewise.
5525         * lib/unictype/categ_N.h: Likewise.
5526         * lib/unictype/categ_Nd.h: Likewise.
5527         * lib/unictype/categ_No.h: Likewise.
5528         * lib/unictype/categ_P.h: Likewise.
5529         * lib/unictype/categ_Po.h: Likewise.
5530         * lib/unictype/categ_S.h: Likewise.
5531         * lib/unictype/categ_Sc.h: Likewise.
5532         * lib/unictype/categ_Sk.h: Likewise.
5533         * lib/unictype/categ_Sm.h: Likewise.
5534         * lib/unictype/categ_So.h: Likewise.
5535         * lib/unictype/categ_of.h: Likewise.
5536         * lib/unictype/combining.h: Likewise.
5537         * lib/unictype/ctype_alnum.h: Likewise.
5538         * lib/unictype/ctype_alpha.h: Likewise.
5539         * lib/unictype/ctype_graph.h: Likewise.
5540         * lib/unictype/ctype_lower.h: Likewise.
5541         * lib/unictype/ctype_print.h: Likewise.
5542         * lib/unictype/ctype_punct.h: Likewise.
5543         * lib/unictype/ctype_upper.h: Likewise.
5544         * lib/unictype/decdigit.h: Likewise.
5545         * lib/unictype/digit.h: Likewise.
5546         * lib/unictype/numeric.h: Likewise.
5547         * lib/unictype/pr_alphabetic.h: Likewise.
5548         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5549         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5550         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5551         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5552         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5553         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5554         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5555         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5556         * lib/unictype/pr_case_ignorable.h: Likewise.
5557         * lib/unictype/pr_cased.h: Likewise.
5558         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
5559         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
5560         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
5561         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
5562         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
5563         * lib/unictype/pr_combining.h: Likewise.
5564         * lib/unictype/pr_composite.h: Likewise.
5565         * lib/unictype/pr_currency_symbol.h: Likewise.
5566         * lib/unictype/pr_decimal_digit.h: Likewise.
5567         * lib/unictype/pr_deprecated.h: Likewise.
5568         * lib/unictype/pr_format_control.h: Likewise.
5569         * lib/unictype/pr_grapheme_base.h: Likewise.
5570         * lib/unictype/pr_grapheme_extend.h: Likewise.
5571         * lib/unictype/pr_grapheme_link.h: Likewise.
5572         * lib/unictype/pr_id_continue.h: Likewise.
5573         * lib/unictype/pr_id_start.h: Likewise.
5574         * lib/unictype/pr_ideographic.h: Likewise.
5575         * lib/unictype/pr_lowercase.h: Likewise.
5576         * lib/unictype/pr_math.h: Likewise.
5577         * lib/unictype/pr_numeric.h: Likewise.
5578         * lib/unictype/pr_other_alphabetic.h: Likewise.
5579         * lib/unictype/pr_other_id_continue.h: Likewise.
5580         * lib/unictype/pr_other_math.h: Likewise.
5581         * lib/unictype/pr_punctuation.h: Likewise.
5582         * lib/unictype/pr_sentence_terminal.h: Likewise.
5583         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5584         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5585         * lib/unictype/pr_unified_ideograph.h: Likewise.
5586         * lib/unictype/pr_uppercase.h: Likewise.
5587         * lib/unictype/pr_xid_continue.h: Likewise.
5588         * lib/unictype/pr_xid_start.h: Likewise.
5589         * lib/unictype/scripts.h: Likewise.
5590         * lib/unictype/scripts_byname.gperf: Likewise.
5591         * lib/unictype/sy_java_ident.h: Likewise.
5592         * lib/unigbrk/gbrkprop.h: Likewise.
5593         * lib/unilbrk/lbrkprop1.h: Likewise.
5594         * lib/unilbrk/lbrkprop2.h: Likewise.
5595         * lib/uninorm/decomposition-table2.h: Likewise.
5596         * lib/uniwbrk/wbrkprop.h: Likewise.
5597         * tests/unicase/test-cased.c: Likewise.
5598         * tests/unicase/test-ignorable.c: Likewise.
5599         * tests/unicase/test-uc_tolower.c: Likewise.
5600         * tests/unicase/test-uc_totitle.c: Likewise.
5601         * tests/unicase/test-uc_toupper.c: Likewise.
5602         * tests/unictype/test-categ_C.c: Likewise.
5603         * tests/unictype/test-categ_Cn.c: Likewise.
5604         * tests/unictype/test-categ_L.c: Likewise.
5605         * tests/unictype/test-categ_Ll.c: Likewise.
5606         * tests/unictype/test-categ_Lm.c: Likewise.
5607         * tests/unictype/test-categ_Lo.c: Likewise.
5608         * tests/unictype/test-categ_Lu.c: Likewise.
5609         * tests/unictype/test-categ_M.c: Likewise.
5610         * tests/unictype/test-categ_Mc.c: Likewise.
5611         * tests/unictype/test-categ_Me.c: Likewise.
5612         * tests/unictype/test-categ_Mn.c: Likewise.
5613         * tests/unictype/test-categ_N.c: Likewise.
5614         * tests/unictype/test-categ_Nd.c: Likewise.
5615         * tests/unictype/test-categ_No.c: Likewise.
5616         * tests/unictype/test-categ_P.c: Likewise.
5617         * tests/unictype/test-categ_Po.c: Likewise.
5618         * tests/unictype/test-categ_S.c: Likewise.
5619         * tests/unictype/test-categ_Sc.c: Likewise.
5620         * tests/unictype/test-categ_Sk.c: Likewise.
5621         * tests/unictype/test-categ_Sm.c: Likewise.
5622         * tests/unictype/test-categ_So.c: Likewise.
5623         * tests/unictype/test-ctype_alnum.c: Likewise.
5624         * tests/unictype/test-ctype_alpha.c: Likewise.
5625         * tests/unictype/test-ctype_graph.c: Likewise.
5626         * tests/unictype/test-ctype_lower.c: Likewise.
5627         * tests/unictype/test-ctype_print.c: Likewise.
5628         * tests/unictype/test-ctype_punct.c: Likewise.
5629         * tests/unictype/test-ctype_upper.c: Likewise.
5630         * tests/unictype/test-decdigit.h: Likewise.
5631         * tests/unictype/test-digit.h: Likewise.
5632         * tests/unictype/test-numeric.h: Likewise.
5633         * tests/unictype/test-pr_alphabetic.c: Likewise.
5634         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5635         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
5636         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
5637         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5638         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5639         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5640         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5641         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5642         * tests/unictype/test-pr_case_ignorable.c: Likewise.
5643         * tests/unictype/test-pr_cased.c: Likewise.
5644         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
5645         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
5646         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
5647         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
5648         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
5649         * tests/unictype/test-pr_combining.c: Likewise.
5650         * tests/unictype/test-pr_composite.c: Likewise.
5651         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5652         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5653         * tests/unictype/test-pr_deprecated.c: Likewise.
5654         * tests/unictype/test-pr_format_control.c: Likewise.
5655         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5656         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5657         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5658         * tests/unictype/test-pr_id_continue.c: Likewise.
5659         * tests/unictype/test-pr_id_start.c: Likewise.
5660         * tests/unictype/test-pr_ideographic.c: Likewise.
5661         * tests/unictype/test-pr_lowercase.c: Likewise.
5662         * tests/unictype/test-pr_math.c: Likewise.
5663         * tests/unictype/test-pr_numeric.c: Likewise.
5664         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5665         * tests/unictype/test-pr_other_id_continue.c: Likewise.
5666         * tests/unictype/test-pr_other_math.c: Likewise.
5667         * tests/unictype/test-pr_punctuation.c: Likewise.
5668         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5669         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5670         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5671         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5672         * tests/unictype/test-pr_uppercase.c: Likewise.
5673         * tests/unictype/test-pr_xid_continue.c: Likewise.
5674         * tests/unictype/test-pr_xid_start.c: Likewise.
5675         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5676         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5677         changes.
5678         * lib/unictype/categ_Cc.h: Likewise.
5679         * lib/unictype/categ_Cf.h: Likewise.
5680         * lib/unictype/categ_Co.h: Likewise.
5681         * lib/unictype/categ_Cs.h: Likewise.
5682         * lib/unictype/categ_Lt.h: Likewise.
5683         * lib/unictype/categ_Nl.h: Likewise.
5684         * lib/unictype/categ_Pc.h: Likewise.
5685         * lib/unictype/categ_Pd.h: Likewise.
5686         * lib/unictype/categ_Pe.h: Likewise.
5687         * lib/unictype/categ_Pf.h: Likewise.
5688         * lib/unictype/categ_Pi.h: Likewise.
5689         * lib/unictype/categ_Ps.h: Likewise.
5690         * lib/unictype/categ_Z.h: Likewise.
5691         * lib/unictype/categ_Zl.h: Likewise.
5692         * lib/unictype/categ_Zp.h: Likewise.
5693         * lib/unictype/categ_Zs.h: Likewise.
5694         * lib/unictype/ctype_blank.h: Likewise.
5695         * lib/unictype/ctype_cntrl.h: Likewise.
5696         * lib/unictype/ctype_digit.h: Likewise.
5697         * lib/unictype/ctype_space.h: Likewise.
5698         * lib/unictype/ctype_xdigit.h: Likewise.
5699         * lib/unictype/mirror.h: Likewise.
5700         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5701         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5702         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5703         * lib/unictype/pr_bidi_control.h: Likewise.
5704         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5705         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5706         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5707         * lib/unictype/pr_bidi_pdf.h: Likewise.
5708         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5709         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5710         * lib/unictype/pr_dash.h: Likewise.
5711         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5712         * lib/unictype/pr_diacritic.h: Likewise.
5713         * lib/unictype/pr_extender.h: Likewise.
5714         * lib/unictype/pr_hex_digit.h: Likewise.
5715         * lib/unictype/pr_hyphen.h: Likewise.
5716         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5717         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5718         * lib/unictype/pr_ignorable_control.h: Likewise.
5719         * lib/unictype/pr_iso_control.h: Likewise.
5720         * lib/unictype/pr_join_control.h: Likewise.
5721         * lib/unictype/pr_left_of_pair.h: Likewise.
5722         * lib/unictype/pr_line_separator.h: Likewise.
5723         * lib/unictype/pr_logical_order_exception.h: Likewise.
5724         * lib/unictype/pr_non_break.h: Likewise.
5725         * lib/unictype/pr_not_a_character.h: Likewise.
5726         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5727         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5728         * lib/unictype/pr_other_id_start.h: Likewise.
5729         * lib/unictype/pr_other_lowercase.h: Likewise.
5730         * lib/unictype/pr_other_uppercase.h: Likewise.
5731         * lib/unictype/pr_paired_punctuation.h: Likewise.
5732         * lib/unictype/pr_paragraph_separator.h: Likewise.
5733         * lib/unictype/pr_pattern_syntax.h: Likewise.
5734         * lib/unictype/pr_pattern_white_space.h: Likewise.
5735         * lib/unictype/pr_private_use.h: Likewise.
5736         * lib/unictype/pr_quotation_mark.h: Likewise.
5737         * lib/unictype/pr_radical.h: Likewise.
5738         * lib/unictype/pr_soft_dotted.h: Likewise.
5739         * lib/unictype/pr_space.h: Likewise.
5740         * lib/unictype/pr_titlecase.h: Likewise.
5741         * lib/unictype/pr_variation_selector.h: Likewise.
5742         * lib/unictype/pr_white_space.h: Likewise.
5743         * lib/unictype/pr_zero_width.h: Likewise.
5744         * lib/unictype/sy_c_ident.h: Likewise.
5745         * lib/unictype/sy_c_whitespace.h: Likewise.
5746         * lib/unictype/sy_java_whitespace.h: Likewise.
5747         * lib/uninorm/composition-table.gperf: Likewise.
5748         * lib/uninorm/decomposition-table1.h: Likewise.
5749         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
5750         LB8.
5751         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5752         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5753         * modules/unictype/*: Bump version number of expected libunistring
5754         version.
5755
5756 2011-01-09  Bruno Haible  <bruno@clisp.org>
5757
5758         Update to Unicode 5.2.0.
5759         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
5760         trailing whitespace removed.
5761
5762 2011-01-09  Bruno Haible  <bruno@clisp.org>
5763
5764         New Unicode character properties, from Unicode 5.2.0.
5765         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
5766         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
5767         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
5768         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
5769         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
5770         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
5771         uc_is_property_cased, uc_is_property_case_ignorable,
5772         uc_is_property_changes_when_lowercased,
5773         uc_is_property_changes_when_uppercased,
5774         uc_is_property_changes_when_titlecased,
5775         uc_is_property_changes_when_casefolded,
5776         uc_is_property_changes_when_casemapped): New declarations.
5777         * lib/unictype/pr_byname.gperf: Add the new properties.
5778         * modules/unictype/property-byname (Depends-on): Depend on the new
5779         properties modules.
5780         * modules/unictype/property-all (Depends-on): Likewise.
5781         * MODULES.html.sh (Unicode string functions): Add
5782         unictype/property-case-ignorable, unictype/property-cased,
5783         unictype/property-changes-when-casefolded,
5784         unictype/property-changes-when-casemapped,
5785         unictype/property-changes-when-lowercased,
5786         unictype/property-changes-when-titlecased,
5787         unictype/property-changes-when-uppercased.
5788
5789         New module 'unictype/property-changes-when-casemapped'.
5790         * modules/unictype/property-changes-when-casemapped: New file.
5791         * lib/unictype/pr_changes_when_casemapped.c: New file.
5792         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
5793         generated by gen-uni-tables.
5794         * modules/unictype/property-changes-when-casemapped-tests: New file.
5795         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
5796         automatically generated by gen-uni-tables.
5797
5798         New module 'unictype/property-changes-when-casefolded'.
5799         * modules/unictype/property-changes-when-casefolded: New file.
5800         * lib/unictype/pr_changes_when_casefolded.c: New file.
5801         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
5802         generated by gen-uni-tables.
5803         * modules/unictype/property-changes-when-casefolded-tests: New file.
5804         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
5805         automatically generated by gen-uni-tables.
5806
5807         New module 'unictype/property-changes-when-titlecased'.
5808         * modules/unictype/property-changes-when-titlecased: New file.
5809         * lib/unictype/pr_changes_when_titlecased.c: New file.
5810         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
5811         generated by gen-uni-tables.
5812         * modules/unictype/property-changes-when-titlecased-tests: New file.
5813         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
5814         automatically generated by gen-uni-tables.
5815
5816         New module 'unictype/property-changes-when-uppercased'.
5817         * modules/unictype/property-changes-when-uppercased: New file.
5818         * lib/unictype/pr_changes_when_uppercased.c: New file.
5819         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
5820         generated by gen-uni-tables.
5821         * modules/unictype/property-changes-when-uppercased-tests: New file.
5822         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
5823         automatically generated by gen-uni-tables.
5824
5825         New module 'unictype/property-changes-when-lowercased'.
5826         * modules/unictype/property-changes-when-lowercased: New file.
5827         * lib/unictype/pr_changes_when_lowercased.c: New file.
5828         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
5829         generated by gen-uni-tables.
5830         * modules/unictype/property-changes-when-lowercased-tests: New file.
5831         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
5832         automatically generated by gen-uni-tables.
5833
5834         New module 'unictype/property-case-ignorable'.
5835         * modules/unictype/property-case-ignorable: New file.
5836         * lib/unictype/pr_case_ignorable.c: New file.
5837         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
5838         by gen-uni-tables.
5839         * modules/unictype/property-case-ignorable-tests: New file.
5840         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
5841         generated by gen-uni-tables.
5842
5843         New module 'unictype/property-cased'.
5844         * modules/unictype/property-cased: New file.
5845         * lib/unictype/pr_cased.c: New file.
5846         * lib/unictype/pr_cased.h: New file, automatically generated by
5847         gen-uni-tables.
5848         * modules/unictype/property-cased-tests: New file.
5849         * tests/unictype/test-pr_cased.c: New file, automatically generated by
5850         gen-uni-tables.
5851
5852 2011-01-09  Bruno Haible  <bruno@clisp.org>
5853
5854         Update to Unicode 5.2.0.
5855         * lib/gen-uni-tables.c (output_predicate, output_category,
5856         output_combclass, output_bidi_category, output_decimal_digit_test,
5857         output_decimal_digit, output_digit_test, output_digit,
5858         output_numeric_test, output_numeric, output_mirror, output_scripts,
5859         output_scripts_byname, output_blocks, output_ident_category): Fix
5860         comment header.
5861         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
5862         get_wbp.
5863         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
5864         items.
5865         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
5866         Changes_When_Lowercased, Changes_When_Uppercased,
5867         Changes_When_Titlecased, Changes_When_Casefolded,
5868         Changes_When_Casemapped.
5869         (is_property_alphabetic, is_property_default_ignorable_code_point):
5870         Update for Unicode 5.2.0.
5871         (is_property_cased, is_property_case_ignorable,
5872         is_property_changes_when_lowercased,
5873         is_property_changes_when_uppercased,
5874         is_property_changes_when_titlecased,
5875         is_property_changes_when_casefolded,
5876         is_property_changes_when_casemapped): New functions.
5877         (output_properties): Output also the properties cased, case_ignorable,
5878         changes_when_lowercased, changes_when_uppercased,
5879         changes_when_titlecased, changes_when_casefolded,
5880         changes_when_casemapped.
5881         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
5882         Unicode TR#11 revision 17 -> 19.
5883         (LBP_CP): New enumeration value.
5884         (LBP_*): Adjust values accordingly.
5885         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5886         TR#14 revision 22 -> 24.
5887         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
5888         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
5889         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5890         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
5891         is_WBP_MIDLETTER.
5892         (output_composition_tables): Allow for 24 bits instead of 16 bits in
5893         the code1 and code2 of each composition rule.
5894         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
5895         * lib/unicase/ignorable.h: Likewise.
5896         * lib/unicase/tocasefold.h: Likewise.
5897         * lib/unicase/tolower.h: Likewise.
5898         * lib/unicase/totitle.h: Likewise.
5899         * lib/unicase/toupper.h: Likewise.
5900         * lib/unictype/bidi_of.h: Likewise.
5901         * lib/unictype/blocks.h: Likewise.
5902         * lib/unictype/categ_C.h: Likewise.
5903         * lib/unictype/categ_Cf.h: Likewise.
5904         * lib/unictype/categ_Cn.h: Likewise.
5905         * lib/unictype/categ_L.h: Likewise.
5906         * lib/unictype/categ_Ll.h: Likewise.
5907         * lib/unictype/categ_Lm.h: Likewise.
5908         * lib/unictype/categ_Lo.h: Likewise.
5909         * lib/unictype/categ_Lu.h: Likewise.
5910         * lib/unictype/categ_M.h: Likewise.
5911         * lib/unictype/categ_Mc.h: Likewise.
5912         * lib/unictype/categ_Mn.h: Likewise.
5913         * lib/unictype/categ_N.h: Likewise.
5914         * lib/unictype/categ_Nd.h: Likewise.
5915         * lib/unictype/categ_Nl.h: Likewise.
5916         * lib/unictype/categ_No.h: Likewise.
5917         * lib/unictype/categ_P.h: Likewise.
5918         * lib/unictype/categ_Pd.h: Likewise.
5919         * lib/unictype/categ_Po.h: Likewise.
5920         * lib/unictype/categ_S.h: Likewise.
5921         * lib/unictype/categ_Sc.h: Likewise.
5922         * lib/unictype/categ_So.h: Likewise.
5923         * lib/unictype/categ_of.h: Likewise.
5924         * lib/unictype/combining.h: Likewise.
5925         * lib/unictype/ctype_alnum.h: Likewise.
5926         * lib/unictype/ctype_alpha.h: Likewise.
5927         * lib/unictype/ctype_graph.h: Likewise.
5928         * lib/unictype/ctype_lower.h: Likewise.
5929         * lib/unictype/ctype_print.h: Likewise.
5930         * lib/unictype/ctype_punct.h: Likewise.
5931         * lib/unictype/ctype_upper.h: Likewise.
5932         * lib/unictype/decdigit.h: Likewise.
5933         * lib/unictype/digit.h: Likewise.
5934         * lib/unictype/numeric.h: Likewise.
5935         * lib/unictype/pr_alphabetic.h: Likewise.
5936         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5937         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5938         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5939         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5940         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5941         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5942         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5943         * lib/unictype/pr_combining.h: Likewise.
5944         * lib/unictype/pr_composite.h: Likewise.
5945         * lib/unictype/pr_currency_symbol.h: Likewise.
5946         * lib/unictype/pr_dash.h: Likewise.
5947         * lib/unictype/pr_decimal_digit.h: Likewise.
5948         * lib/unictype/pr_deprecated.h: Likewise.
5949         * lib/unictype/pr_diacritic.h: Likewise.
5950         * lib/unictype/pr_extender.h: Likewise.
5951         * lib/unictype/pr_grapheme_base.h: Likewise.
5952         * lib/unictype/pr_grapheme_extend.h: Likewise.
5953         * lib/unictype/pr_grapheme_link.h: Likewise.
5954         * lib/unictype/pr_id_continue.h: Likewise.
5955         * lib/unictype/pr_id_start.h: Likewise.
5956         * lib/unictype/pr_ideographic.h: Likewise.
5957         * lib/unictype/pr_ignorable_control.h: Likewise.
5958         * lib/unictype/pr_logical_order_exception.h: Likewise.
5959         * lib/unictype/pr_lowercase.h: Likewise.
5960         * lib/unictype/pr_numeric.h: Likewise.
5961         * lib/unictype/pr_other_alphabetic.h: Likewise.
5962         * lib/unictype/pr_punctuation.h: Likewise.
5963         * lib/unictype/pr_sentence_terminal.h: Likewise.
5964         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5965         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5966         * lib/unictype/pr_unified_ideograph.h: Likewise.
5967         * lib/unictype/pr_uppercase.h: Likewise.
5968         * lib/unictype/pr_xid_continue.h: Likewise.
5969         * lib/unictype/pr_xid_start.h: Likewise.
5970         * lib/unictype/pr_zero_width.h: Likewise.
5971         * lib/unictype/scripts.h: Likewise.
5972         * lib/unictype/scripts_byname.gperf: Likewise.
5973         * lib/unictype/sy_java_ident.h: Likewise.
5974         * lib/unigbrk/gbrkprop.h: Likewise.
5975         * lib/unilbrk/lbrkprop1.h: Likewise.
5976         * lib/unilbrk/lbrkprop2.h: Likewise.
5977         * lib/unilbrk/lbrktables.h: Likewise.
5978         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
5979         LBP_CP. Implement rule LB30.
5980         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
5981         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
5982         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
5983         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
5984         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
5985         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
5986         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
5987         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
5988         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
5989         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
5990         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
5991         bits instead of 16 bits in the code1 and code2 of each composition
5992         rule.
5993         (uc_composition): Update for Unicode 5.2.0.
5994         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
5995         * lib/uninorm/decomposition-table2.h: Likewise.
5996         * lib/uniwbrk/wbrkprop.h: Likewise.
5997         * tests/unicase/test-cased.c: Likewise.
5998         * tests/unicase/test-ignorable.c: Likewise.
5999         * tests/unicase/test-uc_tolower.c: Likewise.
6000         * tests/unicase/test-uc_totitle.c: Likewise.
6001         * tests/unicase/test-uc_toupper.c: Likewise.
6002         * tests/unictype/test-categ_C.c: Likewise.
6003         * tests/unictype/test-categ_Cf.c: Likewise.
6004         * tests/unictype/test-categ_Cn.c: Likewise.
6005         * tests/unictype/test-categ_L.c: Likewise.
6006         * tests/unictype/test-categ_Ll.c: Likewise.
6007         * tests/unictype/test-categ_Lm.c: Likewise.
6008         * tests/unictype/test-categ_Lo.c: Likewise.
6009         * tests/unictype/test-categ_Lu.c: Likewise.
6010         * tests/unictype/test-categ_M.c: Likewise.
6011         * tests/unictype/test-categ_Mc.c: Likewise.
6012         * tests/unictype/test-categ_Mn.c: Likewise.
6013         * tests/unictype/test-categ_N.c: Likewise.
6014         * tests/unictype/test-categ_Nd.c: Likewise.
6015         * tests/unictype/test-categ_Nl.c: Likewise.
6016         * tests/unictype/test-categ_No.c: Likewise.
6017         * tests/unictype/test-categ_P.c: Likewise.
6018         * tests/unictype/test-categ_Pd.c: Likewise.
6019         * tests/unictype/test-categ_Po.c: Likewise.
6020         * tests/unictype/test-categ_S.c: Likewise.
6021         * tests/unictype/test-categ_Sc.c: Likewise.
6022         * tests/unictype/test-categ_So.c: Likewise.
6023         * tests/unictype/test-ctype_alnum.c: Likewise.
6024         * tests/unictype/test-ctype_alpha.c: Likewise.
6025         * tests/unictype/test-ctype_graph.c: Likewise.
6026         * tests/unictype/test-ctype_lower.c: Likewise.
6027         * tests/unictype/test-ctype_print.c: Likewise.
6028         * tests/unictype/test-ctype_punct.c: Likewise.
6029         * tests/unictype/test-ctype_upper.c: Likewise.
6030         * tests/unictype/test-decdigit.h: Likewise.
6031         * tests/unictype/test-digit.h: Likewise.
6032         * tests/unictype/test-numeric.h: Likewise.
6033         * tests/unictype/test-pr_alphabetic.c: Likewise.
6034         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6035         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6036         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6037         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6038         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6039         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6040         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6041         * tests/unictype/test-pr_combining.c: Likewise.
6042         * tests/unictype/test-pr_composite.c: Likewise.
6043         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6044         * tests/unictype/test-pr_dash.c: Likewise.
6045         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6046         * tests/unictype/test-pr_deprecated.c: Likewise.
6047         * tests/unictype/test-pr_diacritic.c: Likewise.
6048         * tests/unictype/test-pr_extender.c: Likewise.
6049         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6050         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6051         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6052         * tests/unictype/test-pr_id_continue.c: Likewise.
6053         * tests/unictype/test-pr_id_start.c: Likewise.
6054         * tests/unictype/test-pr_ideographic.c: Likewise.
6055         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6056         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6057         * tests/unictype/test-pr_lowercase.c: Likewise.
6058         * tests/unictype/test-pr_numeric.c: Likewise.
6059         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6060         * tests/unictype/test-pr_punctuation.c: Likewise.
6061         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6062         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6063         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6064         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6065         * tests/unictype/test-pr_uppercase.c: Likewise.
6066         * tests/unictype/test-pr_xid_continue.c: Likewise.
6067         * tests/unictype/test-pr_xid_start.c: Likewise.
6068         * tests/unictype/test-pr_zero_width.c: Likewise.
6069         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6070         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
6071         changed behaviour: line breaking is now disallowed between a letter
6072         or '=' and '('.
6073         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6074         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6075         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
6076         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
6077         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6078         lib/uniwidth/width.c.
6079         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
6080         without comments, but with the original copyright notice.
6081         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6082         changes.
6083         * lib/unictype/categ_Cc.h: Likewise.
6084         * lib/unictype/categ_Co.h: Likewise.
6085         * lib/unictype/categ_Cs.h: Likewise.
6086         * lib/unictype/categ_Lt.h: Likewise.
6087         * lib/unictype/categ_Me.h: Likewise.
6088         * lib/unictype/categ_Pc.h: Likewise.
6089         * lib/unictype/categ_Pe.h: Likewise.
6090         * lib/unictype/categ_Pf.h: Likewise.
6091         * lib/unictype/categ_Pi.h: Likewise.
6092         * lib/unictype/categ_Ps.h: Likewise.
6093         * lib/unictype/categ_Sk.h: Likewise.
6094         * lib/unictype/categ_Sm.h: Likewise.
6095         * lib/unictype/categ_Z.h: Likewise.
6096         * lib/unictype/categ_Zl.h: Likewise.
6097         * lib/unictype/categ_Zp.h: Likewise.
6098         * lib/unictype/categ_Zs.h: Likewise.
6099         * lib/unictype/ctype_blank.h: Likewise.
6100         * lib/unictype/ctype_cntrl.h: Likewise.
6101         * lib/unictype/ctype_digit.h: Likewise.
6102         * lib/unictype/ctype_space.h: Likewise.
6103         * lib/unictype/ctype_xdigit.h: Likewise.
6104         * lib/unictype/mirror.h: Likewise.
6105         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6106         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6107         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6108         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6109         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6110         * lib/unictype/pr_bidi_control.h: Likewise.
6111         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6112         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6113         * lib/unictype/pr_bidi_pdf.h: Likewise.
6114         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6115         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6116         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6117         * lib/unictype/pr_format_control.h: Likewise.
6118         * lib/unictype/pr_hex_digit.h: Likewise.
6119         * lib/unictype/pr_hyphen.h: Likewise.
6120         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6121         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6122         * lib/unictype/pr_iso_control.h: Likewise.
6123         * lib/unictype/pr_join_control.h: Likewise.
6124         * lib/unictype/pr_left_of_pair.h: Likewise.
6125         * lib/unictype/pr_line_separator.h: Likewise.
6126         * lib/unictype/pr_math.h: Likewise.
6127         * lib/unictype/pr_non_break.h: Likewise.
6128         * lib/unictype/pr_not_a_character.h: Likewise.
6129         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6130         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6131         * lib/unictype/pr_other_id_continue.h: Likewise.
6132         * lib/unictype/pr_other_id_start.h: Likewise.
6133         * lib/unictype/pr_other_lowercase.h: Likewise.
6134         * lib/unictype/pr_other_math.h: Likewise.
6135         * lib/unictype/pr_other_uppercase.h: Likewise.
6136         * lib/unictype/pr_paired_punctuation.h: Likewise.
6137         * lib/unictype/pr_paragraph_separator.h: Likewise.
6138         * lib/unictype/pr_pattern_syntax.h: Likewise.
6139         * lib/unictype/pr_pattern_white_space.h: Likewise.
6140         * lib/unictype/pr_private_use.h: Likewise.
6141         * lib/unictype/pr_quotation_mark.h: Likewise.
6142         * lib/unictype/pr_radical.h: Likewise.
6143         * lib/unictype/pr_soft_dotted.h: Likewise.
6144         * lib/unictype/pr_space.h: Likewise.
6145         * lib/unictype/pr_titlecase.h: Likewise.
6146         * lib/unictype/pr_variation_selector.h: Likewise.
6147         * lib/unictype/pr_white_space.h: Likewise.
6148         * lib/unictype/sy_c_ident.h: Likewise.
6149         * lib/unictype/sy_c_whitespace.h: Likewise.
6150         * lib/unictype/sy_java_whitespace.h: Likewise.
6151         * modules/uni*/*: Bump version number of expected libunistring version.
6152         Reported by Simon Josefsson.
6153
6154 2011-01-09  Karl Heuer  <kwzh@gnu.org>
6155
6156         useless-if-before-free: fix typo in --help and make the internal,
6157         automatic version date update process work once again.
6158         --help output contained a NUL character instead of the
6159         backslash-zero that was intended.  Also, the "must lie within
6160         the first 8 lines" line is on line 9, and hence not getting
6161         automatically updated.
6162         * build-aux/useless-if-before-free: Fix the former by adding a
6163         backslash, and the latter by condensing the three lines of what-it-does
6164         to a single line, leaving one line of slack for the future.
6165
6166 2011-01-09  Bruno Haible  <bruno@clisp.org>
6167
6168         uniwidth/width: Fix width of U+1D173..U+1D17A.
6169         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
6170         symbolic_width, output_width_property_test): New functions.
6171         (main): Invoke output_nonspacing_property, output_width_property_test.
6172         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
6173         U+1D173..U+1D17A.
6174         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
6175         1.
6176         * modules/uniwidth/*: Bump version number of expected libunistring
6177         version.
6178         * modules/unilbrk/*: Likewise.
6179
6180 2011-01-08  Bruno Haible  <bruno@clisp.org>
6181
6182         uninorm tests: Preserve copyright of Unicode data file.
6183         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
6184         Mention modifications.
6185
6186 2011-01-08  Bruno Haible  <bruno@clisp.org>
6187
6188         gen-uni-tables: Prepare for Unicode 5.2.0.
6189         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
6190         (debug_output_lbp, output_lbp): Update.
6191
6192 2011-01-08  Bruno Haible  <bruno@clisp.org>
6193
6194         unilbrk: Clarify gen-uni-tables.c code.
6195         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
6196         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
6197         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
6198
6199 2011-01-07  Bruno Haible  <bruno@clisp.org>
6200
6201         strtod: Restore errno when successfully parsing Infinity or NaN.
6202         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
6203         restore the original errno.
6204
6205 2011-01-07  Bruno Haible  <bruno@clisp.org>
6206
6207         remove test: Avoid failure on HP-UX 11.
6208         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
6209
6210 2011-01-07  Bruno Haible  <bruno@clisp.org>
6211
6212         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
6213         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
6214         error code.
6215
6216 2011-01-07  Pádraig Brady <P@draigBrady.com>
6217
6218         ignore-value: fixup comments, and add Eric Blake
6219         as an author since he rewrote the macros.
6220         * lib/ignore-value.h (ignore_value):  State that
6221         we now support aggregates.  Also specify exactly
6222         when the GCC warn_unused_result feature was added.
6223
6224 2011-01-06  Eric Blake  <eblake@redhat.com>
6225
6226         ignore-value: support aggregate types
6227         * lib/ignore-value.h (ignore_value): Provide separate gcc
6228         definition.
6229         * modules/ignore-value-tests: New test module.
6230         * tests/test-ignore-value.c: New test.
6231
6232         maint.mk: improve sc_prohibit_strcmp regex
6233         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
6234         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
6235         definition of STRNEQ.
6236
6237         signal: work around Haiku issue with SIGBUS
6238         * lib/siglist.h: Add comment.
6239         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
6240         strsignal's favoring of SIGSEGV.
6241         * tests/test-signal.c (main): Avoid test failure.
6242         * doc/posix-headers/signal.texi (signal.h): Document the issue.
6243         Reported by Scott McCreary.
6244
6245         maint.mk: add pre-release check to ensure submodule commits are public
6246         * top/maint.mk (public-submodule-commit): New rule.
6247         (submodule-checks): New variable.
6248         (alpha beta stable): Depend on the variable.
6249
6250 2011-01-05  Pádraig Brady <P@draigBrady.com>
6251         and Jim Meyering  <meyering@redhat.com>
6252
6253         ignore-value: make ignore_value more generic; deprecate ignore_ptr
6254         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
6255         (ATTRIBUTE_DEPRECATED): Define.
6256         (_ignore_case): New function.
6257         (ignore_value): New macro, to replace the old function.
6258         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
6259         * modules/ignore-value (Depends-on): Add stdint.
6260
6261 2011-01-04  Eric Blake  <eblake@redhat.com>
6262
6263         doc: regenerate INSTALL
6264         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
6265         @firstparagraphindent support, now that autoconf dropped it.
6266         (INSTALL_PRELUDE): Reinstate old macro.
6267         * doc/install.texi: Resync from autoconf.
6268         * doc/INSTALL: Reflect recent autoconf update.
6269         * doc/INSTALL.ISO: Likewise.
6270         * doc/INSTALL.UTF-8: Likewise.
6271         Reported by Karl Berry.
6272
6273 2011-01-04  Bruce Korb  <address@hidden>
6274
6275         git-version-gen: avoid a sub-shell
6276         * build-aux/git-version-gen: Redirect stderr in `...` via
6277         "exec 2>...", rather than via an added sub-shell.
6278
6279 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
6280
6281         git-version-gen: use (...) rather than sh -c '...'
6282         * build-aux/git-version-gen: Rather than hard-coding a shell's name
6283         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
6284
6285 2011-01-03  Jim Meyering  <meyering@redhat.com>
6286
6287         git-version-gen: convert leading TABs to spaces
6288         * build-aux/git-version-gen: Expand leading TABs.
6289
6290         git-version-gen: handle failed "git rev-list"
6291         * build-aux/git-version-gen: Rather than leaking a "fatal" error
6292         from git and proceeding as if it had succeeded but printed no SHA1
6293         checksums, suppress the diagnostic and handle the failure.
6294         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
6295
6296         git-version-gen: include command name in one more diagnostic
6297         * build-aux/git-version-gen: When the required .tarball-version file
6298         was missing or unreadable, you might see the diagnostic from "cat",
6299         but no trace of the name of the invoking script.  Now, you still see
6300         the diagnostic from cat, but also get one from "git-version-gen: ".
6301         Inspired by a patch from Bruce Korb.
6302
6303         update-copyright: adjust test to match changed code
6304         * tests/test-update-copyright.sh: Change test's expected output
6305         to match new actual output.
6306
6307 2011-01-02  Bruno Haible  <bruno@clisp.org>
6308
6309         getlogin_r: Avoid test failure on HP-UX 11.
6310         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
6311         ERANGE when the second argument is zero.
6312         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
6313         portability problem.
6314
6315 2011-01-02  Bruce Korb  <bkorb@gnu.org>
6316
6317         * build-aux/update-copyright: doc Simon's changes
6318
6319 2011-01-02  Simon Josefsson  <simon@josefsson.org>
6320
6321         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
6322         environment variable.
6323
6324 2011-01-02  Bruno Haible  <bruno@clisp.org>
6325
6326         unigbrk: Avoid gcc warnings.
6327         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
6328         unused variable.
6329         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
6330         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
6331         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
6332         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
6333         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
6334         Change type of first argument to 'const char *'.
6335         (main): Remove unused variable.
6336         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
6337         type of first argument to 'const char *'.
6338         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
6339         Likewise.
6340         (main): Change type of variable 's'.
6341         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
6342         to 'int'.
6343
6344 2011-01-02  Bruno Haible  <bruno@clisp.org>
6345
6346         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
6347         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
6348         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
6349         bug.
6350         * lib/pwrite.c: Undo 2010-12-31 patch.
6351         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
6352
6353 2011-01-02  Bruno Haible  <bruno@clisp.org>
6354
6355         pread: Fix test whether it works.
6356         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
6357
6358 2011-01-02  Bruno Haible  <bruno@clisp.org>
6359
6360         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
6361         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
6362         ends in "6". Don't require a specific month name. Try also the locale
6363         names found on HP-UX 11 and Solaris 7.
6364
6365 2011-01-02  Bruno Haible  <bruno@clisp.org>
6366
6367         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
6368         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
6369         C linkage.
6370         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
6371
6372 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6373
6374         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
6375         for consistency, since the "cluster" term is not used elsewhere.
6376         * lib/unigbrk.in.h: Update name.
6377         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
6378         * lib/unigbrk/u16-grapheme-next.c: Update name.
6379         * lib/unigbrk/u16-grapheme-prev.c: Update name.
6380         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
6381         * lib/unigbrk/u32-grapheme-next.c: Update name.
6382         * lib/unigbrk/u32-grapheme-prev.c: Update name.
6383         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
6384         * lib/unigbrk/u8-grapheme-next.c: Update name.
6385         * lib/unigbrk/u8-grapheme-prev.c: Update name.
6386         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
6387         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
6388         Suggested by Bruno Haible.
6389
6390 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6391
6392         Remove module 'u8-grapheme-len' as too redundant with
6393         'u8-grapheme-next'.
6394         * modules/unigbrk/u8-grapheme-len: Delete file.
6395         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
6396         * lib/unigbrk.in.h: Remove prototype for deleted function.
6397         * lib/unigbrk/u8-grapheme-len.c: Delete file.
6398         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
6399
6400         Remove module 'u16-grapheme-len' as too redundant with
6401         'u16-grapheme-next'.
6402         * modules/unigbrk/u16-grapheme-len: Delete file.
6403         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
6404         * lib/unigbrk.in.h: Remove prototype for deleted function.
6405         * lib/unigbrk/u16-grapheme-len.c: Delete file.
6406         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
6407
6408         Remove module 'u32-grapheme-len' as too redundant with
6409         'u32-grapheme-next'.
6410         * modules/unigbrk/u32-grapheme-len: Delete file.
6411         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
6412         * lib/unigbrk.in.h: Remove prototype for deleted function.
6413         * lib/unigbrk/u32-grapheme-len.c: Delete file.
6414         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
6415
6416         Suggested by Bruno Haible.
6417
6418 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6419
6420         * unigbrk.in.h: Fix typo: "ben" => "been".
6421         Reported by Bruno Haible.
6422
6423 2011-01-01  Jim Meyering  <meyering@redhat.com>
6424
6425         maint: update almost all copyright ranges to include 2011
6426         Run the new "make update-copyright" rule.
6427
6428 2011-01-01  Jim Meyering  <meyering@redhat.com>
6429
6430         maint: update-copyright: exempt doc/INSTALL*
6431         * Makefile (update-copyright): Also exclude doc/INSTALL*,
6432         since they are generated.  Suggested by Bruno Haible.
6433
6434 2011-01-01  Jim Meyering  <meyering@redhat.com>
6435
6436         maint: refine the update-copyright rule
6437         * Makefile (update-copyright): Also exclude any file that includes
6438         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
6439         code that merely generates the comment.
6440
6441 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6442
6443         New module 'u8-grapheme-len'.
6444         * modules/unigbrk/u8-grapheme-len: New file.
6445         * modules/unigbrk/u8-grapheme-len-tests: New file.
6446         * lib/unigbrk.in.h: Add prototype for new function.
6447         * lib/unigbrk/u8-grapheme-len.c: New file.
6448         * tests/unigbrk/test-u8-grapheme-len.c: New file.
6449
6450         New module 'u16-grapheme-len'.
6451         * modules/unigbrk/u16-grapheme-len: New file.
6452         * modules/unigbrk/u16-grapheme-len-tests: New file.
6453         * lib/unigbrk.in.h: Add prototype for new function.
6454         * lib/unigbrk/u16-grapheme-len.c: New file.
6455         * tests/unigbrk/test-u16-grapheme-len.c: New file.
6456
6457         New module 'u32-grapheme-len'.
6458         * modules/unigbrk/u32-grapheme-len: New file.
6459         * modules/unigbrk/u32-grapheme-len-tests: New file.
6460         * lib/unigbrk.in.h: Add prototype for new function.
6461         * lib/unigbrk/u32-grapheme-len.c: New file.
6462         * tests/unigbrk/test-u32-grapheme-len.c: New file.
6463
6464         New module 'u8-grapheme-next'.
6465         * modules/unigbrk/u8-grapheme-next: New file.
6466         * modules/unigbrk/u8-grapheme-next-tests: New file.
6467         * lib/unigbrk.in.h: Add prototype for new function.
6468         * lib/unigbrk/u8-grapheme-next.c: New file.
6469         * tests/unigbrk/test-u8-grapheme-next.c: New file.
6470
6471         New module 'u16-grapheme-next'.
6472         * modules/unigbrk/u16-grapheme-next: New file.
6473         * modules/unigbrk/u16-grapheme-next-tests: New file.
6474         * lib/unigbrk.in.h: Add prototype for new function.
6475         * lib/unigbrk/u16-grapheme-next.c: New file.
6476         * tests/unigbrk/test-u16-grapheme-next.c: New file.
6477
6478         New module 'u32-grapheme-next'.
6479         * modules/unigbrk/u32-grapheme-next: New file.
6480         * modules/unigbrk/u32-grapheme-next-tests: New file.
6481         * lib/unigbrk.in.h: Add prototype for new function.
6482         * lib/unigbrk/u32-grapheme-next.c: New file.
6483         * tests/unigbrk/test-u32-grapheme-next.c: New file.
6484
6485         New module 'u8-grapheme-prev'.
6486         * modules/unigbrk/u8-grapheme-prev: New file.
6487         * modules/unigbrk/u8-grapheme-prev-tests: New file.
6488         * lib/unigbrk.in.h: Add prototype for new function.
6489         * lib/unigbrk/u8-grapheme-prev.c: New file.
6490         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
6491
6492         New module 'u16-grapheme-prev'.
6493         * modules/unigbrk/u16-grapheme-prev: New file.
6494         * modules/unigbrk/u16-grapheme-prev-tests: New file.
6495         * lib/unigbrk.in.h: Add prototype for new function.
6496         * lib/unigbrk/u16-grapheme-prev.c: New file.
6497         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
6498
6499         New module 'u32-grapheme-prev'.
6500         * modules/unigbrk/u32-grapheme-prev: New file.
6501         * modules/unigbrk/u32-grapheme-prev-tests: New file.
6502         * lib/unigbrk.in.h: Add prototype for new function.
6503         * lib/unigbrk/u32-grapheme-prev.c: New file.
6504         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
6505
6506         New module 'u8-grapheme-breaks'.
6507         * modules/unigbrk/u8-grapheme-breaks: New file.
6508         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
6509         * lib/unigbrk.in.h: Add prototype for new function.
6510         * lib/unigbrk/u8-grapheme-breaks.c: New file.
6511         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
6512
6513         New module 'u16-grapheme-breaks'.
6514         * modules/unigbrk/u16-grapheme-breaks: New file.
6515         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
6516         * lib/unigbrk.in.h: Add prototype for new function.
6517         * lib/unigbrk/u16-grapheme-breaks.c: New file.
6518         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
6519
6520         New module 'u32-grapheme-breaks'.
6521         * modules/unigbrk/u32-grapheme-breaks: New file.
6522         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
6523         * lib/unigbrk.in.h: Add prototype for new function.
6524         * lib/unigbrk/u32-grapheme-breaks.c: New file.
6525         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
6526
6527         New module 'ulc-grapheme-breaks'.
6528         * modules/unigbrk/ulc-grapheme-breaks: New file.
6529         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
6530         * m4/locale-ar.m4: New file.
6531         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
6532         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
6533         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
6534
6535 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6536
6537         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
6538         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
6539         modified how this file was generated before I initially submitted
6540         the module, but failed to regenerate it.  This meant that several
6541         of the level2 entries were wrong.
6542         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
6543         Remove the division-by-2 that is folded into the table now that
6544         gbrkprop.h has been regenerated properly.  Now -1 entries are
6545         handled correctly.
6546
6547         New module 'unigbrk/uc-gbrk-prop-tests'.
6548         * modules/unigbrk/uc-gbrk-prop-tests: New file.
6549         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
6550         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
6551         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
6552
6553 2011-01-01  Bruno Haible  <bruno@clisp.org>
6554
6555         Avoid use of hexadecimal escapes.
6556         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
6557         instead of hexadecimal escapes.
6558
6559 2011-01-01  Jim Meyering  <meyering@redhat.com>
6560
6561         maint: new rule to update copyright year ranges
6562         * Makefile (update-copyright): New rule.
6563
6564         maint: indent with TABs in Makefile
6565         * Makefile: Expand leading sequences of spaces to TABs
6566
6567         version-etc: update the copyright year it reports
6568         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
6569
6570 2010-12-31  Bruno Haible  <bruno@clisp.org>
6571
6572         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
6573         * lib/isfinite.c (zerof, zerod, zerol): New variables.
6574         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
6575         zero.
6576
6577 2010-12-31  Bruno Haible  <bruno@clisp.org>
6578
6579         pwrite: Work around HP-UX 11.11 bug.
6580         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
6581         works and set REPLACE_PWRITE if not.
6582         * lib/pwrite.c (pwrite): Add an implementation that uses the system
6583         function.
6584         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
6585
6586 2010-12-31  Bruno Haible  <bruno@clisp.org>
6587
6588         pread: Work around HP-UX 11 bugs.
6589         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
6590         and set REPLACE_PREAD if not.
6591         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
6592
6593 2010-12-31  Eric Blake  <eblake@redhat.com>
6594
6595         nl_langinfo: fix YESEXPR on Irix 6.5
6596         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
6597         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
6598         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
6599         it.
6600
6601 2010-12-31  Bruno Haible  <bruno@clisp.org>
6602
6603         iconv: Document HP-UX 11 bug.
6604         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
6605
6606 2010-12-31  Bruno Haible  <bruno@clisp.org>
6607
6608         ldexpl: Fix link error on HP-UX 11.
6609         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
6610         LDEXPL_LIBM, using $ISNANL_LIBM.
6611
6612 2010-12-31  Eric Blake  <eblake@redhat.com>
6613
6614         ftello: avoid compilation failure with SunStudio c89
6615         * lib/ftello.c (ftello): Use lseek, not llseek.
6616
6617         tests: avoid failing coreutils tests on cygwin
6618         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
6619         (create_exe_shims_): Return 0 when skipping.
6620
6621 2010-12-31  Bruno Haible  <bruno@clisp.org>
6622
6623         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
6624         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
6625
6626 2010-12-31  Bruno Haible  <bruno@clisp.org>
6627
6628         waitpid: Fix link error in C++ mode.
6629         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
6630
6631 2010-12-31  Bruno Haible  <bruno@clisp.org>
6632
6633         isnan: Use GCC built-ins when possible.
6634         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
6635         __builtin_isnan.
6636         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
6637         (isnan): Define using GCC built-ins for GCC >= 4.0.
6638
6639 2010-12-31  Bruno Haible  <bruno@clisp.org>
6640
6641         isnand: Fix mistake.
6642         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
6643         __builtin_isnand.
6644
6645 2010-12-31  Bruno Haible  <bruno@clisp.org>
6646
6647         open: Avoid C++ error on HP-UX 11.
6648         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
6649
6650 2010-12-31  Bruno Haible  <bruno@clisp.org>
6651
6652         time_r: Add missing declarations on HP-UX 11.
6653         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
6654         instead of HAVE_LOCALTIME_R.
6655         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
6656         HAVE_LOCALTIME_R always.
6657         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
6658         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
6659         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
6660         HAVE_LOCALTIME_R.
6661         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
6662         * doc/posix-functions/localtime_r.texi: Likewise.
6663
6664 2010-12-29  Eric Blake  <eblake@redhat.com>
6665
6666         mountlist: tweak previous commit
6667         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
6668         Reported by Paul Eggert.
6669
6670         mountlist: fix local drive detection on cygwin
6671         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
6672         that works for cygwin.
6673
6674 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6675
6676         ftoastr, snprintf: ftoastr + snprintf module
6677         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
6678         since the snprintf module now should be good enough here.
6679         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
6680         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
6681         and gl_MODULE_INDICATOR([snprintf]), but the former enables
6682         GNULIB_SNPRINTF only for the test directory, and the latter
6683         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
6684         seems to suffice by itself.
6685
6686 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
6687
6688         alloca: one step towards thread-safety
6689         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
6690         need for a static variable.  All callers changed.  This does not
6691         make the alloca replacement thread-safe, but it's one step.
6692
6693         tests: minor indenting change
6694         * tests/init.sh: Sync from coreutils housekeeping patch
6695         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
6696         to keep lines within 80 columns.
6697
6698 2010-12-28  Jim Meyering  <meyering@redhat.com>
6699
6700         regex: don't infloop on persistent failing calloc
6701         * lib/regexec.c (build_trtable): Return failure indication upon
6702         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
6703         In glibc, this was fixed for version 2.13:
6704         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
6705
6706 2010-12-28  Bruno Haible  <bruno@clisp.org>
6707             Paul Eggert <eggert@cs.ucla.edu>
6708
6709         linkat: Make implementation robust against system behaviour variations.
6710         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
6711         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
6712         way, and to -2 if it needs a generic runtime test.
6713         * lib/linkat.c (solaris_optimized_link_immediate,
6714         solaris_optimized_link_follow): New functions.
6715         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
6716         (check_same_link): Use it.
6717
6718 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
6719
6720         New module 'unigbrk/base'.
6721         * modules/unigbrk/base: New file.
6722         * lib/unigbrk.in.h: New file.
6723
6724         New module 'unigbrk/uc-gbrk-prop'.
6725         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
6726         * modules/unigbrk/uc-gbrk-prop: New file.
6727         * lib/unigbrk/gbrkprop.h: New file.
6728         * lib/unigbrk/uc-gbrk-prop.c: New file.
6729
6730         New module 'unigbrk/uc-is-grapheme-break'.
6731         * modules/unigbrk/uc-is-grapheme-break: New file.
6732         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
6733         * lib/unigbrk/uc-is-grapheme-break.c: New file.
6734         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
6735         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
6736         * tests/unigbrk/GraphemeBreakTest.txt: New file.
6737
6738         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
6739
6740 2010-12-27  Bruno Haible  <bruno@clisp.org>
6741
6742         linkat test: Avoid failure on Solaris 11 2010-11.
6743         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
6744
6745 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6746
6747         utimens: work around glibc rounding bug on more platforms
6748         * lib/utimens.c (fdutimens): Work around rounding bug even if
6749         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
6750         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
6751
6752 2010-12-27  Bruno Haible  <bruno@clisp.org>
6753
6754         select tests: Improve comments.
6755         * tests/test-select.c (do_select): Add comments.
6756
6757 2010-12-27  Bruno Haible  <bruno@clisp.org>
6758
6759         select tests: Safer way of handling timeout.
6760         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
6761         at every invocation.
6762
6763 2010-12-27  Bruno Haible  <bruno@clisp.org>
6764
6765         select tests: Use 'bool' where appropriate.
6766         * tests/test-select.c (connect_to_socket): Change argument type to
6767         'bool'.
6768
6769 2010-12-27  Bruno Haible  <bruno@clisp.org>
6770
6771         select tests: Use existing modules.
6772         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
6773         (configure.ac): Don't test for unistd.h.
6774         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
6775         declared in <unistd.h>.
6776
6777 2010-12-27  Bruno Haible  <bruno@clisp.org>
6778
6779         mbrtowc: Work around a Solaris 7 bug.
6780         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
6781         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
6782         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
6783         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
6784         MBRTOWC_NULL_ARG1_BUG.
6785         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
6786         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
6787         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
6788         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
6789
6790 2010-12-27  Jim Meyering  <meyering@redhat.com>
6791
6792         read-file.c: tweak syntax
6793         * lib/read-file.c (fread_file): Remove space after "*" in function
6794         definitions.
6795
6796 2010-12-27  Bruno Haible  <bruno@clisp.org>
6797
6798         times test: Avoid gcc warnings on OSF/1.
6799         * tests/test-times.c (main): Cast printf arguments from clock_t to
6800         'long int'.
6801
6802 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6803
6804         utimens: work around glibc rounding bug on older Linux kernels
6805         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
6806         on Linux with a glibc whose utimes might not work, then work
6807         around a longstanding glibc bug involving rounding rather than
6808         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
6809         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6810
6811 2010-12-26  Bruno Haible  <bruno@clisp.org>
6812
6813         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
6814         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
6815         _GL_CXXALIAS_SYS.
6816         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6817
6818 2010-12-26  Bruno Haible  <bruno@clisp.org>
6819
6820         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
6821         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
6822         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6823         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
6824         looking for the declaration.
6825         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6826         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
6827         problem.
6828         * doc/posix-functions/inet_pton.texi: Likewise.
6829
6830 2010-12-26  Bruno Haible  <bruno@clisp.org>
6831
6832         arpa_inet: Use the common idioms with C++ support.
6833         * lib/arpa_inet.in.h: Include c++defs.h.
6834         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
6835         support.
6836         * modules/arpa_inet (Depends-on): Add c++defs.
6837         (Makefile.am): Substitute the contents of c++defs.h.
6838         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
6839         * modules/arpa_inet-c++-tests: New file.
6840         * tests/test-arpa_inet-c++.cc: New file.
6841
6842 2010-12-25  Bruno Haible  <bruno@clisp.org>
6843
6844         Fix more C++ link errors on Solaris 8.
6845         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
6846         $(LIB_EACCESS).
6847         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
6848         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
6849         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
6850         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
6851         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
6852
6853 2010-12-25  Bruno Haible  <bruno@clisp.org>
6854
6855         printf-posix: Fix link error when a non-GCC compiler is used.
6856         * lib/stdio.in.h (printf): When not using GCC, override printf
6857         correctly.
6858         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6859
6860 2010-12-25  Bruno Haible  <bruno@clisp.org>
6861
6862         strerror_r-posix: Update doc.
6863         * doc/posix-functions/strerror_r.texi: Update doc about the return
6864         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
6865
6866 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6867
6868         utimens: simplify the logic of the previous change
6869         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
6870         This should not affect whether the test succeeds or fails.
6871
6872         utimens: configure better on hosts with NFS clock skew
6873         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
6874         uses the clock of the local host.  It might use the clock of the
6875         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
6876         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6877
6878 2010-12-25  Bruno Haible  <bruno@clisp.org>
6879
6880         ptsname test: Avoid failure on Solaris.
6881         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
6882         open a pseudo-terminal; don't use BSD-style ptys.
6883         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
6884
6885 2010-12-25  Bruno Haible  <bruno@clisp.org>
6886
6887         ptsname: Avoid ERANGE failure on some systems.
6888         * lib/ptsname.c (buffer): Increase size.
6889
6890 2010-12-25  Bruno Haible  <bruno@clisp.org>
6891
6892         rename, renameat: Avoid test failures at NFS mounted locations.
6893         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
6894         so that subsequent mkdir calls succeed.
6895
6896 2010-12-25  Bruno Haible  <bruno@clisp.org>
6897
6898         iswblank: Fix C++ link error on Solaris 8.
6899         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
6900         _GL_FUNCDECL_SYS.
6901
6902 2010-12-25  Bruno Haible  <bruno@clisp.org>
6903
6904         unistd: Fix C++ link error on Solaris 8.
6905         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
6906
6907 2010-12-25  Bruno Haible  <bruno@clisp.org>
6908
6909         readlink doc: Mention an old glibc bug.
6910         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
6911
6912 2010-12-25  Bruno Haible  <bruno@clisp.org>
6913
6914         fcntl-h: Fix for use of C++ on glibc systems.
6915         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6916         also on glibc systems in C++ mode.
6917         Reported by Gary V. Vaughan <gary@gnu.org>.
6918
6919 2010-12-25  Bruno Haible  <bruno@clisp.org>
6920
6921         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6922         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
6923
6924 2010-12-25  Bruno Haible  <bruno@clisp.org>
6925
6926         truncl-ieee: Make it work on OSF/1 5.1 with cc.
6927         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
6928         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
6929         test whether truncl works according to ISO C 99 with IEC 60559.
6930         * m4/truncl-ieee.m4: New file.
6931         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
6932         m4/signbit.m4.
6933         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
6934
6935 2010-12-25  Bruno Haible  <bruno@clisp.org>
6936
6937         ceill-ieee: Make it work on OSF/1 5.1 with cc.
6938         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
6939         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6940         test whether ceill works according to ISO C 99 with IEC 60559.
6941         * m4/ceill-ieee.m4: New file.
6942         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
6943         m4/signbit.m4.
6944         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
6945
6946 2010-12-25  Bruno Haible  <bruno@clisp.org>
6947
6948         Ensure all prerequisites of <wchar.h> are included.
6949         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
6950         before <wchar.h>.
6951         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6952         gl_MBRLEN_NUL_RETVAL): Likewise.
6953         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6954         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
6955         AC_FUNC_MBRTOWC): Likewise.
6956         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6957         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6958         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6959         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6960         Likewise.
6961         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6962         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
6963         (gl_WCHAR_H): Improve comments.
6964         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6965
6966 2010-12-25  Bruno Haible  <bruno@clisp.org>
6967
6968         strtok_r: Fix C syntax error in autoconf macro.
6969         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
6970         characters in test program.
6971
6972 2010-12-24  Bruno Haible  <bruno@clisp.org>
6973
6974         ceil, trunc, round: Fix gcc warnings.
6975         * lib/ceil.c (MIN): Undefine before redefining.
6976         * lib/trunc.c (MIN): Likewise.
6977         * lib/round.c (MIN): Likewise.
6978         Include <math.h> first.
6979
6980 2010-12-24  Bruno Haible  <bruno@clisp.org>
6981
6982         select tests: Avoid failures on OSF/1 5.1.
6983         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
6984         failure of closing the last socket; it may fail with ECONNRESET.
6985
6986 2010-12-24  Eric Blake  <eblake@redhat.com>
6987
6988         stdint: avoid HP-UX 10.20 preprocessor bug
6989         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
6990         than #if.
6991         * tests/test-floor2.c (main): Likewise.
6992         Reported by Peter O'Gorman.
6993
6994         pipe: make obsoletion transition easier
6995         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
6996         * modules/pipe (Files): Include revived file.
6997         (Include): Drop reference, to mirror getdate's behavior.
6998
6999 2010-12-24  Bruno Haible  <bruno@clisp.org>
7000
7001         sys_socket: Hide mismatch of declarations on NonStop Kernel.
7002         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
7003         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7004         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7005
7006 2010-12-24  Bruno Haible  <bruno@clisp.org>
7007
7008         gethostname: Ensure declaration on NonStop Kernel.
7009         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
7010         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7011
7012 2010-12-24  Bruno Haible  <bruno@clisp.org>
7013
7014         sys_select: Ensure all necessary types on NonStop Kernel.
7015         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
7016         include <sys/time.h>.
7017         * doc/posix-headers/sys_select.texi: Mention that it's missing on
7018         NonStop Kernel.
7019         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7020
7021 2010-12-24  Bruno Haible  <bruno@clisp.org>
7022
7023         sys_select: Remove unneeded include.
7024         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
7025         have <sys/select.h>.
7026
7027 2010-12-24  Bruno Haible  <bruno@clisp.org>
7028
7029         gethostname: Provide a fallback for HOST_NAME_MAX.
7030         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
7031         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
7032         instead.
7033         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7034
7035 2010-12-24  Bruno Haible  <bruno@clisp.org>
7036
7037         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
7038         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
7039         (SA_RESTART): Likewise.
7040         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7041
7042 2010-12-24  Bruno Haible  <bruno@clisp.org>
7043
7044         signal: Define NSIG.
7045         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
7046         * tests/test-signal.c (nsig): New variable.
7047         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7048
7049 2010-12-24  Bruno Haible  <bruno@clisp.org>
7050
7051         rename, renameat: Avoid test failures on OSF/1 5.1.
7052         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
7053         alternative error codes.
7054         * tests/test-renameat.c (main): Likewise.
7055
7056 2010-12-24  Bruno Haible  <bruno@clisp.org>
7057
7058         *printf: Detect large precisions bug on Solaris 10/SPARC.
7059         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
7060         by Paul Eggert.
7061         * tests/test-snprintf-posix.h (test_function): Add this test code here
7062         too.
7063         * tests/test-sprintf-posix.h (test_function): Likewise.
7064         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7065         * tests/test-vasprintf-posix.c (test_function): Likewise.
7066         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
7067         around by gnulib.
7068         * doc/posix-functions/printf.texi: Likewise.
7069         * doc/posix-functions/snprintf.texi: Likewise.
7070         * doc/posix-functions/sprintf.texi: Likewise.
7071         * doc/posix-functions/vfprintf.texi: Likewise.
7072         * doc/posix-functions/vprintf.texi: Likewise.
7073         * doc/posix-functions/vsnprintf.texi: Likewise.
7074         * doc/posix-functions/vsprintf.texi: Likewise.
7075         * doc/posix-functions/dprintf.texi: Undo last commit.
7076         * doc/posix-functions/vdprintf.texi: Likewise.
7077
7078 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7079
7080         tests: port test-fdutimensat.c to Solaris 8
7081         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
7082         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
7083         On Solaris 8, it fails with errno == ENOSYS, because there is no
7084         futimens (so it can't use the fd), and there is no lutimens (so it
7085         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
7086
7087         vsnprintf: make more consistent with snprintf; doc fixes
7088
7089         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
7090         the byte count return problem was promoted from the snprintf-posix
7091         to the snprintf module.
7092         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7093         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
7094         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
7095         * tests/test-snprintf.c (main): Check the byte count returned.
7096         * tests/test-vsnprintf.c (main): Likewise.
7097
7098 2010-12-23  Eric Blake  <eblake@redhat.com>
7099
7100         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
7101         * modules/sigpipe (License): Relax license.
7102
7103 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7104
7105         doc: document Solaris printf bug with large float precisions
7106         * doc/posix-functions/dprintf.texi (dprintf):
7107         * doc/posix-functions/fprintf.texi (fprintf):
7108         * doc/posix-functions/printf.texi (printf):
7109         * doc/posix-functions/snprintf.texi (snprintf):
7110         * doc/posix-functions/sprintf.texi (sprintf):
7111         * doc/posix-functions/vdprintf.texi (vdprintf):
7112         * doc/posix-functions/vfprintf.texi (vfprintf):
7113         * doc/posix-functions/vprintf.texi (vprintf):
7114         * doc/posix-functions/vsnprintf.texi (vsnprintf):
7115         * doc/posix-functions/vsprintf.texi (vsprintf):
7116         Mention that these functions mishandle large floating point
7117         precisions on Solaris 10.  The same bug is also present in Solaris
7118         8, and I assume earlier.  This causes "cd gnulib-tests; make
7119         check" to fail on Solaris 8 (and I assume, later) when building
7120         the latest coreutils, in test-vasprintf-posix's call to
7121         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
7122         the wide flavors (e.g., wprintf) so this patch just updates the
7123         documentation for the narrow ones.
7124
7125         test-posixtm.c: add two tests
7126         * tests/test-posixtm.c: Add two tests, to highlight the
7127         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
7128         around this bug; this is merely to document it.
7129
7130 2010-12-22  Bruno Haible  <bruno@clisp.org>
7131
7132         getlogin_r: Work around portability problem on OSF/1.
7133         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
7134         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
7135         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
7136         test for a truncated result.
7137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
7138         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
7139         * modules/getlogin_r (Depends-on): Add memchr.
7140         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
7141
7142 2010-12-22  Bruno Haible  <bruno@clisp.org>
7143
7144         ptsname: Avoid test failure on OSF/1 5.1.
7145         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
7146         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
7147         (same_slave): New function.
7148         (main): Use it to compare ptsname's result with the expected file name.
7149
7150 2010-12-22  Bruno Haible  <bruno@clisp.org>
7151
7152         Port extended stdio modules to HP NonStop Kernel.
7153         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
7154         macros.
7155         * lib/fbufmode.c: Update comments.
7156         * lib/fflush.c: Likewise.
7157         * lib/fpurge.c: Likewise.
7158         * lib/freadable.c: Likewise.
7159         * lib/freadahead.c: Likewise.
7160         * lib/freading.c: Likewise.
7161         * lib/freadptr.c: Likewise.
7162         * lib/freadseek.c: Likewise.
7163         * lib/fseeko.c: Likewise.
7164         * lib/fseterr.c: Likewise.
7165         * lib/fwritable.c: Likewise.
7166         * lib/fwriting.c: Likewise.
7167         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7168
7169 2010-12-22  Bruno Haible  <bruno@clisp.org>
7170
7171         ttyname_r: Work around bug on OSF/1 5.1.
7172         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
7173         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
7174         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
7175         present.
7176         * lib/ttyname_r.c (ttyname_r): Update comments.
7177
7178 2010-12-22  Bruno Haible  <bruno@clisp.org>
7179
7180         round: Implement result sign according to IEEE 754.
7181         * lib/round.c (MIN, MINUS_ZERO): New macros.
7182         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
7183         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
7184         * tests/test-round-ieee.c (main): Likewise.
7185         * tests/test-roundl-ieee.c (main): Likewise.
7186
7187         trunc: Implement result sign according to IEEE 754.
7188         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
7189         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
7190         * tests/test-trunc2.c: Include minus-zero.h.
7191         (MINUS_ZERO): New macro.
7192         (trunc_reference): Keep in sync with lib/trunc.c.
7193         * tests/test-truncf2.c: Include minus-zero.h.
7194         (MINUS_ZERO): New macro.
7195         (truncf_reference): Keep in sync with lib/trunc.c.
7196         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
7197         * tests/test-trunc-ieee.c (main): Likewise.
7198         * tests/test-truncl-ieee.c (main): Likewise.
7199
7200         ceil: Implement result sign according to IEEE 754.
7201         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
7202         (FUNC): Return -0.0 for -1 < x < 0.
7203         * tests/test-ceil2.c: Include minus-zero.h.
7204         (MINUS_ZERO): New macro.
7205         (ceil_reference): Keep in sync with lib/ceil.c.
7206         * tests/test-ceilf2.c: Include minus-zero.h.
7207         (MINUS_ZERO): New macro.
7208         (ceilf_reference): Keep in sync with lib/ceil.c.
7209         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
7210         * tests/test-ceil-ieee.c (main): Likewise.
7211         * tests/test-ceill-ieee.c (main): Likewise.
7212
7213         floor: Implement result sign according to IEEE 754.
7214         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
7215         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
7216         * tests/test-floorf2.c (floorf_reference): Likewise.
7217         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
7218         * tests/test-floor-ieee.c (main): Likewise.
7219         * tests/test-floorl-ieee.c (main): Likewise.
7220
7221 2010-12-22  Bruno Haible  <bruno@clisp.org>
7222
7223         getaddrinfo: Update doc.
7224         * doc/posix-functions/gai_strerror.texi: Return type is also different
7225         on AIX and HP-UX.
7226
7227 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7228
7229         getaddrinfo, inet_ntop: Update doc for Solaris.
7230         * doc/posix-functions/gai_strerror.texi: Return type is also an
7231         issue on Solaris 9 and earlier.
7232         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
7233         on Solaris 10 and earlier.
7234
7235 2010-12-21  Bruno Haible  <bruno@clisp.org>
7236
7237         New module 'roundl-ieee'.
7238         * modules/roundl-ieee: New file.
7239         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
7240         test whether roundl works according to ISO C 99 with IEC 60559.
7241         * m4/roundl-ieee.m4: New file.
7242         * modules/roundl-ieee-tests: New file.
7243         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
7244         * tests/test-roundl.c (main): Remove signbit tests.
7245         * modules/roundl-tests (Depends-on): Remove signbit.
7246         * doc/posix-functions/roundl.texi: Mention the new module.
7247
7248 2010-12-21  Bruno Haible  <bruno@clisp.org>
7249
7250         New module 'truncl-ieee'.
7251         * modules/truncl-ieee: New file.
7252         * modules/truncl-ieee-tests: New file.
7253         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
7254         * tests/test-truncl.c (main): Remove signbit tests.
7255         * modules/truncl-tests (Depends-on): Remove signbit.
7256         * doc/posix-functions/truncl.texi: Mention the new module.
7257
7258 2010-12-21  Bruno Haible  <bruno@clisp.org>
7259
7260         New module 'ceill-ieee'.
7261         * modules/ceill-ieee: New file.
7262         * modules/ceill-ieee-tests: New file.
7263         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
7264         * tests/test-ceill.c (main): Remove signbit tests.
7265         * modules/ceill-tests (Depends-on): Remove signbit.
7266         * doc/posix-functions/ceill.texi: Mention the new module.
7267
7268 2010-12-21  Bruno Haible  <bruno@clisp.org>
7269
7270         New module 'floorl-ieee'.
7271         * modules/floorl-ieee: New file.
7272         * modules/floorl-ieee-tests: New file.
7273         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
7274         * tests/test-floorl.c (main): Remove signbit tests.
7275         * modules/floorl-tests (Depends-on): Remove signbit.
7276         * doc/posix-functions/floorl.texi: Mention the new module.
7277
7278 2010-12-21  Bruno Haible  <bruno@clisp.org>
7279
7280         New module 'round-ieee'.
7281         * modules/round-ieee: New file.
7282         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
7283         whether round works according to ISO C 99 with IEC 60559.
7284         * m4/round-ieee.m4: New file.
7285         * modules/round-ieee-tests: New file.
7286         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
7287         * tests/test-round1.c (main): Remove signbit tests.
7288         * modules/round-tests (Depends-on): Remove 'signbit'.
7289         * doc/posix-functions/round.texi: Mention the new module.
7290
7291 2010-12-21  Bruno Haible  <bruno@clisp.org>
7292
7293         New module 'trunc-ieee'.
7294         * modules/trunc-ieee: New file.
7295         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
7296         whether trunc works according to ISO C 99 with IEC 60559.
7297         * m4/trunc-ieee.m4: New file.
7298         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
7299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
7300         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
7301         * modules/trunc-ieee-tests: New file.
7302         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
7303         * tests/test-trunc1.c (main): Remove signbit tests.
7304         * modules/trunc-tests (Depends-on): Remove 'signbit'.
7305         * doc/posix-functions/trunc.texi: Mention the new module.
7306
7307 2010-12-21  Bruno Haible  <bruno@clisp.org>
7308
7309         New module 'ceil-ieee'.
7310         * modules/ceil-ieee: New file.
7311         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
7312         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
7313         ISO C 99 with IEC 60559.
7314         * m4/ceil-ieee.m4: New file.
7315         * modules/ceil (Files): Add lib/ceil.c.
7316         (Depends-on): Add 'float'.
7317         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7318         * lib/math.in.h (ceil): New declaration.
7319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
7320         REPLACE_CEIL.
7321         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
7322         * modules/ceil-ieee-tests: New file.
7323         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
7324         * tests/test-math-c++.cc: Check the signature of 'ceil'.
7325         * doc/posix-functions/ceil.texi: Mention the new module.
7326
7327 2010-12-21  Bruno Haible  <bruno@clisp.org>
7328
7329         New module 'floor-ieee'.
7330         * modules/floor-ieee: New file.
7331         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
7332         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
7333         ISO C 99 with IEC 60559.
7334         * m4/floor-ieee.m4: New file.
7335         * modules/floor (Files): Add lib/floor.c.
7336         (Depends-on): Add 'float'.
7337         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7338         * lib/math.in.h (floor): New declaration.
7339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
7340         REPLACE_FLOOR.
7341         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
7342         * modules/floor-ieee-tests: New file.
7343         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
7344         * tests/test-math-c++.cc: Check the signature of 'floor'.
7345         * doc/posix-functions/floor.texi: Mention the new module.
7346
7347 2010-12-21  Bruno Haible  <bruno@clisp.org>
7348
7349         New module 'roundf-ieee'.
7350         * modules/roundf-ieee: New file.
7351         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
7352         test whether roundf works according to ISO C 99 with IEC 60559.
7353         * m4/roundf-ieee.m4: New file.
7354         * modules/roundf-ieee-tests: New file.
7355         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
7356         * tests/test-roundf1.c (main): Remove signbit tests.
7357         * modules/roundf-tests (Depends-on): Remove 'signbit'.
7358         * doc/posix-functions/roundf.texi: Mention the new module.
7359
7360 2010-12-21  Bruno Haible  <bruno@clisp.org>
7361
7362         New module 'truncf-ieee'.
7363         * modules/truncf-ieee: New file.
7364         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
7365         test whether truncf works according to ISO C 99 with IEC 60559.
7366         * m4/truncf-ieee.m4: New file.
7367         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
7368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
7369         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
7370         * modules/truncf-ieee-tests: New file.
7371         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
7372         * tests/test-truncf1.c (main): Remove signbit tests.
7373         * modules/truncf-tests (Depends-on): Remove 'signbit'.
7374         * doc/posix-functions/truncf.texi: Mention the new module.
7375
7376 2010-12-21  Bruno Haible  <bruno@clisp.org>
7377
7378         New module 'ceilf-ieee'.
7379         * modules/ceilf-ieee: New file.
7380         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
7381         test whether ceilf works according to ISO C 99 with IEC 60559.
7382         * m4/ceilf-ieee.m4: New file.
7383         * modules/ceilf-ieee-tests: New file.
7384         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
7385         * tests/test-ceilf1.c (main): Remove signbit tests.
7386         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
7387         * doc/posix-functions/ceilf.texi: Mention the new module.
7388
7389 2010-12-21  Bruno Haible  <bruno@clisp.org>
7390
7391         New module 'floorf-ieee'.
7392         * modules/floorf-ieee: New file.
7393         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
7394         test whether floorf works according to ISO C 99 with IEC 60559.
7395         * m4/floorf-ieee.m4: New file.
7396         * modules/floorf-ieee-tests: New file.
7397         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
7398         * tests/test-floorf1.c (main): Remove signbit tests.
7399         * modules/floorf-tests (Depends-on): Remove 'signbit'.
7400         * doc/posix-functions/floorf.texi: Mention the new module.
7401
7402 2010-12-21  Bruno Haible  <bruno@clisp.org>
7403
7404         Support for minus zero in autoconf macros.
7405         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
7406         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
7407         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
7408         * tests/minus-zero.h: Update comments.
7409
7410 2010-12-21  Bruno Haible  <bruno@clisp.org>
7411
7412         Tests for module 'ceil'.
7413         * modules/ceil-tests: New file.
7414         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
7415         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
7416
7417 2010-12-21  Bruno Haible  <bruno@clisp.org>
7418
7419         Tests for module 'floor'.
7420         * modules/floor-tests: New file.
7421         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
7422         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
7423
7424 2010-12-21  Bruno Haible  <bruno@clisp.org>
7425
7426         math: Fix indentation.
7427         * lib/math.in.h (floorf): Fix indentation.
7428
7429 2010-12-21  Bruno Haible  <bruno@clisp.org>
7430
7431         Fix cross-compilation guesses on Solaris.
7432         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
7433         not match "solaris2.10".
7434         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7435         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
7436         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
7437
7438 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
7439
7440         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
7441         This fixes a problem observed with the latest coreutils snapshot
7442         that caused a test to fail on Solaris 8.  src/csplit.c's call
7443         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
7444         earlier, instead of returning the number of bytes that would have
7445         been generated; this causes csplit to incorrectly report memory
7446         exhaustion.
7447         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
7448         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
7449         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
7450         comments to match.
7451         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
7452         Fix typo in matching older versions of Solaris: "solaris2.10"
7453         is matched by the shell pattern "solaris2.[0-9]*".  This matters
7454         only for guessing while cross-compiling.
7455         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
7456
7457 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
7458
7459         ftoastr: fix comment again
7460         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7461         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
7462         Also, simplify example a bit by using flags = 0.
7463
7464 2010-12-20  Bruno Haible  <bruno@clisp.org>
7465
7466         round*, trunc*: Update documentation regarding glibc.
7467         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
7468         * doc/posix-functions/round.texi: Likewise.
7469         * doc/posix-functions/roundl.texi: Likewise.
7470         * doc/posix-functions/truncf.texi: Likewise.
7471         * doc/posix-functions/trunc.texi: Likewise.
7472         * doc/posix-functions/truncl.texi: Likewise.
7473
7474 2010-12-20  Bruno Haible  <bruno@clisp.org>
7475
7476         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
7477         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
7478         * doc/posix-functions/round.texi: Likewise.
7479         * doc/posix-functions/roundl.texi: Likewise.
7480
7481 2010-12-20  Bruno Haible  <bruno@clisp.org>
7482
7483         ttyname_r: Add missing declaration on HP-UX 11.
7484         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
7485         HAVE_TTYNAME_R.
7486         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
7487         declared. Set HAVE_TTYNAME_R always.
7488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7489         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
7490         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
7491         HAVE_TTYNAME_R.
7492         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
7493
7494 2010-12-20  Bruno Haible  <bruno@clisp.org>
7495
7496         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
7497         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
7498         * doc/posix-functions/getlogin_r.texi: Likewise.
7499         * tests/test-getlogin.c: Include <errno.h>.
7500         (main): Avoid test failure on HP-UX 11.11.
7501         * tests/test-getlogin_r.c (main): Likewise.
7502
7503 2010-12-20  Bruno Haible  <bruno@clisp.org>
7504
7505         getlogin_r: Add missing declaration on HP-UX 11.
7506         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
7507         declared also when it exists as a function.
7508         * doc/posix-functions/getlogin_r.texi: Document this workaround.
7509
7510 2010-12-20  Bruno Haible  <bruno@clisp.org>
7511
7512         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
7513         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
7514         through wcrtomb.
7515
7516 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7517
7518         ftoastr: fix comment
7519         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7520         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
7521
7522 2010-12-19  Bruno Haible  <bruno@clisp.org>
7523
7524         isnan: Ensure it is a macro.
7525         * lib/math.in.h (isnan): Define as a macro if not already a macro.
7526         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
7527         Solaris.
7528
7529 2010-12-19  Bruno Haible  <bruno@clisp.org>
7530
7531         ldexpl test: Fix link error on OSF/1 5.1.
7532         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
7533
7534 2010-12-19  Bruno Haible  <bruno@clisp.org>
7535
7536         wctype: Make it work in C++ mode on OSF/1 5.1.
7537         * lib/wctype.in.h (iswblank): Declare but not define here.
7538         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
7539         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
7540         * modules/wctype (Files): Add lib/iswblank.c.
7541
7542 2010-12-19  Bruno Haible  <bruno@clisp.org>
7543
7544         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
7545         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
7546         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
7547
7548 2010-12-19  Bruno Haible  <bruno@clisp.org>
7549
7550         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
7551         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
7552         _POSIX_PII_SOCKET.
7553         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
7554         * doc/posix-functions/recvfrom.texi: Likewise.
7555         * doc/posix-functions/send.texi: Likewise.
7556         * doc/posix-functions/sendto.texi: Likewise.
7557
7558 2010-12-19  Bruno Haible  <bruno@clisp.org>
7559
7560         tcgetsid: Add missing declaration on OSF/1 5.1.
7561         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
7562         HAVE_TCGETSID.
7563         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
7564         Don't set HAVE_TCGETSID.
7565         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
7566         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
7567         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
7568         HAVE_TCGETSID.
7569         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
7570
7571 2010-12-19  Bruno Haible  <bruno@clisp.org>
7572
7573         stdio: Fix problem with popen() declaration on OSF/1 5.1.
7574         * lib/stdio.in.h: During the include_next statement, let recursive
7575         includes of this file include only the system header file.
7576
7577 2010-12-19  Bruno Haible  <bruno@clisp.org>
7578
7579         iconv_open: Fix regression from 2010-12-04.
7580         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
7581         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
7582
7583 2010-12-19  Bruno Haible  <bruno@clisp.org>
7584
7585         stdbool test: Avoid a gcc warning.
7586         * tests/test-stdbool.c (main): Fail if e1 is false.
7587         Reported by Jim Meyering.
7588
7589 2010-12-19  Jim Meyering  <meyering@redhat.com>
7590
7591         setenv: restore to working order
7592         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
7593         mistakenly removed.
7594         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
7595         HAVE_SETENV.
7596         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
7597         HAVE_SETENV.
7598
7599 2010-12-19  Bruno Haible  <bruno@clisp.org>
7600
7601         Document some different function declarations on OSF/1 5.1.
7602         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
7603         * doc/posix-functions/inet_ntop.texi: Likewise.
7604         * doc/posix-functions/gethostname.texi: Likewise.
7605         * lib/unistd.in.h (gethostname): Update comment.
7606
7607 2010-12-19  Bruno Haible  <bruno@clisp.org>
7608
7609         doc: Mention vasprintf-posix module.
7610         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
7611         the 'vasprintf-posix' module.
7612         * doc/glibc-functions/vasprintf.texi: Likewise.
7613
7614 2010-12-19  Bruno Haible  <bruno@clisp.org>
7615
7616         unsetenv: Add missing declaration on OSF/1 5.1.
7617         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
7618         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
7619         Don't set HAVE_UNSETENV. In the test program, set _BSD.
7620         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
7621         not HAVE_UNSETENV.
7622         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
7623         HAVE_UNSETENV.
7624         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
7625
7626 2010-12-19  Bruno Haible  <bruno@clisp.org>
7627
7628         setenv: Add missing declaration on OSF/1 5.1.
7629         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
7630         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
7631         declared. Don't set HAVE_SETENV.
7632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
7633         not HAVE_SETENV.
7634         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
7635         HAVE_SETENV.
7636         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
7637
7638 2010-12-19  Bruno Haible  <bruno@clisp.org>
7639
7640         nl_langinfo tests: Avoid gcc warning.
7641         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
7642
7643 2010-12-19  Bruno Haible  <bruno@clisp.org>
7644
7645         mknod: Avoid error in C++ mode on OSF/1 with GCC.
7646         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
7647         _GL_CXXALIAS_SYS.
7648
7649 2010-12-19  Bruno Haible  <bruno@clisp.org>
7650
7651         stdbool: Relax test.
7652         * tests/test-stdbool.c (e): Don't require that casts from a variable's
7653         address to 'bool' work in static initializer, for compilers other than
7654         GCC.
7655
7656 2010-12-19  Bruno Haible  <bruno@clisp.org>
7657
7658         ftello: Add missing declaration on OSF/1 5.1.
7659         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
7660         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
7661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
7662         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
7663         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
7664
7665 2010-12-19  Bruno Haible  <bruno@clisp.org>
7666
7667         fseeko: Add missing declaration on OSF/1 5.1.
7668         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
7669         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
7670         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
7671         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
7672         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
7673
7674 2010-12-19  Bruno Haible  <bruno@clisp.org>
7675
7676         fchdir: Add missing declaration on OSF/1 5.1.
7677         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
7678         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
7679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
7680         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
7681         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
7682
7683 2010-12-19  Bruno Haible  <bruno@clisp.org>
7684
7685         relocatable-prog-wrapper: Separate from relocatable-prog.
7686         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
7687         uninstall-relocwrapper rule here.
7688         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
7689         Reported by Ian Beckwith <ianb@erislabs.net>.
7690
7691 2010-12-19  Bruno Haible  <bruno@clisp.org>
7692
7693         unistr/u8-mbsnlen: Add missing dependency.
7694         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
7695         Reported by Ian Beckwith <ianb@erislabs.net>.
7696
7697 2010-12-19  Bruno Haible  <bruno@clisp.org>
7698
7699         iconv: Make it possible again to use this module without 'iconv-h'.
7700         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
7701         if it is not defined.
7702         Reported by Ian Beckwith <ianb@erislabs.net>.
7703
7704 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7705
7706         acl: port to Solaris 8 when copying from tmpfs to ufs
7707         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
7708         error number.  Problem observed on Solaris 8 with latest
7709         coreutils, with "mv A B", where A is on a tmpfs file system and B
7710         is on a ufs file system.  This caused coreutils' mv/part-symlink
7711         test to fail.
7712
7713         tests: set fail=0 at start
7714         * tests/init.sh (setup_): Move fail=0 initialization here ...
7715         (mktempd_): ... from here, so that tests can rely on fail being
7716         set to 0 initially.  This fixes a problem in coreutils; see:
7717         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
7718
7719 2010-12-18  Bruno Haible  <bruno@clisp.org>
7720
7721         memmem-simple: Stylistic changes.
7722         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
7723         Fix preprocessor directive indentation.
7724
7725 2010-12-15  Pádraig Brady <P@draigBrady.com>
7726
7727         memmem, memmem-simple: reorganize and expand empty needle check
7728         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
7729         functional checks to memmem-simple so that one has a fully functional
7730         memmem by using just this module.
7731         Restrict the performance only check to the memmem module.
7732         Also expand the empty needle check to ensure the correct
7733         pointer is returned, not just a non NULL pointer.
7734         * doc/glibc-functions/memmem.texi: Rearrange the portability
7735         documentation to correlate with the rearranged checks.
7736         Clarify exactly how the memmem and memmem-simple modules
7737         relate to each other.
7738
7739 2010-12-15  Pádraig Brady <P@draigBrady.com>
7740             Bruno Haible  <bruno@clisp.org>
7741
7742         Improve cross-compilation guesses for uClibc.
7743         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
7744         that uClibc does not have the glibc bug.
7745         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
7746         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
7747
7748 2010-12-14  Eric Blake  <eblake@redhat.com>
7749
7750         configmake: provide fallbacks for oldest supported autotools
7751         * m4/configmake.m4: New file.
7752         * modules/configmake (Files): Ship it.
7753         (configure.ac): Use it to guarantee fallbacks.
7754
7755 2010-12-13  Pádraig Brady <P@draigBrady.com>
7756
7757         read-file: Improve handling of large files
7758         * lib/read-file.c (fread_file): Minimize realloc()s
7759         for regular files, and better manage sizes around SIZE_MAX.
7760
7761 2010-12-13  Eric Blake  <eblake@redhat.com>
7762
7763         cloexec, fcntl: relax license
7764         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
7765         consent from all contributors.
7766         * modules/fcntl (License): Likewise.
7767
7768 2010-12-10  Bruno Haible  <bruno@clisp.org>
7769
7770         Tests for module 'pipe-posix'.
7771         * modules/pipe-posix-tests: New file.
7772         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
7773
7774 2010-12-10  Bruno Haible  <bruno@clisp.org>
7775
7776         pipe-posix: Make it work in C++ mode.
7777         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
7778         (pipe): Use common idiom, not a macro definition.
7779         * lib/pipe.c: New file.
7780         * m4/pipe.m4: New file.
7781         * modules/pipe-posix (Description): Enhance.
7782         (Files): Add lib/pipe.c, m4/pipe.m4.
7783         (configure.ac): Invoke gl_FUNC_PIPE.
7784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
7785         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
7786         * tests/test-unistd-c++.cc: Check the signature of pipe.
7787
7788 2010-12-10  Bruno Haible  <bruno@clisp.org>
7789
7790         Rename module 'pipe' to 'spawn-pipe'.
7791         * modules/spawn-pipe: New file, renamed from modules/pipe.
7792         (Files, configure.ac, Makefile.am): Update.
7793         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
7794         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
7795         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
7796         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
7797         "spawn-pipe.h" instead of "pipe.h".
7798         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
7799         to gl_SPAWN_PIPE.
7800         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
7801         (Files, Makefile.am): Update.
7802         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
7803         Update.
7804         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
7805         Include "spawn-pipe.h" instead of "pipe.h".
7806         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
7807         * lib/javacomp.c: Likewise.
7808         * lib/javaversion.c: Likewise.
7809         * lib/pipe-filter-gi.c: Likewise.
7810         * lib/pipe-filter-ii.c: Likewise.
7811         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
7812         * modules/javacomp (Depends-on): Likewise.
7813         * modules/javaversion (Depends-on): Likewise.
7814         * modules/pipe-filter-gi (Depends-on): Likewise.
7815         * modules/pipe-filter-ii (Depends-on): Likewise.
7816         * MODULES.html.sh (Executing programs): Update.
7817         * NEWS: Mention the change.
7818
7819 2010-12-10  Eric Blake  <eblake@redhat.com>
7820
7821         pipe-posix: new module
7822         * modules/pipe-posix: New file.
7823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
7824         (gl_UNISTD_H): Check for declaration.
7825         * modules/unistd (Makefile.am): Substitute it.
7826         * lib/unistd.in.h (pipe): Provide it for mingw.
7827         * doc/posix-functions/pipe.texi (pipe): Update documentation.
7828         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
7829
7830 2010-12-07  Bruno Haible  <bruno@clisp.org>
7831
7832         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
7833         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
7834         u8_strcmp_gnu.
7835         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
7836
7837 2010-12-06  Bruno Haible  <bruno@clisp.org>
7838
7839         Update internal documentation.
7840         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
7841
7842 2010-12-04  Bruno Haible  <bruno@clisp.org>
7843
7844         Put more information about failed tests into the test return codes.
7845         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
7846         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
7847         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7848         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7849         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7850         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7851         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7852         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7853         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
7854         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7855         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
7856         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7857         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7858         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7859         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
7860         returns a bit mask.
7861         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
7862         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7863         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
7864         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
7865         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7866         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7867         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7868         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7869         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7870         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7871         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7872         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7873         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7874         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7875         * m4/link.m4 (gl_FUNC_LINK): Likewise.
7876         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7877         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
7878         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
7879         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7880         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
7881         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7882         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7883         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
7884         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7885         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7886         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7887         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
7888         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7889         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7890         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
7891         gl_PRINTF_PRECISION): Likewise.
7892         * m4/regex.m4 (gl_REGEX): Likewise.
7893         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7894         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7895         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
7896         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7897         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7898         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7899         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7900         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
7901         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7902         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7903         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7904         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7905         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7906         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7907         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7908         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7909         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7910         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7911         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7912         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
7913         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
7914         enumerated value.
7915         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
7916
7917 2010-12-04  Bruno Haible  <bruno@clisp.org>
7918
7919         Update for Solaris 11 2010-11.
7920         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7921         Express, released in November 2010.
7922
7923 2010-12-04  Bruno Haible  <bruno@clisp.org>
7924
7925         nproc: Relax license.
7926         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
7927         and Paul Eggert.
7928         Requested by Ludovic Courtès <ludo@gnu.org>.
7929
7930 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7931
7932         utimecmp: fine-grained src to nearby coarse-grained dest
7933
7934         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
7935         and the source is on a file system with higher-resolution time
7936         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
7937         not work, and the time stamps are close together, the algorithm to
7938         determine the exact resolution from the read-back mtime was buggy:
7939         it had a "!=" where it should have had an "==".  This bug has been
7940         in the code ever since it was introduced to gnulib.
7941         Problem reported by Dan Jacobson in
7942         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
7943
7944 2010-11-30  Bruno Haible  <bruno@clisp.org>
7945
7946         strerror_r-posix: Fix autoconf test.
7947         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
7948
7949 2010-11-28  Bruno Haible  <bruno@clisp.org>
7950             Paul Eggert  <eggert@cs.ucla.edu>
7951
7952         Tests for module 'getdomainname'.
7953         * modules/getdomainname-tests: New file.
7954         * tests/test-getdomainname.c: New file, based on
7955         tests/test-gethostname.c.
7956
7957 2010-11-28  Bruno Haible  <bruno@clisp.org>
7958             Paul Eggert  <eggert@cs.ucla.edu>
7959
7960         getdomainname: Use the system function when possible.
7961         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
7962         (getdomainname): Replace if needed. Provide the declaration if it is
7963         missing. Don't use _GL_CXXALIAS_SYS_CAST.
7964         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
7965         (getdomainname): When the system has getdomainname, call the system
7966         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
7967         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
7968         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
7969         found in libnsl. Look for the declaration also in <netdb.h>. Replace
7970         the function if its second argument is of type 'int' or if it is found
7971         in libnsl.
7972         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
7973         <sys/systeminfo.h> and sysinfo().
7974         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
7975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7976         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
7977         HAVE_GETDOMAINNAME.
7978         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
7979         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
7980         * doc/glibc-functions/getdomainname.texi: Document the problems with
7981         the getdomainname declaration.
7982
7983 2010-11-28  Bruno Haible  <bruno@clisp.org>
7984
7985         sys_socket: Ensure ss_family field on AIX.
7986         * lib/sys_socket.in.h (ss_family): New macro definition.
7987         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
7988         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
7989         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7990         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7991         * modules/sys_socket (Makefile.am): Substitute
7992         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7993         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
7994
7995 2010-11-27  Bruno Haible  <bruno@clisp.org>
7996
7997         readline: Improve configure output.
7998         * m4/readline.m4 (gl_FUNC_READLINE): Make the
7999         "checking for readline..." result understandable.
8000
8001 2010-11-27  Bruno Haible  <bruno@clisp.org>
8002
8003         *printf-posix: Detect a bug on Solaris 10/x86.
8004         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
8005         for floating-point output.
8006         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
8007         directive.
8008         * tests/test-snprintf-posix.h (test_function): Likewise.
8009         * tests/test-sprintf-posix.h (test_function): Likewise.
8010         * tests/test-vasprintf-posix.c (test_function): Likewise.
8011         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
8012         * doc/posix-functions/printf.texi: Likewise.
8013         * doc/posix-functions/snprintf.texi: Likewise.
8014         * doc/posix-functions/sprintf.texi: Likewise.
8015         * doc/posix-functions/vfprintf.texi: Likewise.
8016         * doc/posix-functions/vprintf.texi: Likewise.
8017         * doc/posix-functions/vsnprintf.texi: Likewise.
8018         * doc/posix-functions/vsprintf.texi: Likewise.
8019         * doc/glibc-functions/obstack_printf.texi: Likewise.
8020         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8021
8022 2010-11-27  Bruno Haible  <bruno@clisp.org>
8023
8024         Fix link error when module libunistring-optional is in use.
8025         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
8026         * modules/striconveha-tests (Makefile.am): Likewise.
8027
8028 2010-11-27  Bruno Haible  <bruno@clisp.org>
8029
8030         regex: Mention link dependencies.
8031         * modules/regex (Link): New section.
8032         * modules/rpmatch (Link): Likewise.
8033         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
8034
8035 2010-11-27  Bruno Haible  <bruno@clisp.org>
8036
8037         ftoastr: Fix compilation error on Solaris.
8038         * lib/ftoastr.c: Include <config.h>.
8039
8040 2010-11-27  Bruno Haible  <bruno@clisp.org>
8041
8042         getloadavg: Update documentation.
8043         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
8044
8045 2010-11-27  Bruno Haible  <bruno@clisp.org>
8046
8047         sys_socket: Fix test whether the functions are declared.
8048         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
8049         not <sys/select.h>.
8050
8051 2010-11-27  Bruno Haible  <bruno@clisp.org>
8052
8053         getpass: Make sure to get system declaration on some platforms.
8054         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
8055         gl_USE_SYSTEM_EXTENSIONS.
8056         * modules/getpass (Depends-on): Add extensions.
8057
8058 2010-11-26  Bruno Haible  <bruno@clisp.org>
8059
8060         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
8061         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
8062         'iconv' module is present.
8063         (ICONV_CONST): New macro.
8064         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
8065         ICONV_CONST.
8066         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
8067         set ICONV_CONST.
8068         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
8069         here.
8070         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
8071         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
8072         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
8073         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
8074         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
8075         present.
8076
8077 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8078
8079         ftoastr: comment fix
8080         * lib/ftoastr.c: "little" -> "little or no" in comment
8081
8082 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
8083
8084         stdint: port to GCC 4.3 + OSX + Octave
8085         On this platform, stdint.h is buggy and defines int64_t to long
8086         long int.  The replacement defined it to long int, causing
8087         problems with C++ style name mangling.  Instead, trust the system
8088         definition if INT64_MAX is defined, and likewise for the unsigned
8089         variant.   Problem reported by Jarno Rajahalme in
8090         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
8091         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
8092         and don't mess with int64_t and INT64_MAX in this case.
8093         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
8094
8095 2010-11-24  Bruno Haible  <bruno@clisp.org>
8096
8097         doc: Corrections regarding MacOS X 10.4 and 10.5.
8098         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
8099         MacOS X.
8100         Reported by Simon Josefsson.
8101
8102 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
8103
8104         Uninstall ".bin" files installed by relocwrapper.
8105         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
8106         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
8107         unless it is already there.
8108
8109 2010-11-21  Bruno Haible  <bruno@clisp.org>
8110
8111         Update for NetBSD 5.0.
8112         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8113         NetBSD; the test fails on NetBSD 5.0.
8114         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8115         about NetBSD.
8116
8117 2010-11-21  Bruno Haible  <bruno@clisp.org>
8118
8119         Update for HP-UX 11.23 and HP-UX 11.31.
8120         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
8121         HP-UX.
8122
8123 2010-11-21  Bruno Haible  <bruno@clisp.org>
8124
8125         Update for MacOS X 10.5.
8126         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8127         MacOS X; the test fails on MacOS X 10.5.8.
8128         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8129         about MacOS X.
8130
8131 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
8132
8133         bootstrap: add bootstrap_sync option.
8134         See discussion at
8135         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
8136         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
8137         * build-aux/bootstrap: Accept --bootstrap-sync to update
8138         bootstrap if it is not identical to the local gnulib's
8139         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
8140         enable this by default.  Accept --no-bootstrap-sync to disable
8141         it.
8142
8143 2010-11-20  Bruno Haible  <bruno@clisp.org>
8144
8145         Ensure that <features.h> is included before __GLIBC__ is tested.
8146         * lib/printf-parse.h: Include <features.h>.
8147         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
8148         Reported by Mike Frysinger <vapier@gentoo.org>.
8149
8150         Ensure that <features.h> is included before __GLIBC__ is tested.
8151         * lib/wchar.in.h: Include <features.h>.
8152         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
8153         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
8154         Reported by Mike Frysinger <vapier@gentoo.org>.
8155
8156         Ensure that <features.h> is included before __GLIBC__ is tested.
8157         * lib/arpa_inet.in.h: Include <features.h>.
8158         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
8159         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
8160         Reported by Mike Frysinger <vapier@gentoo.org>.
8161
8162         Ensure that <features.h> is included before __GLIBC__ is tested.
8163         * build-aux/link-warning.h: Include <features.h>.
8164         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
8165         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
8166         Reported by Mike Frysinger <vapier@gentoo.org>.
8167
8168         Ensure that <features.h> is included before __GLIBC__ is tested.
8169         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
8170         Reported by Mike Frysinger <vapier@gentoo.org>.
8171
8172 2010-11-20  Bruno Haible  <bruno@clisp.org>
8173
8174         memmem: Fix autoconf test.
8175         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
8176
8177 2010-11-20  Bruno Haible  <bruno@clisp.org>
8178
8179         Port to uClibc.
8180         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
8181         * lib/fcntl.in.h: Likewise.
8182         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
8183         * lib/mbrtowc.c (mbrtowc): Likewise.
8184         * lib/relocatable.c (find_shared_library_fullname): Likewise.
8185         * lib/strerror_r.c: Likewise.
8186         * lib/unistr/u8-strnlen.c: Likewise.
8187         * lib/vasnprintf.c (decimal_point_char): Likewise.
8188         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8189         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8190         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8191         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8192         * tests/test-sigaction.c (handler, main): Likewise.
8193         * lib/freading.h: Treat uClibc like a non-glibc platform.
8194         * lib/freading.c: Likewise.
8195         * lib/gettext.h: Likewise.
8196         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
8197         Likewise.
8198         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
8199         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8200         * lib/propername.c (proper_name_utf8): Likewise.
8201         * lib/spawn.in.h: Likewise.
8202         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
8203         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
8204         mem_cd_iconveh_internal): Likewise.
8205         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
8206         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8207         strstr, strcasestr): Likewise.
8208         * lib/unicodeio.c (unicode_to_mb): Likewise.
8209         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
8210         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
8211         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
8212         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
8213         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
8214         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
8215         * lib/unistr/u8-stpncpy.c: Likewise.
8216         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8217         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
8218         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8219         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8220         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8221         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
8222         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
8223         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
8224         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8225         Likewise.
8226         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8227         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8228         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8229         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8230         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8231         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8232         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8233         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8234         * tests/test-getopt.h (OPTIND_MIN): Likewise.
8235         * tests/test-striconveha.c (main): Likewise.
8236         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8237         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
8238         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
8239         * doc/posix-functions/getline.texi: Likewise.
8240         Reported by Mike Frysinger <vapier@gentoo.org>.
8241
8242 2010-11-20  Bruno Haible  <bruno@clisp.org>
8243
8244         nproc: Fix condition.
8245         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
8246         HAVE_PTHREAD_AFFINITY_NP.
8247
8248 2010-11-20  Bruno Haible  <bruno@clisp.org>
8249
8250         Fix a comment.
8251         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
8252
8253 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8254
8255         ftoastr: don't assume snprintf
8256         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
8257         Implement a subset of snprintf here, by using sprintf safely.
8258         * modules/ftoastr (Depends-on): Remove snprintf.
8259
8260 2010-11-19  Jim Meyering  <meyering@redhat.com>
8261
8262         test-rename.h: fix compilation failure
8263         * tests/test-rename.h (test_rename): Add omitted "}".
8264
8265 2010-11-17  Jim Meyering  <meyering@redhat.com>
8266
8267         maint.mk: add a URL discussing the no-@acronym policy
8268         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
8269
8270 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8271
8272         ftoastr: depend on snprintf, improve comments
8273         * lib/ftoastr.c: Also mention Loitsch's draft.
8274         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
8275         needed in the current implementation, but it might simplify
8276         speeding up the code later.
8277         * modules/ftoastr: Depend on snprintf; this improves portability.
8278         Suggested by Bruno Haible in the same email.
8279
8280         ftoastr: port to hosts lacking strtof and strtold
8281         Problem reported by Bruno Haible in
8282         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
8283         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
8284         environment and strtold (and presumably strtof) are not available.
8285         * modules/ftoastr (Files): Add m4/c-strtod.m4.
8286         (configure.ac): Require gl_C99_STRTOLD.
8287
8288 2010-11-18  Bruno Haible  <bruno@clisp.org>
8289
8290         c-strtold: Avoid link error on AIX 7.
8291         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
8292         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
8293         (gl_C_STRTOLD): Test whether strtold_l exists.
8294         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8295
8296 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8297
8298         intprops: new macro INT_BITS_STRLEN_BOUND
8299         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
8300         ftoastr.h.  This exposes an internal of intprops.h that was formerly
8301         not exposed.  Also, it uses a slightly tighter bound than before;
8302         though this makes no practical difference, we might as well be as
8303         tight as we easily can.
8304
8305         ftoastr: new module, for lossless conversion of floats to short strings
8306         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
8307         * modules/ftoastr: New files.
8308
8309 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8310
8311         bootstrap: port to Solaris sed
8312         * build-aux/bootstrap (get_version): Port to Solaris sed.
8313         See Ralf Wildenhues's note in
8314         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
8315
8316 2010-11-14  Jim Meyering  <meyering@redhat.com>
8317
8318         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
8319         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
8320         and move definition closer to sole use.
8321
8322 2010-11-13  Jim Meyering  <meyering@redhat.com>
8323
8324         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
8325         Now we require at least autoconf-2.59, which means the work-around
8326         is no longer needed.
8327         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
8328         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8329         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8330         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
8331         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8332
8333 2010-11-13  Bruno Haible  <bruno@clisp.org>
8334
8335         rename, renameat: Avoid test failures at NFS mounted locations.
8336         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
8337         functions.
8338         (test_rename): Use assert_nonexistent.
8339         * tests/test-rename.c: Include <dirent.h>.
8340         * tests/test-renameat.c: Likewise.
8341         Reported by Gary V. Vaughan <gary@gnu.org>.
8342
8343         rename, renameat: Document Linux bug with NFS
8344         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
8345         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
8346         * doc/posix-functions/renameat.texi: Likewise.
8347         Suggested by Eric Blake.
8348
8349 2010-11-13  Bruno Haible  <bruno@clisp.org>
8350
8351         rename test: Add comments.
8352         * tests/test-rename.h (test_rename): Add structure and comments.
8353
8354 2010-11-13  Eric Blake  <eblake@redhat.com>
8355
8356         maintainer-makefile: cover a few more files
8357         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
8358         scripts generated within C files, for libvirt.
8359
8360 2010-11-13  Bruno Haible  <bruno@clisp.org>
8361
8362         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
8363         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
8364         character, return the number of bytes that belong together, not always
8365         1.
8366         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8367         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8368         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8369         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
8370         number of bytes of an invalid character.
8371         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
8372         (main): Invoke it.
8373         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
8374         results.
8375         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
8376         malformed byte sequences.
8377         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
8378         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
8379         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
8380         Reported by Ben Pfaff and Paolo Bonzini.
8381
8382 2010-11-13  Bruno Haible  <bruno@clisp.org>
8383
8384         openat: Work around glibc bug with fchownat() and empty file names.
8385         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
8386         (gl_FUNC_FCHOWNAT): Invoke it.
8387         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
8388         * doc/posix-functions/fchownat.texi: Document the glibc bug.
8389         Reported by Gary V. Vaughan <gary@gnu.org>.
8390
8391 2010-11-13  Bruno Haible  <bruno@clisp.org>
8392
8393         openat: Ensure autoconf macro ordering.
8394         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
8395         gl_USE_SYSTEM_EXTENSIONS.
8396         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
8397
8398 2010-11-13  Bruno Haible  <bruno@clisp.org>
8399
8400         Update comments.
8401         * lib/unistr/u8-check.c: Update file name in comments.
8402         * lib/unistr/u8-mblen.c: Likewise.
8403         * lib/unistr/u8-prev.c: Likewise.
8404         * lib/unistr/u8-strmblen.c: Likewise.
8405         * lib/unistr/u8-strmbtouc.c: Likewise.
8406
8407 2010-11-13  Jim Meyering  <meyering@redhat.com>
8408
8409         tests: avoid test failure on Solaris 10 due to lack of PATH export
8410         * tests/test-update-copyright.sh: Don't forget to export PATH.
8411
8412         init.sh: ensure that IFS is defined, just in case...
8413         * tests/init.sh (setup_): Ensure that IFS is defined,
8414         so that saving and restoring it works as expected.  This
8415         appears to be useful at least for an old version of dash
8416         from a long time ago (RH 6).  See here for details:
8417         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
8418
8419         maint.mk: tighten "test a == b" check
8420         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
8421         test to files that contain something like #!/bin/sh.
8422         Without this, coreutils would get two false positives in
8423         the comments of C source files.
8424
8425 2010-11-12  Eric Blake  <eblake@redhat.com>
8426
8427         bootstrap: fix typo in previous attempt
8428         * build-aux/bootstrap (buildreq): Correct the grouping.
8429         Reported by Paul Eggert.
8430
8431         maintainer-makefile: prohibit test x == x
8432         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
8433         Based on a report by Matthias Bolte.
8434
8435         bootstrap: allow FreeBSD gzip
8436         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
8437         which has no '.' and goes to stderr.
8438         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
8439         Reported by Matthias Bolte.
8440
8441         maintainer-makefile: check for i18n setup
8442         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
8443         will likely work.
8444
8445 2010-11-12  Bruno Haible  <bruno@clisp.org>
8446
8447         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
8448         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
8449         * lib/nanosleep.c (nanosleep): Likewise.
8450
8451 2010-11-11  Bruno Haible  <bruno@clisp.org>
8452
8453         fcntl-h: Fix for use of C++ on glibc systems.
8454         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8455         also on glibc systems in C++ mode.
8456         Reported by Gary V. Vaughan <gary@gnu.org>.
8457
8458 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8459
8460         mknod: avoid false failure with dash
8461         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
8462
8463 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
8464
8465         unlink: Fix "is it should" typo in diagnostic.
8466         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
8467         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
8468
8469 2010-11-11  Bruno Haible  <bruno@clisp.org>
8470
8471         Tests for module 'strerror_r-posix'.
8472         * modules/strerror_r-posix-tests: New file.
8473         * tests/test-strerror_r.c: New file.
8474         * tests/test-string-c++.cc: Check the signature of strerror_r.
8475
8476         New module 'strerror_r-posix'.
8477         * lib/string.in.h (strerror_r): New declaration.
8478         * lib/strerror_r.c: New file.
8479         * m4/strerror_r.m4: New file.
8480         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
8481         of strerror_r.
8482         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
8483         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8484         * modules/strerror_r-posix: New file.
8485         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
8486         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8487         * doc/posix-functions/strerror_r.texi: Mention the new module and the
8488         portability problems.
8489
8490 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
8491
8492         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
8493         line is also considered for output. Quoted function name in shell
8494         command, so temporary files for functions like MyClass::operator()
8495         are removed correctly without errors.
8496
8497 2010-11-09  Bruno Haible  <bruno@clisp.org>
8498
8499         * doc/posix-functions/strerror.texi: List more failing platforms.
8500
8501         * doc/posix-functions/strerror.texi: Add a comment.
8502
8503 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8504
8505         fdopendir: fix bug on MacOS X when low on file descriptors
8506
8507         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
8508         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
8509         All callers changed.
8510         (fdopendir): Invoke save_cwd at the top level, not after using
8511         multiple dup() calls to use up file descriptors.  Then retry
8512         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
8513         less than the maximum number of open file descriptors, because
8514         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
8515         on Mac OS X 10.6.4 for tar 1.24
8516         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
8517         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
8518         and for tar 1.25
8519         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
8520
8521 2010-11-07  Bruno Haible  <bruno@clisp.org>
8522
8523         vasnprintf: Support I flag on glibc systems.
8524         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
8525         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
8526         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
8527         snprintf function.
8528         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
8529         glibc systems.
8530         * tests/test-vasnprintf-posix3.c: New file.
8531         * modules/vasnprintf-posix-tests (Files): Add it.
8532         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
8533
8534 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8535
8536         [html] Fix copy/paste bug: Use unique name for compiler warnings.
8537         * MODULES.html.sh: For compiler warnings, use name
8538         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
8539
8540 2010-11-05  Eric Blake  <eblake@redhat.com>
8541
8542         ceil, floor: avoid spurious failure with icc
8543         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
8544         [denormals-as-zero] when optimizing without -mieee-fp option.
8545         * tests/test-floorf2.c (floorf_reference): Likewise.
8546         * tests/test-ceilf1.c (dummy): New function.
8547         (main): Use it to outsmart icc's optimization.
8548         * tests/test-floorf1.c (dummy, main): Likewise.
8549
8550         tests: require working signbit
8551         * modules/ceilf-tests (Depends-on): Add signbit.
8552         * modules/ceill-tests (Depends-on): Likewise.
8553         * modules/floorf-tests (Depends-on): Likewise.
8554         * modules/floorl-tests (Depends-on): Likewise.
8555         * modules/round-tests (Depends-on): Likewise.
8556         * modules/roundf-tests (Depends-on): Likewise.
8557         * modules/roundl-tests (Depends-on): Likewise.
8558         * modules/trunc-tests (Depends-on): Likewise.
8559         * modules/truncf-tests (Depends-on): Likewise.
8560         * modules/truncl-tests (Depends-on): Likewise.
8561
8562         strtod: work around icc bug
8563         * lib/strtod.c (minus_zero): Define to working value.
8564         (strtod): Use it to avoid icc bug.
8565
8566         copysign: enhance tests
8567         * modules/copysign-tests (Files): Add minus-zero.h.
8568         * tests/test-copysign.c (main): Also test zeros.
8569
8570 2010-11-04  Eric Blake  <eblake@redhat.com>
8571
8572         ceil, floor, round, trunc: enhance tests of -0
8573         * tests/test-ceilf1.c (main): Ensure correct sign of result.
8574         * tests/test-ceill.c (main): Likewise.
8575         * tests/test-floorf1.c (main): Likewise.
8576         * tests/test-floorl.c (main): Likewise.
8577         * tests/test-round1.c (main): Likewise.
8578         * tests/test-roundf1.c (main): Likewise.
8579         * tests/test-roundl.c (main): Likewise.
8580         * tests/test-trunc1.c (main): Likewise.
8581         * tests/test-truncf1.c (main): Likewise.
8582         * tests/test-truncl.c (main): Likewise.
8583
8584 2010-11-04  Eric Blake  <eblake@redhat.com>
8585
8586         frexp, tests: work around ICC bug with -zero
8587         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
8588         works with more compilers.
8589         * tests/minus-zero.h: New file.
8590         * modules/ceilf-tests (Files): Include it.
8591         * modules/ceill-tests (Files): Likewise.
8592         * modules/floorf-tests (Files): Likewise.
8593         * modules/floorl-tests (Files): Likewise.
8594         * modules/frexp-nolibm-tests (Files): Likewise.
8595         * modules/frexp-tests (Files): Likewise.
8596         * modules/frexpl-nolibm-tests (Files): Likewise.
8597         * modules/frexpl-tests (Files): Likewise.
8598         * modules/isnan-tests (Files): Likewise.
8599         * modules/isnand-nolibm-tests (Files): Likewise.
8600         * modules/isnand-tests (Files): Likewise.
8601         * modules/isnanf-nolibm-tests (Files): Likewise.
8602         * modules/isnanf-tests (Files): Likewise.
8603         * modules/isnanl-nolibm-tests (Files): Likewise.
8604         * modules/isnanl-tests (Files): Likewise.
8605         * modules/round-tests (Files): Likewise.
8606         * modules/roundf-tests (Files): Likewise.
8607         * modules/roundl-tests (Files): Likewise.
8608         * modules/ldexpl-tests (Files): Likewise.
8609         * modules/signbit-tests (Files): Likewise.
8610         * modules/snprintf-posix-tests (Files): Likewise.
8611         * modules/sprintf-posix-tests (Files): Likewise.
8612         * modules/strtod-tests (Files): Likewise.
8613         * modules/trunc-tests (Files): Likewise.
8614         * modules/truncf-tests (Files): Likewise.
8615         * modules/truncl-tests (Files): Likewise.
8616         * modules/vsnprintf-posix-tests (Files): Likewise.
8617         * modules/vsprintf-posix-tests (Files): Likewise.
8618         * modules/vasnprintf-posix-tests (Files): Likewise.
8619         * modules/vasprintf-posix-tests (Files): Likewise.
8620         * tests/test-ceilf1.c (main): Use it.
8621         * tests/test-ceill.c (main): Likewise.
8622         * tests/test-floorf1.c (main): Likewise.
8623         * tests/test-floorl.c (main): Likewise.
8624         * tests/test-frexp.c (main): Likewise.
8625         * tests/test-frexpl.c (main): Likewise.
8626         * tests/test-isnan.c (main): Likewise.
8627         * tests/test-isnand.h (main): Likewise.
8628         * tests/test-isnanf.h (main): Likewise.
8629         * tests/test-isnanl.h (main): Likewise.
8630         * tests/test-ldexpl.c (main): Likewise.
8631         * tests/test-round.c (main): Likewise.
8632         * tests/test-roundf.c (main): Likewise.
8633         * tests/test-roundl.c (main): Likewise.
8634         * tests/test-signbit.c (test_signbitf, test_signbitd)
8635         (test_signbitl): Likewise.
8636         * tests/test-snprintf-posix.h (test_function): Likewise.
8637         * tests/test-sprintf-posix.h (test_function): Likewise.
8638         * tests/test-strtod.c (main): Likewise.
8639         * tests/test-trunc1.c (main): Likewise.
8640         * tests/test-truncf1.c (main): Likewise.
8641         * tests/test-truncl.c (main): Likewise.
8642
8643         isnanl: work around icc bug
8644         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
8645
8646 2010-11-03  Eric Blake  <eblake@redhat.com>
8647
8648         tests: fix compiler warnings
8649         * tests/test-getopt.h (test_getopt): Fix condition.
8650         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8651         * tests/test-pipe2.c (main): Likewise.
8652         * tests/test-quotearg-simple.c (main): Avoid icc warning.
8653
8654         utimens: fix broken m4 test
8655         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
8656
8657 2010-10-28  Bruno Haible  <bruno@clisp.org>
8658
8659         posix_spawn*, getdtablesize: Relax license.
8660         * modules/posix_spawn (License): Change to LGPLv2+.
8661         * modules/posix_spawnp (License): Likewise.
8662         * modules/posix_spawn-internal (License): Likewise.
8663         * modules/posix_spawnattr_init (License): Likewise.
8664         * modules/posix_spawnattr_getflags (License): Likewise.
8665         * modules/posix_spawnattr_setflags (License): Likewise.
8666         * modules/posix_spawnattr_getpgroup (License): Likewise.
8667         * modules/posix_spawnattr_setpgroup (License): Likewise.
8668         * modules/posix_spawnattr_getschedparam (License): Likewise.
8669         * modules/posix_spawnattr_setschedparam (License): Likewise.
8670         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
8671         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
8672         * modules/posix_spawnattr_getsigdefault (License): Likewise.
8673         * modules/posix_spawnattr_setsigdefault (License): Likewise.
8674         * modules/posix_spawnattr_getsigmask (License): Likewise.
8675         * modules/posix_spawnattr_setsigmask (License): Likewise.
8676         * modules/posix_spawnattr_destroy (License): Likewise.
8677         * modules/posix_spawn_file_actions_init (License): Likewise.
8678         * modules/posix_spawn_file_actions_addclose (License): Likewise.
8679         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
8680         * modules/posix_spawn_file_actions_addopen (License): Likewise.
8681         * modules/posix_spawn_file_actions_destroy (License): Likewise.
8682         * modules/getdtablesize (License): Likewise.
8683         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
8684
8685 2010-10-26  Bruno Haible  <bruno@clisp.org>
8686
8687         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
8688         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
8689         Cygwin and mingw.
8690         Suggested by Eric Blake.
8691
8692 2010-10-26  Bruno Haible  <bruno@clisp.org>
8693
8694         stdio: Work around compilation error due to renameat() on Solaris 10.
8695         * lib/stdio.in.h: Include <unistd.h> on Solaris.
8696         * lib/renameat.c: Don't include <unistd.h> here.
8697         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
8698         Reported by Paul Eggert and Eric Blake.
8699
8700 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8701
8702         renameat: port to Solaris 10, which declares renameat in unistd.h
8703
8704         * lib/renameat.c: Include unistd.h before stdio.h, because
8705         Solaris 10 declares renameat in unistd.h.  Problem encountered
8706         when building GNU tar 1.24 on Solaris 10.
8707
8708 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8709
8710         fdopendir: fix C89 compilation
8711         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
8712         compilers.
8713
8714 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8715
8716         inttostr: simplify by removing unnecessary redundancy
8717         * lib/anytostr.c: Don't include verify.h.
8718         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
8719         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
8720         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
8721         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
8722         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
8723         Likewise.
8724         * modules/inttostr (Depends-on): Remove 'verify'.
8725
8726 2010-10-23  Bruno Haible  <bruno@clisp.org>
8727
8728         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
8729         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
8730         Reported by Eric Blake.
8731
8732 2010-10-23  Bruno Haible  <bruno@clisp.org>
8733
8734         Tests: Fix LOCALE_JA on MirBSD 10.
8735         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
8736         to an UTF-8 locale.
8737         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
8738         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8739         Reported by Eric Blake.
8740
8741 2010-10-21  Bruno Haible  <bruno@clisp.org>
8742
8743         nl_langinfo test: Avoid test failure on NetBSD 5.
8744         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
8745         Reported by Eric Blake.
8746
8747 2010-10-21  Eric Blake  <eblake@redhat.com>
8748
8749         c-stack: work around libsigsegv 2.8 bug
8750         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
8751         overflow on at least PowerPC64.
8752
8753 2010-10-17  Bruno Haible  <bruno@clisp.org>
8754
8755         userspec: Drop redundant file.
8756         * modules/userspec (Files): Remove lib/inttostr.h.
8757
8758 2010-10-17  Bruno Haible  <bruno@clisp.org>
8759
8760         nl_langinfo tests: Silence some warnings.
8761         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
8762         Reported by Jim Meyering.
8763
8764 2010-10-17  Bruno Haible  <bruno@clisp.org>
8765
8766         Make use of GCC's attribute __alloc_size__.
8767         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
8768         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
8769         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
8770         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
8771         __alloc_size__.
8772         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
8773         Suggested by Jim Meyering.
8774
8775 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
8776
8777         bootstrap: anchor .gitignore entries.
8778         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
8779         with...
8780         (insert_vc_ignore): ... this new function, which prepends `/' to
8781         all .gitignore entries before passing them to
8782         insert_sorted_if_absent.
8783
8784 2010-10-16  Bruno Haible  <bruno@clisp.org>
8785
8786         nextafter: Fix configure check.
8787         * modules/nextafter (configure.ac): Correct expected prototype.
8788
8789 2010-10-16  Bruno Haible  <bruno@clisp.org>
8790
8791         termios: Update documentation.
8792         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
8793
8794 2010-10-16  Bruno Haible  <bruno@clisp.org>
8795
8796         tests: Make them compile with TinyCC.
8797         * tests/test-strstr.c (main): Remove parentheses around array
8798         initializer.
8799
8800 2010-10-15  Eric Blake  <eblake@redhat.com>
8801
8802         ignore-value: make header idempotent
8803         * lib/ignore-value.h: Add double-inclusion guards.
8804         Reported by Stefan Berger.
8805
8806 2010-10-15  Jim Meyering  <meyering@redhat.com>
8807
8808         GNUmakefile: handle "stable" target, not "major"
8809         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
8810         lists in maint.mk and announce-gen.  Without this, "make stable"
8811         would fail to ensure that $(VERSION) is up to date.
8812
8813 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
8814
8815         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
8816         & co.
8817
8818 2010-10-14  Bruno Haible  <bruno@clisp.org>
8819
8820         vasnprintf: Don't set errno to 0.
8821         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
8822         block that sets it to 0.
8823         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
8824
8825 2010-10-14  Bruno Haible  <bruno@clisp.org>
8826
8827         socketlib: Fix.
8828         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
8829         gl_PREREQ_SYS_H_WINSOCK2.
8830         Reported by Ian Beckwith <ianb@erislabs.net>.
8831
8832 2010-10-13  Jim Meyering  <meyering@redhat.com>
8833
8834         test-select-stdin.c: avoid warn_unused_result warnings
8835         * tests/test-select-stdin.c: Include "macros.h".
8836         ASSERT that read and fflush succeed.
8837
8838 2010-10-13  Jim Meyering  <meyering@redhat.com>
8839
8840         git-version-gen: do require git-VC'd files in cwd
8841         * build-aux/git-version-gen: Reject a git version string
8842         if there are no commits associated with the current directory.
8843         This avoids an unlikely false-positive (unrelated dir whose parent
8844         repository also contains a tag matching v*), as pointed out
8845         by Giuseppe Scrivano in
8846         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
8847
8848 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8849
8850         argv-iter: omit nonconforming declaration
8851         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
8852         enum arg_iter_err declaration, which doesn't conform to C99.
8853         Solaris 10 cc warns about this.
8854
8855 2010-10-13  Eric Blake  <eblake@redhat.com>
8856
8857         termios: fix compilation on mingw
8858         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
8859         (gl_TERMIOS_H): Adjust it on mingw.
8860         * modules/termios (Makefile.am): Substitute new key.
8861         * lib/termios.in.h (includes): Make include_next conditional.
8862         * doc/posix-headers/termios.texi (termios.h): Update
8863         documentation.
8864         Reported by Daniel P. Berrange.
8865
8866 2010-10-13  Jim Meyering  <meyering@redhat.com>
8867
8868         git-version-gen: don't require that .git/ be in the current dir
8869         * build-aux/git-version-gen: Adjust this script so that it works
8870         when run from any working directory beneath the top-level .git/-
8871         containing directory.  Inspired by a patch from Giuseppe Scrivano,
8872         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
8873
8874         test-select: avoid warn_unused_result warnings
8875         * tests/test-select.c: Include "macros.h".
8876         ASSERT that each call to read, write, and pipe succeeds.
8877         While not technically required, also check each "close".
8878         * modules/select-tests (Files): Add tests/macros.h.
8879
8880         test-symlinkat: remove declaration of unused local
8881         * tests/test-symlinkat.c (main): Remove unused local, "buf".
8882
8883         test-inttostr: avoid shadowing warnings
8884         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
8885         and use malloc rather than the stack for the same reason as
8886         mentioned in the comment justifying the other allocation.
8887
8888 2010-10-11  Bruno Haible  <bruno@clisp.org>
8889
8890         stdlib: Allow multiple gnulib generated replacements to coexist.
8891         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
8892         Reported by Sam Steingold <sds@gnu.org>.
8893
8894 2010-10-11  Jim Meyering  <meyering@redhat.com>
8895
8896         fix a documentation typo
8897         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
8898
8899 2010-10-11  Eric Blake  <eblake@redhat.com>
8900
8901         futimens: work around Solaris 11 bug
8902         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
8903         * tests/test-futimens.h (test_futimens): Enhance, rather than
8904         weaken test.
8905         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8906
8907 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8908
8909         Indentation.
8910         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
8911         higher-level operators more to the left.
8912
8913 2010-10-11  Jim Meyering  <meyering@redhat.com>
8914
8915         test-futimens: avoid unwarranted test failure on Solaris 5.11
8916         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8917         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8918         because it tries to dereference the NULL name argument.
8919
8920 2010-10-11  Bruno Haible  <bruno@clisp.org>
8921
8922         Indentation.
8923         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
8924         indentation.
8925
8926 2010-10-11  Jim Meyering  <meyering@redhat.com>
8927
8928         spawn.in.h: make indentation consistent with parentheses
8929         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
8930         Make indentation consistent with parentheses.
8931
8932 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
8933
8934         Fix mismatched parens in previous commit
8935         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
8936         parens.
8937
8938 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8939
8940         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
8941
8942         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
8943         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
8944         * lib/malloca.c: Include "verify.h".
8945         (verify1): Remove, replacing with a verify call.
8946         * lib/relocwrapper.c (verify1): Likewise.
8947         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
8948         Likewise.
8949         * modules/malloca (Depends-on): Add 'verify'.
8950         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
8951         * modules/vasnprintf (Depends-on): Add 'verify'.
8952         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8953         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8954         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8955         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8956         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8957         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8958         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8959
8960         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
8961
8962         Formerly the style was sometimes 2*X - 1, because the C standard
8963         was wrongly thought to disallow ?: in integral constant expressions.
8964         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
8965         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
8966         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8967         * lib/stdint.in.h (_verify_intmax_size): Likewise.
8968         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
8969         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
8970         verify that time_t cannot be floating.
8971
8972 2010-10-08  Eric Blake  <eblake@redhat.com>
8973
8974         time: enforce recent POSIX ruling that time_t is integral
8975         * lib/time.in.h (__time_t_must_be_integral): Detect any
8976         problematic systems, allowing the rest of gnulib to assume POSIX.
8977
8978 2010-10-08  Jim Meyering  <meyering@redhat.com>
8979
8980         fdopendir: fix a bug on systems lacking openat and /proc support
8981         OpenBSD 4.7 is one such system.  The most noticeable effect was
8982         failure of any application making nontrivial use of fts: rm, du,
8983         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
8984           ./rm: traversal failed: `a': Bad file descriptor
8985         Debugging that, you see that even though FD 6 was closed just
8986         prior to the opendir call in fd_clone_opendir, its resulting
8987         dir->dd_fd was 8, rather than the expected value of 6:
8988
8989         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
8990         93                close (fd);
8991         (gdb) n
8992         94                dir = fd_clone_opendir (dupfd);
8993         (gdb) n
8994         95                saved_errno = errno;
8995         (gdb) p dir->dd_fd
8996         $11 = 8
8997
8998         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
8999         The problem is that on OpenBSD, fd_clone_opendir has to resort
9000         to using the old-style save/restore CWD mechanism, due to its
9001         lack of openat/proc support, and *that* would steal the FD (6)
9002         that opendir was supposed to use.
9003
9004         The fix is to squirrel away the desired FD so that save_cwd uses a
9005         different one, and then free the dest FD right before calling opendir.
9006         That guarantees opendir will use the required file descriptor.
9007
9008         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
9009
9010 2010-10-08  Bruno Haible  <bruno@clisp.org>
9011
9012         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
9013         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
9014
9015 2010-10-08  Bruno Haible  <bruno@clisp.org>
9016
9017         nanosleep: Make replacement POSIX compliant.
9018         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
9019         is out of range.
9020         Reported by Jim Meyering.
9021
9022 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9023
9024         bootstrap: add hook for altering gnulib.mk, for Bison
9025         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
9026         the Bison bootstrapping process can rewrite file names and variables
9027         in this file before later parts of 'bootstrap' use the file.
9028         Bison wants to include lib/gnulib.mk from the top-level makefile,
9029         so it needs the file names in this file to be relative to the top
9030         level, not relative to lib; plus it needs variable names to be
9031         rewritten.
9032         (slurp): Use the new function.
9033
9034         bootstrap: reformat for readability
9035         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
9036
9037 2010-10-08  Eric Blake  <eblake@redhat.com>
9038
9039         docs: update cygwin progress
9040         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
9041         1.7.7.
9042         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
9043         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
9044         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
9045         * doc/posix-functions/carg.texi (carg): Likewise.
9046         * doc/posix-functions/cargf.texi (cargf): Likewise.
9047         * doc/posix-functions/casin.texi (casin): Likewise.
9048         * doc/posix-functions/casinf.texi (casinf): Likewise.
9049         * doc/posix-functions/casinh.texi (casinh): Likewise.
9050         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
9051         * doc/posix-functions/catan.texi (catan): Likewise.
9052         * doc/posix-functions/catanf.texi (catanf): Likewise.
9053         * doc/posix-functions/catanh.texi (catanh): Likewise.
9054         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
9055         * doc/posix-functions/ccos.texi (ccos): Likewise.
9056         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
9057         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
9058         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
9059         * doc/posix-functions/cexp.texi (cexp): Likewise.
9060         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
9061         * doc/posix-functions/cimag.texi (cimag): Likewise.
9062         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
9063         * doc/posix-functions/clog.texi (clog): Likewise.
9064         * doc/posix-functions/clogf.texi (clogf): Likewise.
9065         * doc/posix-functions/conj.texi (conj): Likewise.
9066         * doc/posix-functions/conjf.texi (conjf): Likewise.
9067         * doc/posix-functions/cpow.texi (cpow): Likewise.
9068         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
9069         * doc/posix-functions/cproj.texi (cproj): Likewise.
9070         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
9071         * doc/posix-functions/creal.texi (creal): Likewise.
9072         * doc/posix-functions/crealf.texi (crealf): Likewise.
9073         * doc/posix-functions/csin.texi (csin): Likewise.
9074         * doc/posix-functions/csinf.texi (csinf): Likewise.
9075         * doc/posix-functions/csinh.texi (csinh): Likewise.
9076         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
9077         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
9078         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
9079         * doc/posix-functions/ctan.texi (ctan): Likewise.
9080         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
9081         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
9082         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
9083         * doc/posix-headers/complex.texi (complex.h): Likewise.
9084
9085 2010-10-07  Jim Meyering  <meyering@redhat.com>
9086
9087         parse-datetime: avoid compilation failure on OpenBSD 4.7
9088         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
9089         This works around a compilation failure on OpenBSD 4.7:
9090         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
9091
9092 2010-10-07  Eric Blake  <eblake@redhat.com>
9093
9094         docs: update cygwin progress
9095         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
9096         1.7.6.
9097         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9098         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
9099         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
9100         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
9101         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
9102         Likewise.
9103         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
9104         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
9105         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
9106         Likewise.
9107         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
9108         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
9109         Likewise.
9110         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
9111         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
9112         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
9113         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
9114         Likewise.
9115         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
9116         Likewise.
9117         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
9118
9119         docs: update parse-datetime history
9120         * doc/parse-datetime.texi (Authors of parse_datetime): Better
9121         documentation of this function's history and alternatives.
9122
9123         cygwin: use more robust version check
9124         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
9125         exclude an eventual cygwin 1.9.1.
9126         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9127         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9128         (gl_FUNC_STRCASESTR): Likewise.
9129         Reported by Bruno Haible.
9130
9131 2010-10-06  Bruno Haible  <bruno@clisp.org>
9132
9133         string, sys_select: Avoid #including large headers unless necessary.
9134         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
9135         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
9136         OSF/1, BeOS, Haiku.
9137         Reported by Jim Meyering.
9138
9139 2010-10-05  Eric Blake  <eblake@redhat.com>
9140
9141         memmem, strstr, strcasestr: fix bug with long periodic needle
9142         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
9143         periodic needle having false positive.
9144         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
9145         and cygwin 1.7.7.
9146         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
9147         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9148         (gl_FUNC_STRCASESTR): Likewise.
9149         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9150         * tests/test-memmem.c (main): Expose the bug.
9151         * tests/test-strcasestr.c (main): Likewise.
9152         * tests/test-strstr.c (main): Likewise.
9153         * tests/test-c-strcasestr.c (main): Likewise.
9154         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
9155         * doc/posix-functions/strstr.texi (strstr): Likewise.
9156         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9157         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
9158
9159 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9160
9161         parse-datetime: do some more renaming
9162         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
9163         parse_datetime, not get_date.  Mention the renaming.
9164         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
9165         in comments.
9166         * m4/bison.m4: Likewise.
9167
9168 2010-10-05  Eric Blake  <eblake@redhat.com>
9169
9170         parse-datetime: better name than get_date
9171         * NEWS: Reword the deprecation notice.
9172         * modules/get_date: Rename to modules/parse-datetime.
9173         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
9174         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
9175         * lib/get_date.y: Rename to lib/parse-datetime.y.
9176         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
9177         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
9178         * doc/getdate.texi: Provide fallback wrapper.
9179         * lib/getdate.h: Move guts, and wrap...
9180         * lib/parse-datetime.h: ...new file.
9181         * lib/parse-datetime.y (get_date): Rename...
9182         (parse_datetime): ...to this.
9183         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
9184         (gl_PARSE_DATETIME): ...to this.
9185         * doc/posix-functions/getdate.texi (get_date): Provide fallback
9186         documentation.
9187         * modules/getdate (Files): Provide fallback docs and header.
9188         (Notice, Depends-on): Update references.
9189         * tests/test-parse-datetime.c: Likewise.
9190         * DEPENDENCIES: Likewise.
9191         * MODULES.html.sh (Date and time <time.h>): Likewise.
9192         * doc/parse-datetime.texi (Date input formats)
9193         (Authors of parse_datetime): Likewise.
9194         * modules/parse-datetime (Files, configure.ac, Makefile.am)
9195         (Include): Likewise.
9196         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
9197         * gnulib-tool: Likewise.
9198         * m4/bison.m4 (gl_BISON): Likewise.
9199         Suggested by Bruno Haible.
9200
9201 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9202
9203         more ports to Solaris tr, which needs [] around ranges
9204         * gnulib-tool: Solaris tr needs [] around ranges.
9205         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9206         * tests/test-pipe-filter-gi1.c (main): Likewise.
9207         * tests/test-pipe-filter-ii1.c (main): Likewise.
9208
9209 2010-10-05  Eric Blake  <eblake@redhat.com>
9210
9211         bootstrap: fix Solaris regression
9212         * build-aux/bootstrap (check_versions): Solaris tr still needs []
9213         around ranges.
9214         Reported by Pádraig Brady.
9215
9216         bootstrap: work with pkg-config
9217         * build-aux/bootstrap (check_versions): Also transliterate - in
9218         prerequisite name.
9219         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
9220         prerequisites that were already found, to avoid confusion.
9221         Reported by Justin Clift.
9222
9223         faccessat: remove unused wrappers
9224         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
9225         presence of these wrappers dragged in -lgen on Solaris.
9226         Reported by Clemens Brogi; fix suggested by Paul Eggert.
9227
9228 2010-10-05  Jim Meyering  <meyering@redhat.com>
9229
9230         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
9231         * Makefile (sc_pragma_columns): New syntax-check rule.
9232
9233 2010-10-04  Bruno Haible  <bruno@clisp.org>
9234
9235         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
9236         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
9237         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
9238         Reported by Bruce Korb and Eric Blake.
9239
9240 2010-10-04  Bruno Haible  <bruno@clisp.org>
9241
9242         threadlib: Make option --with-libpth-prefix work.
9243         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
9244         use $LIBPTH, not just -lpth.
9245
9246 2010-10-04  Bruno Haible  <bruno@clisp.org>
9247
9248         Avoid line length limitation from HP NonStop system header files.
9249         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
9250         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
9251         * lib/ctype.in.h: Likewise.
9252         * lib/dirent.in.h: Likewise.
9253         * lib/errno.in.h: Likewise.
9254         * lib/fcntl.in.h: Likewise.
9255         * lib/float.in.h: Likewise.
9256         * lib/getopt.in.h: Likewise.
9257         * lib/iconv.in.h: Likewise.
9258         * lib/inttypes.in.h: Likewise.
9259         * lib/langinfo.in.h: Likewise.
9260         * lib/locale.in.h: Likewise.
9261         * lib/math.in.h: Likewise.
9262         * lib/netdb.in.h: Likewise.
9263         * lib/netinet_in.in.h: Likewise.
9264         * lib/poll.in.h: Likewise.
9265         * lib/pthread.in.h: Likewise.
9266         * lib/pty.in.h: Likewise.
9267         * lib/sched.in.h: Likewise.
9268         * lib/se-selinux.in.h: Likewise.
9269         * lib/search.in.h: Likewise.
9270         * lib/signal.in.h: Likewise.
9271         * lib/spawn.in.h: Likewise.
9272         * lib/stdarg.in.h: Likewise.
9273         * lib/stddef.in.h: Likewise.
9274         * lib/stdint.in.h: Likewise.
9275         * lib/stdio.in.h: Likewise.
9276         * lib/stdlib.in.h: Likewise.
9277         * lib/string.in.h: Likewise.
9278         * lib/strings.in.h: Likewise.
9279         * lib/sys_file.in.h: Likewise.
9280         * lib/sys_ioctl.in.h: Likewise.
9281         * lib/sys_select.in.h: Likewise.
9282         * lib/sys_socket.in.h: Likewise.
9283         * lib/sys_stat.in.h: Likewise.
9284         * lib/sys_time.in.h: Likewise.
9285         * lib/sys_times.in.h: Likewise.
9286         * lib/sys_utsname.in.h: Likewise.
9287         * lib/sys_wait.in.h: Likewise.
9288         * lib/sysexits.in.h: Likewise.
9289         * lib/termios.in.h: Likewise.
9290         * lib/time.in.h: Likewise.
9291         * lib/unistd.in.h: Likewise.
9292         * lib/wchar.in.h: Likewise.
9293         * lib/wctype.in.h: Likewise.
9294         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
9295         * modules/ctype (Makefile.am): Likewise.
9296         * modules/dirent (Makefile.am): Likewise.
9297         * modules/errno (Makefile.am): Likewise.
9298         * modules/fcntl-h (Makefile.am): Likewise.
9299         * modules/float (Makefile.am): Likewise.
9300         * modules/getopt-posix (Makefile.am): Likewise.
9301         * modules/iconv-h (Makefile.am): Likewise.
9302         * modules/inttypes (Makefile.am): Likewise.
9303         * modules/langinfo (Makefile.am): Likewise.
9304         * modules/locale (Makefile.am): Likewise.
9305         * modules/math (Makefile.am): Likewise.
9306         * modules/netdb (Makefile.am): Likewise.
9307         * modules/netinet_in (Makefile.am): Likewise.
9308         * modules/poll-h (Makefile.am): Likewise.
9309         * modules/pthread (Makefile.am): Likewise.
9310         * modules/pty (Makefile.am): Likewise.
9311         * modules/sched (Makefile.am): Likewise.
9312         * modules/search (Makefile.am): Likewise.
9313         * modules/selinux-h (Makefile.am): Likewise.
9314         * modules/signal (Makefile.am): Likewise.
9315         * modules/spawn (Makefile.am): Likewise.
9316         * modules/stdarg (Makefile.am): Likewise.
9317         * modules/stddef (Makefile.am): Likewise.
9318         * modules/stdint (Makefile.am): Likewise.
9319         * modules/stdio (Makefile.am): Likewise.
9320         * modules/stdlib (Makefile.am): Likewise.
9321         * modules/string (Makefile.am): Likewise.
9322         * modules/strings (Makefile.am): Likewise.
9323         * modules/sys_file (Makefile.am): Likewise.
9324         * modules/sys_ioctl (Makefile.am): Likewise.
9325         * modules/sys_select (Makefile.am): Likewise.
9326         * modules/sys_socket (Makefile.am): Likewise.
9327         * modules/sys_stat (Makefile.am): Likewise.
9328         * modules/sys_time (Makefile.am): Likewise.
9329         * modules/sys_times (Makefile.am): Likewise.
9330         * modules/sys_utsname (Makefile.am): Likewise.
9331         * modules/sys_wait (Makefile.am): Likewise.
9332         * modules/sysexits (Makefile.am): Likewise.
9333         * modules/termios (Makefile.am): Likewise.
9334         * modules/time (Makefile.am): Likewise.
9335         * modules/unistd (Makefile.am): Likewise.
9336         * modules/wchar (Makefile.am): Likewise.
9337         * modules/wctype (Makefile.am): Likewise.
9338
9339 2010-10-04  Bruno Haible  <bruno@clisp.org>
9340
9341         read-file tests: Avoid a test failure on NonStop Kernel.
9342         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
9343         a regular file.
9344         Reported by Joachim Schmitz <schmitz@hp.com>.
9345
9346 2010-10-03  Bruno Haible  <bruno@clisp.org>
9347
9348         gnulib-tool: Fixes for --create-testdir with --libtool.
9349         * gnulib-tool (func_get_automake_snippet): Don't augment
9350         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
9351         an executable.
9352         (func_create_testdir): Handle module 'alloca' like func_import.
9353         Reported by Bruce Korb <bruce.korb@gmail.com>.
9354
9355 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
9356
9357         Avoid some lines longer than 80 characters.
9358         * lib/stdint.in.h: Break long comment lines.
9359         * lib/math.in.h: Likewise.
9360         (_GL_NUM_UINT_WORDS): New macro, for readability.
9361         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
9362         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
9363         * lib/stdlib.in.h: Likewise.
9364         * lib/spawn.in.h: Likewise.
9365         * lib/sys_socket.in.h: Update an URL.
9366         * lib/sys_stat.in.h: Break long line.
9367
9368 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
9369
9370         Improve pmccabe2html.
9371         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
9372         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
9373         when the sources change. Remove the line in the HTML about "Used
9374         ranges" (which implied that there might be other unused ranges),
9375         rename "Resume" to "Summary" (easier to understand for more users).
9376         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
9377         styles, and some unnecessary blank lines.
9378
9379 2010-10-03  Bruno Haible  <bruno@clisp.org>
9380             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9381
9382         acl: Add support for ACLs on NonStop Kernel.
9383         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
9384         Check whether the function aclsort() exists.
9385         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
9386         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
9387         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9388         (acl_nontrivial [HAVE_ACLSORT]: New function.
9389         (file_has_acl): Implement for NonStop Kernel.
9390         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9391         (qset_acl): Implement for NonStop Kernel.
9392         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
9393         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9394         (main): Implement for NonStop Kernel.
9395         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
9396         Kernel. Handle this flavor.
9397         * tests/test-set-mode-acl.sh: Likewise.
9398         * tests/test-copy-acl.sh: Likewise.
9399         * tests/test-copy-file.sh: Likewise.
9400
9401 2010-10-03  Bruno Haible  <bruno@clisp.org>
9402
9403         Info about ACLs on NonStop Kernel.
9404         * doc/acl-resources.txt: Add info about NonStop Kernel.
9405         References by Joachim Schmitz <schmitz@hp.com>.
9406
9407 2010-10-02  Bruno Haible  <bruno@clisp.org>
9408
9409         Define missing EDQUOT on NonStop Kernel.
9410         * lib/errno.in.h (EDQUOT): Assign a value if missing.
9411         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
9412         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
9413         missing.
9414         * doc/posix-headers/errno.texi: Mention the NSK bug.
9415         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
9416         Reported by Joachim Schmitz <schmitz@hp.com>.
9417
9418 2010-10-02  Bruno Haible  <bruno@clisp.org>
9419
9420         Update doc for POSIX:2008.
9421         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
9422         Update URL of POSIX specification.
9423
9424 2010-10-02  Bruno Haible  <bruno@clisp.org>
9425
9426         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
9427         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
9428         from gnulib, not from Automake.
9429
9430 2010-10-02  Bruno Haible  <bruno@clisp.org>
9431
9432         New module 'system-posix'.
9433         * modules/system-posix: New file.
9434         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
9435         module is present.
9436         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9437         GNULIB_SYSTEM_POSIX.
9438         * modules/stdlib (Depends-on): Remove sys_wait.
9439         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
9440         * doc/posix-functions/system.texi: Mention the new module.
9441         * doc/posix-headers/stdlib.texi: Likewise.
9442         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
9443         define test_sys_wait_macros to a no-op.
9444         Reported by Sam Steingold <sds@gnu.org>.
9445
9446 2010-09-30  Bruno Haible  <bruno@clisp.org>
9447
9448         More renaming from 'getdate' to 'get_date'.
9449         * doc/get_date.texi: Renamed from doc/getdate.texi.
9450         * modules/get_date (Files): Update.
9451         * MODULES.html.sh (Date and time <time.h>): Update.
9452         * DEPENDENCIES: Update.
9453         * gnulib-tool: Update comment.
9454         * m4/bison.m4 (gl_BISON): Likewise.
9455         * m4/get_date.m4 (gl_GET_DATE): Likewise.
9456
9457 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
9458
9459         bootstrap: support ACLOCAL_FLAGS during aclocal
9460         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
9461         can add additional -I dir for third-party .m4 files.
9462
9463 2010-09-30  Eric Blake  <eblake@redhat.com>
9464
9465         bootstrap: use glibtoolize on MacOS
9466         * build-aux/bootstrap (check_versions): Convert libtool into
9467         libtoolize.
9468         (tool search): Move libtool check earlier, and look for
9469         glibtoolize for MacOS.
9470         (gnulib_tool_options): Auto-add --libtool when appropriate.
9471         Reported by Justin Clift.
9472
9473         poll: fix typo that broke test on MacOS
9474         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
9475         Reported by Justin Clift.
9476
9477         getdate: rename to get_date
9478         Note: getdate.h is not renamed, to minimize client impact.
9479         * modules/getdate: Mark obsolete.  Move old contents...
9480         * modules/get_date: ...to new module name.
9481         * modules/getdate-tests: Move...
9482         * modules/get_date-tests: ...here.
9483         * m4/getdate.m4: Move...
9484         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
9485         * lib/getdate.y: Move...
9486         * lib/get_date.y: ...here.
9487         * tests/test-getdate.c: Move...
9488         * tests/test-get_date.c: ...here.
9489         * doc/posix-functions/getdate.texi (getdate): Update name.
9490         * NEWS: Mention the change.
9491
9492 2010-09-29  Bruno Haible  <bruno@clisp.org>
9493
9494         Separate the module 'waitpid' from the module 'sys_wait'.
9495         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
9496         present.
9497         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
9498         gl_MODULE_INDICATOR_FOR_TESTS.
9499         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
9500         * modules/sys_wait (Depends-on): Remove waitpid.
9501         (Makefile.am): Substitute GNULIB_WAITPID.
9502         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
9503         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
9504         signature only if the 'waitpid' module is present.
9505         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
9506         * NEWS: Mention the change.
9507         * modules/grantpt (Depends-on): Add waitpid.
9508         * modules/wait-process (Depends-on): Likewise.
9509
9510 2010-09-29  Bruno Haible  <bruno@clisp.org>
9511
9512         More tests for module 'sys_wait'.
9513         * modules/sys_wait-c++-tests: New file.
9514         * tests/test-sys_wait-c++.cc: New file.
9515         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
9516         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9517
9518 2010-09-29  Bruno Haible  <bruno@clisp.org>
9519
9520         New module 'waitpid'.
9521         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
9522         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
9523         Don't include <process.h>.
9524         (waitpid): Declare only, using modern idiom.
9525         * m4/waitpid.m4: New file.
9526         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
9527         * modules/waitpid: New file.
9528         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
9529         (Makefile.am): Update.
9530         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9531
9532 2010-09-28  Bruno Haible  <bruno@clisp.org>
9533
9534         poll: Assume ANSI C.
9535         * lib/poll.c (poll): Use an ANSI C declaration.
9536
9537 2010-09-28  Bruno Haible  <bruno@clisp.org>
9538
9539         poll-h: Create poll.h on all platforms.
9540         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
9541         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
9542         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
9543         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
9544         (gl_REPLACE_POLL_H): Don't set POLL_H.
9545         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
9546         * modules/poll-h (Depends-on): Add include_next.
9547         (Makefile.am): Create poll.h unconditionally. Substitute also
9548         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
9549
9550 2010-09-28  Bruno Haible  <bruno@clisp.org>
9551
9552         Tests for module 'poll-h'.
9553         * modules/poll-h-c++-tests: New file.
9554         * tests/test-poll-h-c++.cc: New file.
9555
9556         Tests for module 'poll-h'.
9557         * modules/poll-h-tests: New file.
9558         * tests/test-poll-h.c: New file.
9559
9560 2010-09-28  Bruno Haible  <bruno@clisp.org>
9561
9562         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
9563         * modules/poll-h (Depends-on): Add 'extensions'.
9564
9565 2010-09-28  Bruno Haible  <bruno@clisp.org>
9566
9567         New module 'poll-h'.
9568         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
9569         (poll): Use modern idiom.
9570         * modules/poll-h: New file.
9571         * modules/poll (Files): Remove lib/poll.in.h.
9572         (Depends-on): Add poll-h.
9573         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
9574         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
9575         * m4/poll_h.m4: New file.
9576         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
9577         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
9578         and invoke gl_REPLACE_POLL_H.
9579         * lib/poll.c: Use common idiom.
9580         * tests/test-poll.c: Likewise.
9581         * doc/posix-headers/poll.texi: Mention the poll-h module.
9582         Suggested by Eric Blake.
9583
9584 2010-09-26  Bruno Haible  <bruno@clisp.org>
9585
9586         sys_wait: Implement WSTOPSIG.
9587         * lib/sys_wait.in.h (WSTOPSIG): New macro.
9588         Reported by Simon Josefsson.
9589
9590 2010-09-26  Simon Josefsson  <simon@josefsson.org>
9591
9592         stdlib, sys_wait: Avoid compilation error on mingw.
9593         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
9594
9595 2010-09-26  Bruno Haible  <bruno@clisp.org>
9596
9597         stdlib tests: Avoid code duplication.
9598         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
9599         * modules/sys_wait-tests (Files): Likewise.
9600         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
9601         * tests/test-stdlib.c: Include test-sys_wait.h.
9602         (main): Invoke test_sys_wait_macros.
9603         * tests/test-sys_wait.c: Include test-sys_wait.h.
9604         (main): Invoke test_sys_wait_macros.
9605
9606 2010-09-25  Simon Josefsson  <simon@josefsson.org>
9607
9608         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
9609         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
9610         sure Windows sockets are working before calling getaddrinfo.
9611         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
9612         * doc/gnulib.texi (Windows sockets): Fix typo.
9613
9614 2010-09-25  Bruno Haible  <bruno@clisp.org>
9615
9616         Tests for module 'regex-quote'.
9617         * modules/regex-quote-tests: New file.
9618         * tests/test-regex-quote.c: New file.
9619
9620         New module 'regex-quote'.
9621         * lib/regex-quote.h: New file.
9622         * lib/regex-quote.c: New file.
9623         * modules/regex-quote: New file.
9624         Suggested by Reuben Thomas <rrt@sc3d.org>.
9625
9626 2010-09-24  Bruno Haible  <bruno@clisp.org>
9627
9628         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
9629         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
9630
9631 2010-09-23  Bruno Haible  <bruno@clisp.org>
9632
9633         setenv: Relax license.
9634         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
9635         Blake.
9636         Requested by Eric Blake.
9637
9638 2010-09-22  Bruno Haible  <bruno@clisp.org>
9639
9640         termios: Relax license.
9641         * modules/termios (License): Change to LGPLv2+.
9642         Requested by Eric Blake.
9643
9644 2010-09-22  Bruno Haible  <bruno@clisp.org>
9645
9646         threadlib: Allow the package to change the default to 'no'.
9647         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
9648         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
9649         Reported by Paul Eggert.
9650
9651 2010-09-22  Pádraig Brady  <P@draigbrady.com>
9652             Bruno Haible  <bruno@clisp.org>
9653
9654         Fix endless loop in mbmemcasecoll.
9655         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
9656         byte.
9657         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
9658
9659 2010-09-22  Bruno Haible  <bruno@clisp.org>
9660
9661         Tests for module 'memcoll'.
9662         * modules/memcoll-tests: New file.
9663         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
9664
9665         memcoll, xmemcoll: Clarify size vs. length.
9666         * modules/memcoll.c (memcoll0): Clarify specification.
9667         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
9668         passed to collate_error.
9669
9670 2010-09-22  Bruno Haible  <bruno@clisp.org>
9671
9672         Tests for module 'memcasecmp'.
9673         * modules/memcasecmp-tests: New file.
9674         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
9675
9676 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9677
9678         * lib/pthread.in.h: Add split double-inclusion guard, and include
9679         system <pthread.h> if there is one.  Use @@-style as in other
9680         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
9681         pthread.h doesn't.
9682         (pthread_mutexattr_destroy, pthread_mutexattr_init):
9683         (pthread_mutexattr_settype, pthread_mutex_trylock):
9684         New static inline functions, if there's no system <pthread.h>.
9685         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
9686         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
9687         Approximate with mutexes if the system lacks spinlocks, as in
9688         MacOS.
9689         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
9690         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
9691         @@-style.  Check for spinlocks separately.
9692         (gl_PTHREAD_DEFAULTS): New macro.
9693         * modules/pthread: Redo to use a more typical style for in.h files.
9694
9695 2010-09-21  Eric Blake  <eblake@redhat.com>
9696
9697         net_if: enhance tests
9698         * tests/test-net_if.c (main): Move signature checks earlier.
9699         Print failures to stderr.
9700         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
9701         Document the bug that we do not yet fix.
9702
9703 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9704
9705         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
9706         about gnulib, not GSS.
9707
9708 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9709
9710         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
9711         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
9712         for Emacs.
9713         * build-aux/pmccabe2html: Make Makefile.am example code more
9714         cut-and-paste friendly.
9715
9716 2010-09-21  Simon Josefsson  <simon@josefsson.org>
9717
9718         * tests/test-net_if.c: New file.
9719         * modules/net_if-tests: New file.
9720
9721 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
9722
9723         pthread: add pthread_spin_destroy
9724         * lib/pthread.in.h (pthread_spin_destroy): New function.
9725
9726 2010-09-19  Bruno Haible  <bruno@clisp.org>
9727
9728         gnulib-tool: Fix --help output.
9729         * gnulib-tool (func_usage): Fix help message.
9730         Reported by Reuben Thomas <rrt@sc3d.org>.
9731
9732 2010-09-18  Jim Meyering  <meyering@redhat.com>
9733
9734         maint.mk: avoid unexpanded \n in two diagnostics
9735         * top/maint.mk (sc_prohibit_always_true_header_tests):
9736         Don't use a literal \n in a halt=... assignment.  It would not be
9737         expanded, and the two \n bytes would appear in the diagnostic output
9738         rather than the desired newline.  Use halt=$$(printf ... instead.
9739         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9740
9741 2010-09-18  Bruno Haible  <bruno@clisp.org>
9742
9743         netinet_in: Doc tweak.
9744         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
9745         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9746
9747 2010-09-18  Jim Meyering  <meyering@redhat.com>
9748
9749         init.sh: correct an outdated comment
9750         * tests/init.sh (create_exe_shims_):  s/function/alias/
9751
9752         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
9753         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
9754         a file named "*.exe" is removed between the glob expansion and the
9755         processing of that oddly named file.
9756
9757 2010-09-17  Eric Blake  <eblake@redhat.com>
9758
9759         mirbsd: add some more support
9760         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
9761         in BSD family.
9762         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
9763         devices as OpenBSD.
9764         * m4/host-os.m4 (mirbsd): Add MirBSD.
9765
9766         tests: fix unportable assumption on sys/wait.h
9767         * tests/test-sys_wait.c (main): Relax test.
9768         * tests/test-stdlib.c (main): Likewise.
9769
9770         init.sh: accomodate directory with no .exes
9771         * tests/init.sh: Accomodate directory containing only scripts.
9772
9773         tests: avoid compiler warning
9774         * tests/test-stdlib.c (main): Use the variable.
9775
9776         fdutimens, fdutimensat: update signature, again
9777         * lib/utimens.h (gl_futimens): Delete, and move signature...
9778         (fdutimens): ...here.
9779         (fdutimensat): Rearrange signature.
9780         (lutimensat): Rename variable for clarity.
9781         * lib/fdutimensat.c (fdutimensat): Update signature.
9782         * lib/utimens.c (fdutimens): Likewise.
9783         (gl_futimens): Delete.
9784         (utimens, lutimens): Update callers.
9785         * lib/futimens.c (futimens): Likewise.
9786         * tests/test-fdutimensat.c: Likewise.
9787         * tests/test-utimens.c: Likewise.
9788         * tests/test-futimens.h: Update comment.
9789         * NEWS: Mention this.
9790         Suggested by Paul Eggert.
9791
9792 2010-09-17  Bruno Haible  <bruno@clisp.org>
9793
9794         Take over the maintenance of some older macros from Autoconf.
9795         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
9796         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
9797         GNU Autoconf.
9798         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
9799         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
9800
9801 2010-09-17  Eric Blake  <eblake@redhat.com>
9802
9803         fdutimensat: drop atflag validation
9804         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
9805         with valid fd, to close a race scenario where futimens is
9806         unsupported and FILE was replaced by a symlink.
9807         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
9808         accordingly.
9809         Suggested by Paul Eggert.
9810
9811 2010-09-16  Bruno Haible  <bruno@clisp.org>
9812
9813         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
9814         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
9815
9816 2010-09-16  Bruno Haible  <bruno@clisp.org>
9817
9818         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
9819         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
9820         login_tty exists.
9821         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9822
9823 2010-09-16  Bruno Haible  <bruno@clisp.org>
9824
9825         login_tty: Make the replacement code work on BSD systems.
9826         * lib/login_tty.c: Include <sys/ioctl.h>.
9827         (login_tty): Use ioctl TIOCSCTTY when available.
9828         * modules/login_tty (Depends-on): Add sys_ioctl.
9829         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9830
9831 2010-09-16  Bruno Haible  <bruno@clisp.org>
9832
9833         login_tty: Stricter unit test.
9834         * modules/login_tty-tests (Depends-on): Add tcgetsid.
9835         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
9836         and tcgetsid() after login_tty.
9837         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9838
9839 2010-09-16  Bruno Haible  <bruno@clisp.org>
9840
9841         New module 'tcgetsid'.
9842         * lib/tcgetsid.c: New file.
9843         * m4/tcgetsid.m4: New file.
9844         * modules/tcgetsid: New file.
9845         * modules/termios (Depends-on): Add c++defs, warn-on-use.
9846         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
9847         GNULIB_TCGETSID, HAVE_TCGETSID.
9848         * lib/termios.in.h: Include <sys/types.h>.
9849         (tcgetsid): New declaration.
9850         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
9851         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
9852         * doc/posix-functions/tcgetsid.texi: Mention the new module.
9853         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
9854
9855 2010-09-16  Bruno Haible  <bruno@clisp.org>
9856
9857         Tests for module 'termios'.
9858         * modules/termios-c++-tests: New file.
9859         * modules/termios-tests: New file.
9860         * tests/test-termios-c++.cc: New file.
9861         * tests/test-termios.c: New file.
9862
9863         New module 'termios'.
9864         * modules/termios: New file.
9865         * lib/termios.in.h: New file.
9866         * m4/termios_h.m4: New file.
9867         * doc/posix-headers/termios.texi: Mention the new module.
9868
9869 2010-09-16  Eric Blake  <eblake@redhat.com>
9870
9871         fdutimensat: add an atflag parameter
9872         * lib/fdutimensat.c (fdutimensat): Add new parameter.
9873         * lib/utimens.h (fdutimensat): Update prototype.
9874         * tests/test-fdutimensat.c: Adjust test to match.
9875         * NEWS: Document the change.
9876         Suggested by Paul Eggert.
9877
9878 2010-09-16  Bruno Haible  <bruno@clisp.org>
9879
9880         Fix typos in comments.
9881         * lib/striconveh.h: Fix typo in comment.
9882         * lib/login_tty.c (login_tty): Likewise.
9883
9884 2010-09-15  Bruno Haible  <bruno@clisp.org>
9885
9886         stdlib: clarify MirBSD WEXITSTATUS bug
9887         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
9888         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9889
9890 2010-09-15  Eric Blake  <eblake@redhat.com>
9891
9892         stdlib: work around MirBSD WEXITSTATUS bug
9893         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
9894         * modules/stdlib (Depends-on): Add sys_wait.
9895         * tests/test-sys_wait.c (main): Enhance test.
9896         * tests/test-stdlib.c (main): Likewise.
9897         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
9898
9899         docs: mention MacOS issue with WEXITSTATUS(constant)
9900         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
9901         issue.
9902         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9903
9904         strnlen: add tests
9905         * modules/strnlen-tests: New file.
9906         * tests/test-strnlen.c: Likewise.
9907
9908 2010-09-14  Bruno Haible  <bruno@clisp.org>
9909
9910         unistr/base: Avoid link errors when module 'libunistring' is also used.
9911         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
9912         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
9913         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
9914         Declare also when HAVE_LIBUNISTRING is set.
9915         Reported by Pádraig Brady <P@draigbrady.com>.
9916
9917 2010-09-14  Eric Blake  <eblake@redhat.com>
9918
9919         test-rawmemchr: make more robust
9920         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9921         (Depends-on, configure.ac): Add needed prerequisites to use it.
9922         * modules/memchr-tests (Files, Depends-on, configure.ac):
9923         Likewise, to avoid implicit reliance on memchr module prereqs.
9924         * tests/test-memchr.c (main): Ensure proper masking.
9925         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
9926         reads.
9927
9928         memchr: detect glibc Alpha bug
9929         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
9930         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
9931         Alpha.
9932         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
9933         * tests/test-memchr.c (main): Enhance test.
9934         Reported by Nelson H. F. Beebe.
9935
9936 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9937
9938         fts, getcwd, glob: audit for dirfd returning -1
9939         * lib/fts.c (opendir): Remove #define; no longer used.
9940         (opendirat): New arg PDIR_FD.  All callers changed.
9941         (fts_build, _opendir2): Use new opendirat to avoid the need for
9942         dirfd, or for checking whether dirfd returns a negative value.
9943         Don't use opendir; always use openat followed by fdopendir.
9944         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
9945         it.
9946         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
9947         returns -1 here.
9948         * modules/fts (Depends-on): Remove dirfd.
9949         * modules/getcwd (Depends-on): Likewise.
9950
9951 2010-09-13  Eric Blake  <eblake@redhat.com>
9952
9953         float: fix broken MirBSD header
9954         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
9955         * doc/posix-headers/float.texi (float.h): Document it.
9956
9957 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9958
9959         fts: use O_NOFOLLOW to avoid race condition when opening a directory
9960         * lib/fts.c (opendirat): New arg extra_flags.
9961         (__opendir2): Use it to avoid following symlinks when opening
9962         a directory, if symlinks are not supposed to be followed.  See
9963         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
9964
9965         fdopendir: preserve argument fd before returning
9966         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
9967         (fdopendir_with_dup, fd_clone_opendir): New static functions.
9968         (fdopendir): Use them, arranging for FD to be open to the same
9969         directory that it was when it started.  (It might be temporarily
9970         closed while fdopendir is running, so this not thread- or
9971         signal-safe.)  Be careful to do the right thing even when file
9972         descriptors are scarce and dup fails with errno == EMFILE.  See
9973         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
9974
9975 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
9976
9977         regex: Pass the system regex if its only problem is 32-bit regoff_t.
9978         * NEWS: Document change.
9979         * m4/regex.m4: Disable test for regoff_t size.
9980
9981 2010-09-13  Jim Meyering  <meyering@redhat.com>
9982
9983         fts: don't operate on an invalid file descriptor after failed dup
9984         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
9985         negative file descriptor.
9986
9987 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9988
9989         savedir: add streamsavedir, deprecate fdsavedir
9990         * NEWS: Mention deprecation of fdsavedir.
9991         * lib/savedir.c (streamsavedir): New extern function, whose name
9992         ends in "savedir" to be consistent with the others.  This differs
9993         from savedirstream in that it doesn't close its argument.  The
9994         next version of GNU tar will use this instead of fdsavedir, to
9995         avoid some race conditions and conserve file descriptors.
9996         (savedirstream): Reimplement as a wrapper around streamsavedir.
9997         (fdsavedir): Add a comment deprecating this function.  As far as
9998         I know, only GNU tar used it, and GNU tar doesn't need it any more.
9999         * lib/savedir.h (streamsavedir): New decl.
10000         (fdsavedir): Add a comment deprecating this.
10001
10002 2010-09-10  Bruno Haible  <bruno@clisp.org>
10003
10004         langinfo: Fix last commit.
10005         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
10006         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
10007         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10008
10009 2010-09-10  Bruno Haible  <bruno@clisp.org>
10010
10011         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
10012         * lib/progreloc.c (O_EXEC): Define fallback.
10013
10014 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
10015
10016         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
10017         * NEWS: Document recent changes to fcntl-h.
10018         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
10019         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
10020         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
10021         Similarly for O_SEARCH; this last was already true, but not documented.
10022         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
10023         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
10024         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
10025         Likewise.
10026         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
10027         is zero, not whether it is defined.
10028         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
10029         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
10030         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
10031
10032 2010-09-10  Bruno Haible  <bruno@clisp.org>
10033
10034         langinfo, nl_langinfo: Fix for IRIX 5.3.
10035         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
10036         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
10037         HAVE_LANGINFO_YESEXPR.
10038         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
10039         HAVE_LANGINFO_YESEXPR.
10040         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
10041         HAVE_LANGINFO_T_FMT_AMPM is 0.
10042         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
10043         HAVE_LANGINFO_YESEXPR is 0.
10044         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
10045         NOEXPR.
10046         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
10047         * doc/posix-functions/nl_langinfo.texi: Likewise.
10048         Reported by Eric Blake.
10049
10050 2010-09-10  Bruno Haible  <bruno@clisp.org>
10051
10052         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
10053         * doc/glibc-functions/login_tty.texi: Mention the include file problem
10054         on FreeBSD 8.0 and OpenBSD 4.6.
10055         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
10056         * m4/pty_h.m4 (gl_PTY_H): Likewise.
10057         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
10058         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
10059         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
10060         ac_includes_default.
10061         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10062
10063 2010-09-09  Eric Blake  <eblake@redhat.com>
10064
10065         strsignal: work around NetBSD bug
10066         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
10067         * lib/string.in.h (includes): Likewise.
10068         * doc/posix-functions/strsignal.texi (strsignal): Document the
10069         bug.
10070         Reported by Nelson H. F. Beebe.
10071
10072         gnulib-tool: work with NetBSD /bin/sh
10073         * gnulib-tool (func_cache_var, func_cache_lookup_module)
10074         (func_get_description, func_get_comment, func_get_status)
10075         (func_get_notice, func_get_applicability, func_get_filelist)
10076         (func_get_dependencies, func_get_autoconf_early_snippet)
10077         (func_get_autoconf_snippet, func_get_automake_snippet)
10078         (func_get_include_directive, func_get_link_directive)
10079         (func_get_license, func_get_maintainer, func_import): Avoid
10080         shell syntax errors from parsing syntax extensions.
10081
10082 2010-09-09  Bruno Haible  <bruno@clisp.org>
10083
10084         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10085         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
10086         a reliable way to determine whether the 'alias' command works.
10087
10088 2010-09-08  Jim Meyering  <meyering@redhat.com>
10089
10090         init.sh: penalize a set-x-impaired shell; don't disqualify it
10091         * tests/init.sh: Too many shells corrupt application stderr when
10092         you set -x, so we can't afford to disqualify them, since at least
10093         on Irix-6.5, that would disqualify all bourne shells.
10094         Instead, use a two-pass approach.
10095         On the first pass, try to find a shell that meets the stricter
10096         condition that set -x does not corrupt stderr.
10097         If no shell meets the stricter condition, retest each candidate
10098         shell, but without that extra condition.  Finally, when
10099         VERBOSE=yes is requested and set -x might cause trouble, simply
10100         issue a warning and refrain from enabling debug output.
10101
10102 2010-09-08  Eric Blake  <eblake@redhat.com>
10103
10104         unsetenv: fix OpenBSD bug
10105         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
10106         * doc/posix-functions/unsetenv.texi (unsetenv): Update
10107         documentation.
10108         Reported by Jim Meyering.
10109
10110         strtod: work around IRIX 6.5 bug
10111         * lib/strtod.c (strtod): Reparse number on shorter string if
10112         exponent parse was invalid.
10113         * tests/test-strtod.c (main): Add check for "0x1p 2".
10114         Reported by Tom G. Christensen.
10115
10116         getopt: optimize previous patch
10117         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
10118         empty variable.  Speed up awk script.
10119         Reported by Paolo Bonzini.
10120
10121 2010-09-08  Jim Meyering  <meyering@redhat.com>
10122
10123         test.sh: disqualify shells for which set -x corrupts stderr
10124         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
10125         and OpenBSD 4.7.  They make it so with "set -x", environment settings
10126         appear in stderr output.  For example, this command:
10127             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
10128         prints "P=1" on those two systems:
10129
10130 2010-09-08  Bruno Haible  <bruno@clisp.org>
10131
10132         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10133         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
10134         commands, because some shells ignore redirections when there is an
10135         error in the command lookup.
10136         Reported by Eric Blake.
10137
10138 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
10139
10140         * lib/regex.h: Fix a mention of `regex_compile' (should be
10141         `re_compile_pattern').
10142         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
10143         (re_set_registers): Correct name of parameter in comment.
10144
10145         * doc/regex.texi: Add documentation for missing syntax flags.
10146         Remove commented-out documentation of defunct syntax option
10147         RE_NO_EMPTY_ALTS.
10148         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
10149         Add documentation of re_set_registers.
10150         Document trick to re-use a pattern buffer by setting fastmap manually.
10151         Update documentation of struct re_pattern_buffer per public members.
10152         Uncomment documentation of equivalence class operators and
10153         collating symbol operators, since they are now implemented,
10154         Explain leftmost-longest matching in relation to alternatives.
10155         Tidy documentation of substring matching.
10156         Remove POSIX documentation, which is done better in
10157         glibc, and refer the reader there. Keep BSD API documentation, as
10158         that is not readily available elsewhere.
10159
10160 2010-09-07  Eric Blake  <eblake@redhat.com>
10161
10162         getopt: handle POSIXLY_CORRECT set but not exported
10163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
10164         export state of POSIXLY_CORRECT, due to bash set -o posix.
10165         Reported by Dustin J. Mitchell.
10166
10167 2010-09-05  Bruno Haible  <bruno@clisp.org>
10168
10169         gnulib-tool: Highlight the changed options.
10170         * gnulib-tool (func_usage): Display the --import, --add-import,
10171         --remove-import explanations in bold font.
10172
10173 2010-09-06  Karl Berry  <karl@gnu.org>
10174
10175         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
10176
10177 2010-09-05  Bruno Haible  <bruno@clisp.org>
10178
10179         uniwidth/width: Update comment.
10180         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
10181         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
10182
10183 2010-09-05  Bruno Haible  <bruno@clisp.org>
10184
10185         isinf, isnan: Relax license.
10186         * modules/isinf (License): Change from GPL to LGPL, with consent from
10187         Ben Pfaff.
10188         * modules/isnan (License): Likewise.
10189         Requested by Ludovic Courtès.
10190
10191 2010-09-04  Bruno Haible  <bruno@clisp.org>
10192
10193         gnulib-tool: Help migration from --import to --add-import or --update.
10194         * gnulib-tool: Emit a verbose error message when --import is used
10195         without any module name.
10196
10197 2010-09-04  Bruno Haible  <bruno@clisp.org>
10198
10199         Update doc about gnulib-tool.
10200         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
10201         'gnulib-tool --update' in more detail.
10202         Reported by Eric Blake.
10203
10204 2010-09-04  Bruno Haible  <bruno@clisp.org>
10205
10206         gnulib-tool: Change --import. New options --add/remove-import.
10207         * gnulib-tool: New options --add-import, --remove-import.
10208         (func_usage): Document them.
10209         (have_associative): Define always.
10210         (func_import): In import mode, don't merge the specified settings with
10211         the cached settings. Implement remove-import mode.
10212         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
10213         Explain when to use them versus --import.
10214         (Simple update): Use --add-import instead of --import.
10215         * NEWS: Mention the change.
10216
10217 2010-09-04  Bruno Haible  <bruno@clisp.org>
10218
10219         * doc/gnulib-tool.texi (Initial import): Update paragraph about
10220         separate gnulib.mk.
10221
10222 2010-09-04  Bruno Haible  <bruno@clisp.org>
10223
10224         gnulib-tool: Don't talk about CVS any more.
10225         * gnulib-tool (func_usage, func_import): Write "version control"
10226         instead of CVS.
10227
10228 2010-09-04  Jim Meyering  <meyering@redhat.com>
10229
10230         maint.mk: avoid obscure sc_copyright_check failure in coreutils
10231         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
10232         false positives (whose names may be ill-chosen) when searching
10233         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
10234         would cause a false-positive.
10235
10236         avoid coreutils "make distcheck" failure
10237         Coreutils tests with an absolute build directory name that contains
10238         a space.  Not quoting this directory name caused a failure.
10239         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
10240         * tests/test-vc-list-files-cvs.sh: Likewise.
10241
10242 2010-09-04  Bruno Haible  <bruno@clisp.org>
10243
10244         gnulib-tool: Avoid error when run in a package without Makefile.am.
10245         * gnulib-tool: When collecting the m4dirs in a package that does not
10246         have a Makefile.am, eliminate those directories that contain no
10247         gnulib-cache.m4. Fix expression that counts these directories.
10248
10249 2010-09-04  Bruno Haible  <bruno@clisp.org>
10250
10251         update-copyright test: Improve output when perl is missing or too old.
10252         * tests/test-update-copyright.sh: Move test of Perl version down after
10253         the test whether Perl exists. Provide an explanation relating Perl's
10254         error message to Automake's SKIP: message.
10255
10256 2010-09-04  Bruno Haible  <bruno@clisp.org>
10257
10258         Don't augment PATH in TESTS_ENVIRONMENT.
10259         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
10260         set abs_aux_dir instead of augmenting PATH.
10261         * modules/vc-list-files-tests (Makefile.am): Likewise.
10262         * tests/test-update-copyright.sh: Augment PATH here.
10263         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
10264         path_prepend_.
10265         * tests/test-vc-list-files-git.sh: Likewise.
10266
10267 2010-09-04  Jim Meyering  <meyering@redhat.com>
10268
10269         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
10270         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
10271
10272 2010-09-04  Bruno Haible  <bruno@clisp.org>
10273
10274         strdup: Fix compilation error in C++ mode.
10275         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
10276         the macro.
10277
10278 2010-09-04  Bruno Haible  <bruno@clisp.org>
10279
10280         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
10281         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
10282         macro into a function.
10283         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10284
10285 2010-09-04  Bruno Haible  <bruno@clisp.org>
10286
10287         Set PATH_SEPARATOR the same way autoconf does.
10288         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
10289         the value of PATH_SEPARATOR the same way autoconf-generated configure
10290         scripts do.
10291         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
10292         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
10293
10294 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10295
10296         Set PATH_SEPARATOR the same way autoconf does.
10297         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
10298         the same way autoconf-generated configure scripts do.
10299         * posix-modules: Likewise.
10300
10301 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10302
10303         hash: fix safe_hasher const typo
10304         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
10305         const; otherwise, there is a type error later.
10306
10307 2010-09-02  Jim Meyering  <meyering@redhat.com>
10308
10309         test-update-copyright.sh: require perl 5.8.0
10310         * tests/test-update-copyright.sh: Require 5.8.0,
10311         which Tom G. Christensen has confirmed is adequate,
10312         while 5.6.1 is not.
10313
10314 2010-09-02  Eric Blake  <eblake@redhat.com>
10315
10316         tests: init.sh improvements for re-exec'ing with zsh
10317         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
10318         -vx through shell re-exec.
10319         Reported by Tom G. Christensen.
10320
10321         wctype: fix typo in previous commit
10322         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
10323         Reported by Ludovic Courtès.
10324
10325 2010-09-02  Jim Meyering  <meyering@redhat.com>
10326
10327         test-update-copyright.sh: skip test if Perl is too old
10328         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
10329         Reported by Tom G. Christensen.
10330
10331 2010-09-02  Bruno Haible  <bruno@clisp.org>
10332
10333         wctype: Avoid compilation error on IRIX 6.5.30.
10334         * lib/wctype.in.h (iswblank): Declare with a replacement if
10335         REPLACE_ISWBLANK is set.
10336         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
10337         declared. Set REPLACE_ISWBLANK.
10338         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
10339         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
10340         * doc/posix-headers/wctype.texi: Likewise.
10341         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10342
10343 2010-09-01  Bruno Haible  <bruno@clisp.org>
10344
10345         New module 'socketlib'.
10346         * modules/socketlib: New file.
10347         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
10348         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
10349         * modules/sockets (Depends-on): Add socketlib.
10350         Suggested by Sam Steingold <sds@gnu.org>.
10351
10352 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10353
10354         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
10355
10356         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
10357         when one needs search access to a directory but not read access.
10358         On systems where it is available, it works in some cases where
10359         O_RDONLY does not, namely on directories that are searchable but
10360         not readable, and which need only to be searchable.  If O_SEARCH
10361         is not available, fall back to the traditional method of using
10362         O_RDONLY.
10363
10364         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
10365         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
10366         when opening a directory that needs only to be searchable.
10367         * lib/chdir-safer.c (chdir_no_follow): Likewise.
10368         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
10369         * lib/openat-proc.c (openat_proc_name): Likewise.
10370         * lib/openat.c (openat_needs_fchdir): Likewise.
10371         * lib/save-cwd.c (save_cwd): Likewise.
10372         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
10373
10374 2010-08-28  Bruno Haible  <bruno@clisp.org>
10375
10376         New module 'host-cpu-c-abi'.
10377         * modules/host-cpu-c-abi: New file.
10378         * m4/host-cpu-c-abi.m4: New file, based on part of
10379         clisp/src/m4/general.m4.
10380         Requested by Sam Steingold <sds@gnu.org>.
10381
10382 2010-08-31  Eric Blake  <eblake@redhat.com>
10383         and Jim Meyering  <meyering@redhat.com>
10384
10385         hash: factor, and guard against misbehaving hasher function
10386         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
10387         of table->hasher's return value.  Also protect against a hash value
10388         so large that adding it to table->bucket results in a NULL pointer.
10389         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
10390         Use it in place of open-coded check-and-abort.
10391
10392 2010-08-30  Bruno Haible  <bruno@clisp.org>
10393
10394         hash: silence spurious clang warning
10395         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
10396         Reported by Eric Blake.
10397
10398 2010-08-30  Eric Blake  <eblake@redhat.com>
10399
10400         strstr, memmem, strcasestr: avoid leaked shell message
10401         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
10402         FreeBSD.
10403         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10404         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10405
10406         tests: silence clang warning
10407         * tests/test-malloca.c (do_allocation): Avoid dead store.
10408
10409 2010-08-29  Bruno Haible  <bruno@clisp.org>
10410
10411         gettext: Fix recent mistake.
10412         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
10413
10414 2010-08-29  Bruno Haible  <bruno@clisp.org>
10415
10416         selinux-h: Offer a --without-selinux option.
10417         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
10418         --without-selinux was specified, skip all tests and define
10419         HAVE_SELINUX_SELINUX_H to 0.
10420         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
10421         set LIB_SELINUX to empty.
10422         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
10423         gl_LIBSELINUX. If --without-selinux was specified, replace
10424         selinux/context.h.
10425         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
10426
10427 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10428             Bruno Haible  <bruno@clisp.org>
10429
10430         Make the module 'realloc-gnu' work again on AIX and OSF/1.
10431         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
10432         of HAVE_REALLOC.
10433         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
10434         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
10435         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
10436         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10437
10438 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10439             Bruno Haible  <bruno@clisp.org>
10440
10441         Make the module 'calloc-gnu' work again on AIX and OSF/1.
10442         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
10443         HAVE_CALLOC.
10444         * lib/xmalloc.c: Update accordingly.
10445         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
10446         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
10447         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
10448
10449 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10450             Bruno Haible  <bruno@clisp.org>
10451
10452         Make the module 'malloc-gnu' work again on AIX and OSF/1.
10453         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
10454         HAVE_MALLOC.
10455         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
10456         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
10457         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10458
10459 2010-08-29  Bruno Haible  <bruno@clisp.org>
10460
10461         Update modules list.
10462         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
10463         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
10464         (String handling <string.h>): Add astrxfrm.
10465         (File system functions): Add readlinkat.
10466
10467 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10468
10469         Tests for module 'realloc-gnu'.
10470         * modules/realloc-gnu-tests: New file.
10471         * tests/test-realloc-gnu.c: New file.
10472
10473         Tests for module 'calloc-gnu'.
10474         * modules/calloc-gnu-tests: New file.
10475         * tests/test-calloc-gnu.c: New file.
10476
10477         Tests for module 'malloc-gnu'.
10478         * modules/malloc-gnu-tests: New file.
10479         * tests/test-malloc-gnu.c: New file.
10480
10481 2010-08-28  Bruno Haible  <bruno@clisp.org>
10482
10483         Rename module 'realloc' -> 'realloc-gnu'.
10484         * modules/realloc-gnu: New file, copied from modules/realloc.
10485         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
10486         obsolete.
10487         * modules/mgetgroups (Depends-on): Update.
10488         * doc/posix-functions/realloc.texi: Update.
10489         * NEWS: Mention the change.
10490
10491         Rename module 'calloc' -> 'calloc-gnu'.
10492         * modules/calloc-gnu: New file, copied from modules/calloc.
10493         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
10494         obsolete.
10495         * doc/posix-functions/calloc.texi: Update.
10496         * NEWS: Mention the change.
10497
10498         Rename module 'malloc' -> 'malloc-gnu'.
10499         * modules/malloc-gnu: New file, copied from modules/malloc.
10500         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
10501         obsolete.
10502         * modules/argp (Depends-on): Update.
10503         * modules/regex (Depends-on): Update.
10504         * doc/posix-functions/malloc.texi: Update.
10505         * NEWS: Mention the change.
10506
10507 2010-08-28  Eric Blake  <eblake@redhat.com>
10508
10509         pread, pwrite: add missing dependency
10510         * modules/pread (Depends-on): Add extensions.
10511         * modules/pwrite (Depends-on): Likewise.
10512
10513 2010-08-28  Bruno Haible  <bruno@clisp.org>
10514
10515         unistr/u*-strchr: Fix tests dependencies.
10516         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
10517         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
10518         Reported by Ian Beckwith <ianb@erislabs.net>.
10519
10520 2010-08-28  Bruno Haible  <bruno@clisp.org>
10521
10522         read-file: Don't occupy too much unused memory.
10523         * lib/read-file.c (fread_file): Shrink the buffer at the end.
10524
10525 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
10526             Eric Blake  <eblake@redhat.com>
10527             Bruno Haible  <bruno@clisp.org>
10528
10529         read-file: Avoid memory reallocations with regular files.
10530         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
10531         (fread_file): With regular files, use the remaining length as the
10532         initial buffer size.  Check against overflow.
10533         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
10534         sys_stat.
10535
10536 2010-08-28  Bruno Haible  <bruno@clisp.org>
10537
10538         ftello: Relax license.
10539         * modules/ftello (License): Relax to LGPLv2+.
10540         Reported by Eric Blake.
10541
10542 2010-08-28  Bruno Haible  <bruno@clisp.org>
10543
10544         Avoid relocwrapper link errors due to gnulib replacement functions.
10545         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
10546         function.
10547         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10548
10549 2010-08-28  Bruno Haible  <bruno@clisp.org>
10550
10551         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
10552         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
10553         defined.
10554         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
10555         Suggested by Eric Blake.
10556
10557 2010-08-28  Bruno Haible  <bruno@clisp.org>
10558
10559         sys_socket, netdb: Ensure socklen_t gets defined.
10560         * modules/sys_socket (Depends-on): Add socklen.
10561         * modules/netdb (Depends-on): Likewise.
10562         * modules/getaddrinfo (Depends-on): Remove socklen.
10563         * modules/getsockopt (Depends-on): Likewise.
10564         * modules/setsockopt (Depends-on): Likewise.
10565         * tests/test-sys_socket.c: Check that socklen_t is defined.
10566         * tests/test-netdb.c: Likewise.
10567         * m4/socklen.m4: Update comments.
10568         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10569
10570 2010-08-27  Eric Blake  <eblake@redhat.com>
10571
10572         login_tty: add missing dependency
10573         * modules/login_tty (Depends-on): Add pty.
10574
10575 2010-08-26  Eric Blake  <eblake@redhat.com>
10576
10577         lib-symbol-versions: fix m4 quoting
10578         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
10579         format for AC_LINK_IFELSE.
10580
10581         glob: fix compile test
10582         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
10583
10584         btowc: fix missing file
10585         * modules/btowc (Files): Also ship locale-fr.m4.
10586
10587         lseek: fix link test
10588         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
10589         AC_LINK_IFELSE.
10590
10591         include_next: silence autoconf 2.68 warning
10592         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
10593         AC_COMPILE_IFELSE as special.
10594         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
10595         autoconf < 2.68.
10596
10597         acl: fix compilation test
10598         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
10599         AC_COMPILE_IFELSE.
10600
10601 2010-08-26  Bruno Haible  <bruno@clisp.org>
10602
10603         Modernize AC_TRY_RUN invocations.
10604         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
10605         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10606         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
10607         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
10608         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
10609         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10610         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10611         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10612         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10613         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10614         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10615         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10616         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10617         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10618         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10619         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10620         gl_MBRLEN_NUL_RETVAL): Likewise.
10621         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10622         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10623         Likewise.
10624         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10625         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10626         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10627         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10628         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
10629         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
10630         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
10631         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10632         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
10633         Likewise.
10634         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
10635         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
10636         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10637         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10638         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10639         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10640         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10641         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
10642         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10643         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10644
10645 2010-08-26  Bruno Haible  <bruno@clisp.org>
10646
10647         Modernize AC_TRY_LINK invocations.
10648         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
10649         AC_TRY_LINK.
10650         * m4/argp.m4 (gl_ARGP): Likewise.
10651         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10652         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10653         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10654         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10655         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10656         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
10657         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10658         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10659         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10660         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
10661         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10662         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
10663         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
10664         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10665         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
10666         * m4/hostent.m4 (gl_HOSTENT): Likewise.
10667         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10668         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
10669         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
10670         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
10671         Likewise.
10672         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
10673         Likewise.
10674         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
10675         Likewise.
10676         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
10677         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
10678         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
10679         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10680         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10681         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10682         * m4/servent.m4 (gl_SERVENT): Likewise.
10683         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10684         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10685         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10686         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10687         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10688         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10689         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10690         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10691         * modules/tsearch-tests (configure.ac): Likewise.
10692
10693 2010-08-26  Bruno Haible  <bruno@clisp.org>
10694
10695         Modernize AC_TRY_COMPILE invocations.
10696         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
10697         AC_TRY_COMPILE.
10698         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
10699         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
10700         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
10701         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
10702         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
10703         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
10704         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10705         * m4/lock.m4 (gl_LOCK): Likewise.
10706         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
10707         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10708         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
10709         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
10710         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
10711         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
10712         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
10713         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
10714         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
10715         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
10716         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
10717         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
10718         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
10719         extraneous semicolon.
10720
10721 2010-08-26  Jim Meyering  <meyering@redhat.com>
10722
10723         stat-time: relax license LGPL
10724         * modules/stat-time (License): Change from GPL to LGPL,
10725         with consent from all contributors, for use in libguile.
10726         Requested by Ludovic Courtès.
10727
10728 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
10729
10730         poll: return immediately on POLLHUP.
10731         * lib/poll.c (poll): Always set timeout before wait_timeout is
10732         computed.
10733
10734 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10735
10736         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
10737         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
10738         rmdir ("dir/.//"), unlinkat.
10739
10740 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10741
10742         stdbool: avoid spurious failure with modern xlc
10743         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10744
10745 2010-08-24  Bruno Haible  <bruno@clisp.org>
10746
10747         getloadavg: simplify code
10748         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
10749         gl_have_func. Update comments.
10750
10751 2010-08-24  Eric Blake  <eblake@redhat.com>
10752
10753         getloadavg: don't define SVR4 on cygwin
10754         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
10755         only define SVR4 when -lkvm is required.
10756         Reported by Yaakov Selkowitz.
10757
10758 2010-08-24  Bruno Haible  <bruno@clisp.org>
10759
10760         priv-set: fix comment
10761         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
10762
10763 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10764
10765         priv-set: fix comments
10766         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
10767         to match code, as suggested by David Bartley in:
10768         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
10769
10770 2010-08-23  Eric Blake  <eblake@redhat.com>
10771
10772         stdbool: avoid rejecting clang
10773         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10774         * tests/test-stdbool.c: Enable more tests if using the system
10775         <stdbool.h> instead of the gnulib replacement.
10776         (main): Move xlc bug test to a runtime test for all compilers.
10777         Reported by Anders Kaseorg.
10778
10779         argz: fix shell quoting issue
10780         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
10781         Reported by Charles Wilson.
10782
10783 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
10784             Erik Faye-Lund <kusmabite@gmail.com>
10785
10786         poll, select: handle ERROR_BROKEN_PIPE.
10787         * lib/poll.c (win32_compute_revents): Return POLLHUP when
10788         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10789         * lib/select.c (win32_compute_revents): Do not mark a pipe
10790         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10791
10792 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
10793
10794         fts: allow compilation with C++
10795         * lib/fts_.h: Specify extern "C" linkage with C++.
10796
10797 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10798
10799         Fix gnulib-tool sed script de-commentation for AIX sed.
10800         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
10801         sed.
10802
10803 2010-08-17  Eric Blake  <eblake@redhat.com>
10804
10805         test-stddef: test for (some) offsetof bugs
10806         * tests/test-stddef.c: Enhance test to ensure correct type of
10807         offsetof.
10808         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
10809         that we are not fixing at this time.
10810
10811 2010-08-15  Bruno Haible  <bruno@clisp.org>
10812
10813         stpncpy: Allow stpncpy to be defined as a macro.
10814         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
10815         if it's already correctly declared.
10816         * lib/string.in.h (stpncpy): Undefine before redefining.
10817         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
10818
10819 2010-08-14  Bruno Haible  <bruno@clisp.org>
10820
10821         Rename module 'memxfrm' to 'amemxfrm'.
10822         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
10823         (amemxfrm): Renamed from memxfrm.
10824         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
10825         (amemxfrm): Renamed from memxfrm.
10826         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
10827         * NEWS: Mention the change.
10828         * MODULES.html.sh (String handling <string.h>): Update.
10829         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
10830         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
10831         * lib/unicase/u16-casexfrm.c: Likewise.
10832         * lib/unicase/u32-casexfrm.c: Likewise.
10833         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
10834         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
10835         * lib/uninorm/u16-normxfrm.c: Likewise.
10836         * lib/uninorm/u32-normxfrm.c: Likewise.
10837         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
10838         memxfrm.
10839         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
10840         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
10841         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
10842         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
10843         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
10844         Suggested by Paul Eggert.
10845
10846 2010-08-14  Bruno Haible  <bruno@clisp.org>
10847
10848         Tests for module 'astrxfrm'.
10849         * modules/astrxfrm-tests: New file.
10850         * tests/test-astrxfrm.c: New file.
10851
10852         New module 'astrxfrm'.
10853         * lib/astrxfrm.h: New file.
10854         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
10855         * modules/astrxfrm: New file.
10856
10857 2010-08-14  Reuben Thomas <rrt@sc3d.org>
10858
10859         regex: Tweak doc.
10860         * doc/regex.texi (Overview): Don't mention regex.c.
10861         (GNU Regular Expression Compiling): Likewise.
10862         (Match-end-of-line Operator): Mention 'not_eol'.
10863
10864 2010-08-14  Brian Gough  <bjg@gnu.org>
10865             Bruno Haible  <bruno@clisp.org>
10866
10867         git-merge-changelog: add doc relating to use with bzr and hg.
10868         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
10869
10870 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
10871
10872         pthread: fix pthread.h creation for srcdir != builddir
10873         * modules/pthread (Makefile.am): Fix the rule to work also in a
10874         non-srcdir build.
10875
10876 2010-08-13  Karl Berry  <karl@gnu.org>
10877
10878         * doc/regex.texi (Predefined Syntaxes): @smallexample.
10879         * doc/posix-*/*: force line break before @url of POSIX
10880         specifications.
10881         Suggested by Werner Lemberg.
10882
10883 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10884
10885         strtod: fix const diagnostic
10886         * lib/strtod.c (strtod): Don't assign const char * to char *,
10887         as this elicits a warning from GCC when warnings are enabled.
10888
10889 2010-08-10  Pádraig Brady <P@draigbrady.com>
10890         and Eric Blake  <eblake@redhat.com>
10891
10892         copy-acl: ignore ENOTSUP on HP-UX
10893         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
10894         so that it is available for HP-UX.
10895         * lib/copy-acl.c (qcopy_acl): Use it.
10896         Reported by Patrick M. Callahan.
10897
10898 2010-08-10  Eric Blake  <eblake@redhat.com>
10899
10900         open, chown: relax license
10901         * modules/open (License): Change to LGPLv2+, with consent by all
10902         authors, for use in augeas.
10903         * modules/chown (License): Likewise.
10904         * modules/lchown (Likewise): Likewise.
10905         Requested by Adam Stokes.
10906
10907 2010-08-09  Karl Berry  <karl@gnu.org>
10908
10909         * build-aux/ar-lib: new file, import from Automake.
10910         * config/srclist.txt: autocheck for updates.
10911
10912 2010-08-09  Eric Blake  <eblake@redhat.com>
10913
10914         readlinkat: adjust client modules
10915         * modules/areadlinkat (Depends-on): Use readlinkat, not
10916         symlinkat.
10917         * modules/areadlinkat-with-size (Depends-on): Likewise.
10918
10919         mknod: be more vocal about danger of running tests as root
10920         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10921         root, since that is just asking for problems.
10922         Suggested by Bruno Haible, based on a report by Rainer Tammer.
10923
10924         readlinkat: split into its own module
10925         * modules/symlinkat: Split readlinkat...
10926         * modules/readlinkat: ...into separate module.
10927         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
10928         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
10929         * lib/symlinkat.c (readlinkat): Move...
10930         * lib/readlinkat.c: ...into new file.
10931         * modules/symlinkat-tests: Split readlinkat test...
10932         * modules/readlinkat-tests: ...into separate module.
10933         * tests/test-symlinkat.c: Split...
10934         * tests/test-readlinkat.c: ...into new file.
10935         * NEWS: Document the split.
10936         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10937         * lib/unistd.in.h (readlinkat): Likewise.
10938         Suggested by Bruno Haible.
10939
10940 2010-08-08  Bruno Haible  <bruno@clisp.org>
10941
10942         memxfrm: Speed up.
10943         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
10944         that usually only one call to strxfrm is necessary for each string
10945         part.
10946         Reported by Paul Eggert <eggert@cs.ucla.edu>.
10947
10948 2010-08-07  Karl Berry  <karl@gnu.org>
10949
10950         * doc/posix-headers/limits.texi,
10951         * doc/posix-functions/malloc.texi,
10952         * doc/posix-functions/strsignal.texi: missing @item.
10953         * doc/ld-version-script.texi: spurious leading i.
10954         * doc/regex.texi (Interval Operators): no commas inside @var.
10955
10956 2010-08-01  Bruno Haible  <bruno@clisp.org>
10957
10958         Integrate the regex documentation.
10959         * doc/gnulib.texi: Define 'cn' index.
10960         (Regular expressions): New a chapter that includes regex.texi and
10961         regexprops-generic.texi.
10962         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
10963         syntax.
10964
10965         Whitespace cleanup.
10966         * doc/regex.texi: Remove trailing spaces.
10967
10968         Add regex documentation.
10969         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
10970         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
10971         Written by Kathy A. Hargreaves and Karl Berry.
10972
10973 2010-08-01  Bruno Haible  <bruno@clisp.org>
10974
10975         link: Update documentation.
10976         * doc/posix-functions/link.texi: Update regarding Solaris.
10977
10978 2010-07-31  Bruno Haible  <bruno@clisp.org>
10979
10980         Update modules list.
10981         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
10982         (String handling <string.h>): Add memcmp2, memxfrm.
10983         (Container data structures): Add xlist, xsublist, xoset.
10984         (Core language properties): Add alignof, unused-parameter.
10985         (Process control, Numeric conversion functions <stdlib.h>): Renamed
10986         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
10987         (Unibyte characters <ctype.h>): New section.
10988         (String handling <string.h>): New section.
10989         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
10990         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
10991         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
10992         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
10993         tan, tanh, tanl, y0, y1, yn.
10994         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
10995         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
10996         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
10997         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
10998         unlockpt, vdprintf, vdprintf-posix.
10999         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
11000         (File system functions): Add concat-filename, sys_file, sys_ioctl,
11001         xconcat-filename.
11002         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
11003         getdtablesize, pipe2, pipe2-safer.
11004         (Security): New section.
11005         (Networking functions): Add accept4.
11006         (Signal handling): Add sigpipe.
11007         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
11008         mbmemcasecoll.
11009         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
11010         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
11011         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
11012         pipe-filter-ii.
11013         (Misc): Add argp-version-etc, login_tty, parse-duration.
11014
11015 2010-07-31  Bruno Haible  <bruno@clisp.org>
11016
11017         Improve doc in MODULES.html.
11018         * modules/linkat (Description): Add the word "function".
11019         * modules/mkfifo (Description): Likewise.
11020         * modules/mknod (Description): Likewise.
11021         * modules/remove (Description): Likewise.
11022         * modules/renameat (Description): Likewise.
11023         * modules/stat (Description): Likewise.
11024         * modules/symlink (Description): Likewise.
11025         * modules/unlink (Description): Likewise.
11026
11027 2010-07-31  Bruno Haible  <bruno@clisp.org>
11028
11029         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
11030         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
11031         option --enable/disable-c++ instead of --enable/disable-cxx.
11032         * NEWS: Mention the change.
11033
11034 2010-07-31  Bruno Haible  <bruno@clisp.org>
11035
11036         readlink, areadlink: Relax test a bit.
11037         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
11038         alternative to ENOTDIR.
11039         * tests/test-areadlink.h (test_areadlink): Likewise.
11040         Reported by Rainer Tammer.
11041
11042 2010-07-31  Bruno Haible  <bruno@clisp.org>
11043
11044         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
11045         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
11046         character, perform the search using U_STRCHR.
11047         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
11048         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
11049         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
11050         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
11051         Suggested by Paolo Bonzini.
11052
11053 2010-07-31  Bruno Haible  <bruno@clisp.org>
11054
11055         unistr/u*-strstr: Fix dependencies.
11056         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
11057         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
11058         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
11059
11060 2010-07-31  Bruno Haible  <bruno@clisp.org>
11061
11062         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
11063         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
11064         the beginning of the loop.
11065         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
11066         cases in 'switch' statement.
11067
11068         unistr/u8-strchr: Fix several bugs.
11069         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
11070         the string. When not found, return NULL, not a pointer near the end.
11071
11072         More tests for unistr/u8-strchr.
11073         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
11074         that the function does not read past the first occurrence of the byte
11075         being searched.
11076         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
11077         * tests/unistr/test-u16-strchr.c (main): New function.
11078         * tests/unistr/test-u32-strchr.c (main): New function.
11079
11080 2010-07-31  Bruno Haible  <bruno@clisp.org>
11081
11082         posix-modules: Ignore backup files of documentation files.
11083         * posix-modules: grep only through files named *.texi.
11084
11085 2010-07-31  Bruno Haible  <bruno@clisp.org>
11086
11087         symlinkat: Fix documentation.
11088         * doc/posix-functions/readlinkat.texi: Fix module name.
11089
11090 2010-07-31  Bruno Haible  <bruno@clisp.org>
11091
11092         fchownat: Replace also when chown has the trailing slash bug.
11093         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
11094         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
11095         introduced on 2010-04-10.
11096         Reported by Rainer Tammer.
11097
11098 2010-07-31  Bruno Haible  <bruno@clisp.org>
11099
11100         linkat: Work around AIX 7.1 bug.
11101         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
11102         whether linkat handles trailing slash correctly. If not, replace linkat
11103         and define LINKAT_TRAILING_SLASH_BUG.
11104         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
11105         check whether (fd1,file1) points to a directory if file1 or file2 ends
11106         in a slash. Code taken from lib/link.c.
11107         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
11108         Reported by Rainer Tammer.
11109
11110 2010-07-31  Bruno Haible  <bruno@clisp.org>
11111
11112         Correctly determine whether pow is available in libc on AIX 7 with xlc.
11113         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
11114         This disables an xlc optimization that was causing wrong test results.
11115         Reported by Rainer Tammer.
11116
11117 2010-07-31  Bruno Haible  <bruno@clisp.org>
11118
11119         iconv: Work around AIX 6.1..7.1 bug.
11120         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
11121         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
11122         cross-compiling, guess no on all versions of AIX.
11123         Reported by Rainer Tammer.
11124
11125 2010-07-31  Bruno Haible  <bruno@clisp.org>
11126
11127         readlink: Relax test a bit.
11128         * tests/test-readlink.h (test_readlink): Allow different errno value
11129         when readlink is called with a file name that ends in / and refers to
11130         a file.
11131         Suggested by Eric Blake.
11132         Reported by Rainer Tammer.
11133
11134 2010-07-31  Bruno Haible  <bruno@clisp.org>
11135
11136         copysign: Does not require -lm on glibc systems.
11137         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
11138         gl_COMMON_DOUBLE_MATHFUNC.
11139         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
11140
11141 2010-07-31  Bruno Haible  <bruno@clisp.org>
11142
11143         duplocale: Work around AIX 7.1 bug.
11144         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
11145         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
11146         * lib/duplocale.c (rpl_duplocale): Update comment.
11147         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
11148         Reported by Rainer Tammer.
11149
11150 2010-07-30  Bruno Haible  <bruno@clisp.org>
11151
11152         dirfd: Avoid link error on AIX 7.1.
11153         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
11154         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
11155         exist, set REPLACE_DIRFD.
11156         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
11157         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
11158         * doc/posix-functions/dirfd.texi: Update.
11159         Reported by Rainer Tammer.
11160
11161 2010-07-30  Eric Blake  <eblake@redhat.com>
11162
11163         strtod: next round of AIX fixes
11164         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
11165         exponent.
11166         * tests/test-strtod.c (main): Enhance tests.
11167         * doc/posix-functions/strtod.texi (strtod): Document next bug.
11168         Reported by Rainer Tammer.
11169
11170         futimens: fix configure check
11171         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
11172         Reported by Bruno Haible.
11173
11174 2010-07-30  Bruno Haible  <bruno@clisp.org>
11175
11176         getline: Update regarding AIX.
11177         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
11178         Reported by Rainer Tammer.
11179
11180 2010-07-30  Bruno Haible  <bruno@clisp.org>
11181
11182         wcwidth: Drop replacement on AIX 7.
11183         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
11184         AIX 7.
11185         Reported by Rainer Tammer.
11186
11187 2010-07-30  Bruno Haible  <bruno@clisp.org>
11188
11189         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
11190         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
11191         a 'char *'.
11192         Reported by Rainer Tammer.
11193
11194 2010-07-30  Bruno Haible  <bruno@clisp.org>
11195
11196         unlink: Update regarding AIX.
11197         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
11198         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
11199         Reported by Rainer Tammer.
11200
11201 2010-07-30  Bruno Haible  <bruno@clisp.org>
11202
11203         symlink: Update regarding AIX.
11204         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
11205         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
11206         Reported by Rainer Tammer.
11207
11208 2010-07-30  Bruno Haible  <bruno@clisp.org>
11209
11210         strndup: Update regarding AIX.
11211         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
11212         AIX 7.
11213         Reported by Rainer Tammer.
11214
11215 2010-07-30  Bruno Haible  <bruno@clisp.org>
11216
11217         stat: Update regarding AIX.
11218         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
11219         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
11220         Reported by Rainer Tammer.
11221
11222 2010-07-30  Bruno Haible  <bruno@clisp.org>
11223
11224         truncl: Fix autoconf test.
11225         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
11226         whether truncl works.
11227         Reported by Rainer Tammer.
11228
11229 2010-07-30  Bruno Haible  <bruno@clisp.org>
11230
11231         round: Update regarding AIX.
11232         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
11233         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
11234         Reported by Rainer Tammer.
11235
11236 2010-07-30  Bruno Haible  <bruno@clisp.org>
11237
11238         rename: Update regarding AIX.
11239         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
11240         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
11241         Reported by Rainer Tammer.
11242
11243 2010-07-30  Bruno Haible  <bruno@clisp.org>
11244
11245         printf.m4: Update regarding AIX.
11246         * m4/printf.m4: Update comments regarding AIX.
11247         Reported by Rainer Tammer.
11248
11249 2010-07-30  Bruno Haible  <bruno@clisp.org>
11250
11251         iconv: Update regarding AIX.
11252         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
11253         AIX 7.
11254         Reported by Rainer Tammer.
11255
11256 2010-07-30  Bruno Haible  <bruno@clisp.org>
11257
11258         getopt: Update regarding AIX.
11259         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
11260         no on AIX.
11261         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
11262         Reported by Rainer Tammer.
11263
11264 2010-07-30  Bruno Haible  <bruno@clisp.org>
11265
11266         ldexpl; Update regarding AIX.
11267         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
11268         on AIX 7.
11269         Reported by Rainer Tammer.
11270
11271 2010-07-30  Bruno Haible  <bruno@clisp.org>
11272
11273         frexpl: Update regarding AIX.
11274         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
11275         on AIX 7.
11276         Reported by Rainer Tammer.
11277
11278 2010-07-30  Bruno Haible  <bruno@clisp.org>
11279
11280         open, fopen: Update regarding AIX.
11281         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
11282         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11283         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
11284         * doc/posix-functions/fopen.texi: Likewise.
11285         Reported by Rainer Tammer.
11286
11287 2010-07-30  Bruno Haible  <bruno@clisp.org>
11288
11289         chown: Update doc regarding AIX.
11290         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
11291         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
11292         Reported by Rainer Tammer.
11293
11294 2010-07-30  Eric Blake  <eblake@redhat.com>
11295
11296         strtod: fix bug in replacement function on AIX
11297         * lib/strtod.c (strtod): Special case broken "0x" parse in
11298         underlying strtod.
11299         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
11300         * doc/posix-functions/strtod.texi (strtod): Likewise.
11301         Reported by Rainer Tammer.
11302
11303 2010-07-30  Bruno Haible  <bruno@clisp.org>
11304
11305         mbrlen: Fix cross-compilation guess for AIX.
11306         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
11307         guess. Leftover from 2008-12-22.
11308
11309 2010-07-30  Bruno Haible  <bruno@clisp.org>
11310
11311         mbrtowc: Fix cross-compilation guess for AIX.
11312         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
11313         guess. Leftover from 2008-12-21.
11314
11315 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
11316
11317         init.sh: work around trap limitation of some shells
11318         * tests/init.sh (setup_): Move exit trap outside of shell function.
11319
11320 2010-07-29  Eric Blake  <eblake@redhat.com>
11321
11322         strtod: aid debugging
11323         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
11324         understanding why strtod is rejected.
11325
11326 2010-07-28  Bruno Haible  <bruno@clisp.org>
11327
11328         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
11329         * lib/unistr/u8-chr.c: Include <string.h>.
11330         * tests/unistr/test-u8-chr.c: Likewise.
11331         * tests/unistr/test-u16-chr.c: Likewise.
11332         * tests/unistr/test-u32-chr.c: Likewise.
11333         * tests/unistr/test-u8-strchr.c: Likewise.
11334         * tests/unistr/test-u16-strchr.c: Likewise.
11335         * tests/unistr/test-u32-strchr.c: Likewise.
11336         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
11337         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
11338         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
11339         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
11340
11341 2010-07-28  Bruno Haible  <bruno@clisp.org>
11342
11343         Use spaces for indentation, not tabs.
11344         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
11345
11346 2010-07-27  Bruno Haible  <bruno@clisp.org>
11347
11348         mbspcasecmp: Fix function specification.
11349         * lib/string.in.h (mbspcasecmp): Fix specification comment.
11350         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
11351         Reported by Eric Blake <eblake@redhat.com>.
11352
11353 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
11354
11355         timespec: use cast and not conditional, as truncation isn't possible
11356         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
11357         instead of a conditional.  Comment about the situation in more detail.
11358         This undoes most of the 2009-10-29 patch.
11359
11360 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
11361
11362         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
11363         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
11364         * lib/unistr/u8-strchr.c: Likewise.
11365         * modules/unistr/u8-chr: Depend on memchr.
11366
11367         unistr/u*-strchr: add tests
11368         * modules/unistr/u8-strchr-tests: New file.
11369         * modules/unistr/u16-strchr-tests: New file.
11370         * modules/unistr/u32-strchr-tests: New file.
11371         * tests/unistr/test-strchr.h: New file.
11372         * tests/unistr/test-u8-strchr.c: New file.
11373         * tests/unistr/test-u16-strchr.c: New file.
11374         * tests/unistr/test-u32-strchr.c: New file.
11375
11376         unistr/u*-chr: test multibyte sequences more
11377         * tests/unistr/test-chr.h: Do complete testing of the characters in the
11378         test vector.
11379         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
11380         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
11381         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
11382
11383         unistr/u*-chr: test multibyte sequences
11384         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
11385
11386         unistr/u*-chr: prepare for multibyte tests
11387         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
11388         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
11389         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
11390         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
11391         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
11392         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
11393
11394 2010-07-18  Bruno Haible  <bruno@clisp.org>
11395
11396         unistr/u8-strchr: Optimize non-ASCII argument case.
11397         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
11398         because the first byte often matches anyway.
11399         Reported by Pádraig Brady <P@draigbrady.com>.
11400
11401 2010-07-15  Karl Berry  <karl@gnu.org>
11402
11403         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
11404
11405 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
11406
11407         getcwd: on Solaris, work better if ancestors are inaccessible
11408         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
11409         buffer and size, try again with a large buffer.  This works better
11410         on Solaris, since its getcwd succeeds even if the path to the root
11411         is inaccessible, and this is helpful in common cases such as .zfs
11412         hidden directories.  Problem reported by J Chapman Flack in
11413         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
11414         Use system getcwd if it's declared, not merely if it's partly
11415         working; use the partly-working test only to avoid needless effort
11416         if the system getcwd fails.
11417         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
11418         comment that was already obsolete and is now even more obsolete.
11419         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
11420         now might call strdup.
11421
11422 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
11423
11424         pthread: Add enough so that coreutils/src/sort.c compiles.
11425         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
11426         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
11427         gnulib. Include <sched.h> and <time.h>, as per POSIX.
11428         Include <sys/types.h>, in case it defines pthread_t.
11429         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
11430         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
11431         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
11432         (pthread_rwlockattr_t, pthread_spinlock_t):
11433         New typedefs, if HAVE_PTHREAD_T is not defined.
11434         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
11435         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
11436         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
11437         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
11438         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
11439         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
11440         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
11441         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
11442         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
11443         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
11444         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
11445         New macros.
11446         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
11447         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
11448         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
11449         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
11450         (pthread_spin_unlock): New dummy functions.
11451         (pthread_create): Return EAGAIN; don't set errno.
11452         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
11453         require AC_C_INLINE.
11454         * modules/pthread (Depends-on): Add sched, time.
11455         (pthread.h): Use AM_V_GEN.
11456
11457 2010-07-13  Bruno Haible  <bruno@clisp.org>
11458
11459         striconveh: Don't malloc memory if the result buffer is sufficient.
11460         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
11461         buffer if its size is sufficient.
11462         Reported by Ludovic Courtès <ludo@gnu.org>.
11463
11464 2010-07-13  Bruno Haible  <bruno@clisp.org>
11465
11466         strtod: Add safety check.
11467         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
11468
11469 2010-07-12  Bruno Haible  <bruno@clisp.org>
11470
11471         Unify tests that set gl_cv_func_ldexpl_no_libm.
11472         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
11473         gl_FUNC_LDEXPL.
11474         (gl_FUNC_LDEXPL): Invoke it.
11475         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11476
11477 2010-07-12  Bruno Haible  <bruno@clisp.org>
11478
11479         Unify tests that set gl_cv_func_ldexp_no_libm.
11480         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
11481         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
11482         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
11483         (configure.ac): Simply invoke gl_FUNC_LDEXP.
11484         * modules/strtod (Files): Add m4/ldexp.m4.
11485
11486 2010-07-12  Bruno Haible  <bruno@clisp.org>
11487
11488         Unify tests that set gl_cv_func_frexpl_no_libm.
11489         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
11490         gl_FUNC_FREXPL_NO_LIBM.
11491         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
11492         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11493
11494 2010-07-12  Bruno Haible  <bruno@clisp.org>
11495
11496         Unify tests that set gl_cv_func_frexp_no_libm.
11497         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
11498         gl_FUNC_FREXP_NO_LIBM.
11499         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
11500         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11501
11502 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11503
11504         memcoll: clarify sizes versus lengths, document better, and tweak perf
11505         * lib/memcoll.c (strcoll_loop, memcoll0):
11506         Improve quality of descriptive comments.  Name variables
11507         consistently as to whether they are lengths (which do not include
11508         terminating null) versus sizes (which do).
11509         * lib/xmemcoll.c (xmemcoll0): Likewise.
11510         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
11511         returned when s1size == 0; this is easier to compile and saves
11512         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
11513
11514 2010-07-12  Bruno Haible  <bruno@clisp.org>
11515
11516         Tests for module '_Exit'.
11517         * modules/_Exit-tests: New file.
11518         * tests/test-_Exit.sh: New file.
11519         * tests/test-_Exit.c: New file.
11520
11521         New module '_Exit'.
11522         * lib/stdlib.in.h (__attribute__): New macro.
11523         (_Exit): New declaration.
11524         * lib/_Exit.c: New file.
11525         * m4/_Exit.m4: New file.
11526         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
11527         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
11528         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
11529         * modules/_Exit: New file.
11530         * tests/test-stdlib-c++.cc (_Exit): Check signature.
11531         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
11532
11533 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11534
11535         strtod: make it more-accurate typically, and don't require libm
11536         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
11537         Include limits.h.  Don't include string.h.
11538         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
11539         (locale_isspace): New function, so that no casts are needed to
11540         check whether *s is a space.
11541         (ldexp): Provide an unused dummy if not available.
11542         (scale_radix_exp, parse_number, underlying_strtod): New functions.
11543         (strtod): Use them.  This implementation prefers to use the
11544         underlying strtod if available, falling back on our own code
11545         only to fix known bugs.  This is more likely to produce an
11546         accurate result.  Also, it avoids the use of libm functions.
11547         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
11548         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
11549         was absent, but it caused a test failure with coreutils.
11550         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
11551         with libm.
11552         * modules/strtod (Makefile.am, Link): libm is no longer needed.
11553         * modules/strtod-tests (Makefile.am): Likewise.
11554
11555 2010-07-11  Pádraig Brady  <P@draigBrady.com>
11556             Bruno Haible  <bruno@clisp.org>
11557
11558         unistr/u8-strchr: Optimize ASCII argument case.
11559         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
11560
11561 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11562
11563         (x)memcoll: minor tweaks
11564         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
11565         is after the type that it qualifies.
11566         (memcoll0): Likewise.
11567         * lib/memcoll.h (memcoll0): Likewise.
11568         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
11569         * lib/xmemcoll.h (xmemcoll0): Likewise.
11570         * lib/memcoll.c (memcoll0): Correct the comment.  This function
11571         differs from memcoll in that the NUL byte is part of the argument.
11572         Omit the abort-checks, as performance is a real issue here.  Plus,
11573         the checks were wrong anyway (an off-by-one error).  Omit local
11574         variable 'diff', as it's a bit clearer that way.
11575         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
11576         no longer needed.
11577
11578 2010-07-08  Chen Guo <chenguo4@yahoo.com>
11579
11580         (x)memcoll: speedup when input is known to be NUL delimited
11581         * lib/memcoll.c: Include stdlib.
11582         (memcoll0): New function.
11583         (strcoll_loop): New function, refactored for use in both memcoll
11584         and memcoll0.
11585         * lib/memcoll.h (memcoll0): Add prototype.
11586         * lib/xmemcoll.c (xmemcoll0): New function.
11587         (collate_error): New function, refactored for use in both xmemcoll
11588         and xmemcoll0.
11589         * lib/xmemcoll.h (xmemcoll0): Add prototype.
11590         * m4/memcoll.m4: add inline invocation.
11591
11592 2010-07-06  Pádraig Brady  <P@draigBrady.com>
11593
11594         * build-aux/bootstrap: Remove any local translations
11595         from the translation project synchronization directory,
11596         so that local only translations are not distributed.
11597
11598 2010-07-04  Bruno Haible  <bruno@clisp.org>
11599
11600         fsusage: Clarify which code applies to which platforms.
11601         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
11602         platform.
11603         * lib/fsusage.c (get_fs_usage): Likewise.
11604
11605 2010-07-04  Bruno Haible  <bruno@clisp.org>
11606
11607         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
11608         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
11609         Reported by Martin Lambers <marlam@marlam.de>.
11610
11611 2010-07-04  Jim Meyering  <meyering@redhat.com>
11612
11613         hash: once again explicitly disallow insertion of NULL
11614         * lib/hash.c (hash_insert0): Reinstate just-removed test:
11615         inserting a NULL pointer cannot work with these functions.
11616         Add a comment with details.
11617         This reverts part of the 2010-07-01 commit, 5bef1a35
11618         "hash: extend module to deal with non-pointer keys".
11619
11620 2010-07-01  Bruno Haible  <bruno@clisp.org>
11621
11622         stdbool: Update doc.
11623         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
11624         Info from Christian Weisgerber <naddy@mips.inka.de>.
11625
11626 2010-07-01  Jim Meyering  <meyering@redhat.com>
11627
11628         hash: extend module to deal with non-pointer keys
11629         * lib/hash.c (hash_insert0): New interface, much like hash_insert
11630         but that allows insertion of non-pointer entries.
11631         Do not disallow an ENTRY value of NULL.
11632         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
11633         * lib/hash.h (hash_insert0): Declare.
11634
11635 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11636
11637         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
11638         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
11639         not present (i.e. with autoconf 2.59 and when using gettextize, not
11640         gnulib), require AC_GNU_SOURCE instead.
11641
11642 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
11643
11644         idpriv-drop: Fix tests.
11645         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
11646         not to the test-idpriv-droptemp program.
11647
11648 2010-06-29  Bruno Haible  <bruno@clisp.org>
11649
11650         string: Fix syntax error with g++ 2.96.
11651         * lib/string.in.h (__pure__): Remove definition.
11652         (_GL_ATTRIBUTE_PURE): New macro.
11653         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
11654         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
11655         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11656
11657 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
11658
11659         unitypes: Fix bug introduced on 2010-05-18.
11660         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
11661
11662 2010-06-22  Eric Blake  <eblake@redhat.com>
11663
11664         memmem: slight optimization
11665         * lib/str-two-way.h (critical_factorization): Update comments.
11666         Reduce work during factorization phase.
11667         Reported by Carlos Bueno <carlos@bueno.org>.
11668
11669 2010-06-21  Bruno Haible  <bruno@clisp.org>
11670
11671         Fix HAVE_CALLOC_POSIX misnomer.
11672         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
11673         !HAVE_CALLOC_POSIX.
11674         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
11675         HAVE_CALLOC_POSIX.
11676         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
11677         instead of HAVE_CALLOC_POSIX.
11678         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
11679         HAVE_CALLOC_POSIX.
11680
11681         Use modern idiom for calloc() replacement.
11682         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
11683         AC_FUNC_CALLOC.
11684         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
11685         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
11686         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11687         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
11688         (gl_REPLACE_CALLOC): New macro.
11689
11690 2010-06-21  Bruno Haible  <bruno@clisp.org>
11691
11692         Fix HAVE_REALLOC_POSIX misnomer.
11693         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
11694         !HAVE_REALLOC_POSIX.
11695         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
11696         HAVE_REALLOC_POSIX.
11697         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
11698         instead of HAVE_REALLOC_POSIX.
11699         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
11700         HAVE_REALLOC_POSIX.
11701
11702         Use modern idiom for realloc() replacement.
11703         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
11704         AC_FUNC_REALLOC.
11705         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
11706         Autoconf's AC_FUNC_REALLOC.
11707         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11708         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
11709         (gl_REPLACE_REALLOC): New macro.
11710         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11711
11712 2010-06-21  Bruno Haible  <bruno@clisp.org>
11713
11714         Fix HAVE_MALLOC_POSIX misnomer.
11715         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
11716         !HAVE_MALLOC_POSIX.
11717         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
11718         HAVE_MALLOC_POSIX.
11719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
11720         instead of HAVE_MALLOC_POSIX.
11721         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
11722         HAVE_MALLOC_POSIX.
11723
11724         Use modern idiom for malloc() replacement.
11725         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
11726         AC_FUNC_MALLOC.
11727         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
11728         Autoconf's AC_FUNC_MALLOC.
11729         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11730         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
11731         (gl_REPLACE_MALLOC): New macro.
11732         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11733
11734 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
11735
11736         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
11737         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
11738         This macro takes 3 arguments, not 4.
11739
11740 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
11741
11742         ipv6: fix detection under mingw
11743         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
11744         in6_addr.
11745
11746 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
11747
11748         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
11749         that strtod() works when cross-compiling to a glibc version known
11750         to work.
11751
11752 2010-06-15  Bruno Haible  <bruno@clisp.org>
11753
11754         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
11755
11756 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
11757
11758         select: Correct timeout.
11759         * lib/select.c (rpl_select): Compute wait_timeout correctly.
11760
11761 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11762
11763         git-version-gen: init shell var to avoid env var influence
11764         * build-aux/git-version-gen (v): Init shell var to empty.
11765
11766 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
11767
11768         priv-set: Don't assume that priv.h exists merely because getppriv does.
11769         See Jan Andersen's bug report about AIX 5L in
11770         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
11771         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
11772         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
11773         * lib/priv-set.h: Likewise.
11774         * tests/test-priv-set.c: Likewise.
11775
11776 2010-06-13  Bruno Haible  <bruno@clisp.org>
11777
11778         relocatable: Make it easier to test whether to install wrappers.
11779         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
11780         RELOCATABLE_VIA_WRAPPER.
11781
11782 2010-06-13  Bruno Haible  <bruno@clisp.org>
11783
11784         gnulib-tool: Display specified modules and dependencies differently.
11785         * gnulib-tool (func_show_module_list): New function.
11786         (func_import, func_create_testdir): Invoke it.
11787         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11788
11789 2010-06-13  Bruno Haible  <bruno@clisp.org>
11790
11791         gnulib-tool: Align code of func_import and func_create_testdir.
11792         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
11793         specified_modules.
11794
11795 2010-06-12  Jim Meyering  <meyering@redhat.com>
11796
11797         test-inttostr: avoid spurious failure on Solaris 9
11798         * tests/test-inttostr.c (main): Skip the test when snprintf fails
11799         to accept "%ju".  Reported by Bruno Haible.
11800
11801 2010-06-11  Jim Meyering  <meyering@redhat.com>
11802
11803         test-sys_socket: mark variables as used more readably
11804         * tests/test-sys_socket.c (main): Mark otherwise unused variables
11805         as "used" explicitly via (void) statement casts.  This is more
11806         readable than using them in an artificial return expression.
11807         Suggestion from Bruno Haible.
11808
11809 2010-06-11  Bruno Haible  <bruno@clisp.org>
11810
11811         Avoid some more warnings from "gcc -Wwrite-strings".
11812         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
11813         to 'const char *'.
11814         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
11815         * tests/test-c-strcasestr.c (main): Likewise.
11816         * tests/test-mbscasestr1.c (main): Likewise.
11817         * tests/test-mbscasestr2.c (main): Likewise.
11818         * tests/test-memmem.c (main): Likewise.
11819         * tests/test-strstr.c (main): Likewise.
11820         * tests/test-strcasestr.c (main): Likewise.
11821
11822 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11823
11824         init.sh: change framework_failure_ to fail with status 99, not 1
11825         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
11826         automake's parallel-tests rule that this is an unexpected failure,
11827         even if the test is listed in XFAIL_TESTS.
11828
11829 2010-06-11  Jim Meyering  <meyering@redhat.com>
11830
11831         test-inttostr: avoid warnings about 4-6KB literal strings
11832         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
11833         Include "macros.h", for its definition of ASSERT.
11834         (CK): s/assert/ASSERT/
11835         * modules/inttostr-tests (Files): Add macros.h.
11836
11837         init.sh: don't use $ME_ or skip_ before they are defined
11838         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
11839         their first uses.  Also hoist their companions: warn_, fail_,
11840         framework_failure_, $stderr_fileno.  Prompted by a patch from
11841         Stefano Lattarini.
11842
11843         test-sys_socket: avoid set-but-not-used warnings from gcc
11844         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
11845         avoid warning about set-but-not-used variables.
11846
11847         test-xvasprintf: avoid 'const' discard warnings
11848         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
11849         "const" when assigning from literal strings.
11850         (test_xasprintf): Add "void" in function argument list to placate
11851         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
11852
11853         tests: avoid compilation warnings in argmatch and exclude tests...
11854         in packages that define ARGMATCH_DIE_DECL, like coreutils.
11855         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
11856         Since it always exits, declare with the "noreturn" attribute.
11857         * tests/test-argmatch.c: Likewise.
11858
11859         tests: avoid 'const' discard warnings in mbsstr tests
11860         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
11861         * tests/test-mbsstr2.c (main): Likewise.
11862
11863         test-verify: avoid warning from gcc's -Wmissing-declarations
11864         * tests/test-verify.c (function): Declare to be static.
11865
11866         test-inttostr.c: include <string.h> for use of strcmp
11867         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
11868
11869         test-linkat: avoid failed assertion on "other" architectures
11870         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
11871         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
11872         sparc: https://bugs.launchpad.net/bugs/591968
11873
11874 2010-06-11  Jim Meyering  <meyering@redhat.com>
11875
11876         printf.m4: avoid autoconf's "Expanded Before Required" warning
11877         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
11878         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
11879         autoconf warning.
11880
11881 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
11882
11883         Replacement header templates are now named with ".in", not "_".
11884         * doc/gnulib-intro.texi: Correct.
11885
11886 2010-06-10  Jim Meyering  <meyering@redhat.com>
11887
11888         inttostr-tests: depend on snprintf, not snprintf-posix
11889         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
11890         snprintf-posix, to avoid this aclocal failure:
11891           missing file gnulib-tests/vasnprintf.c
11892           configure.ac:45: error: expected source file, required through \
11893           AC_LIBSOURCES, not found
11894
11895 2010-06-10  Jim Meyering  <meyering@redhat.com>
11896
11897         inttostr: add a new function, inttostr, and tests
11898         The namesake function was not available.  The existence of the
11899         template file, inttostr.c makes its addition nontrivial.
11900         * lib/anytostr.c: Rename from inttostr.c.
11901         (anytostr): Rename from inttostr.
11902         * lib/inttostr.c: New file.
11903         * modules/inttostr (Files): Add anytostr.c.
11904         (Makefile.am): Set lib_SOURCES instead of ...
11905         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
11906         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
11907         * lib/offtostr.c: Likewise.
11908         * lib/uinttostr.c: Likewise.
11909         * lib/umaxtostr.c: Likewise.
11910         * modules/inttostr-tests: New file.
11911         * tests/test-inttostr.c: New file.  Test these functions.
11912
11913 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
11914             Bruno Haible  <bruno@clisp.org>
11915
11916         Add "Extending Gnulib" chapter to manual.
11917         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11918         chapter.
11919         (Extending Gnulib): New chapter.
11920         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11921         chapter.
11922
11923 2010-06-09  Bruno Haible  <bruno@clisp.org>
11924
11925         Avoid relocwrapper link errors due to gnulib replacement functions.
11926         * lib/areadlink.c: Use the system's malloc, realloc functions.
11927         (areadlink): Set errno to ENOMEM explicitly.
11928         * modules/areadlink (Depends-on): Remove malloc-posix.
11929         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11930
11931 2010-06-09  Bruno Haible  <bruno@clisp.org>
11932
11933         Avoid relocwrapper link errors due to gnulib replacement functions.
11934         * lib/canonicalize-lgpl.c: Use the system's malloc function.
11935         * lib/malloca.c: Likewise.
11936         * lib/relocatable.c: Likewise.
11937         * lib/progreloc.c: Use the system's malloc, sprintf functions.
11938         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
11939         * lib/setenv.c: Use the system's malloc, realloc functions.
11940         * lib/strerror.c: Use the system's sprintf function.
11941         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11942
11943 2010-06-04  Bruno Haible  <bruno@clisp.org>
11944
11945         Prefer documented low-level autoconf macro names.
11946         * m4/lib-link.m4: Use m4_translit instead of translit.
11947         * m4/environ.m4: Likewise.
11948         * m4/mathfunc.m4: Likewise.
11949         * m4/onceonly.m4: Likewise.
11950         * m4/stdint.m4: Likewise.
11951         Suggested by Eric Blake.
11952
11953 2010-06-04  Martin Lambers  <marlam@marlam.de>
11954             Bruno Haible  <bruno@clisp.org>
11955
11956         havelib: Allow library names with '+' characters.
11957         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11958         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
11959
11960 2010-06-09  Bruno Haible  <bruno@clisp.org>
11961
11962         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
11963         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
11964         realloc failed.
11965
11966 2010-06-08  Peter Simons  <simons@cryp.to>
11967
11968         maint.mk: make the news-check rule more configurable
11969         * top/maint.mk (news-check-lines-spec): New variable.
11970         (news-check): Use "sed -n 1,10p" in place of "head".
11971
11972 2010-06-07  Jim Meyering  <meyering@redhat.com>
11973
11974         do-release-commit-and-tag: fix typo in --help
11975         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
11976
11977         regex: avoid new dead-code warning with gcc-4.6.0
11978         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
11979         if-block containing a while-loop.  It's been unused for at least
11980         5 years.
11981
11982 2010-06-05  Bruno Haible  <bruno@clisp.org>
11983
11984         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
11985         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
11986
11987 2010-06-04  Bruno Haible  <bruno@clisp.org>
11988
11989         Update to GNU gettext 0.18.1.
11990         * modules/gettext (configure.ac): Require gettext infrastructure from
11991         version 0.18.1.
11992
11993 2010-06-03  Bruno Haible  <bruno@clisp.org>
11994
11995         Don't use AC_LIBOBJ with file names in subdirectories.
11996         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
11997         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
11998         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
11999         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
12000         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
12001         gl_LIBUNISTRING_LIBSOURCE.
12002         (Makefile.am): Augment lib_SOURCES here, conditionally.
12003         * NEWS: Drop requirement for Automake option 'subdir-objects'.
12004
12005 2010-06-03  Bruno Haible  <bruno@clisp.org>
12006
12007         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
12008         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
12009         expansion does not end with a newline.
12010         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
12011         unnecessary newline.
12012
12013 2010-06-03  Bruno Haible  <bruno@clisp.org>
12014
12015         Reduce dependencies.
12016         * tests/test-quotearg.h: New file, extracted from
12017         tests/test-quotearg.c.
12018         * tests/test-quotearg-simple.c: New file, extracted from
12019         tests/test-quotearg.c.
12020         * tests/test-quotearg.c: Don't include <ctype.h>.
12021         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
12022         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
12023         use_quote_double_quotes, use_quotearg_colon): Moved to
12024         tests/test-quotearg.h.
12025         (results_g, flag_results, custom_quotes, custom_results): Moved
12026         to tests/test-quotearg-simple.c.
12027         (main): Moved the part that does not depend on gettext to
12028         tests/test-quotearg-simple.c. Return 77 if the test cannot be
12029         performed.
12030         * modules/quotearg-simple: New file.
12031         * modules/quotearg-simple-tests: New file.
12032         * modules/quotearg (Depends-on): Add quotearg-simple.
12033         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
12034         (Files): Add tests/test-quotearg.h.
12035         Reported by Paolo Bonzini.
12036
12037 2010-06-03  Bruno Haible  <bruno@clisp.org>
12038
12039         Reduce dependencies.
12040         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
12041
12042 2010-06-03  Bruno Haible  <bruno@clisp.org>
12043
12044         time: Undefine more broken macros.
12045         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
12046         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
12047         Reported by Eric Blake.
12048
12049 2010-06-03  Bruno Haible  <bruno@clisp.org>
12050
12051         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
12052         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
12053         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
12054         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
12055         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
12056         Reported by Ludovic Courtès <ludo@gnu.org>.
12057
12058 2010-06-02  Eric Blake  <eblake@redhat.com>
12059
12060         time: work with mingw + pthreads-win32 library
12061         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
12062         if timespec is defined only in pthread.h.
12063         * modules/time (Makefile.am): Substitute it.
12064         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
12065         <pthread.h>, when needed.
12066         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
12067         from the library.
12068
12069 2010-05-31  Bruno Haible  <bruno@clisp.org>
12070
12071         Avoid expanding two macros in the wrong order.
12072         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
12073         gl_LIBUNISTRING if it is defined.
12074         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
12075         autoconf >= 2.64.
12076         Reported by Ludovic Courtès <ludo@gnu.org>.
12077
12078 2010-05-27  Jim Meyering  <meyering@redhat.com>
12079
12080         maint.mk: also prohibit "#undef" of always-defined symbols
12081         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
12082         Allow more than one space before the symbol name.
12083         (sc_prohibit_always-defined_macros): Use grep's -E, now that
12084         the regexp uses alternation.
12085
12086 2010-05-26  Eric Blake  <eblake@redhat.com>
12087
12088         maint.mk: avoid echo -e
12089         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
12090         Convert all uses of echo -* to printf.
12091         Reported by Matthias Bolte.
12092
12093 2010-05-25  Bruno Haible  <bruno@clisp.org>
12094
12095         Update to GNU gettext 0.18, part 2.
12096         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
12097         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
12098
12099 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12100
12101         Add missing include in test-pwrite.c.
12102         * tests/test-pwrite.c: Include string.h, for strcmp.
12103
12104 2010-05-24  Bruno Haible  <bruno@clisp.org>
12105
12106         * NEWS: Mention requirement for Automake option 'subdir-objects'.
12107
12108 2010-05-24  Bruno Haible  <bruno@clisp.org>
12109
12110         Don't use conversion with transliteration in u{8,16,32}_strcoll.
12111         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
12112         iconveh_error argument.
12113         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
12114         U_STRCONV_TO_LOCALE.
12115         * lib/unistr/u16-strcoll.c: Likewise.
12116         * lib/unistr/u32-strcoll.c: Likewise.
12117         * modules/unistr/u8-strcoll (Depends-on): Add
12118         uniconv/u8-strconv-to-enc, localcharset. Remove
12119         uniconv/u8-strconv-to-locale.
12120         (configure.ac): Bump version number.
12121         * modules/unistr/u16-strcoll (Depends-on): Add
12122         uniconv/u16-strconv-to-enc, localcharset. Remove
12123         uniconv/u16-strconv-to-locale.
12124         (configure.ac): Bump version number.
12125         * modules/unistr/u32-strcoll (Depends-on): Add
12126         uniconv/u32-strconv-to-enc, localcharset. Remove
12127         uniconv/u32-strconv-to-locale.
12128         (configure.ac): Bump version number.
12129
12130 2010-05-24  Bruno Haible  <bruno@clisp.org>
12131
12132         Avoid a test failure on NetBSD 5.0.
12133         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
12134         an iconv() bug.
12135
12136 2010-05-24  Bruno Haible  <bruno@clisp.org>
12137
12138         Adjust #include directive style.
12139         * modules/regex (Includes): Recommend to write <regex.h>.
12140
12141 2010-05-24  Bruno Haible  <bruno@clisp.org>
12142
12143         regex: Don't require alloca.
12144         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
12145         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
12146         only inside if (0).
12147
12148 2010-05-23  Jim Meyering  <meyering@redhat.com>
12149
12150         test-renameat.c: include <sys/stat.h>
12151         * tests/test-renameat.c: Include <sys/stat.h>; required for
12152         definition of S_IS* macros.
12153
12154 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
12155
12156         Update maintainer documentation for 'relocatable-prog' module.
12157         * doc/relocatable-maint.texi: Update.
12158         Comments by Bruno Haible.
12159
12160 2010-05-23  Bruno Haible  <bruno@clisp.org>
12161
12162         git-merge-changelog: Enable --split-merged-entry by default.
12163         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
12164         (usage): Don't mention this option any more.
12165         Reported by Ralf Wildenhues.
12166
12167 2010-05-23  Jim Meyering  <meyering@redhat.com>
12168
12169         test-pwrite: do not leave behind a test file named "out"
12170         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
12171         The trivial-looking use of init.sh is really necessary.
12172         It ensures that the temporary file, "out", is created in
12173         a temporary directory, and removed upon termination.
12174         * tests/test-pwrite.sh: Re-add file.
12175         * modules/pwrite-tests: Reference it.
12176
12177 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12178
12179         Fix output redirection buglet in init.sh.
12180         * tests/init.sh: Fix redirection of stderr.
12181
12182 2010-05-20  Simon Josefsson  <simon@josefsson.org>
12183
12184         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
12185
12186 2010-05-17  Simon Josefsson  <simon@josefsson.org>
12187
12188         * modules/valgrind-tests: New file.
12189         * m4/valgrind-tests.m4: New file.
12190         * doc/valgrind-tests.texi: New file.
12191         * doc/gnulib.texi (Running self-tests under valgrind): New
12192         section.
12193
12194 2010-05-19  Bruno Haible  <bruno@clisp.org>
12195
12196         Clean up dead code in recent commit.
12197         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
12198         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
12199         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
12200         Suggested by Paolo Bonzini.
12201
12202 2010-05-19  Bruno Haible  <bruno@clisp.org>
12203
12204         Avoid valgrind error reports from libunistring.
12205         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
12206         * modules/libunistring (Files): Add it.
12207         * modules/libunistring-optional (Files): Likewise.
12208
12209 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
12210             Bruno Haible  <bruno@clisp.org>
12211
12212         New module 'libunistring-optional'.
12213         * modules/libunistring-optional: New file.
12214         * m4/libunistring-base.m4: New file.
12215         * m4/libunistring-optional.m4: New file.
12216         * lib/unicase.in.h: Renamed from lib/unicase.h.
12217         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
12218         * lib/unictype.in.h: Renamed from lib/unictype.h.
12219         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
12220         * lib/uniname.in.h: Renamed from lib/uniname.h.
12221         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
12222         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
12223         * lib/unistr.in.h: Renamed from lib/unistr.h.
12224         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
12225         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
12226         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
12227         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
12228         gl_LIBUNISTRING. If the library was found, determine the installed
12229         version and set LIBUNISTRING_VERSION.
12230         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
12231         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
12232         handle a configuration option --with-included-libunistring.
12233         * modules/libunistring (Files): Add m4/absolute-header.m4.
12234         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
12235         Add m4/libunistring-base.m4.
12236         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12237         (Makefile.am): Build unicase.h from unicase.in.h.
12238         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
12239         Add m4/libunistring-base.m4.
12240         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12241         (Makefile.am): Build uniconv.h from uniconv.in.h.
12242         * modules/unictype/base (Files): Use unictype.in.h instead of
12243         unictype.h. Add m4/libunistring-base.m4.
12244         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12245         (Makefile.am): Build unictype.h from unictype.in.h.
12246         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
12247         Add m4/libunistring-base.m4.
12248         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12249         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
12250         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
12251         Add m4/libunistring-base.m4.
12252         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12253         (Makefile.am): Build uniname.h from uniname.in.h.
12254         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
12255         Add m4/libunistring-base.m4.
12256         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12257         (Makefile.am): Build uninorm.h from uninorm.in.h.
12258         * modules/unistdio/base (Files): Use unistdio.in.h instead of
12259         unistdio.h. Add m4/libunistring-base.m4.
12260         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12261         (Makefile.am): Build unistdio.h from unistdio.in.h.
12262         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
12263         Add m4/libunistring-base.m4.
12264         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12265         (Makefile.am): Build unistr.h from unistr.in.h.
12266         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
12267         Add m4/libunistring-base.m4.
12268         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12269         (Makefile.am): Build unitypes.h from unitypes.in.h.
12270         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
12271         Add m4/libunistring-base.m4.
12272         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12273         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
12274         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
12275         uniwidth.h. Add m4/libunistring-base.m4.
12276         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12277         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
12278         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
12279         instead of augmenting lib_SOURCES.
12280         * modules/unicase/empty-suffix-context: Likewise.
12281         * modules/unicase/locale-language: Likewise.
12282         * modules/unicase/tolower: Likewise.
12283         * modules/unicase/totitle: Likewise.
12284         * modules/unicase/toupper: Likewise.
12285         * modules/unicase/u8-casecmp: Likewise.
12286         * modules/unicase/u8-casecoll: Likewise.
12287         * modules/unicase/u8-casefold: Likewise.
12288         * modules/unicase/u8-casexfrm: Likewise.
12289         * modules/unicase/u8-ct-casefold: Likewise.
12290         * modules/unicase/u8-ct-tolower: Likewise.
12291         * modules/unicase/u8-ct-totitle: Likewise.
12292         * modules/unicase/u8-ct-toupper: Likewise.
12293         * modules/unicase/u8-is-cased: Likewise.
12294         * modules/unicase/u8-is-casefolded: Likewise.
12295         * modules/unicase/u8-is-lowercase: Likewise.
12296         * modules/unicase/u8-is-titlecase: Likewise.
12297         * modules/unicase/u8-is-uppercase: Likewise.
12298         * modules/unicase/u8-prefix-context: Likewise.
12299         * modules/unicase/u8-suffix-context: Likewise.
12300         * modules/unicase/u8-tolower: Likewise.
12301         * modules/unicase/u8-totitle: Likewise.
12302         * modules/unicase/u8-toupper: Likewise.
12303         * modules/unicase/u16-casecmp: Likewise.
12304         * modules/unicase/u16-casecoll: Likewise.
12305         * modules/unicase/u16-casefold: Likewise.
12306         * modules/unicase/u16-casexfrm: Likewise.
12307         * modules/unicase/u16-ct-casefold: Likewise.
12308         * modules/unicase/u16-ct-tolower: Likewise.
12309         * modules/unicase/u16-ct-totitle: Likewise.
12310         * modules/unicase/u16-ct-toupper: Likewise.
12311         * modules/unicase/u16-is-cased: Likewise.
12312         * modules/unicase/u16-is-casefolded: Likewise.
12313         * modules/unicase/u16-is-lowercase: Likewise.
12314         * modules/unicase/u16-is-titlecase: Likewise.
12315         * modules/unicase/u16-is-uppercase: Likewise.
12316         * modules/unicase/u16-prefix-context: Likewise.
12317         * modules/unicase/u16-suffix-context: Likewise.
12318         * modules/unicase/u16-tolower: Likewise.
12319         * modules/unicase/u16-totitle: Likewise.
12320         * modules/unicase/u16-toupper: Likewise.
12321         * modules/unicase/u32-casecmp: Likewise.
12322         * modules/unicase/u32-casecoll: Likewise.
12323         * modules/unicase/u32-casefold: Likewise.
12324         * modules/unicase/u32-casexfrm: Likewise.
12325         * modules/unicase/u32-ct-casefold: Likewise.
12326         * modules/unicase/u32-ct-tolower: Likewise.
12327         * modules/unicase/u32-ct-totitle: Likewise.
12328         * modules/unicase/u32-ct-toupper: Likewise.
12329         * modules/unicase/u32-is-cased: Likewise.
12330         * modules/unicase/u32-is-casefolded: Likewise.
12331         * modules/unicase/u32-is-lowercase: Likewise.
12332         * modules/unicase/u32-is-titlecase: Likewise.
12333         * modules/unicase/u32-is-uppercase: Likewise.
12334         * modules/unicase/u32-prefix-context: Likewise.
12335         * modules/unicase/u32-suffix-context: Likewise.
12336         * modules/unicase/u32-tolower: Likewise.
12337         * modules/unicase/u32-totitle: Likewise.
12338         * modules/unicase/u32-toupper: Likewise.
12339         * modules/unicase/ulc-casecmp: Likewise.
12340         * modules/unicase/ulc-casecoll: Likewise.
12341         * modules/unicase/ulc-casexfrm: Likewise.
12342         * modules/uniconv/u8-conv-from-enc: Likewise.
12343         * modules/uniconv/u8-conv-to-enc: Likewise.
12344         * modules/uniconv/u8-strconv-from-enc: Likewise.
12345         * modules/uniconv/u8-strconv-from-locale: Likewise.
12346         * modules/uniconv/u8-strconv-to-enc: Likewise.
12347         * modules/uniconv/u8-strconv-to-locale: Likewise.
12348         * modules/uniconv/u16-conv-from-enc: Likewise.
12349         * modules/uniconv/u16-conv-to-enc: Likewise.
12350         * modules/uniconv/u16-strconv-from-enc: Likewise.
12351         * modules/uniconv/u16-strconv-from-locale: Likewise.
12352         * modules/uniconv/u16-strconv-to-enc: Likewise.
12353         * modules/uniconv/u16-strconv-to-locale: Likewise.
12354         * modules/uniconv/u32-conv-from-enc: Likewise.
12355         * modules/uniconv/u32-conv-to-enc: Likewise.
12356         * modules/uniconv/u32-strconv-from-enc: Likewise.
12357         * modules/uniconv/u32-strconv-from-locale: Likewise.
12358         * modules/uniconv/u32-strconv-to-enc: Likewise.
12359         * modules/uniconv/u32-strconv-to-locale: Likewise.
12360         * modules/unictype/bidicategory-byname: Likewise.
12361         * modules/unictype/bidicategory-name: Likewise.
12362         * modules/unictype/bidicategory-of: Likewise.
12363         * modules/unictype/bidicategory-test: Likewise.
12364         * modules/unictype/block-list: Likewise.
12365         * modules/unictype/block-test: Likewise.
12366         * modules/unictype/category-C: Likewise.
12367         * modules/unictype/category-Cc: Likewise.
12368         * modules/unictype/category-Cf: Likewise.
12369         * modules/unictype/category-Cn: Likewise.
12370         * modules/unictype/category-Co: Likewise.
12371         * modules/unictype/category-Cs: Likewise.
12372         * modules/unictype/category-L: Likewise.
12373         * modules/unictype/category-Ll: Likewise.
12374         * modules/unictype/category-Lm: Likewise.
12375         * modules/unictype/category-Lo: Likewise.
12376         * modules/unictype/category-Lt: Likewise.
12377         * modules/unictype/category-Lu: Likewise.
12378         * modules/unictype/category-M: Likewise.
12379         * modules/unictype/category-Mc: Likewise.
12380         * modules/unictype/category-Me: Likewise.
12381         * modules/unictype/category-Mn: Likewise.
12382         * modules/unictype/category-N: Likewise.
12383         * modules/unictype/category-Nd: Likewise.
12384         * modules/unictype/category-Nl: Likewise.
12385         * modules/unictype/category-No: Likewise.
12386         * modules/unictype/category-P: Likewise.
12387         * modules/unictype/category-Pc: Likewise.
12388         * modules/unictype/category-Pd: Likewise.
12389         * modules/unictype/category-Pe: Likewise.
12390         * modules/unictype/category-Pf: Likewise.
12391         * modules/unictype/category-Pi: Likewise.
12392         * modules/unictype/category-Po: Likewise.
12393         * modules/unictype/category-Ps: Likewise.
12394         * modules/unictype/category-S: Likewise.
12395         * modules/unictype/category-Sc: Likewise.
12396         * modules/unictype/category-Sk: Likewise.
12397         * modules/unictype/category-Sm: Likewise.
12398         * modules/unictype/category-So: Likewise.
12399         * modules/unictype/category-Z: Likewise.
12400         * modules/unictype/category-Zl: Likewise.
12401         * modules/unictype/category-Zp: Likewise.
12402         * modules/unictype/category-Zs: Likewise.
12403         * modules/unictype/category-and: Likewise.
12404         * modules/unictype/category-and-not: Likewise.
12405         * modules/unictype/category-byname: Likewise.
12406         * modules/unictype/category-name: Likewise.
12407         * modules/unictype/category-none: Likewise.
12408         * modules/unictype/category-of: Likewise.
12409         * modules/unictype/category-or: Likewise.
12410         * modules/unictype/category-test: Likewise.
12411         * modules/unictype/combining-class: Likewise.
12412         * modules/unictype/ctype-alnum: Likewise.
12413         * modules/unictype/ctype-alpha: Likewise.
12414         * modules/unictype/ctype-blank: Likewise.
12415         * modules/unictype/ctype-cntrl: Likewise.
12416         * modules/unictype/ctype-digit: Likewise.
12417         * modules/unictype/ctype-graph: Likewise.
12418         * modules/unictype/ctype-lower: Likewise.
12419         * modules/unictype/ctype-print: Likewise.
12420         * modules/unictype/ctype-punct: Likewise.
12421         * modules/unictype/ctype-space: Likewise.
12422         * modules/unictype/ctype-upper: Likewise.
12423         * modules/unictype/ctype-xdigit: Likewise.
12424         * modules/unictype/decimal-digit: Likewise.
12425         * modules/unictype/digit: Likewise.
12426         * modules/unictype/mirror: Likewise.
12427         * modules/unictype/numeric: Likewise.
12428         * modules/unictype/property-alphabetic: Likewise.
12429         * modules/unictype/property-ascii-hex-digit: Likewise.
12430         * modules/unictype/property-bidi-arabic-digit: Likewise.
12431         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
12432         * modules/unictype/property-bidi-block-separator: Likewise.
12433         * modules/unictype/property-bidi-boundary-neutral: Likewise.
12434         * modules/unictype/property-bidi-common-separator: Likewise.
12435         * modules/unictype/property-bidi-control: Likewise.
12436         * modules/unictype/property-bidi-embedding-or-override: Likewise.
12437         * modules/unictype/property-bidi-eur-num-separator: Likewise.
12438         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
12439         * modules/unictype/property-bidi-european-digit: Likewise.
12440         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
12441         * modules/unictype/property-bidi-left-to-right: Likewise.
12442         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
12443         * modules/unictype/property-bidi-other-neutral: Likewise.
12444         * modules/unictype/property-bidi-pdf: Likewise.
12445         * modules/unictype/property-bidi-segment-separator: Likewise.
12446         * modules/unictype/property-bidi-whitespace: Likewise.
12447         * modules/unictype/property-byname: Likewise.
12448         * modules/unictype/property-combining: Likewise.
12449         * modules/unictype/property-composite: Likewise.
12450         * modules/unictype/property-currency-symbol: Likewise.
12451         * modules/unictype/property-dash: Likewise.
12452         * modules/unictype/property-decimal-digit: Likewise.
12453         * modules/unictype/property-default-ignorable-code-point: Likewise.
12454         * modules/unictype/property-deprecated: Likewise.
12455         * modules/unictype/property-diacritic: Likewise.
12456         * modules/unictype/property-extender: Likewise.
12457         * modules/unictype/property-format-control: Likewise.
12458         * modules/unictype/property-grapheme-base: Likewise.
12459         * modules/unictype/property-grapheme-extend: Likewise.
12460         * modules/unictype/property-grapheme-link: Likewise.
12461         * modules/unictype/property-hex-digit: Likewise.
12462         * modules/unictype/property-hyphen: Likewise.
12463         * modules/unictype/property-id-continue: Likewise.
12464         * modules/unictype/property-id-start: Likewise.
12465         * modules/unictype/property-ideographic: Likewise.
12466         * modules/unictype/property-ids-binary-operator: Likewise.
12467         * modules/unictype/property-ids-trinary-operator: Likewise.
12468         * modules/unictype/property-ignorable-control: Likewise.
12469         * modules/unictype/property-iso-control: Likewise.
12470         * modules/unictype/property-join-control: Likewise.
12471         * modules/unictype/property-left-of-pair: Likewise.
12472         * modules/unictype/property-line-separator: Likewise.
12473         * modules/unictype/property-logical-order-exception: Likewise.
12474         * modules/unictype/property-lowercase: Likewise.
12475         * modules/unictype/property-math: Likewise.
12476         * modules/unictype/property-non-break: Likewise.
12477         * modules/unictype/property-not-a-character: Likewise.
12478         * modules/unictype/property-numeric: Likewise.
12479         * modules/unictype/property-other-alphabetic: Likewise.
12480         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
12481         * modules/unictype/property-other-grapheme-extend: Likewise.
12482         * modules/unictype/property-other-id-continue: Likewise.
12483         * modules/unictype/property-other-id-start: Likewise.
12484         * modules/unictype/property-other-lowercase: Likewise.
12485         * modules/unictype/property-other-math: Likewise.
12486         * modules/unictype/property-other-uppercase: Likewise.
12487         * modules/unictype/property-paired-punctuation: Likewise.
12488         * modules/unictype/property-paragraph-separator: Likewise.
12489         * modules/unictype/property-pattern-syntax: Likewise.
12490         * modules/unictype/property-pattern-white-space: Likewise.
12491         * modules/unictype/property-private-use: Likewise.
12492         * modules/unictype/property-punctuation: Likewise.
12493         * modules/unictype/property-quotation-mark: Likewise.
12494         * modules/unictype/property-radical: Likewise.
12495         * modules/unictype/property-sentence-terminal: Likewise.
12496         * modules/unictype/property-soft-dotted: Likewise.
12497         * modules/unictype/property-space: Likewise.
12498         * modules/unictype/property-terminal-punctuation: Likewise.
12499         * modules/unictype/property-test: Likewise.
12500         * modules/unictype/property-titlecase: Likewise.
12501         * modules/unictype/property-unassigned-code-value: Likewise.
12502         * modules/unictype/property-unified-ideograph: Likewise.
12503         * modules/unictype/property-uppercase: Likewise.
12504         * modules/unictype/property-variation-selector: Likewise.
12505         * modules/unictype/property-white-space: Likewise.
12506         * modules/unictype/property-xid-continue: Likewise.
12507         * modules/unictype/property-xid-start: Likewise.
12508         * modules/unictype/property-zero-width: Likewise.
12509         * modules/unictype/scripts: Likewise.
12510         * modules/unictype/syntax-c-ident: Likewise.
12511         * modules/unictype/syntax-c-whitespace: Likewise.
12512         * modules/unictype/syntax-java-ident: Likewise.
12513         * modules/unictype/syntax-java-whitespace: Likewise.
12514         * modules/unilbrk/u8-possible-linebreaks: Likewise.
12515         * modules/unilbrk/u8-width-linebreaks: Likewise.
12516         * modules/unilbrk/u16-possible-linebreaks: Likewise.
12517         * modules/unilbrk/u16-width-linebreaks: Likewise.
12518         * modules/unilbrk/u32-possible-linebreaks: Likewise.
12519         * modules/unilbrk/u32-width-linebreaks: Likewise.
12520         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
12521         * modules/unilbrk/ulc-width-linebreaks: Likewise.
12522         * modules/uniname/uniname: Likewise.
12523         * modules/uninorm/canonical-decomposition: Likewise.
12524         * modules/uninorm/composition: Likewise.
12525         * modules/uninorm/decomposing-form: Likewise.
12526         * modules/uninorm/decomposition: Likewise.
12527         * modules/uninorm/filter: Likewise.
12528         * modules/uninorm/nfc: Likewise.
12529         * modules/uninorm/nfd: Likewise.
12530         * modules/uninorm/nfkc: Likewise.
12531         * modules/uninorm/nfkd: Likewise.
12532         * modules/uninorm/u8-normalize: Likewise.
12533         * modules/uninorm/u8-normcmp: Likewise.
12534         * modules/uninorm/u8-normcoll: Likewise.
12535         * modules/uninorm/u8-normxfrm: Likewise.
12536         * modules/uninorm/u16-normalize: Likewise.
12537         * modules/uninorm/u16-normcmp: Likewise.
12538         * modules/uninorm/u16-normcoll: Likewise.
12539         * modules/uninorm/u16-normxfrm: Likewise.
12540         * modules/uninorm/u32-normalize: Likewise.
12541         * modules/uninorm/u32-normcmp: Likewise.
12542         * modules/uninorm/u32-normcoll: Likewise.
12543         * modules/uninorm/u32-normxfrm: Likewise.
12544         * modules/unistdio/u8-asnprintf: Likewise.
12545         * modules/unistdio/u8-asprintf: Likewise.
12546         * modules/unistdio/u8-snprintf: Likewise.
12547         * modules/unistdio/u8-sprintf: Likewise.
12548         * modules/unistdio/u8-u8-asnprintf: Likewise.
12549         * modules/unistdio/u8-u8-asprintf: Likewise.
12550         * modules/unistdio/u8-u8-snprintf: Likewise.
12551         * modules/unistdio/u8-u8-sprintf: Likewise.
12552         * modules/unistdio/u8-u8-vasnprintf: Likewise.
12553         * modules/unistdio/u8-u8-vasprintf: Likewise.
12554         * modules/unistdio/u8-u8-vsnprintf: Likewise.
12555         * modules/unistdio/u8-u8-vsprintf: Likewise.
12556         * modules/unistdio/u8-vasnprintf: Likewise.
12557         * modules/unistdio/u8-vasprintf: Likewise.
12558         * modules/unistdio/u8-vsnprintf: Likewise.
12559         * modules/unistdio/u8-vsprintf: Likewise.
12560         * modules/unistdio/u16-asnprintf: Likewise.
12561         * modules/unistdio/u16-asprintf: Likewise.
12562         * modules/unistdio/u16-snprintf: Likewise.
12563         * modules/unistdio/u16-sprintf: Likewise.
12564         * modules/unistdio/u16-u16-asnprintf: Likewise.
12565         * modules/unistdio/u16-u16-asprintf: Likewise.
12566         * modules/unistdio/u16-u16-snprintf: Likewise.
12567         * modules/unistdio/u16-u16-sprintf: Likewise.
12568         * modules/unistdio/u16-u16-vasnprintf: Likewise.
12569         * modules/unistdio/u16-u16-vasprintf: Likewise.
12570         * modules/unistdio/u16-u16-vsnprintf: Likewise.
12571         * modules/unistdio/u16-u16-vsprintf: Likewise.
12572         * modules/unistdio/u16-vasnprintf: Likewise.
12573         * modules/unistdio/u16-vasprintf: Likewise.
12574         * modules/unistdio/u16-vsnprintf: Likewise.
12575         * modules/unistdio/u16-vsprintf: Likewise.
12576         * modules/unistdio/u32-asnprintf: Likewise.
12577         * modules/unistdio/u32-asprintf: Likewise.
12578         * modules/unistdio/u32-snprintf: Likewise.
12579         * modules/unistdio/u32-sprintf: Likewise.
12580         * modules/unistdio/u32-u32-asnprintf: Likewise.
12581         * modules/unistdio/u32-u32-asprintf: Likewise.
12582         * modules/unistdio/u32-u32-snprintf: Likewise.
12583         * modules/unistdio/u32-u32-sprintf: Likewise.
12584         * modules/unistdio/u32-u32-vasnprintf: Likewise.
12585         * modules/unistdio/u32-u32-vasprintf: Likewise.
12586         * modules/unistdio/u32-u32-vsnprintf: Likewise.
12587         * modules/unistdio/u32-u32-vsprintf: Likewise.
12588         * modules/unistdio/u32-vasnprintf: Likewise.
12589         * modules/unistdio/u32-vasprintf: Likewise.
12590         * modules/unistdio/u32-vsnprintf: Likewise.
12591         * modules/unistdio/u32-vsprintf: Likewise.
12592         * modules/unistdio/ulc-asnprintf: Likewise.
12593         * modules/unistdio/ulc-asprintf: Likewise.
12594         * modules/unistdio/ulc-fprintf: Likewise.
12595         * modules/unistdio/ulc-snprintf: Likewise.
12596         * modules/unistdio/ulc-sprintf: Likewise.
12597         * modules/unistdio/ulc-vasnprintf: Likewise.
12598         * modules/unistdio/ulc-vasprintf: Likewise.
12599         * modules/unistdio/ulc-vfprintf: Likewise.
12600         * modules/unistdio/ulc-vsnprintf: Likewise.
12601         * modules/unistdio/ulc-vsprintf: Likewise.
12602         * modules/unistr/u8-check: Likewise.
12603         * modules/unistr/u8-chr: Likewise.
12604         * modules/unistr/u8-cmp: Likewise.
12605         * modules/unistr/u8-cmp2: Likewise.
12606         * modules/unistr/u8-cpy: Likewise.
12607         * modules/unistr/u8-cpy-alloc: Likewise.
12608         * modules/unistr/u8-endswith: Likewise.
12609         * modules/unistr/u8-mblen: Likewise.
12610         * modules/unistr/u8-mbsnlen: Likewise.
12611         * modules/unistr/u8-mbtouc: Likewise.
12612         * modules/unistr/u8-mbtouc-unsafe: Likewise.
12613         * modules/unistr/u8-mbtoucr: Likewise.
12614         * modules/unistr/u8-move: Likewise.
12615         * modules/unistr/u8-next: Likewise.
12616         * modules/unistr/u8-prev: Likewise.
12617         * modules/unistr/u8-set: Likewise.
12618         * modules/unistr/u8-startswith: Likewise.
12619         * modules/unistr/u8-stpcpy: Likewise.
12620         * modules/unistr/u8-stpncpy: Likewise.
12621         * modules/unistr/u8-strcat: Likewise.
12622         * modules/unistr/u8-strchr: Likewise.
12623         * modules/unistr/u8-strcmp: Likewise.
12624         * modules/unistr/u8-strcoll: Likewise.
12625         * modules/unistr/u8-strcpy: Likewise.
12626         * modules/unistr/u8-strcspn: Likewise.
12627         * modules/unistr/u8-strdup: Likewise.
12628         * modules/unistr/u8-strlen: Likewise.
12629         * modules/unistr/u8-strmblen: Likewise.
12630         * modules/unistr/u8-strmbtouc: Likewise.
12631         * modules/unistr/u8-strncat: Likewise.
12632         * modules/unistr/u8-strncmp: Likewise.
12633         * modules/unistr/u8-strncpy: Likewise.
12634         * modules/unistr/u8-strnlen: Likewise.
12635         * modules/unistr/u8-strpbrk: Likewise.
12636         * modules/unistr/u8-strrchr: Likewise.
12637         * modules/unistr/u8-strspn: Likewise.
12638         * modules/unistr/u8-strstr: Likewise.
12639         * modules/unistr/u8-strtok: Likewise.
12640         * modules/unistr/u8-to-u16: Likewise.
12641         * modules/unistr/u8-to-u32: Likewise.
12642         * modules/unistr/u8-uctomb: Likewise.
12643         * modules/unistr/u16-check: Likewise.
12644         * modules/unistr/u16-chr: Likewise.
12645         * modules/unistr/u16-cmp: Likewise.
12646         * modules/unistr/u16-cmp2: Likewise.
12647         * modules/unistr/u16-cpy: Likewise.
12648         * modules/unistr/u16-cpy-alloc: Likewise.
12649         * modules/unistr/u16-endswith: Likewise.
12650         * modules/unistr/u16-mblen: Likewise.
12651         * modules/unistr/u16-mbsnlen: Likewise.
12652         * modules/unistr/u16-mbtouc: Likewise.
12653         * modules/unistr/u16-mbtouc-unsafe: Likewise.
12654         * modules/unistr/u16-mbtoucr: Likewise.
12655         * modules/unistr/u16-move: Likewise.
12656         * modules/unistr/u16-next: Likewise.
12657         * modules/unistr/u16-prev: Likewise.
12658         * modules/unistr/u16-set: Likewise.
12659         * modules/unistr/u16-startswith: Likewise.
12660         * modules/unistr/u16-stpcpy: Likewise.
12661         * modules/unistr/u16-stpncpy: Likewise.
12662         * modules/unistr/u16-strcat: Likewise.
12663         * modules/unistr/u16-strchr: Likewise.
12664         * modules/unistr/u16-strcmp: Likewise.
12665         * modules/unistr/u16-strcoll: Likewise.
12666         * modules/unistr/u16-strcpy: Likewise.
12667         * modules/unistr/u16-strcspn: Likewise.
12668         * modules/unistr/u16-strdup: Likewise.
12669         * modules/unistr/u16-strlen: Likewise.
12670         * modules/unistr/u16-strmblen: Likewise.
12671         * modules/unistr/u16-strmbtouc: Likewise.
12672         * modules/unistr/u16-strncat: Likewise.
12673         * modules/unistr/u16-strncmp: Likewise.
12674         * modules/unistr/u16-strncpy: Likewise.
12675         * modules/unistr/u16-strnlen: Likewise.
12676         * modules/unistr/u16-strpbrk: Likewise.
12677         * modules/unistr/u16-strrchr: Likewise.
12678         * modules/unistr/u16-strspn: Likewise.
12679         * modules/unistr/u16-strstr: Likewise.
12680         * modules/unistr/u16-strtok: Likewise.
12681         * modules/unistr/u16-to-u32: Likewise.
12682         * modules/unistr/u16-to-u8: Likewise.
12683         * modules/unistr/u16-uctomb: Likewise.
12684         * modules/unistr/u32-check: Likewise.
12685         * modules/unistr/u32-chr: Likewise.
12686         * modules/unistr/u32-cmp: Likewise.
12687         * modules/unistr/u32-cmp2: Likewise.
12688         * modules/unistr/u32-cpy: Likewise.
12689         * modules/unistr/u32-cpy-alloc: Likewise.
12690         * modules/unistr/u32-endswith: Likewise.
12691         * modules/unistr/u32-mblen: Likewise.
12692         * modules/unistr/u32-mbsnlen: Likewise.
12693         * modules/unistr/u32-mbtouc: Likewise.
12694         * modules/unistr/u32-mbtouc-unsafe: Likewise.
12695         * modules/unistr/u32-mbtoucr: Likewise.
12696         * modules/unistr/u32-move: Likewise.
12697         * modules/unistr/u32-next: Likewise.
12698         * modules/unistr/u32-prev: Likewise.
12699         * modules/unistr/u32-set: Likewise.
12700         * modules/unistr/u32-startswith: Likewise.
12701         * modules/unistr/u32-stpcpy: Likewise.
12702         * modules/unistr/u32-stpncpy: Likewise.
12703         * modules/unistr/u32-strcat: Likewise.
12704         * modules/unistr/u32-strchr: Likewise.
12705         * modules/unistr/u32-strcmp: Likewise.
12706         * modules/unistr/u32-strcoll: Likewise.
12707         * modules/unistr/u32-strcpy: Likewise.
12708         * modules/unistr/u32-strcspn: Likewise.
12709         * modules/unistr/u32-strdup: Likewise.
12710         * modules/unistr/u32-strlen: Likewise.
12711         * modules/unistr/u32-strmblen: Likewise.
12712         * modules/unistr/u32-strmbtouc: Likewise.
12713         * modules/unistr/u32-strncat: Likewise.
12714         * modules/unistr/u32-strncmp: Likewise.
12715         * modules/unistr/u32-strncpy: Likewise.
12716         * modules/unistr/u32-strnlen: Likewise.
12717         * modules/unistr/u32-strpbrk: Likewise.
12718         * modules/unistr/u32-strrchr: Likewise.
12719         * modules/unistr/u32-strspn: Likewise.
12720         * modules/unistr/u32-strstr: Likewise.
12721         * modules/unistr/u32-strtok: Likewise.
12722         * modules/unistr/u32-to-u16: Likewise.
12723         * modules/unistr/u32-to-u8: Likewise.
12724         * modules/unistr/u32-uctomb: Likewise.
12725         * modules/uniwbrk/u8-wordbreaks: Likewise.
12726         * modules/uniwbrk/u16-wordbreaks: Likewise.
12727         * modules/uniwbrk/u32-wordbreaks: Likewise.
12728         * modules/uniwbrk/ulc-wordbreaks: Likewise.
12729         * modules/uniwbrk/wordbreak-property: Likewise.
12730         * modules/uniwidth/u8-strwidth: Likewise.
12731         * modules/uniwidth/u8-width: Likewise.
12732         * modules/uniwidth/u16-strwidth: Likewise.
12733         * modules/uniwidth/u16-width: Likewise.
12734         * modules/uniwidth/u32-strwidth: Likewise.
12735         * modules/uniwidth/u32-width: Likewise.
12736         * modules/uniwidth/width: Likewise.
12737         * modules/unicase/cased-tests (Makefile.am): Link all test programs
12738         with $(LIBUNISTRING).
12739         * modules/unicase/ignorable-tests: Likewise.
12740         * modules/unicase/locale-language-tests: Likewise.
12741         * modules/unicase/tolower-tests: Likewise.
12742         * modules/unicase/totitle-tests: Likewise.
12743         * modules/unicase/toupper-tests: Likewise.
12744         * modules/unicase/u8-casecmp-tests: Likewise.
12745         * modules/unicase/u8-casecoll-tests: Likewise.
12746         * modules/unicase/u8-casefold-tests: Likewise.
12747         * modules/unicase/u8-is-cased-tests: Likewise.
12748         * modules/unicase/u8-is-casefolded-tests: Likewise.
12749         * modules/unicase/u8-is-lowercase-tests: Likewise.
12750         * modules/unicase/u8-is-titlecase-tests: Likewise.
12751         * modules/unicase/u8-is-uppercase-tests: Likewise.
12752         * modules/unicase/u8-tolower-tests: Likewise.
12753         * modules/unicase/u8-totitle-tests: Likewise.
12754         * modules/unicase/u8-toupper-tests: Likewise.
12755         * modules/unicase/u16-casecmp-tests: Likewise.
12756         * modules/unicase/u16-casecoll-tests: Likewise.
12757         * modules/unicase/u16-casefold-tests: Likewise.
12758         * modules/unicase/u16-is-cased-tests: Likewise.
12759         * modules/unicase/u16-is-casefolded-tests: Likewise.
12760         * modules/unicase/u16-is-lowercase-tests: Likewise.
12761         * modules/unicase/u16-is-titlecase-tests: Likewise.
12762         * modules/unicase/u16-is-uppercase-tests: Likewise.
12763         * modules/unicase/u16-tolower-tests: Likewise.
12764         * modules/unicase/u16-totitle-tests: Likewise.
12765         * modules/unicase/u16-toupper-tests: Likewise.
12766         * modules/unicase/u32-casecmp-tests: Likewise.
12767         * modules/unicase/u32-casecoll-tests: Likewise.
12768         * modules/unicase/u32-casefold-tests: Likewise.
12769         * modules/unicase/u32-is-cased-tests: Likewise.
12770         * modules/unicase/u32-is-casefolded-tests: Likewise.
12771         * modules/unicase/u32-is-lowercase-tests: Likewise.
12772         * modules/unicase/u32-is-titlecase-tests: Likewise.
12773         * modules/unicase/u32-is-uppercase-tests: Likewise.
12774         * modules/unicase/u32-tolower-tests: Likewise.
12775         * modules/unicase/u32-totitle-tests: Likewise.
12776         * modules/unicase/u32-toupper-tests: Likewise.
12777         * modules/unicase/ulc-casecmp-tests: Likewise.
12778         * modules/unicase/ulc-casecoll-tests: Likewise.
12779         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
12780         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
12781         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
12782         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
12783         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
12784         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
12785         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
12786         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
12787         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
12788         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
12789         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
12790         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
12791         * modules/unictype/bidicategory-byname-tests: Likewise.
12792         * modules/unictype/bidicategory-name-tests: Likewise.
12793         * modules/unictype/bidicategory-of-tests: Likewise.
12794         * modules/unictype/bidicategory-test-tests: Likewise.
12795         * modules/unictype/block-list-tests: Likewise.
12796         * modules/unictype/block-of-tests: Likewise.
12797         * modules/unictype/block-test-tests: Likewise.
12798         * modules/unictype/category-C-tests: Likewise.
12799         * modules/unictype/category-Cc-tests: Likewise.
12800         * modules/unictype/category-Cf-tests: Likewise.
12801         * modules/unictype/category-Cn-tests: Likewise.
12802         * modules/unictype/category-Co-tests: Likewise.
12803         * modules/unictype/category-Cs-tests: Likewise.
12804         * modules/unictype/category-L-tests: Likewise.
12805         * modules/unictype/category-Ll-tests: Likewise.
12806         * modules/unictype/category-Lm-tests: Likewise.
12807         * modules/unictype/category-Lo-tests: Likewise.
12808         * modules/unictype/category-Lt-tests: Likewise.
12809         * modules/unictype/category-Lu-tests: Likewise.
12810         * modules/unictype/category-M-tests: Likewise.
12811         * modules/unictype/category-Mc-tests: Likewise.
12812         * modules/unictype/category-Me-tests: Likewise.
12813         * modules/unictype/category-Mn-tests: Likewise.
12814         * modules/unictype/category-N-tests: Likewise.
12815         * modules/unictype/category-Nd-tests: Likewise.
12816         * modules/unictype/category-Nl-tests: Likewise.
12817         * modules/unictype/category-No-tests: Likewise.
12818         * modules/unictype/category-P-tests: Likewise.
12819         * modules/unictype/category-Pc-tests: Likewise.
12820         * modules/unictype/category-Pd-tests: Likewise.
12821         * modules/unictype/category-Pe-tests: Likewise.
12822         * modules/unictype/category-Pf-tests: Likewise.
12823         * modules/unictype/category-Pi-tests: Likewise.
12824         * modules/unictype/category-Po-tests: Likewise.
12825         * modules/unictype/category-Ps-tests: Likewise.
12826         * modules/unictype/category-S-tests: Likewise.
12827         * modules/unictype/category-Sc-tests: Likewise.
12828         * modules/unictype/category-Sk-tests: Likewise.
12829         * modules/unictype/category-Sm-tests: Likewise.
12830         * modules/unictype/category-So-tests: Likewise.
12831         * modules/unictype/category-Z-tests: Likewise.
12832         * modules/unictype/category-Zl-tests: Likewise.
12833         * modules/unictype/category-Zp-tests: Likewise.
12834         * modules/unictype/category-Zs-tests: Likewise.
12835         * modules/unictype/category-and-not-tests: Likewise.
12836         * modules/unictype/category-and-tests: Likewise.
12837         * modules/unictype/category-byname-tests: Likewise.
12838         * modules/unictype/category-name-tests: Likewise.
12839         * modules/unictype/category-none-tests: Likewise.
12840         * modules/unictype/category-of-tests: Likewise.
12841         * modules/unictype/category-or-tests: Likewise.
12842         * modules/unictype/category-test-withtable-tests: Likewise.
12843         * modules/unictype/combining-class-tests: Likewise.
12844         * modules/unictype/ctype-alnum-tests: Likewise.
12845         * modules/unictype/ctype-alpha-tests: Likewise.
12846         * modules/unictype/ctype-blank-tests: Likewise.
12847         * modules/unictype/ctype-cntrl-tests: Likewise.
12848         * modules/unictype/ctype-digit-tests: Likewise.
12849         * modules/unictype/ctype-graph-tests: Likewise.
12850         * modules/unictype/ctype-lower-tests: Likewise.
12851         * modules/unictype/ctype-print-tests: Likewise.
12852         * modules/unictype/ctype-punct-tests: Likewise.
12853         * modules/unictype/ctype-space-tests: Likewise.
12854         * modules/unictype/ctype-upper-tests: Likewise.
12855         * modules/unictype/ctype-xdigit-tests: Likewise.
12856         * modules/unictype/decimal-digit-tests: Likewise.
12857         * modules/unictype/digit-tests: Likewise.
12858         * modules/unictype/mirror-tests: Likewise.
12859         * modules/unictype/numeric-tests: Likewise.
12860         * modules/unictype/property-alphabetic-tests: Likewise.
12861         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
12862         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
12863         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
12864         * modules/unictype/property-bidi-block-separator-tests: Likewise.
12865         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
12866         * modules/unictype/property-bidi-common-separator-tests: Likewise.
12867         * modules/unictype/property-bidi-control-tests: Likewise.
12868         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
12869         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
12870         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
12871         * modules/unictype/property-bidi-european-digit-tests: Likewise.
12872         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
12873         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
12874         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
12875         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
12876         * modules/unictype/property-bidi-pdf-tests: Likewise.
12877         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
12878         * modules/unictype/property-bidi-whitespace-tests: Likewise.
12879         * modules/unictype/property-byname-tests: Likewise.
12880         * modules/unictype/property-combining-tests: Likewise.
12881         * modules/unictype/property-composite-tests: Likewise.
12882         * modules/unictype/property-currency-symbol-tests: Likewise.
12883         * modules/unictype/property-dash-tests: Likewise.
12884         * modules/unictype/property-decimal-digit-tests: Likewise.
12885         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
12886         * modules/unictype/property-deprecated-tests: Likewise.
12887         * modules/unictype/property-diacritic-tests: Likewise.
12888         * modules/unictype/property-extender-tests: Likewise.
12889         * modules/unictype/property-format-control-tests: Likewise.
12890         * modules/unictype/property-grapheme-base-tests: Likewise.
12891         * modules/unictype/property-grapheme-extend-tests: Likewise.
12892         * modules/unictype/property-grapheme-link-tests: Likewise.
12893         * modules/unictype/property-hex-digit-tests: Likewise.
12894         * modules/unictype/property-hyphen-tests: Likewise.
12895         * modules/unictype/property-id-continue-tests: Likewise.
12896         * modules/unictype/property-id-start-tests: Likewise.
12897         * modules/unictype/property-ideographic-tests: Likewise.
12898         * modules/unictype/property-ids-binary-operator-tests: Likewise.
12899         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
12900         * modules/unictype/property-ignorable-control-tests: Likewise.
12901         * modules/unictype/property-iso-control-tests: Likewise.
12902         * modules/unictype/property-join-control-tests: Likewise.
12903         * modules/unictype/property-left-of-pair-tests: Likewise.
12904         * modules/unictype/property-line-separator-tests: Likewise.
12905         * modules/unictype/property-logical-order-exception-tests: Likewise.
12906         * modules/unictype/property-lowercase-tests: Likewise.
12907         * modules/unictype/property-math-tests: Likewise.
12908         * modules/unictype/property-non-break-tests: Likewise.
12909         * modules/unictype/property-not-a-character-tests: Likewise.
12910         * modules/unictype/property-numeric-tests: Likewise.
12911         * modules/unictype/property-other-alphabetic-tests: Likewise.
12912         * modules/unictype/property-other-default-ignorable-code-point-tests:
12913         Likewise.
12914         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
12915         * modules/unictype/property-other-id-continue-tests: Likewise.
12916         * modules/unictype/property-other-id-start-tests: Likewise.
12917         * modules/unictype/property-other-lowercase-tests: Likewise.
12918         * modules/unictype/property-other-math-tests: Likewise.
12919         * modules/unictype/property-other-uppercase-tests: Likewise.
12920         * modules/unictype/property-paired-punctuation-tests: Likewise.
12921         * modules/unictype/property-paragraph-separator-tests: Likewise.
12922         * modules/unictype/property-pattern-syntax-tests: Likewise.
12923         * modules/unictype/property-pattern-white-space-tests: Likewise.
12924         * modules/unictype/property-private-use-tests: Likewise.
12925         * modules/unictype/property-punctuation-tests: Likewise.
12926         * modules/unictype/property-quotation-mark-tests: Likewise.
12927         * modules/unictype/property-radical-tests: Likewise.
12928         * modules/unictype/property-sentence-terminal-tests: Likewise.
12929         * modules/unictype/property-soft-dotted-tests: Likewise.
12930         * modules/unictype/property-space-tests: Likewise.
12931         * modules/unictype/property-terminal-punctuation-tests: Likewise.
12932         * modules/unictype/property-test-tests: Likewise.
12933         * modules/unictype/property-titlecase-tests: Likewise.
12934         * modules/unictype/property-unassigned-code-value-tests: Likewise.
12935         * modules/unictype/property-unified-ideograph-tests: Likewise.
12936         * modules/unictype/property-uppercase-tests: Likewise.
12937         * modules/unictype/property-variation-selector-tests: Likewise.
12938         * modules/unictype/property-white-space-tests: Likewise.
12939         * modules/unictype/property-xid-continue-tests: Likewise.
12940         * modules/unictype/property-xid-start-tests: Likewise.
12941         * modules/unictype/property-zero-width-tests: Likewise.
12942         * modules/unictype/scripts-tests: Likewise.
12943         * modules/unictype/syntax-c-ident-tests: Likewise.
12944         * modules/unictype/syntax-c-whitespace-tests: Likewise.
12945         * modules/unictype/syntax-java-ident-tests: Likewise.
12946         * modules/unictype/syntax-java-whitespace-tests: Likewise.
12947         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
12948         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
12949         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
12950         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
12951         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
12952         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
12953         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
12954         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
12955         * modules/uniname/uniname-tests: Likewise.
12956         * modules/uninorm/canonical-decomposition-tests: Likewise.
12957         * modules/uninorm/compat-decomposition-tests: Likewise.
12958         * modules/uninorm/composition-tests: Likewise.
12959         * modules/uninorm/decomposing-form-tests: Likewise.
12960         * modules/uninorm/decomposition-tests: Likewise.
12961         * modules/uninorm/filter-tests: Likewise.
12962         * modules/uninorm/nfc-tests: Likewise.
12963         * modules/uninorm/nfd-tests: Likewise.
12964         * modules/uninorm/nfkc-tests: Likewise.
12965         * modules/uninorm/nfkd-tests: Likewise.
12966         * modules/uninorm/u8-normcmp-tests: Likewise.
12967         * modules/uninorm/u8-normcoll-tests: Likewise.
12968         * modules/uninorm/u16-normcmp-tests: Likewise.
12969         * modules/uninorm/u16-normcoll-tests: Likewise.
12970         * modules/uninorm/u32-normcmp-tests: Likewise.
12971         * modules/uninorm/u32-normcoll-tests: Likewise.
12972         * modules/unistdio/u8-asnprintf-tests: Likewise.
12973         * modules/unistdio/u8-vasnprintf-tests: Likewise.
12974         * modules/unistdio/u8-vasprintf-tests: Likewise.
12975         * modules/unistdio/u8-vsnprintf-tests: Likewise.
12976         * modules/unistdio/u8-vsprintf-tests: Likewise.
12977         * modules/unistdio/u16-asnprintf-tests: Likewise.
12978         * modules/unistdio/u16-vasnprintf-tests: Likewise.
12979         * modules/unistdio/u16-vasprintf-tests: Likewise.
12980         * modules/unistdio/u16-vsnprintf-tests: Likewise.
12981         * modules/unistdio/u16-vsprintf-tests: Likewise.
12982         * modules/unistdio/u32-asnprintf-tests: Likewise.
12983         * modules/unistdio/u32-vasnprintf-tests: Likewise.
12984         * modules/unistdio/u32-vasprintf-tests: Likewise.
12985         * modules/unistdio/u32-vsnprintf-tests: Likewise.
12986         * modules/unistdio/u32-vsprintf-tests: Likewise.
12987         * modules/unistdio/ulc-asnprintf-tests: Likewise.
12988         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
12989         * modules/unistdio/ulc-vasprintf-tests: Likewise.
12990         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
12991         * modules/unistdio/ulc-vsprintf-tests: Likewise.
12992         * modules/unistr/u8-check-tests: Likewise.
12993         * modules/unistr/u8-chr-tests: Likewise.
12994         * modules/unistr/u8-cmp-tests: Likewise.
12995         * modules/unistr/u8-cmp2-tests: Likewise.
12996         * modules/unistr/u8-cpy-alloc-tests: Likewise.
12997         * modules/unistr/u8-cpy-tests: Likewise.
12998         * modules/unistr/u8-mblen-tests: Likewise.
12999         * modules/unistr/u8-mbsnlen-tests: Likewise.
13000         * modules/unistr/u8-mbtouc-tests: Likewise.
13001         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
13002         * modules/unistr/u8-mbtoucr-tests: Likewise.
13003         * modules/unistr/u8-move-tests: Likewise.
13004         * modules/unistr/u8-next-tests: Likewise.
13005         * modules/unistr/u8-prev-tests: Likewise.
13006         * modules/unistr/u8-set-tests: Likewise.
13007         * modules/unistr/u8-stpcpy-tests: Likewise.
13008         * modules/unistr/u8-stpncpy-tests: Likewise.
13009         * modules/unistr/u8-strcat-tests: Likewise.
13010         * modules/unistr/u8-strcmp-tests: Likewise.
13011         * modules/unistr/u8-strcoll-tests: Likewise.
13012         * modules/unistr/u8-strcpy-tests: Likewise.
13013         * modules/unistr/u8-strdup-tests: Likewise.
13014         * modules/unistr/u8-strlen-tests: Likewise.
13015         * modules/unistr/u8-strmblen-tests: Likewise.
13016         * modules/unistr/u8-strmbtouc-tests: Likewise.
13017         * modules/unistr/u8-strncat-tests: Likewise.
13018         * modules/unistr/u8-strncmp-tests: Likewise.
13019         * modules/unistr/u8-strncpy-tests: Likewise.
13020         * modules/unistr/u8-strnlen-tests: Likewise.
13021         * modules/unistr/u8-to-u16-tests: Likewise.
13022         * modules/unistr/u8-to-u32-tests: Likewise.
13023         * modules/unistr/u8-uctomb-tests: Likewise.
13024         * modules/unistr/u16-check-tests: Likewise.
13025         * modules/unistr/u16-chr-tests: Likewise.
13026         * modules/unistr/u16-cmp-tests: Likewise.
13027         * modules/unistr/u16-cmp2-tests: Likewise.
13028         * modules/unistr/u16-cpy-alloc-tests: Likewise.
13029         * modules/unistr/u16-cpy-tests: Likewise.
13030         * modules/unistr/u16-mblen-tests: Likewise.
13031         * modules/unistr/u16-mbsnlen-tests: Likewise.
13032         * modules/unistr/u16-mbtouc-tests: Likewise.
13033         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
13034         * modules/unistr/u16-mbtoucr-tests: Likewise.
13035         * modules/unistr/u16-move-tests: Likewise.
13036         * modules/unistr/u16-next-tests: Likewise.
13037         * modules/unistr/u16-prev-tests: Likewise.
13038         * modules/unistr/u16-set-tests: Likewise.
13039         * modules/unistr/u16-stpcpy-tests: Likewise.
13040         * modules/unistr/u16-stpncpy-tests: Likewise.
13041         * modules/unistr/u16-strcat-tests: Likewise.
13042         * modules/unistr/u16-strcmp-tests: Likewise.
13043         * modules/unistr/u16-strcoll-tests: Likewise.
13044         * modules/unistr/u16-strcpy-tests: Likewise.
13045         * modules/unistr/u16-strdup-tests: Likewise.
13046         * modules/unistr/u16-strlen-tests: Likewise.
13047         * modules/unistr/u16-strmblen-tests: Likewise.
13048         * modules/unistr/u16-strmbtouc-tests: Likewise.
13049         * modules/unistr/u16-strncat-tests: Likewise.
13050         * modules/unistr/u16-strncmp-tests: Likewise.
13051         * modules/unistr/u16-strncpy-tests: Likewise.
13052         * modules/unistr/u16-strnlen-tests: Likewise.
13053         * modules/unistr/u16-to-u32-tests: Likewise.
13054         * modules/unistr/u16-to-u8-tests: Likewise.
13055         * modules/unistr/u16-uctomb-tests: Likewise.
13056         * modules/unistr/u32-check-tests: Likewise.
13057         * modules/unistr/u32-chr-tests: Likewise.
13058         * modules/unistr/u32-cmp-tests: Likewise.
13059         * modules/unistr/u32-cmp2-tests: Likewise.
13060         * modules/unistr/u32-cpy-alloc-tests: Likewise.
13061         * modules/unistr/u32-cpy-tests: Likewise.
13062         * modules/unistr/u32-mblen-tests: Likewise.
13063         * modules/unistr/u32-mbsnlen-tests: Likewise.
13064         * modules/unistr/u32-mbtouc-tests: Likewise.
13065         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
13066         * modules/unistr/u32-mbtoucr-tests: Likewise.
13067         * modules/unistr/u32-move-tests: Likewise.
13068         * modules/unistr/u32-next-tests: Likewise.
13069         * modules/unistr/u32-prev-tests: Likewise.
13070         * modules/unistr/u32-set-tests: Likewise.
13071         * modules/unistr/u32-stpcpy-tests: Likewise.
13072         * modules/unistr/u32-stpncpy-tests: Likewise.
13073         * modules/unistr/u32-strcat-tests: Likewise.
13074         * modules/unistr/u32-strcmp-tests: Likewise.
13075         * modules/unistr/u32-strcoll-tests: Likewise.
13076         * modules/unistr/u32-strcpy-tests: Likewise.
13077         * modules/unistr/u32-strdup-tests: Likewise.
13078         * modules/unistr/u32-strlen-tests: Likewise.
13079         * modules/unistr/u32-strmblen-tests: Likewise.
13080         * modules/unistr/u32-strmbtouc-tests: Likewise.
13081         * modules/unistr/u32-strncat-tests: Likewise.
13082         * modules/unistr/u32-strncmp-tests: Likewise.
13083         * modules/unistr/u32-strncpy-tests: Likewise.
13084         * modules/unistr/u32-strnlen-tests: Likewise.
13085         * modules/unistr/u32-to-u16-tests: Likewise.
13086         * modules/unistr/u32-to-u8-tests: Likewise.
13087         * modules/unistr/u32-uctomb-tests: Likewise.
13088         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
13089         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
13090         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
13091         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
13092         * modules/uniwidth/u8-strwidth-tests: Likewise.
13093         * modules/uniwidth/u8-width-tests: Likewise.
13094         * modules/uniwidth/u16-strwidth-tests: Likewise.
13095         * modules/uniwidth/u16-width-tests: Likewise.
13096         * modules/uniwidth/u32-strwidth-tests: Likewise.
13097         * modules/uniwidth/u32-width-tests: Likewise.
13098         * modules/uniwidth/width-tests: Likewise.
13099
13100 2010-05-18  Richard Jones  <rjones@redhat.com>
13101
13102         doc: users.txt: list hivex
13103         * users.txt: Add hivex.
13104
13105 2010-05-18  Richard Jones  <rjones@redhat.com>
13106
13107         doc: users.txt: list febootstrap
13108         * users.txt: Add febootstrap.
13109
13110 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
13111
13112         bootstrap: fix an error when gnulib is not used as a git submodule
13113         * build-aux/bootstrap (gnulib_path): If its length is zero then
13114         assign "gnulib" to it.
13115         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
13116
13117 2010-05-16  Bruno Haible  <bruno@clisp.org>
13118
13119         Avoid autoconf warnings about AM_ICONV.
13120         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
13121         2.64.
13122
13123 2010-05-16  Bruno Haible  <bruno@clisp.org>
13124
13125         absolute-header: Make the macro usable in more situations.
13126         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
13127         from gl_ABSOLUTE_HEADER.
13128         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
13129
13130 2010-05-16  James Youngman  <jay@gnu.org>
13131
13132         doc: update users.txt
13133         * users.txt: Add CSSC.
13134
13135 2010-05-16  Jim Meyering  <meyering@redhat.com>
13136
13137         init.sh: fix an error in the previous change; add more comments
13138         * tests/init.sh: Compare exit code in loop against 9, not 2.
13139         Patch by Bruno Haible.
13140         Make the two tests more similar by adding an empty "then" clause.
13141         Add comments.
13142
13143         init.sh: avoid unnecessary shell re-exec
13144         * tests/init.sh: Improve the re-exec-required check to first test the
13145         current shell.  If it passes the test, do not search for a shell that
13146         does pass, and do not re-exec.  This test is particularly contorted to
13147         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
13148         of $(...) evokes a syntax error and causes immediate shell exit with
13149         status 2.  Bruno Haible reported that the re-exec made it impossible
13150         to single-step through any init.sh-using script.
13151
13152 2010-05-16  Bruno Haible  <bruno@clisp.org>
13153
13154         Fix collision between gnulib's and libintl's printf replacements.
13155         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
13156         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
13157         (printf): When using GNU C, map the __printf__ function to rpl_printf
13158         via __asm__. When not using GNU C, define rpl_printf instead of
13159         __printf__.
13160         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
13161         commit.
13162         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
13163         commit.
13164         * m4/asm-underscore.m4: New file.
13165         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
13166         * modules/stdio (Files): Add m4/asm-underscore.m4.
13167         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
13168         Reported by Ben Pfaff.
13169
13170 2010-05-16  Bruno Haible  <bruno@clisp.org>
13171
13172         verify: Avoid skipping the test on openSUSE 11.0.
13173         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
13174
13175 2010-05-13  Bruno Haible  <bruno@clisp.org>
13176
13177         Avoid useless warnings from G++.
13178         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
13179         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
13180         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13181
13182 2010-05-11  Jim Meyering  <meyering@redhat.com>
13183
13184         maint.mk: tweak preceding change
13185         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
13186         regexps tighter by anchoring at EOL, and make the new group "shy"
13187         for slightly decreased overhead.
13188
13189 2010-05-11  Eric Blake  <eblake@redhat.com>
13190
13191         maint.mk: gnulib doesn't guarantee NSIG
13192         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
13193
13194 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13195
13196         test-pwrite.c: Remove unused variable declaration.
13197         * tests/test-pwrite.c (main): Remove read_buf declaration.
13198
13199         Remove useless test-pwrite.sh file.
13200         * tests/test-pwrite.sh: Delete file.
13201         * modules/pwrite-tests: Remove references.
13202         Reported by Bruno Haible.
13203
13204 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13205
13206         init.sh: fix a typo
13207         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
13208
13209 2010-05-10  Jim Meyering  <meyering@redhat.com>
13210
13211         maint.mk: avoid using a temporary file in the always-defined-macros check
13212         * top/maint.mk (.re-defmac): Remove rule.
13213         (gl_trap_): Remove definition.
13214         (sc_prohibit_always-defined_macros): Rewrite not to create and
13215         depend on a temporary file.  Instead, depend on GNU grep's ability
13216         to read a list of regular expressions from stdin when given "-f -".
13217
13218 2010-05-09  Bruno Haible  <bruno@clisp.org>
13219
13220         Update to GNU gettext 0.18, part 1.
13221         * m4/gettext.m4: Update to GNU gettext 0.18.
13222         * m4/intl.m4: Likewise.
13223         * m4/po.m4: Likewise.
13224         * modules/gettext (Files): Add m4/fcntl-o.m4.
13225         (configure.ac): Require gettext infrastructure from version 0.18.
13226
13227 2010-05-09  Jim Meyering  <meyering@redhat.com>
13228
13229         init.sh: enable MALLOC_PERTURB_
13230         * tests/init.sh: Enable glibc's malloc-perturbing option.
13231
13232         maint.mk: improve sc_cross_check_PATH_usage_in_tests
13233         With my recent change in init.sh from the two-line form:
13234             -#   : ${srcdir=.}
13235             -#   . "$srcdir/init.sh"; path_prepend_ .
13236             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
13237         I noticed that using the one-line form would cause this test
13238         to fail with a false-positive, or to stop working altogether,
13239         depending on whether help-version changed or all the tests did.
13240         * top/maint.mk (_hv_regex): Remove this definition.
13241         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
13242         (_hv_regex_strong): Use a stronger regex to check for conformance.
13243         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
13244         Give a separate diagnostic for lack of conforming use.
13245
13246         maint.mk: prohibit definition of symbols defined by gnulib
13247         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
13248         definition of symbols defined by gnulib.
13249
13250 2010-05-09  Bruno Haible  <bruno@clisp.org>
13251
13252         acl: Avoid test failure on Cygwin-hosted mingw.
13253         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
13254
13255 2010-05-09  Bruno Haible  <bruno@clisp.org>
13256
13257         error: Use system's fcntl function.
13258         * lib/error.c (fcntl): Undefine.
13259
13260 2010-05-09  Jim Meyering  <meyering@redhat.com>
13261
13262         verify: adjust formatting to be more consistent
13263         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
13264         argument-list '('s, and after one comma.
13265
13266 2010-05-09  Bruno Haible  <bruno@clisp.org>
13267
13268         error: More reliable output on mingw.
13269         * lib/error.c: Include <windows.h>.
13270         (is_open): New function.
13271         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
13272         defined.
13273
13274 2010-05-09  Bruno Haible  <bruno@clisp.org>
13275
13276         vasnprintf: Fix syntax errors in libintl build on mingw.
13277         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
13278         pad_ourselves and prec_ourselves after use.
13279
13280 2010-05-08  Bruno Haible  <bruno@clisp.org>
13281
13282         * lib/config.charset: Update comments for Cygwin 1.7.
13283         * lib/localcharset.c: Likewise.
13284
13285 2010-05-07  Jim Meyering  <meyering@redhat.com>
13286
13287         init.sh: improve comments
13288         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
13289         . "${srcdir=.}/init.sh"; path_prepend_ .
13290         Add a note about path_prepend_ and the alternative of using
13291         TESTS_ENVIRONMENT.
13292
13293 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
13294
13295         exclude: Unescape hashed patterns in wildcard mode.
13296         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
13297         to the hash list.
13298         * tests/test-exclude8.sh: New test case.
13299         * modules/exclude-tests: Add new test.
13300
13301 2010-05-05  Eric Blake  <eblake@redhat.com>
13302
13303         verify: automate tests
13304         * modules/verify-tests: New module.
13305         * tests/test-verify.sh: New file.
13306         * tests/test-verify.c: Guard each negative test with a unique id.
13307         Also avoid warning about unused left hand of comma expressions.
13308
13309 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13310
13311         Further improvements to verify.h, suggested by Eric Blake.
13312         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
13313         the GL_* versions, to avoid collision with OpenGL.
13314         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
13315         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
13316         than testing merely whether it's defined.
13317
13318         Modify verify.h to pacify gcc -Wredundant_decls.
13319         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
13320         These use the prefix "GL_" since they're likely to be useful elsewhere.
13321         We may need to break them out into a different .h file.
13322         (__COUNTER__): Define to 0 if the compiler doesn't support it.
13323         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
13324         of verify_function__.
13325
13326 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13327
13328         Tests for module pwrite.
13329         * modules/pwrite-tests: New file.
13330         * tests/test-pwrite.sh: New file.
13331         * tests/test-pwrite.c: New file.
13332
13333         New module pwrite.
13334         * lib/unistd.in.h (pwrite): New declaration.
13335         * lib/pwrite.c: New file, from glibc with modifications.
13336         * m4/pwrite.m4: New file.
13337         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
13338         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
13339         REPLACE_PWRITE.
13340         * modules/pwrite: New file.
13341         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
13342         REPLACE_PWRITE.
13343         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
13344         * doc/posix-functions/pwrite.texi: Mention the new module.
13345
13346 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13347
13348         pread: Update documentation.
13349         * doc/posix-functions/pread.texi: Mention the 'pread' module.
13350
13351 2010-05-04  Eric Blake  <eblake@redhat.com>
13352
13353         docs: update cygwin progress
13354         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
13355         this bug.
13356         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
13357         Added in cygwin 1.7.2.
13358         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
13359         Likewise.
13360         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
13361         Likewise.
13362         * doc/glibc-functions/dup3.texi (dup3): Likewise.
13363         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13364         * doc/glibc-functions/accept4.texi (accept4): Likewise.
13365         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
13366         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
13367         Mention nproc module.
13368         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
13369         bug in cygwin 1.7.5 addition.
13370         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
13371         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
13372         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
13373         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
13374         1.7.5.
13375         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
13376         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
13377         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
13378         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
13379         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
13380         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
13381         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
13382         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
13383         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
13384         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
13385         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
13386         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
13387         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
13388         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
13389         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
13390         Likewise.
13391         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
13392         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
13393         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
13394         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
13395         Likewise.
13396         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
13397         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
13398         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
13399         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
13400         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
13401         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
13402         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
13403         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
13404         Likewise.
13405         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
13406         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
13407         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
13408         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
13409         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
13410         Likewise.
13411         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
13412         Likewise.
13413         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
13414         Likewise.
13415         * doc/glibc-functions/xdrrec_endofrecord.texi
13416         (xdrrec_endofrecord): Likewise.
13417         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
13418         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
13419         Likewise.
13420         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
13421         Likewise.
13422
13423 2010-05-04  Jim Meyering  <meyering@redhat.com>
13424
13425         gendocs.sh: make its "-s FILE" option more useful
13426         * build-aux/gendocs.sh: When honoring the -s FILE option, update
13427         $PACKAGE to reflect the probably-different basename of "FILE".
13428
13429 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13430
13431         bootstrap: don't ignore download_po_files failure
13432         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
13433         failure.
13434
13435 2010-05-03  Jim Meyering  <meyering@redhat.com>
13436
13437         maint.mk: allow to pass options to gendocs.sh
13438         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
13439         (gendocs_options_): New overridable variable.
13440
13441         gnu-web-doc-update: don't ignore configure or build failure
13442         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
13443
13444         announce-gen: backslash-escape '@'s in --help output
13445         * build-aux/announce-gen: Fix syntax errors.
13446
13447         maint.mk, announce-gen: allow project-specific announcement mail headers
13448         * top/maint.mk (translation_project_): Define default.
13449         (announcement_Cc_, announcement_mail_headers_): Likewise.
13450         (announcement): Invoke announce-gen with new --mail-headers option.
13451         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
13452
13453         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
13454         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
13455         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
13456         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
13457         line in the "err2" output file when running "make check" in verbose
13458         mode (i.e., with set -x enabled).
13459
13460 2010-05-03  Bruno Haible  <bruno@clisp.org>
13461
13462         wctob: Fix for weird platforms.
13463         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
13464         argument value.
13465
13466 2010-05-03  Jim Meyering  <meyering@redhat.com>
13467
13468         maint.mk: prohibit unwarranted use of <strings.h>
13469         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
13470         strings.h in a file that does not also use strcasecmp, strncasecmp,
13471         ffs or ffsll.
13472
13473         maint.mk: remove obsolete comments
13474         * top/maint.mk: Remove stale, commented-out rules.
13475
13476 2010-05-02  Bruno Haible  <bruno@clisp.org>
13477
13478         wcwidth: Declare also when it's aliased.
13479         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
13480         macro.
13481
13482 2010-05-02  Bruno Haible  <bruno@clisp.org>
13483
13484         Fix regression from 2010-04-25.
13485         * gnulib-tool (func_modules_transitive_closure): Check the status of
13486         all modules, not only of the tests that are of the form foo-tests where
13487         foo is a module.
13488
13489 2010-05-02  Bruno Haible  <bruno@clisp.org>
13490
13491         wctob: Work around nasty Cygwin 1.7.2 bug.
13492         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
13493         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
13494
13495 2010-05-01  Bruno Haible  <bruno@clisp.org>
13496
13497         fpurge: Sharper test.
13498         * tests/test-fpurge.c (main): Add one more ftell check.
13499         * modules/fpurge-tests (Depends-on): Add ftell.
13500         Suggested by Eric Blake.
13501
13502 2010-05-01  Bruno Haible  <bruno@clisp.org>
13503
13504         ftello: Another test.
13505         * tests/test-ftello3.c: New file.
13506         * modules/ftello-tests (Files): Add it.
13507         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13508         MOSTLYCLEANFILES.
13509
13510         ftell: Another test.
13511         * tests/test-ftell3.c: New file.
13512         * modules/ftell-tests (Files): Add it.
13513         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13514         MOSTLYCLEANFILES.
13515
13516 2010-05-01  Bruno Haible  <bruno@clisp.org>
13517
13518         ftell, ftello: Work around Solaris bug.
13519         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
13520         * lib/ftello.c: Include stdio-impl.h.
13521         (ftello): On Solaris, when _IOWRT is set, compute the result without
13522         looking at _IOREAD.
13523         * modules/ftello (Files): Add lib/stdio-impl.h.
13524         * doc/posix-functions/ftell.texi: Mention Solaris bug.
13525         * doc/posix-functions/ftello.texi: Likewise.
13526         Reported by Eric Blake.
13527
13528 2010-05-01  Bruno Haible  <bruno@clisp.org>
13529
13530         freading: Adapt to special meaning of _IOREAD flag on Solaris.
13531         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
13532         the _IOWRT flag is also set.
13533
13534 2010-05-01  Bruno Haible  <bruno@clisp.org>
13535
13536         Fix doc about a HP-UX stdio bug.
13537         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
13538         * doc/posix-functions/ftello.texi: Likewise.
13539
13540 2010-05-01  Bruno Haible  <bruno@clisp.org>
13541
13542         lseek test: Fix failure on Solaris.
13543         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
13544         output.
13545
13546 2010-04-30  Jim Meyering  <meyering@redhat.com>
13547
13548         bootstrap: don't ignore failure to generate po*/Makevars
13549         * build-aux/bootstrap (with_gettext): Don't ignore failure
13550         to create po/Makevars or runtime-po/Makevars.
13551
13552 2010-04-29  Eric Blake  <eblake@redhat.com>
13553
13554         headers: relax license to LGPLv2+
13555         * modules/fcntl-h (License): Relax license.
13556         * modules/getopt-posix (License): Likewise.
13557         * modules/locale (License): Likewise.
13558         * modules/math (License): Likewise.
13559         * modules/pty (License): Likewise.
13560         * modules/sched (License): Likewise.
13561         * modules/search (License): Likewise.
13562         * modules/spawn (License): Likewise.
13563         * modules/stdarg (License): Likewise.
13564         * modules/sysexits (License): Likewise.
13565
13566 2010-04-29  Jim Meyering  <meyering@redhat.com>
13567
13568         inttypes: relax license to LGPLv2+
13569         * modules/inttypes (License): Relax license.
13570
13571 2010-04-29  Simon Josefsson  <simon@josefsson.org>
13572
13573         * top/maint.mk (indent): Run twice to produce idempotent results.
13574
13575 2010-04-28  Bruno Haible  <bruno@clisp.org>
13576
13577         getdate: Generate getdate.c in the source directory.
13578         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
13579         MOSTLYCLEANFILES.
13580         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
13581
13582 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
13583
13584         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
13585         is not declared as a const *; avoid warnings in that case.
13586
13587 2010-04-28  Eric Blake  <eblake@redhat.com>
13588
13589         canonicalize-lgpl: avoid compiler warning
13590         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
13591         declaration' / 'extraneous semicolon' warning with some compilers.
13592         Reported by Andreas Gruenbacher.
13593
13594 2010-04-28  Jim Meyering  <meyering@redhat.com>
13595
13596         init.sh: ensure a more reliable exit status when exiting via trap
13597         * tests/init.sh (setup_): Don't rely on $? in signal handler.
13598         Inspired by patches from Dmitry V. Levin.
13599         Also trap on signal 3 (SIGQUIT).
13600
13601 2010-04-27  Bruno Haible  <bruno@clisp.org>
13602
13603         Update doc about utimes().
13604         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
13605         'utimens' module.
13606         Reported by Andreas Gruenbacher <agruen@suse.de>.
13607
13608 2010-04-27  Eric Blake  <eblake@redhat.com>
13609
13610         full-read, full-write: relax license
13611         * modules/full-read (License): Drop to LGPLv2+.
13612         * modules/full-write (License): Likewise.
13613         * modules/safe-read (License): Likewise.
13614         * modules/safe-write (License): Likewise.
13615
13616         pthread: mention library for linking
13617         * modules/pthread (Link): Mention $(LIB_PTHREAD).
13618
13619 2010-04-27  Jim Meyering  <meyering@redhat.com>
13620
13621         maint.mk: fix a bug introduced in last change
13622         * top/maint.mk (gl_assured_headers_): Now that all names are on
13623         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
13624         is not anchored to end of word, it should be adequate.
13625
13626         maint.mk: avoid side-effect in latest syntax-check
13627         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
13628         to run commands via $(shell...), and hence to incur cost only when
13629         the new rule is actually run.
13630
13631         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
13632         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
13633         and use that to create a regexp used to detect all #if HAVE_..._H uses.
13634         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
13635         (gl_assured_headers_, az_, AZ_): Define.
13636         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
13637
13638 2010-04-26  Jim Meyering  <jim@meyering.net>
13639             Bruno Haible  <bruno@clisp.org>
13640
13641         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
13642         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
13643         Prompted by an exchange with Gilles Espinasse.
13644
13645 2010-04-26  Jim Meyering  <meyering@redhat.com>
13646
13647         git-version-gen: aesthetic tweak
13648         * build-aux/git-version-gen: Use "$nl" rather than a literal,
13649         so that the command remains on a single line.
13650
13651 2010-04-26  Eric Blake  <eblake@redhat.com>
13652
13653         git-version-gen: allow use on EBCDIC hosts
13654         * build-aux/git-version-gen (dirty): Use literal rather than tying
13655         ourselves to ascii.
13656         Reported by Steve Goetze.
13657
13658 2010-04-25  Bruno Haible  <bruno@clisp.org>
13659
13660         netdb: Add support for GNULIB_POSIXCHECK.
13661         * lib/netdb.in.h: Include warn-on-use.h.
13662         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
13663         functions are used when GNULIB_POSIXCHECK is defined and the
13664         getaddrinfo module is not in use.
13665         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
13666         freeaddrinfo, gai_strerror, getnameinfo are declared.
13667         * modules/netdb (Depends-on): Add warn-on-use.
13668         (Makefile.am): Include warn-on-use.h in netdb.h.
13669
13670 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
13671
13672         build: avoid "make check" failure without .git/ directory
13673         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
13674         there is no .git/ directory.
13675
13676 2010-04-25  Bruno Haible  <bruno@clisp.org>
13677
13678         ptsname: Fix misuse of ttyname_r.
13679         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
13680         of errno.
13681
13682 2010-04-25  Bruno Haible  <bruno@clisp.org>
13683
13684         ttyname_r: Make it work on Solaris 10.
13685         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
13686         if the system function has the POSIX declaration. Test whether the
13687         function fails if the buffer is less than 128 bytes large.
13688         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
13689         system's ttyname_r function. Provide a reasonably large buffer.
13690         * modules/ttyname_r (Depends-on): Add extensions.
13691         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
13692
13693 2010-04-25  Bruno Haible  <bruno@clisp.org>
13694
13695         Use the 'extensions' module for some more functions on Solaris.
13696         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
13697         module.
13698         * doc/posix-functions/ctime_r.texi: Likewise.
13699         * doc/posix-functions/getgrgid_r.texi: Likewise.
13700         * doc/posix-functions/getgrnam_r.texi: Likewise.
13701         * doc/posix-functions/getpwnam_r.texi: Likewise.
13702         * doc/posix-functions/getpwuid_r.texi: Likewise.
13703         * doc/posix-functions/readdir_r.texi: Likewise.
13704         * doc/posix-functions/sigwait.texi: Likewise.
13705         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
13706         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
13707
13708 2010-04-25  Bruno Haible  <bruno@clisp.org>
13709
13710         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
13711         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
13712         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
13713         * lib/ttyname_r.c: Include <limits.h>.
13714         (ttyname_r): Define using the system's ttyname_r function, if it exists
13715         and not on Solaris.
13716         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
13717         set.
13718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
13719         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
13720         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
13721         Reported by Simon Josefsson.
13722
13723 2010-04-25  Bruno Haible  <bruno@clisp.org>
13724
13725         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
13726         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
13727         * doc/posix-functions/ctime_r.texi: Likewise.
13728         * doc/posix-functions/getgrgid_r.texi: Likewise.
13729         * doc/posix-functions/getgrnam_r.texi: Likewise.
13730         * doc/posix-functions/getlogin_r.texi: Likewise.
13731         * doc/posix-functions/getpwnam_r.texi: Likewise.
13732         * doc/posix-functions/getpwuid_r.texi: Likewise.
13733         * doc/posix-functions/readdir_r.texi: Likewise.
13734         * doc/posix-functions/sigwait.texi: Likewise.
13735         * doc/posix-functions/ttyname_r.texi: Likewise.
13736         Reported by Simon Josefsson.
13737
13738 2010-04-25  Bruno Haible  <bruno@clisp.org>
13739
13740         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
13741         * gnulib-tool (func_usage): Document that --with-*-tests options apply
13742         also to --create-testdir.
13743         (func_acceptable): Don't consider the status of *-tests modules here.
13744         (func_modules_transitive_closure): Consider it here, before including a
13745         test module.
13746         (func_import, func_create_testdir): Set inc_all_direct_tests,
13747         inc_all_indirect_tests.
13748         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
13749         --create-testdir and --create-megatestdir.
13750
13751 2010-04-25  Bruno Haible  <bruno@clisp.org>
13752
13753         gnulib-tool: Add --without-*-tests options.
13754         * gnulib-tool (func_usage): Document the --without-*-tests options.
13755         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
13756         excl_unportable_tests): New variables.
13757         Fail if they are specified with --import or --update.
13758         (func_acceptable): Respect the excl_*_tests variables.
13759         (func_import): Set the excl_*_tests variables to empty.
13760
13761 2010-04-25  Simon Josefsson  <simon@josefsson.org>
13762             Bruno Haible  <bruno@clisp.org>
13763
13764         Work around a MacOS X 10.4 bug with openpty.
13765         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
13766         * tests/test-openpty.c (main): Close the master side explicitly.
13767
13768 2010-04-25  Bruno Haible  <bruno@clisp.org>
13769
13770         strnlen: Fix a C++ test error on MacOS X and Solaris.
13771         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
13772         the function is not declared.
13773         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
13774         Simon Josefsson.
13775
13776 2010-04-24  Bruno Haible  <bruno@clisp.org>
13777
13778         Avoid a gcc warning.
13779         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
13780         of correct type for %08lx directive.
13781         Reported by Eric Blake.
13782
13783 2010-04-24  Bruno Haible  <bruno@clisp.org>
13784
13785         vasnprintf: Correct errno value in case of out-of-memory.
13786         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
13787         or sprintf. Use the errno value from SNPRINTF or sprintf.
13788         Reported by Ian Beckwith <ianb@erislabs.net>.
13789
13790 2010-04-24  Bruno Haible  <bruno@clisp.org>
13791
13792         ansi-c++-opt: Find correct compiler when cross-compiling.
13793         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
13794         AC_CHECK_PROGS.
13795         Reported by Simon Josefsson.
13796
13797 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
13798
13799         vc-list-files: Add support for subversion
13800         * build-aux/vc-list-files: Use "svn list" to generate the list of
13801         files controlled by subversion.
13802
13803 2010-04-23  Jim Meyering  <meyering@redhat.com>
13804
13805         vc-list-files tests: convert to use init.sh
13806         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
13807         path_prepend_.
13808         Use Exit, not exit.
13809         Use skip_ rather than open coding it.
13810         Remove trap set-up and compare definitions.
13811         * tests/test-vc-list-files-git.sh: Likewise.
13812         * modules/vc-list-files-tests (Files): Add tests/init.sh.
13813
13814 2010-04-22  Simon Josefsson  <simon@josefsson.org>
13815
13816         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
13817         backup files.
13818
13819 2010-04-21  Simon Josefsson  <simon@josefsson.org>
13820
13821         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
13822
13823 2010-04-20  Eric Blake  <eblake@redhat.com>
13824
13825         tests: be robust to ignored SIGPIPE
13826         * tests/test-select-in.sh: Consume all output.
13827         * tests/test-lseek.sh: Check correct exit status, while avoiding
13828         EPIPE.
13829
13830 2010-04-20  Simon Josefsson  <simon@josefsson.org>
13831             Bruno Haible  <bruno@clisp.org>
13832
13833         visibility: Don't use -fvisibility if it leads to a warning.
13834         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
13835         yes, don't pretend that visibility works if it leads to a warning.
13836         Reported by Mike Gran <spk121@yahoo.com>.
13837
13838 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
13839
13840         * build-aux/bootstrap: Use "git -h" for testing for supported options
13841         instead of "git --help".  The short-form option only shows a summary,
13842         and doesn't layout the full man page.  Grep for the full option name
13843         in the summary, too.
13844
13845 2010-04-19  Bruno Haible  <bruno@clisp.org>
13846
13847         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
13848         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
13849         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
13850         mention of RELOCATABLE_STRIP.
13851         Reported by Sylvain Beucler <beuc@beuc.net>.
13852
13853 2010-04-19  Bruno Haible  <bruno@clisp.org>
13854
13855         * lib/diffseq.h: Fix typo in comment.
13856         Reported by Eric Blake.
13857
13858 2010-04-19  Bruno Haible  <bruno@clisp.org>
13859
13860         ioctl: Move autoconf macro to a .m4 file.
13861         * m4/ioctl.m4: New file, extracted from modules/ioctl.
13862         * modules/ioctl (Files): Add it.
13863         (configure.ac): Simply invoke gl_FUNC_IOCTL.
13864         Reported by Ian Beckwith <ianb@erislabs.net>.
13865
13866 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
13867             Bruno Haible  <bruno@clisp.org>
13868
13869         diffseq: Accommodate use-case with abstract arrays.
13870         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
13871         is not defined.
13872         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
13873         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
13874
13875 2010-04-18  Bruno Haible  <bruno@clisp.org>
13876
13877         * doc/posix-headers/stdbool.texi: More precise wording.
13878
13879 2010-04-17  Jim Meyering  <meyering@redhat.com>
13880
13881         maint.mk: use gnu-style indentation in an embedded perl script
13882         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
13883         Rename variable: s/two/last_two_bytes/
13884
13885 2010-04-16  Eric Blake  <eblake@redhat.com>
13886
13887         test-stdbool: skip test that fails with Solaris CC
13888         * tests/test-stdbool.c (f): Skip test that causes compilation
13889         error under buggy C++ compiler.
13890         * lib/stdbool.in.h: Document the limitation.
13891         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
13892
13893         setenv: allow compilation with C++
13894         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
13895         register keyword.
13896
13897         stdint: allow test to pass with C++
13898         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
13899
13900         getopt: allow compilation with C++
13901         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
13902         struct.
13903         * lib/getopt.c (_getopt_internal_r): Use correct type.
13904         Reported by Dagobert Michelson, via Joel E. Denny.
13905
13906 2010-04-16  Bruno Haible  <bruno@clisp.org>
13907
13908         Override netdb.h always.
13909         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
13910         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
13911         Reported by Ludovic Courtès <ludo@gnu.org>.
13912
13913 2010-04-15  Bruno Haible  <bruno@clisp.org>
13914
13915         openpty: Fix mistake from 2010-03-21.
13916         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13917         Reported by Simon Josefsson.
13918
13919 2010-04-15  Eric Blake  <eblake@redhat.com>
13920
13921         test-forkpty: fix expected signature
13922         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
13923         Reported by Simon Josefsson.
13924
13925 2010-04-15  Jim Meyering  <meyering@redhat.com>
13926
13927         maint.mk: texinfo_suffix_re_: correct the default regexp
13928         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
13929
13930         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
13931         make it configurable via texinfo_suffix_re_.
13932
13933 2010-04-14  Eric Blake  <eblake@redhat.com>
13934
13935         strtok_r: relax license to LGPLv2+
13936         * modules/strtok_r (License): Relax license.
13937         Reported by Matthias Bolte.
13938
13939 2010-04-14  Simon Josefsson  <simon@josefsson.org>
13940
13941         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
13942         version 1.4.4 by default instead of requiring the libgcrypt
13943         version used during build.  This makes it possible to use the
13944         application with older but still binary compatible libgcrypt
13945         versions.
13946
13947 2010-04-13  Eric Blake  <eblake@redhat.com>
13948
13949         getopt-gnu: match recent glibc fixes and posix ruling
13950         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
13951         '+' handling, when requesting extensions.
13952         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
13953         'W;' handling.
13954         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
13955         * doc/posix-functions/getopt.texi (getopt): Document this.
13956         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13957         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13958         Likewise.
13959
13960         getopt: merge bug fixes from glibc
13961         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
13962         diagnostics.  Honor '+:' correctly.  Reject ';'.
13963
13964         getopt-posix: detect MacOS bug
13965         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
13966         optind when missing a required argument.
13967         * doc/posix-functions/getopt.texi (getopt): Document the bug.
13968         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13969         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13970         Likewise.
13971
13972         getopt-posix: avoid spurious failure on Solaris
13973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
13974         an indicator that setting optind=1 is sufficient for reset.
13975
13976         getopt-posix: avoid spurious failure on FreeBSD
13977         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
13978         in POSIX mode, since the m4 test uses it.
13979
13980         gnulib-tool: silence warning on BSD sh
13981         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
13982
13983 2010-04-13  Jim Meyering  <meyering@redhat.com>
13984
13985         doc: users.txt: GNU patch now uses gnulib
13986         * users.txt: Add patch.
13987
13988 2010-04-12  Jim Meyering  <meyering@redhat.com>
13989
13990         maint.mk: generate more concise timing data for syntax-check rules
13991         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
13992         " done" from each line that reports a syntax-check test duration.
13993
13994 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
13995
13996         git-version-gen: use "git update-index..." rather than "git status"
13997         * build-aux/git-version-gen: Use git update-index --refresh, not
13998         "git status".  With some versions of git, "git status" would fail
13999         to update the index and result in an unwarranted "-dirty" suffix.
14000
14001 2010-04-11  Jim Meyering  <meyering@redhat.com>
14002
14003         openat: correct formatting (no semantic change)
14004         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
14005         Suggested by Bruno Haible.
14006
14007 2010-04-11  Bruno Haible  <bruno@clisp.org>
14008
14009         Stricter declaration checking in testdirs.
14010         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14011         If for_tests is true, augment AM_CPPFLAGS to define
14012         GNULIB_STRICT_CHECKING.
14013         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
14014         GNULIB_STRICT_CHECKING is defined, verify that the function is
14015         declared.
14016
14017 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
14018             Bruno Haible  <bruno@clisp.org>
14019
14020         libunistring: Improve configure output.
14021         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
14022         Don't say "consider installing GNU libunistring" when checking again
14023         with libiconv.
14024
14025 2010-04-11  Bruno Haible  <bruno@clisp.org>
14026
14027         libunistring: Correct value of $LTLIBUNISTRING.
14028         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
14029         correct the value of $LTLIBUNISTRING.
14030
14031 2010-04-11  Bruno Haible  <bruno@clisp.org>
14032
14033         havelib: Add static libraries to LIBS in the right order.
14034         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
14035         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
14036
14037 2010-04-11  Bruno Haible  <bruno@clisp.org>
14038
14039         libunistring: Detect libunistring also when it depends on libiconv.
14040         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
14041         the second AC_LIB_HAVE_LINKFLAGS invocation.
14042
14043 2010-04-11  James Youngman  <jay@gnu.org>
14044
14045         close-stream: declare local scalars to be "const"
14046         * lib/close-stream.c (close_stream): Make boolean variables const
14047         to document the fact that we set but do not change them.
14048
14049 2010-04-11  Bruno Haible  <bruno@clisp.org>
14050
14051         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
14052
14053 2010-04-11  Jim Meyering  <meyering@redhat.com>
14054
14055         maint.mk: don't include dist-check.mk
14056         * top/maint.mk: Remove bogus include directive.
14057
14058         maint.mk: improve empty-line-at-EOF check
14059         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
14060         solution, rather than tail+Perl-based one.  The latter would read
14061         a few kilobytes from the end of each file, and did not handle empty
14062         files properly.
14063
14064         maint.mk: print the elapsed time for each syntax-check rule
14065         * top/maint.mk (sc_m_rules_): Save start time in a file.
14066         (sc_z_rules_): New rules: remove temp file and print elapsed time.
14067         (local-check): Interpose the .z rules
14068
14069 2010-04-11  Jim Meyering  <meyering@redhat.com>
14070
14071         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
14072         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
14073         empty file with one that ends in an empty line.
14074
14075 2010-04-10  Bruno Haible  <bruno@clisp.org>
14076
14077         mkdir: Make it work on mingw64.
14078         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
14079         * lib/mkdir.c: Update comment.
14080         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
14081
14082 2010-04-10  Bruno Haible  <bruno@clisp.org>
14083
14084         Don't override improved macro from newer autoconf.
14085         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
14086         autoconf >= 2.62.
14087         Reported by Joel E. Denny <jdenny@clemson.edu>.
14088
14089 2010-04-10  Jim Meyering  <meyering@redhat.com>
14090
14091         maint.mk: new syntax-check rule: prohibit empty lines at end of file
14092         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
14093
14094         maint.mk: correct a diagnostic
14095         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
14096         in diagnostic; now use $prohibit.
14097
14098 2010-04-10  Bruno Haible  <address@hidden>
14099
14100         fchownat: Fix a C++ test error on Solaris 8.
14101         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
14102         the function does not exist.
14103
14104 2010-04-10  Bruno Haible  <bruno@clisp.org>
14105
14106         vasnprintf: Add more tests.
14107         * tests/test-vasnprintf-posix.c: Include <errno.h>.
14108         (test_function): Test converting an invalid wide string.
14109
14110         vasnprintf: Correct handling of unconvertible wide string arguments.
14111         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
14112         VASNPRINTF.
14113         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
14114         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
14115         smaller than the expected maximum need for the directive. Set errno to
14116         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
14117         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
14118         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
14119         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
14120         * modules/vasnprintf (Files): Add m4/printf.m4.
14121         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14122
14123 2010-04-10  Bruno Haible  <bruno@clisp.org>
14124
14125         vasnprintf: Fix crash in %ls directive.
14126         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
14127         string is passed as argument to %ls, with no precision and no width.
14128         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14129
14130 2010-04-10  Bruno Haible  <bruno@clisp.org>
14131
14132         vasnprintf: Fix multiple test failures on mingw.
14133         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
14134         _snprintf, or snwprintf, not _snwprintf.
14135
14136 2010-04-10  Bruno Haible  <bruno@clisp.org>
14137
14138         write: Fix a C++ test error on mingw.
14139         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
14140
14141 2010-04-10  Bruno Haible  <bruno@clisp.org>
14142
14143         vasnprintf test: Reduce code duplication.
14144         * tests/test-vasnprintf.c (test_function): New function, extracted from
14145         test_vasnprintf.
14146         (test_vasnprintf, test_asnprintf): Invoke it.
14147
14148 2010-04-10  Bruno Haible  <bruno@clisp.org>
14149
14150         strnlen: Fix warning in C++ mode on MacOS X.
14151         * lib/string.in.h (strnlen): Use the modern idiom.
14152         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
14153         defining strnlen as a macro already in <config.h>.
14154         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14155         REPLACE_STRNLEN.
14156         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
14157         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14158
14159 2010-04-08  James Youngman  <jay@gnu.org>
14160
14161         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
14162         the example.
14163
14164 2010-04-09  Jim Meyering  <meyering@redhat.com>
14165
14166         maint.mk: print better diagnostic when there is no $(_hv_file)
14167         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
14168         announce that when $(_hv_file) (aka help-version) does not exist.
14169
14170         init.sh: run tr in the "C" locale to avoid multibyte interpretation
14171         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
14172         not try to interpret its random input bytes.  Jarno Rajahalme reported
14173         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
14174         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
14175         (mktempd_): Likewise, just in case.
14176
14177         ftruncate: add two years to projected module removal date: 2012
14178         * m4/ftruncate.m4: Adjust comments.
14179
14180         ftruncate: mark module as obsolete; even MinGW provides it, now
14181         * modules/ftruncate (Status): Obsolete.
14182         (Notice): Say that.
14183         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
14184         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
14185
14186 2010-04-08  Bruno Haible  <bruno@clisp.org>
14187
14188         Fix side effects from tests-related modules.
14189         * modules/dprintf-posix (Comment): New section.
14190         * modules/fprintf-posix (Comment): Likewise.
14191         * modules/obstack-printf-posix (Comment): Likewise.
14192         * modules/printf-posix (Comment): Likewise.
14193         * modules/snprintf-posix (Comment): Likewise.
14194         * modules/sprintf-posix (Comment): Likewise.
14195         * modules/vasnprintf-posix (Comment): Likewise.
14196         * modules/vasprintf-posix (Comment): Likewise.
14197         * modules/vdprintf-posix (Comment): Likewise.
14198         * modules/vfprintf-posix (Comment): Likewise.
14199         * modules/vprintf-posix (Comment): Likewise.
14200         * modules/vsnprintf-posix (Comment): Likewise.
14201         * modules/vsprintf-posix (Comment): Likewise.
14202         * modules/xprintf-posix (Comment): Likewise.
14203         * modules/xvasprintf-posix (Comment): Likewise.
14204         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
14205         * modules/floorf-tests (Depends-on): Likewise.
14206         * modules/round-tests (Depends-on): Likewise.
14207         * modules/roundf-tests (Depends-on): Likewise.
14208         * modules/trunc-tests (Depends-on): Likewise.
14209         * modules/truncf-tests (Depends-on): Likewise.
14210         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
14211         'fprintf-posix' module is not present.
14212         * tests/test-floorf2.c (check): Likewise.
14213         * tests/test-trunc2.c (check): Likewise.
14214         * tests/test-truncf2.c (check): Likewise.
14215         * tests/test-round2.c (equal): Likewise.
14216         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14217
14218 2010-04-07  Karl Berry  <karl@gnu.org>
14219
14220         * config/srclist.txt,
14221         * config/srclistvars.sh,
14222         * config/srclist-update: doc fixes.
14223
14224 2010-04-07  Jim Meyering  <meyering@redhat.com>
14225
14226         maint.mk: add a PATH crosschecking syntax-check rule
14227         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
14228         Useful if you use a test like the one in help-version (coreutils,
14229         diffutils, grep, gzip) that ensures $(VERSION) matches what is
14230         printed by prog --version.
14231
14232 2010-04-06  Bruno Haible  <bruno@clisp.org>
14233
14234         Fix link error on mingw.
14235         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
14236         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
14237
14238 2010-04-06  Bruno Haible  <bruno@clisp.org>
14239
14240         Assume rmdir exists.
14241         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
14242
14243 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
14244
14245         doc: update users.txt
14246         * users.txt: Add gcal.
14247
14248 2010-04-06  Jim Meyering  <meyering@redhat.com>
14249
14250         init.sh: simply unset TMPDIR rather than risking env -i
14251         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
14252         although it probably works fine on all Unix-based systems, some
14253         systems (Cygwin?) cannot tolerate a totally cleared environment.
14254         Suggestion from Eric Blake.
14255
14256 2010-04-06  Jim Meyering  <meyering@redhat.com>
14257
14258         init.sh: portability fix: use env's POSIX-specified -i option not -u
14259         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
14260         than unportable env -u.  Solaris 5.11's env lacks support for -u.
14261
14262 2010-04-05  Bruno Haible  <bruno@clisp.org>
14263
14264         btowc: Work around Cygwin 1.7.2 bug.
14265         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
14266         does not map NUL to 0.
14267         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
14268
14269 2010-04-05  Bruno Haible  <bruno@clisp.org>
14270
14271         Make the multithread modules work on Cygwin 1.7.2.
14272         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
14273         imported symbols can be declared weak, so that it returns "no" on
14274         Cygwin 1.7.2.
14275
14276 2010-04-05  Bruno Haible  <bruno@clisp.org>
14277
14278         Use the module 'strncat'.
14279         * modules/unistr/u8-strncat (Depends-on): Add strncat.
14280
14281         Tests for module 'strncat'.
14282         * modules/strncat-tests: New file.
14283         * tests/test-strncat.c: New file.
14284
14285         New module 'strncat'.
14286         * lib/string.in.h (strncat): New declaration.
14287         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
14288         * m4/strncat.m4: New file, based on m4/memchr.m4.
14289         * modules/strncat: New file.
14290         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
14291         is declared.
14292         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
14293         REPLACE_STRNCAT.
14294         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
14295         REPLACE_STRNCAT.
14296         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
14297         module.
14298         * tests/test-string-c++.cc: Check signature of strncat.
14299
14300 2010-04-05  Jim Meyering  <meyering@redhat.com>
14301
14302         xstrtoumax-tests: convert to use init.sh
14303         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
14304         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14305         Use Exit, not exit.
14306         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14307
14308         xstrtoimax-tests: convert to use init.sh
14309         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
14310         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14311         Use Exit, not exit.
14312         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14313
14314 2010-04-05  Bruno Haible  <bruno@clisp.org>
14315
14316         sys_socket: Avoid #define replacements in C++ mode.
14317         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
14318         warning to the function if possible, rather than #defining the symbol
14319         to a dysfunctional alias.
14320
14321 2010-04-05  Bruno Haible  <bruno@clisp.org>
14322
14323         fseeko: Fix C++ test error on mingw.
14324         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
14325         gl_FUNC_FSEEKO.
14326         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
14327         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
14328         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
14329         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
14330
14331 2010-04-05  Bruno Haible  <bruno@clisp.org>
14332
14333         duplocale: Improve test output.
14334         * tests/test-duplocale.c (main): Print reason for skipped test.
14335
14336 2010-04-05  Bruno Haible  <bruno@clisp.org>
14337
14338         Assume rmdir exists.
14339         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
14340         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
14341
14342 2010-04-05  Bruno Haible  <bruno@clisp.org>
14343
14344         Fix link error on Solaris 8 with cc.
14345         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
14346
14347 2010-04-05  Bruno Haible  <bruno@clisp.org>
14348
14349         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14350         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
14351
14352 2010-04-05  Bruno Haible  <bruno@clisp.org>
14353
14354         vasprintf: Update documentation.
14355         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
14356
14357 2010-04-05  Bruno Haible  <bruno@clisp.org>
14358
14359         ptsname: Improve test.
14360         * tests/test-ptsname.c (main): Also try the various master names of BSD
14361         systems.
14362
14363 2010-04-05  Bruno Haible  <bruno@clisp.org>
14364
14365         memchr: Avoid a possible C++ test error.
14366         * lib/string.in.h (memchr): Provide declaration if function is missing.
14367         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
14368         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
14369         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
14370         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
14371
14372 2010-04-05  Bruno Haible  <bruno@clisp.org>
14373
14374         strtok_r: Improve idiom.
14375         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
14376         AC_LIBOBJ is used.
14377
14378 2010-04-05  Bruno Haible  <bruno@clisp.org>
14379
14380         strdup: Improve idiom.
14381         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
14382         AC_LIBOBJ is used.
14383         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
14384         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
14385         when AC_LIBOBJ is used.
14386
14387 2010-04-05  Bruno Haible  <bruno@clisp.org>
14388
14389         mbsinit, mbrtowc, wcrtomb: Improve idioms.
14390         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
14391         don't set REPLACE_MBSINIT to 1.
14392         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
14393         don't set REPLACE_MBRTOWC to 1.
14394         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
14395         exist, don't set REPLACE_MBSRTOWCS to 1.
14396         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
14397         exist, don't set REPLACE_MBSNRTOWCS to 1.
14398         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
14399         don't set REPLACE_WCRTOMB to 1.
14400         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
14401         exist, don't set REPLACE_WCSRTOMBS to 1.
14402         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
14403         exist, don't set REPLACE_WCSNRTOMBS to 1.
14404
14405 2010-04-05  Bruno Haible  <bruno@clisp.org>
14406
14407         ldexpl: Improve idiom.
14408         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
14409         make sure to set HAVE_DECL_LDEXPL to 0.
14410
14411 2010-04-05  Jim Meyering  <meyering@redhat.com>
14412
14413         xstrtol-tests: convert to use init.sh
14414         * modules/xstrtol-tests (Files): Add tests/init.sh.
14415         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14416         Use Exit, not exit.
14417         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14418
14419         atexit-tests: convert to use init.sh
14420         * modules/atexit-tests (Files): Add tests/init.sh.
14421         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14422         Use Exit, not exit.
14423         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14424
14425         init.sh: fix typo
14426         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
14427
14428         init.sh: make it easier for a test script to write to the tty, ...
14429         when using automake's parallel-tests mode.
14430         * tests/init.sh (stderr_fileno_): Define overridable variable.
14431         (warn_): New function, to use it.
14432         (fail_, skip_, framework_failure_): Use warn_.
14433
14434 2010-04-04  Bruno Haible  <bruno@clisp.org>
14435
14436         btowc: Avoid warning.
14437         * lib/btowc.c: Include <stdlib.h>.
14438         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
14439
14440 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14441             Bruno Haible  <bruno@clisp.org>
14442
14443         wchar: Port to NetBSD 1.5.
14444         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
14445         * lib/wctype.in.h (WEOF): Likewise.
14446
14447 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14448             Bruno Haible  <bruno@clisp.org>
14449
14450         Port extended stdio to NetBSD 1.5.
14451         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
14452         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
14453         older.
14454
14455 2010-04-04  Bruno Haible  <bruno@clisp.org>
14456
14457         string: Remove unused substitution.
14458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14459         HAVE_DECL_STRERROR.
14460         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
14461
14462 2010-04-04  Bruno Haible  <bruno@clisp.org>
14463
14464         strtod: Avoid a possible C++ test error.
14465         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
14466         set REPLACE_STRTOD.
14467
14468 2010-04-04  Bruno Haible  <bruno@clisp.org>
14469
14470         strerror: Update documentation.
14471         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
14472
14473 2010-04-04  Bruno Haible  <bruno@clisp.org>
14474
14475         stdio: Fix some C++ test errors on Solaris 8 with GCC.
14476         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
14477         _GL_CXXALIAS_SYS_CAST.
14478
14479 2010-04-04  Bruno Haible  <bruno@clisp.org>
14480
14481         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14482         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
14483         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
14484         REPLACE_FREXPL to 1.
14485         * doc/posix-functions/frexpl.texi: Update documentation.
14486
14487 2010-04-04  Bruno Haible  <bruno@clisp.org>
14488
14489         math: Fix some C++ test errors on Solaris 8 and Cygwin.
14490         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
14491
14492 2010-04-04  Bruno Haible  <bruno@clisp.org>
14493
14494         Implement nanosleep for native Windows.
14495         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
14496
14497 2010-04-04  Bruno Haible  <bruno@clisp.org>
14498
14499         math: Fix some C++ test errors on Solaris 8.
14500         * lib/math.in.h (truncf, trunc): Use simpler idiom.
14501
14502 2010-04-04  Bruno Haible  <bruno@clisp.org>
14503
14504         math: Fix some C++ test errors on Cygwin.
14505         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
14506         truncl): Provide declaration if the system does not have it.
14507         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
14508         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
14509         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
14510         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
14511         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
14512         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
14513         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
14514         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
14515         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
14516         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
14517         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
14518         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
14519         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
14520         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
14521         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
14522         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
14523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
14524         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14525         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14526         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
14527         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14528         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14529
14530 2010-04-04  Bruno Haible  <bruno@clisp.org>
14531
14532         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
14533         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14534         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14535         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14536         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14537         * m4/isinf.m4 (gl_ISINF): Likewise.
14538         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14539
14540 2010-04-04  Bruno Haible  <bruno@clisp.org>
14541
14542         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
14543         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14544
14545 2010-04-04  Bruno Haible  <bruno@clisp.org>
14546
14547         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
14548         * modules/tmpfile (configure.ac): Update.
14549
14550         tmpfile: Fix C++ test error on mingw.
14551         * lib/stdio.in.h (tmpfile): New declaration.
14552         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
14553         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
14554         * modules/tmpfile (Depends-on): Add stdio.
14555         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14556         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
14557         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
14558         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
14559         REPLACE_TMPFILE.
14560         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
14561
14562 2010-04-04  Bruno Haible  <bruno@clisp.org>
14563
14564         ioctl: Fix C++ test error on mingw.
14565         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
14566         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
14567         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
14568
14569 2010-04-03  Bruno Haible  <bruno@clisp.org>
14570
14571         wcwidth: Fix C++ test error on mingw.
14572         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
14573         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
14574         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
14575
14576 2010-04-03  Bruno Haible  <bruno@clisp.org>
14577
14578         nanosleep: Fix C++ test error on mingw.
14579         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
14580         * lib/time.in.h (nanosleep): Use modern idiom.
14581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
14582         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
14583         REPLACE_NANOSLEEP to 1.
14584         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
14585         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
14586
14587 2010-04-03  Bruno Haible  <bruno@clisp.org>
14588
14589         strptime: Fix C++ test error on mingw.
14590         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
14591         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
14592         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
14593         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
14594         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
14595         not REPLACE_STRPTIME.
14596         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
14597         REPLACE_STRPTIME.
14598
14599 2010-04-03  Bruno Haible  <bruno@clisp.org>
14600
14601         timegm: Fix C++ test error on mingw.
14602         * lib/time.in.h (timegm): Use modern idiom.
14603         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
14604         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
14605         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
14606         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
14607
14608 2010-04-03  Bruno Haible  <bruno@clisp.org>
14609
14610         timegm: Assume declaration if function exists.
14611         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
14612         if it exists. Don't clobber ac_cv_func_timegm.
14613
14614 2010-04-03  Bruno Haible  <bruno@clisp.org>
14615
14616         time_r: Fix C++ test error on mingw.
14617         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
14618         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
14619         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
14620         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
14621         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
14622
14623 2010-04-03  Bruno Haible  <bruno@clisp.org>
14624
14625         time_r: Minor updates.
14626         * modules/time_r (Description): Mention the provided functions.
14627         * lib/time_r.c: Don't include <string.h>.
14628         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
14629         * doc/posix-functions/localtime_r.texi: Likewise.
14630
14631 2010-04-03  Bruno Haible  <bruno@clisp.org>
14632
14633         time: Fix regression introduced on 2010-03-08.
14634         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
14635         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
14636
14637 2010-04-03  Jim Meyering  <meyering@redhat.com>
14638
14639         maint.mk: don't silently disable project-specific syntax-check rules
14640         * top/maint.mk (_prohibit_regexp): Define, to help people realize
14641         that they need to convert their project-specific syntax-check rules
14642         to use the new _sc_search_regexp.
14643
14644 2010-04-03  Bruno Haible  <bruno@clisp.org>
14645
14646         fchdir: Fix regression introduced on 2010-03-08.
14647         * lib/unistd.in.h (fchdir): Fix declaration.
14648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
14649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
14650         REPLACE_FCHDIR.
14651         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
14652         REPLACE_FCHDIR.
14653
14654 2010-04-03  Bruno Haible  <bruno@clisp.org>
14655
14656         getpagesize: Fix C++ test error on mingw.
14657         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
14658         system does not declare the function.
14659         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
14660         declared.
14661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14662         HAVE_DECL_GETPAGESIZE.
14663         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
14664
14665 2010-04-03  Bruno Haible  <bruno@clisp.org>
14666
14667         stdio: Make C++ tests work on mingw.
14668         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
14669         does not declare the function.
14670
14671 2010-04-03  Bruno Haible  <bruno@clisp.org>
14672
14673         ftello: Fix C++ test error on mingw.
14674         * lib/stdio.in.h (ftello): Use modern idiom.
14675         * lib/ftello.c (ftello): Renamed from rpl_ftello.
14676         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
14677         is missing and that it needs to be replaced.
14678         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
14679         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
14680         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
14681
14682 2010-04-03  Bruno Haible  <bruno@clisp.org>
14683
14684         fseeko: Fix C++ test error on mingw.
14685         * lib/stdio.in.h (fseeko): Use modern idiom.
14686         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
14687         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
14688         is missing and that it needs to be replaced.
14689         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
14690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
14691         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
14692
14693 2010-04-03  Bruno Haible  <bruno@clisp.org>
14694
14695         mkstemp: Fix C++ test error on mingw.
14696         * lib/stdlib.in.h (mkstemp): Use modern idiom.
14697         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
14698         function is missing and that it needs to be replaced.
14699         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
14700         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
14701
14702 2010-04-03  Bruno Haible  <bruno@clisp.org>
14703
14704         stpncpy: Fix C++ test error on mingw.
14705         * lib/string.in.h (stpncpy): Use modern idiom.
14706         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
14707         function is missing and that it needs to be replaced.
14708         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14709         REPLACE_STPNCPY.
14710         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
14711
14712 2010-04-03  Bruno Haible  <bruno@clisp.org>
14713
14714         sys_stat: Fix C++ test error on mingw.
14715         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
14716         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
14717
14718 2010-04-03  Bruno Haible  <bruno@clisp.org>
14719
14720         pty: Update doc.
14721         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
14722
14723 2010-04-03  Bruno Haible  <bruno@clisp.org>
14724
14725         unistd: Fix C++ test error on mingw.
14726         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
14727
14728 2010-04-03  Bruno Haible  <bruno@clisp.org>
14729
14730         Update doc regarding mingw.
14731         * doc/glibc-functions/openpty.texi: Update regarding mingw.
14732         * doc/glibc-functions/login_tty.texi: Likewise.
14733         * doc/glibc-functions/forkpty.texi: Likewise.
14734
14735 2010-04-03  Bruno Haible  <bruno@clisp.org>
14736
14737         stdlib: Avoid compilation failure of c-strtold on mingw.
14738         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
14739
14740 2010-04-03  Bruno Haible  <bruno@clisp.org>
14741
14742         locale: Make C++ tests work on Cygwin and mingw.
14743         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
14744         cannot provide the function.
14745         Reported by Simon Josefsson.
14746
14747 2010-04-03  Bruno Haible  <bruno@clisp.org>
14748
14749         localename: Port to MacOS X 10.6.
14750         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
14751         memory layout of the locales in MacOS X 10.6 as well.
14752         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
14753
14754 2010-04-02  Bruno Haible  <bruno@clisp.org>
14755
14756         gnulib-tool: Ensure that long-running tests are executed last.
14757         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
14758         running tests after the one for the other tests.
14759
14760 2010-04-02  Bruno Haible  <bruno@clisp.org>
14761
14762         gnulib-tool: Ensure the tests in the main directory are executed first.
14763         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
14764         start with the current directory.
14765
14766 2010-04-02  Bruno Haible  <bruno@clisp.org>
14767
14768         Tests for module 'havelib', moved here from GNU gettext.
14769         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
14770         modifications.
14771         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
14772         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
14773         with modifications.
14774         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
14775         modifications.
14776         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
14777         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
14778         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
14779         with modifications.
14780         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
14781         with modifications.
14782         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
14783         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
14784         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
14785         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
14786         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
14787         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
14788         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
14789         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
14790         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
14791         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
14792         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
14793         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
14794         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
14795         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
14796         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
14797         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
14798         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
14799         with modifications.
14800         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
14801         with modifications.
14802         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
14803         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
14804         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
14805         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
14806         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
14807         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
14808         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
14809         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
14810         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
14811         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
14812         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
14813         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
14814         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
14815         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
14816         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
14817         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
14818         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
14819         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
14820         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
14821         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
14822         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
14823         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
14824         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
14825         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
14826         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
14827         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
14828         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
14829         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
14830         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
14831         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
14832         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
14833         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
14834         * tests/havelib/rpathx/rpathx.c: New file, from
14835         gettext/autoconf-lib-link.
14836         * tests/havelib/rpathx/Makefile.am: New file, from
14837         gettext/autoconf-lib-link.
14838         * tests/havelib/rpathx/configure.ac: New file, from
14839         gettext/autoconf-lib-link with modifications.
14840         * tests/havelib/rpathy/rpathy.c: New file, from
14841         gettext/autoconf-lib-link.
14842         * tests/havelib/rpathy/Makefile.am: New file, from
14843         gettext/autoconf-lib-link.
14844         * tests/havelib/rpathy/configure.ac: New file, from
14845         gettext/autoconf-lib-link with modifications.
14846         * tests/havelib/rpathz/rpathz.c: New file, from
14847         gettext/autoconf-lib-link.
14848         * tests/havelib/rpathz/Makefile.am: New file, from
14849         gettext/autoconf-lib-link.
14850         * tests/havelib/rpathz/configure.ac: New file, from
14851         gettext/autoconf-lib-link with modifications.
14852         * tests/havelib/rpathlx/usex.c: New file, from
14853         gettext/autoconf-lib-link.
14854         * tests/havelib/rpathlx/Makefile.am: New file, from
14855         gettext/autoconf-lib-link.
14856         * tests/havelib/rpathlx/configure.ac: New file, from
14857         gettext/autoconf-lib-link with modifications.
14858         * tests/havelib/rpathly/usey.c: New file, from
14859         gettext/autoconf-lib-link.
14860         * tests/havelib/rpathly/Makefile.am: New file, from
14861         gettext/autoconf-lib-link.
14862         * tests/havelib/rpathly/configure.ac: New file, from
14863         gettext/autoconf-lib-link with modifications.
14864         * tests/havelib/rpathlz/usez.c: New file, from
14865         gettext/autoconf-lib-link.
14866         * tests/havelib/rpathlz/Makefile.am: New file, from
14867         gettext/autoconf-lib-link.
14868         * tests/havelib/rpathlz/configure.ac: New file, from
14869         gettext/autoconf-lib-link with modifications.
14870         * tests/havelib/rpathlyx/usey.c: New file, from
14871         gettext/autoconf-lib-link.
14872         * tests/havelib/rpathlyx/Makefile.am: New file, from
14873         gettext/autoconf-lib-link.
14874         * tests/havelib/rpathlyx/configure.ac: New file, from
14875         gettext/autoconf-lib-link with modifications.
14876         * tests/havelib/rpathlzyx/usez.c: New file, from
14877         gettext/autoconf-lib-link.
14878         * tests/havelib/rpathlzyx/Makefile.am: New file, from
14879         gettext/autoconf-lib-link.
14880         * tests/havelib/rpathlzyx/configure.ac: New file, from
14881         gettext/autoconf-lib-link with modifications.
14882         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
14883         with modifications.
14884
14885 2010-04-02  Bruno Haible  <bruno@clisp.org>
14886
14887         gnulib-tool: Create distributed built sources also for the tests.
14888         * gnulib-tool (func_create_testdir): Also generate distributed built
14889         sources in the tests directory.
14890
14891 2010-04-02  Bruno Haible  <bruno@clisp.org>
14892
14893         gnulib-tool: Obey user's environment variables.
14894         * gnulib-tool (func_create_testdir): When creating built sources,
14895         respect the environment variables for autoconf, automake, etc. given by
14896         the user.
14897
14898 2010-04-02  Bruno Haible  <bruno@clisp.org>
14899
14900         gnulib-tool: Provide the value of --m4-base to modules.
14901         * gnulib-tool (func_import, func_create_testdir): Emit a definition
14902         of gl_m4_base.
14903
14904 2010-04-02  Eric Blake  <eblake@redhat.com>
14905
14906         maint.mk: fix some fallout
14907         * NEWS: Document the incompatible change, and its effect on cfg.mk.
14908         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
14909
14910 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14911
14912         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
14913         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
14914         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
14915         (sc_cast_of_x_alloc_return_value): Likewise.
14916         (sc_cast_of_alloca_return_value): Likewise.
14917         (sc_space_tab): Likewise.
14918         (sc_prohibit_atoi_atof): Likewise.
14919         (sc_prohibit_magic_number_exit): Likewise.
14920         (sc_error_exit_success): Likewise.
14921         (sc_file_system): Likewise.
14922         (sc_prohibit_have_config_h): Likewise.
14923         (sc_require_config_h): Likewise.
14924         (sc_prohibit_HAVE_MBRTOWC): Likewise.
14925         (sc_obsolete_symbols): Likewise.
14926         (sc_changelog): Likewise.
14927         (sc_program_name): Likewise.
14928         (sc_the_the): Likewise.
14929         (sc_trailing_blank): Likewise.
14930         (sc_two_space_separator_in_usage): Likewise.
14931         (sc_useless_cpp_parens): Likewise.
14932         (sc_GPL_version): Likewise.
14933         (sc_GFDL_version): Likewise.
14934         (sc_texinfo_acronym): Likewise.
14935         (sc_prohibit_cvs_keyword): Likewise.
14936         (sc_prohibit_stat_st_blocks): Likewise.
14937         (sc_prohibit_S_IS_definition): Likewise.
14938         (sc_redundant_const): Likewise.
14939         (sc_makefile_TAB_only_indentation): Likewise.
14940         (sc_m4_quote_check): Likewise.
14941         (sc_makefile_path_separator_check): Likewise.
14942         (sc_copyright_check): Likewise.
14943         (sc_Wundef_boolean): Likewise.
14944         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14945
14946         maint.mk: match 0 or more whitespace-before-function-call '('
14947         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
14948         that have zero or two-and-more spaces between the function name
14949         and the open parenthesis.
14950         (sc_error_message_warn_fatal): Likewise.
14951         (sc_error_message_uppercase): Likewise.
14952         (sc_error_message_period): Likewise.
14953
14954 2010-03-31  Eric Blake  <eblake@redhat.com>
14955
14956         maint.mk: check for [ as well as test
14957         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
14958         Based on a libvirt report by Matthias Bolte.
14959
14960         gnumakefile: don't squelch _version output
14961         * top/GNUmakefile (_version): Create one-shot dependency rather
14962         than using $(shell) when version must be regenerated.
14963         (_autoreconf): Run verbosely, by default.
14964
14965         sys_time: avoid compiler warnings
14966         * lib/sys_time.in.h (includes): Ensure gcc pragma is
14967         unconditional, fixing regression from 2010-03-29.
14968         Reported by Simon Josefsson.
14969
14970 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14971
14972         maint.mk: s/_header_without_use/_sc_header_without_use/
14973         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
14974         (sc_prohibit_assert_without_use): Use the new name.
14975         (sc_prohibit_close_stream_without_use): Likewise.
14976         (sc_prohibit_getopt_without_use): Likewise.
14977         (sc_prohibit_quotearg_without_use): Likewise.
14978         (sc_prohibit_quote_without_use): Likewise.
14979         (sc_prohibit_long_options_without_use): Likewise.
14980         (sc_prohibit_inttostr_without_use): Likewise.
14981         (sc_prohibit_ignore_value_without_use): Likewise.
14982         (sc_prohibit_error_without_use): Likewise.
14983         (sc_prohibit_xalloc_without_use): Likewise.
14984         (sc_prohibit_hash_without_use): Likewise.
14985         (sc_prohibit_hash_pjw_without_use): Likewise.
14986         (sc_prohibit_safe_read_without_use): Likewise.
14987         (sc_prohibit_argmatch_without_use): Likewise.
14988         (sc_prohibit_canonicalize_without_use): Likewise.
14989         (sc_prohibit_root_dev_ino_without_use): Likewise.
14990         (sc_prohibit_openat_without_use): Likewise.
14991         (sc_prohibit_c_ctype_without_use): Likewise.
14992         (sc_prohibit_signal_without_use): Likewise.
14993         (sc_prohibit_intprops_without_use): Likewise.
14994
14995 2010-03-30  Eric Blake  <eblake@redhat.com>
14996
14997         maint: improve module indicators
14998         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
14999         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
15000         columns, and avoid extra macro expansion.
15001
15002         fdopendir: work around FreeBSD bug
15003         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15004         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
15005         * modules/dirent (Makefile.am): Substitute it.
15006         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
15007         declaration.
15008         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
15009         fix.
15010         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15011
15012 2010-03-29  Bruno Haible  <bruno@clisp.org>
15013
15014         Emit #pragma system_header after the inclusion guard, not before.
15015         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
15016         guard that spans the entire file, not before. This enables an
15017         optimization in GCC's preprocessor.
15018         * lib/ctype.in.h: Likewise.
15019         * lib/dirent.in.h: Likewise.
15020         * lib/errno.in.h: Likewise.
15021         * lib/float.in.h: Likewise.
15022         * lib/getopt.in.h: Likewise.
15023         * lib/iconv.in.h: Likewise.
15024         * lib/langinfo.in.h: Likewise.
15025         * lib/locale.in.h: Likewise.
15026         * lib/math.in.h: Likewise.
15027         * lib/netdb.in.h: Likewise.
15028         * lib/netinet_in.in.h: Likewise.
15029         * lib/pty.in.h: Likewise.
15030         * lib/sched.in.h: Likewise.
15031         * lib/se-selinux.in.h: Likewise.
15032         * lib/search.in.h: Likewise.
15033         * lib/spawn.in.h: Likewise.
15034         * lib/stdarg.in.h: Likewise.
15035         * lib/stdint.in.h: Likewise.
15036         * lib/string.in.h: Likewise.
15037         * lib/strings.in.h: Likewise.
15038         * lib/sys_file.in.h: Likewise.
15039         * lib/sys_ioctl.in.h: Likewise.
15040         * lib/sys_time.in.h: Likewise.
15041         * lib/sys_times.in.h: Likewise.
15042         * lib/sys_utsname.in.h: Likewise.
15043         * lib/sys_wait.in.h: Likewise.
15044         * lib/sysexits.in.h: Likewise.
15045         * lib/wctype.in.h: Likewise.
15046
15047 2010-03-28  James Youngman  <jay@gnu.org>
15048
15049         save-cwd: don't leak a file descriptor when the caller execs.
15050         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
15051         saved file descriptor.
15052         * modules/save-cwd (Depends-on): Depend on cloexec.
15053
15054 2010-03-29  Bruno Haible  <bruno@clisp.org>
15055
15056         Remove vestiges of fts-lgpl module.
15057         * lib/fts_.h: Assume GNULIB_FTS is 1.
15058         * lib/fts.c: Likewise.
15059         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15060
15061 2010-03-28  Bruno Haible  <bruno@clisp.org>
15062
15063         Fix definition of tests witness macro.
15064         * gnulib-tool (func_import): Fix definition of witness macro.
15065
15066 2010-03-28  Bruno Haible  <bruno@clisp.org>
15067
15068         Fix ioctl's protoype on glibc systems.
15069         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
15070         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
15071         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
15072         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
15073         signature. If not, arrange to replace the ioctl function.
15074         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15075         REPLACE_IOCTL.
15076         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
15077         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
15078         Reported by Ludovic Courtès <ludo@gnu.org>.
15079
15080 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
15081
15082         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
15083         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
15084         made it so grep -r --include=GLOB* ... did not work.
15085
15086 2010-03-26  Jim Meyering  <meyering@redhat.com>
15087             Eric Blake  <eblake@redhat.com>
15088
15089         maint.mk: prohibit use of test's -o and -a operators
15090         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
15091
15092 2010-03-28  Bruno Haible  <bruno@clisp.org>
15093
15094         Remove unused GNULIB_XYZ macro definitions.
15095         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
15096         invocation.
15097
15098 2010-03-28  Bruno Haible  <bruno@clisp.org>
15099
15100         Mark privileged tests modules.
15101         * modules/idpriv-drop-tests (Status): New section.
15102         * modules/idpriv-droptemp-tests (Status): New section.
15103
15104 2010-03-28  Bruno Haible  <bruno@clisp.org>
15105
15106         Split C++ tests into separate tests modules.
15107         * modules/dirent-c++-tests: New file, extracted from
15108         modules/dirent-tests.
15109         * modules/dirent-tests: Depend on it.
15110         * modules/fcntl-h-c++-tests: New file, extracted from
15111         modules/fcntl-h-tests.
15112         * modules/fcntl-h-tests: Depend on it.
15113         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
15114         * modules/glob-tests: Depend on it.
15115         * modules/iconv-h-c++-tests: New file, extracted from
15116         modules/iconv-h-tests.
15117         * modules/iconv-h-tests: Depend on it.
15118         * modules/langinfo-c++-tests: New file, extracted from
15119         modules/langinfo-tests.
15120         * modules/langinfo-tests: Depend on it.
15121         * modules/locale-c++-tests: New file, extracted from
15122         modules/locale-tests.
15123         * modules/locale-tests: Depend on it.
15124         * modules/math-c++-tests: New file, extracted from modules/math-tests.
15125         * modules/math-tests: Depend on it.
15126         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
15127         * modules/pty-tests: Depend on it.
15128         * modules/search-c++-tests: New file, extracted from
15129         modules/search-tests.
15130         * modules/search-tests: Depend on it.
15131         * modules/signal-c++-tests: New file, extracted from
15132         modules/signal-tests.
15133         * modules/signal-tests: Depend on it.
15134         * modules/spawn-c++-tests: New file, extracted from
15135         modules/spawn-tests.
15136         * modules/spawn-tests: Depend on it.
15137         * modules/stdio-c++-tests: New file, extracted from
15138         modules/stdio-tests.
15139         * modules/stdio-tests: Depend on it.
15140         * modules/stdlib-c++-tests: New file, extracted from
15141         modules/stdlib-tests.
15142         * modules/stdlib-tests: Depend on it.
15143         * modules/string-c++-tests: New file, extracted from
15144         modules/string-tests.
15145         * modules/string-tests: Depend on it.
15146         * modules/sys_ioctl-c++-tests: New file, extracted from
15147         modules/sys_ioctl-tests.
15148         * modules/sys_ioctl-tests: Depend on it.
15149         * modules/sys_select-c++-tests: New file, extracted from
15150         modules/sys_select-tests.
15151         * modules/sys_select-tests: Depend on it.
15152         * modules/sys_socket-c++-tests: New file, extracted from
15153         modules/sys_socket-tests.
15154         * modules/sys_socket-tests: Depend on it.
15155         * modules/sys_stat-c++-tests: New file, extracted from
15156         modules/sys_stat-tests.
15157         * modules/sys_stat-tests: Depend on it.
15158         * modules/sys_time-c++-tests: New file, extracted from
15159         modules/sys_time-tests.
15160         * modules/sys_time-tests: Depend on it.
15161         * modules/time-c++-tests: New file, extracted from modules/time-tests.
15162         * modules/time-tests: Depend on it.
15163         * modules/unistd-c++-tests: New file, extracted from
15164         modules/unistd-tests.
15165         * modules/unistd-tests: Depend on it.
15166         * modules/wchar-c++-tests: New file, extracted from
15167         modules/wchar-tests.
15168         * modules/wchar-tests: Depend on it.
15169         * modules/wctype-c++-tests: New file, extracted from
15170         modules/wctype-tests.
15171         * modules/wctype-tests: Depend on it.
15172         Reported by Simon Josefsson.
15173
15174 2010-03-28  Bruno Haible  <bruno@clisp.org>
15175
15176         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
15177         * gnulib-tool (func_exists_module): New function, extracted from
15178         func_verify_module.
15179         (func_verify_module): Use it.
15180         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
15181         'foo' only if 'foo' exists.
15182         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
15183         module.
15184
15185 2010-03-28  Bruno Haible  <bruno@clisp.org>
15186
15187         gnulib-tool: Add support for special categories of tests.
15188         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
15189         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
15190         (func_usage): Document them.
15191         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
15192         inc_unportable_tests, inc_all_tests): New variables.
15193         (func_acceptable): Consider these variables.
15194         (func_modules_transitive_closure): Make it work when the 'Status' field
15195         consists of multiple words.
15196         (func_import): Store and restore the values of inc_cxx_tests,
15197         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
15198         inc_all_tests in gnulib-comp.m4.
15199         (func_create_testdir): Set inc_all_tests to true.
15200         * doc/gnulib.texi (Extra tests modules): New section.
15201         Suggested by Jim Meyering.
15202
15203 2010-03-28  Bruno Haible  <bruno@clisp.org>
15204
15205         ansi-c++-opt: Allow turning off the C++ build by default.
15206         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
15207         gl_CXX_CHOICE_DEFAULT_NO is defined.
15208         Requested by Eric Blake.
15209
15210 2010-03-28  Bruno Haible  <bruno@clisp.org>
15211
15212         unistd: Avoid #define replacements in C++ mode.
15213         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15214         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15215         setsockopt, shutdown, select): In C++, attach a warning to the function
15216         if possible, rather than #defining the symbol to a dysfunctional alias.
15217         Reported by John W. Eaton <jwe@gnu.org>.
15218
15219 2010-03-28  Bruno Haible  <bruno@clisp.org>
15220
15221         Fix link errors on mingw.
15222         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
15223         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
15224         $(LIBSOCKET).
15225         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
15226         $(LIBSOCKET).
15227
15228 2010-03-28  Bruno Haible  <bruno@clisp.org>
15229             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15230
15231         lib-ignore: Determine different options for different compilers.
15232         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
15233         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
15234         Add comments.
15235         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
15236         * NEWS: Mention the change.
15237
15238 2010-03-27  Bruno Haible  <bruno@clisp.org>
15239
15240         Remove unused GNULIB_XYZ macro definitions.
15241         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15242         * modules/fseek (configure.ac): Likewise.
15243         * modules/ioctl (configure.ac): Likewise.
15244         * modules/open (configure.ac): Likewise.
15245         * modules/stdlib-safer (configure.ac): Likewise.
15246
15247 2010-03-27  Bruno Haible  <bruno@clisp.org>
15248
15249         Add a remark about certain modules.
15250         * modules/malloc (Comment): New section.
15251         * modules/realloc (Comment): Likewise.
15252         * modules/sigpipe (Comment): Likewise.
15253
15254 2010-03-27  Bruno Haible  <bruno@clisp.org>
15255
15256         Resolve conflict between the two kinds of module indicators.
15257         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
15258         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
15259         * modules/canonicalize (configure.ac): Invoke
15260         gl_MODULE_INDICATOR_FOR_TESTS.
15261         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
15262         GNULIB_XYZ.
15263         * tests/test-dirent-c++.cc: Likewise.
15264         * tests/test-dirent-safer.c: Likewise.
15265         * tests/test-dup2.c: Likewise.
15266         * tests/test-fchdir.c: Likewise.
15267         * tests/test-fcntl-h-c++.cc: Likewise.
15268         * tests/test-getopt.c: Likewise.
15269         * tests/test-getopt.h: Likewise.
15270         * tests/test-langinfo-c++.cc: Likewise.
15271         * tests/test-locale-c++.cc: Likewise.
15272         * tests/test-math-c++.cc: Likewise.
15273         * tests/test-pty-c++.cc: Likewise.
15274         * tests/test-search-c++.cc: Likewise.
15275         * tests/test-signal-c++.cc: Likewise.
15276         * tests/test-spawn-c++.cc: Likewise.
15277         * tests/test-stdio-c++.cc: Likewise.
15278         * tests/test-stdlib-c++.cc: Likewise.
15279         * tests/test-string-c++.cc: Likewise.
15280         * tests/test-sys_ioctl-c++.cc: Likewise.
15281         * tests/test-sys_select-c++.cc: Likewise.
15282         * tests/test-sys_socket-c++.cc: Likewise.
15283         * tests/test-sys_stat-c++.cc: Likewise.
15284         * tests/test-sys_time-c++.cc: Likewise.
15285         * tests/test-time-c++.cc: Likewise.
15286         * tests/test-unistd-c++.cc: Likewise.
15287         * tests/test-wchar-c++.cc: Likewise.
15288         * tests/uninorm/test-u8-nfc.c: Likewise.
15289         * tests/uninorm/test-u8-nfd.c: Likewise.
15290         * tests/uninorm/test-u8-nfkc.c: Likewise.
15291         * tests/uninorm/test-u8-nfkd.c: Likewise.
15292         * tests/uninorm/test-u16-nfc.c: Likewise.
15293         * tests/uninorm/test-u16-nfd.c: Likewise.
15294         * tests/uninorm/test-u16-nfkc.c: Likewise.
15295         * tests/uninorm/test-u16-nfkd.c: Likewise.
15296         * tests/uninorm/test-u32-nfc.c: Likewise.
15297         * tests/uninorm/test-u32-nfc-big.c: Likewise.
15298         * tests/uninorm/test-u32-nfd.c: Likewise.
15299         * tests/uninorm/test-u32-nfd-big.c: Likewise.
15300         * tests/uninorm/test-u32-nfkc.c: Likewise.
15301         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
15302         * tests/uninorm/test-u32-nfkd.c: Likewise.
15303         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
15304         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15305
15306 2010-03-27  Bruno Haible  <bruno@clisp.org>
15307
15308         Distinguish two kinds of module indicators.
15309         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
15310         gl_MODULE_INDICATOR.
15311         (gl_MODULE_INDICATOR): New macro.
15312         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15313         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
15314         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15315         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15316         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15317         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15318         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15319         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15320         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15321         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15322         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15323         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15324         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15325         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15326         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15327         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15328         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15329         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15330         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15331         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15332         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15333         * modules/cloexec (configure.ac): Likewise.
15334         * modules/getopt-gnu (configure.ac): Likewise.
15335         * modules/uninorm/u8-normalize (configure.ac): Likewise.
15336         * modules/uninorm/u16-normalize (configure.ac): Likewise.
15337         * modules/uninorm/u32-normalize (configure.ac): Likewise.
15338         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
15339
15340 2010-03-27  Bruno Haible  <bruno@clisp.org>
15341
15342         New module description field 'Comment'.
15343         * gnulib-tool: New option --extract-comment.
15344         (func_usage): Document it.
15345         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
15346         (func_get_comment): New function.
15347         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
15348
15349 2010-03-27  Bruno Haible  <bruno@clisp.org>
15350
15351         Addendum to 2010-02-07 commit.
15352         * gnulib-tool (func_usage): Document --extract-applicability option.
15353
15354 2010-03-27  Bruno Haible  <bruno@clisp.org>
15355
15356         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
15357         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
15358         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
15359         rather than link errors.
15360
15361 2010-03-27  Bruno Haible  <bruno@clisp.org>
15362
15363         Avoid side effects from tests-related modules on the compilation of lib.
15364         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
15365         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
15366         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
15367         parameter. Emit into AM_CPPFLAGS a definition of the designated C
15368         macro.
15369         (func_import): Define a witness macro. Assign it a value that depends
15370         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
15371         tests-related modules.
15372         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
15373         Reported by Jim Meyering.
15374
15375 2010-03-27  Bruno Haible  <bruno@clisp.org>
15376
15377         Factorize common .m4 code.
15378         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
15379         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
15380         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
15381         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
15382         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15383         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
15384         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
15385         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15386         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15387         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15388         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
15389         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15390         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15391         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15392         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15393         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
15394         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15395         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15396         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15397         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
15398         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
15399         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15400         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15401         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15402         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15403         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15404         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
15405         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
15406         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
15407         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15408         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15409         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15410
15411 2010-03-27  Bruno Haible  <bruno@clisp.org>
15412
15413         Fix a compilation error on Cygwin with g++ >= 4.3.
15414         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
15415         if it is undefined or if we alias it to chmod.
15416         (lstat): Don't warn about the use of this function if it is undefined
15417         or if we alias it to stat.
15418         Reported by Simon Josefsson.
15419
15420 2010-03-27  Bruno Haible  <bruno@clisp.org>
15421
15422         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
15423         * modules/getlogin (configure.ac): Update.
15424
15425         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
15426         * modules/getlogin_r (configure.ac): Update.
15427
15428         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
15429         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
15430         * modules/inet_ntop (configure.ac): Update.
15431
15432         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
15433         * modules/inet_pton (configure.ac): Update.
15434
15435         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
15436         * modules/mbslen (configure.ac): Update.
15437
15438         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
15439         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
15440         * modules/forkpty (configure.ac): Update.
15441         * modules/openpty (configure.ac): Update.
15442
15443 2010-03-26  Simon Josefsson  <simon@josefsson.org>
15444
15445         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
15446         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
15447
15448 2010-03-25  Eric Blake  <eblake@redhat.com>
15449
15450         maint: use pragma consistently across replacement headers
15451         * lib/ctype.in.h (system_header): Hoist for consistent placement.
15452         * lib/dirent.in.h (system_header): Likewise.
15453         * lib/errno.in.h (system_header): Likewise.
15454         * lib/float.in.h (system_header): Likewise.
15455         * lib/getopt.in.h (system_header): Likewise.
15456         * lib/iconv.in.h (system_header): Likewise.
15457         * lib/inttypes.in.h (system_header): Likewise.
15458         * lib/langinfo.in.h (system_header): Likewise.
15459         * lib/locale.in.h (system_header): Likewise.
15460         * lib/math.in.h (system_header): Likewise.
15461         * lib/netdb.in.h (system_header): Likewise.
15462         * lib/netinet_in.in.h (system_header): Likewise.
15463         * lib/pty.in.h (system_header): Likewise.
15464         * lib/sched.in.h (system_header): Likewise.
15465         * lib/se-selinux.in.h (system_header): Likewise.
15466         * lib/search.in.h (system_header): Likewise.
15467         * lib/spawn.in.h (system_header): Likewise.
15468         * lib/stdarg.in.h (system_header): Likewise.
15469         * lib/stdint.in.h (system_header): Likewise.
15470         * lib/string.in.h (system_header): Likewise.
15471         * lib/strings.in.h (system_header): Likewise.
15472         * lib/sys_file.in.h (system_header): Likewise.
15473         * lib/sys_ioctl.in.h (system_header): Likewise.
15474         * lib/sys_socket.in.h (system_header): Likewise.
15475         * lib/sys_times.in.h (system_header): Likewise.
15476         * lib/sys_utsname.in.h (system_header): Likewise.
15477         * lib/sys_wait.in.h (system_header): Likewise.
15478         * lib/sysexits.in.h (system_header): Likewise.
15479         * lib/unistd.in.h (system_header): Likewise.
15480         * lib/wctype.in.h (system_header): Likewise.
15481
15482         arpa/inet: fix mingw compilation warning
15483         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
15484         Reported by Matthew Bolte.
15485
15486 2010-03-25  Bruno Haible  <bruno@clisp.org>
15487
15488         Avoid collision between gnulib wrapper and libintl wrapper.
15489         * lib/printf.c (printf): Don't define if a printf wrapper is already
15490         defined in intl/printf.c.
15491         Reported by Michel Boaventura <michel@michelboaventura.com>.
15492
15493 2010-03-25  Bruno Haible  <bruno@clisp.org>
15494
15495         Use ANSI C.
15496         * lib/readutmp.h (getutent): Provide ANSI C prototype.
15497
15498 2010-03-25  Bruno Haible  <bruno@clisp.org>
15499
15500         Minor formatting changes.
15501         * lib/acosl.c: Insert space before function argument list.
15502         * lib/argz.c: Likewise.
15503         * lib/asinl.c: Likewise.
15504         * lib/expl.c: Likewise.
15505         * lib/gen-uni-tables.c: Likewise.
15506         * lib/gettext.h: Likewise.
15507         * lib/glthread/lock.h: Likewise.
15508         * lib/tanl.c: Likewise.
15509         * lib/uniname/uniname.c: Likewise.
15510         * tests/test-idpriv-drop.c: Likewise.
15511         * tests/test-idpriv-droptemp.c: Likewise.
15512         * tests/test-lock.c: Likewise.
15513         * tests/test-tls.c: Likewise.
15514         * lib/argp-help.c: Insert space before function-like macro argument
15515         list.
15516         * lib/memcmp.c: Likewise.
15517         * tests/test-base64.c: Likewise.
15518         * lib/localename.c: Insert space before sizeof's argument list.
15519         * lib/safe-alloc.h: Likewise.
15520         * lib/file-set.h: Insert space before macro argument list.
15521         * tests/test-argp.c: Likewise.
15522         * lib/argp-namefrob.h: Insert space before function parameter list.
15523         * lib/getaddrinfo.c: Likewise.
15524         * lib/netdb.in.h: Likewise.
15525         * lib/parse-duration.h: Likewise.
15526         * lib/parse-duration.c: Likewise.
15527         * lib/poll.c: Likewise.
15528         * lib/select.c: Likewise.
15529         * lib/trim.h: Likewise.
15530         * tests/test-usleep.c: Likewise.
15531         * lib/ldexpl.c: Insert space before function parameter list and before
15532         function argument list.
15533         * lib/logl.c: Likewise.
15534         * lib/sqrtl.c: Likewise.
15535         * lib/trim.c: Likewise.
15536         * lib/cosl.c: Use GNU style indentation. Insert space before function
15537         argument list.
15538         * lib/sinl.c: Likewise.
15539         * lib/tsearch.c: Insert space after 'for'.
15540         Reported by Jim Meyering.
15541
15542 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
15543
15544         * maint.mk (sc_Wundef_boolean): Check for the presence of the
15545         config header before grepping, as it's not present before
15546         autoreconf/configure are run.  Reported by Simon Josefsson.
15547
15548 2010-03-23  Bruno Haible  <bruno@clisp.org>
15549
15550         pt_chown: Make it work with automake < 1.11.
15551         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
15552         Reported by Simon Josefsson.
15553
15554 2010-03-23  Bruno Haible  <bruno@clisp.org>
15555
15556         pt_chown: Don't depend on GPLed modules.
15557         * lib/pt_chown.c: Don't include idpriv.h.
15558         (main): Don't drop privileges.
15559         * modules/pt_chown (Depends-on): Remove idpriv-drop.
15560         Reported by Simon Josefsson.
15561
15562 2010-03-24  Simon Josefsson  <simon@josefsson.org>
15563
15564         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
15565         suggestions from karl@freefriends.org (Karl Berry).
15566
15567 2010-03-22  Eric Blake  <eblake@redhat.com>
15568
15569         gethostname: further tweaks
15570         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
15571         are overriding gethostname.
15572         Suggested by Bruno Haible.
15573
15574 2010-03-21  Bruno Haible  <bruno@clisp.org>
15575
15576         Fix comments.
15577         * lib/forkpty.c (rpl_forkpty): Fix comment.
15578         * lib/openpty.c (rpl_openpty): Likewise.
15579         Reported by Eric Blake.
15580
15581 2010-03-22  Eric Blake  <eblake@redhat.com>
15582
15583         gethostname: fix build on mingw
15584         * lib/unistd.in.h (includes): Work around fact that mingw
15585         <winsock2.h> re-includes <unistd.h>, by avoiding any
15586         redeclarations if we are being included by <winsock2.h>.
15587         Reported by Matthias Bolte.
15588
15589 2010-03-21  Bruno Haible  <bruno@clisp.org>
15590
15591         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15592         * lib/forkpty.c (forkpty): New replacement function, from glibc with
15593         modifications.
15594         * lib/pty.in.h (forkpty): Update declaration. Add comments.
15595         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
15596         provide the replacement.
15597         * modules/forkpty (Depends-on): Add openpty, login_tty.
15598         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
15599         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
15600         * doc/glibc-functions/forkpty.texi: More supported platforms.
15601         * config/srclist.txt: Add forkpty.c (commented).
15602
15603 2010-03-21  Bruno Haible  <bruno@clisp.org>
15604
15605         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
15606         (Makefile.am): Verify that PTY_LIB is defined.
15607
15608         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
15609
15610 2010-03-21  Bruno Haible  <bruno@clisp.org>
15611
15612         Tests for module 'login_tty'.
15613         * modules/login_tty-tests: New file.
15614         * tests/test-login_tty.c: New file.
15615
15616         New module 'login_tty'.
15617         * lib/login_tty.c: New file.
15618         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
15619         * modules/login_tty: New file.
15620         * doc/glibc-functions/login_tty.texi: Mention the new module.
15621
15622 2010-03-21  Bruno Haible  <bruno@clisp.org>
15623
15624         login_tty: Documentation.
15625         * doc/glibc-functions/login_tty.texi: New file.
15626         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
15627
15628 2010-03-21  Bruno Haible  <bruno@clisp.org>
15629
15630         pty: Consistent macro naming.
15631         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
15632         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
15633         * modules/pty (configure.ac): Update.
15634
15635 2010-03-21  Bruno Haible  <bruno@clisp.org>
15636
15637         Tests for openpty: Make stricter.
15638         * tests/test-openpty.c (main): Add test of canonical processing and
15639         erase.
15640         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
15641
15642         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15643         * lib/openpty.c (openpty): New replacement function.
15644         * lib/pty.in.h: Include <termios.h>.
15645         (openpty): Update declaration. Add comments.
15646         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
15647         is not declared, arrange to provide the replacement. Check for _getpty
15648         and posix_openpt.
15649         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
15650         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
15651         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
15652         * modules/pty-tests (test_pty_c___LDADD): New variable.
15653         * doc/glibc-functions/openpty.texi: More supported platforms.
15654
15655 2010-03-21  Bruno Haible  <bruno@clisp.org>
15656
15657         setenv: Tweaks.
15658         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
15659         the test program.
15660         * doc/posix-functions/setenv.texi: Update platforms list.
15661
15662 2010-03-21  Bruno Haible  <bruno@clisp.org>
15663
15664         New module 'unlockpt'.
15665         * lib/unlockpt.c: New file, from glibc with modifications.
15666         * m4/unlockpt.m4: New file.
15667         * modules/unlockpt: New file.
15668         * lib/stdlib.in.h (unlockpt): New declaration.
15669         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
15670         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
15671         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
15672         HAVE_UNLOCKPT.
15673         * doc/posix-functions/unlockpt.texi: Mention the new module.
15674         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
15675         * config/srclist.txt: Add unlockpt.c (commented).
15676
15677 2010-03-21  Jim Meyering  <meyering@redhat.com>
15678
15679         maint.mk: prohibit inclusion of "intprops.h" without use
15680         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
15681
15682 2010-03-21  Bruno Haible  <bruno@clisp.org>
15683
15684         New module 'grantpt'.
15685         * lib/grantpt.c: New file, from glibc with modifications.
15686         * m4/grantpt.m4: New file.
15687         * modules/grantpt: New file.
15688         * lib/stdlib.in.h (grantpt): New declaration.
15689         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
15690         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
15691         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
15692         HAVE_GRANTPT.
15693         * doc/posix-functions/grantpt.texi: Mention the new module.
15694         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
15695         * config/srclist.txt: Add grantpt.c (commented).
15696
15697 2010-03-21  Bruno Haible  <bruno@clisp.org>
15698
15699         New module 'pt_chown'.
15700         * lib/pt_chown.c: New file, from glibc with modifications.
15701         * lib/pty-private.h: New file, from glibc with modifications.
15702         * modules/pt_chown: New file.
15703         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
15704
15705 2010-03-21  Bruno Haible  <bruno@clisp.org>
15706
15707         Tests for module 'ptsname'.
15708         * modules/ptsname-tests: New file.
15709         * tests/test-ptsname.c: New file.
15710
15711         New module 'ptsname'.
15712         * lib/ptsname.c: New file, from glibc with modifications.
15713         * m4/ptsname.m4: New file.
15714         * modules/ptsname: New file.
15715         * lib/stdlib.in.h (ptsname): New declaration.
15716         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
15717         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
15718         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
15719         HAVE_PTSNAME.
15720         * doc/posix-functions/ptsname.texi: Mention the new module.
15721         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
15722         * config/srclist.txt: Add ptsname.c (commented).
15723
15724 2010-03-21  Bruno Haible  <bruno@clisp.org>
15725
15726         Tests for module 'ttyname_r'.
15727         * modules/ttyname_r-tests: New file.
15728         * tests/test-ttyname_r.c: New file.
15729
15730         New module 'ttyname_r'.
15731         * lib/ttyname_r.c: New file.
15732         * m4/ttyname_r.m4: New file.
15733         * modules/ttyname_r: New file.
15734         * lib/unistd.in.h (ttyname_r): New declaration.
15735         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
15736         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
15737         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
15738         HAVE_TTYNAME_R.
15739         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
15740         * doc/posix-functions/ttyname_r.texi: Mention the new module.
15741
15742 2010-03-20  Bruno Haible  <bruno@clisp.org>
15743
15744         signal: Undefine macro definitions in C++ mode.
15745         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
15746         sigfillset): Undefine macro definitions from the system header in C++
15747         mode.
15748         Reported by John W. Eaton <jwe@gnu.org>.
15749
15750 2010-03-20  Bruno Haible  <bruno@clisp.org>
15751
15752         Ensure no #include statements inside extern "C" { ... }.
15753         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
15754         contain #include statements.
15755         * lib/time.in.h: Likewise.
15756
15757 2010-03-20  Bruno Haible  <bruno@clisp.org>
15758
15759         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
15760         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
15761         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
15762         Reported by John W. Eaton <jwe@gnu.org>.
15763
15764 2010-03-20  Bruno Haible  <bruno@clisp.org>
15765
15766         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
15767         Reported by Jim Meyering.
15768
15769 2010-03-20  Bruno Haible  <bruno@clisp.org>
15770
15771         pipe: Set errno upon failure.
15772         * lib/pipe.h: Specify that when -1 is returned, errno is set.
15773         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
15774         errno value in error message.
15775
15776 2010-03-20  Bruno Haible  <bruno@clisp.org>
15777             Jim Meyering  <meyering@redhat.com>
15778
15779         lchown: Avoid "unused variable" warning.
15780         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
15781
15782 2010-03-20  Bruno Haible  <bruno@clisp.org>
15783
15784         Work around unlink() bug on MacOS X 10.5.6.
15785         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
15786         attempting to unlink a parent directory.
15787         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
15788         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
15789         activate for the replacement function.
15790         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
15791
15792 2010-03-20  Bruno Haible  <bruno@clisp.org>
15793
15794         Fix link errors on Solaris 8.
15795         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
15796         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
15797
15798 2010-03-19  Jim Meyering  <meyering@redhat.com>
15799
15800         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
15801         The _LIBC implementation of build_range_exp correctly honors the
15802         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
15803         However, the non-_LIBC implementation would ignore that syntax-bit
15804         flag and return REG_ERANGE unconditionally.
15805         This change makes it honor that flag.
15806         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
15807         Make two pointer parameters "const".
15808         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
15809         (parse_bracket_exp): Update caller.
15810
15811         regex.m4: correct the reversed range endpoint ([b-a]) test
15812         * m4/regex.m4: When requiring that [b-a] evoke failure,
15813         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
15814         test pass once again for x86-based systems.
15815
15816 2010-03-19  Bruno Haible  <bruno@clisp.org>
15817
15818         scandir: Fix link error on Solaris 8.
15819         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
15820         macros.
15821
15822 2010-03-19  Bruno Haible  <bruno@clisp.org>
15823
15824         getusershell: Fix documentation.
15825         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
15826         module.
15827         * doc/glibc-functions/setusershell.texi: Likewise.
15828
15829         getusershell: Provide declaration, missing on Solaris 9.
15830         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
15831         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
15832         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
15833         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
15834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15835         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
15836         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
15837         HAVE_GETUSERSHELL.
15838         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
15839
15840 2010-03-19  Bruno Haible  <bruno@clisp.org>
15841
15842         wctype: Provide iswblank function.
15843         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
15844         exists and is fine.
15845         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
15846         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
15847         * tests/test-wctype.c (main): Re-enable the iswblank tests.
15848         * doc/posix-functions/iswblank.texi: Update.
15849
15850 2010-03-19  Bruno Haible  <bruno@clisp.org>
15851
15852         Tests of module 'pty' in C++ mode.
15853         * modules/pty-tests: New file.
15854         * tests/test-pty-c++.cc: New file.
15855         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15856
15857 2010-03-19  Eric Blake  <eblake@redhat.com>
15858
15859         logb: fix documentation
15860         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
15861         1.5 declaration bug.
15862
15863         forkpty, openpty: prefer glibc's const-safe prototype
15864         * lib/forkpty.c (rpl_forkpty): New file.
15865         * lib/openpty.c (rpl_openpty): Likewise.
15866         * modules/forkpty (Files): Distribute it.
15867         * modules/openpty (Files): Likewise.
15868         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
15869         check...
15870         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
15871         replacement for for non-const BSD signature.
15872         * modules/pty (Makefile.am): Substitute witnesses.
15873         * lib/pty.in.h (forkpty, openpty): Declare replacements.
15874         * tests/test-forkpty.c: Update signature check.
15875         * tests/test-openpty.c: Likewise.
15876         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
15877         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15878
15879         forkpty, openpty: split functions into new modules
15880         * modules/pty (Makefile.am): Substitute new witnesses.
15881         (Libraries): Move library detection...
15882         * modules/forkpty: ...into new module.
15883         * modules/openpty: Another new module.
15884         * modules/pty-tests: Rename and split...
15885         * modules/forkpty-tests: ...to this...
15886         * modules/openpty-tests: ...and this.
15887         * tests/test-pty.c: Rename and split...
15888         * tests/test-forkpty.c: ...to this...
15889         * tests/test-openpty.c: ...and this.
15890         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
15891         (gl_PTY): Split library searching...
15892         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
15893         (gl_FORKPTY, gl_OPENPTY): New macros.
15894         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
15895         * NEWS: Mention the split.
15896         * MODULES.html.sh (Misc): Document the modules.
15897         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
15898         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15899
15900         pty: improve replacement header
15901         * lib/pty.in.h: New file.
15902         * modules/pty (Files): Ship it.
15903         (Makefile.am): Always build replacement.
15904         * m4/pty.m4: Rename...
15905         * m4/pty_h.m4: ...to this.
15906         (gl_PTY): Modernize setting of witness macros; update check of
15907         forkpty to take proper advantage of cache.
15908         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
15909
15910         getopt: avoid compiler warning
15911         * lib/getopt.c (attribute_hidden): Remove unused macro.
15912
15913 2010-03-18  Bruno Haible  <bruno@clisp.org>
15914
15915         Fix link errors on Solaris 8.
15916         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15917         * modules/search-tests (test_search_c___LDADD): Likewise.
15918         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15919         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15920         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15921         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15922         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
15923         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
15924         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
15925
15926 2010-03-18  Bruno Haible  <bruno@clisp.org>
15927
15928         Fix bug introduced on 2010-03-14.
15929         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
15930         (gl_SPAWN_H): Require it.
15931         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
15932         Reported by Simon Josefsson.
15933
15934 2010-03-18  Bruno Haible  <bruno@clisp.org>
15935
15936         Fix typo introduced on 2009-12-31.
15937         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
15938         posix_spawn_file_actions_adddup2.
15939
15940 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
15941         and Eric Blake  <eblake@redhat.com>
15942
15943         test-vc-list-files-git: make more robust
15944         * tests/test-vc-list-files-git.sh: Unset problematic environment
15945         variables.  Chain commands together.
15946
15947 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
15948
15949         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
15950         `AC_CHECK_DECL' invocation.
15951
15952 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
15953
15954         * lib/inttostr.c (inttostr): Make sure the invocation of verify
15955         appears before executable statements. Suggested by Petr Sumbera
15956         <Petr.Sumbera@Sun.COM>.
15957
15958 2010-03-14  Bruno Haible  <bruno@clisp.org>
15959
15960         * tests/test-flock.c (test_exclusive): Comment out a test that causes
15961         portability problems. Instead use a simpler test.
15962         (main): Check that invalid arguments are rejected only on Linux.
15963
15964 2010-03-14  Bruno Haible  <bruno@clisp.org>
15965
15966         Fix bug introduced on 2009-12-31.
15967         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15968         gl_PREREQ_SYS_H_WINSOCK2 always.
15969         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
15970         SYS_SOCKET_H variable.
15971         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
15972         Update comments.
15973         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
15974         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15975         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15976         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15977         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15978
15979 2010-03-14  Bruno Haible  <bruno@clisp.org>
15980
15981         Fix values returned by sinl, cosl.
15982         * lib/trigl.h: Add specification comments.
15983         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
15984         that combines the values from the precomputed table with the values of
15985         the Chebyshev polynomials.
15986
15987 2010-03-14  Bruno Haible  <bruno@clisp.org>
15988
15989         Fix compilation error when modules 'posix_spawn[p]' are not used.
15990         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
15991         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
15992
15993 2010-03-14  Bruno Haible  <bruno@clisp.org>
15994
15995         Fix compilation error on mingw when module 'time_r' is not used.
15996         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
15997         is 1.
15998         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
15999         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16000         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
16001         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
16002
16003 2010-03-14  Bruno Haible  <bruno@clisp.org>
16004
16005         Fix compilation error with Sun C.
16006         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
16007         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
16008         instead of GCC specific ULONG_LONG_MAX.
16009         * lib/xstrtoll.c: Likewise.
16010         * lib/xstrtoull.c: Likewise.
16011
16012 2010-03-13  Bruno Haible  <bruno@clisp.org>
16013
16014         Allow the user to disable C++ code and tests.
16015         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
16016         (gl_PROG_ANSI_CXX): Require it.
16017
16018 2010-03-13  Bruno Haible  <bruno@clisp.org>
16019
16020         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
16021         cases.
16022
16023 2010-03-13  Bruno Haible  <bruno@clisp.org>
16024
16025         Test that gnulib does not break the standard C++ headers.
16026         * tests/test-locale-c++2.cc: New file.
16027         * modules/locale-tests (Files): Add it.
16028         (Makefile.am): Compile it for test-locale-c++.
16029         * tests/test-math-c++2.cc: New file.
16030         * modules/math-tests (Files): Add it.
16031         (Makefile.am): Compile it for test-math-c++.
16032         * tests/test-signal-c++2.cc: New file.
16033         * modules/signal-tests (Files): Add it.
16034         (Makefile.am): Compile it for test-signal-c++.
16035         * tests/test-stdio-c++2.cc: New file.
16036         * modules/stdio-tests (Files): Add it.
16037         (Makefile.am): Compile it for test-stdio-c++.
16038         * tests/test-stdlib-c++2.cc: New file.
16039         * modules/stdlib-tests (Files): Add it.
16040         (Makefile.am): Compile it for test-stdlib-c++.
16041         * tests/test-string-c++2.cc: New file.
16042         * modules/string-tests (Files): Add it.
16043         (Makefile.am): Compile it for test-string-c++.
16044         * tests/test-time-c++2.cc: New file.
16045         * modules/time-tests (Files): Add it.
16046         (Makefile.am): Compile it for test-time-c++.
16047         Reported by John W. Eaton <jwe@gnu.org>.
16048
16049 2010-03-13  Bruno Haible  <bruno@clisp.org>
16050
16051         * gnulib-tool (func_usage): Clarify which options are available for
16052         --create-testdir and --create-megatestdir.
16053
16054 2010-03-13  Bruno Haible  <bruno@clisp.org>
16055
16056         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
16057         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
16058         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
16059         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16060         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
16061         when appropriate.
16062         Reported by Jim Meyering.
16063
16064 2010-03-12  Simon Josefsson  <simon@josefsson.org>
16065
16066         * gnulib-tool (func_import): Explain origin of code.
16067
16068 2010-03-12  Bruno Haible  <bruno@clisp.org>
16069
16070         Fix problem with automake's definition of CXXLINK.
16071         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
16072         Reported by Simon Josefsson and Ludovic Courtès.
16073
16074 2010-03-12  Bruno Haible  <bruno@clisp.org>
16075
16076         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
16077         stable releases.
16078
16079 2010-03-11  Bruno Haible  <bruno@clisp.org>
16080
16081         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
16082         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
16083         whether the system provides one variant or multiple variants of the
16084         function.
16085         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
16086         C++ compilers.
16087         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
16088         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
16089         Reported by Jim Meyering.
16090
16091 2010-03-09  Simon Josefsson  <simon@josefsson.org>
16092
16093         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
16094
16095 2010-03-08  Bruno Haible  <bruno@clisp.org>
16096
16097         gnulib-tool: Add support for --libtool in --create-testdir.
16098         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
16099         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
16100
16101 2010-03-08  Eric Blake  <eblake@redhat.com>
16102
16103         gnulib-tool.texi: mention possibility of git submodule
16104         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
16105         submodules.
16106         * doc/.gitignore: Ignore another generated file.
16107
16108 2010-03-08  Karl Berry  <karl@gnu.org>
16109
16110         * doc/gnulib-tool.texi (VCS Issues): Mention third option
16111         of committing gnulib files while skipping others.
16112
16113 2010-03-07  Bruno Haible  <bruno@clisp.org>
16114
16115         Tests of module 'wctype' in C++ mode.
16116         * tests/test-wctype-c++.cc: New file.
16117         * modules/wctype-tests (Files): Add it and tests/signature.h.
16118         (Depends-on): Add ansi-c++-opt.
16119         (Makefile.am): Arrange to compile and run test-wctype-c++.
16120
16121         Tests of module 'wchar' in C++ mode.
16122         * tests/test-wchar-c++.cc: New file.
16123         * modules/wchar-tests (Files): Add it and tests/signature.h.
16124         (Depends-on): Add ansi-c++-opt.
16125         (Makefile.am): Arrange to compile and run test-wchar-c++.
16126         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
16127         gl_MODULE_INDICATOR.
16128
16129         Tests of module 'unistd' in C++ mode.
16130         * tests/test-unistd-c++.cc: New file.
16131         * modules/unistd-tests (Files): Add it and tests/signature.h.
16132         (Depends-on): Add ansi-c++-opt.
16133         (Makefile.am): Arrange to compile and run test-unistd-c++.
16134         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
16135         gl_MODULE_INDICATOR.
16136
16137         Tests of module 'time' in C++ mode.
16138         * tests/test-time-c++.cc: New file.
16139         * modules/time-tests (Files): Add it and tests/signature.h.
16140         (Depends-on): Add ansi-c++-opt.
16141         (Makefile.am): Arrange to compile and run test-time-c++.
16142         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16143
16144         Tests of module 'sys_time' in C++ mode.
16145         * tests/test-sys_time-c++.cc: New file.
16146         * modules/sys_time-tests (Files): Add it and tests/signature.h.
16147         (Depends-on): Add ansi-c++-opt.
16148         (Makefile.am): Arrange to compile and run test-sys_time-c++.
16149         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
16150         gl_MODULE_INDICATOR.
16151
16152         Tests of module 'sys_stat' in C++ mode.
16153         * tests/test-sys_stat-c++.cc: New file.
16154         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
16155         (Depends-on): Add ansi-c++-opt.
16156         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
16157         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
16158         gl_MODULE_INDICATOR.
16159
16160         Tests of module 'sys_socket' in C++ mode.
16161         * tests/test-sys_socket-c++.cc: New file.
16162         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
16163         (Depends-on): Add ansi-c++-opt.
16164         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
16165         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
16166         gl_MODULE_INDICATOR.
16167
16168         Tests of module 'sys_select' in C++ mode.
16169         * tests/test-sys_select-c++.cc: New file.
16170         * modules/sys_select-tests (Files): Add it and tests/signature.h.
16171         (Depends-on): Add ansi-c++-opt.
16172         (Makefile.am): Arrange to compile and run test-sys_select-c++.
16173         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
16174         gl_MODULE_INDICATOR.
16175
16176         Tests of module 'sys_ioctl' in C++ mode.
16177         * tests/test-sys_ioctl-c++.cc: New file.
16178         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
16179         (Depends-on): Add ansi-c++-opt.
16180         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
16181         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
16182         gl_MODULE_INDICATOR.
16183
16184         Tests of module 'string' in C++ mode.
16185         * tests/test-string-c++.cc: New file.
16186         * modules/string-tests (Files): Add it and tests/signature.h.
16187         (Depends-on): Add ansi-c++-opt.
16188         (Makefile.am): Arrange to compile and run test-string-c++.
16189         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
16190         gl_MODULE_INDICATOR.
16191
16192         Tests of module 'stdlib' in C++ mode.
16193         * tests/test-stdlib-c++.cc: New file.
16194         * modules/stdlib-tests (Files): Add it and tests/signature.h.
16195         (Depends-on): Add ansi-c++-opt.
16196         (Makefile.am): Arrange to compile and run test-stdlib-c++.
16197         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
16198         gl_MODULE_INDICATOR.
16199
16200         Tests of module 'stdio' in C++ mode.
16201         * tests/test-stdio-c++.cc: New file.
16202         * modules/stdio-tests (Files): Add it and tests/signature.h.
16203         (Depends-on): Add ansi-c++-opt.
16204         (Makefile.am): Arrange to compile and run test-stdio-c++.
16205         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
16206         gl_MODULE_INDICATOR.
16207
16208         Tests of module 'spawn' in C++ mode.
16209         * tests/test-spawn-c++.cc: New file.
16210         * modules/spawn-tests (Files): Add it and tests/signature.h.
16211         (Depends-on): Add ansi-c++-opt.
16212         (Makefile.am): Arrange to compile and run test-spawn-c++.
16213         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
16214         gl_MODULE_INDICATOR.
16215
16216         Tests of module 'signal' in C++ mode.
16217         * tests/test-signal-c++.cc: New file.
16218         * modules/signal-tests (Files): Add it and tests/signature.h.
16219         (Depends-on): Add ansi-c++-opt.
16220         (Makefile.am): Arrange to compile and run test-signal-c++.
16221         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
16222         gl_MODULE_INDICATOR.
16223
16224         Tests of module 'search' in C++ mode.
16225         * tests/test-search-c++.cc: New file.
16226         * modules/search-tests (Files): Add it and tests/signature.h.
16227         (Depends-on): Add ansi-c++-opt.
16228         (Makefile.am): Arrange to compile and run test-search-c++.
16229         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
16230         gl_MODULE_INDICATOR.
16231
16232         Tests of module 'math' in C++ mode.
16233         * tests/test-math-c++.cc: New file.
16234         * modules/math-tests (Files): Add it and tests/signature.h.
16235         (Depends-on): Add ansi-c++-opt.
16236         (Makefile.am): Arrange to compile and run test-math-c++.
16237         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16238
16239         Tests of module 'locale' in C++ mode.
16240         * tests/test-locale-c++.cc: New file.
16241         * modules/locale-tests (Files): Add it and tests/signature.h.
16242         (Depends-on): Add ansi-c++-opt.
16243         (Makefile.am): Arrange to compile and run test-locale-c++.
16244         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
16245         gl_MODULE_INDICATOR.
16246
16247         Tests of module 'langinfo' in C++ mode.
16248         * tests/test-langinfo-c++.cc: New file.
16249         * modules/langinfo-tests (Files): Add it and tests/signature.h.
16250         (Depends-on): Add ansi-c++-opt.
16251         (Makefile.am): Arrange to compile and run test-langinfo-c++.
16252         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
16253         gl_MODULE_INDICATOR.
16254
16255         Tests of module 'iconv-h' in C++ mode.
16256         * tests/test-iconv-h-c++.cc: New file.
16257         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
16258         (Depends-on): Add ansi-c++-opt.
16259         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
16260
16261         Tests of module 'glob' in C++ mode.
16262         * tests/test-glob-c++.cc: New file.
16263         * modules/glob-tests (Files): Add it.
16264         (Depends-on): Add ansi-c++-opt.
16265         (Makefile.am): Arrange to compile and run test-glob-c++.
16266
16267         Tests of module 'fcntl-h' in C++ mode.
16268         * tests/test-fcntl-h-c++.cc: New file.
16269         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
16270         (Depends-on): Add ansi-c++-opt.
16271         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
16272         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
16273         gl_MODULE_INDICATOR.
16274
16275         Tests of module 'dirent' in C++ mode.
16276         * tests/test-dirent-c++.cc: New file.
16277         * modules/dirent-tests (Files): Add it and tests/signature.h.
16278         (Depends-on): Add ansi-c++-opt.
16279         (Makefile.am): Arrange to compile and run test-dirent-c++.
16280         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16281         gl_MODULE_INDICATOR.
16282
16283         New module 'ansi-c++-opt'.
16284         * modules/ansi-c++-opt: New file.
16285         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
16286
16287         Document C++ namespace mode.
16288         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
16289
16290         wctype: Avoid #define replacements in C++ mode.
16291         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
16292         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
16293         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
16294         In C++, define a namespaced alias symbol.
16295         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
16296         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
16297         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
16298         rule.
16299
16300         wchar: Avoid #define replacements in C++ mode.
16301         * lib/wchar.in.h: Include c++defs.h.
16302         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
16303         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
16304         symbol.
16305         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
16306         * modules/wchar (Depends-on): Add c++defs.
16307         (Makefile.am): Update wchar.h rule.
16308
16309         unistd: Avoid #define replacements in C++ mode.
16310         * lib/unistd.in.h: Include c++defs.h.
16311         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
16312         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
16313         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
16314         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
16315         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
16316         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
16317         symbol.
16318         (environ): Update.
16319         * modules/unistd (Depends-on): Add c++defs.
16320         (Makefile.am): Update unistd.h rule.
16321
16322         time: Avoid #define replacements in C++ mode.
16323         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
16324         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
16325         define a namespaced alias symbol.
16326         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
16327         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
16328         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
16329         * modules/time (Depends-on): Add c++defs, warn-on-use.
16330         (Makefile.am): Update time.h rule.
16331         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16332         * modules/nanosleep (configure.ac): Likewise.
16333         * modules/strptime (configure.ac): Likewise.
16334         * modules/timegm (configure.ac): Likewise.
16335
16336         sys_time: Avoid #define replacements in C++ mode.
16337         * lib/sys_time.in.h: Include c++defs.h.
16338         (gettimeofday): In C++, define a namespaced alias symbol.
16339         * modules/sys_time (Depends-on): Add c++defs.
16340         (Makefile.am): Update sys/time.h rule.
16341
16342         sys_stat: Avoid #define replacements in C++ mode.
16343         * lib/sys_stat.in.h: Include c++defs.h.
16344         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
16345         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
16346         namespaced alias symbol.
16347         In C++, define a namespaced alias symbol.
16348         * modules/sys_stat (Depends-on): Add c++defs.
16349         (Makefile.am): Update sys/stat.h rule.
16350
16351         sys_socket: Avoid #define replacements in C++ mode.
16352         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
16353         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
16354         definitions also when the system has a <sys/socket.h>.
16355         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16356         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
16357         In C++, define a namespaced alias symbol.
16358         * modules/sys_socket (Depends-on): Add c++defs.
16359         (Makefile.am): Update sys/socket.h rule.
16360
16361         sys_select: Avoid #define replacements in C++ mode.
16362         * lib/sys_select.in.h: Include c++defs.h. Enable the function
16363         definitions also when the system has a <sys/select.h>.
16364         (select): In C++, define a namespaced alias symbol.
16365         * modules/sys_select (Depends-on): Add c++defs.
16366         (Makefile.am): Update sys/select.h rule.
16367
16368         sys_ioctl: Avoid #define replacements in C++ mode.
16369         * lib/sys_ioctl.in.h: Include c++defs.h.
16370         (ioctl): In C++, define a namespaced alias symbol.
16371         * modules/sys_ioctl (Depends-on): Add c++defs.
16372         (Makefile.am): Update sys/ioctl.h rule.
16373
16374         string: Avoid #define replacements in C++ mode.
16375         * lib/string.in.h: Include c++defs.h.
16376         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
16377         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16378         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16379         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
16380         strsignal, strverscmp): In C++, define a namespaced alias symbol.
16381         * modules/string (Depends-on): Add c++defs.
16382         (Makefile.am): Update string.h rule.
16383
16384         stdlib: Avoid #define replacements in C++ mode.
16385         * lib/stdlib.in.h: Include c++defs.h.
16386         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
16387         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
16388         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
16389         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
16390         symbol.
16391         * modules/stdlib (Depends-on): Add c++defs.
16392         (Makefile.am): Update stdlib.h rule.
16393
16394         stdio: Avoid #define replacements in C++ mode.
16395         * lib/stdio.in.h: Include c++defs.h.
16396         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
16397         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
16398         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
16399         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
16400         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
16401         namespaced alias symbol.
16402         * modules/stdio (Depends-on): Add c++defs.
16403         (Makefile.am): Update stdio.h rule.
16404
16405         spawn: Avoid #define replacements in C++ mode.
16406         * lib/spawn.in.h: Include c++defs.h.
16407         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16408         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16409         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16410         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16411         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16412         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16413         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16414         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16415         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16416         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16417         In C++, define a namespaced alias symbol.
16418         * modules/spawn (Depends-on): Add c++defs.
16419         (Makefile.am): Update spawn.h rule.
16420
16421         signal: Avoid #define replacements in C++ mode.
16422         * lib/signal.in.h: Include c++defs.h.
16423         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16424         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
16425         namespaced alias symbol.
16426         * modules/signal (Depends-on): Add c++defs.
16427         (Makefile.am): Update signal.h rule.
16428
16429         search: Avoid #define replacements in C++ mode.
16430         * lib/search.in.h: Include c++defs.h.
16431         (_gl_search_compar_fn, _gl_search_action_fn): New types.
16432         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
16433         symbol.
16434         * modules/search (Depends-on): Add c++defs.
16435         (Makefile.am): Update search.h rule.
16436
16437         math: Avoid #define replacements in C++ mode.
16438         * lib/math.in.h: Include c++defs.h.
16439         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
16440         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
16441         trunc, truncl): In C++, define a namespaced alias symbol.
16442         * modules/math (Depends-on): Add c++defs.
16443         (Makefile.am): Update math.h rule.
16444
16445         locale: Avoid #define replacements in C++ mode.
16446         * lib/locale.in.h: Include c++defs.h.
16447         (duplocale): In C++, define a namespaced alias symbol.
16448         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
16449         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
16450         * modules/locale (Depends-on): Add c++defs.
16451         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
16452
16453         langinfo: Avoid #define replacements in C++ mode.
16454         * lib/langinfo.in.h: Include c++defs.h.
16455         (nl_langinfo): In C++, define a namespaced alias symbol.
16456         * modules/langinfo (Depends-on): Add c++defs.
16457         (Makefile.am): Update langinfo.h rule.
16458
16459         iconv-h: Avoid #define replacements in C++ mode.
16460         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
16461         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
16462         symbol.
16463         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
16464         whenever iconv is present.
16465         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
16466         (Makefile.am): Update iconv.h rule.
16467
16468         glob: Avoid #define replacements in C++ mode.
16469         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
16470         (_gl_glob_errfunc_fn): New type.
16471         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
16472         symbol.
16473         * modules/glob (Depends-on): Add c++defs, warn-on-use.
16474         (Makefile.am): Update glob.h rule.
16475
16476         fcntl-h: Avoid #define replacements in C++ mode.
16477         * lib/fcntl.in.h: Include c++defs.h.
16478         (fcntl, open, openat): In C++, define a namespaced alias symbol.
16479         * modules/fcntl-h (Depends-on): Add c++defs.
16480         (Makefile.am): Update fcntl.h rule.
16481
16482         dirent: Avoid #define replacements in C++ mode.
16483         * lib/dirent.in.h: Include c++defs.h.
16484         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
16485         namespaced alias symbol.
16486         (dirfd): Update declaration.
16487         * modules/dirent (Depends-on): Add c++defs.
16488         (Makefile.am): Update dirent.h rule.
16489
16490         ctype: Make it usable in C++ code.
16491         * lib/ctype.in.h: Include c++defs.h.
16492         (isblank): Declare as extern "C".
16493         * modules/ctype (Depends-on): Add c++defs.
16494         (Makefile.am): Update ctype.h rule.
16495
16496         New module 'c++defs'.
16497         * modules/c++defs: New file.
16498         * build-aux/c++defs.h: New file.
16499         Reported by John W. Eaton <jwe@gnu.org>.
16500
16501 2010-03-07  Bruno Haible  <bruno@clisp.org>
16502
16503         logb: Provide missing declaration for Cygwin.
16504         * lib/math.in.h (logb): New declaration.
16505         * m4/logb.m4: New file.
16506         * modules/logb (Files): Add m4/logb.m4.
16507         (Depends-on): Add math.
16508         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
16509         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
16510         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
16511         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
16512         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
16513
16514 2010-03-07  Bruno Haible  <bruno@clisp.org>
16515
16516         Fix test-cond link error.
16517         * tests/test-cond.c: Include <stdio.h>.
16518
16519 2010-03-07  Bruno Haible  <bruno@clisp.org>
16520
16521         Fix test-dirent-safer link error.
16522         * modules/dirent-safer-tests (Makefile.am): Define
16523         test_dirent_safer_LDADD.
16524
16525 2010-03-07  Bruno Haible  <bruno@clisp.org>
16526
16527         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
16528         among default module list.
16529
16530 2010-03-07  Bruno Haible  <bruno@clisp.org>
16531
16532         Fix link error on platforms with GNU libiconv.
16533         * modules/unistr/u8-strcoll-tests (Makefile): Define
16534         test_u8_strcoll_LDADD.
16535         * modules/unistr/u16-strcoll-tests (Makefile): Define
16536         test_u16_strcoll_LDADD.
16537         * modules/unistr/u32-strcoll-tests (Makefile): Define
16538         test_u32_strcoll_LDADD.
16539
16540 2010-03-07  Bruno Haible  <bruno@clisp.org>
16541
16542         Use POSIX declarations for socket functions.
16543         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
16544         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
16545         rpl_sendto): Change declaration to match POSIX.
16546         * lib/connect.c (rpl_connect): Likewise.
16547         * lib/accept.c (rpl_accept): Likewise.
16548         * lib/bind.c (rpl_bind): Likewise.
16549         * lib/getpeername.c (rpl_getpeername): Likewise.
16550         * lib/getsockname.c (rpl_getsockname): Likewise.
16551         * lib/recv.c (rpl_recv): Likewise.
16552         * lib/send.c (rpl_send): Likewise.
16553         * lib/recvfrom.c (rpl_recvfrom): Likewise.
16554         * lib/sendto.c (rpl_sendto): Likewise.
16555
16556 2010-03-06  Bruno Haible  <bruno@clisp.org>
16557
16558         Clarify access, euidaccess, faccessat.
16559         * doc/posix-functions/faccessat.texi: Mention security problem under
16560         "Other problems", not "Portability problems".
16561         * doc/posix-functions/access.texi: Likewise. Mention a related security
16562         problem.
16563         * doc/glibc-functions/euidaccess.texi: Mention security problems.
16564         * lib/euidaccess.c: Add comments about platforms.
16565         * lib/unistd.in.h (access, euidaccess): Add warnings.
16566
16567 2010-03-07  Bruno Haible  <bruno@clisp.org>
16568
16569         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
16570         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
16571         (POSIX_SPAWN_SETSCHEDULER): Likewise.
16572         (POSIX_SPAWN_USEVFORK): Define in a way that works when
16573         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16574         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
16575         declare when POSIX_SPAWN_SETSCHEDULER is zero.
16576         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
16577         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
16578         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
16579         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
16580         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
16581         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
16582         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
16583         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
16584         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
16585         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
16586         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
16587         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
16588         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
16589         Likewise.
16590         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
16591         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
16592         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
16593         Likewise.
16594         * tests/test-spawn.c (main): Make it work when
16595         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16596
16597 2010-03-07  Bruno Haible  <bruno@clisp.org>
16598
16599         Fix incorrect Makefile.am generation in German locale.
16600         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16601         Execute sed command with character range in C locale.
16602
16603 2010-03-06  Bruno Haible  <bruno@clisp.org>
16604
16605         Tests for module 'iconv-h'.
16606         * modules/iconv-h-tests: New file.
16607         * tests/test-iconv-h.c: New file.
16608
16609         New module 'iconv-h'.
16610         * modules/iconv-h: New file.
16611         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
16612         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
16613         (configure.ac): Remove gl_ICONV_H.
16614         (Makefile.am): Remove rule for iconv.h.
16615
16616 2010-03-06  Bruno Haible  <bruno@clisp.org>
16617
16618         More consistent naming of *.m4 files.
16619         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
16620         * modules/wctype (Files): Update.
16621
16622         More consistent naming of *.m4 files.
16623         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
16624         * modules/wchar (Files): Update.
16625
16626 2010-03-06  Jim Meyering  <meyering@redhat.com>
16627
16628         euidaccess: relax license to LGPLv2+
16629         * modules/euidaccess (License): Relax to LGPLv2+.
16630
16631 2010-03-06  Bruno Haible  <bruno@clisp.org>
16632
16633         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
16634         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
16635         (Makefile.am): Augment lib_SOURCES instead.
16636
16637 2010-03-04  Jim Meyering  <meyering@redhat.com>
16638
16639         utime: remove obsolete module
16640         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
16641         unnecessary for years, and has been marked as obsolete for 10 months.
16642         * modules/utime: Remove file.
16643         * lib/utime.c: Remove file.
16644         * m4/utime.m4: Remove file.
16645         * m4/utimes-null.m4: Remove file.
16646         * doc/posix-functions/utime.texi (utime): Remove reference to
16647         the module.  Move the sole "fixed by gnulib" item into the
16648         "problems not fixed by Gnulib" list.
16649         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
16650
16651 2010-03-05  Simon Josefsson  <simon@josefsson.org>
16652
16653         * modules/exit (License): Relax license to LGPLv2+.
16654         (Status): Mark as obsolete.
16655         * NEWS: Mention deprecated 'exit' module.
16656         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
16657         of now obsolete 'exit'.
16658
16659 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16660
16661         fts-lgpl: remove unused module
16662         * modules/fts-lgpl: Remove.
16663         * MODULES.html.sh (func_all_modules): Adjust.
16664         * check-module (find_included_lib_files): Adjust.
16665         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
16666
16667 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
16668
16669         copy-acl: enhance Solaris ACL error handling
16670         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
16671         * lib/set-mode-acl.c (qset_acl): Likewise.
16672
16673 2010-03-02  Bruno Haible  <bruno@clisp.org>
16674
16675         spawn: Don't override the system defined values on FreeBSD 8.
16676         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
16677         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
16678         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
16679         if HAVE_POSIX_SPAWN is 1.
16680         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
16681
16682 2010-03-01  Bruno Haible  <bruno@clisp.org>
16683
16684         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
16685         regarding Automake.
16686
16687 2010-02-25  Bruno Haible  <bruno@clisp.org>
16688
16689         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
16690         * gnulib-tool: Define 'echo' as a function only before the ksh alias
16691         setting, not afterwards.
16692         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
16693
16694 2010-02-24  Eric Blake  <eblake@redhat.com>
16695
16696         bootstrap, git-version-gen: use timestamp
16697         * build-aux/git-version-gen (scriptversion): Force UTC.
16698         * build-aux/bootstrap (scriptversion): New variable.
16699
16700         bootstrap: allow older git
16701         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
16702         older than 1.6.4.  Requested by the libvirt project.
16703
16704 2010-02-23  Eric Blake  <eblake@redhat.com>
16705
16706         warn-on-use: work with old autoconf
16707         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
16708         AS_VAR semantics of autoconf 2.60.
16709         Reported by Bruno Haible.
16710
16711         bootstrap: improve some comments
16712         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
16713         clarification comments.
16714
16715         gettimeofday: provide correct function
16716         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
16717         when replacement is declared, otherwise provide gettimeofday.
16718         Reported by Michael Goffioul.
16719
16720 2010-02-23  Jim Meyering  <meyering@redhat.com>
16721
16722         lib-ignore: relax license to "unlimited", not LGPLv2+
16723         * modules/lib-ignore (License): Relax to "unlimited".
16724
16725 2010-02-23  Jim Meyering  <meyering@redhat.com>
16726
16727         lib-ignore: relax license to LGPLv2+
16728         * modules/lib-ignore (License): Relax to LGPLv2+.
16729
16730 2010-02-22  Eric Blake  <eblake@redhat.com>
16731
16732         lseek: avoid bash 3.2 broken pipe bug
16733         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
16734         warning from bash 3.2.
16735         Reported by Ben Pfaff, with analysis from Bruno Haible.
16736
16737         bootstrap: support non-FSF copyright holder
16738         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
16739         bootstrap.conf override of COPYRIGHT_HOLDER.
16740         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
16741
16742         bootstrap: interoperate with gettext 0.14.1
16743         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
16744
16745         bootstrap: allow for alternate submodule location
16746         * build-aux/bootstrap (gnulib_path): New variable; use instead of
16747         hardcoding submodule location.
16748         (gnulib_mk): Allow direct use of Makefile.am.
16749
16750         bootstrap: use GNULIB_SRCDIR to reduce disk usage
16751         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
16752         rather than reconfiguring where the submodule points.
16753
16754         gettimeofday: restore support for platforms that lack function
16755         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
16756         replacement if function is missing.
16757         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
16758         * modules/sys_time (Makefile.am): Substitute it.
16759         * lib/sys_time.in.h (gettimeofday): Check it.
16760         Reported by Michael Goffioul.
16761
16762 2010-02-21  Bruno Haible  <bruno@clisp.org>
16763
16764         * lib/stdio.in.h (obstack_printf): Fix typo.
16765
16766 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
16767
16768         vc-list-files: use bzr ls's -R option
16769         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
16770         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
16771
16772 2010-02-21  Jim Meyering  <meyering@redhat.com>
16773
16774         init.sh: fix EXEEXT shims to work also for names like test-prog
16775         * tests/init.sh: Re-exec a better shell, when needed.
16776         If the current shell lacks support for posix $(...), an init.sh-using
16777         test will now try to find a shell that supports that.  If EXEEXT is
16778         nonempty, we also require support for hyphen-in-alias-name and shell
16779         substitutions like ${var#glob}.  Failure to find such a shell results
16780         in a skipped test.
16781
16782 2010-02-21  Bruno Haible  <bruno@clisp.org>
16783
16784         Really work around around "broken pipe" error message from bash 3.2.
16785         * gnulib-tool (func_reset_sigpipe): Remove function.
16786         (echo): In bash 3.2, define to a function that uses printf.
16787         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
16788
16789 2010-02-20  Bruno Haible  <bruno@clisp.org>
16790
16791         Restore support for automake 1.9.6 with autoconf 2.61.
16792         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
16793         Reported by James Youngman <jay@gnu.org>.
16794
16795 2010-02-20  Bruno Haible  <bruno@clisp.org>
16796
16797         Improve *printf warning condition.
16798         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
16799         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
16800         and the function is overridden due to SIGPIPE emulation.
16801
16802 2010-02-20  Bruno Haible  <bruno@clisp.org>
16803
16804         * lib/stdio.in.h: Tweak comments.
16805
16806 2010-02-19  Bruno Haible  <bruno@clisp.org>
16807
16808         Make it easier to find modules. New gnulib-tool option '--find'.
16809         * gnulib-tool: New option --find.
16810         (func_usage): Document it.
16811         (func_sanitize_modulelist): New function, extracted from
16812         func_all_modules.
16813         (func_all_modules): Invoke it.
16814         * doc/gnulib-tool.texi (Which modules?): New node.
16815
16816 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
16817
16818         * lib/sys_select.in.h: Provide select replacement even if
16819         sys/select.h exists on a system, for Interix.
16820
16821 2010-02-18  Jim Meyering  <meyering@redhat.com>
16822
16823         init.sh: don't use $(...) just yet
16824         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
16825         to accommodate e.g., Solaris' /bin/sh.
16826
16827 2010-02-17  Bruno Haible  <bruno@clisp.org>
16828
16829         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
16830         Reported by Ludovic Courtès <ludo@gnu.org>.
16831
16832 2010-02-16  Simon Josefsson  <simon@josefsson.org>
16833
16834         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
16835         linking with -lintl.
16836
16837 2010-02-17  Simon Josefsson  <simon@josefsson.org>
16838
16839         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
16840         if not provided by the system's netdb.h.  Reported by
16841         ludo@gnu.org (Ludovic Courtès).
16842
16843 2010-02-15  Jim Meyering  <meyering@redhat.com>
16844
16845         init.sh: improve portability and efficiency
16846         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
16847         "dummy" in a for loop.
16848         Use '!', not '^' to select the complement of a character set used
16849         in a "case" statement.
16850         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
16851         Suggestions from Eric Blake.
16852
16853         init.sh: automatically accommodate programs with the .exe suffix
16854         Automatically arrange for an invocation of "prog" to execute the
16855         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
16856         may use the simpler "prog", yet still work when built on a system
16857         that requires specifying the added suffix.
16858         Do this by constructing a function named "prog" that invokes
16859         "prog.exe" for each .exe file in selected directories.
16860         * tests/init.sh (find_exe_basenames_): New function.
16861         (create_exe_shim_functions_): New function.
16862         (path_prepend_): Use it.
16863
16864         maint.mk: mark syntax-check sc_*.m rules as .PHONY
16865         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
16866         "make -t syntax-check" doesn't create a ton of sc_*.m files.
16867
16868 2010-02-14  Jim Meyering  <meyering@redhat.com>
16869
16870         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
16871         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
16872         (sc_prohibit_hash_pjw_without_use): New rule.
16873
16874         maint.mk: allow the default upload destination dir to be overridden
16875         * top/maint.mk (upload_dest_dir_): Define with a default that
16876         preserves the status quo.
16877         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
16878         Reported by Peter Simons.
16879
16880         maint.mk: prohibit inclusion of "hash.h" without_use
16881         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
16882
16883 2010-02-10  Jim Meyering  <meyering@redhat.com>
16884
16885         maint.mk: prohibit inclusion of "ignore-value.h" without_use
16886         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
16887
16888 2010-02-09  Eric Blake  <ebb9@byu.net>
16889         and Bruno Haible  <bruno@clisp.org>
16890
16891         obstack-printf-posix: ensure declaration
16892         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
16893         extracted from gl_FUNC_OBSTACK_PRINTF.
16894         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
16895         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16896         Likewise.
16897         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
16898         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
16899         0.
16900
16901 2010-02-08  Bruno Haible  <bruno@clisp.org>
16902
16903         gnulib-tool: Fix typo in 2010-02-07 commit.
16904         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
16905         Reported by Eric Blake.
16906
16907 2010-02-07  Bruno Haible  <bruno@clisp.org>
16908
16909         gnulib-tool: Fix up caching patches.
16910         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
16911         option --no-cache. Use associative arrays when supported by the shell.
16912         (sed_comments): New variable.
16913         (modcache): Renamed from do_cache.
16914         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
16915         abbreviate unnecessarily.
16916         (have_associative): New variable.
16917         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16918         way also for ksh and zsh.
16919         (func_init_sed_convert_to_cache_statements): New function, extracted
16920         from func_cache_lookup_module. Add support for associative arrays.
16921         Don't set the c_MODULE_cached variable here. Ignore all lines before
16922         the first field header. Remove only the final newline, not all trailing
16923         newlines. Support empty fields correctly. Limit the use of 'eval' to
16924         assignments.
16925         (func_get_description, func_get_status, func_get_notice,
16926         func_get_applicability, func_get_filelist, func_get_dependencies,
16927         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
16928         func_get_automake_snippet, func_get_include_directive,
16929         func_get_link_directive, func_get_license, func_get_maintainer):
16930         Update documentation. List the unoptimized code first. Add support for
16931         associative arrays. Limit the use of 'eval' to assignments.
16932         (func_get_applicability): Undo stylistic pessimisations.
16933         (func_get_automake_snippet, func_get_include_directive): Reduce code
16934         duplication.
16935         (func_modules_transitive_closure, func_modules_add_dummy,
16936         func_modules_notice, func_modules_to_filelist, func_add_file,
16937         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
16938         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
16939         func_create_testdir, func_create_megatestdir): Update documentation.
16940
16941 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16942
16943         * gnulib-tool (func_cache_lookup_module): Store the module name
16944         belonging to the cache variable; error out if two different
16945         module names map to the same cache variable name.
16946
16947 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16948
16949         gnulib-tool: Make caching optional.
16950         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
16951         Update matching short versions of --no-changelog.
16952         (func_usage): Update.
16953         (sed_extract_cache_prog): Renamed from ...
16954         (sed_extract_prog): ... this; revert to old extraction script.
16955         (func_get_description, func_get_status)
16956         (func_get_notice, func_get_applicability, func_get_filelist)
16957         (func_get_dependencies, func_get_autoconf_early_snippet)
16958         (func_get_autoconf_snippet, func_get_automake_snippet)
16959         (func_get_include_directive, func_get_link_directive)
16960         (func_get_license, func_get_maintainer): If $do_cache is false,
16961         use old, non-caching extraction scripts.
16962         Suggestion by Bruno Haible.
16963
16964 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16965
16966         gnulib-tool: cache module metainformation.
16967         * gnulib-tool (sed_extract_prog): Match newline before each
16968         header, and rewrite header to a shell variable suffix.
16969         (func_cache_var, func_cache_lookup_module): New functions,
16970         to turn a module name into a cache variable prefix, and to
16971         look up and cache module metainformation.
16972         (func_get_description, func_get_status)
16973         (func_get_notice, func_get_applicability, func_get_filelist)
16974         (func_get_dependencies, func_get_autoconf_early_snippet)
16975         (func_get_autoconf_snippet, func_get_automake_snippet)
16976         (func_get_include_directive, func_get_link_directive)
16977         (func_get_license, func_get_maintainer): Use
16978         func_cache_lookup_module.
16979
16980 2010-02-07  Bruno Haible  <bruno@clisp.org>
16981
16982         fnctl: Fix missing dependency.
16983         * modules/fcntl (Depends-on): Add getdtablesize.
16984         Reported by John W. Eaton <jwe@gnu.org>.
16985
16986 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16987
16988         Argp: fix recognition of short alias options.
16989
16990         * lib/argp-parse.c (convert_options): Fix improper use of
16991         `|' between character values.
16992         * tests/test-argp.c (group1_option): New alias option
16993         --read (-r).
16994         (group1_parser): Special handling for 'r'.
16995         (test15): New test case.
16996         (test_fun): Add test15.
16997         * tests/test-argp-2.sh: Update expected --help and --usage
16998         outputs.
16999
17000 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17001
17002         * tests/test-argp.c: Fix indentation.
17003
17004 2010-02-04  Eric Blake  <ebb9@byu.net>
17005
17006         gettimeofday: expose type of second argument
17007         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
17008         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
17009         * tests/test-gettimeofday.c: Use it to silence warning.
17010         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
17011         the issue.
17012
17013 2010-02-03  Jim Meyering  <meyering@redhat.com>
17014
17015         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
17016         * lib/regcomp.c (TYPE_SIGNED): Define.
17017         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
17018
17019         regcomp.c: avoid a new -Wshadow warning
17020         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
17021
17022 2010-02-01  Jim Meyering  <meyering@redhat.com>
17023
17024         removing useless parentheses in cpp #define directives
17025         For motivation, see commit c0221df4, "define STREQ(a,b)
17026         consistently, removing useless parentheses"
17027         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
17028         * lib/mountlist.c (MNT_IGNORE): Likewise.
17029         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
17030
17031 2010-02-01  Eric Blake  <ebb9@byu.net>
17032
17033         sys_time: use link-warning
17034         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
17035         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
17036         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
17037         * modules/sys_time (Depends-on): Add warn-on-use.
17038         (Makefile.am): Always build replacement.
17039         (configure.ac): Update substitutions.
17040         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
17041         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
17042         bother with SYS_TIME_H.
17043         * modules/gettimeofday (configure.ac): Declare indicator.
17044         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
17045         in use.
17046
17047         closein-tests: silence compiler warning
17048         * tests/test-closein.c (main): Ignore fread result.
17049         * modules/closein-tests (Depends-on): Add ignore-value.
17050
17051         tests: silence warning about system return
17052         * tests/test-areadlink-with-size.c (main): Ignore system result.
17053         * tests/test-areadlink.c (main): Likewise.
17054         * tests/test-areadlinkat-with-size.c (main): Likewise.
17055         * tests/test-areadlinkat.c (main): Likewise.
17056         * tests/test-canonicalize-lgpl.c (main): Likewise.
17057         * tests/test-canonicalize.c (main): Likewise.
17058         * tests/test-chown.c (main): Likewise.
17059         * tests/test-fchownat.c (main): Likewise.
17060         * tests/test-fdutimensat.c (main): Likewise.
17061         * tests/test-fstatat.c (main): Likewise.
17062         * tests/test-futimens.c (main): Likewise.
17063         * tests/test-lchown.c (main): Likewise.
17064         * tests/test-link.c (main): Likewise.
17065         * tests/test-linkat.c (main): Likewise.
17066         * tests/test-lstat.c (main): Likewise.
17067         * tests/test-mkdir.c (main): Likewise.
17068         * tests/test-mkdirat.c (main): Likewise.
17069         * tests/test-mkfifo.c (main): Likewise.
17070         * tests/test-mkfifoat.c (main): Likewise.
17071         * tests/test-mknod.c (main): Likewise.
17072         * tests/test-readlink.c (main): Likewise.
17073         * tests/test-remove.c (main): Likewise.
17074         * tests/test-rename.c (main): Likewise.
17075         * tests/test-renameat.c (main): Likewise.
17076         * tests/test-rmdir.c (main): Likewise.
17077         * tests/test-symlink.c (main): Likewise.
17078         * tests/test-symlinkat.c (main): Likewise.
17079         * tests/test-unlink.c (main): Likewise.
17080         * tests/test-unlinkat.c (main): Likewise.
17081         * tests/test-utimens.c (main): Likewise.
17082         * tests/test-utimensat.c (main): Likewise.
17083         * modules/areadlink-tests (Depends-on): Add ignore-value.
17084         * modules/areadlink-with-size-tests (Depends-on): Likewise.
17085         * modules/areadlinkat-tests (Depends-on): Likewise.
17086         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
17087         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17088         * modules/canonicalize-tests (Depends-on): Likewise.
17089         * modules/chown-tests (Depends-on): Likewise.
17090         * modules/fdutimensat-tests (Depends-on): Likewise.
17091         * modules/futimens-tests (Depends-on): Likewise.
17092         * modules/lchown-tests (Depends-on): Likewise.
17093         * modules/link-tests (Depends-on): Likewise.
17094         * modules/linkat-tests (Depends-on): Likewise.
17095         * modules/lstat-tests (Depends-on): Likewise.
17096         * modules/mkdir-tests (Depends-on): Likewise.
17097         * modules/mkfifo-tests (Depends-on): Likewise.
17098         * modules/mkfifoat-tests (Depends-on): Likewise.
17099         * modules/mknod-tests (Depends-on): Likewise.
17100         * modules/openat-tests (Depends-on): Likewise.
17101         * modules/readlink-tests (Depends-on): Likewise.
17102         * modules/remove-tests (Depends-on): Likewise.
17103         * modules/rename-tests (Depends-on): Likewise.
17104         * modules/renameat-tests (Depends-on): Likewise.
17105         * modules/rmdir-tests (Depends-on): Likewise.
17106         * modules/symlink-tests (Depends-on): Likewise.
17107         * modules/symlinkat-tests (Depends-on): Likewise.
17108         * modules/unlink-tests (Depends-on): Likewise.
17109         * modules/utimens-tests (Depends-on): Likewise.
17110         * modules/utimensat-tests (Depends-on): Likewise.
17111
17112 2010-01-31  Bruno Haible  <bruno@clisp.org>
17113
17114         Perform the same test for many <math.h> functions.
17115         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
17116         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
17117         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
17118         of gl_MATHFUNC.
17119         * modules/acos (configure.ac): Likewise.
17120         * modules/asin (configure.ac): Likewise.
17121         * modules/atan (configure.ac): Likewise.
17122         * modules/atan2 (configure.ac): Likewise.
17123         * modules/cbrt (configure.ac): Likewise.
17124         * modules/copysign (configure.ac): Likewise.
17125         * modules/cos (configure.ac): Likewise.
17126         * modules/cosh (configure.ac): Likewise.
17127         * modules/erf (configure.ac): Likewise.
17128         * modules/erfc (configure.ac): Likewise.
17129         * modules/exp (configure.ac): Likewise.
17130         * modules/fmod (configure.ac): Likewise.
17131         * modules/hypot (configure.ac): Likewise.
17132         * modules/j0 (configure.ac): Likewise.
17133         * modules/j1 (configure.ac): Likewise.
17134         * modules/jn (configure.ac): Likewise.
17135         * modules/lgamma (configure.ac): Likewise.
17136         * modules/log (configure.ac): Likewise.
17137         * modules/log10 (configure.ac): Likewise.
17138         * modules/log1p (configure.ac): Likewise.
17139         * modules/pow (configure.ac): Likewise.
17140         * modules/remainder (configure.ac): Likewise.
17141         * modules/sin (configure.ac): Likewise.
17142         * modules/sinh (configure.ac): Likewise.
17143         * modules/tan (configure.ac): Likewise.
17144         * modules/tanh (configure.ac): Likewise.
17145         * modules/y0 (configure.ac): Likewise.
17146         * modules/y1 (configure.ac): Likewise.
17147         * modules/yn (configure.ac): Likewise.
17148         Suggested by Paolo Bonzini.
17149
17150 2010-01-31  Bruno Haible  <bruno@clisp.org>
17151
17152         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
17153
17154 2010-01-31  Bruno Haible  <bruno@clisp.org>
17155
17156         Work around getdelim() bug on FreeBSD 8.0.
17157         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
17158         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
17159         not work.
17160         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
17161         is 1.
17162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
17163         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
17164         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
17165         a non-zero size.
17166         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
17167
17168 2010-01-31  Bruno Haible  <bruno@clisp.org>
17169
17170         Work around getline() bug on FreeBSD 8.0.
17171         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
17172         and a non-zero size.
17173         * tests/test-getline.c (main): Likewise.
17174         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
17175         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
17176
17177 2010-01-28  Eric Blake  <ebb9@byu.net>
17178
17179         regex: fix build failure
17180         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
17181         platforms.
17182
17183 2010-01-28  Jim Meyering  <meyering@redhat.com>
17184
17185         regex: do not ignore memory allocation failure
17186         * lib/regex_internal.c (create_cd_newstate): Detect
17187         re_node_set_init_copy failure.   Extracted from glibc commit
17188         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17189
17190         regex: sync more white-space changes from libc
17191         * lib/regex_internal.c: White-space only changes.
17192         * lib/regexec.c: Likewise.
17193
17194         regex: add many uses of __attribute_warn_unused_result__
17195         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
17196         * lib/regexec.c: Likewise.
17197         Extracted from a messy glibc commit.
17198
17199         regcomp.c: spelling and merge-artifact from glibc
17200         * lib/regcomp.c: Merge remainder of glibc's
17201         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17202
17203         regcomp.c: sync white-space changes from glibc
17204         * lib/regcomp.c: Merge to accommodate white space
17205         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17206
17207         regcomp.c: do not ignore internal return values
17208         * lib/regcomp.c: Do not ignore internal return values.
17209         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
17210         but without its white-space changes and spelling fixes.
17211
17212         regex_internal.h: define __attribute_warn_unused_result__
17213         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
17214
17215         maint: add a syntax-check rule to check for vulnerable Makefile.in
17216         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
17217
17218 2010-01-27  Jim Meyering  <meyering@redhat.com>
17219
17220         ncftpput-ftp: clean up spaces
17221         * build-aux/ncftpput-ftp: Make Copyright line consistent.
17222         Remove trailing blanks.
17223
17224 2010-01-27  Simon Josefsson  <simon@josefsson.org>
17225
17226         * build-aux/git-version-gen: Fix copyright statement.
17227         * build-aux/gnupload: Likewise.
17228         * tests/test-arcfour.c: Likewise.
17229         * tests/test-arctwo.c: Likewise.
17230         * tests/test-count-one-bits.c: Likewise.
17231         * tests/test-crc.c: Likewise.
17232         * tests/test-des.c: Likewise.
17233         * tests/test-gc-arcfour.c: Likewise.
17234         * tests/test-gc-arctwo.c: Likewise.
17235         * tests/test-gc-des.c: Likewise.
17236         * tests/test-gc-hmac-md5.c: Likewise.
17237         * tests/test-gc-hmac-sha1.c: Likewise.
17238         * tests/test-gc-md2.c: Likewise.
17239         * tests/test-gc-md4.c: Likewise.
17240         * tests/test-gc-md5.c: Likewise.
17241         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17242         * tests/test-gc-rijndael.c: Likewise.
17243         * tests/test-gc-sha1.c: Likewise.
17244         * tests/test-gc.c: Likewise.
17245         * tests/test-gethostname.c: Likewise.
17246         * tests/test-gettimeofday.c: Likewise.
17247         * tests/test-hash.c: Likewise.
17248         * tests/test-hmac-md5.c: Likewise.
17249         * tests/test-hmac-sha1.c: Likewise.
17250         * tests/test-md2.c: Likewise.
17251         * tests/test-md4.c: Likewise.
17252         * tests/test-md5.c: Likewise.
17253         * tests/test-memchr.c: Likewise.
17254         * tests/test-memchr2.c: Likewise.
17255         * tests/test-memcmp.c: Likewise.
17256         * tests/test-memmem.c: Likewise.
17257         * tests/test-memrchr.c: Likewise.
17258         * tests/test-rawmemchr.c: Likewise.
17259         * tests/test-read-file.c: Likewise.
17260         * tests/test-rijndael.c: Likewise.
17261         * tests/test-sockets.c: Likewise.
17262         * tests/test-strchrnul.c: Likewise.
17263         * tests/test-strstr.c: Likewise.
17264         * tests/test-strtod.c: Likewise.
17265         * build-aux/ncftpput-ftp: Likewise.
17266
17267 2010-01-26  Eric Blake  <ebb9@byu.net>
17268
17269         ignore-value: update recommended header name
17270         * modules/ignore-value (Include): Only use <> for headers that
17271         exist in glibc.
17272
17273 2010-01-26  Jim Meyering  <meyering@redhat.com>
17274
17275         test-userspec.c: avoid compiler warnings
17276         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
17277         and "initialization discards qualifiers..." warnings.
17278         Put the first "uid" in its own scope, and make char* members "const".
17279
17280 2010-01-25  Bruno Haible  <bruno@clisp.org>
17281
17282         gnulib-tool: Make warning diagnostics consistent.
17283         * gnulib-tool (func_warning): New function.
17284         Use it everywhere where gnulib-tool produces output to stderr and it is
17285         not a fatal error.
17286
17287 2010-01-25  Bruno Haible  <bruno@clisp.org>
17288
17289         Fix test dependencies.
17290         * modules/xstrtol-tests (Depends-on): Add inttypes.
17291         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
17292
17293 2010-01-25 Pádraig Brady <P@draigBrady.com>
17294
17295         syntax-check: detect incorrect boolean macro values in config.h
17296         * modules/maintainer-makefile (configure.ac): Parameterize the location
17297         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
17298         The logic is from Eric Blake and the location indicated by Jim Meyering.
17299         Note the more natural CONFIG_HEADER name is prohibited by automake
17300         for backwards compatibility reasons.
17301         * top/maint.mk (sc_Wundef_boolean): New rule.
17302
17303 2010-01-25  Jim Meyering  <meyering@redhat.com>
17304
17305         bootstrap: detect MacOS 10.6's shasum, too
17306         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
17307         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
17308
17309 2010-01-23  Jim Meyering  <meyering@redhat.com>
17310
17311         xstrtoll: new module
17312         * modules/xstrtoll: New file.
17313         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
17314         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
17315         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
17316         ./configure fails if you use this module and lack "long long".
17317         * modules/xstrtoll-tests: New module.
17318         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
17319         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
17320         new init.sh-based test framework.
17321
17322 2010-01-24  Bruno Haible  <bruno@clisp.org>
17323
17324         Tests for module 'yn'.
17325         * modules/yn-tests: New file.
17326         * tests/test-yn.c: New file.
17327
17328         Tests for module 'y1'.
17329         * modules/y1-tests: New file.
17330         * tests/test-y1.c: New file.
17331
17332         Tests for module 'y0'.
17333         * modules/y0-tests: New file.
17334         * tests/test-y0.c: New file.
17335
17336         Tests for module 'tanh'.
17337         * modules/tanh-tests: New file.
17338         * tests/test-tanh.c: New file.
17339
17340         Tests for module 'tan'.
17341         * modules/tan-tests: New file.
17342         * tests/test-tan.c: New file.
17343
17344         Tests for module 'sqrt'.
17345         * modules/sqrt-tests: New file.
17346         * tests/test-sqrt.c: New file.
17347
17348         Tests for module 'sinh'.
17349         * modules/sinh-tests: New file.
17350         * tests/test-sinh.c: New file.
17351
17352         Tests for module 'sin'.
17353         * modules/sin-tests: New file.
17354         * tests/test-sin.c: New file.
17355
17356         Tests for module 'rint'.
17357         * modules/rint-tests: New file.
17358         * tests/test-rint.c: New file.
17359
17360         Tests for module 'remainder'.
17361         * modules/remainder-tests: New file.
17362         * tests/test-remainder.c: New file.
17363
17364         Tests for module 'pow'.
17365         * modules/pow-tests: New file.
17366         * tests/test-pow.c: New file.
17367
17368         Tests for module 'nextafter'.
17369         * modules/nextafter-tests: New file.
17370         * tests/test-nextafter.c: New file.
17371
17372         Tests for module 'modf'.
17373         * modules/modf-tests: New file.
17374         * tests/test-modf.c: New file.
17375
17376         Tests for module 'logb'.
17377         * modules/logb-tests: New file.
17378         * tests/test-logb.c: New file.
17379
17380         Tests for module 'log1p'.
17381         * modules/log1p-tests: New file.
17382         * tests/test-log1p.c: New file.
17383
17384         Tests for module 'log10'.
17385         * modules/log10-tests: New file.
17386         * tests/test-log10.c: New file.
17387
17388         Tests for module 'log'.
17389         * modules/log-tests: New file.
17390         * tests/test-log.c: New file.
17391
17392         Tests for module 'lgamma'.
17393         * modules/lgamma-tests: New file.
17394         * tests/test-lgamma.c: New file.
17395
17396         Tests for module 'ldexp'.
17397         * modules/ldexp-tests: New file.
17398         * tests/test-ldexp.c: New file.
17399
17400         Tests for module 'jn'.
17401         * modules/jn-tests: New file.
17402         * tests/test-jn.c: New file.
17403
17404         Tests for module 'j1'.
17405         * modules/j1-tests: New file.
17406         * tests/test-j1.c: New file.
17407
17408         Tests for module 'j0'.
17409         * modules/j0-tests: New file.
17410         * tests/test-j0.c: New file.
17411
17412         Tests for module 'hypot'.
17413         * modules/hypot-tests: New file.
17414         * tests/test-hypot.c: New file.
17415
17416         Tests for module 'fmod'.
17417         * modules/fmod-tests: New file.
17418         * tests/test-fmod.c: New file.
17419
17420         Tests for module 'fabs'.
17421         * modules/fabs-tests: New file.
17422         * tests/test-fabs.c: New file.
17423
17424         Tests for module 'exp'.
17425         * modules/exp-tests: New file.
17426         * tests/test-exp.c: New file.
17427
17428         Tests for module 'erfc'.
17429         * modules/erfc-tests: New file.
17430         * tests/test-erfc.c: New file.
17431
17432         Tests for module 'erf'.
17433         * modules/erf-tests: New file.
17434         * tests/test-erf.c: New file.
17435
17436         Tests for module 'cosh'.
17437         * modules/cosh-tests: New file.
17438         * tests/test-cosh.c: New file.
17439
17440         Tests for module 'cos'.
17441         * modules/cos-tests: New file.
17442         * tests/test-cos.c: New file.
17443
17444         Tests for module 'copysign'.
17445         * modules/copysign-tests: New file.
17446         * tests/test-copysign.c: New file.
17447
17448         Tests for module 'cbrt'.
17449         * modules/cbrt-tests: New file.
17450         * tests/test-cbrt.c: New file.
17451
17452         Tests for module 'atan2'.
17453         * modules/atan2-tests: New file.
17454         * tests/test-atan2.c: New file.
17455
17456         Tests for module 'atan'.
17457         * modules/atan-tests: New file.
17458         * tests/test-atan.c: New file.
17459
17460         Tests for module 'asin'.
17461         * modules/asin-tests: New file.
17462         * tests/test-asin.c: New file.
17463
17464         Tests for module 'acos'.
17465         * modules/acos-tests: New file.
17466         * tests/test-acos.c: New file.
17467
17468 2010-01-24  Bruno Haible  <bruno@clisp.org>
17469
17470         Fix tests for common <math.h> functions.
17471         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
17472         code snippet that references the function pointer, rather than merely
17473         calling the function. Substitute the FUNC_LIBM variable.
17474         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
17475         * modules/acos (configure.ac): Likewise.
17476         * modules/asin (configure.ac): Likewise.
17477         * modules/atan (configure.ac): Likewise.
17478         * modules/atan2 (configure.ac): Likewise.
17479         * modules/cbrt (configure.ac): Likewise.
17480         * modules/copysign (configure.ac): Likewise.
17481         * modules/cos (configure.ac): Likewise.
17482         * modules/cosh (configure.ac): Likewise.
17483         * modules/erf (configure.ac): Likewise.
17484         * modules/erfc (configure.ac): Likewise.
17485         * modules/exp (configure.ac): Likewise.
17486         * modules/fabs (configure.ac): Likewise.
17487         * modules/fmod (configure.ac): Likewise.
17488         * modules/hypot (configure.ac): Likewise.
17489         * modules/j0 (configure.ac): Likewise.
17490         * modules/j1 (configure.ac): Likewise.
17491         * modules/jn (configure.ac): Likewise.
17492         * modules/ldexp (configure.ac): Likewise.
17493         * modules/lgamma (configure.ac): Likewise.
17494         * modules/log (configure.ac): Likewise.
17495         * modules/log10 (configure.ac): Likewise.
17496         * modules/log1p (configure.ac): Likewise.
17497         * modules/logb (configure.ac): Likewise.
17498         * modules/modf (configure.ac): Likewise.
17499         * modules/nextafter (configure.ac): Likewise.
17500         * modules/pow (configure.ac): Likewise.
17501         * modules/remainder (configure.ac): Likewise.
17502         * modules/rint (configure.ac): Likewise.
17503         * modules/sin (configure.ac): Likewise.
17504         * modules/sinh (configure.ac): Likewise.
17505         * modules/tan (configure.ac): Likewise.
17506         * modules/tanh (configure.ac): Likewise.
17507         * modules/y0 (configure.ac): Likewise.
17508         * modules/y1 (configure.ac): Likewise.
17509         * modules/yn (configure.ac): Likewise.
17510
17511 2010-01-24  Bruno Haible  <bruno@clisp.org>
17512
17513         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
17514         * tests/test-acosl.c (x): New variable.
17515         (main): Store argument in x and fetch it from x.
17516         * tests/test-asinl.c (x): New variable.
17517         (main): Store argument in x and fetch it from x.
17518         * tests/test-atanl.c (x): New variable.
17519         (main): Store argument in x and fetch it from x.
17520         * tests/test-cosl.c (x): New variable.
17521         (main): Store argument in x and fetch it from x.
17522         * tests/test-expl.c (x): New variable.
17523         (main): Store argument in x and fetch it from x.
17524         * tests/test-logl.c (x): New variable.
17525         (main): Store argument in x and fetch it from x.
17526         * tests/test-sinl.c (x): New variable.
17527         (main): Store argument in x and fetch it from x.
17528         * tests/test-sqrtl.c (x): New variable.
17529         (main): Store argument in x and fetch it from x.
17530         * tests/test-tanl.c (x): New variable.
17531         (main): Store argument in x and fetch it from x.
17532
17533 2010-01-24  Bruno Haible  <bruno@clisp.org>
17534
17535         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
17536         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
17537         assignments to the initial TESTS_ENVIRONMENT.
17538         * doc/gnulib.texi (Unit test modules): Document it.
17539         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
17540         TESTS_ENVIRONMENT.
17541         * modules/btowc-tests (Makefile.am): Likewise.
17542         * modules/c-stack-tests (Makefile.am): Likewise.
17543         * modules/c-strcase-tests (Makefile.am): Likewise.
17544         * modules/copy-file-tests (Makefile.am): Likewise.
17545         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
17546         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
17547         * modules/mbrtowc-tests (Makefile.am): Likewise.
17548         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17549         * modules/mbscasestr-tests (Makefile.am): Likewise.
17550         * modules/mbschr-tests (Makefile.am): Likewise.
17551         * modules/mbscspn-tests (Makefile.am): Likewise.
17552         * modules/mbsinit-tests (Makefile.am): Likewise.
17553         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17554         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
17555         * modules/mbspbrk-tests (Makefile.am): Likewise.
17556         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17557         * modules/mbsrchr-tests (Makefile.am): Likewise.
17558         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
17559         * modules/mbsspn-tests (Makefile.am): Likewise.
17560         * modules/mbsstr-tests (Makefile.am): Likewise.
17561         * modules/nl_langinfo-tests (Makefile.am): Likewise.
17562         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
17563         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17564         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17565         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17566         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17567         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
17568         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17569         * modules/wcrtomb-tests (Makefile.am): Likewise.
17570         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
17571         * modules/wcsrtombs-tests (Makefile.am): Likewise.
17572         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
17573         assignments from TESTS_ENVIRONMENT.
17574         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
17575         augmentation.
17576         * modules/argp-version-etc-tests (Makefile.am): Likewise.
17577         * modules/atexit-tests (Makefile.am): Likewise.
17578         * modules/binary-io-tests (Makefile.am): Likewise.
17579         * modules/closein-tests (Makefile.am): Likewise.
17580         * modules/dprintf-posix-tests (Makefile.am): Likewise.
17581         * modules/exclude-tests (Makefile.am): Likewise.
17582         * modules/fflush-tests (Makefile.am): Likewise.
17583         * modules/fpending-tests (Makefile.am): Likewise.
17584         * modules/fprintf-posix-tests (Makefile.am): Likewise.
17585         * modules/freadahead-tests (Makefile.am): Likewise.
17586         * modules/freadptr-tests (Makefile.am): Likewise.
17587         * modules/freadseek-tests (Makefile.am): Likewise.
17588         * modules/fseek-tests (Makefile.am): Likewise.
17589         * modules/fseeko-tests (Makefile.am): Likewise.
17590         * modules/ftell-tests (Makefile.am): Likewise.
17591         * modules/ftello-tests (Makefile.am): Likewise.
17592         * modules/idpriv-drop-tests (Makefile.am): Likewise.
17593         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
17594         * modules/lseek-tests (Makefile.am): Likewise.
17595         * modules/parse-duration-tests (Makefile.am): Likewise.
17596         * modules/perror-tests (Makefile.am): Likewise.
17597         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
17598         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
17599         * modules/pipe-tests (Makefile.am): Likewise.
17600         * modules/pread-tests (Makefile.am): Likewise.
17601         * modules/printf-posix-tests (Makefile.am): Likewise.
17602         * modules/select-tests (Makefile.am): Likewise.
17603         * modules/sigpipe-tests (Makefile.am): Likewise.
17604         * modules/tsearch-tests (Makefile.am): Likewise.
17605         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
17606         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
17607         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17608         * modules/uniwidth/width-tests (Makefile.am): Likewise.
17609         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
17610         * modules/version-etc-tests (Makefile.am): Likewise.
17611         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17612         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17613         * modules/xalloc-die-tests (Makefile.am): Likewise.
17614         * modules/xprintf-posix-tests (Makefile.am): Likewise.
17615         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17616         * modules/xstrtol-tests (Makefile.am): Likewise.
17617         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17618         * modules/yesno-tests (Makefile.am): Likewise.
17619         Suggested by Jim Meyering.
17620
17621 2010-01-24  Bruno Haible  <bruno@clisp.org>
17622
17623         More documentation.
17624         * doc/gnulib.texi (Writing modules): New chapter.
17625         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
17626         the new chapter.
17627
17628 2010-01-24  Jim Meyering  <meyering@redhat.com>
17629
17630         maint.mk: do not prepend "./" after filtering
17631         * top/maint.mk (_prepend_srcdir_prefix): New variable
17632         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
17633         "./" when $(srcdir) is ".".
17634
17635         define STREQ(a,b) consistently, removing useless parentheses
17636         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
17637         since the only risk is that "a" or "b" contains an unparenthesized
17638         comma, but if either did that, STREQ would have 3 or more arguments.
17639         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
17640         * lib/fts.c (STREQ): Remove unnecessary parentheses.
17641         * lib/hash-triple.c (STREQ): Likewise.
17642         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
17643         * lib/getugroups.c (STREQ): Likewise.
17644
17645 2010-01-23  Jim Meyering  <meyering@redhat.com>
17646
17647         maint.mk: fix syntax-check in a non-srcdir build directory
17648         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
17649         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
17650
17651 2010-01-22  Jim Meyering  <meyering@redhat.com>
17652
17653         userspec: add unit tests
17654         * tests/test-userspec.c: New file.
17655         * modules/userspec-tests: Likewise.
17656
17657 2010-01-21  Jim Meyering  <meyering@redhat.com>
17658
17659         maint.mk: handle source file names containing "." robustly
17660         * top/maint.mk (_dot_escaped_srcdir): Define.
17661         (VC_LIST): Use it in LHS of sed substitution.
17662
17663 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
17664
17665         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
17666         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
17667         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
17668         from a non-srcdir build.
17669
17670 2010-01-20  Eric Blake  <ebb9@byu.net>
17671
17672         warn-on-use: use instead of link-warning
17673         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
17674         * modules/unistd (Depends-on, Makefile.am): Likewise.
17675         * modules/arpa_inet (Depends-on): Replace link-warning with
17676         warn-on-use.
17677         (Makefile.am): Update rules accordingly.
17678         * modules/ctype (Depends-on, Makefile.am): Likewise.
17679         * modules/dirent (Depends-on, Makefile.am): Likewise.
17680         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
17681         * modules/inttypes (Depends-on, Makefile.am): Likewise.
17682         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17683         * modules/locale (Depends-on, Makefile.am): Likewise.
17684         * modules/math (Depends-on, Makefile.am): Likewise.
17685         * modules/search (Depends-on, Makefile.am): Likewise.
17686         * modules/signal (Depends-on, Makefile.am): Likewise.
17687         * modules/spawn (Depends-on, Makefile.am): Likewise.
17688         * modules/stdlib (Depends-on, Makefile.am): Likewise.
17689         * modules/string (Depends-on, Makefile.am): Likewise.
17690         * modules/strings (Depends-on, Makefile.am): Likewise.
17691         * modules/sys_file (Depends-on, Makefile.am): Likewise.
17692         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
17693         * modules/sys_select (Depends-on, Makefile.am): Likewise.
17694         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
17695         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
17696         * modules/sys_times (Depends-on, Makefile.am): Likewise.
17697         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17698         * modules/wchar (Depends-on, Makefile.am): Likewise.
17699         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
17700         should be poisoned.
17701         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
17702         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
17703         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
17704         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17705         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17706         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17707         * m4/math_h.m4 (gl_MATH_H): Likewise.
17708         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17709         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
17710         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17711         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
17712         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
17713         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
17714         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
17715         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
17716         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17717         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17718         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17719         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
17720         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17721         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17722         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17723         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17724         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
17725         GL_LINK_WARNING.
17726         * lib/ctype.in.h: Likewise.
17727         * lib/dirent.in.h: Likewise.
17728         * lib/fcntl.in.h: Likewise.
17729         * lib/inttypes.in.h: Likewise.
17730         * lib/langinfo.in.h: Likewise.
17731         * lib/locale.in.h: Likewise.
17732         * lib/math.in.h: Likewise.
17733         * lib/search.in.h: Likewise.
17734         * lib/signal.in.h: Likewise.
17735         * lib/spawn.in.h: Likewise.
17736         * lib/stdio.in.h: Likewise.
17737         * lib/stdlib.in.h: Likewise.
17738         * lib/string.in.h: Likewise.
17739         * lib/strings.in.h: Likewise.
17740         * lib/sys_file.in.h: Likewise.
17741         * lib/sys_ioctl.in.h: Likewise.
17742         * lib/sys_select.in.h: Likewise.
17743         * lib/sys_socket.in.h: Likewise.
17744         * lib/sys_stat.in.h: Likewise.
17745         * lib/sys_times.in.h: Likewise.
17746         * lib/sys_utsname.in.h: Likewise.
17747         * lib/unistd.in.h: Likewise.
17748         * lib/wchar.in.h: Likewise.
17749
17750 2010-01-20  Bruno Haible  <bruno@clisp.org>
17751
17752         Avoid duplicate -lm.
17753         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
17754         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
17755         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
17756         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
17757         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
17758         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
17759         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
17760         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
17761         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
17762         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
17763         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
17764         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17765         Reported by Paolo Bonzini.
17766
17767 2010-01-19  Bruno Haible  <bruno@clisp.org>
17768
17769         langinfo, nl_langinfo: Relicense under LGPLv2+.
17770         * modules/langinfo (License): Change to LGPLv2+.
17771         * modules/nl_langinfo (License): Likewise.
17772         Patch by David Lutterkort <lutter@redhat.com>.
17773
17774 2010-01-19  Bruno Haible  <bruno@clisp.org>
17775
17776         Avoid compilation error with cc on OSF/1 5.1.
17777         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
17778         statement, not before.
17779         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17780
17781 2010-01-18  Bruno Haible  <bruno@clisp.org>
17782
17783         Avoid a link error due to the __printf__ symbol.
17784         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
17785         and 2.6.x.
17786         (__format__, __printf__): Remove definitions.
17787         * lib/argp-fmtstream.h: Likewise.
17788         * lib/argp.h: Likewise.
17789         * lib/error.h: Likewise.
17790         * lib/vasnprintf.h: Likewise.
17791         * lib/xprintf.h: Likewise.
17792         * lib/xvasprintf.h: Likewise.
17793         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17794
17795 2010-01-18  Bruno Haible  <bruno@clisp.org>
17796
17797         Tests for module 'tanl'.
17798         * modules/tanl-tests: New file.
17799         * tests/test-tanl.c: New file.
17800
17801         Tests for module 'sqrtl'.
17802         * modules/sqrtl-tests: New file.
17803         * tests/test-sqrtl.c: New file.
17804
17805         Tests for module 'sinl'.
17806         * modules/sinl-tests: New file.
17807         * tests/test-sinl.c: New file.
17808
17809         Tests for module 'logl'.
17810         * modules/logl-tests: New file.
17811         * tests/test-logl.c: New file.
17812
17813         Tests for module 'expl'.
17814         * modules/expl-tests: New file.
17815         * tests/test-expl.c: New file.
17816
17817         Tests for module 'cosl'.
17818         * modules/cosl-tests: New file.
17819         * tests/test-cosl.c: New file.
17820
17821         Tests for module 'atanl'.
17822         * modules/atanl-tests: New file.
17823         * tests/test-atanl.c: New file.
17824
17825         Tests for module 'asinl'.
17826         * modules/asinl-tests: New file.
17827         * tests/test-asinl.c: New file.
17828
17829         Tests for module 'acosl'.
17830         * modules/acosl-tests: New file.
17831         * tests/test-acosl.c: New file.
17832
17833         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17834         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
17835         tanl): Use the standard gnulib idiom.
17836         * lib/cosl.c: Don't include trigl.c and sincosl.c.
17837         * lib/sinl.c: Likewise.
17838         * lib/tanl.c: Don't include trigl.c.
17839         (kernel_tanl): Make static.
17840         * lib/sincosl.c: Include trigl.h first.
17841         * lib/trigl.c: Likewise.
17842         * m4/acosl.m4: New file.
17843         * m4/asinl.m4: New file.
17844         * m4/atanl.m4: New file.
17845         * m4/cosl.m4: New file.
17846         * m4/expl.m4: New file.
17847         * m4/logl.m4: New file.
17848         * m4/sinl.m4: New file.
17849         * m4/sqrtl.m4: New file.
17850         * m4/tanl.m4: New file.
17851         * m4/mathl.m4: Remove file.
17852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
17853         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17854         Don't initialize GNULIB_MATHL.
17855         * modules/acosl: New file.
17856         * modules/asinl: New file.
17857         * modules/atanl: New file.
17858         * modules/cosl: New file.
17859         * modules/expl: New file.
17860         * modules/logl: New file.
17861         * modules/sinl: New file.
17862         * modules/sqrtl: New file.
17863         * modules/tanl: New file.
17864         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
17865         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
17866         substitute GNULIB_MATHL.
17867         * modules/mathl: Rewritten.
17868         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
17869         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
17870         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
17871         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
17872         * doc/posix-functions/expl.texi: Mention the 'expl' module.
17873         * doc/posix-functions/logl.texi: Mention the 'logl' module.
17874         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
17875         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
17876         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
17877
17878 2010-01-18  Bruno Haible  <bruno@clisp.org>
17879
17880         sqrt: Make gl_FUNC_SQRT requirable.
17881         * m4/sqrt.m4: New file.
17882         * modules/sqrt (Files): Add it.
17883         (configure.ac): Invoke gl_FUNC_SQRT.
17884
17885 2010-01-18  Bruno Haible  <bruno@clisp.org>
17886
17887         New modules for common <math.h> functions.
17888         * m4/mathfunc.m4: New file.
17889         * modules/acos: New file.
17890         * modules/asin: New file.
17891         * modules/atan: New file.
17892         * modules/atan2: New file.
17893         * modules/cbrt: New file.
17894         * modules/copysign: New file.
17895         * modules/cos: New file.
17896         * modules/cosh: New file.
17897         * modules/erf: New file.
17898         * modules/erfc: New file.
17899         * modules/exp: New file.
17900         * modules/fabs: New file.
17901         * modules/fmod: New file.
17902         * modules/hypot: New file.
17903         * modules/j0: New file.
17904         * modules/j1: New file.
17905         * modules/jn: New file.
17906         * modules/ldexp: New file.
17907         * modules/lgamma: New file.
17908         * modules/log: New file.
17909         * modules/log10: New file.
17910         * modules/log1p: New file.
17911         * modules/logb: New file.
17912         * modules/modf: New file.
17913         * modules/nextafter: New file.
17914         * modules/pow: New file.
17915         * modules/remainder: New file.
17916         * modules/rint: New file.
17917         * modules/sin: New file.
17918         * modules/sinh: New file.
17919         * modules/sqrt: New file.
17920         * modules/tan: New file.
17921         * modules/tanh: New file.
17922         * modules/y0: New file.
17923         * modules/y1: New file.
17924         * modules/yn: New file.
17925         * doc/posix-functions/acos.texi: Mention the 'acos' module.
17926         * doc/posix-functions/asin.texi: Mention the 'asin' module.
17927         * doc/posix-functions/atan.texi: Mention the 'atan' module.
17928         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
17929         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
17930         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
17931         * doc/posix-functions/cos.texi: Mention the 'cos' module.
17932         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
17933         * doc/posix-functions/erf.texi: Mention the 'erf' module.
17934         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
17935         * doc/posix-functions/exp.texi: Mention the 'exp' module.
17936         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
17937         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
17938         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
17939         * doc/posix-functions/j0.texi: Mention the 'j0' module.
17940         * doc/posix-functions/j1.texi: Mention the 'j1' module.
17941         * doc/posix-functions/jn.texi: Mention the 'jn' module.
17942         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
17943         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
17944         * doc/posix-functions/log.texi: Mention the 'log' module.
17945         * doc/posix-functions/log10.texi: Mention the 'log10' module.
17946         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
17947         * doc/posix-functions/logb.texi: Mention the 'logb' module.
17948         * doc/posix-functions/modf.texi: Mention the 'modf' module.
17949         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
17950         * doc/posix-functions/pow.texi: Mention the 'pow' module.
17951         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
17952         * doc/posix-functions/rint.texi: Mention the 'rint' module.
17953         * doc/posix-functions/sin.texi: Mention the 'sin' module.
17954         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
17955         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
17956         * doc/posix-functions/tan.texi: Mention the 'tan' module.
17957         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
17958         * doc/posix-functions/y0.texi: Mention the 'y0' module.
17959         * doc/posix-functions/y1.texi: Mention the 'y1' module.
17960         * doc/posix-functions/yn.texi: Mention the 'yn' module.
17961
17962 2010-01-18  Jim Meyering  <meyering@redhat.com>
17963
17964         ignore-value: relax license to LGPLv2+
17965         * modules/ignore-value (License): Relax to LGPLv2+.
17966
17967         getdate: don't leak when TZ contains two or more '"'s
17968         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
17969         double quote in TZ after the first one.
17970
17971         readtokens: do not leak internal token_lengths buffer
17972         * lib/readtokens.c (readtokens): Free the local, lengths,
17973         when the supplied "token_lengths" parameter is NULL.
17974
17975 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17976
17977         Fix a couple of missing LIBTHREAD link failures on AIX.
17978         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
17979         $(LIBTHREAD).
17980         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
17981
17982         Link test-poll against INET_PTON_LIB.
17983         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
17984         for inet_pton on Solaris 10.
17985
17986 2010-01-17  Bruno Haible  <bruno@clisp.org>
17987
17988         unistdio/*-sprintf: Fix typo in module description.
17989         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
17990         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
17991         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
17992         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
17993         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
17994         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
17995         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
17996         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17997
17998 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17999
18000         gnulib-tool: fix filelist for AIX, HP-UX ksh.
18001         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
18002         variables in shell case patterns, for AIX and HP-UX ksh.
18003
18004         Split large sed scripts, for HP-UX sed.
18005         * modules/stdio: Split sed scripts around 50 sed commands,
18006         to avoid HP-UX limit of 99 commands, in the near future.
18007         * modules/string: Likewise.
18008         * modules/unistd: Likewise.
18009
18010         gnulib-tool: avoid writing in the current directory.
18011         * gnulib-tool (func_emit_lib_Makefile_am)
18012         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
18013         not in the current directory, so concurrent gnulib-tool
18014         instances do not interfere.
18015
18016 2010-01-16  Jim Meyering  <meyering@redhat.com>
18017
18018         doc: update users.txt
18019         * users.txt: Add grep.
18020         (diffutils, gzip): Update URLs.
18021
18022 2010-01-12  Bruno Haible  <bruno@clisp.org>
18023
18024         posix_spawn: Avoid test failure on Cygwin.
18025         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
18026         characters.
18027         Reported by Simon Josefsson.
18028
18029 2010-01-12  Bruno Haible  <bruno@clisp.org>
18030
18031         * tests/test-cond.c (main): When skipping the test, show the reason.
18032
18033 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18034
18035         * lib/striconv.c (str_cd_iconv): Avoid if before free.
18036
18037 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18038
18039         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
18040         VC_LIST_ALWAYS_EXCLUDE_REGEX.
18041
18042 2010-01-12  Eric Blake  <ebb9@byu.net>
18043
18044         build: guarantee AS_VAR_IF
18045         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
18046         (gl_AS_VAR_IF): Move...
18047         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
18048         Reported by Simon Josefsson.
18049
18050 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18051
18052         * lib/stdio.in.h: Fix typo.
18053
18054 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18055
18056         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
18057         libgpg-error.
18058
18059 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18060
18061         * tests/test-xalloc-die.sh: Use $EXEEXT.
18062
18063 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18064             Bruno Haible  <bruno@clisp.org>
18065
18066         getlogin, getlogin_r: Avoid test failure.
18067         * tests/test-getlogin.c: Include <stdio.h>.
18068         (main): Skip the test when the function fails because stdin is not a
18069         tty.
18070         * tests/test-getlogin_r.c: Include <stdio.h>.
18071         (main): Skip the test when the function fails because stdin is not a
18072         tty.
18073
18074 2010-01-11  Eric Blake  <ebb9@byu.net>
18075
18076         tests: avoid more large file warnings
18077         * tests/test-fflush.c: Avoid warning about ftell use.
18078         * tests/test-fseek.c: Avoid warning about fseek use.
18079
18080 2010-01-10  Bruno Haible  <bruno@clisp.org>
18081
18082         nproc: Work better on Linux when /proc and /sys are not mounted.
18083         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
18084         as lower bound when, on glibc/Linux systems,
18085         sysconf (_SC_NPROCESSORS_CONF) returns 1.
18086         Suggested by Pádraig Brady <P@draigbrady.com>.
18087         Reported by Dmitry V. Levin <ldv@altlinux.org>.
18088
18089         nproc: Refactor.
18090         * lib/nproc.c (num_processors_via_affinity_mask): New function,
18091         extracted from num_processors.
18092         (num_processors): Call it.
18093
18094 2010-01-11  Jim Meyering  <meyering@redhat.com>
18095
18096         utimecmp: avoid new warning from upcoming gcc-4.5.0
18097         * lib/utimecmp.c (BILLION): Define using #define rather than an
18098         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
18099
18100 2010-01-11  Eric Blake  <ebb9@byu.net>
18101
18102         math: add portability warnings for classification macros
18103         * modules/math (Depends-on): Add warn-on-use.
18104         (Makefile.am): Provide new substitutions.
18105         * m4/math_h.m4 (gl_MATH_H): Require inline.
18106         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
18107         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
18108         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
18109         implement warnings.
18110
18111         unistd: warn on use of environ without module
18112         * modules/unistd (Depends-on): Add warn-on-use.
18113         (Makefile.am): Provide new substitutions.
18114         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
18115         * lib/unistd.in.h (environ): Wrap with a warning helper function.
18116
18117         stdio: warn on suspicious uses
18118         * modules/stdio (Depends-on): Add warn-on-use.
18119         (Makefile.am): Provide new substitutions.
18120         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
18121         fseeko.
18122         * lib/stdio.in.h (gets): Always warn on use.
18123         (fseek, ftell): Adjust when warnings are issued, and honor
18124         _GL_NO_LARGE_FILES as a way to silence the warning.
18125         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
18126         any warning about large file offsets.
18127         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
18128         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
18129         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
18130         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
18131         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
18132         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
18133         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
18134         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
18135
18136         warn-on-use: new module
18137         * modules/warn-on-use: New file.
18138         * build-aux/warn-on-use.h: Likewise.
18139         * m4/warn-on-use.m4: Likewise.
18140         * MODULES.html.sh (Support for building): Mention it.
18141
18142 2010-01-10  Bruno Haible  <bruno@clisp.org>
18143
18144         Tests for module 'unistr/u32-strdup'.
18145         * modules/unistr/u32-strdup-tests: New file.
18146         * tests/unistr/test-u32-strdup.c: New file.
18147
18148         Tests for module 'unistr/u16-strdup'.
18149         * modules/unistr/u16-strdup-tests: New file.
18150         * tests/unistr/test-u16-strdup.c: New file.
18151
18152         Tests for module 'unistr/u8-strdup'.
18153         * modules/unistr/u8-strdup-tests: New file.
18154         * tests/unistr/test-u8-strdup.c: New file.
18155         * tests/unistr/test-strdup.h: New file.
18156
18157         Tests for module 'unistr/u32-strncmp'.
18158         * modules/unistr/u32-strncmp-tests: New file.
18159         * tests/unistr/test-u32-strncmp.c: New file.
18160
18161         Tests for module 'unistr/u16-strncmp'.
18162         * modules/unistr/u16-strncmp-tests: New file.
18163         * tests/unistr/test-u16-strncmp.c: New file.
18164
18165         Tests for module 'unistr/u8-strncmp'.
18166         * modules/unistr/u8-strncmp-tests: New file.
18167         * tests/unistr/test-u8-strncmp.c: New file.
18168         * tests/unistr/test-strncmp.h: New file.
18169
18170         Tests for module 'unistr/u32-strcoll'.
18171         * modules/unistr/u32-strcoll-tests: New file.
18172         * tests/unistr/test-u32-strcoll.c: New file.
18173
18174         Tests for module 'unistr/u16-strcoll'.
18175         * modules/unistr/u16-strcoll-tests: New file.
18176         * tests/unistr/test-u16-strcoll.c: New file.
18177
18178         Tests for module 'unistr/u8-strcoll'.
18179         * modules/unistr/u8-strcoll-tests: New file.
18180         * tests/unistr/test-u8-strcoll.c: New file.
18181
18182         Tests for module 'unistr/u32-strcmp'.
18183         * modules/unistr/u32-strcmp-tests: New file.
18184         * tests/unistr/test-u32-strcmp.c: New file.
18185         * tests/unistr/test-u32-strcmp.h: New file.
18186
18187         Tests for module 'unistr/u16-strcmp'.
18188         * modules/unistr/u16-strcmp-tests: New file.
18189         * tests/unistr/test-u16-strcmp.c: New file.
18190         * tests/unistr/test-u16-strcmp.h: New file.
18191
18192         Tests for module 'unistr/u8-strcmp'.
18193         * modules/unistr/u8-strcmp-tests: New file.
18194         * tests/unistr/test-u8-strcmp.c: New file.
18195         * tests/unistr/test-u8-strcmp.h: New file.
18196         * tests/unistr/test-strcmp.h: New file.
18197
18198         Tests for module 'unistr/u32-strncat'.
18199         * modules/unistr/u32-strncat-tests: New file.
18200         * tests/unistr/test-u32-strncat.c: New file.
18201
18202         Tests for module 'unistr/u16-strncat'.
18203         * modules/unistr/u16-strncat-tests: New file.
18204         * tests/unistr/test-u16-strncat.c: New file.
18205
18206         Tests for module 'unistr/u8-strncat'.
18207         * modules/unistr/u8-strncat-tests: New file.
18208         * tests/unistr/test-u8-strncat.c: New file.
18209         * tests/unistr/test-strncat.h: New file.
18210
18211         Tests for module 'unistr/u32-strcat'.
18212         * modules/unistr/u32-strcat-tests: New file.
18213         * tests/unistr/test-u32-strcat.c: New file.
18214
18215         Tests for module 'unistr/u16-strcat'.
18216         * modules/unistr/u16-strcat-tests: New file.
18217         * tests/unistr/test-u16-strcat.c: New file.
18218
18219         Tests for module 'unistr/u8-strcat'.
18220         * modules/unistr/u8-strcat-tests: New file.
18221         * tests/unistr/test-u8-strcat.c: New file.
18222         * tests/unistr/test-strcat.h: New file.
18223
18224         Tests for module 'unistr/u32-stpncpy'.
18225         * modules/unistr/u32-stpncpy-tests: New file.
18226         * tests/unistr/test-u32-stpncpy.c: New file.
18227
18228         Tests for module 'unistr/u16-stpncpy'.
18229         * modules/unistr/u16-stpncpy-tests: New file.
18230         * tests/unistr/test-u16-stpncpy.c: New file.
18231
18232         Tests for module 'unistr/u8-stpncpy'.
18233         * modules/unistr/u8-stpncpy-tests: New file.
18234         * tests/unistr/test-u8-stpncpy.c: New file.
18235         * tests/unistr/test-stpncpy.h: New file.
18236
18237         Tests for module 'unistr/u32-strncpy'.
18238         * modules/unistr/u32-strncpy-tests: New file.
18239         * tests/unistr/test-u32-strncpy.c: New file.
18240
18241         Tests for module 'unistr/u16-strncpy'.
18242         * modules/unistr/u16-strncpy-tests: New file.
18243         * tests/unistr/test-u16-strncpy.c: New file.
18244
18245         Tests for module 'unistr/u8-strncpy'.
18246         * modules/unistr/u8-strncpy-tests: New file.
18247         * tests/unistr/test-u8-strncpy.c: New file.
18248         * tests/unistr/test-strncpy.h: New file.
18249
18250         Tests for module 'unistr/u32-stpcpy'.
18251         * modules/unistr/u32-stpcpy-tests: New file.
18252         * tests/unistr/test-u32-stpcpy.c: New file.
18253
18254         Tests for module 'unistr/u16-stpcpy'.
18255         * modules/unistr/u16-stpcpy-tests: New file.
18256         * tests/unistr/test-u16-stpcpy.c: New file.
18257
18258         Tests for module 'unistr/u8-stpcpy'.
18259         * modules/unistr/u8-stpcpy-tests: New file.
18260         * tests/unistr/test-u8-stpcpy.c: New file.
18261         * tests/unistr/test-stpcpy.h: New file.
18262
18263         Tests for module 'unistr/u32-strcpy'.
18264         * modules/unistr/u32-strcpy-tests: New file.
18265         * tests/unistr/test-u32-strcpy.c: New file.
18266
18267         Tests for module 'unistr/u16-strcpy'.
18268         * modules/unistr/u16-strcpy-tests: New file.
18269         * tests/unistr/test-u16-strcpy.c: New file.
18270
18271         Tests for module 'unistr/u8-strcpy'.
18272         * modules/unistr/u8-strcpy-tests: New file.
18273         * tests/unistr/test-u8-strcpy.c: New file.
18274         * tests/unistr/test-strcpy.h: New file.
18275
18276         Tests for module 'unistr/u32-strnlen'.
18277         * modules/unistr/u32-strnlen-tests: New file.
18278         * tests/unistr/test-u32-strnlen.c: New file.
18279
18280         Tests for module 'unistr/u16-strnlen'.
18281         * modules/unistr/u16-strnlen-tests: New file.
18282         * tests/unistr/test-u16-strnlen.c: New file.
18283
18284         Tests for module 'unistr/u8-strnlen'.
18285         * modules/unistr/u8-strnlen-tests: New file.
18286         * tests/unistr/test-u8-strnlen.c: New file.
18287         * tests/unistr/test-strnlen.h: New file.
18288
18289         Tests for module 'unistr/u32-strlen'.
18290         * modules/unistr/u32-strlen-tests: New file.
18291         * tests/unistr/test-u32-strlen.c: New file.
18292
18293         Tests for module 'unistr/u16-strlen'.
18294         * modules/unistr/u16-strlen-tests: New file.
18295         * tests/unistr/test-u16-strlen.c: New file.
18296
18297         Tests for module 'unistr/u8-strlen'.
18298         * modules/unistr/u8-strlen-tests: New file.
18299         * tests/unistr/test-u8-strlen.c: New file.
18300
18301         Tests for module 'unistr/u32-prev'.
18302         * modules/unistr/u32-prev-tests: New file.
18303         * tests/unistr/test-u32-prev.c: New file.
18304
18305         Tests for module 'unistr/u16-prev'.
18306         * modules/unistr/u16-prev-tests: New file.
18307         * tests/unistr/test-u16-prev.c: New file.
18308
18309         Tests for module 'unistr/u8-prev'.
18310         * modules/unistr/u8-prev-tests: New file.
18311         * tests/unistr/test-u8-prev.c: New file.
18312
18313         Tests for module 'unistr/u32-next'.
18314         * modules/unistr/u32-next-tests: New file.
18315         * tests/unistr/test-u32-next.c: New file.
18316
18317         Tests for module 'unistr/u16-next'.
18318         * modules/unistr/u16-next-tests: New file.
18319         * tests/unistr/test-u16-next.c: New file.
18320
18321         Tests for module 'unistr/u8-next'.
18322         * modules/unistr/u8-next-tests: New file.
18323         * tests/unistr/test-u8-next.c: New file.
18324
18325         Tests for module 'unistr/u32-strmbtouc'.
18326         * modules/unistr/u32-strmbtouc-tests: New file.
18327         * tests/unistr/test-u32-strmbtouc.c: New file.
18328
18329         Tests for module 'unistr/u16-strmbtouc'.
18330         * modules/unistr/u16-strmbtouc-tests: New file.
18331         * tests/unistr/test-u16-strmbtouc.c: New file.
18332
18333         Tests for module 'unistr/u8-strmbtouc'.
18334         * modules/unistr/u8-strmbtouc-tests: New file.
18335         * tests/unistr/test-u8-strmbtouc.c: New file.
18336
18337         Tests for module 'unistr/u32-strmblen'.
18338         * modules/unistr/u32-strmblen-tests: New file.
18339         * tests/unistr/test-u32-strmblen.c: New file.
18340
18341         Tests for module 'unistr/u16-strmblen'.
18342         * modules/unistr/u16-strmblen-tests: New file.
18343         * tests/unistr/test-u16-strmblen.c: New file.
18344
18345         Tests for module 'unistr/u8-strmblen'.
18346         * modules/unistr/u8-strmblen-tests: New file.
18347         * tests/unistr/test-u8-strmblen.c: New file.
18348
18349         Tests for module 'unistr/u32-cpy-alloc'.
18350         * modules/unistr/u32-cpy-alloc-tests: New file.
18351         * tests/unistr/test-u32-cpy-alloc.c: New file.
18352
18353         Tests for module 'unistr/u16-cpy-alloc'.
18354         * modules/unistr/u16-cpy-alloc-tests: New file.
18355         * tests/unistr/test-u16-cpy-alloc.c: New file.
18356
18357         Tests for module 'unistr/u8-cpy-alloc'.
18358         * modules/unistr/u8-cpy-alloc-tests: New file.
18359         * tests/unistr/test-u8-cpy-alloc.c: New file.
18360         * tests/unistr/test-cpy-alloc.h: New file.
18361
18362         Tests for module 'unistr/u32-mbsnlen'.
18363         * modules/unistr/u32-mbsnlen-tests: New file.
18364         * tests/unistr/test-u32-mbsnlen.c: New file.
18365
18366         Tests for module 'unistr/u16-mbsnlen'.
18367         * modules/unistr/u16-mbsnlen-tests: New file.
18368         * tests/unistr/test-u16-mbsnlen.c: New file.
18369
18370         Tests for module 'unistr/u8-mbsnlen'.
18371         * modules/unistr/u8-mbsnlen-tests: New file.
18372         * tests/unistr/test-u8-mbsnlen.c: New file.
18373
18374         Tests for module 'unistr/u32-chr'.
18375         * modules/unistr/u32-chr-tests: New file.
18376         * tests/unistr/test-u32-chr.c: New file.
18377
18378         Tests for module 'unistr/u16-chr'.
18379         * modules/unistr/u16-chr-tests: New file.
18380         * tests/unistr/test-u16-chr.c: New file.
18381
18382         Tests for module 'unistr/u8-chr'.
18383         * modules/unistr/u8-chr-tests: New file.
18384         * tests/unistr/test-u8-chr.c: New file.
18385         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
18386
18387         Tests for module 'unistr/u32-cmp2'.
18388         * modules/unistr/u32-cmp2-tests: New file.
18389         * tests/unistr/test-u32-cmp2.c: New file.
18390
18391         Tests for module 'unistr/u16-cmp2'.
18392         * modules/unistr/u16-cmp2-tests: New file.
18393         * tests/unistr/test-u16-cmp2.c: New file.
18394
18395         Tests for module 'unistr/u8-cmp2'.
18396         * modules/unistr/u8-cmp2-tests: New file.
18397         * tests/unistr/test-u8-cmp2.c: New file.
18398         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
18399
18400         Tests for module 'unistr/u32-cmp'.
18401         * modules/unistr/u32-cmp-tests: New file.
18402         * tests/unistr/test-u32-cmp.c: New file.
18403
18404         Tests for module 'unistr/u16-cmp'.
18405         * modules/unistr/u16-cmp-tests: New file.
18406         * tests/unistr/test-u16-cmp.c: New file.
18407
18408         Tests for module 'unistr/u8-cmp'.
18409         * modules/unistr/u8-cmp-tests: New file.
18410         * tests/unistr/test-u8-cmp.c: New file.
18411         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
18412
18413         Tests for module 'unistr/u32-set'.
18414         * modules/unistr/u32-set-tests: New file.
18415         * tests/unistr/test-u32-set.c: New file.
18416
18417         Tests for module 'unistr/u16-set'.
18418         * modules/unistr/u16-set-tests: New file.
18419         * tests/unistr/test-u16-set.c: New file.
18420
18421         Tests for module 'unistr/u8-set'.
18422         * modules/unistr/u8-set-tests: New file.
18423         * tests/unistr/test-u8-set.c: New file.
18424         * tests/unistr/test-set.h: New file.
18425
18426         Tests for module 'unistr/u32-move'.
18427         * modules/unistr/u32-move-tests: New file.
18428         * tests/unistr/test-u32-move.c: New file.
18429
18430         Tests for module 'unistr/u16-move'.
18431         * modules/unistr/u16-move-tests: New file.
18432         * tests/unistr/test-u16-move.c: New file.
18433
18434         Tests for module 'unistr/u8-move'.
18435         * modules/unistr/u8-move-tests: New file.
18436         * tests/unistr/test-u8-move.c: New file.
18437         * tests/unistr/test-move.h: New file.
18438
18439         Tests for module 'unistr/u32-cpy'.
18440         * modules/unistr/u32-cpy-tests: New file.
18441         * tests/unistr/test-u32-cpy.c: New file.
18442
18443         Tests for module 'unistr/u16-cpy'.
18444         * modules/unistr/u16-cpy-tests: New file.
18445         * tests/unistr/test-u16-cpy.c: New file.
18446
18447         Tests for module 'unistr/u8-cpy'.
18448         * modules/unistr/u8-cpy-tests: New file.
18449         * tests/unistr/test-u8-cpy.c: New file.
18450         * tests/unistr/test-cpy.h: New file.
18451
18452 2010-01-09  Bruno Haible  <bruno@clisp.org>
18453
18454         Tests for module 'unistr/u32-uctomb'.
18455         * modules/unistr/u32-uctomb-tests: New file.
18456         * tests/unistr/test-u32-uctomb.c: New file.
18457
18458         Tests for module 'unistr/u16-uctomb'.
18459         * modules/unistr/u16-uctomb-tests: New file.
18460         * tests/unistr/test-u16-uctomb.c: New file.
18461
18462         Tests for module 'unistr/u8-uctomb'.
18463         * modules/unistr/u8-uctomb-tests: New file.
18464         * tests/unistr/test-u8-uctomb.c: New file.
18465
18466         Tests for module 'unistr/u32-mbtoucr'.
18467         * modules/unistr/u32-mbtoucr-tests: New file.
18468         * tests/unistr/test-u32-mbtoucr.c: New file.
18469
18470         Tests for module 'unistr/u16-mbtoucr'.
18471         * modules/unistr/u16-mbtoucr-tests: New file.
18472         * tests/unistr/test-u16-mbtoucr.c: New file.
18473
18474         Tests for module 'unistr/u8-mbtoucr'.
18475         * modules/unistr/u8-mbtoucr-tests: New file.
18476         * tests/unistr/test-u8-mbtoucr.c: New file.
18477
18478         Tests for module 'unistr/u32-mbtouc'.
18479         * modules/unistr/u32-mbtouc-tests: New file.
18480         * tests/unistr/test-u32-mbtouc.c: New file.
18481
18482         Tests for module 'unistr/u16-mbtouc'.
18483         * modules/unistr/u16-mbtouc-tests: New file.
18484         * tests/unistr/test-u16-mbtouc.c: New file.
18485
18486         Tests for module 'unistr/u8-mbtouc'.
18487         * modules/unistr/u8-mbtouc-tests: New file.
18488         * tests/unistr/test-u8-mbtouc.c: New file.
18489
18490         Tests for module 'unistr/u32-mbtouc-unsafe'.
18491         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
18492         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
18493         * tests/unistr/test-u32-mbtouc.h: New file.
18494
18495         Tests for module 'unistr/u16-mbtouc-unsafe'.
18496         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
18497         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
18498         * tests/unistr/test-u16-mbtouc.h: New file.
18499
18500         Tests for module 'unistr/u8-mbtouc-unsafe'.
18501         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
18502         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
18503         * tests/unistr/test-u8-mbtouc.h: New file.
18504
18505         Tests for module 'unistr/u32-mblen'.
18506         * modules/unistr/u32-mblen-tests: New file.
18507         * tests/unistr/test-u32-mblen.c: New file.
18508
18509         Tests for module 'unistr/u16-mblen'.
18510         * modules/unistr/u16-mblen-tests: New file.
18511         * tests/unistr/test-u16-mblen.c: New file.
18512
18513         Tests for module 'unistr/u8-mblen'.
18514         * modules/unistr/u8-mblen-tests: New file.
18515         * tests/unistr/test-u8-mblen.c: New file.
18516
18517         Tests for module 'unistr/u32-to-u16'.
18518         * modules/unistr/u32-to-u16-tests: New file.
18519         * tests/unistr/test-u32-to-u16.c: New file.
18520
18521         Tests for module 'unistr/u32-to-u8'.
18522         * modules/unistr/u32-to-u8-tests: New file.
18523         * tests/unistr/test-u32-to-u8.c: New file.
18524
18525         Tests for module 'unistr/u16-to-u32'.
18526         * modules/unistr/u16-to-u32-tests: New file.
18527         * tests/unistr/test-u16-to-u32.c: New file.
18528
18529         Tests for module 'unistr/u16-to-u8'.
18530         * modules/unistr/u16-to-u8-tests: New file.
18531         * tests/unistr/test-u16-to-u8.c: New file.
18532
18533         Tests for module 'unistr/u8-to-u32'.
18534         * modules/unistr/u8-to-u32-tests: New file.
18535         * tests/unistr/test-u8-to-u32.c: New file.
18536
18537         Tests for module 'unistr/u8-to-u16'.
18538         * modules/unistr/u8-to-u16-tests: New file.
18539         * tests/unistr/test-u8-to-u16.c: New file.
18540
18541         Tests for module 'unistr/u32-check'.
18542         * modules/unistr/u32-check-tests: New file.
18543         * tests/unistr/test-u32-check.c: New file.
18544
18545         Tests for module 'unistr/u16-check'.
18546         * modules/unistr/u16-check-tests: New file.
18547         * tests/unistr/test-u16-check.c: New file.
18548
18549         Tests for module 'unistr/u8-check'.
18550         * modules/unistr/u8-check-tests: New file.
18551         * tests/unistr/test-u8-check.c: New file.
18552
18553         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
18554         (category_equals): New function.
18555         (main): Add more tests.
18556         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
18557
18558         * tests/unictype/test-bidi_byname.c (main): Add more tests.
18559
18560 2010-01-10  Bruno Haible  <bruno@clisp.org>
18561
18562         unistr/u*-strcoll: Try harder to distinguish different strings.
18563         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
18564         compare s1 and s2 to see if they are different.
18565
18566 2010-01-10  Bruno Haible  <bruno@clisp.org>
18567
18568         unistr/u*-stpncpy: Fix the return value.
18569         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
18570         description of the return value consistent with stpncpy in glibc.
18571         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
18572         written non-NUL unit.
18573
18574 2010-01-10  Bruno Haible  <bruno@clisp.org>
18575
18576         unistr/u*-next: Add missing dependencies.
18577         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
18578         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
18579         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
18580
18581 2010-01-10  Bruno Haible  <bruno@clisp.org>
18582
18583         unistr/u8-mbsnlen: Fix return value for incomplete character.
18584         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
18585         u8_mblen.
18586         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
18587         Remove unistr/u8-mblen.
18588         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
18589         u16_mblen.
18590         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
18591         Remove unistr/u16-mblen.
18592
18593 2010-01-10  Bruno Haible  <bruno@clisp.org>
18594
18595         wchar: Fix compilation error when <wchar.h> is used from coreutils.
18596         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
18597         Reported by Brian Gough <bjg@gnu.org> and
18598         Chris Clayton <chris2553@googlemail.com> via
18599         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
18600
18601 2010-01-09  Bruno Haible  <bruno@clisp.org>
18602
18603         unistr/u16-to-u32: Reject invalid input.
18604         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
18605         u16_mbtouc.
18606         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
18607         Remove unistr/u16-mbtouc.
18608
18609         unistr/u16-to-u8: Reject invalid input.
18610         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
18611         u16_mbtouc.
18612         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
18613         Remove unistr/u16-mbtouc.
18614
18615         unistr/u8-to-u32: Reject invalid input.
18616         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
18617         u8_mbtouc.
18618         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
18619         Remove unistr/u8-mbtouc.
18620
18621         unistr/u8-to-u16: Reject invalid input.
18622         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
18623         u8_mbtouc.
18624         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
18625         Remove unistr/u8-mbtouc.
18626
18627 2010-01-09  Bruno Haible  <bruno@clisp.org>
18628
18629         Tests for module 'getlogin'.
18630         * modules/getlogin-tests: New file.
18631         * tests/test-getlogin.c: New file.
18632
18633         New module 'getlogin'.
18634         * lib/unistd.in.h (getlogin): New declaration.
18635         * lib/getlogin.c: New file.
18636         * m4/getlogin.m4: New file.
18637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
18638         HAVE_GETLOGIN.
18639         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
18640         HAVE_GETLOGIN.
18641         * modules/getlogin: New file.
18642         * doc/posix-functions/getlogin.texi: Mention the new module.
18643         Reported by John W. Eaton <jwe@gnu.org>.
18644
18645 2010-01-09  Bruno Haible  <bruno@clisp.org>
18646
18647         getlogin_r: Support for native Windows.
18648         * lib/getlogin_r.c: Include <windows.h>
18649         (getlogin_r): Implement for native Windows.
18650         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
18651         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
18652         via John W. Eaton <jwe@gnu.org>.
18653
18654 2010-01-09  Bruno Haible  <bruno@clisp.org>
18655
18656         getlogin_r: Small fixes.
18657         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
18658         succeeds.
18659         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
18660         before testing whether getlogin_r is declared. No need to set
18661         HAVE_DECL_GETLOGIN_R to 1.
18662         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
18663
18664 2010-01-09  Bruno Haible  <bruno@clisp.org>
18665
18666         * lib/unistd.in.h (getlogin_r): Add comment.
18667
18668 2010-01-09  Bruno Haible  <bruno@clisp.org>
18669
18670         Tests for module 'getlogin_r'.
18671         * modules/getlogin_r-tests: New file.
18672         * tests/test-getlogin_r.c: New file.
18673
18674 2010-01-09  Jim Meyering  <meyering@redhat.com>
18675
18676         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
18677         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
18678         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
18679
18680 2010-01-08  Simon Josefsson  <simon@josefsson.org>
18681
18682         * lib/dup2.c (rpl_dup2): Improve comment.
18683
18684 2010-01-08  Eric Blake  <ebb9@byu.net>
18685
18686         maint.mk: allow packages to add makefile @@ exceptions
18687         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
18688         (sc_makefile_check): Rename...
18689         (sc_makefile_at_at_check): ...to this, and use hook.
18690
18691         dup2: work around mingw bug
18692         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
18693         Reported by Simon Josefsson.
18694
18695 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
18696
18697         glob: Fix C++ compilation.
18698         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
18699         C++.
18700
18701 2010-01-07  Bruno Haible  <bruno@clisp.org>
18702
18703         Fix indentation of wctype.in.h, broken since 2007-01-06.
18704         * lib/wctype.in.h: Fix indentation of preprocessor directives.
18705
18706 2010-01-07  Bruno Haible  <bruno@clisp.org>
18707
18708         mbslen: Avoid collision with system function.
18709         * lib/string.in.h [MirBSD]: Include <wchar.h>.
18710         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
18711         * m4/mbslen.m4: New file.
18712         * modules/mbslen (Files): Add it.
18713         (configure.ac): Invoke gl_MBSLEN.
18714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
18715         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
18716         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
18717         via Ian Beckwith <ianb@erislabs.net>.
18718
18719 2010-01-07  Bruno Haible  <bruno@clisp.org>
18720
18721         dirent: Document the last fix.
18722         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
18723
18724 2010-01-07  Bruno Haible  <bruno@clisp.org>
18725
18726         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
18727         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
18728         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
18729         va_list are defined.
18730         * doc/posix-headers/stdio.texi: Document the bug of missing types.
18731         Reported by Eric Blake.
18732
18733 2010-01-07  Bruno Haible  <bruno@clisp.org>
18734
18735         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
18736         * modules/xlist (Depends-on): Add 'list',
18737         * modules/xoset (Depends-on): Add 'oset'.
18738         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18739
18740 2010-01-07  Bruno Haible  <bruno@clisp.org>
18741
18742         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
18743         * doc/posix-functions/strncasecmp.texi: Likewise.
18744
18745 2010-01-07  Bruno Haible  <bruno@clisp.org>
18746
18747         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
18748
18749 2010-01-07  John W. Eaton  <jwe@octave.org>
18750
18751         wctype: allow C++ use
18752         * lib/wctype.in.h: Add extern "C" block for C++.
18753
18754 2010-01-06  Eric Blake  <ebb9@byu.net>
18755
18756         maint.mk: detect incorrect GFDL usage
18757         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
18758
18759 2010-01-06  Jim Meyering  <meyering@redhat.com>
18760         and Eric Blake  <ebb9@byu.net>
18761
18762         maint.mk: ignore multi-line copyright in NEWS
18763         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
18764
18765 2010-01-06  Eric Blake  <ebb9@byu.net>
18766
18767         select: add missing dependency
18768         * modules/select-tests (Depends-on): Move sockets dependency...
18769         * modules/select (Depends-on): ...here.
18770         Reported by Ian Beckwith.
18771
18772         doc: regenerate INSTALL
18773         * doc/INSTALL: Reflect recent autoconf update.
18774         * doc/INSTALL.ISO: Likewise.
18775         * doc/INSTALL.UTF-8: Likewise.
18776
18777         pread: fix compilation on glibc
18778         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
18779         Reported by Ralf Wildenhues.
18780
18781         dirent: fix test failure
18782         * lib/dirent.in.h (includes): Guarantee ino_t.
18783         Reported by Ralf Wildenhues.
18784
18785 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
18786
18787         linkat, renameat: avoid bad free
18788         * lib/at-func2.c (at_func2): Fix typo.
18789         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
18790
18791 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18792
18793         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
18794         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
18795         to avoid failure of symlink test later.
18796
18797 2010-01-06  Eric Blake  <ebb9@byu.net>
18798
18799         stdio, unistd: guarantee ssize_t
18800         * lib/unistd.in.h (includes): Ensure that types required by POSIX
18801         2008 are exposed when needed.
18802         * lib/stdio.in.h (includes): Likewise.
18803         Reported by Ralf Wildenhues.
18804
18805 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
18806
18807         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
18808         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
18809         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
18810
18811 2010-01-06  Jim Meyering  <meyering@redhat.com>
18812
18813         readtokens: this module *does* require xalloc.h
18814         It uses only functions that were omitted by the old syntax-check rule.
18815         * lib/readtokens.c: Include "xalloc.h" once again.
18816         * modules/readtokens (Depends-on): Add xalloc.
18817         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
18818
18819 2010-01-05  Eric Blake  <ebb9@byu.net>
18820
18821         maint: support 'make announcement' from a VPATH build
18822         * top/maint.mk (announcement): Look for correct NEWS file.
18823
18824 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
18825
18826         utimens (fdutimens): ignore a negative FD, per contract
18827         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
18828         when we have a valid file descriptor.  Otherwise, using a brand
18829         new glibc (with just-patched futimens that now fails with EBADF)
18830         would cause this function to fail with ENOSYS.
18831         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
18832         See also http://bugzilla.redhat.com/552320.
18833
18834 2010-01-05  Eric Blake  <ebb9@byu.net>
18835
18836         strcase: document what it provides
18837         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
18838         gnulib module.
18839         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
18840         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
18841
18842 2010-01-05  Jim Meyering  <meyering@redhat.com>
18843
18844         maint: remove useless inclusions of "xalloc.h"
18845         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
18846         * lib/readtokens.c: Likewise.
18847         * lib/same.c: Likewise.
18848         * modules/getloadavg (Depends-on): Remove xalloc.
18849         * modules/readtokens: Likewise.
18850         * modules/same: Likewise.
18851
18852         maint.mk: include 4 more function names in alloca.h-checking regexp
18853         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
18854         regexp.  Before, we would give a false-positive (saying alloca.h
18855         is included unnecessarily) when the only uses involved omitted symbols.
18856
18857         xalloc.h: use consistent formatting
18858         * lib/xalloc.h: Move declarations to start in the first column.
18859
18860 2010-01-05  Eric Blake  <ebb9@byu.net>
18861
18862         mkdir: avoid xalloc
18863         * lib/mkdir.c (includes): Drop unused header.
18864         Reported by John W. Eaton.
18865
18866 2010-01-04  Jim Meyering  <meyering@redhat.com>
18867
18868         nl_langinfo: avoid configure-time syntax error
18869         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
18870         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
18871         the empty string.  Don't let that provoke a shell syntax error.
18872
18873         regcomp, regexec, fnmatch: avoid array bounds read error
18874         * lib/regcomp.c (build_equiv_class): From glibc:
18875         Use only the low 24 bits of a findidx return value as an index
18876         into the weights array.  Patch by Ulrich Drepper:
18877         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
18878         * lib/regexec.c (check_node_accept_bytes): Likewise.
18879         * lib/fnmatch_loop.c (FCT): Likewise.
18880
18881         regcomp: skip collseq lookup when there are no rules
18882         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
18883         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
18884
18885         regcomp: recognize ill-formed { } expressions
18886         * lib/regcomp.c (parse_dup_op): From glibc:
18887         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
18888
18889         regcomp: fix typo in comment
18890         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
18891         s/satisfy/satisfies/.
18892
18893         regcomp: sync from glibc: remove dead store
18894         * lib/regcomp.c (duplicate_node_closure): Remove useless
18895         search_duplicated_node call and dead store.
18896
18897         regcomp: sync from glibc; always use nl_langinfo
18898         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
18899         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
18900         * modules/regex (Depends-on): Add nl_langinfo.
18901
18902 2010-01-04  Eric Blake  <ebb9@byu.net>
18903
18904         fdopendir: fix configure test
18905         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
18906
18907 2010-01-01  Bruno Haible  <bruno@clisp.org>
18908
18909         wchar: Remove unused configure check.
18910         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
18911
18912 2010-01-01  Eric Blake  <ebb9@byu.net>
18913
18914         headers: make check of system header explicit
18915         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
18916         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18917         ourselves.
18918         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18919         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18920         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18921         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18922         internals.
18923         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
18924         missing.
18925         Suggested by Bruno Haible.
18926
18927 2010-01-01  Jim Meyering  <meyering@redhat.com>
18928
18929         ChangeLog: tweak to eliminate unnecessary copyright line
18930         * ChangeLog: Remove a copyright line that was mistakenly updated
18931         by today's update-copyright run.  Reported by Eric Blake.
18932
18933         test-update-copyright: don't let envvar setting cause test failure
18934         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18935
18936 2010-01-01  Bruno Haible  <bruno@clisp.org>
18937
18938         localename: Avoid gcc warning.
18939         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
18940         function if it is not used.
18941
18942 2010-01-01  Jim Meyering  <meyering@redhat.com>
18943
18944         update nearly all FSF copyright year lists to include 2010
18945         Use the same procedure as for 2009, outlined in
18946         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
18947
18948         version-etc: set COPYRIGHT_YEAR to 2010
18949         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
18950
18951 2009-12-31  Eric Blake  <ebb9@byu.net>
18952
18953         doc: correct availability of cygwin 1.5.x getopt
18954         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
18955         variables.
18956         * doc/posix-functions/opterr.texi (opterr): Likewise.
18957         * doc/posix-functions/optind.texi (optind): Likewise.
18958         * doc/posix-functions/optopt.texi (optopt): Likewise.
18959         * doc/posix-functions/tzname.texi (tzname): Likewise.
18960
18961         openat: update maintainer
18962         * modules/openat (Maintainer): Add myself.
18963
18964         utimens: avoid shadowing warning
18965         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
18966         buffers into one, to avoid shadowing, as well as avoiding a
18967         redundant stat.
18968         Reported by Jim Meyering.
18969
18970         test-dup2: avoid compiler warning
18971         * tests/test-dup2.c (is_inheritable): Only define if used.
18972
18973 2010-01-01  Bruno Haible  <bruno@clisp.org>
18974
18975         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
18976         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
18977         defined, use wctomb instead of wcrtomb.
18978
18979 2010-01-01  Bruno Haible  <bruno@clisp.org>
18980
18981         iconv: Reject native Solaris iconv.
18982         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
18983         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
18984
18985 2009-12-31  Bruno Haible  <bruno@clisp.org>
18986
18987         * tests/test-signal.c (main): Remove test of 'SIG'.
18988
18989 2009-12-31  Bruno Haible  <bruno@clisp.org>
18990
18991         spawn: Fix incomplete fix.
18992         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18993         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18994         warnings for GNULIB_POSIXCHECK again.
18995         Reported by Eric Blake.
18996
18997 2009-12-31  Bruno Haible  <bruno@clisp.org>
18998
18999         Avoid namespace pollution on glibc systems.
19000         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
19001         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
19002         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
19003         glibc systems.
19004
19005 2009-12-31  Bruno Haible  <bruno@clisp.org>
19006
19007         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
19008         (gl_REPLACE_WCHAR_H): Turn into a no-op.
19009         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
19010         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19011         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19012         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19013         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19014
19015 2009-12-31  Bruno Haible  <bruno@clisp.org>
19016
19017         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19018         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
19019         afterwards.
19020
19021 2009-12-31  Bruno Haible  <bruno@clisp.org>
19022
19023         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
19024         SYS_UTSNAME_H.
19025
19026 2009-12-31  Bruno Haible  <bruno@clisp.org>
19027
19028         spawn: Fix misapplied patch.
19029         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19030         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19031         warnings for GNULIB_POSIXCHECK.
19032
19033 2009-12-31  Bruno Haible  <bruno@clisp.org>
19034
19035         times: Update after sys_times changed.
19036         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
19037         * modules/times (Files): Add it.
19038         (configure.ac): Invoke gl_FUNC_TIMES.
19039
19040 2009-12-31  Bruno Haible  <bruno@clisp.org>
19041
19042         Use AC_C_INLINE where necessary.
19043         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
19044         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19045         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19046         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19047         * m4/mbfile.m4 (gl_MBFILE): Likewise.
19048         * m4/mbiter.m4 (gl_MBITER): Likewise.
19049         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19050         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19051         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
19052         * modules/u64 (configure.ac): Likewise.
19053
19054 2009-12-31  Bruno Haible  <bruno@clisp.org>
19055
19056         Use AC_C_INLINE instead of module 'inline' where possible.
19057         * modules/inline (Description): Clarify purpose.
19058         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
19059         * modules/count-one-bits (Depends-on): Remove inline.
19060         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
19061         * modules/openat (Depends-on): Remove inline.
19062         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
19063         instead of depending on module 'inline'.
19064         * modules/filevercmp (Depends-on, configure.ac): Likewise.
19065         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
19066         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
19067         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
19068         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
19069         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
19070         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
19071         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
19072         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
19073         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
19074         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
19075         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
19076         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
19077         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
19078         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
19079         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
19080         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
19081         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
19082         Likewise.
19083         * modules/unictype/property-ascii-hex-digit (Depends-on,
19084         configure.ac): Likewise.
19085         * modules/unictype/property-bidi-arabic-digit (Depends-on,
19086         configure.ac): Likewise.
19087         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
19088         configure.ac): Likewise.
19089         * modules/unictype/property-bidi-block-separator (Depends-on,
19090         configure.ac): Likewise.
19091         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
19092         configure.ac): Likewise.
19093         * modules/unictype/property-bidi-common-separator (Depends-on,
19094         configure.ac): Likewise.
19095         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
19096         Likewise.
19097         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
19098         configure.ac): Likewise.
19099         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
19100         configure.ac): Likewise.
19101         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
19102         configure.ac): Likewise.
19103         * modules/unictype/property-bidi-european-digit (Depends-on,
19104         configure.ac): Likewise.
19105         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
19106         configure.ac): Likewise.
19107         * modules/unictype/property-bidi-left-to-right (Depends-on,
19108         configure.ac): Likewise.
19109         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
19110         configure.ac): Likewise.
19111         * modules/unictype/property-bidi-other-neutral (Depends-on,
19112         configure.ac): Likewise.
19113         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
19114         Likewise.
19115         * modules/unictype/property-bidi-segment-separator (Depends-on,
19116         configure.ac): Likewise.
19117         * modules/unictype/property-bidi-whitespace (Depends-on,
19118         configure.ac): Likewise.
19119         * modules/unictype/property-combining (Depends-on, configure.ac):
19120         Likewise.
19121         * modules/unictype/property-composite (Depends-on, configure.ac):
19122         Likewise.
19123         * modules/unictype/property-currency-symbol (Depends-on,
19124         configure.ac): Likewise.
19125         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
19126         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
19127         Likewise.
19128         * modules/unictype/property-default-ignorable-code-point (Depends-on,
19129         configure.ac): Likewise.
19130         * modules/unictype/property-deprecated (Depends-on, configure.ac):
19131         Likewise.
19132         * modules/unictype/property-diacritic (Depends-on, configure.ac):
19133         Likewise.
19134         * modules/unictype/property-extender (Depends-on, configure.ac):
19135         Likewise.
19136         * modules/unictype/property-format-control (Depends-on, configure.ac):
19137         Likewise.
19138         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
19139         Likewise.
19140         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
19141         Likewise.
19142         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
19143         Likewise.
19144         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
19145         Likewise.
19146         * modules/unictype/property-hyphen (Depends-on, configure.ac):
19147         Likewise.
19148         * modules/unictype/property-id-continue (Depends-on, configure.ac):
19149         Likewise.
19150         * modules/unictype/property-id-start (Depends-on, configure.ac):
19151         Likewise.
19152         * modules/unictype/property-ideographic (Depends-on, configure.ac):
19153         Likewise.
19154         * modules/unictype/property-ids-binary-operator (Depends-on,
19155         configure.ac): Likewise.
19156         * modules/unictype/property-ids-trinary-operator (Depends-on,
19157         configure.ac): Likewise.
19158         * modules/unictype/property-ignorable-control (Depends-on,
19159         configure.ac): Likewise.
19160         * modules/unictype/property-iso-control (Depends-on, configure.ac):
19161         Likewise.
19162         * modules/unictype/property-join-control (Depends-on, configure.ac):
19163         Likewise.
19164         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
19165         Likewise.
19166         * modules/unictype/property-line-separator (Depends-on, configure.ac):
19167         Likewise.
19168         * modules/unictype/property-logical-order-exception (Depends-on,
19169         configure.ac): Likewise.
19170         * modules/unictype/property-lowercase (Depends-on, configure.ac):
19171         Likewise.
19172         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
19173         * modules/unictype/property-non-break (Depends-on, configure.ac):
19174         Likewise.
19175         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
19176         Likewise.
19177         * modules/unictype/property-numeric (Depends-on, configure.ac):
19178         Likewise.
19179         * modules/unictype/property-other-alphabetic (Depends-on,
19180         configure.ac): Likewise.
19181         * modules/unictype/property-other-default-ignorable-code-point
19182         (Depends-on, configure.ac): Likewise.
19183         * modules/unictype/property-other-grapheme-extend (Depends-on,
19184         configure.ac): Likewise.
19185         * modules/unictype/property-other-id-continue (Depends-on,
19186         configure.ac): Likewise.
19187         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
19188         Likewise.
19189         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
19190         Likewise.
19191         * modules/unictype/property-other-math (Depends-on, configure.ac):
19192         Likewise.
19193         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
19194         Likewise.
19195         * modules/unictype/property-paired-punctuation (Depends-on,
19196         configure.ac): Likewise.
19197         * modules/unictype/property-paragraph-separator (Depends-on,
19198         configure.ac): Likewise.
19199         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
19200         Likewise.
19201         * modules/unictype/property-pattern-white-space (Depends-on,
19202         configure.ac): Likewise.
19203         * modules/unictype/property-private-use (Depends-on, configure.ac):
19204         Likewise.
19205         * modules/unictype/property-punctuation (Depends-on, configure.ac):
19206         Likewise.
19207         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
19208         Likewise.
19209         * modules/unictype/property-radical (Depends-on, configure.ac):
19210         Likewise.
19211         * modules/unictype/property-sentence-terminal (Depends-on,
19212         configure.ac): Likewise.
19213         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
19214         Likewise.
19215         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
19216         * modules/unictype/property-terminal-punctuation (Depends-on,
19217         configure.ac): Likewise.
19218         * modules/unictype/property-titlecase (Depends-on, configure.ac):
19219         Likewise.
19220         * modules/unictype/property-unassigned-code-value (Depends-on,
19221         configure.ac): Likewise.
19222         * modules/unictype/property-unified-ideograph (Depends-on,
19223         configure.ac): Likewise.
19224         * modules/unictype/property-uppercase (Depends-on, configure.ac):
19225         Likewise.
19226         * modules/unictype/property-variation-selector (Depends-on,
19227         configure.ac): Likewise.
19228         * modules/unictype/property-white-space (Depends-on, configure.ac):
19229         Likewise.
19230         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
19231         Likewise.
19232         * modules/unictype/property-xid-start (Depends-on, configure.ac):
19233         Likewise.
19234         * modules/unictype/property-zero-width (Depends-on, configure.ac):
19235         Likewise.
19236         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
19237         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
19238         Likewise.
19239
19240 2009-12-31  Bruno Haible  <bruno@clisp.org>
19241
19242         Remove unnecessary AC_C_INLINE invocation.
19243         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
19244         since 2009-08-21.
19245
19246 2009-12-31  Jim Meyering  <meyering@redhat.com>
19247
19248         maint.mk: don't require explicit gpg_key_ID in cfg.mk
19249         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
19250         With this change, we can all remove the gpg_key_ID = ... definition
19251         from our respective cfg.mk files.
19252
19253         maint.mk: create announcement template in ~/, not in /tmp
19254         * top/maint.mk (emit_upload_commands): Adjust.
19255         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
19256         Remove temporary file, .ci-msg.
19257
19258 2009-12-31  Eric Blake  <ebb9@byu.net>
19259
19260         link-warning: always build headers with link warnings
19261         * modules/arpa_inet (Makefile.am): Always build replacement
19262         header.
19263         * modules/ctype (Makefile.am): Likewise.
19264         * modules/dirent (Makefile.am): Likewise.
19265         * modules/inttypes (Makefile.am): Likewise.
19266         * modules/langinfo (Makefile.am): Likewise.
19267         * modules/locale (Makefile.am): Likewise.
19268         * modules/spawn (Makefile.am): Likewise.
19269         * modules/sys_file (Makefile.am): Likewise.
19270         * modules/sys_ioctl (Makefile.am): Likewise.
19271         * modules/sys_select (Makefile.am): Likewise.
19272         * modules/sys_socket (Makefile.am): Likewise.
19273         * modules/sys_times (Makefile.am): Likewise.
19274         * modules/sys_utsname (Makefile.am): Likewise.
19275         * modules/sys_wait (Makefile.am): Likewise.
19276         * modules/wchar (Makefile.am): Likewise.
19277         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
19278         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
19279         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
19280         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
19281         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
19282         Likewise.
19283         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19284         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19285         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
19286         Likewise.
19287         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
19288         Likewise.
19289         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19290         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
19291         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
19292         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19293         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19294         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19295         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19296         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
19297         (gl_WCHAR_H_DEFAULTS): Likewise.
19298
19299 2009-12-31  Eric Blake  <ebb9@byu.net>
19300
19301         signal, spawn: use link warnings
19302         * lib/signal.in.h (sigset_t): Make unconditional.
19303         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
19304         (sigpending, sigprocmask, sigaction): Add link warnings.
19305         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
19306         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
19307         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
19308         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
19309         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
19310         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
19311         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
19312         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
19313         (posix_spawn_file_actions_destroy)
19314         (posix_spawn_file_actions_addopen)
19315         (posix_spawn_file_actions_addclose)
19316         (posix_spawn_file_actions_adddup2): Likewise.
19317         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
19318         * tests/test-signal.c (main): Enhance test.
19319
19320         spawn: improve wrapper support
19321         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
19322         (gl_SPAWN_H_DEFAULTS): New defaults.
19323         * modules/spawn (Makefile.am): Substitute them.
19324         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
19325         Only declare if missing or broken.
19326
19327         sys_times, sys_utsname: use include_next
19328         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
19329         header.
19330         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
19331         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19332         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19333         * modules/sys_times (Depends-on): Add include_next.
19334         (Makefile.am): Substitute additional values.
19335         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19336         * lib/sys_times.in.h (includes): Include native header, if
19337         available.
19338         * lib/sys_utsname.in.h (includes): Likewise.
19339         * tests/test-sys_times.c (main): Enhance test.
19340
19341         fdutimensat: revert prior patch
19342         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
19343         utimens.h.
19344         Reported by Bruno Haible.
19345
19346 2009-12-30  Eric Blake  <ebb9@byu.net>
19347
19348         sys_wait: drop link-warning dependency
19349         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
19350         link-warning efforts.
19351         * lib/sys_wait.in.h: Likewise.
19352
19353         fdutimensat: remove bogus dependency
19354         * modules/fdutimensat (Depends-on): Drop inline.
19355
19356         unistd: fix typo
19357         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
19358
19359 2009-12-30  Bruno Haible  <bruno@clisp.org>
19360
19361         Fix compilation error with Solaris cc.
19362         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
19363         * lib/unicase/u16-is-invariant.c: Likewise.
19364         * lib/unicase/u32-is-invariant.c: Likewise.
19365         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19366
19367 2009-12-30  Bruno Haible  <bruno@clisp.org>
19368
19369         Fix test crash.
19370         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
19371         locales.
19372         Reported by Simon Josefsson <simon@josefsson.org>.
19373
19374 2009-12-30  Bruno Haible  <bruno@clisp.org>
19375
19376         Fix compilation error on most platforms.
19377         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
19378         Reported by Simon Josefsson <simon@josefsson.org>
19379         and Nelson H. F. Beebe <beebe@math.utah.edu>.
19380
19381 2009-12-30  Eric Blake  <ebb9@byu.net>
19382
19383         futimens, utimensat: work around ntfs-3g bug
19384         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
19385         a ctime bug is present, and expand workaround to cover ntfs-3g.
19386         * lib/utimens.c (fdutimens, lutimens): Likewise.
19387         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
19388         (validate_timespec): Adjust return value.
19389         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
19390         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19391         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
19392
19393 2009-12-29  Eric Blake  <ebb9@byu.net>
19394
19395         link-warning: make usage consistent
19396         * modules/ctype (Depends-on): Add link-warning.
19397         (Makefile.am): Update rules accordingly.
19398         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19399         * modules/locale (Depends-on, Makefile.am): Likewise.
19400         * modules/sys_file (Makefile.am): Likewise.
19401         * modules/getopt-posix (Makefile.am): Delete unused link warning
19402         efforts.
19403         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
19404         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
19405         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
19406         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
19407
19408         stdio: remove unused variables
19409         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
19410         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
19411         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19412
19413         tests: test more substitute headers
19414         * modules/ctype-tests: New file.
19415         * modules/dirent-tests: Likewise.
19416         * modules/spawn-tests: Likewise.
19417         * modules/sys_file-tests: Likewise.
19418         * modules/sys_ioctl-tests: Likewise.
19419         * modules/sys_wait-tests: Likewise.
19420         * tests/test-ctype.c: Likewise.
19421         * tests/test-dirent.c: Likewise.
19422         * tests/test-spawn.c: Likewise.
19423         * tests/test-sys_file.c: Likewise.
19424         * tests/test-sys_ioctl.c: Likewise.
19425         * tests/test-sys_wait.c: Likewise.
19426         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
19427         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
19428         whether or not flock is in use.
19429
19430         tests: remove License section from module
19431         * modules/arpa_inet-tests: Remove unneeded section.
19432         * modules/byteswap-tests: Likewise.
19433         * modules/ceilf-tests: Likewise.
19434         * modules/ceill-tests: Likewise.
19435         * modules/crypto/des-tests: Likewise.
19436         * modules/crypto/gc-arcfour-tests: Likewise.
19437         * modules/crypto/gc-arctwo-tests: Likewise.
19438         * modules/crypto/gc-des-tests: Likewise.
19439         * modules/crypto/gc-hmac-md5-tests: Likewise.
19440         * modules/crypto/gc-hmac-sha1-tests: Likewise.
19441         * modules/crypto/gc-md2-tests: Likewise.
19442         * modules/crypto/gc-md4-tests: Likewise.
19443         * modules/crypto/gc-md5-tests: Likewise.
19444         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
19445         * modules/crypto/gc-rijndael-tests: Likewise.
19446         * modules/crypto/gc-sha1-tests: Likewise.
19447         * modules/crypto/gc-tests: Likewise.
19448         * modules/crypto/md2-tests: Likewise.
19449         * modules/crypto/md4-tests: Likewise.
19450         * modules/fcntl-h-tests: Likewise.
19451         * modules/floorf-tests: Likewise.
19452         * modules/floorl-tests: Likewise.
19453         * modules/frexp-nolibm-tests: Likewise.
19454         * modules/frexp-tests: Likewise.
19455         * modules/frexpl-nolibm-tests: Likewise.
19456         * modules/frexpl-tests: Likewise.
19457         * modules/getaddrinfo-tests: Likewise.
19458         * modules/inttypes-tests: Likewise.
19459         * modules/isfinite-tests: Likewise.
19460         * modules/isinf-tests: Likewise.
19461         * modules/ldexpl-tests: Likewise.
19462         * modules/locale-tests: Likewise.
19463         * modules/math-tests: Likewise.
19464         * modules/netdb-tests: Likewise.
19465         * modules/netinet_in-tests: Likewise.
19466         * modules/printf-frexp-tests: Likewise.
19467         * modules/printf-frexpl-tests: Likewise.
19468         * modules/priv-set-tests: Likewise.
19469         * modules/random_r-tests: Likewise.
19470         * modules/round-tests: Likewise.
19471         * modules/roundf-tests: Likewise.
19472         * modules/roundl-tests: Likewise.
19473         * modules/search-tests: Likewise.
19474         * modules/select-tests: Likewise.
19475         * modules/signal-tests: Likewise.
19476         * modules/stdbool-tests: Likewise.
19477         * modules/stddef-tests: Likewise.
19478         * modules/stdint-tests: Likewise.
19479         * modules/stdio-tests: Likewise.
19480         * modules/stdlib-tests: Likewise.
19481         * modules/string-tests: Likewise.
19482         * modules/strings-tests: Likewise.
19483         * modules/sys_select-tests: Likewise.
19484         * modules/sys_socket-tests: Likewise.
19485         * modules/sys_stat-tests: Likewise.
19486         * modules/sys_time-tests: Likewise.
19487         * modules/sys_utsname-tests: Likewise.
19488         * modules/sysexits-tests: Likewise.
19489         * modules/time-tests: Likewise.
19490         * modules/trunc-tests: Likewise.
19491         * modules/truncf-tests: Likewise.
19492         * modules/truncl-tests: Likewise.
19493         * modules/tsearch-tests: Likewise.
19494         * modules/unistd-tests: Likewise.
19495         * modules/wchar-tests: Likewise.
19496         * modules/wctype-tests: Likewise.
19497
19498         tests: fix license on several tests
19499         * tests/test-des.c: Update to GPLv3+.
19500         * tests/test-flock.c: Likewise.
19501         * tests/test-fsync.c: Likewise.
19502         * tests/test-futimens.h: Likewise.
19503         * tests/test-gc-arcfour.c: Likewise.
19504         * tests/test-gc-arctwo.c: Likewise.
19505         * tests/test-gc-des.c: Likewise.
19506         * tests/test-gc-hmac-md5.c: Likewise.
19507         * tests/test-gc-hmac-sha1.c: Likewise.
19508         * tests/test-gc-md2.c: Likewise.
19509         * tests/test-gc-md4.c: Likewise.
19510         * tests/test-gc-md5.c: Likewise.
19511         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19512         * tests/test-gc-rijndael.c: Likewise.
19513         * tests/test-gc-sha1.c: Likewise.
19514         * tests/test-gc.c: Likewise.
19515         * tests/test-getcwd.c: Likewise.
19516         * tests/test-link.c: Likewise.
19517         * tests/test-link.h: Likewise.
19518         * tests/test-lutimens.h: Likewise.
19519         * tests/test-md2.c: Likewise.
19520         * tests/test-md4.c: Likewise.
19521         * tests/test-mkdir.h: Likewise.
19522         * tests/test-rename.c: Likewise.
19523         * tests/test-rename.h: Likewise.
19524         * tests/test-safe-alloc.c: Likewise.
19525         * tests/test-utimens-common.h: Likewise.
19526         * tests/test-utimens.h: Likewise.
19527
19528         maint: sync license texts
19529         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
19530         * doc/gpl-3.0.texi: Revert copyright year update.
19531         * doc/lgpl-3.0.texi: Likewise.
19532
19533 2009-12-29  Jim Meyering  <meyering@redhat.com>
19534
19535         update nearly all FSF copyright year lists to include 2009
19536         The files named by the following are exempted:
19537             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
19538               test -f "$dst" && { echo "$dst"; continue; }
19539               test -d "$dst" || continue
19540               echo "$dst"/$(basename "$src")
19541             done > exempt
19542             git ls-files tests/unictype >> exempt
19543         In the remaining files, convert to all-interval notation if
19544         - there is already at least one year interval like 2000-2003
19545         - the file is maintained by me
19546         - the file is in lib/uni*/, where that style already prevails
19547         Otherwise, use update-copyright's default.
19548
19549 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19550         and Eric Blake  <ebb9@byu.net>
19551
19552         tests: don't require debug system() to pass
19553         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
19554         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19555         * tests/test-unlink.h (test_unlink_func): Likewise.
19556         * tests/test-fstatat.c (main): ...into callers.
19557         * tests/test-lstat.c (main): Likewise.
19558         * tests/test-rmdir.c (main): Likewise.
19559         * tests/test-unlink.c (main): Likewise.
19560         * tests/test-unlinkat.c (main): Likewise.
19561         * tests/test-areadlink-with-size.c (main): Don't require a
19562         debug-only system call to pass, aiding cross-testing to mingw.
19563         * tests/test-areadlink.c (main): Likewise.
19564         * tests/test-areadlinkat-with-size.c (main): Likewise.
19565         * tests/test-areadlinkat.c (main): Likewise.
19566         * tests/test-canonicalize-lgpl.c (main): Likewise.
19567         * tests/test-canonicalize.c (main): Likewise.
19568         * tests/test-chown.c (main): Likewise.
19569         * tests/test-fchownat.c (main): Likewise.
19570         * tests/test-lchown.c (main): Likewise.
19571         * tests/test-fdutimensat.c (main): Likewise.
19572         * tests/test-futimens.c (main): Likewise.
19573         * tests/test-link.c (main): Likewise.
19574         * tests/test-linkat.c (main): Likewise.
19575         * tests/test-mkdir.c (main): Likewise.
19576         * tests/test-mkdirat.c (main): Likewise.
19577         * tests/test-mkfifo.c (main): Likewise.
19578         * tests/test-mkfifoat.c (main): Likewise.
19579         * tests/test-mknod.c (main): Likewise.
19580         * tests/test-readlink.c (main): Likewise.
19581         * tests/test-remove.c (main): Likewise.
19582         * tests/test-rename.c (main): Likewise.
19583         * tests/test-renameat.c (main): Likewise.
19584         * tests/test-symlink.c (main): Likewise.
19585         * tests/test-symlinkat.c (main): Likewise.
19586         * tests/test-utimens.c (main): Likewise.
19587         * tests/test-utimensat.c (main): Likewise.
19588
19589 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19590
19591         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
19592         on $(UNUSED_PARAMETER_H) to avoid build failure.
19593
19594 2009-12-28  Jim Meyering  <meyering@redhat.com>
19595
19596         update-copyright: you may specify a max. line length other than 72
19597         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19598
19599         maint: use consistent FSF copyright line syntax
19600         * lib/posixtm.c: Add missing comma in FSF copyright line.
19601         * lib/posixtm.h: Likewise.
19602         * lib/getugroups.c: Add missing ", Inc.".
19603
19604         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
19605         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
19606         FSF copyright line.  Remove trailing blanks.
19607
19608 2009-12-28  Eric Blake  <ebb9@byu.net>
19609
19610         test-dup2: reduce dependencies
19611         * modules/cloexec (Configure.ac): Set witness.
19612         * modules/dup2-tests (Depends-on): Drop cloexec.
19613         * tests/test-dup2.c (main): Skip portion of test if cloexec module
19614         not present.
19615         Suggested by Bruno Haible.
19616
19617 2009-12-26  Bruno Haible  <bruno@clisp.org>
19618
19619         Remove an unneeded dependency.
19620         * modules/fseterr (Depends-on): Remove dup2.
19621
19622 2009-12-26  Eric Blake  <ebb9@byu.net>
19623
19624         tests: use macros.h in more places
19625         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
19626         (ASSERT_STREAM): Provide default of stderr.
19627         * tests/test-dirent-safer.c: Include macros.h, using alternate
19628         stream for assertions.
19629         * tests/test-dup-safer.c: Likewise.
19630         * tests/test-freopen-safer.c: Likewise.
19631         * tests/test-getopt.c: Likewise.
19632         * tests/test-openat-safer.c: Likewise.
19633         * tests/test-pipe.c: Likewise.
19634         * tests/test-popen-safer.c: Likewise.
19635         * modules/dirent-safer-tests (Files): Include macros.h.
19636         * modules/unistd-safer-tests (Files): Likewise.
19637         * modules/freopen-safer-tests (Files): Likewise.
19638         * modules/getopt-posix-tests (Files): Likewise.
19639         * modules/openat-safer-tests (Files): Likewise.
19640         * modules/pipe-tests (Files): Likewise.
19641
19642 2009-12-26  Bruno Haible  <bruno@clisp.org>
19643
19644         javacomp: Portability fix.
19645         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
19646         that it also works on Solaris.
19647
19648 2009-12-26  Bruno Haible  <bruno@clisp.org>
19649
19650         localename: Fix storage allocation of gl_locale_name_thread's result.
19651         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
19652         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
19653         all platforms that have 'uselocale'.
19654         (gl_locale_name_thread_unsafe): New function, extracted from
19655         gl_locale_name_thread.
19656         (gl_locale_name_thread): Call struniq on all platforms that have
19657         'uselocale'.
19658         * tests/test-localename.c (test_locale_name_thread): Check that the
19659         resulting strings are permanently allocated.
19660         * modules/localename-tests (Depends-on): Add strdup.
19661
19662 2009-12-26  Bruno Haible  <bruno@clisp.org>
19663
19664         * tests/test-localename.c (categories): Fill in the strings.
19665
19666 2009-12-26  Jim Meyering  <meyering@redhat.com>
19667
19668         isdir: complete the removal of m4/isdir.m4
19669         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
19670
19671         isdir: clean up, since at least grep still uses it
19672         * lib/isdir.c: Include "isdir.h".
19673         (S_ISDIR): Remove now-unneeded definition.
19674         * modules/isdir (Files): Add lib/isdir.h.
19675         * lib/isdir.h: New file, with declaration.
19676         * m4/isdir.m4: Remove file -- unneeded.
19677
19678 2009-12-25  Bruno Haible  <bruno@clisp.org>
19679
19680         selinux-h: Make generated .h files standalone.
19681         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
19682         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
19683         * lib/se-selinux.in.h: Likewise.
19684         * modules/selinux-h (Depends-on): Add unused-parameter.
19685         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
19686         selinux/selinux.h and selinux/context.h.
19687         Suggested by Eric Blake.
19688
19689 2009-12-25  Bruno Haible  <bruno@clisp.org>
19690
19691         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
19692         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
19693         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
19694         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
19695         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
19696
19697 2009-12-24  Bruno Haible  <bruno@clisp.org>
19698
19699         openat: Fix warning.
19700         * lib/openat-proc.c: Include <unistd.h>.
19701
19702 2009-12-24  Bruno Haible  <bruno@clisp.org>
19703
19704         New module 'unused-parameter'.
19705         * build-aux/unused-parameter.h: New file, extracted from earlier
19706         gnulib-common.m4.
19707         * modules/unused-parameter: New file.
19708         * lib/unistr.h: Include unused-parameter.h.
19709         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
19710         _GL_UNUSED.
19711         * modules/unistr/base (Depends-on): Add unused-parameter.
19712
19713 2009-12-24  Bruno Haible  <bruno@clisp.org>
19714
19715         Add missing dependencies to 'extensions' module.
19716         * m4/extensions.m4: Add comment.
19717         * modules/accept4 (Depends-on): Add extensions.
19718         * modules/dup3 (Depends-on): Likewise.
19719         * modules/fcntl (Depends-on): Likewise.
19720         * modules/futimens (Depends-on): Likewise.
19721         * modules/mknod (Depends-on): Likewise.
19722         * modules/pipe2 (Depends-on): Likewise.
19723         * modules/stat-time (Depends-on): Likewise.
19724         * modules/strcasestr-simple (Depends-on): Likewise.
19725         * modules/strsignal (Depends-on): Likewise.
19726         * modules/utimensat (Depends-on): Likewise.
19727         * modules/localcharset (Depends-on): Likewise. Needed because of
19728         gl_FCNTL_O_FLAGS.
19729         * modules/wcrtomb (Depends-on): Likewise. Needed because of
19730         AC_TYPE_MBSTATE_T.
19731         * modules/wcsnrtombs (Depends-on): Likewise.
19732         * modules/wcsrtombs (Depends-on): Likewise.
19733
19734 2009-12-24  Bruno Haible  <bruno@clisp.org>
19735
19736         binary-io: Avoid gcc warning due to SET_BINARY.
19737         * lib/binary-io.h (SET_BINARY): Cast the result to void.
19738         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
19739
19740 2009-12-24  Bruno Haible  <bruno@clisp.org>
19741
19742         Avoid future namespace pollution on glibc systems.
19743         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
19744         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
19745         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
19746         glibc systems.
19747
19748 2009-12-24  Bruno Haible  <bruno@clisp.org>
19749
19750         Refactor common macros used in tests.
19751         * tests/macros.h: New file.
19752         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
19753         and/or <stdlib.h>, if appropriate.
19754         (ASSERT, SIZEOF): Remove macros.
19755         * tests/test-areadlink-with-size.c: Likewise.
19756         * tests/test-areadlinkat.c: Likewise.
19757         * tests/test-areadlinkat-with-size.c: Likewise.
19758         * tests/test-argmatch.c: Likewise.
19759         * tests/test-argv-iter.c: Likewise.
19760         * tests/test-array-mergesort.c: Likewise.
19761         * tests/test-array_list.c: Likewise.
19762         * tests/test-array_oset.c: Likewise.
19763         * tests/test-avltree_list.c: Likewise.
19764         * tests/test-avltree_oset.c: Likewise.
19765         * tests/test-avltreehash_list.c: Likewise.
19766         * tests/test-base64.c: Likewise.
19767         * tests/test-binary-io.c: Likewise.
19768         * tests/test-bitrotate.c: Likewise.
19769         * tests/test-btowc.c: Likewise.
19770         * tests/test-byteswap.c: Likewise.
19771         * tests/test-c-ctype.c: Likewise.
19772         * tests/test-c-stack.c: Likewise.
19773         * tests/test-c-strcasecmp.c: Likewise.
19774         * tests/test-c-strcasestr.c: Likewise.
19775         * tests/test-c-strncasecmp.c: Likewise.
19776         * tests/test-c-strstr.c: Likewise.
19777         * tests/test-canonicalize-lgpl.c: Likewise.
19778         * tests/test-canonicalize.c: Likewise.
19779         * tests/test-carray_list.c: Likewise.
19780         * tests/test-ceilf1.c: Likewise.
19781         * tests/test-ceilf2.c: Likewise.
19782         * tests/test-ceill.c: Likewise.
19783         * tests/test-chown.c: Likewise.
19784         * tests/test-cloexec.c: Likewise.
19785         * tests/test-copy-acl.c: Likewise.
19786         * tests/test-copy-file.c: Likewise.
19787         * tests/test-count-one-bits.c: Likewise.
19788         * tests/test-dprintf-posix.c: Likewise.
19789         * tests/test-dup2.c: Likewise.
19790         * tests/test-dup3.c: Likewise.
19791         * tests/test-duplocale.c: Likewise.
19792         * tests/test-fbufmode.c: Likewise.
19793         * tests/test-fchdir.c: Likewise.
19794         * tests/test-fchownat.c: Likewise.
19795         * tests/test-fcntl-safer.c: Likewise.
19796         * tests/test-fcntl.c: Likewise.
19797         * tests/test-fdopendir.c: Likewise.
19798         * tests/test-fdutimensat.c: Likewise.
19799         * tests/test-fflush2.c: Likewise.
19800         * tests/test-file-has-acl.c: Likewise.
19801         * tests/test-filevercmp.c: Likewise.
19802         * tests/test-flock.c: Likewise.
19803         * tests/test-floorf1.c: Likewise.
19804         * tests/test-floorf2.c: Likewise.
19805         * tests/test-floorl.c: Likewise.
19806         * tests/test-fnmatch.c: Likewise.
19807         * tests/test-fopen.h: Likewise.
19808         * tests/test-fpending.c: Likewise.
19809         * tests/test-fprintf-posix.c: Likewise.
19810         * tests/test-fpurge.c: Likewise.
19811         * tests/test-freadable.c: Likewise.
19812         * tests/test-freadahead.c: Likewise.
19813         * tests/test-freading.c: Likewise.
19814         * tests/test-freadptr.c: Likewise.
19815         * tests/test-freadptr2.c: Likewise.
19816         * tests/test-freadseek.c: Likewise.
19817         * tests/test-freopen.c: Likewise.
19818         * tests/test-frexp.c: Likewise.
19819         * tests/test-frexpl.c: Likewise.
19820         * tests/test-fseek.c: Likewise.
19821         * tests/test-fseeko.c: Likewise.
19822         * tests/test-fstatat.c: Likewise.
19823         * tests/test-fstrcmp.c: Likewise.
19824         * tests/test-fsync.c: Likewise.
19825         * tests/test-ftell.c: Likewise.
19826         * tests/test-ftello.c: Likewise.
19827         * tests/test-func.c: Likewise.
19828         * tests/test-futimens.c: Likewise.
19829         * tests/test-fwritable.c: Likewise.
19830         * tests/test-fwriting.c: Likewise.
19831         * tests/test-getcwd.c: Likewise.
19832         * tests/test-getdate.c: Likewise.
19833         * tests/test-getdelim.c: Likewise.
19834         * tests/test-getdtablesize.c: Likewise.
19835         * tests/test-getgroups.c: Likewise.
19836         * tests/test-getline.c: Likewise.
19837         * tests/test-getndelim2.c: Likewise.
19838         * tests/test-glob.c: Likewise.
19839         * tests/test-hash.c: Likewise.
19840         * tests/test-i-ring.c: Likewise.
19841         * tests/test-iconv-utf.c: Likewise.
19842         * tests/test-iconv.c: Likewise.
19843         * tests/test-idpriv-drop.c: Likewise.
19844         * tests/test-idpriv-droptemp.c: Likewise.
19845         * tests/test-inet_ntop.c: Likewise.
19846         * tests/test-inet_pton.c: Likewise.
19847         * tests/test-isblank.c: Likewise.
19848         * tests/test-isfinite.c: Likewise.
19849         * tests/test-isinf.c: Likewise.
19850         * tests/test-isnan.c: Likewise.
19851         * tests/test-isnand.h: Likewise.
19852         * tests/test-isnanf.h: Likewise.
19853         * tests/test-isnanl.h: Likewise.
19854         * tests/test-lchown.c: Likewise.
19855         * tests/test-ldexpl.c: Likewise.
19856         * tests/test-link.c: Likewise.
19857         * tests/test-linkat.c: Likewise.
19858         * tests/test-linked_list.c: Likewise.
19859         * tests/test-linkedhash_list.c: Likewise.
19860         * tests/test-localename.c: Likewise.
19861         * tests/test-lseek.c: Likewise.
19862         * tests/test-lstat.c: Likewise.
19863         * tests/test-mbmemcasecmp.c: Likewise.
19864         * tests/test-mbmemcasecoll.c: Likewise.
19865         * tests/test-mbrtowc.c: Likewise.
19866         * tests/test-mbscasecmp.c: Likewise.
19867         * tests/test-mbscasestr1.c: Likewise.
19868         * tests/test-mbscasestr2.c: Likewise.
19869         * tests/test-mbscasestr3.c: Likewise.
19870         * tests/test-mbscasestr4.c: Likewise.
19871         * tests/test-mbschr.c: Likewise.
19872         * tests/test-mbscspn.c: Likewise.
19873         * tests/test-mbsinit.c: Likewise.
19874         * tests/test-mbsncasecmp.c: Likewise.
19875         * tests/test-mbsnrtowcs.c: Likewise.
19876         * tests/test-mbspbrk.c: Likewise.
19877         * tests/test-mbspcasecmp.c: Likewise.
19878         * tests/test-mbsrchr.c: Likewise.
19879         * tests/test-mbsrtowcs.c: Likewise.
19880         * tests/test-mbsspn.c: Likewise.
19881         * tests/test-mbsstr1.c: Likewise.
19882         * tests/test-mbsstr2.c: Likewise.
19883         * tests/test-mbsstr3.c: Likewise.
19884         * tests/test-memchr.c: Likewise.
19885         * tests/test-memchr2.c: Likewise.
19886         * tests/test-memcmp.c: Likewise.
19887         * tests/test-memmem.c: Likewise.
19888         * tests/test-memrchr.c: Likewise.
19889         * tests/test-mkdir.c: Likewise.
19890         * tests/test-mkdirat.c: Likewise.
19891         * tests/test-mkfifo.c: Likewise.
19892         * tests/test-mkfifoat.c: Likewise.
19893         * tests/test-mknod.c: Likewise.
19894         * tests/test-nanosleep.c: Likewise.
19895         * tests/test-nl_langinfo.c: Likewise.
19896         * tests/test-obstack-printf.c: Likewise.
19897         * tests/test-open.c: Likewise.
19898         * tests/test-openat.c: Likewise.
19899         * tests/test-pipe-filter-gi1.c: Likewise.
19900         * tests/test-pipe-filter-gi2-main.c: Likewise.
19901         * tests/test-pipe-filter-ii1.c: Likewise.
19902         * tests/test-pipe-filter-ii2-main.c: Likewise.
19903         * tests/test-pipe2.c: Likewise.
19904         * tests/test-popen.h: Likewise.
19905         * tests/test-posixtm.c: Likewise.
19906         * tests/test-pread.c: Likewise.
19907         * tests/test-printf-frexp.c: Likewise.
19908         * tests/test-printf-frexpl.c: Likewise.
19909         * tests/test-printf-posix.c: Likewise.
19910         * tests/test-priv-set.c: Likewise.
19911         * tests/test-quotearg.c: Likewise.
19912         * tests/test-random_r.c: Likewise.
19913         * tests/test-rawmemchr.c: Likewise.
19914         * tests/test-rbtree_list.c: Likewise.
19915         * tests/test-rbtree_oset.c: Likewise.
19916         * tests/test-rbtreehash_list.c: Likewise.
19917         * tests/test-readlink.c: Likewise.
19918         * tests/test-remove.c: Likewise.
19919         * tests/test-rename.c: Likewise.
19920         * tests/test-renameat.c: Likewise.
19921         * tests/test-rmdir.c: Likewise.
19922         * tests/test-round1.c: Likewise.
19923         * tests/test-roundf1.c: Likewise.
19924         * tests/test-roundl.c: Likewise.
19925         * tests/test-safe-alloc.c: Likewise.
19926         * tests/test-sameacls.c: Likewise.
19927         * tests/test-set-mode-acl.c: Likewise.
19928         * tests/test-setenv.c: Likewise.
19929         * tests/test-sigaction.c: Likewise.
19930         * tests/test-signbit.c: Likewise.
19931         * tests/test-sleep.c: Likewise.
19932         * tests/test-snprintf-posix.c: Likewise.
19933         * tests/test-snprintf.c: Likewise.
19934         * tests/test-sprintf-posix.c: Likewise.
19935         * tests/test-stat-time.c: Likewise.
19936         * tests/test-stat.c: Likewise.
19937         * tests/test-strcasestr.c: Likewise.
19938         * tests/test-strchrnul.c: Likewise.
19939         * tests/test-strerror.c: Likewise.
19940         * tests/test-striconv.c: Likewise.
19941         * tests/test-striconveh.c: Likewise.
19942         * tests/test-striconveha.c: Likewise.
19943         * tests/test-strsignal.c: Likewise.
19944         * tests/test-strstr.c: Likewise.
19945         * tests/test-strtod.c: Likewise.
19946         * tests/test-strverscmp.c: Likewise.
19947         * tests/test-symlink.c: Likewise.
19948         * tests/test-symlinkat.c: Likewise.
19949         * tests/test-trunc1.c: Likewise.
19950         * tests/test-trunc2.c: Likewise.
19951         * tests/test-truncf1.c: Likewise.
19952         * tests/test-truncf2.c: Likewise.
19953         * tests/test-truncl.c: Likewise.
19954         * tests/test-uname.c: Likewise.
19955         * tests/test-unlink.c: Likewise.
19956         * tests/test-unlinkat.c: Likewise.
19957         * tests/test-unsetenv.c: Likewise.
19958         * tests/test-usleep.c: Likewise.
19959         * tests/test-utimens.c: Likewise.
19960         * tests/test-utimensat.c: Likewise.
19961         * tests/test-vasnprintf-posix.c: Likewise.
19962         * tests/test-vasnprintf-posix2.c: Likewise.
19963         * tests/test-vasnprintf.c: Likewise.
19964         * tests/test-vasprintf-posix.c: Likewise.
19965         * tests/test-vasprintf.c: Likewise.
19966         * tests/test-vdprintf-posix.c: Likewise.
19967         * tests/test-vfprintf-posix.c: Likewise.
19968         * tests/test-vprintf-posix.c: Likewise.
19969         * tests/test-vsnprintf-posix.c: Likewise.
19970         * tests/test-vsnprintf.c: Likewise.
19971         * tests/test-vsprintf-posix.c: Likewise.
19972         * tests/test-wcrtomb.c: Likewise.
19973         * tests/test-wcsnrtombs.c: Likewise.
19974         * tests/test-wcsrtombs.c: Likewise.
19975         * tests/test-wctype.c: Likewise.
19976         * tests/test-wcwidth.c: Likewise.
19977         * tests/test-xfprintf-posix.c: Likewise.
19978         * tests/test-xmemdup0.c: Likewise.
19979         * tests/test-xprintf-posix.c: Likewise.
19980         * tests/test-xvasprintf.c: Likewise.
19981         * tests/unicase/test-locale-language.c: Likewise.
19982         * tests/unicase/test-mapping-part1.h: Likewise.
19983         * tests/unicase/test-predicate-part1.h: Likewise.
19984         * tests/unicase/test-u8-casecmp.c: Likewise.
19985         * tests/unicase/test-u8-casecoll.c: Likewise.
19986         * tests/unicase/test-u8-casefold.c: Likewise.
19987         * tests/unicase/test-u8-is-cased.c: Likewise.
19988         * tests/unicase/test-u8-is-casefolded.c: Likewise.
19989         * tests/unicase/test-u8-is-lowercase.c: Likewise.
19990         * tests/unicase/test-u8-is-titlecase.c: Likewise.
19991         * tests/unicase/test-u8-is-uppercase.c: Likewise.
19992         * tests/unicase/test-u8-tolower.c: Likewise.
19993         * tests/unicase/test-u8-totitle.c: Likewise.
19994         * tests/unicase/test-u8-toupper.c: Likewise.
19995         * tests/unicase/test-u16-casecmp.c: Likewise.
19996         * tests/unicase/test-u16-casecoll.c: Likewise.
19997         * tests/unicase/test-u16-casefold.c: Likewise.
19998         * tests/unicase/test-u16-is-cased.c: Likewise.
19999         * tests/unicase/test-u16-is-casefolded.c: Likewise.
20000         * tests/unicase/test-u16-is-lowercase.c: Likewise.
20001         * tests/unicase/test-u16-is-titlecase.c: Likewise.
20002         * tests/unicase/test-u16-is-uppercase.c: Likewise.
20003         * tests/unicase/test-u16-tolower.c: Likewise.
20004         * tests/unicase/test-u16-totitle.c: Likewise.
20005         * tests/unicase/test-u16-toupper.c: Likewise.
20006         * tests/unicase/test-u32-casecmp.c: Likewise.
20007         * tests/unicase/test-u32-casecoll.c: Likewise.
20008         * tests/unicase/test-u32-casefold.c: Likewise.
20009         * tests/unicase/test-u32-is-cased.c: Likewise.
20010         * tests/unicase/test-u32-is-casefolded.c: Likewise.
20011         * tests/unicase/test-u32-is-lowercase.c: Likewise.
20012         * tests/unicase/test-u32-is-titlecase.c: Likewise.
20013         * tests/unicase/test-u32-is-uppercase.c: Likewise.
20014         * tests/unicase/test-u32-tolower.c: Likewise.
20015         * tests/unicase/test-u32-totitle.c: Likewise.
20016         * tests/unicase/test-u32-toupper.c: Likewise.
20017         * tests/unicase/test-ulc-casecmp.c: Likewise.
20018         * tests/unicase/test-ulc-casecoll.c: Likewise.
20019         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20020         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20021         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20022         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20023         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20024         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20025         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20026         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20027         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20028         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20029         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20030         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20031         * tests/unictype/test-bidi_byname.c: Likewise.
20032         * tests/unictype/test-bidi_name.c: Likewise.
20033         * tests/unictype/test-bidi_of.c: Likewise.
20034         * tests/unictype/test-bidi_test.c: Likewise.
20035         * tests/unictype/test-block_list.c: Likewise.
20036         * tests/unictype/test-block_of.c: Likewise.
20037         * tests/unictype/test-block_test.c: Likewise.
20038         * tests/unictype/test-categ_and.c: Likewise.
20039         * tests/unictype/test-categ_and_not.c: Likewise.
20040         * tests/unictype/test-categ_byname.c: Likewise.
20041         * tests/unictype/test-categ_name.c: Likewise.
20042         * tests/unictype/test-categ_none.c: Likewise.
20043         * tests/unictype/test-categ_of.c: Likewise.
20044         * tests/unictype/test-categ_or.c: Likewise.
20045         * tests/unictype/test-categ_test_withtable.c: Likewise.
20046         * tests/unictype/test-combining.c: Likewise.
20047         * tests/unictype/test-decdigit.c: Likewise.
20048         * tests/unictype/test-digit.c: Likewise.
20049         * tests/unictype/test-mirror.c: Likewise.
20050         * tests/unictype/test-numeric.c: Likewise.
20051         * tests/unictype/test-pr_byname.c: Likewise.
20052         * tests/unictype/test-pr_test.c: Likewise.
20053         * tests/unictype/test-predicate-part1.h: Likewise.
20054         * tests/unictype/test-scripts.c: Likewise.
20055         * tests/unictype/test-sy_c_ident.c: Likewise.
20056         * tests/unictype/test-sy_java_ident.c: Likewise.
20057         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
20058         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
20059         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
20060         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
20061         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
20062         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
20063         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
20064         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
20065         * tests/uninorm/test-canonical-decomposition.c: Likewise.
20066         * tests/uninorm/test-compat-decomposition.c: Likewise.
20067         * tests/uninorm/test-composition.c: Likewise.
20068         * tests/uninorm/test-decomposing-form.c: Likewise.
20069         * tests/uninorm/test-decomposition.c: Likewise.
20070         * tests/uninorm/test-u8-nfc.c: Likewise.
20071         * tests/uninorm/test-u8-nfd.c: Likewise.
20072         * tests/uninorm/test-u8-nfkc.c: Likewise.
20073         * tests/uninorm/test-u8-nfkd.c: Likewise.
20074         * tests/uninorm/test-u8-normcmp.c: Likewise.
20075         * tests/uninorm/test-u8-normcoll.c: Likewise.
20076         * tests/uninorm/test-u16-nfc.c: Likewise.
20077         * tests/uninorm/test-u16-nfd.c: Likewise.
20078         * tests/uninorm/test-u16-nfkc.c: Likewise.
20079         * tests/uninorm/test-u16-nfkd.c: Likewise.
20080         * tests/uninorm/test-u16-normcmp.c: Likewise.
20081         * tests/uninorm/test-u16-normcoll.c: Likewise.
20082         * tests/uninorm/test-u32-nfc.c: Likewise.
20083         * tests/uninorm/test-u32-nfd.c: Likewise.
20084         * tests/uninorm/test-u32-nfkc.c: Likewise.
20085         * tests/uninorm/test-u32-nfkd.c: Likewise.
20086         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20087         * tests/uninorm/test-u32-normcmp.c: Likewise.
20088         * tests/uninorm/test-u32-normcoll.c: Likewise.
20089         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
20090         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20091         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20092         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20093         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20094         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20095         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20096         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20097         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20098         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20099         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20100         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20101         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20102         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20103         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20104         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20105         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20106         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20107         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20108         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20109         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20110         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20111         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20112         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20113         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20114         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20115         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20116         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20117         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20118         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
20119         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
20120         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
20121         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
20122         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20123         * tests/uniwidth/test-u8-width.c: Likewise.
20124         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20125         * tests/uniwidth/test-u16-width.c: Likewise.
20126         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20127         * tests/uniwidth/test-u32-width.c: Likewise.
20128         * tests/uniwidth/test-uc_width.c: Likewise.
20129         * tests/uniwidth/test-uc_width2.c: Likewise.
20130         * modules/acl-tests (Files): Add tests/macros.h.
20131         * modules/areadlink-tests (Files): Likewise.
20132         * modules/areadlink-with-size-tests (Files): Likewise.
20133         * modules/areadlinkat-tests (Files): Likewise.
20134         * modules/areadlinkat-with-size-tests (Files): Likewise.
20135         * modules/argmatch-tests (Files): Likewise.
20136         * modules/argv-iter-tests (Files): Likewise.
20137         * modules/array-list-tests (Files): Likewise.
20138         * modules/array-mergesort-tests (Files): Likewise.
20139         * modules/array-oset-tests (Files): Likewise.
20140         * modules/avltree-list-tests (Files): Likewise.
20141         * modules/avltree-oset-tests (Files): Likewise.
20142         * modules/avltreehash-list-tests (Files): Likewise.
20143         * modules/base64-tests (Files): Likewise.
20144         * modules/binary-io-tests (Files): Likewise.
20145         * modules/bitrotate-tests (Files): Likewise.
20146         * modules/btowc-tests (Files): Likewise.
20147         * modules/byteswap-tests (Files): Likewise.
20148         * modules/c-ctype-tests (Files): Likewise.
20149         * modules/c-stack-tests (Files): Likewise.
20150         * modules/c-strcase-tests (Files): Likewise.
20151         * modules/c-strcasestr-tests (Files): Likewise.
20152         * modules/c-strstr-tests (Files): Likewise.
20153         * modules/canonicalize-lgpl-tests (Files): Likewise.
20154         * modules/canonicalize-tests (Files): Likewise.
20155         * modules/carray-list-tests (Files): Likewise.
20156         * modules/ceilf-tests (Files): Likewise.
20157         * modules/ceill-tests (Files): Likewise.
20158         * modules/chown-tests (Files): Likewise.
20159         * modules/cloexec-tests (Files): Likewise.
20160         * modules/copy-file-tests (Files): Likewise.
20161         * modules/count-one-bits-tests (Files): Likewise.
20162         * modules/dprintf-posix-tests (Files): Likewise.
20163         * modules/dup2-tests (Files): Likewise.
20164         * modules/dup3-tests (Files): Likewise.
20165         * modules/duplocale-tests (Files): Likewise.
20166         * modules/fbufmode-tests (Files): Likewise.
20167         * modules/fchdir-tests (Files): Likewise.
20168         * modules/fcntl-safer-tests (Files): Likewise.
20169         * modules/fcntl-tests (Files): Likewise.
20170         * modules/fdopendir-tests (Files): Likewise.
20171         * modules/fdutimensat-tests (Files): Likewise.
20172         * modules/fflush-tests (Files): Likewise.
20173         * modules/filevercmp-tests (Files): Likewise.
20174         * modules/flock-tests (Files): Likewise.
20175         * modules/floorf-tests (Files): Likewise.
20176         * modules/floorl-tests (Files): Likewise.
20177         * modules/fnmatch-tests (Files): Likewise.
20178         * modules/fopen-safer-tests (Files): Likewise.
20179         * modules/fopen-tests (Files): Likewise.
20180         * modules/fpending-tests (Files): Likewise.
20181         * modules/fprintf-posix-tests (Files): Likewise.
20182         * modules/fpurge-tests (Files): Likewise.
20183         * modules/freadable-tests (Files): Likewise.
20184         * modules/freadahead-tests (Files): Likewise.
20185         * modules/freading-tests (Files): Likewise.
20186         * modules/freadptr-tests (Files): Likewise.
20187         * modules/freadseek-tests (Files): Likewise.
20188         * modules/freopen-tests (Files): Likewise.
20189         * modules/frexp-nolibm-tests (Files): Likewise.
20190         * modules/frexp-tests (Files): Likewise.
20191         * modules/frexpl-nolibm-tests (Files): Likewise.
20192         * modules/frexpl-tests (Files): Likewise.
20193         * modules/fseek-tests (Files): Likewise.
20194         * modules/fseeko-tests (Files): Likewise.
20195         * modules/fstrcmp-tests (Files): Likewise.
20196         * modules/fsync-tests (Files): Likewise.
20197         * modules/ftell-tests (Files): Likewise.
20198         * modules/ftello-tests (Files): Likewise.
20199         * modules/func-tests (Files): Likewise.
20200         * modules/futimens-tests (Files): Likewise.
20201         * modules/fwritable-tests (Files): Likewise.
20202         * modules/fwriting-tests (Files): Likewise.
20203         * modules/getcwd-tests (Files): Likewise.
20204         * modules/getdate-tests (Files): Likewise.
20205         * modules/getdelim-tests (Files): Likewise.
20206         * modules/getdtablesize-tests (Files): Likewise.
20207         * modules/getgroups-tests (Files): Likewise.
20208         * modules/getline-tests (Files): Likewise.
20209         * modules/getndelim2-tests (Files): Likewise.
20210         * modules/glob-tests (Files): Likewise.
20211         * modules/hash-tests (Files): Likewise.
20212         * modules/i-ring-tests (Files): Likewise.
20213         * modules/iconv-tests (Files): Likewise.
20214         * modules/iconv_open-utf-tests (Files): Likewise.
20215         * modules/idpriv-drop-tests (Files): Likewise.
20216         * modules/idpriv-droptemp-tests (Files): Likewise.
20217         * modules/inet_ntop-tests (Files): Likewise.
20218         * modules/inet_pton-tests (Files): Likewise.
20219         * modules/isblank-tests (Files): Likewise.
20220         * modules/isfinite-tests (Files): Likewise.
20221         * modules/isinf-tests (Files): Likewise.
20222         * modules/isnan-tests (Files): Likewise.
20223         * modules/isnand-nolibm-tests (Files): Likewise.
20224         * modules/isnand-tests (Files): Likewise.
20225         * modules/isnanf-nolibm-tests (Files): Likewise.
20226         * modules/isnanf-tests (Files): Likewise.
20227         * modules/isnanl-nolibm-tests (Files): Likewise.
20228         * modules/isnanl-tests (Files): Likewise.
20229         * modules/lchown-tests (Files): Likewise.
20230         * modules/ldexpl-tests (Files): Likewise.
20231         * modules/link-tests (Files): Likewise.
20232         * modules/linkat-tests (Files): Likewise.
20233         * modules/linked-list-tests (Files): Likewise.
20234         * modules/linkedhash-list-tests (Files): Likewise.
20235         * modules/localename-tests (Files): Likewise.
20236         * modules/lseek-tests (Files): Likewise.
20237         * modules/lstat-tests (Files): Likewise.
20238         * modules/mbmemcasecmp-tests (Files): Likewise.
20239         * modules/mbmemcasecoll-tests (Files): Likewise.
20240         * modules/mbrtowc-tests (Files): Likewise.
20241         * modules/mbscasecmp-tests (Files): Likewise.
20242         * modules/mbscasestr-tests (Files): Likewise.
20243         * modules/mbschr-tests (Files): Likewise.
20244         * modules/mbscspn-tests (Files): Likewise.
20245         * modules/mbsinit-tests (Files): Likewise.
20246         * modules/mbsncasecmp-tests (Files): Likewise.
20247         * modules/mbsnrtowcs-tests (Files): Likewise.
20248         * modules/mbspbrk-tests (Files): Likewise.
20249         * modules/mbspcasecmp-tests (Files): Likewise.
20250         * modules/mbsrchr-tests (Files): Likewise.
20251         * modules/mbsrtowcs-tests (Files): Likewise.
20252         * modules/mbsspn-tests (Files): Likewise.
20253         * modules/mbsstr-tests (Files): Likewise.
20254         * modules/memchr-tests (Files): Likewise.
20255         * modules/memchr2-tests (Files): Likewise.
20256         * modules/memcmp-tests (Files): Likewise.
20257         * modules/memmem-tests (Files): Likewise.
20258         * modules/memrchr-tests (Files): Likewise.
20259         * modules/mkdir-tests (Files): Likewise.
20260         * modules/mkfifo-tests (Files): Likewise.
20261         * modules/mkfifoat-tests (Files): Likewise.
20262         * modules/mknod-tests (Files): Likewise.
20263         * modules/nanosleep-tests (Files): Likewise.
20264         * modules/nl_langinfo-tests (Files): Likewise.
20265         * modules/obstack-printf-tests (Files): Likewise.
20266         * modules/open-tests (Files): Likewise.
20267         * modules/openat-tests (Files): Likewise.
20268         * modules/pipe-filter-gi-tests (Files): Likewise.
20269         * modules/pipe-filter-ii-tests (Files): Likewise.
20270         * modules/pipe2-tests (Files): Likewise.
20271         * modules/popen-safer-tests (Files): Likewise.
20272         * modules/popen-tests (Files): Likewise.
20273         * modules/posixtm-tests (Files): Likewise.
20274         * modules/pread-tests (Files): Likewise.
20275         * modules/printf-frexp-tests (Files): Likewise.
20276         * modules/printf-frexpl-tests (Files): Likewise.
20277         * modules/printf-posix-tests (Files): Likewise.
20278         * modules/priv-set-tests (Files): Likewise.
20279         * modules/quotearg-tests (Files): Likewise.
20280         * modules/random_r-tests (Files): Likewise.
20281         * modules/rawmemchr-tests (Files): Likewise.
20282         * modules/rbtree-list-tests (Files): Likewise.
20283         * modules/rbtree-oset-tests (Files): Likewise.
20284         * modules/rbtreehash-list-tests (Files): Likewise.
20285         * modules/readlink-tests (Files): Likewise.
20286         * modules/remove-tests (Files): Likewise.
20287         * modules/rename-tests (Files): Likewise.
20288         * modules/renameat-tests (Files): Likewise.
20289         * modules/rmdir-tests (Files): Likewise.
20290         * modules/round-tests (Files): Likewise.
20291         * modules/roundf-tests (Files): Likewise.
20292         * modules/roundl-tests (Files): Likewise.
20293         * modules/safe-alloc-tests (Files): Likewise.
20294         * modules/setenv-tests (Files): Likewise.
20295         * modules/sigaction-tests (Files): Likewise.
20296         * modules/signbit-tests (Files): Likewise.
20297         * modules/sleep-tests (Files): Likewise.
20298         * modules/snprintf-posix-tests (Files): Likewise.
20299         * modules/snprintf-tests (Files): Likewise.
20300         * modules/sprintf-posix-tests (Files): Likewise.
20301         * modules/stat-tests (Files): Likewise.
20302         * modules/stat-time-tests (Files): Likewise.
20303         * modules/strcasestr-tests (Files): Likewise.
20304         * modules/strchrnul-tests (Files): Likewise.
20305         * modules/strerror-tests (Files): Likewise.
20306         * modules/striconv-tests (Files): Likewise.
20307         * modules/striconveh-tests (Files): Likewise.
20308         * modules/striconveha-tests (Files): Likewise.
20309         * modules/strsignal-tests (Files): Likewise.
20310         * modules/strstr-tests (Files): Likewise.
20311         * modules/strtod-tests (Files): Likewise.
20312         * modules/strverscmp-tests (Files): Likewise.
20313         * modules/symlink-tests (Files): Likewise.
20314         * modules/symlinkat-tests (Files): Likewise.
20315         * modules/trunc-tests (Files): Likewise.
20316         * modules/truncf-tests (Files): Likewise.
20317         * modules/truncl-tests (Files): Likewise.
20318         * modules/uname-tests (Files): Likewise.
20319         * modules/unicase/cased-tests (Files): Likewise.
20320         * modules/unicase/ignorable-tests (Files): Likewise.
20321         * modules/unicase/locale-language-tests (Files): Likewise.
20322         * modules/unicase/tolower-tests (Files): Likewise.
20323         * modules/unicase/totitle-tests (Files): Likewise.
20324         * modules/unicase/toupper-tests (Files): Likewise.
20325         * modules/unicase/u8-casecmp-tests (Files): Likewise.
20326         * modules/unicase/u8-casecoll-tests (Files): Likewise.
20327         * modules/unicase/u8-casefold-tests (Files): Likewise.
20328         * modules/unicase/u8-is-cased-tests (Files): Likewise.
20329         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
20330         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
20331         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
20332         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
20333         * modules/unicase/u8-tolower-tests (Files): Likewise.
20334         * modules/unicase/u8-totitle-tests (Files): Likewise.
20335         * modules/unicase/u8-toupper-tests (Files): Likewise.
20336         * modules/unicase/u16-casecmp-tests (Files): Likewise.
20337         * modules/unicase/u16-casecoll-tests (Files): Likewise.
20338         * modules/unicase/u16-casefold-tests (Files): Likewise.
20339         * modules/unicase/u16-is-cased-tests (Files): Likewise.
20340         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
20341         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
20342         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
20343         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
20344         * modules/unicase/u16-tolower-tests (Files): Likewise.
20345         * modules/unicase/u16-totitle-tests (Files): Likewise.
20346         * modules/unicase/u16-toupper-tests (Files): Likewise.
20347         * modules/unicase/u32-casecmp-tests (Files): Likewise.
20348         * modules/unicase/u32-casecoll-tests (Files): Likewise.
20349         * modules/unicase/u32-casefold-tests (Files): Likewise.
20350         * modules/unicase/u32-is-cased-tests (Files): Likewise.
20351         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
20352         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
20353         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
20354         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
20355         * modules/unicase/u32-tolower-tests (Files): Likewise.
20356         * modules/unicase/u32-totitle-tests (Files): Likewise.
20357         * modules/unicase/u32-toupper-tests (Files): Likewise.
20358         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
20359         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
20360         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
20361         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
20362         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
20363         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
20364         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
20365         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
20366         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
20367         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
20368         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
20369         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
20370         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
20371         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
20372         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
20373         * modules/unictype/bidicategory-name-tests (Files): Likewise.
20374         * modules/unictype/bidicategory-of-tests (Files): Likewise.
20375         * modules/unictype/bidicategory-test-tests (Files): Likewise.
20376         * modules/unictype/block-list-tests (Files): Likewise.
20377         * modules/unictype/block-of-tests (Files): Likewise.
20378         * modules/unictype/block-test-tests (Files): Likewise.
20379         * modules/unictype/category-C-tests (Files): Likewise.
20380         * modules/unictype/category-Cc-tests (Files): Likewise.
20381         * modules/unictype/category-Cf-tests (Files): Likewise.
20382         * modules/unictype/category-Cn-tests (Files): Likewise.
20383         * modules/unictype/category-Co-tests (Files): Likewise.
20384         * modules/unictype/category-Cs-tests (Files): Likewise.
20385         * modules/unictype/category-L-tests (Files): Likewise.
20386         * modules/unictype/category-Ll-tests (Files): Likewise.
20387         * modules/unictype/category-Lm-tests (Files): Likewise.
20388         * modules/unictype/category-Lo-tests (Files): Likewise.
20389         * modules/unictype/category-Lt-tests (Files): Likewise.
20390         * modules/unictype/category-Lu-tests (Files): Likewise.
20391         * modules/unictype/category-M-tests (Files): Likewise.
20392         * modules/unictype/category-Mc-tests (Files): Likewise.
20393         * modules/unictype/category-Me-tests (Files): Likewise.
20394         * modules/unictype/category-Mn-tests (Files): Likewise.
20395         * modules/unictype/category-N-tests (Files): Likewise.
20396         * modules/unictype/category-Nd-tests (Files): Likewise.
20397         * modules/unictype/category-Nl-tests (Files): Likewise.
20398         * modules/unictype/category-No-tests (Files): Likewise.
20399         * modules/unictype/category-P-tests (Files): Likewise.
20400         * modules/unictype/category-Pc-tests (Files): Likewise.
20401         * modules/unictype/category-Pd-tests (Files): Likewise.
20402         * modules/unictype/category-Pe-tests (Files): Likewise.
20403         * modules/unictype/category-Pf-tests (Files): Likewise.
20404         * modules/unictype/category-Pi-tests (Files): Likewise.
20405         * modules/unictype/category-Po-tests (Files): Likewise.
20406         * modules/unictype/category-Ps-tests (Files): Likewise.
20407         * modules/unictype/category-S-tests (Files): Likewise.
20408         * modules/unictype/category-Sc-tests (Files): Likewise.
20409         * modules/unictype/category-Sk-tests (Files): Likewise.
20410         * modules/unictype/category-Sm-tests (Files): Likewise.
20411         * modules/unictype/category-So-tests (Files): Likewise.
20412         * modules/unictype/category-Z-tests (Files): Likewise.
20413         * modules/unictype/category-Zl-tests (Files): Likewise.
20414         * modules/unictype/category-Zp-tests (Files): Likewise.
20415         * modules/unictype/category-Zs-tests (Files): Likewise.
20416         * modules/unictype/category-and-not-tests (Files): Likewise.
20417         * modules/unictype/category-and-tests (Files): Likewise.
20418         * modules/unictype/category-byname-tests (Files): Likewise.
20419         * modules/unictype/category-name-tests (Files): Likewise.
20420         * modules/unictype/category-none-tests (Files): Likewise.
20421         * modules/unictype/category-of-tests (Files): Likewise.
20422         * modules/unictype/category-or-tests (Files): Likewise.
20423         * modules/unictype/category-test-withtable-tests (Files): Likewise.
20424         * modules/unictype/combining-class-tests (Files): Likewise.
20425         * modules/unictype/ctype-alnum-tests (Files): Likewise.
20426         * modules/unictype/ctype-alpha-tests (Files): Likewise.
20427         * modules/unictype/ctype-blank-tests (Files): Likewise.
20428         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
20429         * modules/unictype/ctype-digit-tests (Files): Likewise.
20430         * modules/unictype/ctype-graph-tests (Files): Likewise.
20431         * modules/unictype/ctype-lower-tests (Files): Likewise.
20432         * modules/unictype/ctype-print-tests (Files): Likewise.
20433         * modules/unictype/ctype-punct-tests (Files): Likewise.
20434         * modules/unictype/ctype-space-tests (Files): Likewise.
20435         * modules/unictype/ctype-upper-tests (Files): Likewise.
20436         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
20437         * modules/unictype/decimal-digit-tests (Files): Likewise.
20438         * modules/unictype/digit-tests (Files): Likewise.
20439         * modules/unictype/mirror-tests (Files): Likewise.
20440         * modules/unictype/numeric-tests (Files): Likewise.
20441         * modules/unictype/property-alphabetic-tests (Files): Likewise.
20442         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
20443         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
20444         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
20445         Likewise.
20446         * modules/unictype/property-bidi-block-separator-tests (Files):
20447         Likewise.
20448         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
20449         Likewise.
20450         * modules/unictype/property-bidi-common-separator-tests (Files):
20451         Likewise.
20452         * modules/unictype/property-bidi-control-tests (Files): Likewise.
20453         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
20454         Likewise.
20455         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
20456         Likewise.
20457         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
20458         Likewise.
20459         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
20460         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
20461         Likewise.
20462         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
20463         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
20464         Likewise.
20465         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
20466         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
20467         * modules/unictype/property-bidi-segment-separator-tests (Files):
20468         Likewise.
20469         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
20470         * modules/unictype/property-byname-tests (Files): Likewise.
20471         * modules/unictype/property-combining-tests (Files): Likewise.
20472         * modules/unictype/property-composite-tests (Files): Likewise.
20473         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
20474         * modules/unictype/property-dash-tests (Files): Likewise.
20475         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
20476         * modules/unictype/property-default-ignorable-code-point-tests (Files):
20477         Likewise.
20478         * modules/unictype/property-deprecated-tests (Files): Likewise.
20479         * modules/unictype/property-diacritic-tests (Files): Likewise.
20480         * modules/unictype/property-extender-tests (Files): Likewise.
20481         * modules/unictype/property-format-control-tests (Files): Likewise.
20482         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
20483         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
20484         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
20485         * modules/unictype/property-hex-digit-tests (Files): Likewise.
20486         * modules/unictype/property-hyphen-tests (Files): Likewise.
20487         * modules/unictype/property-id-continue-tests (Files): Likewise.
20488         * modules/unictype/property-id-start-tests (Files): Likewise.
20489         * modules/unictype/property-ideographic-tests (Files): Likewise.
20490         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
20491         * modules/unictype/property-ids-trinary-operator-tests (Files):
20492         Likewise.
20493         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
20494         * modules/unictype/property-iso-control-tests (Files): Likewise.
20495         * modules/unictype/property-join-control-tests (Files): Likewise.
20496         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
20497         * modules/unictype/property-line-separator-tests (Files): Likewise.
20498         * modules/unictype/property-logical-order-exception-tests (Files):
20499         Likewise.
20500         * modules/unictype/property-lowercase-tests (Files): Likewise.
20501         * modules/unictype/property-math-tests (Files): Likewise.
20502         * modules/unictype/property-non-break-tests (Files): Likewise.
20503         * modules/unictype/property-not-a-character-tests (Files): Likewise.
20504         * modules/unictype/property-numeric-tests (Files): Likewise.
20505         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
20506         * modules/unictype/property-other-default-ignorable-code-point-tests
20507         (Files): Likewise.
20508         * modules/unictype/property-other-grapheme-extend-tests (Files):
20509         Likewise.
20510         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
20511         * modules/unictype/property-other-id-start-tests (Files): Likewise.
20512         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
20513         * modules/unictype/property-other-math-tests (Files): Likewise.
20514         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
20515         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
20516         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
20517         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
20518         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
20519         * modules/unictype/property-private-use-tests (Files): Likewise.
20520         * modules/unictype/property-punctuation-tests (Files): Likewise.
20521         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
20522         * modules/unictype/property-radical-tests (Files): Likewise.
20523         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
20524         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
20525         * modules/unictype/property-space-tests (Files): Likewise.
20526         * modules/unictype/property-terminal-punctuation-tests (Files):
20527         Likewise.
20528         * modules/unictype/property-test-tests (Files): Likewise.
20529         * modules/unictype/property-titlecase-tests (Files): Likewise.
20530         * modules/unictype/property-unassigned-code-value-tests (Files):
20531         Likewise.
20532         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
20533         * modules/unictype/property-uppercase-tests (Files): Likewise.
20534         * modules/unictype/property-variation-selector-tests (Files): Likewise.
20535         * modules/unictype/property-white-space-tests (Files): Likewise.
20536         * modules/unictype/property-xid-continue-tests (Files): Likewise.
20537         * modules/unictype/property-xid-start-tests (Files): Likewise.
20538         * modules/unictype/property-zero-width-tests (Files): Likewise.
20539         * modules/unictype/scripts-tests (Files): Likewise.
20540         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
20541         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
20542         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
20543         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
20544         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
20545         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
20546         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
20547         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
20548         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
20549         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
20550         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
20551         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
20552         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
20553         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
20554         * modules/uninorm/composition-tests (Files): Likewise.
20555         * modules/uninorm/decomposing-form-tests (Files): Likewise.
20556         * modules/uninorm/decomposition-tests (Files): Likewise.
20557         * modules/uninorm/filter-tests (Files): Likewise.
20558         * modules/uninorm/nfc-tests (Files): Likewise.
20559         * modules/uninorm/nfd-tests (Files): Likewise.
20560         * modules/uninorm/nfkc-tests (Files): Likewise.
20561         * modules/uninorm/nfkd-tests (Files): Likewise.
20562         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
20563         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
20564         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
20565         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
20566         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
20567         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
20568         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
20569         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
20570         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
20571         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
20572         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
20573         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
20574         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
20575         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
20576         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
20577         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
20578         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
20579         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
20580         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
20581         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
20582         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
20583         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
20584         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
20585         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
20586         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
20587         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
20588         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
20589         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
20590         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
20591         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
20592         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
20593         * modules/uniwidth/u8-width-tests (Files): Likewise.
20594         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
20595         * modules/uniwidth/u16-width-tests (Files): Likewise.
20596         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
20597         * modules/uniwidth/u32-width-tests (Files): Likewise.
20598         * modules/uniwidth/width-tests (Files): Likewise.
20599         * modules/unlink-tests (Files): Likewise.
20600         * modules/unsetenv-tests (Files): Likewise.
20601         * modules/usleep-tests (Files): Likewise.
20602         * modules/utimens-tests (Files): Likewise.
20603         * modules/utimensat-tests (Files): Likewise.
20604         * modules/vasnprintf-posix-tests (Files): Likewise.
20605         * modules/vasnprintf-tests (Files): Likewise.
20606         * modules/vasprintf-posix-tests (Files): Likewise.
20607         * modules/vasprintf-tests (Files): Likewise.
20608         * modules/vdprintf-posix-tests (Files): Likewise.
20609         * modules/vfprintf-posix-tests (Files): Likewise.
20610         * modules/vprintf-posix-tests (Files): Likewise.
20611         * modules/vsnprintf-posix-tests (Files): Likewise.
20612         * modules/vsnprintf-tests (Files): Likewise.
20613         * modules/vsprintf-posix-tests (Files): Likewise.
20614         * modules/wcrtomb-tests (Files): Likewise.
20615         * modules/wcsnrtombs-tests (Files): Likewise.
20616         * modules/wcsrtombs-tests (Files): Likewise.
20617         * modules/wctype-tests (Files): Likewise.
20618         * modules/wcwidth-tests (Files): Likewise.
20619         * modules/xmemdup0-tests (Files): Likewise.
20620         * modules/xprintf-posix-tests (Files): Likewise.
20621         * modules/xvasprintf-tests (Files): Likewise.
20622
20623 2009-12-24  Eric Blake  <ebb9@byu.net>
20624
20625         test-nanosleep: fix typo
20626         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
20627         patch.
20628         Reported by Bruno Haible.
20629
20630 2009-12-24  Bruno Haible  <bruno@clisp.org>
20631
20632         Reduce namespace pollution on glibc systems.
20633         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
20634         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
20635         systems.
20636         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
20637         <getopt.h> on glibc systems.
20638         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
20639         systems.
20640         * lib/fcntl.c: Include <unistd.h> here instead.
20641
20642 2009-12-24  Bruno Haible  <bruno@clisp.org>
20643
20644         * lib/stdlib.in.h (includes): Fix typo in today's commit.
20645
20646 2009-12-24  Eric Blake  <ebb9@byu.net>
20647
20648         tests: add signature checks
20649         * tests/signature.h (SIGNATURE_CHECK): New file.
20650         * modules/atexit-tests (Files): Use it.
20651         * modules/btowc-tests (Files): Likewise.
20652         * modules/canonicalize-lgpl-tests (Files): Likewise.
20653         * modules/ceilf-tests (Files): Likewise.
20654         * modules/ceill-tests (Files): Likewise.
20655         * modules/chown-tests (Files): Likewise.
20656         * modules/dprintf-posix-tests (Files): Likewise.
20657         * modules/dup2-tests (Files): Likewise.
20658         * modules/dup3-tests (Files): Likewise.
20659         * modules/duplocale-tests (Files): Likewise.
20660         * modules/fchdir-tests (Files): Likewise.
20661         * modules/fcntl-tests (Files): Likewise.
20662         * modules/fdopendir-tests (Files): Likewise.
20663         * modules/fflush-tests (Files): Likewise.
20664         * modules/flock-tests (Files): Likewise.
20665         * modules/floorf-tests (Files): Likewise.
20666         * modules/floorl-tests (Files): Likewise.
20667         * modules/fnmatch-tests (Files): Likewise.
20668         * modules/fopen-tests (Files): Likewise.
20669         * modules/fprintf-posix-tests (Files): Likewise.
20670         * modules/freopen-tests (Files): Likewise.
20671         * modules/frexp-nolibm-tests (Files): Likewise.
20672         * modules/frexp-tests (Files): Likewise.
20673         * modules/frexpl-nolibm-tests (Files): Likewise.
20674         * modules/frexpl-tests (Files): Likewise.
20675         * modules/fseek-tests (Files): Likewise.
20676         * modules/fseeko-tests (Files): Likewise.
20677         * modules/fsync-tests (Files): Likewise.
20678         * modules/ftell-tests (Files): Likewise.
20679         * modules/ftello-tests (Files): Likewise.
20680         * modules/futimens-tests (Files): Likewise.
20681         * modules/getaddrinfo-tests (Files): Likewise.
20682         * modules/getcwd-tests (Files): Likewise.
20683         * modules/getdelim-tests (Files): Likewise.
20684         * modules/getdtablesize-tests (Files): Likewise.
20685         * modules/getgroups-tests (Files): Likewise.
20686         * modules/gethostname-tests (Files): Likewise.
20687         * modules/getline-tests (Files): Likewise.
20688         * modules/getopt-posix-tests (Files): Likewise.
20689         * modules/gettimeofday-tests (Files): Likewise.
20690         * modules/glob-tests (Files): Likewise.
20691         * modules/iconv-tests (Files): Likewise.
20692         * modules/inet_ntop-tests (Files): Likewise.
20693         * modules/inet_pton-tests (Files): Likewise.
20694         * modules/isblank-tests (Files): Likewise.
20695         * modules/lchown-tests (Files): Likewise.
20696         * modules/ldexpl-tests (Files): Likewise.
20697         * modules/link-tests (Files): Likewise.
20698         * modules/linkat-tests (Files): Likewise.
20699         * modules/lseek-tests (Files): Likewise.
20700         * modules/lstat-tests (Files): Likewise.
20701         * modules/mbrtowc-tests (Files): Likewise.
20702         * modules/mbsinit-tests (Files): Likewise.
20703         * modules/mbsnrtowcs-tests (Files): Likewise.
20704         * modules/mbsrtowcs-tests (Files): Likewise.
20705         * modules/memchr-tests (Files): Likewise.
20706         * modules/memcmp-tests (Files): Likewise.
20707         * modules/memmem-tests (Files): Likewise.
20708         * modules/memrchr-tests (Files): Likewise.
20709         * modules/mkdir-tests (Files): Likewise.
20710         * modules/mkfifo-tests (Files): Likewise.
20711         * modules/mkfifoat-tests (Files): Likewise.
20712         * modules/mknod-tests (Files): Likewise.
20713         * modules/nanosleep-tests (Files): Likewise.
20714         * modules/nl_langinfo-tests (Files): Likewise.
20715         * modules/obstack-printf-tests (Files): Likewise.
20716         * modules/open-tests (Files): Likewise.
20717         * modules/openat-tests (Files): Likewise.
20718         * modules/perror-tests (Files): Likewise.
20719         * modules/pipe2-tests (Files): Likewise.
20720         * modules/poll-tests (Files): Likewise.
20721         * modules/popen-tests (Files): Likewise.
20722         * modules/posix_spawn-tests (Files): Likewise.
20723         * modules/posix_spawnp-tests (Files): Likewise.
20724         * modules/pread-tests (Files): Likewise.
20725         * modules/printf-posix-tests (Files): Likewise.
20726         * modules/pty-tests (Files): Likewise.
20727         * modules/random_r-tests (Files): Likewise.
20728         * modules/rawmemchr-tests (Files): Likewise.
20729         * modules/readlink-tests (Files): Likewise.
20730         * modules/remove-tests (Files): Likewise.
20731         * modules/rename-tests (Files): Likewise.
20732         * modules/renameat-tests (Files): Likewise.
20733         * modules/rmdir-tests (Files): Likewise.
20734         * modules/round-tests (Files): Likewise.
20735         * modules/roundf-tests (Files): Likewise.
20736         * modules/roundl-tests (Files): Likewise.
20737         * modules/select-tests (Files): Likewise.
20738         * modules/setenv-tests (Files): Likewise.
20739         * modules/sigaction-tests (Files): Likewise.
20740         * modules/sleep-tests (Files): Likewise.
20741         * modules/snprintf-posix-tests (Files): Likewise.
20742         * modules/snprintf-tests (Files): Likewise.
20743         * modules/sprintf-posix-tests (Files): Likewise.
20744         * modules/stat-tests (Files): Likewise.
20745         * modules/strcasestr-tests (Files): Likewise.
20746         * modules/strchrnul-tests (Files): Likewise.
20747         * modules/strerror-tests (Files): Likewise.
20748         * modules/strsignal-tests (Files): Likewise.
20749         * modules/strstr-tests (Files): Likewise.
20750         * modules/strtod-tests (Files): Likewise.
20751         * modules/strverscmp-tests (Files): Likewise.
20752         * modules/symlink-tests (Files): Likewise.
20753         * modules/symlinkat-tests (Files): Likewise.
20754         * modules/times-tests (Files): Likewise.
20755         * modules/trunc-tests (Files): Likewise.
20756         * modules/truncf-tests (Files): Likewise.
20757         * modules/truncl-tests (Files): Likewise.
20758         * modules/tsearch-tests (Files): Likewise.
20759         * modules/uname-tests (Files): Likewise.
20760         * modules/unlink-tests (Files): Likewise.
20761         * modules/unsetenv-tests (Files): Likewise.
20762         * modules/usleep-tests (Files): Likewise.
20763         * modules/utimensat-tests (Files): Likewise.
20764         * modules/vasprintf-tests (Files): Likewise.
20765         * modules/vdprintf-posix-tests (Files): Likewise.
20766         * modules/vfprintf-posix-tests (Files): Likewise.
20767         * modules/vprintf-posix-tests (Files): Likewise.
20768         * modules/vsnprintf-posix-tests (Files): Likewise.
20769         * modules/vsnprintf-tests (Files): Likewise.
20770         * modules/vsprintf-posix-tests (Files): Likewise.
20771         * modules/wcrtomb-tests (Files): Likewise.
20772         * modules/wcsnrtombs-tests (Files): Likewise.
20773         * modules/wcsrtombs-tests (Files): Likewise.
20774         * modules/wcwidth-tests (Files): Likewise.
20775         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
20776         * tests/test-isinf.c (isinf): Likewise.
20777         * tests/test-isnan.c (isnan): Likewise.
20778         * tests/test-signbit.c (signbit): Likewise.
20779         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
20780         declaration, either as macro or with correct signature.
20781         (select): Ensure function under test is declared with correct
20782         signature in correct header.
20783         * tests/test-atexit.c (atexit): Likewise.
20784         * tests/test-btowc.c (btowc): Likewise.
20785         * tests/test-canonicalize-lgpl.c (realpath)
20786         (canonicalize_file_name): Likewise.
20787         * tests/test-ceilf1.c (ceilf): Likewise.
20788         * tests/test-ceill.c (ceill): Likewise.
20789         * tests/test-chown.c (chown): Likewise.
20790         * tests/test-dprintf-posix.c (dprintf): Likewise.
20791         * tests/test-dup2.c (dup2): Likewise.
20792         * tests/test-dup3.c (dup3): Likewise.
20793         * tests/test-duplocale.c (duplocale): Likewise.
20794         * tests/test-fchdir.c (fchdir): Likewise.
20795         * tests/test-fchownat.c (fchownat): Likewise.
20796         * tests/test-fcntl.c (fcntl): Likewise.
20797         * tests/test-fdopendir.c (fdopendir): Likewise.
20798         * tests/test-fflush.c (fflush): Likewise.
20799         * tests/test-flock.c (flock): Likewise.
20800         * tests/test-floorf1.c (floorf): Likewise.
20801         * tests/test-floorl.c (floorl): Likewise.
20802         * tests/test-fnmatch.c (fnmatch): Likewise.
20803         * tests/test-fopen.c (fopen): Likewise.
20804         * tests/test-fprintf-posix.c (fprintf): Likewise.
20805         * tests/test-freopen.c (freopen): Likewise.
20806         * tests/test-frexp.c (frexp): Likewise.
20807         * tests/test-frexpl.c (frexpl): Likewise.
20808         * tests/test-fseek.c (fseek): Likewise.
20809         * tests/test-fseeko.c (fseeko): Likewise.
20810         * tests/test-fstatat.c (fstatat): Likewise.
20811         * tests/test-fsync.c (fsync): Likewise.
20812         * tests/test-ftell.c (ftell): Likewise.
20813         * tests/test-ftello.c (ftello): Likewise.
20814         * tests/test-futimens.c (futimens): Likewise.
20815         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
20816         (gai_strerror): Likewise.
20817         * tests/test-getcwd.c (getcwd): Likewise.
20818         * tests/test-getdelim.c (getdelim): Likewise.
20819         * tests/test-getdtablesize.c (getdtablesize): Likewise.
20820         * tests/test-getgroups.c (getgroups): Likewise.
20821         * tests/test-gethostname.c (gethostname): Likewise.
20822         * tests/test-getline.c (getline): Likewise.
20823         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
20824         Likewise.
20825         * tests/test-gettimeofday.c (gettimeofday): Likewise.
20826         * tests/test-glob.c (glob, globfree): Likewise.
20827         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
20828         * tests/test-inet_ntop.c (inet_ntop): Likewise.
20829         * tests/test-inet_pton.c (inet_pton): Likewise.
20830         * tests/test-isblank.c (isblank): Likewise.
20831         * tests/test-lchown.c (lchown): Likewise.
20832         * tests/test-ldexpl.c (ldexpl): Likewise.
20833         * tests/test-link.c (link): Likewise.
20834         * tests/test-linkat.c (linkat): Likewise.
20835         * tests/test-lseek.c (lseek): Likewise.
20836         * tests/test-lstat.c (lstat): Likewise.
20837         * tests/test-mbrtowc.c (mbrtowc): Likewise.
20838         * tests/test-mbsinit.c (mbsinit): Likewise.
20839         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
20840         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
20841         * tests/test-memchr.c (memchr): Likewise.
20842         * tests/test-memcmp.c (memcmp): Likewise.
20843         * tests/test-memmem.c (memmem): Likewise.
20844         * tests/test-memrchr.c (memrchr): Likewise.
20845         * tests/test-mkdir.c (mkdir): Likewise.
20846         * tests/test-mkdirat.c (mkdirat): Likewise.
20847         * tests/test-mkfifo.c (mkfifo): Likewise.
20848         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
20849         * tests/test-mknod.c (mknod): Likewise.
20850         * tests/test-nanosleep.c (nanosleep): Likewise.
20851         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
20852         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
20853         Likewise.
20854         * tests/test-open.c (open): Likewise.
20855         * tests/test-openat.c (openat): Likewise.
20856         * tests/test-perror.c (perror): Likewise.
20857         * tests/test-pipe2.c (pipe2): Likewise.
20858         * tests/test-poll.c (poll): Likewise.
20859         * tests/test-popen.c (popen, pclose): Likewise.
20860         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
20861         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
20862         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
20863         (posix_spawn_file_actions_destroy)
20864         (posix_spawn_file_actions_addclose)
20865         (posix_spawn_file_actions_addopen)
20866         (posix_spawn_file_actions_adddup2): Likewise.
20867         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
20868         * tests/test-pread.c (pread): Likewise.
20869         * tests/test-printf-posix.c (printf): Likewise.
20870         * tests/test-pty.c (openpty, forkpty): Likewise.
20871         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
20872         (random_r): Likewise.
20873         * tests/test-rawmemchr.c (rawmemchr): Likewise.
20874         * tests/test-readlink.c (readlink): Likewise.
20875         * tests/test-remove.c (remove): Likewise.
20876         * tests/test-rename.c (rename): Likewise.
20877         * tests/test-renameat.c (renameat): Likewise.
20878         * tests/test-rmdir.c (rmdir): Likewise.
20879         * tests/test-round1.c (round): Likewise.
20880         * tests/test-roundf1.c (roundf): Likewise.
20881         * tests/test-roundl.c (roundl): Likewise.
20882         * tests/test-setenv.c (setenv): Likewise.
20883         * tests/test-sigaction.c (sigaction): Likewise.
20884         * tests/test-sleep.c (sleep): Likewise.
20885         * tests/test-snprintf.c (snprintf): Likewise.
20886         * tests/test-sprintf-posix.c (sprintf): Likewise.
20887         * tests/test-stat.c (stat): Likewise.
20888         * tests/test-stpncpy.c (stpncpy): Likewise.
20889         * tests/test-strcasestr.c (strcasestr): Likewise.
20890         * tests/test-strchrnul.c (strchrnul): Likewise.
20891         * tests/test-strerror.c (strerror): Likewise.
20892         * tests/test-strsignal.c (strsignal): Likewise.
20893         * tests/test-strstr.c (strstr): Likewise.
20894         * tests/test-strtod.c (strtod): Likewise.
20895         * tests/test-strverscmp.c (strverscmp): Likewise.
20896         * tests/test-symlink.c (symlink): Likewise.
20897         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
20898         * tests/test-times.c (times): Likewise.
20899         * tests/test-trunc1.c (trunc): Likewise.
20900         * tests/test-truncf1.c (truncf): Likewise.
20901         * tests/test-truncl.c (truncl): Likewise.
20902         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
20903         Likewise.
20904         * tests/test-uname.c (uname): Likewise.
20905         * tests/test-unlink.c (unlink): Likewise.
20906         * tests/test-unlinkat.c (unlinkat): Likewise.
20907         * tests/test-unsetenv.c (unsetenv): Likewise.
20908         * tests/test-usleep.c (usleep): Likewise.
20909         * tests/test-utimensat.c (utimensat): Likewise.
20910         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
20911         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
20912         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
20913         * tests/test-vprintf-posix.c (vprintf): Likewise.
20914         * tests/test-vsnprintf.c (vsnprintf): Likewise.
20915         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
20916         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20917         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20918         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20919         * tests/test-wcwidth.c (wcwidth): Likewise.
20920
20921         build: pull in conditional headers during GNULIB_POSIXCHECK
20922         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
20923         definitions from any conditionally-included headers.
20924         * lib/stdlib.in.h (includes): Likewise.
20925         * lib/unistd.in.h (includes): Likewise.
20926
20927 2009-12-24  Bruno Haible  <bruno@clisp.org>
20928
20929         * tests/test-argv-iter.c: Include header file being tested immediately
20930         after config.h.
20931         * tests/test-base64.c: Likewise.
20932         * tests/test-flock.c: Likewise.
20933         * tests/test-fsync.c: Likewise.
20934         * tests/test-getdate.c: Likewise.
20935         * tests/test-getndelim2.c: Likewise.
20936         * tests/test-isfinite.c: Likewise.
20937         * tests/test-isinf.c: Likewise.
20938         * tests/test-strerror.c: Likewise.
20939         * tests/test-strsignal.c: Likewise.
20940
20941 2009-12-23  Eric Blake  <ebb9@byu.net>
20942
20943         unistd: work around cygwin bug
20944         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
20945         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
20946         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20947
20948 2009-12-23  Bruno Haible  <bruno@clisp.org>
20949
20950         localename: More tests.
20951         * tests/test-localename.c (SIZEOF): New macro.
20952         (categories): New variable.
20953         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
20954         test_locale_name_default): Add test w.r.t. thread locale.
20955         (test_locale_name_thread): New function.
20956         (main): Invoke it.
20957
20958         localename: Make aware of thread locale.
20959         * lib/localename.h (gl_locale_name_thread): New declaration.
20960         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
20961         behaviour with respect to thread locale.
20962         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
20963         <langinfo.h>, glthread/lock.h.
20964         (SIZE_BITS): New macro.
20965         (string_hash): New function.
20966         (struct hash_node): New type.
20967         (HASH_TABLE_SIZE): New macro.
20968         (struniq_hash_table, struniq_lock): New variables.
20969         (struniq): New function.
20970         (gl_locale_name_thread): New function.
20971         (gl_locale_name): Invoke it.
20972         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
20973         * modules/localename (Depends-on): Add lock.
20974         Reported by Mike Gran <spk121@yahoo.com>.
20975
20976 2009-12-23  Eric Blake  <ebb9@byu.net>
20977
20978         va-args: new module
20979         * modules/va-args: New file.
20980         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
20981         * MODULES.html.sh (Core language properties): Mention it.
20982
20983         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
20984         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
20985         named alias for __attribute__((__unused__)).
20986         * lib/chown.c: Update client.
20987         * lib/fchmodat.c: Likewise.
20988         * lib/fts.c: Likewise.
20989         * lib/getdate.y: Likewise.
20990         * lib/getgroups.c: Likewise.
20991         * lib/getopt.c: Likewise.
20992         * lib/getugroups.c: Likewise.
20993         * lib/mkdir.c: Likewise.
20994         * lib/mkfifo.c: Likewise.
20995         * lib/mkfifoat.c: Likewise.
20996         * lib/mknod.c: Likewise.
20997         * lib/mknodat.c: Likewise.
20998         * lib/readlink.c: Likewise.
20999         * lib/se-context.in.h: Likewise.
21000         * lib/se-selinux.in.h: Likewise.
21001         * lib/sockets.c: Likewise.
21002         * lib/symlink.c: Likewise.
21003         * lib/symlinkat.c: Likewise.
21004         * lib/unicodeio.c: Likewise.
21005         * lib/unistr.h: Likewise.
21006         * tests/test-areadlink.c: Likewise.
21007         * tests/test-areadlinkat.c: Likewise.
21008         * tests/test-filenamecat.c: Likewise.
21009         * tests/test-fseeko.c: Likewise.
21010         * tests/test-ftello.c: Likewise.
21011         * tests/test-getdate.c: Likewise.
21012         * tests/test-getgroups.c: Likewise.
21013         * tests/test-gethostname.c: Likewise.
21014         * tests/test-quotearg.c: Likewise.
21015         * tests/test-version-etc.c: Likewise.
21016         * tests/test-xalloc-die.c: Likewise.
21017         * tests/test-xfprintf-posix.c: Likewise.
21018         * tests/test-xprintf-posix.c: Likewise.
21019         * tests/test-xvasprintf.c: Likewise.
21020
21021         tests: avoid compiler warnings
21022         * tests/test-fcntl.c (main): Delete unused parameters.
21023         * tests/test-freopen-safer.c (main): Likewise.
21024         * tests/test-xalloc-die.c (main): Mark unused parameters.
21025         * tests/test-fseeko.c (main): Likewise.
21026         * tests/test-ftello.c (main): Likewise.
21027         * tests/test-nanosleep.c (main): Avoid declaration warning.
21028         * tests/test-sleep.c (main): Likewise.
21029         * tests/test-unsetenv.c (main): Silence warning about string
21030         literal.
21031         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21032
21033 2009-12-23  Bruno Haible  <bruno@clisp.org>
21034
21035         * tests/test-localename.c (test_locale_name): New function, extracted
21036         from main. Also test mixed situations.
21037         (test_locale_name_posix, test_locale_name_environ,
21038         test_locale_name_default): New functions.
21039         (main): Invoke them all.
21040         * modules/localename-tests (configure.ac): Test for newlocale.
21041
21042 2009-12-23  Bruno Haible  <bruno@clisp.org>
21043
21044         unistd: Ensure getcwd gets declared before being overridden.
21045         * lib/unistd.in.h: Conditionally include <io.h>.
21046
21047 2009-12-22  Bruno Haible  <bruno@clisp.org>
21048
21049         wchar: Diagnose broken combination of glibc and gcc versions and flags.
21050         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
21051         (gl_WCHAR_H): Invoke it.
21052         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
21053         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
21054         Reported by Karl Berry <karl@freefriends.org>.
21055
21056 2009-12-22  Eric Blake  <ebb9@byu.net>
21057
21058         math, unistd: avoid redundant includes
21059         * lib/math.in.h (isnan): No need to re-include <math.h>.
21060         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
21061
21062         getsubopt: work around cygwin bug
21063         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
21064         avoid conflicting with system getsubopt.
21065         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
21066         bug.
21067
21068         getopt: synchronize from glibc
21069         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
21070         parameter order.  Adjust all callers.
21071         (_getopt_internal_r, main): Adjust quoting in error messages.
21072         Drop considerations for outdated POSIX 1003.2 error message.
21073         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
21074         callers.
21075         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
21076
21077         test-getopt: test stderr behavior
21078         * modules/getopt-posix-tests (Depends-on): Add dup2.
21079         * tests/test-getopt.c (ASSERT): Avoid stderr.
21080         (main): Move stderr to a temporary file.
21081         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
21082         Instead, add parameter to inform caller if output occurred.
21083         (test_getopt): Adjust all existing tests to expect silence, and
21084         add new tests of leading ":".
21085         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21086         glibc shortcomings with leading "-:" or "+:" in optstring.
21087         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21088         Likewise.
21089         * doc/posix-functions/getopt.texi (getopt): Likewise.
21090
21091         test-getopt: enhance test
21092         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
21093         supports optind=0.
21094         * tests/test-getopt.c (OPTIND_MIN): Move...
21095         * tests/test-getopt.h (OPTIND_MIN): ...here.
21096         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
21097         Require that optind=0 works, since modern BSD supports it in
21098         addition to optreset, and since coreutils expects it.
21099         (test_getopt_long_only): New test.
21100         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21101         glibc shortcomings with 'W;', and enforcement of optind=0.
21102         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21103         Likewise.
21104
21105 2009-12-21  Bruno Haible  <bruno@clisp.org>
21106
21107         localename: Improvements for MacOS X and Cygwin.
21108         * lib/localename.h (gl_locale_name_environ): New declaration.
21109         * lib/localename.c (gl_locale_name_environ): New function, extracted from
21110         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
21111         (gl_locale_name_posix): Invoke it.
21112         (gl_locale_name_default): Add comments. Use Windows native API also on
21113         Cygwin.
21114
21115 2009-12-21  Bruno Haible  <bruno@clisp.org>
21116
21117         Update list of Win32 locale ids.
21118         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
21119         (LANG_SAMI): Renamed from LANG_SAAMI.
21120         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
21121         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
21122         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
21123         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
21124         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
21125         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
21126         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
21127         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
21128         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
21129         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
21130         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
21131         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
21132         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
21133         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
21134         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
21135         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
21136         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
21137         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
21138         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
21139         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
21140         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
21141         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
21142         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
21143         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
21144         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
21145         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
21146         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
21147         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
21148         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
21149         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
21150         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
21151         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
21152         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
21153         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
21154         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
21155         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
21156         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
21157         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
21158         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
21159         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
21160         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
21161         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
21162         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
21163         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
21164         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
21165         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
21166         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
21167         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
21168         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
21169         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
21170         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
21171         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
21172         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
21173         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
21174         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
21175         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
21176         Add more languages and countries for Sami, Sorbian. Add more countries
21177         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
21178         for Pashto. Change country for Syriac, Tswana.
21179
21180 2009-12-21  Eric Blake  <ebb9@byu.net>
21181
21182         test-utimens: avoid spurious failure
21183         * tests/test-chown.h (nap): Factor...
21184         * tests/nap.h: ...into new file.
21185         * tests/test-lchown.h (nap): Avoid duplication.
21186         * tests/test-utimens-common.h (nap): Use shared implementation,
21187         necessary on file systems with 1-second resolution.
21188         * modules/chown-tests (Files): Include new file.
21189         * modules/fdutimensat-tests (Files): Likewise.
21190         * modules/futimens-tests (Files): Likewise.
21191         * modules/lchown-tests (Files): Likewise.
21192         * modules/openat-tests (Files): Likewise.
21193         * modules/utimens-tests (Files): Likewise.
21194         * modules/utimensat-tests (Files): Likewise.
21195
21196 2009-12-19  Eric Blake  <ebb9@byu.net>
21197
21198         futimens, utimensat: work around Linux bug
21199         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
21200         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21201         * lib/utimensat.c (rpl_utimensat): Work around it.
21202         * lib/futimens.c (rpl_futimens): Adjust comment.
21203
21204         utimens: work around Linux ctime bug
21205         * lib/utimens.c (detect_ctime_bug): New helper function.
21206         (update_timespec): Differentiate between workaround needed for
21207         this bug vs. what is needed for systems that lack utimensat.
21208         (fdutimens, lutimens): Work around bug.
21209
21210         utimens: check for ctime update
21211         * tests/test-utimens-common.h (check_ctime): Define.
21212         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
21213         * tests/test-futimens.h (test_futimens): Likewise.
21214         * tests/test-lutimens.h (test_lutimens): Likewise.
21215         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21216         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21217
21218 2009-12-19  Bruno Haible  <bruno@clisp.org>
21219
21220         dprintf-posix: Check against memory leak fixed on 2009-12-15.
21221         * tests/test-dprintf-posix2.sh: New file.
21222         * tests/test-dprintf-posix2.c: New file.
21223         * modules/dprintf-posix-tests (Files): Add them.
21224         (configure.ac): Check for getrlimit and setrlimit.
21225         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21226
21227 2009-12-19  Bruno Haible  <bruno@clisp.org>
21228
21229         fprintf-posix: Check against memory leak fixed on 2009-12-15.
21230         * tests/test-fprintf-posix3.sh: New file.
21231         * tests/test-fprintf-posix3.c: New file.
21232         * modules/fprintf-posix-tests (Files): Add them.
21233         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21234
21235 2009-12-19  Eric Blake  <ebb9@byu.net>
21236
21237         dirfd: fix prototype
21238         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
21239         * lib/dirfd.c (dirfd): Likewise.
21240
21241         canonicalize: reduce memory usage
21242         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
21243         allocation to size.
21244         Reported by Solar Designer <solar@openwall.com>.
21245
21246 2009-12-19  Bruno Haible  <bruno@clisp.org>
21247
21248         New module attribute 'Applicability'.
21249         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
21250         * gnulib-tool: New option --extract-applicability.
21251         (func_usage): Document it.
21252         (sed_extract_prog): Recognize it.
21253         (func_get_applicability): New function.
21254         (func_import): Generalize handling of 'link-warning' module.
21255         * modules/link-warning (Applicability): New section.
21256         * modules/arg-nonnull (Applicability): New section.
21257         Repoted by Simon Josefsson <simon@josefsson.org>.
21258
21259 2009-12-19  Bruno Haible  <bruno@clisp.org>
21260
21261         fflush: tweak
21262         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
21263         * lib/fseeko.c (rpl_fseeko): Likewise.
21264
21265 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
21266
21267         * lib/gl_list.h: Fix typo in comment.
21268
21269 2009-12-16  Eric Blake  <ebb9@byu.net>
21270
21271         fcntl: use to simplify other modules
21272         * modules/cloexec (Depends-on): Add fcntl.
21273         * modules/fchdir (Depends-on): Likewise.
21274         * modules/fd-safer-flag (Depends-on): Likewise.
21275         * modules/unistd-safer (Depends-on): Likewise.
21276         * modules/dup3 (configure.ac): Set module indicator.
21277         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
21278         missing.
21279         * lib/fchdir.c (_gl_register_dup): Fix comment.
21280         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
21281         * lib/dup-safer.c (dup_safer): Likewise.
21282         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
21283         * lib/dup3.c (dup3): Likewise.
21284         * tests/test-fchdir.c (main): Enhance test.
21285         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
21286
21287         fcntl: port portions of fcntl to mingw
21288         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
21289         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
21290         replacement for mingw.
21291         * modules/fcntl (Description): Update.
21292         (Depends-on): Add dup2.
21293         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
21294         * modules/fcntl-h (Makefile.am): Substitute it.
21295         * lib/fcntl.in.h (fcntl): Update declaration.
21296         (F_DUPFD, F_GETFD): New macros, when needed.
21297         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21298         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
21299         * tests/test-fcntl.c (check_flags, main): Enhance test for items
21300         we now guarantee.
21301
21302         fcntl: work around cygwin bug in F_DUPFD
21303         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
21304         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
21305         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
21306         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
21307         * doc/posix-functions/fcntl.texi (fcntl): Document it.
21308
21309         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
21310         * modules/fcntl (Files): List new files.
21311         (configure.ac): Run a test.
21312         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
21313         * lib/fcntl.c (rpl_fcntl): Likewise.
21314         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
21315         (gl_FCNTL_H): Always replace fcntl.h.
21316         * modules/fcntl-h (Makefile.am): Substitute witnesses.
21317         * lib/fcntl.in.h (fcntl): Declare replacement.
21318         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
21319         needed, plus a witness.
21320         * doc/posix-functions/fcntl.texi (fcntl): Document this.
21321         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21322         * tests/test-fcntl.c: New file.
21323         * modules/fcntl-tests: Likewise.
21324
21325         binary-io: avoid potential compilation warning
21326         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
21327         directives.
21328
21329         fflush: avoid compilation error on NetBSD
21330         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
21331         between off_t and fpos_t, since the latter is sometimes a struct.
21332         * lib/fseeko.c (rpl_fseeko): Likewise.
21333         Reported by Alexander Nasonov <alnsn@yandex.ru>.
21334
21335 2009-12-15  Eric Blake  <ebb9@byu.net>
21336
21337         fcntl-h, stdio, sys_ioctl: fix declarations
21338         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
21339         function must not take arguments.
21340         * lib/sys_ioctl.in.h (ioctl): Likewise.
21341         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
21342         (open): Add a link warning.
21343
21344 2009-12-15  Jim Meyering  <meyering@redhat.com>
21345
21346         areadlink, areadlink-with-size: relax license to LGPLv2+
21347         * modules/areadlink (License): Relax to LGPLv2+.
21348         * modules/areadlink-with-size (License): Likewise.
21349
21350 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
21351             Bruno Haible  <bruno@clisp.org>
21352
21353         *printf: Fix memory leak.
21354         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
21355         * lib/vfprintf.c (vfprintf): Likewise.
21356         * lib/dprintf.c (dprintf): Likewise.
21357         * lib/vdprintf.c (vdprintf): Likewise.
21358
21359 2009-12-14  Eric Blake  <ebb9@byu.net>
21360
21361         accept4: adjust module dependencies
21362         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
21363
21364         utimens: one more try at avoiding compiler warning
21365         * lib/utimens.c (lutimens): Lower scope of result.
21366
21367 2009-12-13  Bruno Haible  <bruno@clisp.org>
21368
21369         Move the malloc checking from module 'list' to new module 'xlist'.
21370         * modules/xlist: New file.
21371         * lib/gl_xlist.h: New file.
21372         * lib/gl_xlist.c: New file.
21373         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
21374         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
21375         gl_list_add_last, gl_list_add_before, gl_list_add_after,
21376         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
21377         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
21378         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
21379         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
21380         gl_sortedlist_nx_add): New declarations.
21381         (struct gl_list_implementation): Rename and change methods accordingly.
21382         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
21383         (gl_list_nx_create): Renamed from gl_list_create.
21384         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21385         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21386         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21387         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21388         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21389         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21390         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21391         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21392         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
21393         gl_list_create_empty.
21394         (gl_list_nx_create): Renamed from gl_list_create.
21395         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21396         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21397         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21398         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21399         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21400         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21401         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21402         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21403         * lib/gl_array_list.c: Don't include xalloc.h.
21404         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
21405         NULL upon out-of-memory.
21406         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
21407         out-of-memory.
21408         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
21409         Change return type to 'int'.
21410         (gl_array_nx_set_at): Renamed from gl_array_set_at.
21411         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21412         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
21413         upon out-of-memory.
21414         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
21415         upon out-of-memory.
21416         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
21417         upon out-of-memory.
21418         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
21419         upon out-of-memory.
21420         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
21421         out-of-memory.
21422         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
21423         Update.
21424         (gl_array_list_implementation): Update.
21425         * lib/gl_carray_list.c: Don't include xalloc.h.
21426         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
21427         Return NULL upon out-of-memory.
21428         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
21429         out-of-memory.
21430         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
21431         Change return type to 'int'.
21432         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
21433         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21434         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
21435         upon out-of-memory.
21436         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
21437         upon out-of-memory.
21438         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
21439         out-of-memory.
21440         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
21441         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
21442         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
21443         Update.
21444         (gl_carray_list_implementation): Update.
21445         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
21446         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
21447         gl_linked_create_empty. Return NULL upon out-of-memory.
21448         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
21449         out-of-memory.
21450         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
21451         Change return type to 'int'. Return -1 upon out-of-memory.
21452         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
21453         out-of-memory.
21454         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
21455         upon out-of-memory.
21456         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
21457         upon out-of-memory.
21458         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
21459         NULL upon out-of-memory.
21460         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
21461         upon out-of-memory.
21462         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
21463         out-of-memory.
21464         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
21465         Update.
21466         * lib/gl_linked_list.c: Don't include xalloc.h.
21467         (gl_linked_list_implementation): Update.
21468         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
21469         (add_to_bucket): Change return type to 'int'.
21470         (gl_linkedhash_list_implementation): Update.
21471         * lib/gl_anytree_list1.h (free_subtree): New function.
21472         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
21473         gl_tree_create_empty. Return NULL upon out-of-memory.
21474         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
21475         Change return type to 'int'. Return -1 upon out-of-memory.
21476         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
21477         out-of-memory.
21478         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
21479         (gl_tree_remove_node): New function, moved here from
21480         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
21481         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
21482         Update.
21483         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
21484         malloc, not xmalloc. Return NULL upon out-of-memory.
21485         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21486         out-of-memory.
21487         (gl_tree_remove_node_from_tree): New function, extracted from
21488         gl_tree_remove_node.
21489         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21490         upon out-of-memory.
21491         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21492         out-of-memory.
21493         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21494         upon out-of-memory.
21495         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21496         upon out-of-memory.
21497         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21498         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
21499         not xmalloc. Return NULL upon out-of-memory.
21500         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21501         out-of-memory.
21502         (gl_tree_remove_node_from_tree): New function, extracted from
21503         gl_tree_remove_node.
21504         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21505         upon out-of-memory.
21506         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21507         out-of-memory.
21508         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21509         upon out-of-memory.
21510         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21511         upon out-of-memory.
21512         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21513         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
21514         gl_anytree_list1.h before gl_anyavltree_list2.h.
21515         (gl_avltree_list_implementation): Update.
21516         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
21517         gl_anytree_list1.h before gl_anyavltree_list2.h.
21518         (gl_rbtree_list_implementation): Update.
21519         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
21520         Change return type to 'int'. Return -1 upon out-of-memory. Use
21521         __builtin_expect.
21522         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
21523         (gl_avltreehash_list_implementation): Update.
21524         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
21525         (gl_rbtreehash_list_implementation): Update.
21526         * modules/array-list (Depends-on): Remove xalloc.
21527         * modules/carray-list (Depends-on): Likewise.
21528         * modules/linked-list (Depends-on): Likewise.
21529         * modules/linkedhash-list (Depends-on): Likewise.
21530         * modules/avltree-list (Depends-on): Likewise.
21531         * modules/rbtree-list (Depends-on): Likewise.
21532         * modules/avltreehash-list (Depends-on): Likewise.
21533         * modules/rbtreehash-list (Depends-on): Likewise.
21534
21535         * modules/xsublist: New file.
21536         * lib/gl_xsublist.h: New file.
21537         * lib/gl_xsublist.c: New file.
21538         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
21539         (gl_sublist_nx_create): New declaration.
21540         * lib/gl_sublist.c: Don't include xalloc.h.
21541         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
21542         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
21543         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
21544         Change return type to 'int'. Return -1 upon out-of-memory.
21545         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
21546         upon out-of-memory.
21547         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
21548         NULL upon out-of-memory.
21549         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
21550         upon out-of-memory.
21551         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
21552         NULL upon out-of-memory.
21553         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
21554         NULL upon out-of-memory.
21555         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
21556         upon out-of-memory.
21557         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
21558         (gl_sublist_list_implementation): Update.
21559         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
21560         upon out-of-memory.
21561         * modules/sublist (Depends-on): Remove xalloc.
21562
21563         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
21564         * tests/test-carray_list.c: Likewise.
21565         * tests/test-linked_list.c: Likewise.
21566         * tests/test-linkedhash_list.c: Likewise.
21567         * tests/test-avltree_list.c: Likewise.
21568         * tests/test-rbtree_list.c: Likewise.
21569         * tests/test-avltreehash_list.c: Likewise.
21570         * tests/test-rbtreehash_list.c: Likewise.
21571         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
21572         * modules/carray-list-tests (Makefile.am): Likewise.
21573         * modules/linked-list-tests (Makefile.am): Likewise.
21574         * modules/linkedhash-list-tests (Makefile.am): Likewise.
21575         * modules/avltree-list-tests (Makefile.am): Likewise.
21576         * modules/rbtree-list-tests (Makefile.am): Likewise.
21577         * modules/avltreehash-list-tests (Makefile.am): Likewise.
21578         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
21579
21580         * NEWS: Mention the changes.
21581
21582         * lib/clean-temp.c: Include gl_xlist.h.
21583         * modules/clean-temp (Depends-on): Add xlist.
21584
21585         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
21586         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
21587
21588         * tests/test-array_oset.c: Include gl_xlist.h.
21589         * modules/array-oset-tests (Depends-on): Add xlist.
21590
21591         Reported by José E. Marchesi <jemarch@gnu.org>.
21592
21593 2009-12-13  Bruno Haible  <bruno@clisp.org>
21594
21595         Move the malloc checking from module 'oset' to new module 'xoset'.
21596         * modules/xoset: New file.
21597         * lib/gl_xoset.h: New file.
21598         * lib/gl_xoset.c: New file.
21599         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
21600         declarations.
21601         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
21602         (struct gl_oset_implementation): Rename and change methods accordingly.
21603         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
21604         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21605         'int'. Mark as __warn_unused_result__.
21606         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
21607         gl_oset_create_empty.
21608         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21609         'int'.
21610         * lib/gl_array_oset.c: Don't include xalloc.h.
21611         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
21612         malloc, not xmalloc.
21613         (grow): Change return type to 'int'. Don't call xalloc_die.
21614         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
21615         to 'int'.
21616         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
21617         'int'.
21618         (gl_array_oset_implementation): Update.
21619         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
21620         gl_tree_create_empty.
21621         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
21622         'int'.
21623         * lib/gl_avltree_oset.c: Don't include xalloc.h.
21624         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21625         xmalloc.
21626         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21627         not xmalloc.
21628         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21629         xmalloc.
21630         (gl_avltree_oset_implementation): Update.
21631         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
21632         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21633         xmalloc.
21634         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21635         not xmalloc.
21636         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21637         xmalloc.
21638         (gl_rbtree_oset_implementation): Update.
21639         * modules/array-oset (Depends-on): Remove xalloc.
21640         * modules/avltree-oset (Depends-on): Likewise.
21641         * modules/rbtree-oset (Depends-on): Likewise.
21642         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
21643         * tests/test-avltree_oset.c: Likewise.
21644         * tests/test-rbtree_oset.c: Likewise.
21645         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21646         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
21647         * modules/rbtree-oset-tests (Makefile.am): Likewise.
21648         * NEWS: Mention the change.
21649
21650 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
21651
21652         maint.mk: allow a project to override release-prep commands
21653         * top/maint.mk (alpha, beta, stable): Move release-preparatory
21654         commands into a new rule.
21655         (release-prep): New rule.
21656         (release-prep-hook): New overridable variable.
21657
21658 2009-12-13  Bruno Haible  <bruno@clisp.org>
21659
21660         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
21661
21662 2009-12-13  Jim Meyering  <meyering@redhat.com>
21663
21664         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
21665         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
21666
21667 2009-12-12  Bruno Haible  <bruno@clisp.org>
21668
21669         duplocale: Tweak.
21670         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
21671
21672 2009-12-12  Karl Berry  <karl@gnu.org>
21673
21674         * config/srclist.txt (strtoll.c): tab changes, no more sync.
21675
21676 2009-12-12  Bruno Haible  <bruno@clisp.org>
21677
21678         * m4/po.m4: Undo incorrect untabification.
21679
21680 2009-12-12  Bruno Haible  <bruno@clisp.org>
21681
21682         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
21683         * modules/c-strtod (Depends-on): Add locale.
21684         * modules/c-strtold (Depends-on): Likewise.
21685
21686 2009-12-12  Bruno Haible  <bruno@clisp.org>
21687
21688         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
21689
21690 2009-12-11  Eric Blake  <ebb9@byu.net>
21691
21692         setenv: relax requirement in light of POSIX ruling
21693         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
21694         not NULL.
21695         * tests/test-setenv.c (main): Relax test.
21696         * tests/test-unsetenv.c (main): Likewise.
21697         * doc/posix-functions/setenv.texi (setenv): Document this.
21698         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21699
21700 2009-12-11  Bruno Haible  <bruno@clisp.org>
21701
21702         New module 'fd-safer-flag'.
21703         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
21704         * lib/dup-safer.c (dup_safer_flag): Remove function.
21705         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
21706         * lib/fd-safer.c (fd_safer_flag): Remove function.
21707         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
21708         * modules/cloexec (configure.ac): Drop indicator macro.
21709         * modules/fd-safer-flag: New file.
21710         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
21711         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
21712         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
21713
21714 2009-12-11  Bruno Haible  <bruno@clisp.org>
21715
21716         Tests for module 'nl_langinfo'.
21717         * modules/nl_langinfo-tests: New file.
21718         * tests/test-nl_langinfo.sh: New file.
21719         * tests/test-nl_langinfo.c: New file.
21720
21721         New module 'nl_langinfo'.
21722         * lib/nl_langinfo.c: New file.
21723         * m4/nl_langinfo.m4: New file.
21724         * modules/nl_langinfo: New file.
21725         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
21726
21727 2009-12-11  Bruno Haible  <bruno@clisp.org>
21728
21729         Tests for module 'langinfo'.
21730         * modules/langinfo-tests: New file.
21731         * tests/test-langinfo.c: New file.
21732
21733         New module 'langinfo'.
21734         * lib/langinfo.in.h: New file.
21735         * m4/langinfo_h.m4: New file.
21736         * modules/langinfo: New file.
21737         * doc/posix-headers/langinfo.texi: Mention the new module.
21738
21739 2009-12-11  Bruno Haible  <bruno@clisp.org>
21740
21741         * lib/config.charset: Untabify.
21742
21743 2009-12-11  Bruno Haible  <bruno@clisp.org>
21744
21745         * modules/unistd-safer (configure.ac): Drop indicator macro.
21746
21747 2009-12-11  Bruno Haible  <bruno@clisp.org>
21748
21749         Move pipe2-safer code to its own file.
21750         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
21751         * lib/pipe-safer.c (pipe2_safer): Remove function.
21752         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
21753         (Makefile.am): Add it to lib_SOURCES.
21754
21755 2009-12-10  Bruno Haible  <bruno@clisp.org>
21756
21757         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
21758
21759 2009-12-10  Bruno Haible  <bruno@clisp.org>
21760
21761         Declare which arguments expect non-NULL values, for GCC and clang.
21762         * build-aux/arg-nonnull.h: New file.
21763         * modules/arg-nonnull: New file.
21764         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
21765         (inet_ntop, inet_pton): Use it.
21766         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
21767         (closedir, dirfd, opendir, scandir, alphasort): Use it.
21768         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
21769         (open, openat): Use it.
21770         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
21771         (fnmatch): Use it.
21772         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
21773         (getopt, getopt_long, getopt_long_only): Use it.
21774         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
21775         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
21776         Use it.
21777         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
21778         (iconv_open): Use it.
21779         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
21780         (strtoimax, strtoumax): Use it.
21781         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
21782         (duplocale): Use it.
21783         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
21784         (frexp, frexpl): Use it.
21785         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
21786         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
21787         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
21788         (tsearch, tfind, tdelete, twalk): Use it.
21789         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
21790         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21791         sigpending): Use it.
21792         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
21793         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21794         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21795         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21796         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21797         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21798         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21799         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21800         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21801         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21802         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21803         Use it.
21804         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
21805         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
21806         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
21807         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
21808         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
21809         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
21810         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
21811         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
21812         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
21813         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
21814         strtoull, unsetenv): Use it.
21815         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
21816         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21817         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21818         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21819         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21820         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
21821         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
21822         (strcasecmp, strncasecmp): Use it.
21823         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
21824         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
21825         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
21826         rpl_setsockopt): Use it.
21827         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
21828         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
21829         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
21830         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
21831         (gettimeofday): Use it.
21832         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
21833         (times): Use it.
21834         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
21835         (uname): Use it.
21836         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
21837         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
21838         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
21839         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
21840         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
21841         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
21842         unlinkat, write): Use it.
21843         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
21844         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
21845         * lib/argv-iter.h: Include arg-nonnull.h.
21846         (_ATTRIBUTE_NONNULL_): Remove macro.
21847         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
21848         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
21849         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
21850         optimization.
21851         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
21852         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
21853         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
21854         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
21855         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
21856         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
21857         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
21858         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
21859         * modules/arpa_inet (Depends-on): Add arg-nonnull.
21860         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
21861         * modules/dirent (Depends-on): Add arg-nonnull.
21862         (Makefile.am): Insert arg-nonnull.h into dirent.h.
21863         * modules/fcntl-h (Depends-on): Add arg-nonnull.
21864         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
21865         * modules/fnmatch (Depends-on): Add arg-nonnull.
21866         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
21867         * modules/getopt-posix (Depends-on): Add arg-nonnull.
21868         (Makefile.am): Insert arg-nonnull.h into getopt.h.
21869         * modules/glob (Depends-on): Add arg-nonnull.
21870         (Makefile.am): Insert arg-nonnull.h into glob.h.
21871         * modules/iconv_open (Depends-on): Add arg-nonnull.
21872         (Makefile.am): Insert arg-nonnull.h into iconv.h.
21873         * modules/inttypes (Depends-on): Add arg-nonnull.
21874         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
21875         * modules/locale (Depends-on): Add arg-nonnull.
21876         (Makefile.am): Insert arg-nonnull.h into locale.h.
21877         * modules/math (Depends-on): Add arg-nonnull.
21878         (Makefile.am): Insert arg-nonnull.h into math.h.
21879         * modules/netdb (Depends-on): Add arg-nonnull.
21880         (Makefile.am): Insert arg-nonnull.h into netdb.h.
21881         * modules/search (Depends-on): Add arg-nonnull.
21882         (Makefile.am): Insert arg-nonnull.h into search.h.
21883         * modules/signal (Depends-on): Add arg-nonnull.
21884         (Makefile.am): Insert arg-nonnull.h into signal.h.
21885         * modules/spawn (Depends-on): Add arg-nonnull.
21886         (Makefile.am): Insert arg-nonnull.h into spawn.h.
21887         * modules/stdio (Depends-on): Add arg-nonnull.
21888         (Makefile.am): Insert arg-nonnull.h into stdio.h.
21889         * modules/stdlib (Depends-on): Add arg-nonnull.
21890         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
21891         * modules/string (Depends-on): Add arg-nonnull.
21892         (Makefile.am): Insert arg-nonnull.h into string.h.
21893         * modules/strings (Depends-on): Add arg-nonnull.
21894         (Makefile.am): Insert arg-nonnull.h into strings.h.
21895         * modules/sys_socket (Depends-on): Add arg-nonnull.
21896         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
21897         * modules/sys_stat (Depends-on): Add arg-nonnull.
21898         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
21899         * modules/sys_time (Depends-on): Add arg-nonnull.
21900         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
21901         * modules/sys_times (Depends-on): Add arg-nonnull.
21902         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
21903         * modules/sys_utsname (Depends-on): Add arg-nonnull.
21904         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
21905         * modules/time (Depends-on): Add arg-nonnull.
21906         (Makefile.am): Insert arg-nonnull.h into time.h.
21907         * modules/unistd (Depends-on): Add arg-nonnull.
21908         (Makefile.am): Insert arg-nonnull.h into unistd.h.
21909         * modules/wchar (Depends-on): Add arg-nonnull.
21910         (Makefile.am): Insert arg-nonnull.h into wchar.h.
21911         * modules/argv-iter (Depends-on): Add arg-nonnull.
21912         * tests/test-canonicalize.c (null_ptr): New function.
21913         (main): Use it.
21914         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
21915         (main): Use it.
21916         * tests/test-memmem.c (null_ptr): New function.
21917         (main): Use it.
21918         Reported by Jim Meyering.
21919
21920 2009-12-10  Bruno Haible  <bruno@clisp.org>
21921
21922         Use spaces for indentation, not tabs.
21923         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21924         * m4/*.m4: Untabify.
21925         * build-aux/*.h: Untabify.
21926         * tests/**/*.[hc]: Untabify.
21927         * README: New section "Indent with spaces, not TABs", based on
21928         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
21929         * NEWS: Mention the change.
21930
21931 2009-12-10  Bruno Haible  <bruno@clisp.org>
21932
21933         pty test: Fix link error.
21934         * modules/pty-tests (Makefile.am): Add the default LDADD value to
21935         test_pty_LDADD.
21936
21937 2009-12-07  Simon Josefsson  <simon@josefsson.org>
21938
21939         * modules/pty: New file.
21940         * modules/pty-tests: New file.
21941         * m4/pty.m4: New file.
21942         * tests/test-pty.c: New file.
21943         * doc/glibc-headers/pty.texi: Modified.
21944         * doc/glibc-functions/forkpty.texi: Modified.
21945         * doc/glibc-functions/openpty.texi: Modified.
21946
21947 2009-12-10  Bruno Haible  <bruno@clisp.org>
21948
21949         Avoid syntax error in C++ mode.
21950         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
21951
21952 2009-12-10  Bruno Haible  <bruno@clisp.org>
21953
21954         Use sed with option -e.
21955         * gnulib-tool (func_version, func_emit_copyright_notice,
21956         func_emit_initmacro_end, func_import, func_create_testdir): Pass
21957         option -e to sed.
21958         * modules/link-warning (Makefile.am): Likewise.
21959
21960 2009-12-10  Jim Meyering  <meyering@redhat.com>
21961
21962         mgetgroups: do not write bytes beyond end of malloc'd buffer
21963         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
21964         username, we call getgroups with a one-element-shorter buffer,
21965         but still told it the length was original, max_n_groups.
21966
21967 2009-12-09  Eric Blake  <ebb9@byu.net>
21968
21969         cloexec: relax license
21970         * modules/cloexec (Maintainer): Add myself.
21971         (License): Use LGPL, not GPL.
21972
21973         link-warning: optimize generation
21974         * modules/link-warning (Makefile.am): Reduce process usage.
21975
21976 2009-12-09  Bruno Haible  <bruno@clisp.org>
21977
21978         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
21979         workaround was added on 2009-11-17.
21980
21981 2009-12-09  Jim Meyering  <meyering@redhat.com>
21982             Bruno Haible  <bruno@clisp.org>
21983
21984         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
21985         * modules/link-warning (Makefile.am): Make the comment-removing sed
21986         command more robust in the face of bootstrap-prepended comment lines.
21987
21988 2009-12-09  Bruno Haible  <bruno@clisp.org>
21989
21990         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
21991         most one group.
21992
21993 2009-12-09  Simon Josefsson <simon@josefsson.org>
21994             Bruno Haible  <bruno@clisp.org>
21995
21996         * build-aux/link-warning.h: Add copyright notice.
21997         * modules/link-warning (Makefile.am): Generate link-warning.h from
21998         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
21999         * NEWS: Mention change in link-warning module.
22000         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
22001         * modules/dirent (Makefile.am): Add dependency to dirent.h.
22002         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
22003         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
22004         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
22005         * modules/math (Makefile.am): Add dependency to math.h.
22006         * modules/search (Makefile.am): Add dependency to search.h.
22007         * modules/signal (Makefile.am): Add dependency to signal.h.
22008         * modules/spawn (Makefile.am): Add dependency to spawn.h.
22009         * modules/stdio (Makefile.am): Add dependency to stdio.h.
22010         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
22011         * modules/string (Makefile.am): Add dependency to string.h.
22012         * modules/strings (Makefile.am): Add dependency to strings.h.
22013         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
22014         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
22015         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
22016         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
22017         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
22018         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
22019         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
22020         * modules/unistd (Makefile.am): Add dependency to unistd.h.
22021         * modules/wchar (Makefile.am): Add dependency to wchar.h.
22022
22023 2009-12-09  Bruno Haible  <bruno@clisp.org>
22024
22025         fchdir: Optimize away rpl_fstat when possible.
22026         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
22027         REPLACE_OPEN_DIRECTORY.
22028         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
22029
22030 2009-12-09  Bruno Haible  <bruno@clisp.org>
22031
22032         * lib/fchdir.c: Update comment.
22033
22034 2009-12-09  Bruno Haible  <bruno@clisp.org>
22035
22036         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
22037
22038 2009-12-08  Eric Blake  <ebb9@byu.net>
22039
22040         fchdir: avoid memory leak on re-registration.
22041         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
22042
22043 2009-12-08  Jim Meyering  <meyering@redhat.com>
22044
22045         init.sh: avoid Solaris 10 /bin/sh portability problem
22046         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
22047         sourced script:
22048           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
22049           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
22050           bar
22051         tests/init.sh relied on that, accepting a --set-path=DIR argument,
22052         and two tests used that idiom.
22053         * tests/init.sh: Update suggested usage comments.
22054         (path_prepend_): New function, to be used in place
22055         of the --src-path=DIR option.
22056         (setup_): Move PATH-prepending code into path_prepend_.
22057         * tests/test-pread.sh: Adapt to new usage.
22058         * tests/test-xalloc-die.sh: Likewise.
22059
22060 2009-12-08  Simon Josefsson  <simon@josefsson.org>
22061
22062         * doc/gnulib.texi (Glibc pty.h): Add.
22063         * doc/glibc-functions/forkpty.texi: Add.
22064         * doc/glibc-functions/openpty.texi: Add.
22065         Suggested by Bruno Haible.
22066
22067 2009-12-08  Eric Blake  <ebb9@byu.net>
22068
22069         fchdir: fix logic bugs
22070         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
22071         * tests/test-fchdir.c (main): Enhance test.
22072         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
22073         is in use.
22074
22075         dup2: fix logic bugs
22076         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
22077         REPLACE_DUP2 to decide when rpl_dup2 is needed.
22078         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
22079         exists.
22080         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
22081
22082 2009-12-07  Eric Blake  <ebb9@byu.net>
22083
22084         unlink: fix m4 detection
22085         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
22086
22087         unistd-safer: add unit test
22088         * modules/unistd-safer-tests: New file.
22089         * tests/test-dup-safer.c: Likewise.
22090         * tests/test-cloexec.c (setmode): Avoid compiler warning.
22091         * tests/test-dup2.c (setmode): Likewise.
22092         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
22093
22094         cloexec: preserve text vs. binary across dup_cloexec
22095         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
22096         mode.
22097         * modules/dup2-tests (Depends-on): Add binary-io.
22098         * modules/cloexec-tests (Depends-on): Likewise.
22099         * tests/test-dup2.c (setmode, is_mode): New helpers.
22100         (main): Add tests that translation mode is preserved.
22101         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
22102         Reported by Bruno Haible.
22103
22104         mgetgroups: reduce duplicate listings
22105         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
22106         resulting array.
22107         * tests/test-chown.h (test_chown): Simplify client.
22108         * tests/test-lchown.h (test_lchown): Likewise.
22109
22110 2009-12-06  Bruno Haible  <bruno@clisp.org>
22111
22112         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
22113         value.
22114
22115 2009-12-06  Bruno Haible  <bruno@clisp.org>
22116
22117         * lib/progname.c: Include stdio.h, stdlib.h.
22118         (set_program_name): Reject a NULL argument.
22119
22120 2009-12-05  Eric Blake  <ebb9@byu.net>
22121
22122         pipe2-safer: new module
22123         * modules/pipe2-safer: New file.
22124         * lib/unistd-safer.h (pipe2_safer): New prototype.
22125         * lib/unistd--.h (pipe2): New wrapper.
22126         * lib/pipe-safer.c (pipe2_safer): New function.
22127         * modules/pipe (Depends-on): Add pipe2-safer.
22128         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
22129
22130         stdlib-safer: preserve cloexec flag for mkostemp[s]
22131         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
22132         fd_safer_flag.
22133
22134         unistd-safer: allow preservation of cloexec status via flag
22135         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
22136         prototypes.
22137         * lib/dup-safer.c (dup_safer_flag): New function.
22138         * lib/fd-safer.c (fd_safer_flag): Likewise.
22139         * modules/cloexec (configure.ac): Set witness.
22140
22141         test-dup2: enhance test
22142         * modules/dup2-tests (Depends-on): Add cloexec.
22143         * tests/test-dup2.c (main): Enhance test.
22144
22145         cloexec: add dup_cloexec
22146         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
22147         header and comments.
22148         * lib/cloexec.c (set_cloexec_flag): Add comments.
22149         (dup_cloexec): New function, with mingw implementation borrowed
22150         from...
22151         * lib/w32spawn.h (dup_noinherit): ...here.
22152         * modules/execute (Depends-on): Add cloexec.
22153         * modules/pipe (Depends-on): Likewise.
22154         * modules/cloexec (Depends-on): Add dup2.
22155         * modules/cloexec-tests (Files): New file.
22156         * tests/test-cloexec.c: Likewise.
22157
22158         test-xalloc-die: fix test for mingw
22159         * modules/xalloc-die-tests (Files): Add tests/init.sh.
22160         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
22161         directory and .exe suffix off argv[0] output.
22162
22163         test-fseeko: fix test for mingw
22164         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
22165         than undefining fseek, so test will pass on mingw.
22166
22167 2009-12-05  Bruno Haible  <bruno@clisp.org>
22168
22169         * lib/progname.h (set_program_name): Clarify specification.
22170         * lib/progname.c (set_program_name): Likewise.
22171         Reported by Jim Meyering.
22172
22173 2009-12-05  Jim Meyering  <meyering@redhat.com>
22174
22175         maint.mk: backslash-escape parens in default regexp
22176         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
22177         backslash-escape the literal parentheses.
22178
22179         maint.mk: news-date-check: use grep -E
22180         * top/maint.mk (today): Define a Make variable, not a...
22181         (news-date-check): ...shell variable.
22182         (news-date-regexp): Use the Make variable.
22183         Use grep's -E option.  Change the failing diagnostic to mention
22184         the variable, $(news-date-regexp).
22185
22186 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
22187
22188         maintainer-makefile: allow customization of NEWS entry format
22189         * top/maint.mk (news-date-regexp): New overridable variable.
22190         (news-date-check): Use it.
22191
22192 2009-12-04  Eric Blake  <ebb9@byu.net>
22193
22194         mgetgroups: add xgetgroups, and avoid ENOSYS failures
22195         * lib/mgetgroups.h (xgetgroups): New prototype.
22196         * lib/mgetgroups.c (xgetgroups): New wrapper.
22197         (mgetgroups): Handle ENOSYS.
22198         * modules/mgetgroups (Depends-on): Add realloc.
22199         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
22200
22201         mgetgroups: avoid argument promotion issues with -1
22202         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
22203         for invalid gid_t.
22204         * tests/test-chown.h (getegid, test_chown): Likewise.
22205         * tests/test-lchown.h (getegid, test_lchown): Likewise.
22206
22207 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
22208
22209         exclude: Fix header file problems.
22210         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
22211
22212 2009-12-01  Jim Meyering  <meyering@redhat.com>
22213
22214         fts: fts_open: do not let an empty string cause immediate failure
22215         This is required in support of GNU rm, for which the command
22216         "rm A '' B" must process and remove both A and B, in spite of
22217         the empty string argument.
22218         * lib/fts.c (fts_open): Do not let the presence of an empty string
22219         cause fts_open to fail immediately.  Most fts-using tools must be
22220         able to process all arguments, in order, and can be expected to
22221         diagnose such arguments themselves.
22222
22223 2009-11-30  Eric Blake  <ebb9@byu.net>
22224
22225         utimens: fix compilation error
22226         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
22227         Declare variable at right scope.
22228
22229 2009-11-29  Jim Meyering  <meyering@redhat.com>
22230
22231         bootstrap: handle perl-5.11's changed --version output
22232         * build-aux/bootstrap (get_version): Handle perl separately,
22233         since perl-5.11's --version output is different.
22234
22235 2009-11-28  Jim Meyering  <meyering@redhat.com>
22236
22237         userspec: depend on the inttostr module, too
22238         * modules/userspec (Depends-on): Add inttostr.
22239
22240         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
22241         * lib/userspec.c (parse_with_separator): Do not accept a user ID
22242         number of MAXUID when it evaluates to (uid_t) -1.
22243         Likewise for group ID.  Reported by Matt McCutchen in
22244         <http://savannah.gnu.org/bugs/?28113>
22245
22246         userspec: reformat to use spaces, not TABs
22247         * lib/userspec.c: Expand TABs to spaces.
22248         Add Emacs' "indent-tabs-mode: nil" hint.
22249
22250 2009-11-27  Eric Blake  <ebb9@byu.net>
22251
22252         getopt-gnu: flush out another BSD bug
22253         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
22254         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
22255         flush out BSD bug.
22256         * tests/test-getopt.h (test_getopt): End lists with NULL.
22257         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22258         (test_getopt_long_posix): Enhance test.
22259         * modules/getopt-posix-tests (Depends-on): Add stdbool.
22260         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
22261         getopt-gnu.
22262         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22263         Likewise.
22264
22265 2009-11-27  Simon Josefsson  <simon@josefsson.org>
22266
22267         * modules/idpriv-droptemp-tests (Notice): Fix text.
22268
22269 2009-11-27  Jim Meyering  <meyering@redhat.com>
22270
22271         test-xalloc-die: avoid spurious failure due to libtool argv difference
22272         In a libtool-enabled project, this test would fail due to a difference
22273         in the emitted program name, e.g.,
22274         -test-xalloc-die: memory exhausted
22275         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
22276         Use program to avoid that.
22277         * modules/xalloc-die-tests (Depends-on): Add progname.
22278         * tests/test-xalloc-die.c: Include progname.h".
22279         (program_name): Remove decl.
22280         (main): Call set_program_name.
22281         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
22282
22283 2009-11-26  Richard Jones  <rjones@redhat.com>
22284
22285         w32sock: leave win32 error in place.
22286         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
22287
22288 2009-11-26  Eric Blake  <ebb9@byu.net>
22289
22290         init.sh: suggest to use skip_ and fail_ functions in comments
22291         * tests/init.sh: Add a sentence.
22292
22293 2009-11-25  Bruno Haible  <bruno@clisp.org>
22294
22295         init.sh: add documentation in comments
22296         * tests/init.sh: Add some developer and user documentation.
22297
22298 2009-11-26  Jim Meyering  <meyering@redhat.com>
22299
22300         init.sh: accommodate even those who specify bogus srcdir manually
22301         * tests/init.sh: Normally, srcdir is guaranteed by automake and
22302         configure-time tests to be sanitized, so that there is no need to
22303         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
22304         (with no double quotes) suffices.  However, since tests may be
22305         invoked manually, and since you may explicitly set srcdir to the
22306         name of a directory containing spaces, do quote its uses here.
22307         * tests/test-pread.sh: Likewise.
22308         Suggested by Bruno Haible.
22309
22310         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
22311         * tests/test-pread.sh: Write no data into the pipe, because
22312         test-pread actually reads none.  This avoids a diagnostic,
22313         "bash: echo: write error: Broken pipe", that arises in the unusual
22314         event something is ignoring SIGPIPE, and might be interpreted
22315         as some sort of failure.  Reported by Bruno Haible.
22316
22317 2009-11-25  Jim Meyering  <meyering@redhat.com>
22318
22319         test-pread: cover failure with ESPIPE and EINVAL
22320         * tests/test-pread.c (main): Test for failure, too.
22321         * tests/test-pread.sh: Invoke with stdin on a pipe.
22322         Suggested by Eric Blake.
22323
22324         pread: improvement and fix
22325         * modules/pread (Depends-on): Depend on lseek, for portability to
22326         e.g., mingw.  Suggested by Eric Blake.
22327         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
22328
22329         unistd.in.h: correct declaration of pread
22330         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
22331         Reported by Richard W.M. Jones.
22332
22333         test-pread.sh: distribute the test script
22334         * modules/pread-tests (Files): Include test-pread.sh.
22335
22336         test-pread.sh: clean up
22337         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
22338         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
22339         That is unnecessary, since it's always ".".
22340         Suggestion from Eric Blake.
22341
22342         test-pread.sh: make executable
22343         * tests/test-pread.sh: Set executable bit.
22344         Reported by Eric Blake.
22345
22346         correct typo in test-pread.sh
22347         * tests/test-pread.sh: Add #! line.
22348
22349         test pread
22350         * tests/test-pread.c: New file.
22351         * tests/test-pread.sh: Likewise.
22352         * modules/pread-tests: Likewise.
22353
22354         pread: new module
22355         * modules/pread: New file.
22356         * lib/unistd.in.h (pread): Define/declare.
22357         * lib/pread.c (pread): New file.
22358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
22359         * modules/unistd (Makefile.am): Substitute witnesses.
22360         * doc/posix-functions/pread.texi (pread): Update.
22361         * MODULES.html.sh: Add pread.
22362
22363 2009-11-25  Jim Meyering  <meyering@redhat.com>
22364
22365         tests/init.sh: new file to be used via most *.sh tests
22366         * tests/init.sh: New file.
22367
22368 2009-11-25  Eric Blake  <ebb9@byu.net>
22369
22370         utimens: work around older Linux failure with symlinks
22371         * lib/utimens.c (lutimensat_works_really): New variable.
22372         (fdutimens, lutimens): Use it to manage kernels that support
22373         nanosecond times on files, but not on symlinks.
22374         Reported by OndÅ™ej Vašík.
22375
22376         utimes: fix configure grammar
22377         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
22378
22379 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
22380
22381         regex: Fix fastmap for multibyte character ranges.
22382         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
22383         characters when a multibyte character range is included.
22384
22385 2009-11-22  Andy Wingo  <wingo@pobox.com>
22386
22387         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
22388         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
22389
22390 2009-11-24  Bruno Haible  <bruno@clisp.org>
22391
22392         doc: Most *_l functions exist in MacOS X 10.5.
22393         * doc/posix-functions/duplocale.texi: Update platforms list.
22394         * doc/posix-functions/freelocale.texi: Likewise.
22395         * doc/posix-functions/newlocale.texi: Likewise.
22396         * doc/posix-functions/uselocale.texi: Likewise.
22397         * doc/posix-functions/isalnum_l.texi: Likewise.
22398         * doc/posix-functions/isalpha_l.texi: Likewise.
22399         * doc/posix-functions/isblank_l.texi: Likewise.
22400         * doc/posix-functions/iscntrl_l.texi: Likewise.
22401         * doc/posix-functions/isdigit_l.texi: Likewise.
22402         * doc/posix-functions/isgraph_l.texi: Likewise.
22403         * doc/posix-functions/islower_l.texi: Likewise.
22404         * doc/posix-functions/isprint_l.texi: Likewise.
22405         * doc/posix-functions/ispunct_l.texi: Likewise.
22406         * doc/posix-functions/isspace_l.texi: Likewise.
22407         * doc/posix-functions/isupper_l.texi: Likewise.
22408         * doc/posix-functions/iswalnum_l.texi: Likewise.
22409         * doc/posix-functions/iswalpha_l.texi: Likewise.
22410         * doc/posix-functions/iswblank_l.texi: Likewise.
22411         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22412         * doc/posix-functions/iswctype_l.texi: Likewise.
22413         * doc/posix-functions/iswdigit_l.texi: Likewise.
22414         * doc/posix-functions/iswgraph_l.texi: Likewise.
22415         * doc/posix-functions/iswlower_l.texi: Likewise.
22416         * doc/posix-functions/iswprint_l.texi: Likewise.
22417         * doc/posix-functions/iswpunct_l.texi: Likewise.
22418         * doc/posix-functions/iswspace_l.texi: Likewise.
22419         * doc/posix-functions/iswupper_l.texi: Likewise.
22420         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22421         * doc/posix-functions/isxdigit_l.texi: Likewise.
22422         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
22423         * doc/posix-functions/strcasecmp_l.texi: Likewise.
22424         * doc/posix-functions/strcoll_l.texi: Likewise.
22425         * doc/posix-functions/strfmon_l.texi: Likewise.
22426         * doc/posix-functions/strftime_l.texi: Likewise.
22427         * doc/posix-functions/strncasecmp_l.texi: Likewise.
22428         * doc/posix-functions/strxfrm_l.texi: Likewise.
22429         * doc/posix-functions/tolower_l.texi: Likewise.
22430         * doc/posix-functions/toupper_l.texi: Likewise.
22431         * doc/posix-functions/towctrans_l.texi: Likewise.
22432         * doc/posix-functions/towlower_l.texi: Likewise.
22433         * doc/posix-functions/towupper_l.texi: Likewise.
22434         * doc/posix-functions/wcscoll_l.texi: Likewise.
22435         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22436         * doc/posix-functions/wctrans_l.texi: Likewise.
22437         * doc/posix-functions/wctype_l.texi: Likewise.
22438         * doc/glibc-functions/strptime_l.texi: Likewise.
22439         * doc/glibc-functions/strtod_l.texi: Likewise.
22440         * doc/glibc-functions/strtof_l.texi: Likewise.
22441         * doc/glibc-functions/strtol_l.texi: Likewise.
22442         * doc/glibc-functions/strtold_l.texi: Likewise.
22443         * doc/glibc-functions/strtoll_l.texi: Likewise.
22444         * doc/glibc-functions/strtoul_l.texi: Likewise.
22445         * doc/glibc-functions/strtoull_l.texi: Likewise.
22446         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22447         * doc/glibc-functions/wcstod_l.texi: Likewise.
22448         * doc/glibc-functions/wcstof_l.texi: Likewise.
22449         * doc/glibc-functions/wcstol_l.texi: Likewise.
22450         * doc/glibc-functions/wcstold_l.texi: Likewise.
22451         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22452         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22453         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22454
22455 2009-11-24  Bruno Haible  <bruno@clisp.org>
22456
22457         duplocale: Fix logic bug.
22458         * lib/duplocale.c: Don't include <langinfo.h>.
22459         (_NL_LOCALE_NAME): Remove macro.
22460         (rpl_duplocale): Use setlocale instead of nl_langinfo.
22461         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
22462
22463 2009-11-23  Jim Meyering  <meyering@redhat.com>
22464
22465         test-update-copyright: don't hard-code /usr/bin/perl
22466         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
22467         perl to print the current year.  Gilles Espinasse reported that
22468         the replaced use of perl was hard-coded as /usr/bin/perl.
22469
22470 2009-11-23  Bruno Haible  <bruno@clisp.org>
22471
22472         duplocale: Add support for glibc 2.3.x.
22473         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
22474
22475 2009-11-22  Bruno Haible  <bruno@clisp.org>
22476
22477         vasnprintf: Tiny optimization.
22478         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
22479         MacOS X.
22480
22481 2009-11-22  Bruno Haible  <bruno@clisp.org>
22482
22483         Tests for module 'duplocale'.
22484         * modules/duplocale-tests: New file.
22485         * tests/test-duplocale.c: New file.
22486
22487         New module 'duplocale'.
22488         * m4/duplocale.m4: New file.
22489         * lib/locale.in.h (duplocale): New declaration.
22490         * lib/duplocale.c: New file.
22491         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
22492         gl_LOCALE_H_DEFAULTS): New macros.
22493         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
22494         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
22495         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
22496         REPLACE_DUPLOCALE.
22497         * modules/duplocale: New file.
22498         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
22499
22500 2009-11-22  Bruno Haible  <bruno@clisp.org>
22501
22502         * modules/locale-tests (configure.ac): Test for newlocale function.
22503         * tests/test-locale.c: When the system has extended locale functions,
22504         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
22505
22506         locale: Make locale_t available when possible.
22507         * lib/locale.in.h: Include <xlocale.h> when it exists.
22508         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
22509         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
22510         * modules/locale (Depends-on): Add extensions.
22511         (Makefile.am): Also substitute HAVE_XLOCALE_H.
22512         * doc/posix-headers/locale.texi: Document the problem with locale_t.
22513
22514 2009-11-22  Bruno Haible  <bruno@clisp.org>
22515
22516         Add comments.
22517         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
22518         invocation.
22519         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
22520         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22521         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22522
22523 2009-11-22  Bruno Haible  <bruno@clisp.org>
22524
22525         error: account for the possibility of freopen (stdout).
22526         * lib/error.c: Include <unistd.h>.
22527         (flush_stdout): New function, extracted from error and error_at_line.
22528         Determine stdout's fd dynamically.
22529         (error, error_at_line): Invoke flush_stdout.
22530         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
22531         * modules/error (Depends-on): Add unistd.
22532
22533 2009-11-22  Bruno Haible  <bruno@clisp.org>
22534
22535         diffseq: Add comment.
22536         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
22537
22538 2009-11-22  Jim Meyering  <meyering@redhat.com>
22539
22540         c-stack: avoid defining an unused static function
22541         * lib/c-stack.c (find_stack_direction): Do not define this function
22542         when it will not be used.
22543
22544         diffseq: avoid spurious gcc warnings
22545         * lib/diffseq.h (IF_LINT2): Define.
22546         (compareseq): Use it to initialize two members of "part".
22547         This avoids two used-uninitialized warnings.
22548
22549 2009-11-21  Jim Meyering  <meyering@redhat.com>
22550
22551         c-stack: avoid "ignoring return value of `write'" warning
22552         * lib/c-stack.c: Include "ignore-value.h".
22553         (die): Explicitly ignore each write return value.
22554         * modules/c-stack (Depends-on): Add ignore-value.
22555
22556 2009-11-21  Bruno Haible  <bruno@clisp.org>
22557
22558         diffseq: reduce scope of variable 'best'.
22559         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
22560         variable, earlier used for two different purposes.
22561
22562 2009-11-21  Jim Meyering  <meyering@redhat.com>
22563
22564         diffseq: remove useless assignment to "best"
22565         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
22566         assignment.  At that point "best" is already guaranteed to be zero.
22567
22568 2009-11-20  Eric Blake  <ebb9@byu.net>
22569
22570         build: mention ftp redirector in release announcements
22571         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
22572         values that used to come from cfg.mk; mention FTP redirect URL.
22573         * build-aux/announce-gen: Mention the mirror list.
22574         Suggested by Karl Berry.
22575
22576         nanosleep: improve port to mingw
22577         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
22578         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
22579         LIB_NANOSLEEP, but only when needed.
22580         * modules/select (Link): Document LIBSOCKET.
22581         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
22582         enough.
22583
22584         nanosleep: work around cygwin bug
22585         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
22586         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
22587         bug.
22588         (getnow): Delete, not needed.
22589         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
22590         LIB_CLOCK_GETTIME.
22591         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
22592         clock-time, gettime.
22593         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
22594         bug.
22595         * modules/nanosleep-tests: New test.
22596         * tests/test-nanosleep.c: New file.
22597
22598         sleep: work around cygwin bug
22599         * lib/sleep.c (rpl_sleep): Work around the bug.
22600         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
22601         (gl_PREREQ_SLEEP): Delete unused macro.
22602         * modules/sleep (Depends-on): Add verify.
22603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22604         * modules/unistd (Makefile.am): Substitute witness.
22605         * lib/unistd.in.h (sleep): Update prototype.
22606         * doc/posix-functions/sleep.texi (sleep): Document the bug.
22607         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
22608         * modules/sleep-tests (Depends-on): Check for alarm.
22609
22610 2009-11-20  Jim Meyering  <meyering@redhat.com>
22611
22612         maint.mk: improve sc_prohibit_magic_number_exit
22613         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
22614         so it does not match uses like System.exit(1).
22615         Add comments showing how to correct all offenders.
22616
22617 2009-11-19  Eric Blake  <ebb9@byu.net>
22618
22619         xalloc-die-tests: add missing library
22620         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
22621
22622         test-xvasprintf: silence compiler warnings
22623         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
22624         empty string from gcc.
22625
22626 2009-11-19  Jim Meyering  <meyering@redhat.com>
22627
22628         xfreopen: new module, from coreutils
22629         * modules/xfreopen: New module.
22630         * lib/xfreopen.c: New file.
22631         * lib/xfreopen.h: New file.
22632         * MODULES.html.sh (File stream based Input/Output"): Add it.
22633
22634 2009-11-19  Eric Blake  <ebb9@byu.net>
22635
22636         manywarnings: depend on warnings
22637         * modules/manywarnings (Depends-on): Add warnings.
22638
22639         build: avoid compiler warnings
22640         * lib/select.c (rpl_select): Delete unused variable.
22641         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
22642
22643 2009-11-18  Eric Blake  <ebb9@byu.net>
22644
22645         tests: avoid false negative with --with-packager
22646         * tests/test-version-etc.sh: Discard packager information.
22647         * tests/test-argp-version-etc-1.sh: Likewise.
22648         Reported by Mike Frysinger.
22649
22650         utimens: fix regression on Solaris
22651         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
22652         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
22653         can only change fd timestamps via futimesat.  Instead, use an
22654         additional witness macro to avoid BSD bug.
22655         Reported by Jim Meyering.
22656
22657 2009-11-17  Eric Blake  <ebb9@byu.net>
22658
22659         usleep: use it to simplify tests
22660         * modules/stat-time-tests (Depends-on): Add usleep.
22661         (configure.ac): Drop usleep check.
22662         * modules/chown-tests (Depends-on, configure.ac): Likewise.
22663         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
22664         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
22665         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
22666         * modules/openat-tests (Depends-on, configure.ac): Likewise.
22667         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
22668         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
22669         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
22670         Likewise.
22671         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
22672         * tests/test-lchown.h (nap): Likewise.
22673         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
22674         * tests/test-stat-time.c (nap): Likewise.
22675         * tests/test-utimens-common.h (nap): Update comments.
22676
22677         usleep: new module
22678         * modules/usleep: New file.
22679         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22680         * lib/usleep.c (usleep): Likewise.
22681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22682         * modules/unistd (Makefile.am): Substitute witnesses.
22683         * lib/unistd.in.h (usleep): Add declaration.
22684         * doc/pastposix-functions/usleep.texi (usleep): Document this.
22685         * MODULES.html.sh (Date and time): Likewise.
22686         * modules/usleep-tests (Depends-on): New test.
22687         * tests/test-usleep.c: New file.
22688
22689         chown: work around OpenBSD bug
22690         * lib/chown.c (rpl_chown): Work around the bug.
22691         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
22692         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
22693         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
22694         * modules/chown (Depends-on): Add stdbool.
22695         * modules/lchown (Depends-on): Likewise.
22696         * doc/posix-functions/chown.texi (chown): Document the bug.
22697         * doc/posix-functions/lchown.texi (lchown): Likewise.
22698         * tests/test-lchown.h (test_chown): Relax test.
22699
22700         mkstemp: avoid conflict with C++ keyword template
22701         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
22702         * lib/mkostemp.c (mkostemp): Likewise.
22703         * lib/mkostemps.c (mkostemps): Likewise.
22704         * lib/mkstemp.c (mkstemp): Likewise.
22705         * lib/mkstemps.c (mkstemps): Likewise.
22706
22707         xalloc-die-tests: optimize
22708         * tests/test-xalloc-die.sh: Reduce number of processes.
22709
22710 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22711
22712         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
22713         patch from ludo@gnu.org (Ludovic Courtès).
22714
22715 2009-11-17  Jim Meyering  <meyering@redhat.com>
22716
22717         version-etc: use proper license string
22718         * modules/version-etc (License): Use LGPL, not LGPLv3+.
22719         * modules/version-etc-fsf: Likewise.
22720
22721 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22722
22723         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
22724         printed to stdout.  Deal with EOL differences.
22725
22726 2009-11-17  Eric Blake  <ebb9@byu.net>
22727
22728         unsetenv: work around Solaris bug
22729         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
22730         * lib/unsetenv.c (rpl_unsetenv): Work around it.
22731         Reported by Jim Meyering.
22732
22733         vasnprintf: avoid compiler warnings
22734         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
22735         variables.
22736         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
22737
22738 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22739
22740         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
22741         settings since xalloc-die is no longer the self test,
22742         xalloc-die.sh is.
22743
22744 2009-11-17  Jim Meyering  <meyering@redhat.com>
22745
22746         test-xalloc-die.sh: make the code agree with the commit log
22747         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
22748         at the end, just in case you happen to have a test-xalloc-die
22749         program in some other PATH directory.
22750
22751         test-xalloc-die.sh: fix a portability bug
22752         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
22753         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
22754         Otherwise, argv[0] (as often seen in diagnostics) would be too
22755         system-dependent, sometimes with, and sometimes without the leading "./".
22756
22757         version-etc-fsf: relax license to LGPLv3+
22758         * modules/version-etc-fsf (License): Relax license.
22759
22760 2009-11-16  Eric Blake  <ebb9@byu.net>
22761
22762         xalloc-die-tests: avoid printing null pointer
22763         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
22764         shell script.
22765         * tests/test-xalloc-die.c (program_name): Declare.
22766         * tests/test-xalloc-die.sh (tmpfiles): New file.
22767
22768         setenv, unsetenv: work around various bugs
22769         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
22770         (setenv) [HAVE_SETENV]: Work around bugs.
22771         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
22772         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
22773         for bugs.
22774         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
22775         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
22776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
22777         * modules/stdlib (Makefile.am): Update substitutions.
22778         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
22779         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
22780         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22781         * modules/setenv-tests: New test.
22782         * modules/unsetenv-tests: Likewise.
22783         * tests/test-setenv.c: New file.
22784         * tests/test-unsetenv.c: Likewise.
22785
22786 2009-11-16  Jim Meyering  <meyering@redhat.com>
22787
22788         version-etc: relax license to LGPLv3+
22789         * modules/version-etc (License): Relax license.
22790
22791         better AC_REQUIRE expanded-before-required-warning avoidance
22792         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
22793         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
22794         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
22795         which is no longer needed.
22796
22797 2009-11-16  Eric Blake  <ebb9@byu.net>
22798
22799         test-freading: clean up temporary file
22800         * tests/test-freading.c (main): Remove file on success, and use
22801         ASSERT more liberally.
22802         Reported by Jim Meyering.
22803
22804 2009-11-16  Jim Meyering  <meyering@redhat.com>
22805
22806         avoid new AC_REQUIRE expanded-before-required warnings
22807         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
22808         merely using it.
22809         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
22810         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
22811
22812 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22813
22814         * tests/test-xalloc-die.c: New file.
22815         * modules/xalloc-die-tests: New file.
22816         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
22817         XFAIL_TESTS so it can be appended by modules.
22818
22819 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22820
22821         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
22822         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
22823
22824 2009-11-14  Eric Blake  <ebb9@byu.net>
22825
22826         fnmatch: avoid compiler warning
22827         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
22828         to silence compiler warning about mismatch signedness in ?:.
22829         Reported by Robert Millan.
22830
22831         intprops: add double-inclusion guard
22832         * lib/intprops.h: Allow idempotent includes.
22833         Suggested by Bruce Korb.
22834
22835         openat: detect Solaris fchownat bug
22836         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
22837         penalizing glibc chownat when only lchownat is broken.
22838         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
22839         trailing slash bugs.
22840         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
22841         * modules/openat-tests (Files): Include more files.
22842         (Depends-on): Add mgetgroups, sleep, stat-time.
22843         (configure.ac): Add additional checks.
22844         (Makefile.am): Build new test.
22845         * tests/test-fchownat.c: New file.
22846
22847         lchown: detect Solaris and FreeBSD bug
22848         * lib/lchown.c (rpl_lchown): Work around bug.
22849         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
22850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22851         * modules/unistd (Makefile.am): Populate it.
22852         * lib/unistd.in.h (lchown): Update declaration.
22853         * doc/posix-functions/lchown.texi (lchown): Document the bug.
22854         * modules/lchown-tests: New file.
22855         * tests/test-lchown.h (test_lchown): Likewise.
22856         * tests/test-lchown.c (main): Likewise.
22857
22858         chown: detect Solaris and FreeBSD bug
22859         * lib/chown.c (rpl_chown): Work around bug.
22860         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
22861         (gl_PREREQ_CHOWN): Delete.
22862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22863         * modules/unistd (Makefile.am): Populate it.
22864         * lib/unistd.in.h (chown): Update declaration.
22865         * lib/lchown.c (chown): Update client.
22866         * modules/lchown (Depends-on): Add lstat.
22867         * doc/posix-functions/chown.texi (chown): Document the bug.
22868         * doc/posix-functions/getgroups.texi (getgroups): Document
22869         getgroups pitfall.
22870         * modules/chown-tests: New file.
22871         * tests/test-chown.h (test_chown): Likewise.
22872         * tests/test-chown.c (main): Likewise.
22873
22874 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
22875
22876         gnulib-tool: correctly detect absence of m4 directories
22877         * gnulib-tool: Avoid extra newline on data passed to wc -l.
22878
22879 2009-11-14  Jim Meyering  <meyering@redhat.com>
22880
22881         maint.mk: Prohibit inclusion of "xalloc.h" without use.
22882         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22883
22884 2009-11-14  John W. Eaton  <jwe@gnu.org>
22885
22886         strftime.h: wrap funtion declaration in extern "C" block
22887         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
22888
22889 2009-11-13  Eric Blake  <ebb9@byu.net>
22890
22891         getgroups: avoid compiler warning
22892         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
22893
22894         getgroups: work around FreeBSD bug
22895         * lib/getgroups.c (rpl_getgroups): Work around the bug.
22896         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
22897         * doc/posix-functions/getgroups.texi (getgroups): Document it.
22898         * tests/test-getgroups.c (main): Fix buffer overrun.
22899
22900         getgroups: avoid compilation failure
22901         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
22902         * modules/getgroups (Depends-on): Add stdint.
22903
22904 2009-11-13  Jim Meyering  <meyering@redhat.com>
22905
22906         test-getgroups: avoid compilation failure
22907         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
22908
22909 2009-11-13  Eric Blake  <ebb9@byu.net>
22910
22911         mgetgroups: new module, taken from coreutils
22912         * modules/mgetgroups: New file.
22913         * lib/mgetgroups.h: Likewise.
22914         * lib/mgetgroups.c (mgetgroups): Likewise.
22915         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
22916         * MODULES.html.sh (Users and groups): Mention it.
22917
22918         getgroups: don't expose GETGROUPS_T to user
22919         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22920         an element at a time if GETGROUPS_T is wrong size.
22921         * lib/getugroups.h (getugroups): Change signature.
22922         * lib/unistd.in.h (getgroups): Likewise.
22923         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
22924         signature needs fixing.
22925         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
22926         AC_TYPE_GETGROUPS.
22927         * modules/group-member (Depends-on): Add getgroups.
22928         * lib/group-member.c (group_info, get_group_info): Use gid_t.
22929         (group_member): Rely on getgroups replacement.
22930         * lib/getugroups.c (getugroups): Use gid_t.
22931         * tests/test-getgroups.c (main): Likewise.
22932         * NEWS: Mention the signature change.
22933         * doc/posix-functions/getgroups.texi (getgroups): Mention the
22934         problem with signature.
22935         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
22936         GETGROUPS_T is still useful for setgroups.
22937
22938         getgroups, getugroups: provide stubs for mingw
22939         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
22940         * lib/getugroups.c (getugroups): Likewise.
22941         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
22942         function.  Modernize replacement scheme.
22943         (gl_PREREQ_GETGROUPS): Delete.
22944         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
22945         * modules/getgroups (configure.ac): Declare witness.
22946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22947         * modules/unistd (Depends-on): Substitute witness.
22948         * lib/unistd.in.h (getgroups): Declare replacement.
22949
22950         getgroups: avoid calling exit
22951         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
22952         drop xalloc.
22953         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
22954         dependencies.
22955         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
22956         exiting, in the rare case of malloc failure.
22957
22958         getgroups: fix logic error
22959         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
22960         has more than 20 groups.
22961         * modules/getgroups-tests: New test.
22962         * tests/test-getgroups.c: New file.
22963
22964 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22965
22966         * tests/test-base64.c: Improve.
22967
22968 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22969
22970         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
22971         Blake <ebb9@byu.net>.
22972
22973 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22974
22975         * tests/test-xvasprintf.c: Add %s%s related checks.
22976
22977 2009-11-12  Eric Blake  <ebb9@byu.net>
22978
22979         version-etc: match standards.texi style
22980         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
22981         and use <> only for URLs.
22982
22983 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
22984
22985         fts: do not fail on a submount during traversal
22986         * lib/fts.c (fts_build): Read the stat info again after opening
22987         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
22988         Original report at http://bugzilla.redhat.com/501848.
22989
22990 2009-11-12  Jim Meyering  <meyering@redhat.com>
22991
22992         bootstrap: sync from coreutils
22993         * build-aux/bootstrap (bootstrap_epilogue): New function.
22994         Use git_modules_config in one more place.  This make bootstrap's
22995         --gnulib-srcdir option more useful for testing.
22996
22997         bootstrap: generalize autoheader check
22998         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
22999         AC_CONFIG_HEADERS.
23000
23001 2009-11-11  Eric Blake  <ebb9@byu.net>
23002
23003         mkfifoat: use new modules for Solaris and BSD bugs
23004         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
23005         * lib/mkfifoat.c (mknodat): Split...
23006         * lib/mknodat.c (mknodat): ...into new file.
23007         * modules/mkfifoat (Files): Ship new file.
23008         (Depends-on): Add mkfifo, mknod.
23009         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
23010         (Depends-on): Add symlink.
23011         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
23012         redundant with test_mkfifo.h.
23013         (do_mkfifoat, do_mknodat): New helpers.
23014
23015         mknod: new module
23016         * modules/mknod: New file.
23017         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
23018         * lib/mknod.c (mknod): Likewise.
23019         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23020         defaults.
23021         * modules/sys_stat (Makefile.am): Substitute them.
23022         * lib/sys_stat.in.h (mknod): Declare replacement.
23023         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23024         Document it.
23025         * doc/posix-functions/mknod.texi (mknod): Likewise.
23026         * modules/mknod-tests: New test.
23027         * tests/test-mknod.c: Likewise.
23028
23029         mkfifo: new module
23030         * modules/mkfifo: New file.
23031         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23032         * lib/mkfifo.c (mkfifo): Likewise.
23033         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23034         defaults.
23035         * modules/sys_stat (Makefile.am): Substitute them.
23036         * lib/sys_stat.in.h (mkfifo): Declare replacement.
23037         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23038         Document it.
23039         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
23040         * modules/mkfifo-tests: New test.
23041         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
23042         from test-mkfifoat.c.
23043         * tests/test-mkfifo.c: New file.
23044
23045         readlink: detect FreeBSD bug
23046         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
23047         slash on symlink.
23048         * doc/posix-functions/readlink.texi (readlink): Document the bug.
23049         * tests/test-readlink.h (test_readlink): Enhance test.
23050
23051         symlink: detect FreeBSD bug
23052         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
23053         slash on symlink.
23054         * doc/posix-functions/symlink.texi (symlink): Document the bug.
23055         * tests/test-symlink.h (test_symlink): Enhance test.
23056
23057 2009-11-10  Eric Blake  <ebb9@byu.net>
23058
23059         link: detect FreeBSD bug
23060         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
23061         symlink.
23062         * doc/posix-functions/link.texi (link): Document the bug.
23063         * tests/test-link.h (test_link): Enhance test.
23064         * tests/test-linkat.c (main): Update caller.
23065
23066         unlink, remove: detect FreeBSD bug
23067         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
23068         slash on symlink.
23069         * doc/posix-functions/unlink.texi (unlink): Document the bug.
23070         * doc/posix-functions/remove.texi (remove): Likewise.
23071         * tests/test-unlink.h (test_unlink): Enhance test.
23072         * tests/test-remove.c (main): Likewise.
23073
23074 2009-11-09  Eric Blake  <ebb9@byu.net>
23075
23076         rename: detect FreeBSD bug
23077         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
23078         slash on symlink.
23079         * modules/renameat-tests (Depends-on): Add filenamecat.
23080         * tests/test-rename.h (test_rename): Allow one more errno.
23081         * tests/test-renameat.c (main): Likewise.
23082         * doc/posix-functions/rename.texi (rename): Document the bug.
23083
23084         open: detect FreeBSD bug
23085         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
23086         symlink.
23087         * doc/posix-functions/open.texi (open): Document the bug.
23088         * doc/posix-functions/utimes.texi (utimes): Likewise.
23089         * tests/test-open.h (test_open): Add parameters, and test symlink
23090         handling.
23091         * tests/test-open.c (main): Adjust caller.
23092         * tests/test-fcntl-safer.c (main): Likewise.
23093         * modules/open-tests (Depends-on): Add stdbool, symlink.
23094         * modules/fcntl-safer-tests (Depends-on): Likewise.
23095         * tests/test-openat.c (main): Add test-open tests.
23096
23097         stat: detect FreeBSD bug
23098         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
23099         symlink.
23100         * doc/posix-functions/stat.texi (stat): Document the bug.
23101         * tests/test-stat.h (test_stat_func): Add argument.
23102         * tests/test-stat.c (main): Adjust caller.
23103         * tests/test-fstatat.c (main): Likewise.
23104         * modules/stat-tests (Depends-on): Add stdbool, symlink.
23105         Reported by Jim Meyering.
23106
23107 2009-11-09  James Youngman  <jay@gnu.org>
23108
23109         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
23110         * lib/strftime.c: Correct placement of #include "ignore-value.h".
23111
23112 2009-11-08  Jim Meyering  <meyering@redhat.com>
23113
23114         utimens: remove invalid futimesat call
23115         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
23116         It used the file descriptor of the target file as the DIR_FD
23117         parameter and NULL as the file name.  That caused failure with
23118         errno == EFAULT on FreeBSD-8.0-rc2
23119
23120 2009-11-07  Eric Blake  <ebb9@byu.net>
23121
23122         fflush, freadseek: use fseeko, not fseek
23123         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
23124         (clear_ungetc_buffer): Avoid potential problems on large files.
23125         * lib/freadseek.c (freadseek): Likewise.
23126         * modules/freadseek (Depends-on): Add fseeko.
23127         * modules/fseek (configure.ac): Set a witness.
23128         * tests/test-fflush.c (main): Use fseeko.
23129         * tests/test-fpurge.c (fseek): Disable link warning.
23130         * tests/test-freadable.c (fseek): Likewise.
23131         * tests/test-freading.c (fseek): Likewise.
23132         * tests/test-fseeko.c (fseek): Likewise.
23133         * tests/test-ftell.c (fseek): Likewise.
23134         * tests/test-ftello.c (fseek): Likewise.
23135         * tests/test-fwritable.c (fseek): Likewise.
23136         * tests/test-fwriting.c (fseek): Likewise.
23137
23138 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23139
23140         * modules/memchr (Depends-on): Drop getpagesize dependency.
23141
23142 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23143
23144         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
23145         Reported by Ludovic Courtès.
23146         * build-aux/pmccabe2html: Improve example usage.
23147         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
23148
23149 2009-11-06  Jim Meyering  <meyering@redhat.com>
23150
23151         do-release-commit-and-tag: New module.
23152         Automate the release-commit and tag process.
23153         * build-aux/do-release-commit-and-tag: New script, from coreutils.
23154         * modules/do-release-commit-and-tag: New file.
23155         * MODULES.html.sh (Support for maintaining and releasing): Add it.
23156
23157 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23158
23159         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
23160         because test-select.c uses inet_pton.
23161
23162 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23163
23164         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
23165         GETADDRINFO_LIB.  Bump serial number.
23166         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
23167         Suggested by Eric Blake <ebb9@byu.net>.
23168
23169 2009-11-05  Eric Blake  <ebb9@byu.net>
23170
23171         strtod: detect darwin bug
23172         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
23173         Reported by Leo Davis.
23174
23175         freopen-safer: new module
23176         * modules/freopen-safer: New module.
23177         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
23178         * lib/freopen-safer.c (freopen_safer): New file.
23179         * lib/stdio-safer.h (freopen_safer): New declaration.
23180         * lib/stdio--.h (freopen): New override.
23181         * MODULES.html.sh (File stream based Input/Output): Mention it.
23182         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
23183         freopen-safer module.
23184         * doc/posix-functions/stderr.texi (stderr): Likewise.
23185         * doc/posix-functions/stdin.texi (stdin): Likewise.
23186         * doc/posix-functions/stdout.texi (stdout): Likewise.
23187         * modules/freopen-safer-tests: New test.
23188         * tests/test-reopen-safer.c: New file.
23189
23190 2009-11-05  Jim Meyering  <meyering@redhat.com>
23191
23192         maint.mk: Prohibit inclusion of "close-stream.h" without use.
23193         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23194
23195 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23196
23197         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
23198
23199 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23200
23201         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
23202
23203 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23204
23205         Fix link error.
23206         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23207         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23208
23209 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23210
23211         * tests/test-func.c: Also test value of __func__.
23212
23213 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23214
23215         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
23216         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
23217
23218 2009-11-05  Bruno Haible  <bruno@clisp.org>
23219
23220         Fix link error.
23221         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23222         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23223         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
23224
23225 2009-11-05  Bruno Haible  <bruno@clisp.org>
23226
23227         Tests for module 'inet_pton'.
23228         * modules/inet_pton-tests: New file.
23229         * tests/test-inet_pton.c: New file.
23230
23231 2009-11-05  Bruno Haible  <bruno@clisp.org>
23232
23233         Tests for module 'inet_ntop'.
23234         * modules/inet_ntop-tests: New file.
23235         * tests/test-inet_ntop.c: New file.
23236
23237 2009-11-04  Eric Blake  <ebb9@byu.net>
23238
23239         stdlib-safer: wrap all mkstemp variants
23240         * modules/mkostemp (configure.ac): Set witness.
23241         * modules/mkostemps (configure.ac): Likewise.
23242         * modules/mkstemps (configure.ac): Likewise.
23243         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
23244         (mkstemps_safer): Wrap more functions.
23245         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
23246         wrapping.
23247         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
23248         (mkstemps_safer): Implement the wrappers.
23249
23250         mkstemps, mkostemps: new modules
23251         * modules/mkostemps: New module.
23252         * modules/mkstemps: Likewise.
23253         * lib/mkostemps.c (mkostemps): New file.
23254         * lib/mkstemps.c (mkstemps): Likewise.
23255         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
23256         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
23257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
23258         * modules/stdlib (Makefile.am): Substitute them.
23259         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
23260         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
23261         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23262         * doc/gnulib.texi (Glibc stdlib.h): Include them.
23263         * MODULES.html.sh (File system functions): Mention them.
23264
23265         tempname: resync from glibc
23266         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
23267         same values for __GT_FILE as glibc.  Abort even when assertions
23268         are disabled.
23269         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
23270         match its value otherwise.  Allow idempotent inclusion.
23271         * lib/mkdtemp.c (mkdtemp): Adjust caller.
23272         * lib/mkostemp.c (mkostemp): Likewise.
23273         * lib/mkstemp.c (mkstemp): Likewise.
23274         * lib/tmpfile.c (tmpfile): Likewise.
23275         * NEWS: Document this.
23276
23277         utimens: fix use of futimens on older Linux
23278         * lib/utimens.c (fdutimens): Use updated, rather than original,
23279         timespec to avoid bug in older Linux kernel.
23280         Reported by Simon Josefsson.
23281
23282 2009-11-04  Bruno Haible  <bruno@clisp.org>
23283
23284         Make num_processors more flexible and consistent.
23285         * lib/nproc.h (enum nproc_query): New type.
23286         (num_processors): Add a 'query' argument.
23287         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
23288         (num_processors): Add a 'query' argument. Test the value of the
23289         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
23290         mingw, count the number of CPUs available for the current process.
23291         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
23292         Check for sched_getaffinity and sched_getaffinity_np.
23293         * modules/nproc (Depends-on): Add c-ctype, extensions.
23294         * NEWS: Mention the change.
23295
23296 2009-11-03  Bruno Haible  <bruno@clisp.org>
23297
23298         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
23299
23300 2009-11-03  Jim Meyering  <meyering@redhat.com>
23301
23302         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
23303         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
23304         if it is defined.
23305
23306 2009-11-02  Eric Blake  <ebb9@byu.net>
23307
23308         mktime, timegm: share common declaration
23309         * lib/mktime-internal.h: New file.
23310         * lib/mktime.c: Use it rather than open-coding a declaration.
23311         * lib/timegm.c: Likewise.
23312         * modules/mktime (Files): Ship it.
23313         * modules/timegm (Files): Likewise.
23314         Suggested by Bruno Haible.
23315
23316         test-update-copyright: update test to match script changes
23317         * tests/test-update-copyright.sh: Avoid hard-coding perl
23318         location.  Don't update *.bak created by earlier runs.
23319
23320 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23321             Simon Josefsson  <simon@josefsson.org>
23322             Bruno Haible  <bruno@clisp.org>
23323
23324         Fix link error on Solaris 8.
23325         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
23326         also in libnsl. Define also INET_PTON_LIB.
23327         * modules/inet_pton (Link): New section.
23328
23329 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23330             Bruno Haible  <bruno@clisp.org>
23331
23332         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
23333         * modules/inet_ntop (Link): New section.
23334         Reported by Boyan Kasarov <bkasarov@gmail.com>.
23335
23336 2009-11-02  Eric Blake  <ebb9@byu.net>
23337
23338         maint: avoid compiler warnings in m4 macros
23339         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
23340         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
23341
23342 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23343
23344         * m4/pmccabe2html.m4: Remove file.
23345         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
23346         function.  Change maintainer.
23347         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
23348         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
23349         Courtès).
23350
23351 2009-10-31  Eric Blake  <ebb9@byu.net>
23352
23353         fseeko: fix m4 regression
23354         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
23355         regression from 2009-10-27.
23356         Reported by Ralf Wildenhues.
23357
23358 2009-10-31  Jim Meyering  <meyering@redhat.com>
23359
23360         inttostr: aesthetics and improved (compile-time) safety
23361         Define inttype_is_signed rather than inttype_is_unsigned,
23362         since the sole use is via "#if inttype_is_signed".
23363         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
23364         inttype_is_unsigned.
23365         * lib/offtostr.c (inttype_is_signed): Likewise.
23366         * lib/uinttostr.c (inttype_is_signed): Likewise.
23367         * lib/umaxtostr.c (inttype_is_signed): Likewise.
23368         * lib/inttostr.c (inttostr): Use verify to cross-check the
23369         inttype_is_signed value and the signedness of the actual type.
23370         * modules/inttostr (Depends-on): Add verify.
23371
23372 2009-10-30  Eric Blake  <ebb9@byu.net>
23373
23374         build: avoid compiler warnings
23375         * lib/fchmodat.c (lchmod): Mark unused variables.
23376         * lib/getopt.c (_getopt_initialize): Likewise.
23377         * lib/mktime.c (__mktime_internal): Provide prototype.
23378         * lib/inttostr.c (inttostr): Avoid compiler warning even with
23379         older gcc that do not understand #pragma GCC diagnostic.
23380         * lib/uinttostr.c (inttype_is_unsigned): Define.
23381         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
23382
23383 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23384
23385         stat: fix compilation on AIX
23386         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
23387         only see struct stat64.
23388
23389 2009-10-30  Eric Blake  <ebb9@byu.net>
23390
23391         exclude: make more robust
23392         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
23393         rather than masking a coding bug.
23394         Suggested by Bruno Haible.
23395
23396 2009-10-30  Jim Meyering  <meyering@redhat.com>
23397
23398         perl scripts: remove #!/usr/bin/perl in favor of more portable...
23399         Rather than putting #!/usr/bin/perl on the first line,
23400         start with a variant of what's recommended by "man perlrun" that
23401         invokes the first "perl" program from your shell's search path.
23402         * build-aux/gitlog-to-changelog: Replace #!... as above.
23403         Add a "Local Variables" perl mode setting.
23404         Prompted by a patch from Ludovic Courtès.
23405         Improved by Eric Blake.
23406         * build-aux/useless-if-before-free: Likewise.
23407         * build-aux/announce-gen: Likewise.
23408         * build-aux/update-copyright: Likewise.
23409
23410 2009-10-29  Eric Blake  <ebb9@byu.net>
23411
23412         filenamecat-lgpl: adjust clients
23413         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
23414         filenamecat.
23415         * modules/renameat (Depends-on): Likewise.
23416
23417         filenamecat: split into filenamecat-lgpl
23418         * modules/filenamecat-lgpl: New module.
23419         * modules/filenamecat (Files): Move library-safe files into
23420         filenamecat-lgpl.
23421         (Depends-on): Add filenamecat-lgpl.
23422         (configure.ac): Declare witness.
23423         * lib/filenamecat.h (file_name_concat): Only declare when using
23424         GPL module.
23425         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
23426         Move...
23427         * lib/filenamecat-lgpl.c: ...into new file.
23428         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
23429         (gl_FILE_NAME_CONCAT): Use it.
23430         * MODULES.html.sh (File system functions): Mention new module.
23431
23432         argp: avoid memory leak
23433         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
23434         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
23435         base_name, since the latter malloc()s and can call exit().
23436         Leak introduced 2006-07-03.
23437
23438         dirname-lgpl: adjust clients that don't need full dirname
23439         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
23440         * modules/filenamecat (Depends-on): Likewise.
23441         * modules/linkat (Depends-on): Likewise.
23442         * modules/mkancesdirs (Depends-on): Likewise.
23443         * modules/mkdir (Depends-on): Likewise.
23444         * modules/openat (Depends-on): Likewise.
23445         * modules/savewd (Depends-on): Likewise.
23446         * modules/rename (Depends-on): Likewise.
23447         (License): Relax license.
23448         * modules/mkdir-tests (Depends-on): Drop progname.
23449         (Makefile.am): Delete unneeded LDADD.
23450         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
23451
23452         dirname: split into dirname-lgpl
23453         * modules/dirname-lgpl: New module.
23454         * modules/dirname (Files): Move library-safe files into
23455         dirname-lgpl.
23456         (Depends-on): Add dirname-lgpl.
23457         (configure.ac): Declare witness.
23458         * modules/double-slash-root (License): Relax license.
23459         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
23460         module.
23461         * lib/dirname.c (dir_len, mdir_name): Move...
23462         * lib/dirname-lgpl.c: ...into new file.
23463         * lib/basename.c (last_component, base_len): Move...
23464         * lib/basename-lgpl.c: ...into new file.
23465         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
23466         (gl_DIRNAME): Use it.
23467         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
23468         Mention new module.
23469         * modules/dirname-tests (Depends-on): Add progname.
23470         * tests/test-dirname.c (program_name): Delete.
23471
23472         mkdir: make safe for libraries
23473         * modules/mkdir (Depends-on): Drop xalloc.
23474         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
23475         exit.
23476
23477         tests: avoid some compiler warnings
23478         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
23479         literals.
23480         * tests/test-memchr.c (main): Avoid type mismatch.
23481         * tests/test-arpa_inet.c (main): Avoid unused parameters.
23482         * tests/test-base64.c (main): Likewise.
23483         * tests/test-getdelim.c (main): Likewise.
23484         * tests/test-gethostname.c (main): Likewise.
23485         * tests/test-getline.c (main): Likewise.
23486         * tests/test-netinet_in.c (main): Likewise.
23487         * tests/test-select.c (open_server_socket, main): Likewise.
23488         * tests/test-select-stdin.c (main): Likewise.
23489         * tests/test-sockets.c (main): Likewise.
23490         * tests/test-strsignal.c (main): Likewise.
23491         * tests/test-sys_select.c (main): Likewise.
23492         * tests/test-sys_socket.c (main): Likewise.
23493         * tests/test-u64.c (main): Likewise.
23494         * tests/test-xfprintf-posix.c (main): Likewise.
23495         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
23496
23497         sockets: avoid compiler warning
23498         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
23499
23500         maint: detect usage(1) and other suspicious exits
23501         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
23502
23503 2009-10-29  Jim Meyering  <meyering@redhat.com>
23504
23505         timespec: long-to-int truncation could make timespec_cmp malfunction
23506         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
23507         a multiple of 2^32 nanoseconds as no difference.
23508
23509 2009-10-28  Jim Meyering  <meyering@redhat.com>
23510
23511         fprintftime: wrap macro code argument in "do {...} while(0)"
23512         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
23513         cpy macro must be a statement that can be followed by a semicolon.
23514         Now that the else clause contains a comment and is hence longer
23515         than one line, I require curly braces.  That in turn requires
23516         that we wrap this code block in the standard do...while(0).
23517
23518         fprintftime: remove stray semicolon from previous change
23519         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
23520
23521         fprintftime: avoid a warning about ignored fwrite return value
23522         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
23523         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
23524         that is unsafe.
23525         * modules/fprintftime (Depends-on): Add ignore-value.
23526
23527         exclude: avoid an unwarranted warning
23528         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
23529
23530 2009-10-27  Eric Blake  <ebb9@byu.net>
23531
23532         fseek: avoid compilation failure when fflush is replaced
23533         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
23534         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
23535         module is in use.
23536         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
23537         module is not in use; since REPLACE_FSEEK worked otherwise.
23538         (GNULIB_FTELLO): Likewise for ftell.
23539         Reported by Ian Beckwith and others.
23540
23541 2009-10-27  Bruno Haible  <bruno@clisp.org>
23542
23543         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
23544         Reported by Jim Meyering.
23545
23546 2009-10-27  Jim Meyering  <jim@meyering.net>
23547             Bruno Haible  <bruno@clisp.org>
23548
23549         Avoid warning despite dropping the return value of fwrite.
23550         * lib/unicodeio.c: Include ignore-value.h.
23551         (fwrite_success_callback): Explicitly ignore fwrite's return value.
23552         * modules/unicodeio (Depends-on): Add ignore-value.
23553
23554 2009-10-26  Eric Blake  <ebb9@byu.net>
23555
23556         areadlinkat: fix fallback path
23557         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
23558         pointer and zero.
23559
23560 2009-10-22  Pádraig Brady  <P@draigBrady.com>
23561
23562         Use a better IO block size for modern systems
23563         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
23564         * lib/md2.c: Likewise.
23565         * lib/md4.c: Likewise.
23566         * lib/md5.c: Likewise.
23567         * lib/sha1.c: Likewise.
23568         * lib/sha256.c: Likewise.
23569         * lib/sha512.c: Likewise.
23570
23571 2009-10-22  Eric Blake  <ebb9@byu.net>
23572
23573         tests: avoid several compiler warnings
23574         * tests/test-getcwd.c (main): Avoid buffer underflow.
23575         * tests/test-getdate.c (main): String literals are not safe with
23576         putenv, so use setenv.  Declare unused argument.
23577         * modules/getdate-tests (Depends-on): Add setenv.
23578         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
23579         problems with string literals in char *.
23580         * tests/test-hash.c (main): Avoid shadowing declaration.
23581         (insert_new): Treat string literals as char const *.
23582         * tests/test-getopt.h (test_getopt): Likewise.
23583         (getopt_loop): Alter types to minimize casting elsewhere.
23584         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
23585         (test_getopt_long_posix): Likewise.
23586         (do_getopt_long): Add wrapper to minimize casting.
23587         * tests/test-atexit.c (clear_temp_file): Use void.
23588         * tests/test-areadlink-with-size.c (main): Declare unused
23589         arguments.
23590         * tests/test-areadlink.c (main): Likewise.
23591         * tests/test-areadlinkat-with-size.c (main): Likewise.
23592         * tests/test-areadlinkat.c (main): Likewise.
23593         * tests/test-canonicalize-lgpl.c (main): Likewise.
23594         * tests/test-canonicalize.c (main): Likewise.
23595         * tests/test-dirent-safer.c (main): Likewise.
23596         * tests/test-dirname.c (main): Likewise.
23597         * tests/test-dup2.c (main): Likewise.
23598         * tests/test-fchdir.c (main): Likewise.
23599         * tests/test-fcntl-h.c (main): Likewise.
23600         * tests/test-fcntl-safer.c (main): Likewise.
23601         * tests/test-fdopendir.c (main): Likewise.
23602         * tests/test-fdutimensat.c (main): Likewise.
23603         * tests/test-fflush.c (main): Likewise.
23604         * tests/test-filenamecat.c (main): Likewise.
23605         * tests/test-filevercmp.c (main): Likewise.
23606         * tests/test-fopen-safer.c (main): Likewise.
23607         * tests/test-fopen.c (main): Likewise.
23608         * tests/test-fpending.c (main): Likewise.
23609         * tests/test-fpurge.c (main): Likewise.
23610         * tests/test-freading.c (main): Likewise.
23611         * tests/test-fstatat.c (main): Likewise.
23612         * tests/test-fsync.c (main): Likewise.
23613         * tests/test-futimens.c (main): Likewise.
23614         * tests/test-getndelim2.c (main): Likewise.
23615         * tests/test-gettimeofday.c (main): Likewise.
23616         * tests/test-getopt.c (main): Likewise.
23617         * tests/test-i-ring.c (main): Likewise.
23618         * tests/test-inttypes.c (main): Likewise.
23619         * tests/test-link.c (main): Likewise.
23620         * tests/test-lstat.c (main): Likewise.
23621         * tests/test-math.c (main): Likewise.
23622         * tests/test-md5.c (main): Likewise.
23623         * tests/test-memchr2.c (main): Likewise.
23624         * tests/test-memrchr.c (main): Likewise.
23625         * tests/test-mkdir.c (main): Likewise.
23626         * tests/test-mkdirat.c (main): Likewise.
23627         * tests/test-mkfifoat.c (main): Likewise.
23628         * tests/test-open.c (main): Likewise.
23629         * tests/test-openat-safer.c (main): Likewise.
23630         * tests/test-openat.c (main): Likewise.
23631         * tests/test-quotearg.c (main): Likewise.
23632         * tests/test-rawmemchr.c (main): Likewise.
23633         * tests/test-readlink.c (main): Likewise.
23634         * tests/test-remove.c (main): Likewise.
23635         * tests/test-rename.c (main): Likewise.
23636         * tests/test-renameat.c (main): Likewise.
23637         * tests/test-rmdir.c (main): Likewise.
23638         * tests/test-sha1.c (main): Likewise.
23639         * tests/test-signal.c (main): Likewise.
23640         * tests/test-sigaction.c (main): Likewise.
23641         * tests/test-stat.c (main): Likewise.
23642         * tests/test-stat-time.c (main): Likewise.
23643         * tests/test-stddef.c (main): Likewise.
23644         * tests/test-stdint.c (main): Likewise.
23645         * tests/test-stdio.c (main): Likewise.
23646         * tests/test-stdlib.c (main): Likewise.
23647         * tests/test-strchrnul.c (main): Likewise.
23648         * tests/test-strerror.c (main): Likewise.
23649         * tests/test-string.c (main): Likewise.
23650         * tests/test-strtod.c (main): Likewise.
23651         * tests/test-strverscmp.c (main): Likewise.
23652         * tests/test-symlink.c (main): Likewise.
23653         * tests/test-symlinkat.c (main): Likewise.
23654         * tests/test-sys_stat.c (main): Likewise.
23655         * tests/test-sys_time.c (main): Likewise.
23656         * tests/test-time.c (main): Likewise.
23657         * tests/test-unistd.c (main): Likewise.
23658         * tests/test-unlink.c (main): Likewise.
23659         * tests/test-unlinkat.c (main): Likewise.
23660         * tests/test-utimens.c (main): Likewise.
23661         * tests/test-utimensat.c (main): Likewise.
23662         * tests/test-version-etc.c (main): Likewise.
23663         * tests/test-wchar.c (main): Likewise.
23664         * tests/test-wctype.c (main): Likewise.
23665         * tests/test-xprintf-posix.c (main): Likewise.
23666         * tests/test-posixtm.c (main): Likewise.
23667         (STREQ): Delete unused macro.
23668         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
23669         shadowed variables.
23670         * tests/test-memchr.c (main): Likewise.
23671
23672 2009-10-21  Eric Blake  <ebb9@byu.net>
23673
23674         areadlinkat: avoid failure on older glibc
23675         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
23676         rather than mis-comparing 0 against FUNC_RESULT of char*.
23677
23678 2009-10-21  Bruno Haible  <bruno@clisp.org>
23679
23680         * modules/stpncpy (License): Relicense under LGPLv2+.
23681         Reported by David Lutterkort <lutter@redhat.com>.
23682
23683 2009-10-20  Eric Blake  <ebb9@byu.net>
23684
23685         utimensat: work around Solaris 9 bug
23686         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
23687         has trailing slash bugs.
23688         * tests/test-lutimens.h (test_lutimens): Enhance test.
23689         * tests/test-utimens.h (test_utimens): Likewise.
23690         * doc/posix-functions/utime.texi (utime): Enhance documentation.
23691         * doc/posix-functions/utimes.texi (utimes): Likewise.
23692         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23693         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
23694         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
23695         * doc/posix-functions/futimens.texi (futimens): Likewise.
23696
23697         fdutimensat: new module
23698         * modules/fdutimensat: New file.
23699         * lib/fdutimensat.c (fdutimensat): Likewise.
23700         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
23701         * MODULES.html.sh (File system functions): Mention module.
23702         * modules/fdutimensat-tests: New test.
23703         * tests/test-fdutimensat.c: Likewise.
23704
23705         doc: regenerate INSTALL
23706         * doc/INSTALL: Reflect recent autoconf update.
23707         * doc/INSTALL.ISO: Likewise.
23708         * doc/INSTALL.UTF-8: Likewise.
23709
23710 2009-10-20  Pádraig Brady  <P@draigBrady.com>
23711
23712         acl: warn if ACL support is not detected
23713         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
23714
23715 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
23716
23717         * lib/nproc.h: Add extern "C" block for C++.
23718
23719 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
23720             Bruno Haible  <bruno@clisp.org>
23721
23722         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
23723         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
23724         * doc/posix-functions/isalpha.texi: Likewise.
23725         * doc/posix-functions/isblank.texi: Likewise.
23726         * doc/posix-functions/iscntrl.texi: Likewise.
23727         * doc/posix-functions/isdigit.texi: Likewise.
23728         * doc/posix-functions/isgraph.texi: Likewise.
23729         * doc/posix-functions/islower.texi: Likewise.
23730         * doc/posix-functions/isprint.texi: Likewise.
23731         * doc/posix-functions/ispunct.texi: Likewise.
23732         * doc/posix-functions/isspace.texi: Likewise.
23733         * doc/posix-functions/isupper.texi: Likewise.
23734         * doc/posix-functions/isxdigit.texi: Likewise.
23735
23736 2009-10-18  Bruno Haible  <bruno@clisp.org>
23737
23738         Tests for module 'isblank'.
23739         * modules/isblank-tests: New file.
23740         * tests/test-isblank.c: New file.
23741
23742         New module 'isblank'.
23743         * lib/isblank.c: New file.
23744         * m4/isblank.m4: New file.
23745         * modules/isblank: New file.
23746         * doc/posix-functions/isblank.texi: Mention the new module.
23747
23748 2009-10-18  Bruno Haible  <bruno@clisp.org>
23749
23750         New module 'ctype'.
23751         * lib/ctype.in.h: New file.
23752         * m4/ctype.m4: New file.
23753         * modules/ctype: New file.
23754         * doc/posix-headers/ctype.texi: Mention the new module.
23755
23756 2009-10-18  Jim Meyering  <meyering@redhat.com>
23757
23758         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
23759         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
23760         right after its initialization, rather than farther down.
23761         Keeping these in close proximity makes it easier to ensure
23762         that each such variable is initialized.  E.g.,
23763
23764             LIB_CLOCK_GETTIME=
23765             AC_SUBST([LIB_CLOCK_GETTIME])
23766
23767         This change also increments these serial numbers.
23768         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
23769         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23770         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23771
23772 2009-10-18  Bruno Haible  <bruno@clisp.org>
23773
23774         Don't let environment variables perturb build.
23775         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
23776         (gl_PREREQ_GETHRXTIME): ... not here.
23777
23778 2009-10-18  Bruno Haible  <bruno@clisp.org>
23779
23780         Avoid symlink attack in localcharset module.
23781         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
23782         (O_NOFOLLOW): Define fallback.
23783         (get_charset_aliases): Don't open the file if it is a symbolic link.
23784         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
23785         gl_FCNTL_H.
23786         (gl_FCNTL_H): Require it.
23787         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
23788         * modules/localcharset (Files): Add m4/fcntl_h.m4.
23789         Reported by Fergal Glynn <fglynn@veracode.com>.
23790
23791 2009-10-18  Bruno Haible  <bruno@clisp.org>
23792
23793         Implement nproc for mingw.
23794         * lib/nproc.c: Include <windows.h>
23795         (num_processors): On native Windows platforms, try GetSystemInfo.
23796
23797 2009-10-18  Bruno Haible  <bruno@clisp.org>
23798
23799         Implement nproc for IRIX.
23800         * lib/nproc.c: Include <sys/sysmp.h>.
23801         (num_processors): On IRIX systems, try sysmp.
23802         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
23803
23804 2009-10-18  Bruno Haible  <bruno@clisp.org>
23805
23806         Implement nproc for HP-UX.
23807         * lib/nproc.c: Include <sys/pstat.h>
23808         (num_processors): On HP-UX systems, try pstat_getdynamic.
23809         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
23810         pstat_getdynamic.
23811
23812 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
23813             Bruno Haible  <bruno@clisp.org>
23814
23815         Implement nproc for NetBSD, OpenBSD.
23816         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
23817         (ARRAY_SIZE): New macro.
23818         (num_processors): On BSD systems, try sysctl of HW_NCPU.
23819         * m4/nproc.m4: New file.
23820         * modules/nproc (Files): Add m4/nproc.m4.
23821         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
23822         (Makefile.am): Instead, augment lib_SOURCES.
23823
23824 2009-10-18  Bruno Haible  <bruno@clisp.org>
23825
23826         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
23827         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
23828         sys/param.h.
23829
23830 2009-10-16  Eric Blake  <ebb9@byu.net>
23831
23832         utimensat: new module
23833         * modules/utimensat: New file.
23834         * lib/utimensat.c (utimensat): Likewise.
23835         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23836         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
23837         so we can work around Linux bugs.
23838         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23839         * modules/sys_stat (Makefile.am): Substitute them.
23840         * lib/sys_stat.in.h (utimensat): Declare it.
23841         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23842         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23843         * modules/utimensat-tests: New test.
23844         * tests/test-utimensat.c: Likewise.
23845
23846         utimens: let lutimens work on non-symlinks
23847         * lib/utimens.c (lutimens): Fall back to utimens rather than
23848         failing with ENOSYS, when file is not a symlink.
23849         (utimens): Reduce redirection.
23850         * tests/test-lutimens.h (test_lutimens): Update test to cover
23851         non-symlinks.
23852         * tests/test-utimens.h (test_utimens): Update test to cover
23853         symlinks.
23854         * tests/test-utimens.c (main): Update caller.
23855
23856         utimens: cache whether utimensat syscall works
23857         * lib/utimens.c (utimensat_works_really): New cache variable.
23858         (fdutimens, lutimens): Use it to avoid failing syscall.
23859
23860         test-stat-time, test-utimens: improve portability
23861         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
23862         ext4 on alpha, and for cygwin.
23863         * tests/test-utimens-common.h: New file.
23864         (nap): Factor delays into single function.
23865         * tests/test-lutimens.h (test_lutimens): Use new header.
23866         * tests/test-futimens.h (test_futimens): Likewise.
23867         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
23868         timestamps to occur from same machine, as was done previously for
23869         test_utimens.
23870         * modules/utimens-tests (Files): Ship new file.
23871         * modules/futimens-tests (Files): Likewise.
23872         Reported in part by Jim Meyering.
23873
23874         sys_stat: sort replacement declarations
23875         * lib/sys_stat.in.h: Sort declarations.
23876         * lib/futimens.c (futimens): Fix typo.
23877
23878 2009-10-15  Jim Meyering  <meyering@redhat.com>
23879
23880         don't let environment settings perturb build
23881         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
23882         could cause a configure-time and/or build-time malfunction.
23883         Typically, a configure-time function-in-library test is performed
23884         via code like this:
23885
23886           LIB_VAR=
23887           AC_SUBST([LIB_VAR])
23888           prefix_saved_LIBS=$LIBS
23889             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
23890                        [test "$ac_cv_search_FUNC" = "none required" ||
23891                         LIB_VAR=$ac_cv_search_FUNC])
23892           LIBS=$prefix_saved_LIBS
23893
23894         However, in each of the files affected by this change, the LIB_VAR=
23895         initialization was omitted.  Thus, when set in the environment, its
23896         value would propagate into generated Makefiles when FUNC is not found
23897         in LIB_NAME.
23898         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
23899         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23900         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23901
23902 2009-10-14  Eric Blake  <ebb9@byu.net>
23903
23904         fchdir: avoid infinite recursion in mingw
23905         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
23906         recursing.
23907
23908         test-stat-time: port to mingw
23909         * tests/test-stat-time.c (force_unlink): Return a value.
23910         (test_ctime) [W32]: Fix compilation error.
23911         (nap): Don't call usleep with too large an argument.  Use
23912         force_unlink.
23913         * doc/pastposix-functions/usleep.texi (usleep): Document the
23914         portability issue.
23915
23916 2009-10-13  Jim Meyering  <meyering@redhat.com>
23917
23918         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23919         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23920         * modules/pipe-filter-ii: Likewise.
23921         * modules/sys_socket-tests: Likewise.
23922         * modules/tsearch-tests: Likewise.
23923         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23924         (check): Depend on it.
23925
23926 2009-10-12  Eric Blake  <ebb9@byu.net>
23927
23928         utimens-tests: port to NFS file systems
23929         * tests/test-utimens.h (test_utimens): Refactor utimecmp
23930         comparisons to avoid spurious failures from timestamp drift
23931         between NFS machines.
23932
23933 2009-10-12  Eric Blake  <ebb9@byu.net>
23934
23935         stat-time-tests: minor cleanups
23936         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
23937         * tests/test-stat-time.c (nap): Separate assignment from call.
23938         Suggested by Paolo Bonzini and Bruno Haible.
23939
23940         sys_stat: guarantee struct timespec
23941         * lib/sys_stat.in.h (includes): Always include <time.h>
23942         * modules/sys_stat (Depends-on): Add time.
23943         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
23944         mode_t permission values.
23945         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
23946         get at subsecond timestamps.
23947
23948 2009-10-10  Eric Blake  <ebb9@byu.net>
23949
23950         futimens: new module
23951         * modules/futimens: New file.
23952         * lib/futimens.c (futimens): Likewise.
23953         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
23954         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
23955         we can work around Linux bugs.
23956         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23957         * modules/sys_stat (Makefile.am): Substitute them.
23958         * lib/sys_stat.in.h (futimens): Declare it.
23959         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23960         * doc/posix-functions/futimens.texi (futimens): Likewise.
23961         * modules/futimens-tests: New test.
23962         * tests/test-futimens.c: Likewise.
23963
23964         utimens: introduce fdutimens
23965         * lib/utimens.h (fdutimens): New prototype.
23966         * lib/utimens.c (gl_futimens): Move guts...
23967         (fdutimens): ...to new interface.
23968         * tests/test-utimens.c (do_fdutimens): Use it.
23969
23970         utimens: add UTIME_NOW and UTIME_OMIT support
23971         * lib/utimens.c (validate_timespec, update_timespec): New helper
23972         functions.
23973         (gl_futimens, lutimens): Use them.
23974         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
23975         stdbool, sys_stat.
23976         (Link): Mention resulting library dependency.
23977         * modules/utimecmp (Link): Likewise.
23978         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
23979         (Makefile.am): Pick up library dependency.
23980         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
23981         definition.
23982         * tests/test-sys_stat.c: Test the definitions.
23983         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
23984         * NEWS: Document library dependency.
23985
23986         utimecmp: support symlink timestamps
23987         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
23988         hashing when possible.  Use pathconf when available.
23989         (SYSCALL_RESOLUTION): Recognize tighter resolution.
23990         * modules/utimecmp (Depends-on): Add lstat.
23991
23992         utimens: add lutimens interface
23993         * lib/utimens.c (lutimens): New function.
23994         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
23995         * lib/utimens.h (lutimens): Declare new interface.
23996         * tests/test-utimens.c (main): Enhance test.
23997         * tests/test-lutimens.h (test_lutimens): New file.
23998         * modules/utimens-tests (Files): Distribute it.
23999         (Depends-on): Add symlink.
24000         (configure.ac): Check for usleep.
24001
24002         utimens: validate futimens usage
24003         * lib/utimens.c (gl_futimens): Require valid fd up front, using
24004         fewer syscalls on failure later on.  Avoid compiler warning on
24005         mingw.
24006         * modules/utimens (Depends-on): Add dup2.
24007
24008         utimens: add test
24009         * modules/utimens-tests: New test.
24010         * tests/test-utimens.h: New file.
24011         * tests/test-futimens.h: Likewise.
24012         * tests/test-utimens.c: Likewise.
24013
24014         doc: mention timestamp portability issues
24015         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
24016         instead.
24017         * doc/posix-functions/utime.texi (utime): Likewise.
24018         * doc/posix-functions/utimes.texi (utimes): Likewise.
24019         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
24020         instead.
24021         * doc/posix-functions/futimens.texi (futimens): Mention utimens
24022         module.
24023         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24024         Mention weakness with symlink timestamps.
24025         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
24026         to utimensat/futimens instead.
24027         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
24028
24029         test-dup2: enhance test
24030         * tests/test-dup2.c (main): Also check AT_FDCWD.
24031
24032         test-stat-time: avoid more spurious failures
24033         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
24034         xfs; and avoid race if the two timestamps cross quantization edge.
24035
24036         relocatable: prefer 'file system' over 'filesystem'
24037         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
24038         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
24039         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
24040         * doc/relocatable.texi (Enabling Relocatability): Likewise.
24041         * lib/relocatable.c (compute_curr_prefix): Likewise.
24042
24043 2009-10-10  Jim Meyering  <meyering@redhat.com>
24044
24045         stat-time-tests: check for the usleep function
24046         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
24047
24048 2009-10-10  Bruno Haible  <bruno@clisp.org>
24049
24050         * modules/xnanosleep: Put the Link section after the Include section.
24051
24052 2009-10-09  Eric Blake  <ebb9@byu.net>
24053
24054         dup2: work around FreeBSD 6.1 bug
24055         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
24056         * doc/posix-functions/dup2.texi (dup2): Document it.
24057         Reported by Nelson H. F. Beebe and Jim Meyering.
24058
24059         test-stat-time: port to buggy NFS clients
24060         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
24061         (test_ctime): Also skip test if mtime and ctime are skewed.
24062
24063         maint: prefer 'file system' over 'filesystem'
24064         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24065         * doc/posix-functions/lstat.texi (lstat): Likewise.
24066         * lib/file-has-acl.c (file_has_acl): Likewise.
24067         * lib/fwriteerror.c [TEST]: Likewise.
24068         * tests/test-areadlink.h (test_areadlink): Likewise.
24069         * tests/test-areadlinkat-with-size.c (main): Likewise.
24070         * tests/test-areadlinkat.c (main): Likewise.
24071         * tests/test-canonicalize-lgpl.c (main): Likewise.
24072         * tests/test-canonicalize.c (main): Likewise.
24073         * tests/test-fstatat.c (main): Likewise.
24074         * tests/test-linkat.c (main): Likewise.
24075         * tests/test-lstat.h (test_lstat_func): Likewise.
24076         * tests/test-mkdir.h (test_mkdir): Likewise.
24077         * tests/test-readlink.h (test_readlink): Likewise.
24078         * tests/test-remove.c (main): Likewise.
24079         * tests/test-rename.h (test_rename): Likewise.
24080         * tests/test-renameat.c (main): Likewise.
24081         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24082         * tests/test-symlink.h (test_symlink): Likewise.
24083         * tests/test-symlinkat.c (main): Likewise.
24084         * tests/test-unlink.h (test_unlink_func): Likewise.
24085         * tests/test-unlinkat.c (main): Likewise.
24086
24087         maint: make realtime library usage explicit
24088         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
24089         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
24090         * modules/settime (Link): Likewise.
24091         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
24092
24093         test-stat-time: speed up execution
24094         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
24095         warning on mingw.
24096         (nap): New helper function.
24097         (prepare_test): Use it to reduce sleep time.
24098         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
24099         execution.
24100         * modules/stat-time-tests (configure.ac): Check for usleep.
24101
24102 2009-10-09  Jim Meyering  <meyering@redhat.com>
24103
24104         selinux-h: always use getfilecon wrappers
24105         * lib/getfilecon.c: New file.
24106         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
24107         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
24108         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
24109         (fgetfilecon): Provide a stub.
24110         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
24111         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
24112         file unconditionally.
24113         When <selinux/selinux.h> is found, arrange to use wrappers.
24114         * modules/selinux-h (Files): Add getfilecon.c.
24115         (Makefile.am): Substitute include-next-related bits
24116         into the now-always-generated selinux/selinux.h file.
24117         * doc/glibc-functions/lgetfilecon.texi: New file.
24118         * doc/glibc-functions/fgetfilecon.texi: New file.
24119         * doc/glibc-functions/getfilecon.texi: New file.
24120         * doc/glibc-functions/getfilecon-desc.texi: New file.
24121         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
24122         which to pull in the new files.
24123         * MODULES.html.sh (Misc): Add selinux-h.
24124
24125 2009-10-08  Jim Meyering  <meyering@redhat.com>
24126
24127         unistd: fix comment typo
24128         * lib/unistd.in.h (euidaccess): Fix a comment typo.
24129
24130 2009-10-08  Eric Blake  <ebb9@byu.net>
24131
24132         areadlink: use SIZE_MAX consistently
24133         * modules/areadlink (Depends-on): Add stdint.
24134         * modules/areadlink-with-size (Depends-on): Likewise.
24135         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
24136         gives NULL; drop sys/types, since unistd gives size_t; and add
24137         stdint for SIZE_MAX.
24138         (SIZE_MAX): Rely on headers.
24139         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
24140         and add stdint.
24141         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
24142         (SIZE_MAX): Likewise.
24143         (INITIAL_BUF_SIZE): Turn into enum.
24144         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
24145
24146 2009-10-08  Jim Meyering  <meyering@redhat.com>
24147
24148         areadlinkat: avoid compilation failure
24149         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
24150         Fix typo in comment.
24151
24152 2009-10-07  Eric Blake  <ebb9@byu.net>
24153
24154         areadlinkat-with-size: new module
24155         * modules/areadlinkat-with-size: New module.
24156         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
24157         * lib/areadlink.h (areadlinkat): Declare it.
24158         * MODULES.html.sh (File system functions): Mention it.
24159         * modules/areadlinkat-with-size-tests: New test.
24160         * tests/test-areadlinkat-with-size.c: New file.
24161
24162         xreadlinkat: new module
24163         * modules/xreadlinkat: New module.
24164         * lib/xreadlinkat.c (xreadlinkat): New file.
24165         * lib/xreadlink.h (xreadlinkat): Declare it.
24166         * MODULES.html.sh (File system functions): Mention it.
24167
24168         areadlinkat: new module
24169         * lib/at-func.c (FUNC_FAIL): New define.
24170         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
24171         * modules/areadlinkat: New module.
24172         * lib/linkat.c (areadlinkat): Move...
24173         * lib/areadlinkat.c (areadlinkat): ...to new file.
24174         * lib/areadlink.h (areadlinkat): Declare it.
24175         * modules/linkat (Depends-on): Add areadlinkat.
24176         * MODULES.html.sh (File system functions): Mention it.
24177         * modules/areadlinkat-tests: New test.
24178         * tests/test-areadlinkat.c: New file.
24179
24180         areadlink, areadlink-with-size: add tests
24181         * modules/areadlink-tests: New test.
24182         * modules/areadlink-with-size-tests: Likewise.
24183         * tests/test-areadlink.h: New file.
24184         * tests/test-areadlink.c: Likewise.
24185         * tests/test-areadlink-with-size.c: Likewise.
24186
24187         maint: minor cleanups
24188         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
24189         _UNUSED_PARAMETER_ instead.
24190         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
24191         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
24192         * modules/linkat-tests (Files): Distribute test-link.h.
24193
24194         openat, utimens: whitespace cleanup
24195         * lib/openat.c: Prefer space throughout, rather than mix of 8
24196         spaces vs. tabs.
24197         * lib/at-func.c: Likewise.
24198         * lib/utimens.c: Likewise.
24199
24200         openat: avoid using wrong fd
24201         * lib/openat.c (openat_permissive): Reject user's fd if saving the
24202         working directory chooses same fd.
24203         * lib/at-func.c (AT_FUNC_NAME): Likewise.
24204
24205         mkdir, mkdirat: fix cygwin 1.5.x bug
24206         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
24207         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
24208         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
24209         bug.
24210         (gl_PREREQ_MKDIR): Delete unused macro.
24211         * modules/mkdir (Files): Track file rename.
24212         (configure.ac): Update macro name.
24213         * modules/openat (Depends-on): Add mkdir.
24214         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
24215
24216         mkdir, mkdirat: add tests
24217         * modules/mkdir-tests: New test.
24218         * tests/test-mkdir.h: New file.
24219         * tests/test-mkdir.c: Likewise.
24220         * tests/test-mkdirat.c: Likewise.
24221         * modules/openat-tests (Files): Add new files.
24222         (Makefile.am): Run new test.
24223
24224 2009-10-06  Eric Blake  <ebb9@byu.net>
24225
24226         doc: tweak *at function documentation
24227         * doc/posix-functions/faccessat.texi (faccessat): Mention
24228         known issue with replacement.
24229         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
24230         * doc/posix-functions/linkat.texi (linkat): Likewise.
24231         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24232         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24233         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24234         * doc/posix-functions/renameat.texi (renameat): Likewise.
24235         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24236
24237         openat: fix GNU/Hurd bug in unlinkat
24238         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
24239         broken.
24240         * doc/posix-functions/unlink.texi (unlink): Document this.
24241         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
24242
24243         fdopendir: fix GNU/Hurd bug
24244         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
24245         allowing non-directory fds.
24246         * lib/fdopendir.c (rpl_fdopendir): Work around it.
24247         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24248         * modules/dirent (Makefile.am): Substitute it.
24249         * lib/dirent.in.h (fdopendir): Declare replacement.
24250         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
24251         * tests/test-fdopendir.c (main): Test something other than
24252         /dev/null, since on Hurd that behaves like a directory.
24253
24254         test-symlink: port to GNU/Hurd
24255         * tests/test-symlink.h (test_symlink): Relax expected errno.
24256
24257         doc: tweak more cygwin information
24258         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
24259         now compatible with glibc.
24260         * doc/posix-functions/getopt.texi (getopt): Likewise.
24261
24262         getopt-gnu: add another test
24263         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
24264         guarantee behavior relied on by m4.
24265         * tests/test-getopt.c (main): Use it.
24266         * modules/getopt-posix-tests (Depends-on): Add setenv.
24267         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
24268
24269         getopt: fix compilation on darwin
24270         * lib/getopt.in.h (includes): Leave breadcrumbs during system
24271         include.
24272         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
24273         Reported by Ludovic Courtès.
24274
24275 2009-10-06  Bruno Haible  <bruno@clisp.org>
24276
24277         * modules/size_max (Description): Discourage its use.
24278         Reported by Simon Josefsson.
24279
24280 2009-10-06  Jim Meyering  <meyering@redhat.com>
24281
24282         linkat: avoid compilation failure
24283         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
24284
24285 2009-10-05  Eric Blake  <ebb9@byu.net>
24286
24287         linkat: support Linux 2.6.17
24288         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
24289         linkat on Linux, but allow cache variable override.
24290         * lib/linkat.c (rpl_linkat): Define override.
24291         * modules/linkat (Depends-on): Add symlinkat.
24292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
24293         * modules/unistd (Makefile.am): Substitute it.
24294         * lib/unistd.in.h (linkat): Declare replacement.
24295         Reported by Pádraig Brady.
24296
24297         quotearg: port test to systems with C.UTF-8 locale
24298         * tests/test-quotearg.c (struct result_strings): Add another
24299         member, differentiating between C.ASCII and C.UTF-8 handling.
24300         (compare_strings): Add parameter.
24301         (main): Adjust all callers.
24302
24303         getopt: avoid clash with FreeBSD _getopt_internal
24304         * lib/getopt.in.h (_getopt_internal): Override the name.
24305         * lib/getopt_int.h (includes): Pick up any overrides.
24306         Reported by Reuben Thomas.
24307
24308         hash: allow C89 compilation
24309         * lib/hash.c (check_tuning): Move declaration before statement.
24310         Reported by Reuben Thomas.
24311
24312 2009-10-05  Karl Berry  <karl@gnu.org>
24313
24314         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
24315
24316 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
24317             Bruno Haible  <bruno@clisp.org>
24318
24319         * lib/uname.c (uname): Use a table-driven algorithm to compute
24320         Windows NT versions.
24321
24322 2009-10-04  Bruno Haible  <bruno@clisp.org>
24323
24324         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
24325         program_invocation_short_name.
24326         * modules/progname (configure.ac): Test for presence of
24327         program_invocation_short_name.
24328         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24329
24330 2009-10-04  Bruno Haible  <bruno@clisp.org>
24331
24332         * lib/progname.c (set_program_name): Fix comment.
24333         Reported by Jim Meyering.
24334
24335 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24336             Bruno Haible  <bruno@clisp.org>
24337
24338         * lib/uname.c: Include <string.h>.
24339         (uname): Do only one call to GetVersionEx in the common case.
24340
24341 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24342             Bruno Haible  <bruno@clisp.org>
24343
24344         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
24345         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
24346         (uname): Add support for Windows CE and various non-x86 CPU types.
24347
24348 2009-10-03  Bruno Haible  <bruno@clisp.org>
24349
24350         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
24351         invocation to tests/configure.ac.
24352         Reported by Ian Beckwith <ianb@erislabs.net>.
24353
24354 2009-10-02  Eric Blake  <ebb9@byu.net>
24355
24356         fchdir: avoid compiler warning
24357         * lib/fchdir.c (canonicalize_file_name)
24358         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
24359
24360         test-open: support mingw errno values
24361         * tests/test-open.h (test_open): Relax test.
24362         * tests/test-fopen.h (test_fopen): Likewise.
24363         * tests/test-openat-safer.c (main): Likewise.
24364
24365         open: fix opening directory on mingw
24366         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
24367
24368         test-open: on GNU/Hurd, /dev/null is a directory
24369         * tests/test-fopen.h (main): Rename...
24370         (test_fopen): ...to this.  Use a guaranteed non-directory when
24371         confirming open behavior on trailing slash.
24372         * tests/test-openat-safer.c (main): Likewise.
24373         * tests/test-open.h (main): Likewise....
24374         (test_open): ...to this.
24375         * tests/test-fopen.c (main): Adjust caller.
24376         * tests/test-fopen-safer.c (main): Likewise.
24377         * tests/test-open.c (main): Likewise.
24378         * tests/test-fcntl-safer.c (main): Likewise.
24379         Reported by Samuel Thibault.
24380
24381         rename, fchdir: don't ignore chdir failure
24382         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
24383         * lib/rename.c (rpl_rename) [W32]: Likewise.
24384         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
24385         an empty destination directory if source cannot be renamed,
24386         although there is still possibility for failure.
24387         * doc/posix-functions/rename.texi (rename): Document the race.
24388         Reported by Jim Meyering.
24389
24390         maint: cleanup whitespace in recent commits
24391         * lib/rename.c (rpl_rename): Remove tabs.
24392         * tests/test-link.h (test_link): Likewise.
24393         * lib/fchdir.c (get_name): Likewise.
24394         Reported by Jim Meyering.
24395
24396 2009-10-02  Ben Pfaff  <blp@gnu.org>
24397
24398         relocatable-prog-wrapper: Add missing dependency on
24399         double-slash-root.
24400         * modules/relocatable-prog-wrapper: Add dependency.
24401         Reported by Ian Beckwith <ianb@erislabs.net>.
24402
24403 2009-10-02  Eric Blake  <ebb9@byu.net>
24404
24405         renameat: fix Solaris bugs
24406         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
24407         needed fixing.
24408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
24409         * modules/stdio (Makefile.am): Substitute it.
24410         * lib/stdio.in.h (renameat): Declare replacement.
24411         * lib/renameat.c (rpl_renameat): Implement fix.
24412
24413         renameat: new module
24414         * modules/renameat: New file.
24415         * lib/renameat.c (renameat): Likewise.
24416         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
24417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24418         * modules/stdio (Makefile.am): Substitute them.
24419         * lib/stdio.in.h (renameat): Declare it.
24420         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24421         * doc/posix-functions/renameat.texi (renameat): Likewise.
24422         * modules/renameat-tests: New test.
24423         * tests/test-renameat.c: Likewise.
24424
24425         rename: fix mingw bugs
24426         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
24427         directory overwrite bugs.
24428
24429         rename: fix another cygwin 1.5 bug
24430         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
24431         checks.
24432         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
24433         unnecessary cygwin workarounds.  Also work around bug with moving
24434         full directory onto an empty one.
24435         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
24436
24437         rename-dest-slash: merge into rename module
24438         * modules/rename-dest-slash (Status): Mark obsolete.
24439         (Depends-on): Add rename.
24440         (Files): Let rename do it all.
24441         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
24442         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
24443         * m4/rename-dest-slash.m4: ...so this file can be deleted.
24444         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
24445         * lib/rename.c (rpl_rename): Update comments.
24446
24447         rename: fix cygwin 1.5.x bugs
24448         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
24449         * lib/rename.c (rpl_rename): Work around them.
24450         * modules/rename (Depends-on): Add same-inode.
24451
24452         rename: fix Solaris 10 bug
24453         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24454         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
24455         was the only bug.
24456
24457         rename: fix Solaris 9 bug
24458         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
24459         on non-directory.  Avoid calling exit.
24460         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
24461         strdup.
24462         * modules/rename-tests (Depends-on): Drop lstat.
24463         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24464         (gl_PREREQ_RENAME): Delete unused macro.
24465
24466         rename-dest-slash: fix NetBSD bug
24467         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
24468         links.
24469         * modules/rename-dest-slash (Depends-on): Add same-inode.
24470
24471         rename-tests: new test, exposes several platform bugs
24472         * modules/rename-tests: New file.
24473         * tests/test-rename.h: Likewise.
24474         * tests/test-rename.c: Likewise.
24475         * doc/posix-functions/rename.texi (rename): Improve documentation,
24476         including bugs that will eventually be fixed in gnulib.
24477
24478 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
24479
24480         * lib/uname.c: Include <stdlib.h>
24481         (uname): Assume version info is available.
24482
24483 2009-10-02  Jim Meyering  <meyering@redhat.com>
24484
24485         gnu-web-doc-update: correct --help output
24486         * build-aux/gnu-web-doc-update: Make --help output relevant.
24487
24488         gnu-web-doc-update: add standard options
24489         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
24490
24491         gnu-web-doc-update: New module.
24492         Use this script to automatically update the on-line web documentation
24493         for your GNU project at http://www.gnu.org/software/$pkg/manual/
24494         * modules/gnu-web-doc-update: New file, from coreutils.
24495         * build-aux/gnu-web-doc-update: New script.
24496
24497 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
24498
24499         link: LoadLibrary is not needed.
24500         * lib/link.c: Use GetModuleHandle.
24501
24502 2009-10-01  Eric Blake  <ebb9@byu.net>
24503
24504         getopt: bump serial number
24505         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
24506         change.
24507
24508         tests: tighten link, rmdir, and remove tests
24509         * tests/test-link.h (includes): No need to use <config.h> here.
24510         Clean up if directory hard link was created, otherwise test for
24511         trailing '.'.
24512         * tests/test-linkat.c (main): Simplify.
24513         * tests/test-remove.c (main): Enhance test for trailing '.'.
24514         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24515
24516 2009-10-01  Jim Meyering  <meyering@redhat.com>
24517
24518         maint.mk: requiring "make major" was annoying, for a "minor" release.
24519         What is intended is "stable", to contrast with alpha and beta,
24520         so require "make stable", not "make major".
24521         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
24522         (get_tool_versions): Likewise.
24523         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
24524
24525 2009-09-30  Ben Pfaff  <blp@gnu.org>
24526
24527         Fix broken build of replacement for Windows tmpfile().
24528         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
24529         flags argument added along with the 'mkostemp' module.
24530
24531 2009-09-28  Bruno Haible  <bruno@clisp.org>
24532
24533         Avoid identifier clash with POSIX function 'remove' defined as a macro.
24534         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
24535         to 'remove_elt'.
24536         (gl_list_remove): Update.
24537         * lib/gl_list.c (gl_list_remove): Update.
24538         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
24539         to 'remove_elt'.
24540         (gl_oset_remove): Update.
24541         * lib/gl_list.c (gl_oset_remove): Update.
24542         Reported by Eric Blake.
24543
24544 2009-09-28  Eric Blake  <ebb9@byu.net>
24545
24546         doc: mention yet more cygwin 1.7 status
24547         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
24548         cygwin.
24549         * doc/glibc-functions/execvpe.texi (execvpe): New file.
24550         * doc/gnulib.texi (Glibc unistd.h): Mention it.
24551
24552         argp: fix test failure
24553         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
24554         that are not upper-case.  Pass correct range to tolower.
24555
24556 2009-09-27  Jim Meyering  <meyering@redhat.com>
24557
24558         test-yesno: work around sparc-dash here-document infelicity
24559         Without this change, the literal \177 byte in a here document
24560         would make dash 0.5.5.1-3 access uninitialized memory.
24561         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
24562         Instead, use a marker, "@", and filter through tr to create the desired
24563         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
24564
24565 2009-09-27  Bruno Haible  <bruno@clisp.org>
24566
24567         Disable untested support for new flavours of ACLs on AIX.
24568         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
24569         progress.
24570         * lib/set-mode-acl.c (qset_acl): Likewise.
24571
24572 2008-12-07  Bruno Haible  <bruno@clisp.org>
24573
24574         Add support for new flavours of ACLs on AIX. (Untested.)
24575         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
24576         (file_has_acl): Add support for newer AIX.
24577         * lib/set-mode-acl.c (qset_acl): Likewise.
24578         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
24579         Rainer Tammer <tammer@tammer.net>.
24580
24581 2009-09-26  Eric Blake  <ebb9@byu.net>
24582
24583         argp: fix compilation of getopt
24584         * lib/getopt.in.h (includes): Use different guard than glibc.
24585         Reported by Sergey Poznyakoff.
24586
24587         doc: mention more cygwin 1.7 status
24588         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
24589         bug.
24590         * doc/posix-functions/execl.texi (execl): Likewise.
24591         * doc/posix-functions/execle.texi (execle): Likewise.
24592         * doc/posix-functions/execlp.texi (execlp): Likewise.
24593         * doc/posix-functions/execv.texi (execv): Likewise.
24594         * doc/posix-functions/execve.texi (execve): Likewise.
24595         * doc/posix-functions/execvp.texi (execvp): Likewise.
24596         * doc/glibc-functions/canonicalize_file_name.texi
24597         (canonicalize_file_name): Cygwin 1.7 now provides this.
24598         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
24599         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
24600         on AT_SYMLINK_NOFOLLOW.
24601
24602 2009-09-24  Eric Blake  <ebb9@byu.net>
24603
24604         test-linkat: make test more robust
24605         * tests/test-linkat.c (main): Avoid collision with EEXIST.
24606
24607         getopt: fix inclusion guards for cygwin
24608         * modules/getopt-posix (Depends-on): Add include-next.
24609         (Makefile.am): Substitute more items in replacement header.
24610         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
24611         <getopt.h>.
24612         * lib/getopt.in.h (includes): Use split inclusion guard, and
24613         prefer <getopt.h> over include <unistd.h> when one is present.
24614         (option): Also override name of 'struct option'.
24615
24616         same-inode: revert prior change; it is not yet ready
24617         * NEWS: Undo mention of this change.
24618         * lib/same-inode.h (same-inode.h): Undo tri-state change.
24619         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24620         * lib/cycle-check.c (cycle_check): Likewise.
24621         * lib/same.c (same_name): Likewise.
24622         * lib/at-func2.c (at_func2): Likewise.
24623
24624 2009-09-23  Eric Blake  <ebb9@byu.net>
24625
24626         linkat: new module
24627         * modules/linkat: New file.
24628         * lib/at-func2.c (at_func2): Likewise.
24629         * lib/linkat.c (linkat): Likewise.
24630         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24631         * lib/openat-priv.h (at_func2): Add declaration.
24632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24633         * modules/unistd (Makefile.am): Substitute them.
24634         * lib/unistd.in.h (linkat): Declare it.
24635         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24636         * doc/posix-functions/linkat.texi (linkat): Likewise.
24637         * doc/posix-functions/link.texi (link): Tweak wording.
24638         * tests/test-link.c (main): Move guts...
24639         * tests/test-link.h (test_link): ...into new file.
24640         * modules/linkat-tests: New test.
24641         * tests/test-linkat.c: Likewise.
24642         * modules/link-tests (Files): Ship new file.
24643         (Depends-on): Add stdbool.
24644
24645         dirname: add library-safe mdir_name
24646         * lib/dirname.h (mdir_name): New prototype.
24647         * lib/dirname.c (dir_name): Move guts...
24648         (mdir_name): ...to new function that avoids xalloc_die.
24649
24650         fchdir: another mingw fix
24651         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
24652         * lib/fchdir.c (get_name): New helper method; skips canonicalize
24653         on mingw (where it has not yet been ported), and make it optional
24654         elsewhere.
24655         (_gl_register_fd): Use it.
24656
24657         same-inode: make SAME_INODE tri-state, to port to mingw
24658         * NEWS: Mention this change.
24659         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
24660         st_ino always being 0.
24661         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24662         * lib/cycle-check.c (cycle_check): Likewise.
24663         * lib/same.c (same_name): Likewise.
24664
24665         lstat: avoid mingw compilation error
24666         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
24667         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
24668         lstat ourselves.
24669         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
24670         was adequate.
24671         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
24672         the checks for lstat.
24673         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
24674
24675         link: fix test failure on Solaris 9
24676         * lib/link.c (rpl_link): Don't assume link will catch bogus
24677         trailing slash on source.
24678
24679         test-symlinkat: enhance test
24680         * tests/test-readlink.c (main): Move guts...
24681         * tests/test-readlink.h (test_readlink): ...into new file.
24682         * tests/test-symlink.c (main): Move guts...
24683         * tests/test-symlink.h (test_symlink): ...into new file.
24684         * tests/test-symlinkat.c (main): Use new files for further
24685         coverage.
24686         (do_symlink, do_readlink): New helper functions.
24687         * modules/symlink-tests (Files): Ship new file.
24688         (Depends-on): Add stdbool.
24689         * modules/readlink-tests (Files): Ship new file.
24690         (Depends-on): Add stdbool.
24691         * modules/symlinkat-tests (Files): Use new files.
24692
24693 2009-09-23  Eric Blake  <ebb9@byu.net>
24694
24695         readlink: document portability issue with symlink length
24696         * doc/posix-functions/lstat.texi (lstat): Mention that some file
24697         systems have bogus st_size on symlinks, and mention the
24698         areadlink-with-size module.
24699         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24700         * doc/posix-functions/readlink.texi (readlink): Mention the
24701         areadlink module, and ERANGE failure.
24702         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24703         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
24704
24705         readlink: fix Solaris 9 bug with trailing slash
24706         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
24707         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
24708         * doc/posix-functions/readlink.texi (readlink): Document this.
24709         * modules/readlink-tests: New test.
24710         * tests/test-readlink.c: Likewise.
24711
24712         readlink: fix cygwin 1.5.x bug with return type
24713         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
24714         * lib/unistd.in.h (readlink): Use ssize_t.
24715         * lib/readlink.c (readlink): Likewise.
24716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24717         * modules/unistd (Makefile.am): Substitute it.
24718         * lib/unistd.in.h (readlink): Declare replacement.
24719         * doc/posix-functions/readlink.texi (readlink): Document this.
24720
24721         symlink: use throughout gnulib
24722         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
24723         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
24724         symlink is not used.
24725         * modules/symlinkat (Depends-on): Add symlink.
24726         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24727         * modules/canonicalize-tests (Depends-on): Likewise.
24728         * modules/lstat-tests (Depends-on): Likewise.
24729         * modules/openat-tests (Depends-on): Likewise.
24730         * modules/remove-tests (Depends-on): Likewise.
24731         * modules/rmdir-tests (Depends-on): Likewise.
24732         * modules/unlink-tests (Depends-on): Likewise.
24733         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
24734         * tests/test-canonicalize.c (symlink): Likewise.
24735         * tests/test-fstatat.c (symlink): Likewise.
24736         * tests/test-lstat.c (symlink): Likewise.
24737         * tests/test-remove.c (symlink): Likewise.
24738         * tests/test-rmdir.c (symlink): Likewise.
24739         * tests/test-unlink.c (symlink): Likewise.
24740         * tests/test-unlinkat.c (symlink): Likewise.
24741
24742         symlink: new module, for Solaris 9 bug
24743         * modules/symlink: New file.
24744         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24745         * lib/symlink.c: Likewise.
24746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24747         * modules/unistd (Makefile.am): Substitute them.
24748         * lib/unistd.in.h (symlink): Declare replacement.
24749         * MODULES.html.sh (File system functions): Mention it.
24750         * doc/posix-functions/symlink.texi (symlink): Likewise.
24751         * modules/symlink-tests: New test.
24752         * tests/test-symlink.c: Likewise.
24753
24754 2009-09-23  Bruno Haible  <bruno@clisp.org>
24755
24756         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
24757         when needed.
24758         Test case: gnulib-tool --import --with-tests atexit inttypes.
24759         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
24760
24761 2009-09-23  Bruno Haible  <bruno@clisp.org>
24762
24763         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
24764         subcommand, not in a subshell.
24765
24766 2009-09-22  Eric Blake  <ebb9@byu.net>
24767
24768         unistd: sort replacement declarations
24769         * lib/unistd.in.h: Sort declarations.
24770
24771         open, openat: minor optimization
24772         * lib/open.c (open): If open succeeded, len is non-zero.
24773         * lib/openat.c (rpl_openat): Likewise.
24774
24775         link-follow: ensure correct result
24776         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
24777         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
24778         distinguish between possible failures.
24779
24780 2009-09-21  Eric Blake  <ebb9@byu.net>
24781
24782         fts: avoid compiler warning
24783         * lib/fts.c (dirent_inode_sort_may_be_useful)
24784         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
24785
24786 2009-09-19  Bruno Haible  <bruno@clisp.org>
24787
24788         * lib/progreloc.c (canonicalize_file_name): New declaration.
24789
24790 2009-09-19  Eric Blake  <ebb9@byu.net>
24791
24792         link: fix quoting
24793         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
24794
24795         openat: fix openat bugs on Solaris 9
24796         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
24797         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
24798         * modules/openat (Depends-on): Add open.
24799         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
24800         * modules/fcntl-h (Makefile.am): Substitute it.
24801         * lib/fcntl.in.h (openat): Declare replacement.
24802         * doc/posix-functions/openat.texi (openat): Document this.
24803
24804         openat: move fstatat and unlinkat into correct files
24805         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
24806         compiled.
24807         * lib/openat.c (fstatat, unlinkat): Move...
24808         * lib/fstatat.c (fstatat): ...into correct files.
24809         * lib/unlinkat.c (unlinkat): Likewise.
24810
24811         openat: fix unlinkat bugs on Solaris 9
24812         * lib/unlinkat.c (unlinkat): New file.
24813         * modules/openat (Depends-on): Add unlink.
24814         (Files): Distribute it.
24815         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
24816         trailing slash behavior is broken.
24817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24818         * modules/unistd (Makefile.am): Substitute it.
24819         * lib/unistd.in.h (unlinkat): Declare replacement.
24820         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
24821
24822         openat: fix fstatat bugs on Solaris 9
24823         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
24824         stat.
24825         * doc/posix-functions/fstatat.texi (fstatat): Document this.
24826
24827         test-unlinkat: enhance test, to expose Solaris 9 bug
24828         * tests/test-unlink.c (main): Factor guts...
24829         * tests/test-unlink.h (test_rmdir_func): ...into new file.
24830         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
24831         * tests/test-rmdir.c (main): Adjust caller.
24832         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
24833         (unlinker): New helper function.
24834         (rmdirat): Enhance check.
24835         * modules/rmdir-tests (Depends-on): Add stdbool.
24836         * modules/unlink-tests (Depends-on): Likewise.
24837         (Files): Add test-unlink.h.
24838         * modules/openat-tests (Files): Likewise.
24839         (Depends-on): Add unlinkdir.
24840
24841         test-fstatat: new test, to expose Solaris 9 bugs
24842         * tests/test-stat.c (main): Factor guts...
24843         * tests/test-stat.h (test_stat_func): ...into new file.
24844         * tests/test-lstat.c (main): Factor guts...
24845         * tests/test-lstat.h (test_lstat_func): ...into new file.
24846         * tests/test-fstatat.c: New file.
24847         * modules/stat-tests (Files): Add test-stat.h.
24848         * modules/lstat-tests (Files): Add test-lstat.h.
24849         (Depends-on): Add stdbool.
24850         * modules/openat-tests (Depends-on): Add pathmax.
24851         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
24852         (Makefile.am): Run new test.
24853
24854         remove: new module, for mingw and Solaris 9 bugs
24855         * modules/remove: New file.
24856         * lib/remove.c: Likewise.
24857         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
24858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24859         * modules/stdio (Makefile.am): Use them.
24860         * lib/stdio.in.h (remove): Declare replacement.
24861         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24862         * doc/posix-functions/remove.texi (remove): Likewise.
24863         * modules/remove-tests: New test.
24864         * tests/test-remove.c: Likewise.
24865
24866         unlink: new module, for Solaris 9 bug
24867         * modules/unlink: New file.
24868         * lib/unlink.c: Likewise.
24869         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24871         * modules/unistd (Makefile.am): Use them.
24872         * lib/unistd.in.h (stat): Declare replacement.
24873         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24874         * doc/posix-functions/unlink.texi (unlink): Likewise.
24875         * modules/unlink-tests: New test.
24876         * tests/test-unlink.c: Likewise.
24877
24878         lstat: fix Solaris 9 bug
24879         * lib/lstat.c (lstat): Also check for trailing slash on
24880         non-symlink, non-directories.  Use stat module to simplify logic.
24881         * doc/posix-functions/lstat.texi (lstat): Document it.
24882         * modules/lstat-tests (Depends-on): Add errno, same-inode.
24883         (configure.ac): Check for symlink.
24884         * tests/test-lstat.c (main): Add more tests.
24885
24886         stat: add as dependency to other modules
24887         * modules/chown (Depends-on): Add stat.
24888         * modules/euidaccess (Depends-on): Likewise.
24889         * modules/fchdir (Depends-on): Likewise.
24890         * modules/isdir (Depends-on): Likewise.
24891         * modules/link (Depends-on): Likewise.
24892         * modules/lstat (Depends-on): Likewise.
24893         * modules/mkdir-p (Depends-on): Likewise.
24894         * modules/modechange (Depends-on): Likewise.
24895         * modules/open (Depends-on): Likewise.
24896         * modules/readlink (Depends-on): Likewise.
24897         * modules/same (Depends-on): Likewise.
24898
24899         stat: fix Solaris 9 bug
24900         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
24901         slash.
24902         * lib/stat.c (rpl_stat): Work around it.
24903         * doc/posix-functions/stat.texi (stat): Update documentation.
24904
24905         stat: new module, for mingw bug
24906         * modules/stat: New file.
24907         * lib/stat.c: Likewise.
24908         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24909         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24910         * modules/sys_stat (Makefile.am): Use them.
24911         * lib/sys_stat.in.h (stat): Declare replacement.
24912         * lib/openat.c (fstatat): Deal with lstat and stat being function
24913         macros.
24914         * modules/openat (Depends-on): Add inline.
24915         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24916         * doc/posix-functions/stat.texi (stat): Likewise.
24917         * modules/stat-tests: New test.
24918         * tests/test-stat.c: Likewise.
24919
24920 2009-09-19  Jim Meyering  <meyering@redhat.com>
24921
24922         syntax-check: detect unnecessary inclusion of canonicalize.h
24923         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
24924
24925 2009-09-19  Eric Blake  <ebb9@byu.net>
24926
24927         canonicalize-lgpl: adjust clients to use correct header
24928         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24929         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
24930         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
24931         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
24932         * lib/progreloc.c (includes): Likewise.
24933
24934 2009-09-19  Jim Meyering  <meyering@redhat.com>
24935
24936         test-posixtm.c: correct a comment
24937         * tests/test-posixtm.c: Correct first-line comment.
24938         Spotted by Eric Blake.
24939
24940 2009-09-16  Jim Meyering  <meyering@redhat.com>
24941
24942         posixtm-tests: make T const-correct; add a test case
24943         * tests/test-posixtm.c (T): Declare const.
24944         Add a test for -(2^31+1).
24945         Remove useless can-succeed-only-in-2002 test.
24946
24947         posixtm-tests: adjust the sole failing test
24948         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
24949         expected output matches what mktime now produces.  Cross-checked via
24950         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
24951
24952         posixtm: move #ifdef'd tests into a new module
24953         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
24954         * tests/test-posixtm.c: ... this new file.
24955         * modules/posixtm-tests: New module.
24956
24957 2009-09-19  Eric Blake  <ebb9@byu.net>
24958
24959         openat: simplify use of at-func.c
24960         * lib/at-func.c (includes): Include prerequisites here, to
24961         simplify requirements on client files.
24962         * lib/openat-priv.h: Add double-inclusion guard.
24963         * lib/faccessat.c (includes): Simplify.
24964         * lib/fchmodat.c (includes): Likewise.
24965         * lib/fchownat.c (includes): Likewise.
24966         * lib/mkdirat.c (includes): Likewise.
24967         * lib/mkfifoat.c (includes): Likewise.
24968         * lib/symlinkat.c (includes): Likewise.
24969
24970         openat: allow return of fd 0
24971         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
24972         * modules/save-cwd (Depends-on): Replace fcntl-safer with
24973         unistd-safer.
24974         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
24975         <fcntl.h>; this module does not leak fds.
24976         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
24977         must be allowed to return 0, leaving openat_safer to add the
24978         safety.
24979         (openat_permissive): Avoid writing to just-opened fd 2 if
24980         restoring the current directory fails.
24981         * lib/openat-die.c (openat_restore_fail): Add comment.
24982         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
24983         (save_cwd): Guarantee safe fd, but without use of open_safer.
24984         * tests/test-openat.c: New test.
24985         * modules/openat-tests (Files, Makefile.am): Distribute and build
24986         new file.
24987
24988         relocatable-prog-wrapper: fix build
24989         * modules/relocatable-prog-wrapper (Files): Update name of
24990         canonicalize m4 file, broken on 2009-09-17.
24991         Reported by emad hajjar <aleppos@hotmail.com>.
24992
24993 2009-09-19  Bruno Haible  <bruno@clisp.org>
24994
24995         * lib/safe-alloc.h: Use the standard header with GPL copyright.
24996         * lib/safe-alloc.c: Likewise.
24997         Reported by Ian Beckwith <ianb@erislabs.net>.
24998
24999 2009-09-18  Bruno Haible  <bruno@clisp.org>
25000
25001         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
25002         Reported by <erobles@sensacd.com.mx>.
25003
25004 2009-09-17  Eric Blake  <ebb9@byu.net>
25005
25006         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
25007         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
25008         slashes when checking if last component is missing.
25009         * tests/test-canonicalize.c (main): Test this.
25010
25011         canonicalize, canonicalize-lgpl: honor // if distinct from /
25012         * modules/canonicalize (Files): Add double-slash-root.m4.
25013         * modules/canonicalize-lgpl (Files): Likewise.
25014         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25015         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
25016         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
25017         fallback definition.
25018         (canonicalize_filename_mode): Use it to protect //.
25019         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
25020         (__realpath): Likewise.
25021         * tests/test-canonicalize.c (main): Test this.
25022         * tests/test-canonicalize-lgpl.c (main): Likewise.
25023         * modules/canonicalize-tests (Depends-on): Add same-inode.
25024         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25025
25026         canonicalize-lgpl: fix glibc bug with trailing slash
25027         * m4/canonicalize-lgpl.m4: Move contents...
25028         * m4/canonicalize.m4: ...here.
25029         (gl_CANONICALIZE_LGPL): Factor realpath check...
25030         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
25031         glibc 2.3.5 bug, fixed 2005-04-27.
25032         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
25033         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
25034         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
25035         * modules/canonicalize-lgpl (Files): Manage file rename.
25036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25037         * modules/stdlib (Makefile.am): Substitute witness.
25038         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
25039         is needed.
25040         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
25041         replacement is required.
25042         * lib/canonicalize.c (canonicalize_file_name): Likewise.
25043         * doc/glibc-functions/canonicalize_file_name.texi
25044         (canonicalize_file_name): Document this.
25045         * doc/posix-functions/realpath.texi (realpath): Likewise.
25046
25047         canonicalize-lgpl: reject non-directory with trailing slash
25048         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
25049         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
25050         catches failures in glibc 2.3.5.
25051         * tests/test-canonicalize.c (main): Likewise.
25052
25053         canonicalize-lgpl: use native realpath if it works
25054         * lib/canonicalize-lgpl.c (realpath): Guard with
25055         FUNC_REALPATH_WORKS.
25056         * lib/stdlib.in.h (realpath): Make declaration optional based on
25057         HAVE_REALPATH.
25058         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
25059         native realpath works.
25060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25061         * modules/stdlib (Makefile.am): Substitute witness.
25062
25063         canonicalize, canonicalize-lgpl: use <stdlib.h>
25064         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
25065         (Include): Mention <stdlib.h>.
25066         (configure.ac): Mention functions we provide.
25067         * modules/canonicalize (configure.ac): Likewise.
25068         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
25069         realpath if canonicalize_file_name is missing.
25070         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
25071         * modules/stdlib (Makefile.am): Substitute witnesses.
25072         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
25073         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
25074         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
25075         * NEWS: Document this.
25076         * doc/glibc-functions/canonicalize_file_name.texi
25077         (canonicalize_file_name): Likewise.
25078         * doc/posix-functions/realpath.texi (realpath): Likewise.
25079         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
25080
25081         test-canonicalize: consolidate into single C program
25082         * tests/test-canonicalize.sh: Delete; move setup into...
25083         * tests/test-canonicalize.c (main): ...the program, making it
25084         easier to run in debugger.  Add some tests.
25085         * modules/canonicalize-tests (Files): Remove unused file.
25086         (Depends-on): Add progname.
25087         (configure.ac, Makefile.am): Simplify.
25088
25089         test-canonicalize-lgpl: consolidate into single C program
25090         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
25091         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
25092         easier to run in debugger.  Add some tests.
25093         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
25094         (configure.ac, Makefile.am): Simplify.
25095
25096         canonicalize: avoid resolvepath
25097         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
25098         unnecessary checks.
25099         * lib/canonicalize.c (includes): Simplify.
25100         (canonicalize_file_name): Drop resolvepath implementation.
25101         * modules/canonicalize (Depends-on): Drop filenamecat.
25102
25103         canonicalize: don't lose errno
25104         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
25105         over calls to free.
25106
25107         canonicalize: simplify errno handling
25108         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
25109         assignment.
25110
25111         canonicalize, canonicalize-lgpl: update module dependencies
25112         * modules/canonicalize (Depends-on): Add extensions, lstat,
25113         pathmax, stdlib.
25114         (Files): Drop pathmax.h.
25115         (configure.ac): Adjust macro name.
25116         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
25117         lstat, stdlib, sys_stat.
25118         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
25119         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
25120         extensions.
25121         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
25122         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
25123         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
25124         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
25125         declaration, if available.
25126         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
25127         we can rely on the readlink module.
25128         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
25129         (includes): Use <unistd.h> unconditionally.
25130
25131 2009-09-17  Eric Blake  <ebb9@byu.net>
25132
25133         maint: make Include sections of modules consistent
25134         * modules/alloca: Use only header name; no need to list #include.
25135         * modules/alloca-opt: Likewise.
25136         * modules/arpa_inet: Likewise.
25137         * modules/canon-host: Likewise.
25138         * modules/configmake: Likewise.
25139         * modules/dirent: Likewise.
25140         * modules/eealloc: Likewise.
25141         * modules/environ: Likewise.
25142         * modules/fchdir: Likewise.
25143         * modules/fcntl: Likewise.
25144         * modules/fcntl-h: Likewise.
25145         * modules/gethrxtime: Likewise.
25146         * modules/gettime: Likewise.
25147         * modules/ignore-value: Likewise.
25148         * modules/inet_ntop: Likewise.
25149         * modules/inet_pton: Likewise.
25150         * modules/inttypes: Likewise.
25151         * modules/isnand-nolibm: Likewise.
25152         * modules/isnanf-nolibm: Likewise.
25153         * modules/mbchar: Likewise.
25154         * modules/mbfile: Likewise.
25155         * modules/mbiter: Likewise.
25156         * modules/mbuiter: Likewise.
25157         * modules/netdb: Likewise.
25158         * modules/netinet_in: Likewise.
25159         * modules/nproc: Likewise.
25160         * modules/pagealign_alloc: Likewise.
25161         * modules/poll: Likewise.
25162         * modules/printf-frexp: Likewise.
25163         * modules/pthread: Likewise.
25164         * modules/putenv: Likewise.
25165         * modules/random_r: Likewise.
25166         * modules/relocatable-prog: Likewise.
25167         * modules/search: Likewise.
25168         * modules/select: Likewise.
25169         * modules/selinux-h: Likewise.
25170         * modules/settime: Likewise.
25171         * modules/signal: Likewise.
25172         * modules/size_max: Likewise.
25173         * modules/socklen: Likewise.
25174         * modules/ssize_t: Likewise.
25175         * modules/stdarg: Likewise.
25176         * modules/stdbool: Likewise.
25177         * modules/stddef: Likewise.
25178         * modules/stdint: Likewise.
25179         * modules/stdio: Likewise.
25180         * modules/stdlib: Likewise.
25181         * modules/string: Likewise.
25182         * modules/strings: Likewise.
25183         * modules/sys_file: Likewise.
25184         * modules/sys_ioctl: Likewise.
25185         * modules/sys_select: Likewise.
25186         * modules/sys_socket: Likewise.
25187         * modules/sys_stat: Likewise.
25188         * modules/sys_time: Likewise.
25189         * modules/sys_times: Likewise.
25190         * modules/sys_utsname: Likewise.
25191         * modules/sys_wait: Likewise.
25192         * modules/sysexits: Likewise.
25193         * modules/time: Likewise.
25194         * modules/times: Likewise.
25195         * modules/tmpfile: Likewise.
25196         * modules/trim: Likewise.
25197         * modules/unistd: Likewise.
25198         * modules/wchar: Likewise.
25199         * modules/wctype: Likewise.
25200
25201 2009-09-17  Bruno Haible  <bruno@clisp.org>
25202
25203         Make getdate.y compile on QNX and NetBSD 5 / i386.
25204         * m4/getdate.m4 (gl_GETDATE): Conditionally define
25205         TIME_T_FITS_IN_LONG_INT.
25206         * lib/getdate.y (long_time_t): New type.
25207         (relative_time): Change type of 'seconds' field to long_time_t.
25208         (get_date): Update types of local variables. Check against overflow
25209         during conversion from long_time_t to time_t.
25210         Reported by Matt Kraai <kraai@ftbfs.org>
25211         and Hasso Tepper <hasso@netbsd.org>.
25212
25213 2009-09-17  Bruno Haible  <bruno@clisp.org>
25214
25215         * modules/COPYING: Update copyright years.
25216         * modules/README: Likeiwse.
25217         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
25218         Reported by Ian Beckwith <ianb@erislabs.net>.
25219
25220 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25221
25222         * users.txt: Update references for gnuit package.
25223
25224 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25225
25226         * m4/getdelim.m4: Fix typo in copyright line.
25227
25228 2009-09-17  Bruno Haible  <bruno@clisp.org>
25229
25230         * lib/atoll.c: Use the standard header with GPL copyright.
25231         * lib/argz.in.h: Likewise.
25232         * lib/glob.c: Likewise.
25233         * lib/glob-libc.h: Likewise.
25234         * lib/random_r.c: Likewise.
25235         * lib/siglist.h: Likewise.
25236         * lib/strsignal.c: Likewise.
25237         Reported by Ian Beckwith <ianb@erislabs.net>.
25238
25239 2009-09-17  Eric Blake  <ebb9@byu.net>
25240
25241         rmdir: ensure correct dependency order
25242         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
25243
25244 2009-09-17  Bruno Haible  <bruno@clisp.org>
25245
25246         Disable assertion that fails on NetBSD 5 / i386.
25247         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
25248         Reported by Sam Steingold <sds@gnu.org>
25249         and Hasso Tepper <hasso@netbsd.org>.
25250
25251 2009-09-16  Eric Blake  <ebb9@byu.net>
25252
25253         unlinkdir: port to mingw
25254         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
25255         on which no one can unlink a directory.
25256
25257         stdlib: sort witness names
25258         * modules/stdlib (Makefile.am): Sort replacements.
25259         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25260         * lib/stdlib.in.h: Likewise.
25261
25262         parse-duration-tests: avoid link failure
25263         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
25264         LIBINTL.
25265         Reported by Tom G. Christensen.
25266
25267         openat-tests: ensure unlinkat behaves like rmdir
25268         * tests/test-rmdir.c (main): Factor guts...
25269         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
25270         * modules/rmdir-tests (Files): Ship new file.
25271         * modules/openat-tests: New test.
25272         * tests/test-unlinkat.c: Likewise.
25273
25274         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
25275         * modules/rmdir-errno (Status, Notice): Now obsolete.
25276
25277         rmdir: work around cygwin 1.5.x and mingw bugs
25278         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
25279         * lib/rmdir.c (rmdir): Work around it.
25280         * modules/rmdir (Status, Notice): No longer obsolete.
25281         (Files): Add dos.m4.
25282         (Depends-on): Add unistd.
25283         (configure.ac): Set witnesses.
25284         (License): Relax to LGPLv2+.
25285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
25286         * modules/unistd (Makefile.am): Substitute witnesses.
25287         * lib/unistd.in.h (rmdir): Declare replacement.
25288         * doc/posix-functions/rmdir.texi (rmdir): Document this.
25289         * modules/rmdir-tests: New tests.
25290         * tests/test-rmdir.c: Likewise.
25291
25292 2009-09-15  Eric Blake  <ebb9@byu.net>
25293
25294         fchdir: improve use of replacement functions
25295         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
25296         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
25297         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
25298         REPLACE_CLOSEDIR.
25299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
25300         * modules/sys_stat (Makefile.am): Substitute correct witness.
25301         * modules/dirent (Makefile.am): Likewise.
25302         * modules/unistd (Makefile.am): Likewise.
25303         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
25304         * lib/unistd.in.h (dup): Likewise.
25305         * lib/sys_stat.in.h (fstat): Likewise.
25306
25307         maint: ignore gnulib-tool temp files
25308         * .gitignore: Ignore files created during gnulib-tool --test.
25309
25310 2009-09-13  Jim Meyering  <meyering@redhat.com>
25311
25312         posixtm: don't reject a time that specify "60" as the number of seconds
25313         * lib/posixtm.c (posixtime): The code to reject invalid dates
25314         would also reject a time specified with the .60 suffix.
25315         But POSIX allows that, in order to accommodate leap seconds.
25316         So don't reject it.
25317         (main): Adjust tests accordingly.
25318         * modules/posixtm (Depends-on): Add stpcpy.
25319
25320 2009-09-11  Jim Meyering  <meyering@redhat.com>
25321
25322         announce-gen: include [$release_type] in emitted Subject:
25323         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
25324         e.g., [stable] in the emitted Subject: line.
25325
25326 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25327
25328         Remove obsolete macros from several modules.
25329         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
25330         obsolete Autoconf macros with their modern counterparts.
25331         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
25332         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
25333         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
25334         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
25335         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
25336         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25337         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25338         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25339         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25340         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
25341         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
25342         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
25343         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
25344         * m4/sockets.m4 (gl_SOCKETS): Likewise.
25345         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
25346         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
25347         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
25348         * m4/time_r.m4 (gl_TIME_R): Likewise.
25349         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25350         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
25351         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25352
25353         Fix copyright header in build-aux scripts.
25354         * build-aux/git-version-gen: Fix copyright header to match GPLv3
25355         recommendation.
25356         * build-aux/ncftpput-ftp: Likewise.
25357         * build-aux/update-copyright: Likewise.
25358
25359 2009-09-09  Eric Blake  <ebb9@byu.net>
25360
25361         test-link: allow Linux choice of errno
25362         * tests/test-link.c (main): Relax test for alternate error.
25363
25364         strndup: fix improper m4 caching
25365         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
25366         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
25367         (gl_PREREQ_STRNDUP): Delete.
25368         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
25369         * modules/string (Makefile.am): Substitute it.
25370         * lib/string.in.h (strndup): Modernize prototype.
25371
25372         getcwd: port to mingw
25373         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
25374         different from the POSIX assumptions made throughout the getcwd
25375         module; fortunately, the mingw getcwd does not need replacement.
25376         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
25377         * modules/getcwd-tests: New test.
25378         * tests/test-getcwd.c: Likewise.
25379
25380         link: fix platform bugs
25381         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
25382         * lib/link.c (link): Work around them.  Fix related mingw bug.
25383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
25384         * modules/unistd (Makefile.am): Substitute it.
25385         * lib/unistd.in.h (link): Declare replacement.
25386         * doc/posix-functions/link.texi (link): Document this.
25387         * modules/link (Depends-on): Add strdup-posix, sys_stat.
25388
25389         test-link: consolidate into single C program, test more cases
25390         * tests/test-link.sh: Delete.
25391         * tests/test-link.c: Test more error conditions.  Exposes bugs on
25392         at least Cygwin and Solaris.
25393         * modules/link-tests (Files): Remove unused file.
25394         (Depends-on): Add errno, sys_stat.
25395         (Makefile.am): Simplify.
25396
25397 2009-09-08  Bruno Haible  <bruno@clisp.org>
25398
25399         Work around towlower, towupper bug on mingw.
25400         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
25401         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
25402         * doc/posix-functions/towlower.texi: Mention the mingw bug.
25403         * doc/posix-functions/towupper.texi: Likewise.
25404         Reported by Eric Blake.
25405
25406 2009-09-08  Jim Meyering  <meyering@redhat.com>
25407
25408         build: don't try to run autoheader if we don't use it
25409         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
25410         is not used in configure.ac.
25411
25412 2009-09-08  Eric Blake  <ebb9@byu.net>
25413
25414         euidaccess: fix compilation error
25415         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
25416
25417         rawmemchr: relax license
25418         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
25419         okay.
25420         Reported by Jim Meyering.
25421
25422         mkfifoat: new module
25423         * modules/mkfifoat: New file.
25424         * lib/mkfifoat.c: Likewise.
25425         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
25426         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25427         * modules/sys_stat (Makefile.am): Use them.
25428         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
25429         * MODULES.html.sh (File system functions): Mention module.
25430         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25431         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25432         * modules/mkfifoat-tests: New test.
25433         * tests/test-mkfifoat.c: Likewise.
25434
25435         strchrnul: relax license
25436         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
25437         okay.
25438         Reported by Jim Meyering.
25439
25440 2009-09-08  Eric Blake  <ebb9@byu.net>
25441
25442         fstatat: fix compilation on Solaris
25443         * lib/fstatat.c (includes): Add fcntl.h.
25444         Reported by Pádraig Brady.
25445
25446 2009-09-07  Eric Blake  <ebb9@byu.net>
25447
25448         rename: modernize replacement
25449         * modules/rename (Depends-on): Add stdio.
25450         (configure.ac): Declare witness.
25451         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
25452         stdio take care of replacement.
25453         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
25454         * modules/stdio (Makefile.am): Substitute them.
25455         * lib/stdio.in.h (rename): Declare replacement.
25456         * lib/rename.c (includes): Allow cross-compilation to non-windows
25457         machines.
25458         * doc/posix-functions/rename.texi (rename): Improve
25459         documentation.
25460
25461         stdio: sort witness names
25462         * modules/stdio (Makefile.am): Sort replacements.
25463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25464         * lib/stdio.in.h: Likewise.
25465
25466         getcwd: minor cleanups
25467         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
25468         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
25469
25470         openat: provide more convenience names
25471         * modules/faccessat (configure.ac): Add C witness.
25472         * lib/unistd.in.h (readlinkat): Fix typo.
25473         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
25474         convenience wrappers.
25475         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
25476         wrappers in syntax checks.
25477
25478 2009-09-06  Eric Blake  <ebb9@byu.net>
25479
25480         doc: fix comments in recent patches
25481         * lib/faccessat.c: Mention correct function.
25482         * lib/fchmodat.c: Likewise.
25483         * lib/fchownat.c: Likewise.
25484         * lib/symlinkat.c: Likewise.
25485         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
25486         constants.
25487
25488         faccessat, symlinkat: continue cleanup of previous patch
25489         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
25490         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25491         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
25492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
25493         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
25494         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
25495         set.
25496
25497 2009-09-06  Bruno Haible  <bruno@clisp.org>
25498
25499         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
25500         (fstatat): Declare if GNULIB_FSTATAT is set.
25501         (mkdirat): Declare if GNULIB_MKDIRAT is set.
25502         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
25503         (unlinkat): Declare if GNULIB_UNLINKAT is set.
25504         * modules/fcntl-h (Files): Remove m4/openat.m4.
25505         * modules/sys_stat (Files): Remove m4/openat.m4.
25506         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
25507         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
25508         * modules/unistd (Files): Remove m4/openat.m4.
25509         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
25510         GNULIB_OPENAT.
25511         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
25512         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
25513         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
25514         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
25515         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
25516         gl_OPENAT_DEFAULTS.
25517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
25518         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
25519         Don't require gl_OPENAT_DEFAULTS.
25520         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
25521         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
25522         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
25523         (gl_OPENAT_DEFAULTS): Remove macro.
25524
25525 2009-09-06  Bruno Haible  <bruno@clisp.org>
25526
25527         * modules/openat (configure.ac): Remove unneeded witness.
25528
25529 2009-09-06  Bruno Haible  <bruno@clisp.org>
25530
25531         Set errno to ENOSYS when a function is entirely unsupported.
25532         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
25533         EOPNOTSUPP.
25534         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25535         * modules/chown (Depends-on): Remove errno.
25536
25537 2009-09-06  Bruno Haible  <bruno@clisp.org>
25538
25539         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
25540
25541 2009-09-06  Bruno Haible  <bruno@clisp.org>
25542
25543         * lib/sys_stat.in.h: Fix preprocessor command indentation.
25544
25545 2009-09-06  Ben Pfaff  <blp@gnu.org>
25546             Bruno Haible  <bruno@clisp.org>
25547
25548         Work around a glibc bug in strtok_r.
25549         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
25550         Undefine if UNDEFINE_STRTOK_R is set.
25551         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
25552         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25553         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
25554         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
25555         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
25556         UNDEFINE_STRTOK_R.
25557         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
25558
25559 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25560
25561         exclude: minor fix
25562         * lib/exclude.c: Include wctype.h
25563
25564 2009-09-06  Akim Demaille  <demaille@gostai.com>
25565
25566         bootstrap: improve error message
25567         * build-aux/bootstrap (find_tool): Upon failure, report the list
25568         of candidates.
25569         Honor the initial value of the envvar.
25570
25571 2009-09-05  Eric Blake  <ebb9@byu.net>
25572
25573         symlinkat: new module
25574         * modules/symlinkat: New file.
25575         * lib/symlinkat.c: Likewise.
25576         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
25577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25578         * modules/unistd (Makefile.am): Use them.
25579         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
25580         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
25581         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
25582         * MODULES.html.sh (File system functions): Mention module.
25583         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25584         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25585         * modules/symlinkat-tests: New test.
25586         * tests/test-symlinkat.c: Likewise.
25587
25588         test-openat-safer: add more checks
25589         * tests/test-openat-safer.c (main): Check more code paths.
25590
25591 2009-09-05  Jim Meyering  <meyering@redhat.com>
25592
25593         syntax-check: detect unnecessary inclusion of openat.h
25594         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
25595
25596 2009-09-05  Bruno Haible  <bruno@clisp.org>
25597
25598         Support towlower, towupper.
25599         * doc/posix-functions/towlower.texi: Mention module wctype.
25600         * doc/posix-functions/towupper.texi: Likewise.
25601         * lib/wctype.in.h (towlower, towupper): New functions.
25602         * tests/test-wctype.c: Include stdio.h, stdlib.h.
25603         (ASSERT): New macro.
25604         (e): New variable.
25605         (main): Test also towlower, towupper. Test WEOF argument.
25606         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25607
25608 2009-09-05  Bruno Haible  <bruno@clisp.org>
25609
25610         Fix conversion behaviour when the input is invalid.
25611         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
25612         mark occurring in first pass of indirect conversion.
25613         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
25614         input.
25615         Found by clang's static analyzer.
25616
25617 2009-09-05  Bruno Haible  <bruno@clisp.org>
25618
25619         * tests/test-striconveh.c (main): Test indirect conversion on platforms
25620         where direct conversion is possible.
25621
25622 2009-09-04  Eric Blake  <ebb9@byu.net>
25623
25624         openat: fail with ENOENT on empty name
25625         * lib/openat-proc.c (openat_proc_name): Special-case the empty
25626         buffer.
25627
25628         link-follow: fix logic bug in prior patch
25629         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
25630         reversed sense of yes and no in prior patch.  Avoid confusing
25631         compilation failure with desired semantics.
25632
25633         link-follow: accomodate mingw and cross-compilation
25634         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
25635         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
25636         cross-compilation results to -1, to make linkat easier to
25637         implement when cross-compiling.  Trivially support mingw.
25638         * modules/link-follow (configure.ac): Call new name.
25639         * NEWS: Mention this.
25640
25641 2009-09-03  Eric Blake  <ebb9@byu.net>
25642
25643         faccessat: compile replacement
25644         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
25645         needed.
25646
25647         fts: fix compilation error
25648         * lib/fts.c (includes): Re-add "openat.h", for
25649         openat_needs_fchdir.
25650
25651         faccessat: new module
25652         * modules/faccessat: New file.
25653         * lib/faccessat.c: Likewise.
25654         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25656         * modules/unistd (Makefile.am): Use it.
25657         * lib/unistd.in.h (faccessat): Declare it.
25658         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
25659         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
25660         * MODULES.html.sh (File system functions): Mention it.
25661         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
25662         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25663
25664         euidaccess: prefer POSIX over non-standard implementation
25665         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
25666         * lib/euidaccess.c (euidaccess): Use it if available.
25667
25668         openat: make template easier to use
25669         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
25670         AT_FUNC_F2 to be undefined.
25671         (VALIDATE_FLAG): New macro; use it to reject bad flags.
25672         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
25673         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
25674         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
25675         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
25676         Likewise.
25677         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
25678         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
25679         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
25680         Likewise.
25681
25682         openat: declare in POSIX headers
25683         * NEWS: Mention this.
25684         * modules/openat (configure.ac): Declare witnesses.
25685         (Depends-on): Add fcntl-h, sys_stat, unistd.
25686         (Include): Mention correct headers.
25687         * modules/fcntl-h (Depends-on): Add link-warning.
25688         (Files): Add openat.m4.
25689         (Makefile.am): Substitute witnesses.
25690         * modules/sys_stat (Files, Makefile.am): Likewise.
25691         * modules/unistd (Files, Makefile.am): Likewise.
25692         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
25693         (gl_OPENAT_DEFAULTS): New macro.
25694         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
25695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
25696         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
25697         (SYS_STAT_H): Remove unused variable.
25698         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
25699         * lib/fcntl--.h (includes): Remove unneeded header.
25700         * lib/openat-safer.c (includes): Likewise.
25701         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
25702         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
25703         appropriate headers.
25704         (__OPENAT_PREFIX): Delete.
25705         * lib/fcntl.in.h (openat): Provide declaration.
25706         (AT_FDCWD): Fix Solaris bug.
25707         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
25708         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
25709         * lib/fchmodat.c (includes):  Adjust to find declaration.
25710         * lib/fchownat.c (includes): Likewise.
25711         * lib/mkdirat.c (includes): Likewise.
25712         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
25713         still visible.
25714
25715 2009-09-02  Eric Blake  <ebb9@byu.net>
25716
25717         errno: use consistently
25718         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
25719         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
25720         * lib/canonicalize.c (ELOOP): Likewise.
25721         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
25722         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
25723         * lib/lchown.c (EOPNOTSUPP): Likewise.
25724         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
25725         * lib/savewd.c (ESTALE): Likewise.
25726         * lib/settime.c (ENOSYS): Likewise.
25727         * lib/utimens.c (ENOSYS): Likewise.
25728         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
25729         * lib/chdir-safer.c (ELOOP): Likewise.
25730         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
25731         * modules/c-stack (Depends-on): Add errno.
25732         * modules/canonicalize (Depends-on): Likewise.
25733         * modules/chdir-safer (Depends-on): Likewise.
25734         * modules/fdopendir (Depends-on): Likewise.
25735         * modules/inet_ntop (Depends-on): Likewise.
25736         * modules/inet_pton (Depends-on): Likewise.
25737         * modules/lchown (Depends-on): Likewise.
25738         * modules/openat (Depends-on): Likewise.
25739         * modules/savewd (Depends-on): Likewise.
25740         * modules/settime (Depends-on): Likewise.
25741         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
25742
25743         fts: avoid leaking fds
25744         * modules/fts (Depends-on): Add cloexec.
25745         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
25746         flag.
25747
25748         fts: make directory fds more robust
25749         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
25750         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
25751
25752         backupfile, chdir-long, fts, savedir: make safer
25753         * lib/backupfile.c (includes): Use "dirent--.h", since
25754         numbered_backup can write to stderr during readdir.
25755         * lib/savedir.c (includes): Likewise.
25756         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
25757         emulation can write to stderr on failure.
25758         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
25759         * lib/getcwd.c: Document why opendir_safer is unused.
25760         * lib/glob.c: Likewise.
25761         * lib/scandir.c: Likewise.
25762         * lib/openat-proc.c: Likewise, for open_safer.
25763         * modules/backupfile (Depends-on): Add dirent-safer.
25764         * modules/savedir (Depends-on): Likewise.
25765         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
25766         * modules/chdir-long (Depends-on): Add openat-safer.
25767
25768         openat-safer: new module
25769         * modules/openat-safer: New file.
25770         * lib/openat-safer.c: Likewise.
25771         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
25772         * lib/fcntl-safer.h (openat_safer): Declare.
25773         * lib/fcntl--.h (openat): Override.
25774         * MODULES.html.sh (File descriptor based I/O): Mention it.
25775         * lib/openat.h: Add double-inclusion guards.
25776         * lib/openat.c (includes): Only include "fcntl-safer.h", not
25777         "fcntl--.h", so we can implement openat.
25778         * modules/openat-safer-tests: New test.
25779         * tests/test-openat-safer.c: New file.
25780
25781         dirent-safer: new module
25782         * modules/dirent-safer: New file.
25783         * lib/dirent--.h: Likewise.
25784         * lib/dirent-safer.h: Likewise.
25785         * lib/opendir-safer.c: Likewise.
25786         * m4/dirent-safer.m4: Likewise.
25787         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
25788         * modules/dirent-safer-tests: New test.
25789         * tests/test-dirent-safer.c: New file.
25790         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
25791
25792         fdopendir: optimize on mingw
25793         * lib/unistd.in.h (_gl_directory_name): New prototype.
25794         * lib/fchdir.c (_gl_directory_name): Implement it.
25795         (fchdir): Use it to simplify implementation.
25796         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
25797         fchdir, when available, to avoid calling [f]chdir().
25798
25799         fdopendir: split into its own module
25800         * lib/openat.c (fdopendir): Move...
25801         * lib/fdopendir.c: ...into new file.
25802         * modules/fdopendir: New module.
25803         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
25804         * modules/openat (Depends-on): Add fdopendir.
25805         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
25806         fdopendir here.
25807         * modules/savedir (Depends-on): Only need fdopendir, not full
25808         openat.
25809         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
25810         * lib/openat.h (fdopendir): Drop prototype.
25811         * lib/dirent.in.h (fdopendir): Provide prototype.
25812         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
25813         * modules/dirent (Makefile.am): Substitute them.
25814         * MODULES.html.sh (File system functions): Mention it.
25815         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
25816         * modules/fdopendir-tests: New file.
25817         * tests/test-fdopendir.c: Likewise.
25818
25819         fchdir: use more consistent macro convention
25820         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
25821         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
25822         REPLACE_FCHDIR, rather than relying on config.h macros.
25823         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
25824         inside a single make-time REPLACE_FCHDIR block, rather than using
25825         the config.h FCHDIR_REPLACEMENT.
25826         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
25827         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
25828         Manage fstat replacement.
25829         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
25830         REPLACE_FCHDIR.
25831         * modules/sys_stat (Files): Add m4/unistd_h.m4.
25832         (Makefile.am): Substitute REPLACE_FCHDIR.
25833         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
25834         FCHDIR_REPLACEMENT.
25835         * lib/dup-safer.c (dup_safer): Likewise.
25836         * lib/dup2.c (rpl_dup2): Likewise.
25837         * lib/dup3.c (rpl_dup3): Likewise.
25838         * lib/open.c (rpl_open): Likewise.
25839
25840         fchdir: simplify error handling, and support dup3
25841         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
25842         stdbool, malloc-posix, realloc-posix.
25843         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
25844         (ensure_dirs_slot): Return false on allocation failure.
25845         (rpl_dup2): Delete.
25846         (_gl_register_dup): New function.
25847         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
25848         (_gl_register_fd): Close fd on allocation failure.
25849         * lib/fcntl.in.h (_gl_register_fd): Update signature.
25850         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
25851         prototype.
25852         (rpl_dup2_fchdir): Delete prototype.
25853         * lib/open.c (open): Update caller.
25854         * lib/dup2.c (dup2): Track fchdir metadata.
25855         * lib/dup3.c (dup3): Likewise.
25856         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
25857         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
25858
25859 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25860
25861         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
25862         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
25863         don't pass arguments to AC_OUTPUT.
25864
25865 2009-09-02  Bruno Haible  <bruno@clisp.org>
25866
25867         * modules/mkdtemp (License): Relicense under LGPLv2+.
25868         Reported by Paolo Bonzini.
25869
25870 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25871
25872         Replace uses of obsolete autoconf macros in Jim's modules.
25873         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
25874         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
25875         can evoke a warning from autoconf when run with -Wobsolete
25876         enabled.  They were declared obsolete for good reasons (see
25877         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
25878         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
25879         should not continue using the deprecated macros.
25880         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
25881         obsolete Autoconf macros with modern counterparts.
25882         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25883         * m4/dos.m4 (gl_AC_DOS): Likewise.
25884         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
25885         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25886         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
25887         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
25888         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
25889         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
25890         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
25891         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
25892         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
25893         Likewise.
25894         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25895         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25896         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
25897         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
25898         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25899         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25900
25901 2009-09-01  Eric Blake  <ebb9@byu.net>
25902
25903         fchdir: fix off-by-one bug in previous patch
25904         * lib/fchdir.c (rpl_fstat): Use correct bounds.
25905         (_gl_unregister_fd): Delete useless if.
25906
25907 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
25908
25909         maint.mk: sort the list of syntax-check rules
25910         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
25911         easier to get a sense of progress when the rules are run sequentially
25912         and take a long time.
25913
25914 2009-09-01  Simon Josefsson  <simon@josefsson.org>
25915
25916         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25917         * modules/netinet_in: Likewise.
25918         * modules/sys_file: Likewise.
25919         * modules/sys_ioctl: Likewise.
25920         * modules/sys_select: Likewise.
25921         * modules/sys_socket: Likewise.
25922         * modules/sys_stat: Likewise.
25923         * modules/sys_time: Likewise.
25924         * modules/sys_times: Likewise.
25925         * modules/sys_utsname: Likewise.
25926         * modules/sys_wait: Likewise.
25927
25928 2009-09-01  Jim Meyering  <meyering@redhat.com>
25929
25930         fts: help ensure that return values are not ignored
25931         * lib/fts_.h (__GNUC_PREREQ): Define.
25932         (__attribute_warn_unused_result__): Define.
25933         (fts_children, fts_close, fts_open, fts_read): Declare with
25934         __attribute_warn_unused_result__.
25935
25936         fts: fts_close now fails also when closing a dir file descriptor fails
25937         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
25938         and propagate to caller, along with errno.
25939
25940         announce-gen: correct formatting in --help output
25941         * build-aux/announce-gen (usage): Move the one-line description in
25942         --help output "up", to where it belongs, just after Usage:.
25943
25944 2009-08-31  Eric Blake  <ebb9@byu.net>
25945
25946         fchdir: port to mingw
25947         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
25948         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
25949         opened, then use a substitute.
25950         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
25951         replacement.
25952         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
25953         (_gl_register_fd): No need to check stat if open already filters
25954         all directories.
25955         (fchdir): Fix error condition to match POSIX.
25956         * modules/fchdir (Depends-on): Add sys_stat.
25957         * doc/posix-functions/open.texi (open): Document the limitation.
25958         * modules/fchdir-tests: New file.
25959         * tests/test-fchdir.c: Likewise.
25960
25961         canonicalize: allow cross-testing from cygwin to mingw
25962         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
25963         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
25964         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
25965         Likewise.
25966         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
25967         target does not support symlinks.
25968         * tests/test-canonicalize-lgpl.sh: Likewise.
25969
25970         chown: avoid compilation warning on mingw
25971         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
25972         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
25973         mingw.
25974         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25975         * modules/chown (Depends-on): Add errno.
25976
25977 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25978
25979         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
25980         command.
25981
25982 2009-08-31  Jim Meyering  <meyering@redhat.com>
25983
25984         canonicalize: remove useless initialization
25985         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
25986         initialization of local, "end".
25987
25988 2009-08-30  Bruno Haible  <bruno@clisp.org>
25989
25990         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
25991         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
25992         ENOSYS.
25993
25994 2009-08-30  Bruno Haible  <bruno@clisp.org>
25995
25996         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
25997         /usr/xpg4/bin/tr when it exists.
25998         * tests/test-pipe-filter-gi1.sh: Likewise.
25999
26000 2009-08-30  Bruno Haible  <bruno@clisp.org>
26001
26002         Work around deficient /usr/bin/id program on Solaris.
26003         * tests/test-file-has-acl.sh (ID): New variable.
26004         * tests/test-set-mode-acl.sh (ID): Likewise.
26005         * tests/test-copy-acl.sh (ID): Likewise.
26006         * tests/test-copy-file.sh (ID): Likewise.
26007
26008 2009-08-30  Bruno Haible  <bruno@clisp.org>
26009
26010         New module 'xstriconveh'.
26011         * lib/xstriconveh.h: New file.
26012         * lib/xstriconveh.c: New file.
26013         * modules/xstriconveh: New file.
26014
26015 2009-08-30  Bruno Haible  <bruno@clisp.org>
26016
26017         Make it easier to use mem_cd_iconveh.
26018         * lib/striconveh.h (iconveh_t): New type.
26019         (iconveh_open, iconveh_close): New declarations.
26020         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26021         with a single 'const iconveh_t *' argument.
26022         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
26023         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26024         with a single 'const iconveh_t *' argument.
26025         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
26026         * tests/test-striconveh.c (main): Update.
26027         * NEWS: Mention the change.
26028
26029 2009-08-30  Bruno Haible  <bruno@clisp.org>
26030
26031         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
26032         problem.
26033
26034 2009-08-30  Bruno Haible  <bruno@clisp.org>
26035
26036         Work around iconv_open problem on Solaris.
26037         * lib/iconv_open-solaris.gperf: New file.
26038         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
26039         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
26040         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
26041         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
26042         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
26043         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
26044
26045 2009-08-29  Jim Meyering  <meyering@redhat.com>
26046
26047         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
26048         * top/maint.mk (cvs-check): Remove target; it was just an alias
26049         to the better-named vc-diff-check.
26050         (maintainer-distcheck): Remove rule.  It was used only from
26051         the (alpha/beta/major) target, and all of its commands but one
26052         were coreutils-specific.
26053         (vc-dist): Remove rule.
26054         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
26055         Run vc-diff-check, not vc-dist.
26056         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
26057
26058 2009-08-27  Bruno Haible  <bruno@clisp.org>
26059
26060         * tests/test-bitrotate.c (main): Remove test that uses a shift count
26061         of 0.
26062
26063 2009-08-27  Bruno Haible  <bruno@clisp.org>
26064
26065         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
26066         compilers.
26067         * doc/func.texi: Document the SunPRO C bug.
26068
26069 2009-08-27  Bruno Haible  <bruno@clisp.org>
26070
26071         Fix link error on Solaris.
26072         * tests/test-parse-duration.c (xstrdup): Remove function.
26073
26074 2009-08-26  Pádraig Brady  <P@draigbrady.com>
26075
26076         ignore-value: handle pointer types, too
26077         * lib/ignore-value.h (__attribute__): Remove definition.
26078         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
26079         of a more concise and more-often effective "(void) i" statement.
26080         (ignore_ptr): New function to suppress warnings from functions that
26081         return pointers, and to make it explicit that one function doesn't
26082         handle all cases.
26083
26084 2009-08-25  Bruno Haible  <bruno@clisp.org>
26085
26086         dup2: work around a Linux bug.
26087         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
26088         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
26089         * doc/posix-functions/dup2.texi: Mention the Linux bug.
26090         Reported by Simon Josefsson.
26091
26092 2009-08-25  Jim Meyering  <meyering@redhat.com>
26093
26094         libguestfs uses gnulib
26095         * users.txt: Add libguestfs.
26096
26097 2009-08-24  Eric Blake  <ebb9@byu.net>
26098
26099         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
26100         * lib/pipe2.c (includes): Add binary-io.h.
26101         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
26102
26103 2009-08-24  Bruno Haible  <bruno@clisp.org>
26104
26105         Tolerate declared but missing accept4 syscall.
26106         * lib/accept4.c (accept4): Invoke original accept4 function first, if
26107         available.
26108         * lib/sys_socket.in.h (accept4): If the function is already present,
26109         override it.
26110         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
26111         * modules/accept4 (Makefile.am): Compile accept4.c always.
26112         Reported by Paolo Bonzini and Eric Blake.
26113
26114 2009-08-23  Bruno Haible  <bruno@clisp.org>
26115
26116         New module 'accept4'.
26117         * lib/sys_socket.in.h (accept4): New declaration.
26118         * lib/accept4.c: New file.
26119         * m4/accept4.m4: New file.
26120         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26121         GNULIB_ACCEPT4, HAVE_ACCEPT4.
26122         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
26123         HAVE_ACCEPT4.
26124         * modules/accept4: New file.
26125         * doc/glibc-functions/accept4.texi: Mention the new module.
26126
26127 2009-08-24  Jim Meyering  <meyering@redhat.com>
26128
26129         progname: also set global program_invocation_name, when possible
26130         Before this change, a libtool-enabled program that calls glibc's
26131         error function would report the program name as
26132         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
26133         * modules/progname (configure.ac): Check for a declaration of
26134         program_invocation_name.
26135         * lib/progname.c:  Include <errno.h>.
26136         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
26137         Set program_invocation_name.
26138
26139 2009-08-23  Bruno Haible  <bruno@clisp.org>
26140
26141         * lib/dup3.c: Include <string.h>.
26142
26143 2009-08-23  Bruno Haible  <bruno@clisp.org>
26144
26145         * lib/dup3.c (dup3): Test only once whether the system actually exists.
26146         * lib/pipe2.c (pipe2): Likewise.
26147         Suggested by Eric Blake.
26148
26149 2009-08-23  Bruno Haible  <bruno@clisp.org>
26150
26151         Tolerate declared but missing dup3 syscall.
26152         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
26153         * lib/unistd.in.h (dup3): If the function is already present,
26154         override it.
26155         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
26156         * modules/dup3 (Makefile.am): Compile dup3.c always.
26157         Reported by Paolo Bonzini.
26158
26159 2009-08-23  Bruno Haible  <bruno@clisp.org>
26160
26161         Tolerate declared but missing pipe2 syscall.
26162         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
26163         available.
26164         * lib/unistd.in.h (pipe2): If the function is already present,
26165         override it.
26166         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
26167         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
26168         Reported by Paolo Bonzini.
26169
26170 2009-08-23  Bruno Haible  <bruno@clisp.org>
26171
26172         * lib/pipe2.c (pipe2): Move #ifs inside function.
26173
26174 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26175
26176         quotearg: document limitations of quote_these_too
26177         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
26178         those limitations are created.
26179         * lib/quotearg.h (set_char_quoting): Document that digits and
26180         letters that are special after backslash are not permitted.
26181         (quotearg_char): Cross-reference set_char_quoting documentation.
26182
26183 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
26184
26185         quotearg: implement custom_quoting_style
26186         * lib/quotearg.c: (struct quoting_options): Add left_quote and
26187         right_quote fields.
26188         (set_custom_quoting): New public function.
26189         (quotearg_buffer_restyled): Add left_quote and right_quote
26190         arguments, handle them very much like locale quoting, and update
26191         all uses.
26192         (quotearg_n_custom): New public function.
26193         (quotearg_n_custom_mem): New public function.
26194         (quotearg_custom): New public function.
26195         (quotearg_custom_mem): New public function.
26196         * lib/quotearg.h: Prototype and document new public functions.
26197         (enum quoting_style): For escape_quoting_style and
26198         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
26199         ignored even though they're otherwise like c_quoting_style.
26200         Add custom_quoting_style member and document with comparison to
26201         clocale_quoting_style.
26202         * tests/test-quotearg.c (custom_quotes): New array.
26203         (custom_results): New array.
26204         (main): Extend to test custom quoting.
26205
26206 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26207
26208         quotearg: fix right quote escaping when it's in quote_these_too
26209         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
26210         quote, be sure to prepend only one backslash.
26211         * tests/test-quotearg.c (use_quote_double_quotes): New function.
26212         (main): Test it.
26213
26214 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26215
26216         quotearg-tests: test escaping of embedded locale quotes
26217         * tests/test-quotearg.c (struct result_strings): Add member for
26218         new input.
26219         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
26220         (inputs): Add new input.
26221         (results_g): Add expected results.
26222         (flag_results): Likewise.
26223         (locale_results): Likewise.
26224         (compare_strings): Check those.
26225
26226 2009-08-23  Bruno Haible  <bruno@clisp.org>
26227
26228         Tests for module 'dup3'.
26229         * modules/dup3-tests: New file.
26230         * tests/test-dup3.c: New file.
26231
26232         New module 'dup3'.
26233         * lib/unistd.in.h (dup3): New declaration.
26234         * lib/dup3.c: New file.
26235         * m4/dup3.m4: New file.
26236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
26237         HAVE_DUP3.
26238         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
26239         * modules/dup3: New file.
26240         * doc/glibc-functions/dup3.texi: Mention the new module.
26241
26242 2009-08-23  Bruno Haible  <bruno@clisp.org>
26243
26244         Tweak the dup2 test.
26245         * tests/test-dup2.c (main): Create the test file empty. Verify that an
26246         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
26247         the test file is still empty. Fix argument order of lseek.
26248
26249 2009-08-23  Bruno Haible  <bruno@clisp.org>
26250
26251         Avoid test link errors when the modules getopt-gnu, gettext are used.
26252         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
26253         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26254
26255 2009-08-23  Bruno Haible  <bruno@clisp.org>
26256
26257         Fix getdtablesize() on mingw.
26258         * lib/getdtablesize.c (getdtablesize): Implement differently.
26259         * lib/unistd.in.h (getdtablesize): Improve comment.
26260
26261 2009-08-23  Bruno Haible  <bruno@clisp.org>
26262
26263         New module 'mkostemp'.
26264         Based on Ulrich Drepper's 2007-08-10 change in glibc.
26265         * lib/stdlib.in.h (mksotemp): New declaration.
26266         * lib/mkostemp.c: New file, from glibc with modifications.
26267         * lib/tempname.h (GT_FILE): Remove outdated comment.
26268         (gen_tempname): Add flags argument.
26269         * lib/tempname.c (__GT_BIGFILE): Remove macro.
26270         (__GT_FILE): Map to 1.
26271         (small_open, large_open): Remove macros.
26272         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
26273         * lib/mkstemp.c (mkstemp): Update.
26274         * lib/mkdtemp.c (mkdtemp): Likewise.
26275         * m4/mkostemp.m4: New file.
26276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
26277         HAVE_MKOSTEMP.
26278         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
26279         HAVE_MKOSTEMP.
26280         * modules/mkostemp: New file, based on modules/mkstemp.
26281         * doc/glibc-functions/mkostemp.texi: Mention the new module.
26282         * NEWS: Mention the change.
26283
26284 2009-08-23  Bruno Haible  <bruno@clisp.org>
26285
26286         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
26287         Reported by Eric Blake.
26288
26289 2009-08-23  Bruno Haible  <bruno@clisp.org>
26290
26291         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
26292         Reported by Eric Blake.
26293
26294 2009-08-23  Bruno Haible  <bruno@clisp.org>
26295
26296         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
26297         * modules/pipe2 (Depends-on): Likewise.
26298
26299 2009-08-23  Eric Blake  <ebb9@byu.net>
26300
26301         fcntl-h: add O_TTY_INIT support
26302         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
26303         * tests/test-fcntl-h.c (o): Test it.
26304         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26305
26306         fcntl-h: rename from fcntl, in preparation for fcntl(2)
26307         * modules/fcntl: Move <fcntl.h> header replacement...
26308         * modules/fcntl-h: ...to new name, so as not to collide with
26309         like-named function.
26310         * tests/test-fcntl.c: Rename...
26311         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
26312         * modules/fcntl-tests: Rename...
26313         * modules/fcntl-h-tests: ...to this.  Update test file name.
26314         * modules/chdir-long (Depends-on): Update clients.
26315         * modules/chdir-safer (Depends-on): Likewise.
26316         * modules/fcntl-safer (Depends-on): Likewise.
26317         * modules/fts (Depends-on): Likewise.
26318         * modules/mkancesdirs (Depends-on): Likewise.
26319         * modules/mkdir-p (Depends-on): Likewise.
26320         * modules/open (Depends-on): Likewise.
26321         * modules/savewd (Depends-on): Likewise.
26322         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
26323         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26324
26325 2009-08-22  Bruno Haible  <bruno@clisp.org>
26326
26327         * modules/binary-io (License): Relicense under LGPL.
26328         * modules/pipe2 (License): Likewise.
26329
26330 2009-08-22  Bruno Haible  <bruno@clisp.org>
26331
26332         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
26333         return value.
26334         * lib/pipe-filter-gi.c (filter_init): Likewise.
26335         Reported by Eric Blake.
26336
26337 2009-08-22  Bruno Haible  <bruno@clisp.org>
26338
26339         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
26340         * modules/pipe (Depends-on): Add pipe2.
26341
26342 2009-08-22  Bruno Haible  <bruno@clisp.org>
26343
26344         Tests for module 'pipe2'.
26345         * modules/pipe2-tests: New file.
26346         * tests/test-pipe2.c: New file.
26347
26348         New module 'pipe2'.
26349         * lib/unistd.in.h (pipe2): New declaration.
26350         * lib/pipe2.c: New file.
26351         * m4/pipe2.m4: New file.
26352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
26353         HAVE_PIPE2.
26354         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
26355         * modules/pipe2: New file.
26356         * doc/glibc-functions/pipe2.texi: Mention the new module.
26357
26358 2009-08-22  Bruno Haible  <bruno@clisp.org>
26359
26360         Reference some new glibc functions.
26361         * doc/glibc-functions/accept4.texi: New file.
26362         * doc/glibc-functions/dup3.texi: New file.
26363         * doc/glibc-functions/mkostemp.texi: New file.
26364         * doc/glibc-functions/pipe2.texi: New file.
26365         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
26366         (Glibc sys/socket.h): Refer to accept4.
26367         (Glibc unistd.h): Refer to dup3, pipe2.
26368         Reported by Eric Blake.
26369
26370 2009-08-22  Jim Meyering  <meyering@redhat.com>
26371             Bruno Haible  <bruno@clisp.org>
26372
26373         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
26374         This makes it so packages using automake-1.11's silent-rules option
26375         can print e.g., a single "GEN    configmake.h" line, rather than
26376         the 30+ statements that perform the job.  If you want to see the
26377         actual commands, you can still run "make V=1".
26378         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
26379         so that make output is abbreviated when those variables are defined
26380         appropriately.
26381         * modules/argz: Likewise.
26382         * modules/arpa_inet: Likewise.
26383         * modules/byteswap: Likewise.
26384         * modules/configmake: Likewise.
26385         * modules/dirent: Likewise.
26386         * modules/errno: Likewise.
26387         * modules/fcntl: Likewise.
26388         * modules/float: Likewise.
26389         * modules/fnmatch: Likewise.
26390         * modules/getopt-posix: Likewise.
26391         * modules/glob: Likewise.
26392         * modules/iconv_open: Likewise.
26393         * modules/inttypes: Likewise.
26394         * modules/localcharset: Likewise.
26395         * modules/locale: Likewise.
26396         * modules/math: Likewise.
26397         * modules/netdb: Likewise.
26398         * modules/netinet_in: Likewise.
26399         * modules/poll: Likewise.
26400         * modules/posix_spawnp-tests: Likewise.
26401         * modules/sched: Likewise.
26402         * modules/search: Likewise.
26403         * modules/selinux-h: Likewise.
26404         * modules/signal: Likewise.
26405         * modules/spawn: Likewise.
26406         * modules/stdarg: Likewise.
26407         * modules/stdbool: Likewise.
26408         * modules/stddef: Likewise.
26409         * modules/stdint: Likewise.
26410         * modules/stdio: Likewise.
26411         * modules/stdlib: Likewise.
26412         * modules/string: Likewise.
26413         * modules/strings: Likewise.
26414         * modules/sys_file: Likewise.
26415         * modules/sys_ioctl: Likewise.
26416         * modules/sys_select: Likewise.
26417         * modules/sys_socket: Likewise.
26418         * modules/sys_stat: Likewise.
26419         * modules/sys_time: Likewise.
26420         * modules/sys_times: Likewise.
26421         * modules/sys_utsname: Likewise.
26422         * modules/sys_wait: Likewise.
26423         * modules/sysexits: Likewise.
26424         * modules/time: Likewise.
26425         * modules/unistd: Likewise.
26426         * modules/wchar: Likewise.
26427         * modules/wctype: Likewise.
26428
26429 2009-08-22  Jim Meyering  <meyering@redhat.com>
26430
26431         announce-gen: detect write failure
26432         * build-aux/announce-gen: Add Coda at end.
26433         Remove equivalent-but-more-verbose block at top.
26434
26435 2009-08-19  Akim Demaille  <demaille@gostai.com>
26436
26437         bootstrap: --help to stdout.
26438         * bootstrap (usage): Don't send --help to stderr.
26439         Use a here doc instead of a long string.
26440
26441 2009-08-21  Eric Blake  <ebb9@byu.net>
26442
26443         test-popen-safer: split from test-popen
26444         * tests/test-popen.c (main): Move...
26445         * tests/test-popen.h: ...into new file.
26446         * tests/test-popen-safer2.c: New file.
26447         * modules/popen-tests (Files): Add test-popen.h.
26448         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
26449         Suggested by Bruno Haible.
26450
26451         test-fcntl-safer: split from test-open
26452         * tests/test-open.c (main): Move...
26453         * tests/test-open.h: ...into new file.
26454         * tests/test-fcntl-safer.c: New file.
26455         * modules/open-tests (Files): Add test-open.h.
26456         * modules/fcntl-safer-tests: New file.
26457         Suggested by Bruno Haible.
26458
26459         test-fopen-safer: split from test-fopen
26460         * tests/test-fopen.c (main): Move...
26461         * tests/test-fopen.h: ...into new file.
26462         * tests/test-fopen-safer.c: New file.
26463         * modules/fopen-tests (Files): Add test-fopen.h.
26464         * modules/fopen-safer-tests: New file.
26465         Suggested by Bruno Haible.
26466
26467 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26468
26469         popen-safer: test O_CLOEXEC at run-time.
26470         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
26471
26472 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26473
26474         fcntl: move more flags to the header
26475         * lib/cloexec.c: Do not define FD_CLOEXEC here.
26476         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
26477         * lib/fcntl.in.h: Do both things here.
26478
26479 2009-08-21  Jim Meyering  <meyering@redhat.com>
26480
26481         consistently remove $@-t before redirecting to it
26482         * modules/argz: Remove $@-t and $@ before redirecting to the former.
26483         * modules/alloca-opt: Likewise.
26484         * modules/byteswap: Likewise.
26485         * modules/fnmatch: Likewise.
26486         * modules/getopt-posix: Likewise.
26487         * modules/glob: Likewise.
26488         * modules/poll: Likewise.
26489         * modules/posix_spawnp-tests: Likewise.
26490         * modules/sys_socket: Likewise.
26491         * modules/sysexits: Likewise.
26492
26493 2009-08-21  Eric Blake  <ebb9@byu.net>
26494
26495         popen: simplify access to original popen
26496         * lib/popen.c (rpl_popen): No need to worry about popen being a
26497         macro.
26498         Reported by Bruno Haible.
26499
26500 2009-08-20  Eric Blake  <ebb9@byu.net>
26501
26502         build: avoid some compiler warnings
26503         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
26504         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
26505         type.
26506         (new_exclude_segment, excluded_file_pattern_p)
26507         (excluded_file_name_p): Reduce scope.
26508         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
26509         old-style declaration.
26510
26511 2009-08-20  Simon Josefsson  <simon@josefsson.org>
26512
26513         * tests/test-exclude1.sh: Handle Windows EOL.
26514         * tests/test-exclude2.sh: Likewise.
26515         * tests/test-exclude3.sh: Likewise.
26516         * tests/test-exclude4.sh: Likewise.
26517         * tests/test-exclude5.sh: Likewise.
26518         * tests/test-exclude6.sh: Likewise.
26519         * tests/test-exclude7.sh: Likewise.
26520
26521 2009-08-19  Akim Demaille  <demaille@gostai.com>
26522
26523         bootstrap: find sha1sum when named gsha1sum.
26524         * bootstrap (find_tool): New.
26525         ($SHA1SUM): New.
26526         Use it.
26527
26528 2009-08-20  Jim Meyering  <meyering@redhat.com>
26529
26530         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
26531         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
26532         expression that converts "." in a file name to "\." in the resulting
26533         regexp.  Start with a dummy statement, so that prior shell variable
26534         definitions are expanded portably.  Reported by Simon Josefsson.
26535
26536 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
26537
26538         Fix polling for writeability of a screen buffer.
26539         * lib/poll.c: Distinguish input and screen buffers for the
26540         Win32 implementation.
26541         * lib/select.c: Likewise.
26542
26543 2009-08-19  Eric Blake  <ebb9@byu.net>
26544
26545         popen-safer: prevent popen from clobbering std descriptors
26546         * modules/popen-safer: New file.
26547         * lib/popen-safer.c: Likewise.
26548         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
26549         * lib/stdio--.h (popen): Provide override.
26550         * lib/stdio-safer.h (popen_safer): Provide declaration.
26551         * tests/test-popen.c (includes): Partially test this.
26552         * modules/popen-safer-tests: New file, for more tests.
26553         * tests/test-popen-safer.c: Likewise.
26554         * MODULES.html.sh (file stream based Input/Output): Mention it.
26555
26556         tests: test some of the *-safer modules
26557         * modules/fopen-safer (Depends-on): Add fopen.
26558         * modules/fcntl-safer (Depends-on): Add fcntl.
26559         * modules/stdlib-safer (Depends-on): Add stdlib.
26560         (configure.ac): Set indicator.
26561         * modules/unistd-safer (configure.ac): Likewise.
26562         * modules/tmpfile-safer (configure.ac): Likewise.
26563         (Depends-on): Add tmpfile.
26564         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
26565         active.
26566         * tests/test-fopen.c (includes): Test safer versions when they are
26567         in use.
26568         * tests/test-open.c (includes): Likewise.
26569
26570         popen: fix cygwin 1.5 bug when stdin closed
26571         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
26572         * modules/popen: New file.
26573         * modules/popen-tests: Likewise.
26574         * tests/test-popen.c: Likewise.
26575         * m4/popen.m4: Likewise.
26576         * lib/popen.c: Likewise.
26577         * lib/stdio.in.h (popen): New declaration.
26578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
26579         * modules/stdio (Makefile.am): Likewise.
26580         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
26581
26582 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
26583
26584         maint.mk: give full control over update-copyright exclusions
26585         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
26586         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
26587         (update-copyright): Don't force inclusion of top-level
26588         ChangeLog.  Don't force exclusion of all COPYING files, but make
26589         them the default exclusion instead.
26590
26591 2009-08-16  Bruno Haible  <bruno@clisp.org>
26592
26593         Fix test failures on Solaris 10.
26594         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
26595         tests when Solaris iconv() is used.
26596         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
26597         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
26598         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
26599         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
26600         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
26601
26602 2009-08-16  Bruno Haible  <bruno@clisp.org>
26603
26604         Fix test failures on Solaris 10.
26605         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
26606         'tr' program and pass it as first argument.
26607         * tests/test-pipe-filter-gi1.sh: Likewise.
26608         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
26609         program as first argument.
26610         * tests/test-pipe-filter-gi1.c (main): Likewise.
26611
26612 2009-08-16  Eric Blake  <ebb9@byu.net>
26613
26614         fpurge: fix previous commits
26615         * modules/fpurge (Makefile.am): Make replacement conditional,
26616         partially reverting 2007-04-29 change; missed in previous
26617         attempt.
26618         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
26619         is missing.
26620
26621 2009-08-16  Bruno Haible  <bruno@clisp.org>
26622
26623         Clarify fpurge's effect on the file position.
26624         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
26625         * tests/test-fpurge.c (main): Make a second pass for checking the file
26626         position.
26627
26628 2009-08-16  Bruno Haible  <bruno@clisp.org>
26629
26630         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
26631         declaration of fpurge is missing.
26632         * tests/test-fpurge.c (main): Check that the file has not more contents
26633         than expected. Close the file before removing it.
26634
26635 2009-08-15  Eric Blake  <ebb9@byu.net>
26636
26637         fpurge: don't wrap working cygwin implementation
26638         * lib/fpurge.c (fpurge): Fix comment typo.
26639         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
26640         1.7 to avoid replacement.
26641         * tests/test-fpurge.c (main): Enhance test.
26642
26643 2009-08-15  Eric Blake  <ebb9@byu.net>
26644         and Jim Meyering  <meyering@redhat.com>
26645
26646         test-update-copyright: skip if perl is insufficient
26647         * tests/test-update-copyright.sh: Failure to run maintainer tool
26648         should not cause testsuite failure on cygwin 1.5.
26649
26650 2009-08-14  Eric Blake  <ebb9@byu.net>
26651
26652         doc: mention more functions added in cygwin 1.7.0
26653         * doc/posix-headers/limits.texi (limits.h): Update for recent
26654         cygwin additions.
26655         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
26656         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
26657         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
26658         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
26659         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
26660
26661 2009-08-14  Eric Blake  <ebb9@byu.net>
26662
26663         maint.mk: simplify update-copyright rule
26664         * top/maint.mk (update-copyright-local): Delete, and document how
26665         to do it in cfg.mk instead.
26666         (update-copyright-exclude-regexp): Delete, and document how to do
26667         it in .x-update-copyright instead.
26668         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
26669         exclude ChangeLog.
26670
26671 2009-08-14  Bruno Haible  <bruno@clisp.org>
26672
26673         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
26674
26675 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26676
26677         maint.mk: support update-copyright-env
26678         * top/maint.mk (update-copyright-env): Define place-holder.
26679         (update-copyright): Expand $(update-copyright-env) before
26680         invoking update-copyright.
26681
26682 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26683
26684         update-copyright: implement forced reformatting
26685         * build-aux/update-copyright: Implement and document
26686         UPDATE_COPYRIGHT_FORCE.
26687         * tests/test-update-copyright.sh: Test it.
26688
26689 2009-08-14  Eric Blake  <ebb9@byu.net>
26690         and Bruno Haible  <bruno@clisp.org>
26691
26692         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
26693         * tests/test-locale.c: Revert previous patch related to NULL.
26694         * tests/test-stdio.c: Likewise.
26695         * tests/test-stdlib.c: Likewise.
26696         * tests/test-string.c: Likewise.
26697         * tests/test-unistd.c: Likewise.
26698         * modules/time-tests (Depends-on): Add verify.
26699         * modules/wchar-tests (Depends-on): Likewise.
26700         * tests/test-time.c: Test for NULL compliance.
26701         * tests/test-wchar.c: Likewise.
26702         * modules/locale (Depends-on): Add stddef.
26703         * modules/stdio (Depends-on): Likewise.
26704         * modules/stdlib (Depends-on): Likewise.
26705         * modules/string (Depends-on): Likewise.
26706         * modules/time (Depends-on): Likewise.
26707         * modules/unistd (Depends-on): Likewise.
26708         * modules/wchar (Depends-on): Likewise.
26709         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
26710         * lib/stdlib.in.h (includes): Likewise.
26711         * lib/string.in.h (includes): Likewise.
26712         * lib/time.in.h (includes): Likewise.
26713         * lib/unistd.in.h (includes): Likewise.
26714         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
26715         replaced.
26716         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26717         * m4/stddef_h.m4: New file.
26718         * modules/stddef: Likewise.
26719         * lib/stddef.in.h: Likewise.
26720         * modules/stddef-tests: Likewise.
26721         * tests/test-stddef.c: Likewise.
26722         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
26723         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
26724         * doc/posix-headers/locale.texi (locale.h): Likewise.
26725         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
26726         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26727         * doc/posix-headers/string.texi (string.h): Likewise.
26728         * doc/posix-headers/time.texi (time.h): Likewise.
26729         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
26730         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
26731
26732 2009-08-14  Eric Blake  <ebb9@byu.net>
26733
26734         doc: improve git diff of texinfo files
26735         * .gitattributes: Add rule for *.texi files, with hint on how to
26736         use it.
26737         Copied from m4, and based on a report by Bruno Haible.
26738
26739 2009-08-14  Bruno Haible  <bruno@clisp.org>
26740
26741         Disable multithread support by default on Cygwin 1.5.x for real.
26742         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
26743
26744 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26745
26746         update-copyright: much ado about intervals
26747         * build-aux/update-copyright: Implement and document
26748         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
26749         of copyright year intervals.
26750         Also, document UPDATE_COPYRIGHT_YEAR.
26751         * tests/test-update-copyright.sh: Test it.
26752
26753         update-copyright: convert 2-digit to 4-digit years
26754         * build-aux/update-copyright: Implement and document.
26755         * tests/test-update-copyright.sh: Update.
26756
26757 2009-08-14  Jim Meyering  <meyering@redhat.com>
26758
26759         test-exclude: avoid coreutils "make check" failure
26760         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
26761         just as in test-argmatch.c.
26762
26763 2009-08-13  Eric Blake  <ebb9@byu.net>
26764
26765         test-dup2: fix bad assumption
26766         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
26767         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
26768
26769         test-version-etc: fix CRLF portability issue
26770         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
26771         recognize \r.
26772         * tests/test-argp-version-etc-1.sh: Likewise.
26773
26774         getopt: update client modules
26775         * modules/argp (Depends-on): Use getopt-gnu.
26776         * modules/git-merge-changelog (Depends-on): Likewise.
26777         * modules/long-options (Depends-on): Likewise.
26778         * modules/xstrtol (Depends-on): Likewise.
26779
26780 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26781
26782         * tests/test-version-etc.sh: Don't fail on different
26783         project/version.  Don't fail on CRLF differences.  Rewrite to use
26784         multiple -e instead of multiple sed forks, suggested by Eric Blake
26785         <ebb9@byu.net>.
26786         * tests/test-argp-version-etc-1.sh: Likewise.
26787
26788 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26789
26790         * tests/test-version-etc.sh: Don't fail on different
26791         project/version.
26792
26793 2009-08-12  Bruno Haible  <bruno@clisp.org>
26794
26795         Tests for modules 'getopt-posix', 'getopt-gnu'.
26796         * modules/getopt-posix-tests: New file.
26797         * tests/test-getopt.c: New file.
26798         * tests/test-getopt.h: New file.
26799         * tests/test-getopt_long.h: New file.
26800
26801         New modules 'getopt-posix', 'getopt-gnu'.
26802         * modules/getopt-gnu: New file, renamed from modules/getopt.
26803         * modules/getopt-posix: New file.
26804         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
26805         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
26806         (gl_GETOPT): Remove macro.
26807         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
26808         Disable the test against BSD systems that declare optreset. Test
26809         against mingw bug. Test against lack of support of optional arguments
26810         on many platforms.
26811         * doc/glibc-headers/getopt.texi: Update module name and list of
26812         relevant platforms.
26813         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
26814         'getopt-gnu' and more portability problems.
26815         * NEWS: Mention the changes.
26816
26817 2009-08-12  Bruno Haible  <bruno@clisp.org>
26818
26819         Ensure that optarg etc. get declared by <unistd.h>.
26820         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
26821         AC_USE_SYSTEM_EXTENSIONS.
26822         * modules/getopt (Depends-on): Add 'extensions'.
26823
26824 2009-08-12  Bruno Haible  <bruno@clisp.org>
26825
26826         Avoid test link errors.
26827         * modules/pipe-filter-ii-tests (Makefile.am): Define
26828         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
26829         * modules/pipe-filter-gi-tests (Makefile.am): Define
26830         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
26831         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26832
26833 2009-08-12  Bruno Haible  <bruno@clisp.org>
26834
26835         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
26836         gl_GETOPT_SUBSTITUTE before.
26837         (gl_GETOPT): Use it.
26838         * m4/argp.m4 (gl_ARGP): Update.
26839         Reported by Sergey Poznyakoff.
26840
26841         * m4/getopt.m4: Reorder macros.
26842         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
26843         (gl_GETOPT_SUBSTITUTE): Remove macro.
26844
26845 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26846
26847         Minor improvement in gitlog-to-changelog
26848
26849         * build-aux/gitlog-to-changelog: New option `--format' makes
26850         output format string configurable.
26851
26852 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26853
26854         Optimize exclude: use hash tables for non-wildcard patterns.
26855
26856         * lib/exclude.c: Include hash.h and mbuiter.h
26857         (struct exclude_pattern, exclude_segment): New data types.
26858         (struct exclude): Rewrite.
26859         (fnmatch_pattern_has_wildcards): New function.
26860         (new_exclude_segment, free_exclude_segment): New functions.
26861         (excluded_file_pattern_p, excluded_file_name_p): New functions.
26862         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
26863         * lib/exclude.h (is_fnmatch_pattern): New prototype.
26864         * modules/exclude: Depend on hash and mbuiter.
26865
26866         * modules/exclude-tests: New file.
26867         * tests/test-exclude.c: New file.
26868         * tests/test-exclude1.sh: New file.
26869         * tests/test-exclude2.sh: New file.
26870         * tests/test-exclude3.sh: New file.
26871         * tests/test-exclude4.sh: New file.
26872         * tests/test-exclude5.sh: New file.
26873         * tests/test-exclude6.sh: New file.
26874         * tests/test-exclude7.sh: New file.
26875
26876 2009-08-12  Bruno Haible  <bruno@clisp.org>
26877
26878         Ensure that getopt() gets declared by <unistd.h>.
26879         * lib/unistd.in.h: Conditionally include getopt.h.
26880         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
26881         Set GNULIB_UNISTD_H_GETOPT.
26882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26883         GNULIB_UNISTD_H_GETOPT.
26884         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
26885
26886 2009-08-12  Bruno Haible  <bruno@clisp.org>
26887
26888         Clarify logic.
26889         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
26890         gl_replace_getopt instead of GETOPT_H.
26891
26892 2009-08-12  Bruno Haible  <bruno@clisp.org>
26893
26894         * m4/getopt.m4: Add comments.
26895
26896 2009-08-12  Bruno Haible  <bruno@clisp.org>
26897
26898         Disable multithread support by default on Cygwin 1.5.x.
26899         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
26900         set gl_use_threads=no if not specified otherwise.
26901
26902 2009-08-11  Bruno Haible  <bruno@clisp.org>
26903
26904         Avoid compilation error on NetBSD 5.0.
26905         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
26906         * tests/test-stdio.c: Likewise.
26907         * tests/test-stdlib.c: Likewise.
26908         * tests/test-string.c: Likewise.
26909         * tests/test-unistd.c: Likewise.
26910         Reported by Greg Troxel <gdt@ir.bbn.com>
26911         at <https://savannah.gnu.org/support/?106973>.
26912
26913 2009-08-11  Bruno Haible  <bruno@clisp.org>
26914
26915         * modules/dup2-tests (Depends-on): Remove close.
26916
26917         Undo 2009-07-19 commit.
26918         * modules/acl-tests (Depends-on): Remove close.
26919         * modules/binary-io-tests (Depends-on): Likewise.
26920         * modules/closein-tests (Depends-on): Likewise.
26921         * modules/flock-tests (Depends-on): Likewise.
26922         * modules/fsync-tests (Depends-on): Likewise.
26923         * modules/lseek-tests (Depends-on): Likewise.
26924         * modules/pipe-tests (Depends-on): Likewise.
26925         * modules/posix_spawn-tests (Depends-on): Likewise.
26926         * modules/posix_spawnp-tests (Depends-on): Likewise.
26927         * modules/stat-time-tests (Depends-on): Likewise.
26928         * modules/yesno-tests (Depends-on): Likewise.
26929
26930 2009-08-10  Bruno Haible  <bruno@clisp.org>
26931
26932         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
26933
26934 2009-08-10  Bruno Haible  <bruno@clisp.org>
26935
26936         Fix a gcc warning.
26937         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
26938
26939 2009-08-10  Bruno Haible  <bruno@clisp.org>
26940
26941         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
26942         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
26943         not only the first time.
26944         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
26945         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
26946         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
26947         is 1, not only the the first time.
26948
26949 2009-08-10  Bruno Haible  <bruno@clisp.org>
26950
26951         Make it possible to use module 'gethostname' without module 'close'.
26952         * lib/unistd.in.h (close): Evoke a link error only if
26953         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26955         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26956         * modules/unistd (Makefile.am): Substitute
26957         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26958         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
26959         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26960         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26961         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26962         * modules/sys_ioctl (Makefile.am): Substitute
26963         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26964         * modules/socket (configure.ac): On native Windows, set
26965         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
26966         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26967         Reported by Sam Steingold <sds@gnu.org>.
26968
26969 2009-08-10  Bruno Haible  <bruno@clisp.org>
26970
26971         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
26972         * modules/ioctl (configure.ac): Likewise.
26973
26974 2009-08-10  Bruno Haible  <bruno@clisp.org>
26975
26976         Avoid collision between gnulib wrapper and libintl wrapper.
26977         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
26978         already defined in intl/printf.c.
26979         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
26980         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
26981
26982 2009-08-09  Bruno Haible  <bruno@clisp.org>
26983
26984         Make <sys/select.h> really self-contained, also on Solaris 10.
26985         * lib/sys_select.in.h: Include <string.h>.
26986         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
26987         Solaris 10 problem.
26988         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
26989         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
26990         Reported by Jim Meyering.
26991
26992 2009-08-09  Bruno Haible  <bruno@clisp.org>
26993
26994         Avoid warnings from 'aclocal' that are due to a use of macro name
26995         AM_XGETTEXT_OPTION that is not defined in automake.
26996         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
26997         automake.
26998         * modules/error (configure.ac): Likewise.
26999         * modules/propername (configure.ac): Likewise.
27000         * modules/vasprintf (configure.ac): Likewise.
27001         * modules/verror (configure.ac): Likewise.
27002         * modules/xprintf (configure.ac): Likewise.
27003         * modules/xvasprintf (configure.ac): Likewise.
27004
27005 2009-08-08  Bruno Haible  <bruno@clisp.org>
27006
27007         Avoid compilation error in C++ mode.
27008         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
27009         Reported by Sam Steingold <sds@gnu.org>.
27010
27011 2009-08-08  Bruno Haible  <bruno@clisp.org>
27012
27013         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
27014         for the various Unix platforms.
27015         * doc/posix-headers/limits.texi: Update platforms list regarding
27016         HOST_NAME_MAX.
27017         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27018
27019 2009-08-07  Jim Meyering  <meyering@redhat.com>
27020
27021         selinux-at: fix typo in a comment
27022         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
27023         Spotted by Paolo Bonzini.
27024
27025         selinux-at: remove redundant m4 code, add documentation
27026         * modules/selinux-at (configure.ac): Remove redundant code.
27027         LIB_SELINUX is already set via the dependent module, selinux-h.
27028         (Include): Add quotes around selinux-at.h.
27029         * lib/selinux-at.h: Add documentation.
27030         Reported by Bruno Haible in
27031         http://marc.info/?l=gnulib-bug&m=124958988300749
27032
27033 2009-08-07  Bruno Haible  <bruno@clisp.org>
27034
27035         Avoid link error on MacOS X 10.3 and 10.4.
27036         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
27037         on non-ELF systems.
27038         * lib/argp-pv.c (argp_program_version): Likewise.
27039         Reported by Simon Josefsson.
27040
27041 2009-08-07  Simon Josefsson  <simon@josefsson.org>
27042
27043         * tests/test-version-etc.sh: Use $EXEEXT.
27044
27045 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
27046
27047         update-copyright: update documentation to point to maint.mk
27048         * build-aux/update-copyright: Here.
27049
27050 2009-08-06  Jim Meyering  <meyering@redhat.com>
27051
27052         maint.mk: support update-copyright-local
27053         * top/maint.mk (update-copyright-local): Define place-holder.
27054         (update-copyright): Depend on $(update-copyright-local).
27055
27056 2009-08-06  Jim Meyering  <meyering@redhat.com>
27057
27058         selinux-at: new module
27059         Initially written for coreutils, this module will soon be
27060         used by findutils, too.
27061         * MODULES.html.sh [Misc]: Add selinux-at.
27062         * lib/selinux-at.h: New file, from coreutils.
27063         * lib/selinux-at.c: Likewise.
27064         * modules/selinux-at: Likewise.
27065         (License): Change from LGPL to GPL, since it depends
27066         on the GPL'd openat module.
27067
27068         doc: update README
27069         * README: Remove references to cogito.
27070         Remove cvs-repo-updating instructions from 2007.
27071         Don't imply that CVS is better if you have limited disk space.
27072
27073 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27074
27075         update-copyright: support C-style comments
27076         * build-aux/update-copyright: Implement and document.
27077         * tests/test-update-copyright.sh: Test.
27078
27079 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27080
27081         update-copyright: support omitted "(C)"
27082         * build-aux/update-copyright: Implement and document.  Also,
27083         allow variable whitespace before "(C)".
27084         * tests/test-update-copyright.sh: Test.
27085
27086 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27087
27088         update-copyright: don't trip on non-FSF copyright statements
27089         * build-aux/update-copyright: Fix so that the first correctly
27090         formatted FSF copyright statement is recognized no matter what
27091         appears before it.  Update documentation.
27092         * tests/test-update-copyright.sh: Test that.
27093
27094 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27095
27096         update-copyright: clean up code a little
27097         * build-aux/update-copyright: Append "_re" to the name of any
27098         variable holding a regular expression.
27099         Replace "old" and "new" with "stmt" in variable names.
27100         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
27101         handled correctly.
27102         Format code more consistently.
27103
27104 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27105
27106         update-copyright-tests: improve portability
27107         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
27108         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
27109
27110 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27111
27112         update-copyright: support @copyright{} and &copy;
27113         * build-aux/update-copyright: Implement and document.
27114         * tests/test-update-copyright.sh: Test.
27115
27116 2009-08-04  Jim Meyering  <meyering@redhat.com>
27117
27118         update-copyright-tests: correctly test EOL=\r\n handling
27119         * tests/test-update-copyright.sh: Put \r at the end of some lines
27120         for the dos-eol tests.  Based on a patch by Joel E. Denny.
27121
27122         maint.mk: make update-copyright exclusion list more configurable
27123         * top/maint.mk (update-copyright): Default to excluding COPYING,
27124         but allow an override, in case someone does want to update that file.
27125
27126         maint.mk: don't update copyright date in COPYING
27127         * top/maint.mk (update-copyright): Exclude COPYING.
27128
27129         maint.mk: add a copyright-updating rule
27130         * top/maint.mk (update-copyright): New rule.
27131         Derived from coreutils/Makefile.am.
27132
27133         update-copyright: rename some variables
27134         * build-aux/update-copyright: Rename a few variables for clarity.
27135         Tweak syntax.  List Joel E. Denny as coauthor.
27136
27137 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27138
27139         update-copyright: fix bug for 2-digit last year and add tests
27140         * build-aux/update-copyright: Fix bug.
27141         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
27142         specified.
27143         * modules/update-copyright-tests: New
27144         * tests/test-update-copyright.sh: New.
27145
27146 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27147
27148         update-copyright: handle leading tabs in line prefix
27149         * build-aux/update-copyright: Count leading tabs as 8 spaces
27150         when computing margin.  This helps with the formatting of
27151         ChangeLogs, for example.
27152         Fix documentation a little.
27153
27154 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27155
27156         update-copyright: support EOL=\r\n
27157         * build-aux/update-copyright: Implement that.
27158
27159 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27160
27161         update-copyright: automatically format copyright statements
27162         * build-aux/update-copyright: Implement that.
27163         Also, be a little more predictable and safer by always failing
27164         when the full copyright format is not perfectly recognized as an
27165         unbroken whole.  Discussed at
27166         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
27167         Rewrite documentation.
27168
27169 2009-08-03  Bruno Haible  <bruno@clisp.org>
27170
27171         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
27172
27173 2009-08-02  Bruno Haible  <bruno@clisp.org>
27174
27175         Tests for module 'uname'.
27176         * modules/uname-tests: New file.
27177         * tests/test-uname.c: New file.
27178
27179         New module 'uname'.
27180         * lib/uname.c: New file.
27181         * m4/uname.m4: New file.
27182         * modules/uname: New file.
27183         * doc/posix-functions/uname.texi: Mention the new module.
27184
27185 2009-08-02  Bruno Haible  <bruno@clisp.org>
27186
27187         Tests for module 'sys_utsname'.
27188         * modules/sys_utsname-tests: New file.
27189         * tests/test-sys_utsname.c: New file.
27190
27191         New module 'sys_utsname'.
27192         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
27193         * m4/sys_utsname_h.m4: New file.
27194         * modules/sys_utsname: New file.
27195         * doc/posix-headers/sys_utsname.texi: Mention the new module.
27196
27197 2009-08-02  Bruno Haible  <bruno@clisp.org>
27198
27199         Implicitly initialize the sockets library.
27200         * lib/gethostname.c: Include sockets.h.
27201         (rpl_gethostname): Invoke gl_sockets_startup.
27202         * lib/socket.c: Include sockets.h.
27203         (rpl_socket): Invoke gl_sockets_startup.
27204         * modules/gethostname (Depends-on): Add sockets.
27205         * modules/socket (Depends-on): Likewise.
27206         * tests/test-poll.c: Don't include sockets.h.
27207         (main): Don't invoke gl_sockets_startup.
27208         * tests/test-select.c: Don't include sockets.h.
27209         (main): Don't invoke gl_sockets_startup.
27210
27211 2009-08-02  Bruno Haible  <bruno@clisp.org>
27212
27213         Allow multiple calls to gl_sockets_startup.
27214         * lib/sockets.c (initialized_sockets_version): New variable.
27215         (gl_sockets_startup): Do nothing if already called for this or a higher
27216         version.
27217         (gl_sockets_cleanup): Reset initialized_sockets_version.
27218
27219 2009-08-03  Simon Josefsson  <simon@josefsson.org>
27220
27221         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
27222         different project/version.
27223
27224 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
27225             Bruno Haible  <bruno@clisp.org>
27226
27227         Tests for module 'pipe-filter-gi'.
27228         * modules/pipe-filter-gi-tests: New file.
27229         * tests/test-pipe-filter-gi1.sh: New file.
27230         * tests/test-pipe-filter-gi1.c: New file.
27231         * tests/test-pipe-filter-gi2.sh: New file.
27232         * tests/test-pipe-filter-gi2-main.c: New file.
27233         * tests/test-pipe-filter-gi2-child.c: New file.
27234
27235         New module 'pipe-filter-gi'.
27236         * lib/pipe-filter-gi.c: New file.
27237         * modules/pipe-filter-gi: New file.
27238
27239 2009-08-02  Bruno Haible  <bruno@clisp.org>
27240             Paolo Bonzini  <bonzini@gnu.org>
27241
27242         Tests for module 'pipe-filter-ii'.
27243         * modules/pipe-filter-ii-tests: New file.
27244         * tests/test-pipe-filter-ii1.sh: New file.
27245         * tests/test-pipe-filter-ii1.c: New file.
27246         * tests/test-pipe-filter-ii2.sh: New file.
27247         * tests/test-pipe-filter-ii2-main.c: New file.
27248         * tests/test-pipe-filter-ii2-child.c: New file.
27249
27250         New module 'pipe-filter-ii'.
27251         * lib/pipe-filter.h: New file.
27252         * lib/pipe-filter-ii.c: New file.
27253         * lib/pipe-filter-aux.h: New file.
27254         * modules/pipe-filter-ii: New file.
27255
27256 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27257
27258         * lib/gc-libgcrypt.c: Change copyright to FSF.
27259         * lib/gc-gnulib.c: Likewise.
27260
27261 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
27262
27263         * lib/gethostname.c: Include limits.h.
27264
27265 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27266             Bruno Haible  <bruno@clisp.org>
27267
27268         Ensure HOST_NAME_MAX as part of the gethostname module.
27269         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
27270         define also HOST_NAME_MAX.
27271         * tests/test-gethostname.c: Include <limits.h>.
27272         (main): Check also HOST_NAME_MAX.
27273         * doc/posix-headers/limits.texi: Document the mingw problem.
27274
27275 2009-08-02  Bruno Haible  <bruno@clisp.org>
27276
27277         * lib/gethostname.c (gethostname): Fix handling of large len argument.
27278         Add comments.
27279
27280 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27281
27282         * lib/gethostname.c: Add Windows wrapper.
27283         * m4/gethostname.m4: Look for gethostname in -lws2_32.
27284         * modules/gethostname: Depend on sys_socket & errno, for also
27285         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
27286         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
27287
27288 2009-07-31  Jim Meyering  <meyering@redhat.com>
27289
27290         getloadavg: fix symbol name in comment
27291         * lib/getloadavg.c: Correct a typo I introduced when adding
27292         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
27293         Matt Kraai spotted the problem.
27294
27295 2009-07-29  Matt Kraai  <mkraai@beckman.com>
27296
27297         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
27298         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
27299         code also if ! defined N_NAME_POINTER.
27300         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
27301         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
27302         but the n_name member is a 12-byte array.
27303
27304 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
27305
27306         update-copyright: generalize comment handling
27307         * build-aux/update-copyright: Handle copyright statements
27308         within more comment styles.
27309         Document usage.
27310         Report any file with an external copyright holder or parse failure.
27311
27312 2009-07-29  Jim Meyering  <meyering@redhat.com>
27313
27314         mktime: correct setting of REPLACE_MKTIME
27315         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
27316
27317         update-copyright: new module
27318         * modules/update-copyright: New file.
27319         * build-aux/update-copyright: New file.
27320         * MODULES.html.sh (maint+release support): Add update-copyright.
27321
27322 2009-07-27  Bruno Haible  <bruno@clisp.org>
27323
27324         Fix compilation error when <ctime> is used and mktime is replaced.
27325         * lib/time.in.h (mktime): New declaration.
27326         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
27327         REPLACE_MKTIME instead of defining mktime in config.h.
27328         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
27329         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
27330         Reported by Ross McFarland <rwmcfa1@neces.com>.
27331
27332 2009-07-27  Bruno Haible  <bruno@clisp.org>
27333
27334         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
27335         Reported by Matt Kraai <mkraai@beckman.com>.
27336
27337 2009-07-25  Jim Meyering  <meyering@redhat.com>
27338
27339         maint.mk: avoid warnings about missing files
27340         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
27341         diagnostic when .prev-version does not exist.
27342         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
27343         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
27344         nonexistent cfg.mk.
27345         Suggestions from Simon Josefsson.
27346
27347 2009-07-25  Bruno Haible  <bruno@clisp.org>
27348
27349         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
27350         defined as macros. Needed on QNX 6.4.1.
27351         Reported by Matt Kraai <mkraai@beckman.com>.
27352
27353 2009-07-23  Jim Meyering  <meyering@redhat.com>
27354
27355         maint.mk: invoke "make dist" with a working value of XZ_OPT
27356         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
27357
27358 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
27359
27360         Make fseeko.c compile on QNX.
27361         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
27362
27363 2009-07-22  Peter Simons  <simons@cryp.to>
27364
27365         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
27366         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
27367         * lib/md4.h: Likewise.
27368         * lib/md5.h: Likewise.
27369         * lib/sha1.h: Likewise.
27370         * lib/sha256.h: Likewise.
27371         * lib/sha512.h: Likewise.
27372
27373         tests-sha1: don't assign literal string to 'char *' variable
27374         * tests/test-sha1.c (main): Declare locals with "const" to match
27375         attributes of the right hand side.
27376
27377 2009-07-21  Eric Blake  <ebb9@byu.net>
27378
27379         dup2: fix more mingw problems
27380         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
27381         fd to itself.
27382         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27383         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
27384         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
27385         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
27386         care of mingw bugs.
27387
27388 2009-07-21  Jim Meyering  <meyering@redhat.com>
27389
27390         vc-list-files: avoid failure when /bin/sh is dash
27391         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
27392         On some Debian based systems, /bin/sh is a symlink to dash, and running
27393         this command would omit the "/" following each 'tests' prefix:
27394           dash -x build-aux/vc-list-files -C . tests
27395         That is because bash and dash work differently:
27396           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
27397           bash ok
27398           dash odd
27399
27400 2009-07-21  Eric Blake  <ebb9@byu.net>
27401
27402         dup2-tests: test previous patch
27403         * modules/dup2-tests: New file.
27404         * tests/test-dup2.c: Likewise.
27405         * tests/test-open.c (main): Avoid unspecified behavior.
27406         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
27407         test.
27408
27409         dup2: work around mingw and cygwin 1.5 bug
27410         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
27411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27412         * modules/unistd (Makefile.am): Substitute it.
27413         * lib/unistd.in.h (dup2): Declare the replacement.
27414         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
27415         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
27416         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
27417         * modules/execute (Depends-on): Add dup2.
27418         * modules/fseterr (Depends-on): Likewise.
27419         * modules/pipe (Depends-on): Likewise.
27420         * modules/posix_spawn-internal (Depends-on): Likewise.
27421
27422 2009-07-21  Bruno Haible  <bruno@clisp.org>
27423
27424         * modules/.gitattributes: New file.
27425
27426 2009-07-20  Bruno Haible  <bruno@clisp.org>
27427
27428         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
27429         (main): Use it.
27430
27431 2009-07-20  Eric Blake  <ebb9@byu.net>
27432
27433         test-pipe: make a bit more robust.
27434         * tests/test-pipe.c (myerr): Allow error messages regardless of
27435         what we do to stderr.
27436         (test_pipe): Rearrange to avoid deadlock.
27437         (child_main): Try a larger read, to ensure we avoided deadlock.
27438         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
27439         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
27440         if misused.
27441
27442 2009-07-19  Jim Meyering  <meyering@redhat.com>
27443
27444         fts: avoid false-positive cycle-detection
27445         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
27446         for each new command line argument.
27447
27448 2009-07-19  Bruno Haible  <bruno@clisp.org>
27449
27450         Fix build error on mingw with the modules sys_select and unistd.
27451         * modules/acl-tests (Depends-on): Add close.
27452         * modules/binary-io-tests (Depends-on): Likewise.
27453         * modules/closein-tests (Depends-on): Likewise.
27454         * modules/flock-tests (Depends-on): Likewise.
27455         * modules/fsync-tests (Depends-on): Likewise.
27456         * modules/lseek-tests (Depends-on): Likewise.
27457         * modules/pipe-tests (Depends-on): Likewise.
27458         * modules/posix_spawn-tests (Depends-on): Likewise.
27459         * modules/posix_spawnp-tests (Depends-on): Likewise.
27460         * modules/stat-time-tests (Depends-on): Likewise.
27461         * modules/yesno-tests (Depends-on): Likewise.
27462
27463 2009-07-19  Bruno Haible  <bruno@clisp.org>
27464
27465         Unify conditionals.
27466         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
27467         macros, not at the compiler macros.
27468         * lib/pipe.c: Likewise.
27469         * lib/execute.c: Likewise.
27470         * lib/spawni.c: Likewise.
27471
27472 2009-07-19  Bruno Haible  <bruno@clisp.org>
27473
27474         Fix handling of closed stdin/stdout/stderr on mingw.
27475         * lib/w32spawn.h: Include unistd.h.
27476         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
27477         file descriptor with O_NOINHERIT flag.
27478         (fd_safer_noinherit): New function, based on fd-safer.c.
27479         (dup_safer_noinherit): New function, based on dup-safer.c.
27480         (undup_safer_noinherit): New function.
27481         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
27482         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
27483         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
27484         instead of fd_safer.
27485         * tests/test-pipe.c: Include <windows.h>.
27486         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
27487         result.
27488
27489         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
27490         from main.
27491         (test_pipe): Pass an extra argument for disambiguation.
27492         (main): Invoke parent_main or child_main.
27493
27494         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
27495         consistently.
27496
27497 2009-07-18  Eric Blake  <ebb9@byu.net>
27498
27499         test-pipe: fix mingw build
27500         * tests/test-pipe.c (main): Avoid fcntl on mingw.
27501
27502 2009-07-18  Bruno Haible  <bruno@clisp.org>
27503
27504         * modules/pipe-tests (Makefile.am): Fix typo.
27505
27506 2009-07-18  Eric Blake  <ebb9@byu.net>
27507
27508         error: fix mingw build
27509         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
27510         Reported by Bruno Haible.
27511
27512         error: avoid undefined use of stdout
27513         * lib/error.c (error, error_at_line): Check that fd 1 is open
27514         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
27515         is handling faults and the close_stdout module wants to report the
27516         detection of closed stdout as an error.
27517
27518 2009-07-17  Eric Blake  <ebb9@byu.net>
27519
27520         pipe: be robust in face of closed fds
27521         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
27522         should cause child to misbehave.
27523         * modules/pipe-tests: New module.
27524         * tests/test-pipe.c: New file.
27525         * tests/test-pipe.sh: New file.
27526         Reported by Akim Demaille.
27527
27528 2009-07-14  Bruno Haible  <bruno@clisp.org>
27529
27530         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
27531         Reported by anonymous kc.
27532
27533 2009-07-07  Jim Meyering  <meyering@redhat.com>
27534
27535         maint.mk: don't look for translatable strings in *.m4 or *.mk
27536         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
27537         when searching for translatable strings.
27538
27539 2009-07-05  Jim Meyering  <meyering@redhat.com>
27540
27541         remove superfluous parentheses in STREQ definition
27542         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
27543         * lib/getugroups.c (STREQ): Likewise.
27544         * lib/fnmatch.c (STREQ): Likewise.
27545         Spotted by Bruno Haible.
27546
27547 2009-07-04  Jim Meyering  <meyering@redhat.com>
27548
27549         argv-iter: new module
27550         * MODULES.html.sh: Add argv-iter.
27551         * lib/argv-iter.c, lib/argv-iter.h: New files.
27552         * modules/argv-iter: New file.
27553         * modules/argv-iter-tests: New file.
27554         * tests/test-argv-iter.c: Test it.
27555
27556 2009-07-04  Bruno Haible  <bruno@clisp.org>
27557
27558         Fix assertion.
27559         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
27560         contains more exact copies of a given entry than file2, leave the extra
27561         copies unpaired rather than aborting.
27562         Reported by Eric Blake.
27563
27564 2009-07-02  Bruno Haible  <bruno@clisp.org>
27565
27566         Speedup git-merge-changelog for git cherry-pick.
27567         * lib/git-merge-changelog.c (struct entries_mapping): New type.
27568         (entries_mapping_get): New function, extracted from compute_mapping.
27569         (entries_mapping_reverse_get): New function.
27570         (compute_mapping): Add a 'full' argument. Return the result in a
27571         'struct entries_mapping'.
27572         (main): Update. Access the mappings through entries_mapping_get.
27573         Reported by Eric Blake.
27574
27575 2009-07-02  Bruno Haible  <bruno@clisp.org>
27576
27577         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
27578         best_i.
27579
27580 2009-07-02  Bruno Haible  <bruno@clisp.org>
27581
27582         Speed up approximate search for matching ChangeLog entries.
27583         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
27584         argument. Call fstrcmp_bounded instead of fstrcmp.
27585         (compute_mapping, try_split_merged_entry, main): Update callers.
27586
27587 2009-07-02  Bruno Haible  <bruno@clisp.org>
27588
27589         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
27590
27591 2009-06-30  Bruno Haible  <bruno@clisp.org>
27592
27593         Reduce the number of uc_is_cased calls.
27594         * lib/unicase.h (casing_suffix_context_t): Add
27595         'first_char_except_ignorable' field.
27596         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
27597         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
27598         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
27599         Update initializer.
27600         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
27601         case-ignorable characters.
27602         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
27603         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
27604         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
27605         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
27606         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
27607
27608 2009-06-30  Bruno Haible  <bruno@clisp.org>
27609
27610         Tests for module 'unicase/ignorable'.
27611         * modules/unicase/ignorable-tests: New file.
27612         * tests/unicase/test-ignorable.c: New file, generated by
27613         gen-uni-tables.
27614
27615         Tests for module 'unicase/cased'.
27616         * modules/unicase/cased-tests: New file.
27617         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
27618         * tests/unicase/test-predicate-part1.h: New file, derived from
27619         tests/unictype/test-predicate-part1.h.
27620         * tests/unicase/test-predicate-part2.h: New file, same as
27621         tests/unictype/test-predicate-part2.h.
27622
27623         Fix evaluation of "Before C" condition of FINAL_SIGMA.
27624         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
27625         (output_casing_properties): New function.
27626         (main): Call it.
27627         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
27628         * lib/unicase/cased.c: Include unictype/bitmap.h.
27629         (uc_is_cased): Define through a bitmap lookup.
27630         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
27631         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
27632         (uc_is_case_ignorable): Define through a bitmap lookup.
27633         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
27634         lib/unictype/bitmap.h.
27635         (Depends-on): Add inline. Clean up.
27636         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
27637         lib/unictype/bitmap.h.
27638         (Depends-on): Add inline. Clean up.
27639         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
27640         recognition.
27641         * tests/unicase/test-u16-tolower.c (main): Likewise.
27642         * tests/unicase/test-u32-tolower.c (main): Likewise.
27643
27644 2009-06-30  Bruno Haible  <bruno@clisp.org>
27645
27646         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
27647         * lib/unicase/u16-casemap.c: Likewise.
27648         * lib/unicase/u32-casemap.c: Likewise.
27649
27650 2009-06-29  Bruno Haible  <bruno@clisp.org>
27651
27652         Define u32_casefold as a wrapper around u32_ct_casefold.
27653         * lib/unicase/u32-casefold.c: Update.
27654         * modules/unicase/u32-casefold (Depends-on): Add
27655         unicase/u32-ct-casefold, unicase/empty-prefix-context,
27656         unicase/empty-suffix-context. Clean up.
27657
27658         Define u16_casefold as a wrapper around u16_ct_casefold.
27659         * lib/unicase/u16-casefold.c: Update.
27660         * modules/unicase/u16-casefold (Depends-on): Add
27661         unicase/u16-ct-casefold, unicase/empty-prefix-context,
27662         unicase/empty-suffix-context. Clean up.
27663
27664         Define u8_casefold as a wrapper around u8_ct_casefold.
27665         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
27666         * lib/unicase/u8-casefold.c: Update.
27667         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
27668         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27669
27670         Define u32_totitle as a wrapper around u32_ct_totitle.
27671         * lib/unicase/u32-totitle.c: Update.
27672         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
27673         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27674
27675         Define u16_totitle as a wrapper around u16_ct_totitle.
27676         * lib/unicase/u16-totitle.c: Update.
27677         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
27678         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27679
27680         Define u8_totitle as a wrapper around u8_ct_totitle.
27681         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
27682         functions.
27683         (FUNC): Delegate to U_CT_TOTITLE.
27684         * lib/unicase/u8-totitle.c: Update.
27685         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
27686         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27687
27688         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
27689         invocation.
27690         * modules/unicase/u32-tolower (Depends-on): Add
27691         unicase/empty-prefix-context, unicase/empty-suffix-context.
27692
27693         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
27694         invocation.
27695         * modules/unicase/u16-tolower (Depends-on): Add
27696         unicase/empty-prefix-context, unicase/empty-suffix-context.
27697
27698         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
27699         * modules/unicase/u8-tolower (Depends-on): Add
27700         unicase/empty-prefix-context, unicase/empty-suffix-context.
27701
27702         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
27703         invocation.
27704         * modules/unicase/u32-toupper (Depends-on): Add
27705         unicase/empty-prefix-context, unicase/empty-suffix-context.
27706
27707         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
27708         invocation.
27709         * modules/unicase/u16-toupper (Depends-on): Add
27710         unicase/empty-prefix-context, unicase/empty-suffix-context.
27711
27712         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
27713         * modules/unicase/u8-toupper (Depends-on): Add
27714         unicase/empty-prefix-context, unicase/empty-suffix-context.
27715
27716         New module 'unicase/u32-ct-casefold'.
27717         * lib/unicase/u32-ct-casefold.c: New file.
27718         * modules/unicase/u32-ct-casefold: New file.
27719
27720         New module 'unicase/u16-ct-casefold'.
27721         * lib/unicase/u16-ct-casefold.c: New file.
27722         * modules/unicase/u16-ct-casefold: New file.
27723
27724         New module 'unicase/u8-ct-casefold'.
27725         * lib/unicase/u8-ct-casefold.c: New file.
27726         * lib/unicase/u-ct-casefold.h: New file, derived from
27727         lib/unicase/u-casefold.h.
27728         * modules/unicase/u8-ct-casefold: New file.
27729
27730         New module 'unicase/u32-ct-totitle'.
27731         * lib/unicase/u32-ct-totitle.c: New file.
27732         * modules/unicase/u32-ct-totitle: New file.
27733
27734         New module 'unicase/u16-ct-totitle'.
27735         * lib/unicase/u16-ct-totitle.c: New file.
27736         * modules/unicase/u16-ct-totitle: New file.
27737
27738         New module 'unicase/u8-ct-totitle'.
27739         * lib/unicase/u8-ct-totitle.c: New file.
27740         * lib/unicase/u-ct-totitle.h: New file, derived from
27741         lib/unicase/u-totitle.h.
27742         * modules/unicase/u8-ct-totitle: New file.
27743
27744         New module 'unicase/u32-ct-tolower'.
27745         * lib/unicase/u32-ct-tolower.c: New file.
27746         * modules/unicase/u32-ct-tolower: New file.
27747
27748         New module 'unicase/u16-ct-tolower'.
27749         * lib/unicase/u16-ct-tolower.c: New file.
27750         * modules/unicase/u16-ct-tolower: New file.
27751
27752         New module 'unicase/u8-ct-tolower'.
27753         * lib/unicase/u8-ct-tolower.c: New file.
27754         * modules/unicase/u8-ct-tolower: New file.
27755
27756         New module 'unicase/u32-ct-toupper'.
27757         * lib/unicase/u32-ct-toupper.c: New file.
27758         * modules/unicase/u32-ct-toupper: New file.
27759
27760         New module 'unicase/u16-ct-toupper'.
27761         * lib/unicase/u16-ct-toupper.c: New file.
27762         * modules/unicase/u16-ct-toupper: New file.
27763
27764         New module 'unicase/u8-ct-toupper'.
27765         * lib/unicase/u8-ct-toupper.c: New file.
27766         * modules/unicase/u8-ct-toupper: New file.
27767
27768         Add context arguments to u*_casemap functions.
27769         * lib/unicase/unicasemap.h: Include unicase.h.
27770         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
27771         suffix_context arguments.
27772         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
27773         functions.
27774         (FUNC): Add prefix_context and suffix_context arguments. Use
27775         uc_is_cased and uc_is_case_ignorable.
27776         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
27777         * lib/unicase/u16-casemap.c: Likewise.
27778         * lib/unicase/u32-casemap.c: Likewise.
27779         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
27780         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27781         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
27782         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27783         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
27784         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27785
27786         New module 'unicase/u32-suffix-context'.
27787         * lib/unicase/u32-suffix-context.c: New file.
27788         * modules/unicase/u32-suffix-context: New file.
27789
27790         New module 'unicase/u16-suffix-context'.
27791         * lib/unicase/u16-suffix-context.c: New file.
27792         * modules/unicase/u16-suffix-context: New file.
27793
27794         New module 'unicase/u8-suffix-context'.
27795         * lib/unicase/u8-suffix-context.c: New file.
27796         * lib/unicase/u-suffix-context.h: New file.
27797         * modules/unicase/u8-suffix-context: New file.
27798
27799         New module 'unicase/empty-suffix-context'.
27800         * lib/unicase/empty-suffix-context.c: New file.
27801         * modules/unicase/empty-suffix-context: New file.
27802
27803         New module 'unicase/u32-prefix-context'.
27804         * lib/unicase/u32-prefix-context.c: New file.
27805         * modules/unicase/u32-prefix-context: New file.
27806
27807         New module 'unicase/u16-prefix-context'.
27808         * lib/unicase/u16-prefix-context.c: New file.
27809         * modules/unicase/u16-prefix-context: New file.
27810
27811         New module 'unicase/u8-prefix-context'.
27812         * lib/unicase/u8-prefix-context.c: New file.
27813         * lib/unicase/u-prefix-context.h: New file.
27814         * lib/unicase/context.h: New file.
27815         * modules/unicase/u8-prefix-context: New file.
27816
27817         New module 'unicase/empty-prefix-context'.
27818         * lib/unicase/empty-prefix-context.c: New file.
27819         * modules/unicase/empty-prefix-context: New file.
27820
27821         New module 'unicase/ignorable'.
27822         * lib/unicase/ignorable.c: New file.
27823         * modules/unicase/ignorable: New file.
27824
27825         New module 'unicase/cased'.
27826         * lib/unicase/caseprop.h: New file.
27827         * lib/unicase/cased.c: New file.
27828         * modules/unicase/cased: New file.
27829
27830         New functions for case mapping of substrings.
27831         * lib/unicase.h (casing_prefix_context_t): New type.
27832         (unicase_empty_prefix_context): New variable.
27833         (u8_casing_prefix_context, u16_casing_prefix_context,
27834         u32_casing_prefix_context, u8_casing_prefixes_context,
27835         u16_casing_prefixes_context, u32_casing_prefixes_context): New
27836         declarations.
27837         (casing_suffix_context_t): New type.
27838         (unicase_empty_suffix_context): New variable.
27839         (u8_casing_suffix_context, u16_casing_suffix_context,
27840         u32_casing_suffix_context, u8_casing_suffixes_context,
27841         u16_casing_suffixes_context, u32_casing_suffixes_context,
27842         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
27843         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
27844         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
27845         declarations.
27846
27847 2009-06-28  Jim Meyering  <meyering@redhat.com>
27848
27849         boostrap: indent only with spaces
27850         * build-aux/bootstrap: Indent only with spaces, never TABs.
27851
27852         bootstrap: split long lines
27853         * build-aux/bootstrap: Keep line length < 80.
27854
27855         bootstrap: sync from coreutils
27856         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
27857         just as autoreconf does.  Verify a list of prerequisite
27858         package-name,version-number pairs if defined in bootstrap.conf.
27859         Refer to README-prereq, if prerequisites are not satisfied.
27860
27861 2009-06-27  Eric Blake  <ebb9@byu.net>
27862
27863         tests: add test for bogus NULL definition
27864         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
27865         * tests/test-stdlib.c: Likewise.
27866         * tests/test-string.c: Likewise.
27867         * tests/test-locale.c: Likewise.
27868         * tests/test-unistd.c: Likewise.
27869         * modules/stdio-tests (Depends-on): Add verify.
27870         * modules/stdlib-tests (Depends-on): Likewise.
27871         * modules/string-tests (Depends-on): Likewise.
27872         * modules/locale-tests (Depends-on): Likewise.
27873         * modules/unistd-tests (Depends-on): Likewise.
27874
27875 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
27876
27877         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
27878         self-explaining comment.
27879         * m4/selinux-selinux-h: Update serial.
27880         (gl_LIBSELINUX): New macro, adding a warning for missing development
27881         packages to code extracted from...
27882         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
27883         Add warning for missing development packages here, too.
27884
27885 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
27886
27887         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
27888
27889 2009-06-25  Eric Blake  <ebb9@byu.net>
27890
27891         version-etc: fix regression
27892         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
27893         gcc.
27894         (version_etc): Use it, to catch bugs with trailing NULL.
27895         * lib/version-etc.c (version_etc_arn): Delete unused argument.
27896         (version_etc_va): Fix logic bug.
27897         * modules/version-etc-tests: Add test.
27898         * tests/test-version-etc.c: New file.
27899         * tests/test-version-etc.sh: Likewise.
27900
27901 2009-06-25  Sam Steingold  <sds@gnu.org>
27902
27903         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
27904         mbtowc declaration.
27905
27906 2009-06-25  Eric Blake  <ebb9@byu.net>
27907
27908         fpurge: migrate into <stdio.h>
27909         * lib/fpurge.h: Delete...
27910         * lib/stdio.in.h (fpurge): ...and declare here, instead.
27911         * lib/fpurge.c (fpurge): Change declaring header.
27912         * modules/fpurge (Files): Drop deleted file.
27913         (Depends-on): Add stdio.
27914         (configure.ac): Set witness.
27915         * modules/stdio (Makefile.am): Support fpurge macros.
27916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27917         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27918         * lib/fflush.c: Update client.
27919         * tests/test-fpurge.c: Likewise.
27920         * NEWS: Mention the change.
27921
27922 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27923
27924         * lib/argp-version-etc.c (program_authors): Add const
27925         qualifier.
27926         * lib/version-etc.c: Fix typos in the comments.
27927         * modules/argp-version-etc: Depends on version-etc.
27928
27929 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27930
27931         argp-version-etc: new module.
27932
27933         * lib/argp-version-etc.c: New file.
27934         * lib/argp-version-etc.h: New file.
27935         * modules/argp-version-etc: New file.
27936         * modules/argp-version-etc-tests: New file.
27937         * tests/test-argp-version-etc.c: New test.
27938         * tests/test-argp-version-etc-1.sh: New test.
27939
27940 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27941
27942         Provide additional interfaces and documentation for version-etc
27943         module.
27944
27945         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
27946         interfaces.
27947         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
27948         prototypes.
27949
27950 2009-06-24  Bruno Haible  <bruno@clisp.org>
27951
27952         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
27953         HAVE_LIB${NAME} macro.
27954         Reported by Sam Steingold <sds@gnu.org>.
27955
27956 2009-06-23  Simon Josefsson  <simon@josefsson.org>
27957
27958         * modules/hash-tests (test_hash_LDADD): Link to libintl when
27959         needed.
27960
27961 2009-06-21  Bruno Haible  <bruno@clisp.org>
27962
27963         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
27964         work.
27965         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
27966         together with LIB${NAME}, LTLIB${NAME}.
27967         Reported by Sam Steingold <sds@gnu.org>.
27968
27969 2009-06-20  Jim Meyering  <meyering@redhat.com>
27970
27971         tests: make sc_require_test_exit_idiom more generic
27972         * top/maint.mk (Exit_witness_file): New overridable variable.
27973         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
27974         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
27975
27976 2009-06-19  Jim Meyering  <meyering@redhat.com>
27977
27978         hash: reverse order of src/dst parameters in an internal interface
27979         * lib/hash.c (transfer_entries): Reverse order of parameters to
27980         put DST before SRC.  Adjust callers.
27981
27982         tests: test-hash: avoid wholesale duplication
27983         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
27984         Instead, use a loop and add a single conditional.
27985
27986         tests: test-hash: allow seed selection via a command line argument
27987         * tests/test-hash.c (get_seed): New function.
27988         (main): Use it.
27989
27990 2009-06-19  Eric Blake  <ebb9@byu.net>
27991
27992         hash: avoid memory leak on allocation failure
27993         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
27994         failure.  Factor repeated algorithm...
27995         (transfer_entries): ...into new helper routine.
27996         (hash_delete): React to hash_rehash return value.
27997
27998         hash: reduce memory pressure in hash_rehash no-op case
27999         * lib/hash.c (next_prime): Avoid overflow.
28000         (hash_initialize): Factor bucket size computation...
28001         (compute_bucket_size): ...into new helper function.
28002         (hash_rehash): Use new function and open coding to reduce memory
28003         pressure, and avoid a memory leak in USE_OBSTACK code.
28004         Reported by Jim Meyering.
28005
28006 2009-06-18  Eric Blake  <ebb9@byu.net>
28007
28008         hash: make rotation more obvious
28009         * modules/hash (Depends-on): Add bitrotate and stdint.
28010         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
28011         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
28012         (SIZE_MAX): Rely on headers for definition.
28013         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
28014         (raw_hasher): Use rotr_sz.
28015         Suggested by Jim Meyering.
28016
28017         hash: fix memory leak in last patch
28018         * lib/hash.c (hash_rehash): Avoid memory leak.
28019
28020         hash: avoid no-op rehashing
28021         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
28022
28023         hash: provide default callback functions
28024         * lib/hash.c (raw_hasher, raw_comparator): New functions.
28025         (hash_initialize): Use them as defaults.
28026         * tests/test-hash.c (main): Test this.
28027
28028         hash: minor optimization
28029         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
28030         when possible.
28031         (hash_initialize): Document this promise.
28032         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
28033         * tests/test-hash.c (hash_compare_strings): Test this.
28034
28035 2009-06-18  Bruno Haible  <bruno@clisp.org>
28036
28037         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
28038         going to be replaced anyway.
28039
28040 2009-06-18  Bruno Haible  <bruno@clisp.org>
28041
28042         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
28043         in one place.
28044         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
28045         be replaced anyway.
28046
28047 2009-06-18  Eric Blake  <ebb9@byu.net>
28048
28049         hash: check for resize before insertion
28050         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
28051         threshold before insertion, so that a pathological hash_rehash
28052         that fills every bucket can still trigger another rehash.
28053
28054 2009-06-18  Jim Meyering  <meyering@redhat.com>
28055
28056         hash-tests: add a loop around the small tests
28057         * tests/test-hash.c (main): Repeat small tests with selected
28058         small initial table sizes.
28059
28060 2009-06-17  Eric Blake  <ebb9@byu.net>
28061
28062         hash: minor cleanups
28063         * lib/hash.h (hash_entry): Make opaque, by moving...
28064         * lib/hash.c (hash_entry): ...here.
28065         (hash_insert): Clarify restrictions on what can be inserted.
28066         (hash_get_next): Clarify when it is safe to remove an element
28067         during traversal.
28068         (check_tuning): Skip verification when tuning is known safe.
28069         (hash_initialize): Clarify restrictions on tuning.
28070
28071 2009-06-17  Jim Meyering  <jim@meyering.net>
28072         and Eric Blake  <ebb9@byu.net>
28073
28074         hash-tests: new module
28075         * modules/hash-tests: New file.
28076         * tests/test-hash.c: New file.
28077
28078 2009-06-17  Eric Blake  <ebb9@byu.net>
28079
28080         strstr-simple: document new module
28081         * MODULES.html.sh: Document new module.
28082
28083         strstr, strcasestr: replace on platforms with broken memchr
28084         * modules/strstr: Split into...
28085         * modules/strstr-simple: ...new module that does not care about
28086         performance, but does care about glibc bug.
28087         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
28088         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
28089         if platform memchr is broken, per Debian bug 521737.
28090         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
28091         memchr.
28092         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
28093         * doc/posix-functions/strstr.texi (strstr): Document the fix.
28094         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28095         * modules/mountlist (Depends-on): Add strstr-simple.
28096         * modules/gen-uni-tables (Depends-on): Likewise.
28097         * modules/argz (Depends-on): Add strstr.
28098
28099 2009-06-17  Bruno Haible  <bruno@clisp.org>
28100
28101         * modules/posix_spawn-internal (Depends-on): Add errno.
28102
28103 2009-06-17  Bruno Haible  <bruno@clisp.org>
28104
28105         Define missing ESTALE on Interix 3.5.
28106         * lib/errno.in.h (ESTALE): Assign a value if missing.
28107         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
28108         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
28109         missing.
28110         * doc/posix-headers/errno.texi: Mention the Interix bug.
28111         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
28112
28113 2009-06-15  Eric Blake  <ebb9@byu.net>
28114
28115         memchr, memchr2: add valgrind exception
28116         * lib/memchr.valgrind: New file.
28117         * lib/memchr2.valgrind: New file.
28118         * modules/memchr (Files): Distribute valgrind file.
28119         * modules/memchr2 (Files): Likewise.
28120
28121         docs: memchr is no longer obsolete
28122         * MODULES.html.sh: Move memchr from obsolete to string.h section.
28123         * lib/string.in.h (memchr): Simplify logic.
28124
28125 2009-06-14  Jim Meyering  <meyering@redhat.com>
28126
28127         link-follow: fix the "checking..." message to not mention trailing slash
28128         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
28129         never considered trailing slashes.
28130
28131 2009-06-14  Bruno Haible  <bruno@clisp.org>
28132
28133         * m4/memchr.m4: Mention also the bug on IA-64.
28134         * doc/posix-functions/memchr.texi: Likewise.
28135
28136 2009-06-12  Eric Blake  <ebb9@byu.net>
28137
28138         memchr: detect broken x86_64 and alpha implementations
28139         * modules/memchr-tests (Depends-on): Move mmap detection...
28140         * modules/memchr (Depends-on): ...here.
28141         (configure.ac): Set indicator.
28142         * lib/string.in.h (memchr): Declare replacement.
28143         * modules/string (Makefile.am): Trigger replacement.
28144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28145         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
28146         bugs.
28147         * doc/posix-functions/memchr.texi (memchr): Document the bug.
28148         * modules/getpagesize (License): Relax license.
28149
28150 2009-06-11  Bruno Haible  <bruno@clisp.org>
28151
28152         * lib/idpriv.h: Add more references.
28153
28154 2009-06-08  Bruno Haible  <bruno@clisp.org>
28155
28156         Tests for module 'idpriv-droptemp'.
28157         * modules/idpriv-droptemp-tests: New file.
28158         * tests/test-idpriv-droptemp.sh: New file.
28159         * tests/test-idpriv-droptemp.su.sh: New file.
28160         * tests/test-idpriv-droptemp.c: New file.
28161
28162         New module 'idpriv-droptemp'.
28163         * lib/idpriv-droptemp.c: New file.
28164         * modules/idpriv-droptemp: New file.
28165
28166 2009-06-08  Bruno Haible  <bruno@clisp.org>
28167
28168         Tests for module 'idpriv-drop'.
28169         * modules/idpriv-drop-tests: New file.
28170         * tests/test-idpriv-drop.sh: New file.
28171         * tests/test-idpriv-drop.su.sh: New file.
28172         * tests/test-idpriv-drop.c: New file.
28173
28174         New module 'idpriv-drop'.
28175         * lib/idpriv.h: New file.
28176         * lib-idpriv-drop.c: New file.
28177         * m4/idpriv.m4: New file.
28178         * modules/idpriv-drop: New file.
28179
28180 2009-06-08  Bruno Haible  <bruno@clisp.org>
28181
28182         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
28183         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28184         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28185         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28186         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28187         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28188         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28189
28190 2009-06-08  Eric Blake  <ebb9@byu.net>
28191
28192         test-strstr: use memory fence, when possible
28193         * tests/test-strstr.c (main): Use memory fence, in order to be
28194         more likely to trigger Debian bug 521737.
28195         * modules/strstr-tests (Files): Pull in additional files.
28196
28197         memchr: no longer obsolete, for wider field testing
28198         * modules/memchr (Status, Notice): Delete, this module is no
28199         longer obsolete.
28200         * modules/vasnprintf (Depends-on): Add memchr.
28201
28202 2009-06-07  Jim Meyering  <meyering@redhat.com>
28203
28204         hash: declare some functions with the warn_unused_result attribute
28205         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
28206
28207 2009-06-07  Bruno Haible  <bruno@clisp.org>
28208
28209         * tests/test-alignof.c: Don't test int64_t if it does not exist.
28210         Reported by Eric Blake.
28211
28212 2009-06-06  Eric Blake  <ebb9@byu.net>
28213
28214         test-alignof: fix typo with long double
28215         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
28216         compiler error.
28217
28218 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
28219
28220         Escape non-texinfo { and }s.
28221         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
28222         markup error.
28223
28224 2009-06-04  Jim Meyering  <meyering@redhat.com>
28225
28226         gitlog-to-changelog: don't infloop on an empty commit log
28227         * build-aux/gitlog-to-changelog: Warn about an empty log message.
28228         Reported by Boris Petersen <transacid@centerim.org>.
28229
28230 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
28231
28232         version-etc: extend for packagers
28233         Add three new configure options, intended for packagers:
28234           --with-packager="packager name"
28235           --with-packager-version="packager-specific version"
28236           --with-packager-bug-reports="packager bug reporting"
28237         An example with coreutils:
28238           $ ./configure \
28239             --with-packager=Gentoo \
28240             --with-packager-bug-report=http://bugs.gentoo.org/ \
28241             --with-packager-version="patchset 1.6"
28242           $ ./src/ls --version | head -n2
28243           ls (GNU coreutils) 7.1-dirty
28244           Packaged by Gentoo (patchset 1.6)
28245         Note that the bug reporting info via --help doesn't show up because
28246         coreutils uses its own custom emit_bug_reporting_address() implementation
28247         in src/system.h.  If it didn't, it'd look like:
28248           $ ./src/ls --help | tail -n4
28249           Report bugs to <bug-coreutils@gnu.org>.
28250           Report Gentoo bugs to <http://bugs.gentoo.org/>.
28251           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
28252           General help using GNU software: <http://www.gnu.org/gethelp/>.
28253         * lib/version-etc.c: Print new information, if provided.
28254         * m4/version-etc.m4: New file.
28255         * modules/version-etc (Files): Add m4/version-etc.m4.
28256         (configure.ac): Add gl_VERSION_ETC.
28257
28258 2009-05-31  Bruno Haible  <bruno@clisp.org>
28259
28260         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
28261         and 'int64_t'.
28262         * modules/alignof-tests (Dependencies): Add stdint.
28263         Reported by Eric Blake.
28264
28265 2009-05-31  Bruno Haible  <bruno@clisp.org>
28266
28267         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
28268         restriction due to compiler bugs.
28269         Reported by Eric Blake.
28270
28271 2009-05-31  Simon Josefsson  <simon@josefsson.org>
28272             Bruno Haible  <bruno@clisp.org>
28273
28274         Fix test-alignof failure.
28275         * lib/alignof.h (alignof_slot): New macro.
28276         (alignof_type): New macro, with the same semantics as the previous
28277         'alignof'.
28278         (alignof): Alias to alignof_slot.
28279         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
28280         check that the results are usable as constant expressions.
28281
28282 2009-05-31  Bruno Haible  <bruno@clisp.org>
28283
28284         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
28285         * tests/test-memchr.c (main): Check that memchr does not read past the
28286         first occurrence of the byte.
28287         * tests/test-strstr.c (main): Update comment.
28288         Suggested by Eric Blake.
28289
28290 2009-05-30  Bruno Haible  <bruno@clisp.org>
28291
28292         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
28293         detail how to use dumpbin.
28294         Reported by David Byron <dbyron@dbyron.com>.
28295
28296 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28297
28298         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
28299
28300 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28301
28302         * m4/manywarnings.m4: Add GCC 4.4 warnings.
28303
28304 2009-05-28  Bruno Haible  <bruno@clisp.org>
28305
28306         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
28307         build-aux/ files.
28308
28309 2009-05-28  Simon Josefsson  <simon@josefsson.org>
28310
28311         * gnulib-tool (func_import): Transform license on build-aux/ files too.
28312
28313 2009-05-27  Simon Josefsson  <simon@josefsson.org>
28314
28315         * gnulib-tool (sed_transform_main_lib_file)
28316         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
28317         regexps.
28318
28319 2009-05-26  Simon Josefsson  <simon@josefsson.org>
28320
28321         * tests/test-strstr.c: Add another self-test.
28322         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
28323         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
28324
28325 2009-05-23  Bruno Haible  <bruno@clisp.org>
28326
28327         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
28328         change.
28329
28330 2009-05-21  Bruno Haible  <bruno@clisp.org>
28331
28332         Simplify use of mode_t varargs.
28333         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
28334         uses 'mode_t' or 'int'.
28335         * lib/openat.c (openat): Likewise.
28336         * lib/open-safer.c (open_safer): Likewise.
28337         * m4/mode_t.m4: New file.
28338         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
28339         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
28340         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
28341         * modules/open (Files): Add m4/mode_t.m4.
28342         * modules/openat (Files): Likewise.
28343         * modules/fcntl-safer (Files): Likewise.
28344         Suggested by Eric Blake.
28345
28346 2009-05-21  Pádraig Brady  <P@draigbrady.com>
28347
28348         * doc/glibc-functions/fallocate.texi: New file.
28349         * doc/gnulib.texi: Include it.
28350
28351 2009-05-21  Eric Blake  <ebb9@byu.net>
28352             Bruno Haible  <bruno@clisp.org>
28353
28354         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
28355         invocations.
28356         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28357
28358 2009-05-21  Eric Blake  <ebb9@byu.net>
28359             Bruno Haible  <bruno@clisp.org>
28360
28361         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
28362         include_next. Fix of 2008-11-20 commit.
28363         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
28364         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
28365         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
28366         NEXT_MATH_H.
28367         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
28368         instead of NEXT_MATH_H.
28369
28370 2009-05-21  Bruno Haible  <bruno@clisp.org>
28371
28372         Avoid redefinition warnings for SIZE_MAX.
28373         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
28374         Reported by Simon Josefsson.
28375
28376 2009-05-21  Bruno Haible  <bruno@clisp.org>
28377
28378         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
28379         AC_CACHE_VAL.
28380
28381 2009-05-20  Bruno Haible  <bruno@clisp.org>
28382
28383         Make zeroptr.h work on mingw.
28384         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
28385         mprotect.
28386         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
28387         * modules/memchr2-tests (configure.ac): Likewise.
28388         * modules/memcmp-tests (configure.ac): Likewise.
28389         * modules/memmem-tests (configure.ac): Likewise.
28390         * modules/memrchr-tests (configure.ac): Likewise.
28391         Reported by Simon Josefsson.
28392
28393 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28394
28395         * tests/test-glob.c: Include string.h for strcmp prototype.
28396
28397 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28398
28399         * modules/getdelim (Depends-on): Add explicit stdint, although it
28400         was implicitly already pulled in via realloc-posix.
28401         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
28402
28403 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28404
28405         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
28406         G. Christensen" <tgc@jupiterrise.com>.
28407         * m4/sys_socket_h.m4: Check for sa_family_t.
28408         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
28409         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
28410         * tests/test-sys_socket.c: Check that sa_family_t works.
28411
28412 2009-05-18  Eric Blake  <ebb9@byu.net>
28413
28414         maint.mk: allow gnulib_dir in VPATH build
28415         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
28416
28417 2009-05-15  Jim Meyering  <meyering@redhat.com>
28418
28419         maint.mk: Give gnulib_dir a default definition.
28420         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
28421         Thus, most packages no longer need to specify this variable in cfg.mk
28422
28423 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
28424
28425         rename.m4: fix typos that would make non-mingw cross-configure fail
28426         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
28427
28428 2009-05-13  Eric Blake  <ebb9@byu.net>
28429
28430         mmap-anon: avoid out-of-order autoconf expansion
28431         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
28432         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
28433         * modules/memchr-tests (Depends-on): Add extensions.
28434         * modules/memchr2-tests (Depends-on): Add extensions.
28435         * modules/memcmp-tests (Depends-on): Add extensions.
28436         * modules/memmem-tests (Depends-on): Add extensions.
28437         * modules/memrchr-tests (Depends-on): Add extensions.
28438
28439 2009-05-13  Bruno Haible  <bruno@clisp.org>
28440
28441         Make some tests ISO C 99 compliant.
28442         * tests/zerosize-ptr.h: New file.
28443         * tests/test-memchr.c: Include zerosize-ptr.h.
28444         (main): Use a zero-size object pointer instead of NULL.
28445         * tests/test-memchr2.c: Include zerosize-ptr.h.
28446         (main): Use a zero-size object pointer instead of NULL.
28447         * tests/test-memcmp.c: Include zerosize-ptr.h.
28448         (main): Use a zero-size object pointer instead of NULL.
28449         * tests/test-memmem.c: Include zerosize-ptr.h.
28450         (main): Use a zero-size object pointer instead of NULL.
28451         * tests/test-memrchr.c: Include zerosize-ptr.h.
28452         (main): Use a zero-size object pointer instead of NULL.
28453         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
28454         m4/mmap-anon.m4.
28455         (Depends-on): Add getpagesize.
28456         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28457         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
28458         m4/mmap-anon.m4.
28459         (Depends-on): Add getpagesize.
28460         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28461         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
28462         m4/mmap-anon.m4.
28463         (Depends-on): Add getpagesize.
28464         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28465         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
28466         m4/mmap-anon.m4.
28467         (Depends-on): Add getpagesize.
28468         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28469         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
28470         m4/mmap-anon.m4.
28471         (Depends-on): Add getpagesize.
28472         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28473
28474 2009-05-12  Bruno Haible  <bruno@clisp.org>
28475
28476         Tests for module 'alignof'.
28477         * modules/alignof-tests: New file.
28478         * tests/test-alignof.c: New file.
28479
28480 2009-05-12  Bruno Haible  <bruno@clisp.org>
28481
28482         Fix alignof macro.
28483         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
28484         vendor compilers that are always correct.
28485
28486 2009-05-12  Bruno Haible  <bruno@clisp.org>
28487
28488         Make the MAP_ANONYMOUS detection work on HP-UX 11.
28489         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
28490         not whether its fully works.
28491
28492 2009-05-12  Bruno Haible  <bruno@clisp.org>
28493
28494         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
28495
28496 2009-05-12  Jim Meyering  <meyering@redhat.com>
28497
28498         * top/maint.mk: Adjust backslash alignment.
28499
28500 2009-05-11  Simon Josefsson  <simon@josefsson.org>
28501
28502         * top/maint.mk: Make $(srcdir)/build-aux configurable.
28503
28504 2009-05-11  Eric Blake  <ebb9@byu.net>
28505
28506         argp: avoid undefined behavior
28507         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
28508         macros.
28509
28510 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28511
28512         * tests/test-vc-list-files-git.sh: Do git config of user.email and
28513         user.name to prevent git commit from complaining.
28514
28515 2009-05-10  Bruno Haible  <bruno@clisp.org>
28516
28517         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
28518         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
28519         it rewrites every file name only once.
28520         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
28521
28522 2009-05-08  Bruno Haible  <bruno@clisp.org>
28523
28524         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
28525         instead of 'max'.
28526
28527 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28528
28529         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
28530         sockaddr_storage test.
28531
28532 2009-05-07  Simon Josefsson  <simon@josefsson.org>
28533
28534         * modules/sys_socket (Makefile.am): Substitute
28535         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
28536         * m4/sys_socket_h.m4: Check for sockaddr_storage.
28537         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
28538         * tests/test-sys_socket.c: Check sockaddr_storage.
28539
28540 2009-05-08  Bruno Haible  <bruno@clisp.org>
28541
28542         New module 'alignof'.
28543         * lib/alignof.h: New file.
28544         * modules/alignof: New file.
28545
28546 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28547             Bruno Haible  <bruno@clisp.org>
28548
28549         Fix test-file-has-acl on FreeBSD.
28550         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
28551         mask is implicitly added.
28552         * tests/test-file-has-acl.c: Include <signal.h>.
28553         (main): Terminate the test after 5 seconds.
28554         * modules/acl-tests (configure.ac): Check for alarm function.
28555
28556 2009-05-04  Bruno Haible  <bruno@clisp.org>
28557
28558         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
28559         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
28560         * modules/errno (configure.ac): Drop AC_REQUIRE.
28561         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
28562         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
28563
28564 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28565
28566         * modules/glob-tests: New module.
28567         * tests/test-glob.c: Add.
28568
28569 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28570
28571         * modules/fnmatch-tests: New module.
28572         * tests/test-fnmatch.c: Add.
28573
28574 2009-05-04  Eric Blake  <ebb9@byu.net>
28575
28576         maint: make the new no-submodule-changes rule VPATH-safe
28577         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
28578
28579 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28580             Bruno Haible  <bruno@clisp.org>
28581
28582         acl: Fix infinite loop on FreeBSD.
28583         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
28584         of return value from acl_get_entry.
28585         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
28586         Likewise.
28587
28588 2009-05-03  Bruno Haible  <bruno@clisp.org>
28589
28590         * lib/acl-internal.h (acl_entries): Clarify return value.
28591         * lib/acl_entries.c (acl_entries): Likewise.
28592
28593 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28594
28595         Bug fix in acl module.
28596         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
28597
28598 2009-05-03  Bruno Haible  <bruno@clisp.org>
28599
28600         Create gperf-generated file in the source dir, not in the build dir.
28601         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
28602         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
28603         * modules/unicase/locale-language (unicase/locale-languages.h):
28604         Likewise.
28605         * modules/unicase/special-casing (unicase/special-casing-table.h):
28606         Likewise.
28607         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
28608         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
28609         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
28610         Reported by Ralf Wildenhues.
28611
28612 2009-05-03  Bruno Haible  <bruno@clisp.org>
28613
28614         * modules/fnmatch (Description, configure.ac): Taken from
28615         fnmatch-posix.
28616         * modules/fnmatch-posix: Turn into a symbolic reference to the
28617         'fnmatch' module, and deprecate.
28618         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
28619
28620 2009-05-03  Bruno Haible  <bruno@clisp.org>
28621
28622         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
28623         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
28624         Reported by Ralf Wildenhues.
28625
28626 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28627
28628         * m4/fnmatch.m4: Fix fnmatch re-define.
28629
28630 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28631
28632         priv-set: new module and tests; adapt write-any-file
28633         * lib/priv-set.c: New file.
28634         * lib/priv-set.h: New file.
28635         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
28636         * lib/write-any-file.c: Simplify by using priv-set module.
28637         * m4/priv-set.m4: New file.
28638         * modules/priv-set: New file.
28639         * modules/unlinkdir: Add dependency on priv-set module.
28640         * modules/write-any-file: Likewise.
28641
28642         Tests for module 'priv-set'.
28643         * modules/priv-set-tests: New file.
28644         * tests/test-priv-set.c: New file.
28645
28646 2009-05-03  Jim Meyering  <meyering@redhat.com>
28647             Bruno Haible  <bruno@clisp.org>
28648
28649         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
28650         use the converted UTF-8 variant of the name instead.
28651
28652 2009-05-03  Jim Meyering  <meyering@redhat.com>
28653
28654         tests: tighten some getdate tests
28655         * tests/test-getdate.c (main): Tighten tests: require equality,
28656         not just greater than.  Set TZ envvar to UTC0.
28657
28658 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28659
28660         getdate: correctly interpret "next monday" when run on a Monday
28661         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
28662         that e.g., "next tues" (when run on a tuesday) results in a date
28663         that is one week in the future, and not today's date.
28664         I.e., add a week when the wday is the same as the current one.
28665         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
28666         and earlier by Martin Bernreuther and Jan Minář.
28667         * tests/test-getdate.c (main): Check that "next DAY" is always in
28668         the future and that "last DAY" is always in the past.
28669
28670 2009-05-02  Jim Meyering  <meyering@redhat.com>
28671
28672         build: ensure that a release build fails when a submodule is unclean
28673         * top/maint.mk (no-submodule-changes): New rule.
28674         (alpha beta major): Depend on it.
28675
28676 2009-05-02  Bruno Haible  <bruno@clisp.org>
28677
28678         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
28679         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
28680         shell variable gl_fnmatch_required to detect which variant is
28681         requested.
28682         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
28683         gl_FUNC_FNMATCH_POSIX.
28684         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
28685         exclude fnmatch-posix.
28686
28687 2009-05-02  Bruno Haible  <bruno@clisp.org>
28688
28689         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
28690         * modules/mbsrtowcs (License): Change to LGPLv2+.
28691         * modules/strnlen1 (License): Likewise.
28692         Reported by Simon Josefsson.
28693
28694 2009-05-02  Bruno Haible  <bruno@clisp.org>
28695
28696         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
28697         "cross".
28698         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
28699         gnulib-tool was called with option --source-base=lib.
28700
28701 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28702
28703         Use automake *-local hooks without commands, for extensibility.
28704         * modules/localcharset (Makefile.am): Rename install-exec-local
28705         rule to install-exec-localcharset, and make it a prerequisite of
28706         install-exec-local.  Likewise, rename the uninstall-local rule to
28707         uninstall-localcharset, and make it a prerequisite of the former.
28708
28709 2009-05-01  Bruno Haible  <bruno@clisp.org>
28710
28711         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
28712         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28713         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
28714         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
28715         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
28716         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28717         m4/locale-zh.m4, m4/codeset.m4.
28718
28719         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28720         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
28721         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28722         m4/locale-zh.m4.
28723
28724         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
28725         REPLACE_WCRTOMB if mbstate_t must be replaced.
28726         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
28727         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
28728
28729 2009-05-01  Bruno Haible  <bruno@clisp.org>
28730
28731         Avoid compiler warnings when redefining macros defined by <libintl.h>.
28732         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
28733         dngettext, dcngettext, textdomain, bindtextdomain,
28734         bind_textdomain_codeset): Undefine before redefining.
28735
28736 2009-04-30  Bruno Haible  <bruno@clisp.org>
28737
28738         Fix bug introduced on 2009-04-25.
28739         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
28740         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
28741         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
28742         is defined.
28743         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
28744         is defined.
28745         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
28746         is defined.
28747         Reported by Elbert_Pol <elbert.pol@gmail.com>.
28748
28749 2009-04-28  Bruno Haible  <bruno@clisp.org>
28750
28751         Comment tweaks.
28752         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
28753         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
28754         * lib/unicase.h (u*_casexfrm): Likewise.
28755         Reported by Paolo Bonzini.
28756
28757 2009-04-28  Bruno Haible  <bruno@clisp.org>
28758
28759         Fix a compilation error.
28760         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
28761         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28762         Reported by Jim Meyering.
28763
28764 2009-04-27  Bruno Haible  <bruno@clisp.org>
28765
28766         New module 'libunistring'.
28767         * modules/libunistring: New file.
28768         * m4/libunistring.m4: New file.
28769         * MODULES.html.sh (Unicode string functions): Add it.
28770
28771 2009-04-27  Eric Blake  <ebb9@byu.net>
28772
28773         maint.mk: allow package-specific header to provide <config.h>
28774         * top/maint.mk (sc_require_config_h): New variable.
28775         (sc_require_config_h, sc_require_config_h_first): Use it.
28776
28777 2009-04-27  Simon Josefsson  <simon@josefsson.org>
28778
28779         * top/maint.mk (sc_avoid_if_before_free): Except
28780         useless-if-before-free script.
28781
28782 2009-04-27  Eric Blake  <ebb9@byu.net>
28783
28784         maintainer-makefile: depend on all required helper scripts
28785         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
28786         useless-if-before-free.
28787         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
28788         version, rather than assuming gnulib checkout is available.
28789         Reported by Simen Josefsson.
28790
28791 2009-04-26  Bruno Haible  <bruno@clisp.org>
28792
28793         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
28794         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
28795         "../" or "..".
28796
28797 2009-04-26  Bruno Haible  <bruno@clisp.org>
28798
28799         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
28800         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
28801         AC_LIB_HAVE_LINKFLAGS.
28802
28803 2009-04-26  Bruno Haible  <bruno@clisp.org>
28804
28805         Simplify calling convention of u*_conv_from_encoding.
28806         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
28807         u32_conv_from_encoding): Expect a resultbuf argument and return the
28808         result directly as a pointer.
28809         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
28810         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
28811         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
28812         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
28813         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
28814         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28815         Update.
28816         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
28817         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
28818         * lib/vasnprintf.c (VASNPRINTF): Update.
28819         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
28820         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
28821         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
28822         * NEWS: Mention the change.
28823
28824 2009-04-26  Bruno Haible  <bruno@clisp.org>
28825
28826         Simplify calling convention of u*_conv_to_encoding.
28827         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
28828         u32_conv_to_encoding): Expect a resultbuf argument and return the
28829         result directly as a pointer.
28830         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28831         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
28832         freeing scaled_offsets if mem_iconveha failed.
28833         * lib/unicase/u-casexfrm.h (FUNC): Update.
28834         * lib/uninorm/u-normxfrm.h (FUNC): Update.
28835         * lib/vasnprintf.c (VASNPRINTF): Update.
28836         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
28837         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
28838         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
28839         * NEWS: Mention the change.
28840
28841 2009-04-26  Bruno Haible  <bruno@clisp.org>
28842
28843         Avoid test failures on AIX and OSF/1.
28844         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
28845         malloc(0).
28846         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28847         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28848         Likewise.
28849         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
28850         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
28851         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
28852         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
28853         * doc/posix-functions/malloc.texi: Document the portability problem
28854         related to malloc(0).
28855
28856 2009-04-26  Bruno Haible  <bruno@clisp.org>
28857
28858         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
28859         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
28860         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
28861
28862 2009-04-25  Bruno Haible  <bruno@clisp.org>
28863
28864         Avoid link error when creating a namespace clean library.
28865         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
28866         as macro with arguments if already defined as an alias.
28867         * lib/signbitf.c (gl_signbitf): Don't undefine.
28868         * lib/signbitd.c (gl_signbitd): Don't undefine.
28869         * lib/signbitl.c (gl_signbitl): Don't undefine.
28870
28871 2009-04-25  Jim Meyering  <meyering@redhat.com>
28872
28873         vc-list-files: fix another quoting bug
28874         * build-aux/vc-list-files: Avoid sed backslash expansion
28875         of pathological directory names.
28876
28877 2009-04-25  Eric Blake  <ebb9@byu.net>
28878
28879         vc-list-files: fix shell quoting error
28880         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
28881         timestamp.
28882
28883 2009-04-25  Jim Meyering  <meyering@redhat.com>
28884
28885         vc-list-files: restore lost functionality with subdir argument
28886         * build-aux/vc-list-files: When given a non-"." sub-directory
28887         argument, substitute the $dir/ prefix back onto each resulting name.
28888         Otherwise, coreutils' root_tests check would fail.
28889
28890 2009-04-24  Eric Blake  <ebb9@byu.net>
28891
28892         vc-list-files: ignore git symlinks
28893         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
28894         than ls-files, to ignore git symlinks.
28895
28896         maint.mk: import improvements from m4
28897         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
28898         (move_if_change): Delete unused macro.
28899         (news-date-check, vc-diff-check): Support VPATH builds.
28900         (announcement): Likewise.  Split --bootstrap-tools list...
28901         (boostrap-tools): ...into separate list, which can be overridden
28902         in cfg.mk.
28903         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
28904         requiring dependency on useless-if-before-free module.
28905         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
28906         Support VPATH builds.
28907
28908 2009-04-24  Jim Meyering  <meyering@redhat.com>
28909
28910         maint.mk: remove coreutils-specific rules and variables
28911         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
28912         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
28913         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
28914
28915         maint.mk: remove obsolete rule
28916         * top/maint.mk (rel-check): Remove rule.
28917         (WGET, WGETFLAGS): Remove now-unused variables.
28918
28919 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28920
28921         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28922         consistency.
28923
28924         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
28925         '$(PATH_SEPARATOR)' instead of ':'.
28926
28927 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28928
28929         * lib/getopt1.c (main): Use 'const' for static array.
28930
28931 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28932
28933         * top/maint.mk: Sync with coreutils.
28934         * NEWS: Explain incompatibilities.
28935
28936 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28937             Bruno Haible  <bruno@clisp.org>
28938
28939         Fix cross-compilation results.
28940         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
28941         statement, as third argument of AC_TRY_RUN.
28942         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28943         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28944         Likewise.
28945         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28946         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28947         Likewise.
28948         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28949         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
28950         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
28951
28952 2009-04-20  Bruno Haible  <bruno@clisp.org>
28953
28954         Avoid test failure on mingw.
28955         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
28956
28957 2009-04-20  Bruno Haible  <bruno@clisp.org>
28958
28959         Avoid compilation error on mingw.
28960         * modules/localename-tests (Depends-on): Add locale.
28961
28962 2009-04-19  Bruno Haible  <bruno@clisp.org>
28963
28964         Support for building a shared library on Windows platforms.
28965         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
28966         (main): Test the presence of UNINORM_NFC here.
28967         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
28968         (main): Test the presence of UNINORM_NFD here.
28969         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
28970         (main): Test the presence of UNINORM_NFKC here.
28971         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
28972         (main): Test the presence of UNINORM_NFKD here.
28973
28974 2009-04-19  Bruno Haible  <bruno@clisp.org>
28975
28976         Avoid a compiler warning.
28977         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
28978         Change type of variable 'sequence'.
28979
28980 2009-04-19  Bruno Haible  <bruno@clisp.org>
28981
28982         * modules/configmake (Makefile.am): When the contents of configmake.h
28983         does not change, arrange to preserve its modification time.
28984
28985 2009-04-17  Simon Josefsson  <simon@josefsson.org>
28986
28987         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
28988         gettext domain.
28989
28990 2009-04-16  Jim Meyering  <meyering@redhat.com>
28991
28992         useless-if-before-free: improve conversion code
28993         * build-aux/useless-if-before-free: Adjust code-in-comment to match
28994         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
28995
28996 2009-04-14  Bruno Haible  <bruno@clisp.org>
28997
28998         * modules/fcntl (Depends-on): Add extensions.
28999         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
29000
29001 2009-04-12  Ben Pfaff  <blp@gnu.org>
29002
29003         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
29004         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
29005
29006 2009-03-20  Ben Pfaff  <blp@gnu.org>
29007
29008         Make rename replace existing destinations on Windows.
29009         * m4/rename.m4: Add test for Mingw.
29010         * lib/rename.c: Add rename replacement that uses MoveFileEx with
29011         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
29012         * doc/posix-functions/rename.texi: Document.
29013
29014 2009-04-10  Bruno Haible  <bruno@clisp.org>
29015
29016         New include file "iconveh.h".
29017         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
29018         * lib/striconveh.h: Include it.
29019         (enum iconv_ilseq_handler): Remove definition.
29020         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
29021         striconveh.h.
29022         * lib/striconveha.c: Include striconveh.h.
29023         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
29024         * modules/striconveh (Files): Add lib/iconveh.h.
29025         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
29026         lib/striconveh.h.
29027
29028 2009-04-10  Bruno Haible  <bruno@clisp.org>
29029
29030         * lib/uniconv.h: Update comment.
29031
29032 2009-04-10  Bruno Haible  <bruno@clisp.org>
29033
29034         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
29035         always.
29036         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29037         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29038         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29039         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
29040         "unistring-notinline.h", so that the function gets defined always.
29041         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29042         * lib/unistr/u8-uctomb.c: Likewise.
29043         * lib/unistr/u16-mbtouc.c: Likewise.
29044         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29045         * lib/unistr/u16-uctomb.c: Likewise.
29046         * lib/unistr/u32-mbtouc.c: Likewise.
29047         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29048         * lib/unistr/u32-uctomb.c: Likewise.
29049
29050 2009-04-10  Bruno Haible  <bruno@clisp.org>
29051
29052         Mark 'utime' obsolete.
29053         * modules/utime (Status, Notice): New sections.
29054         Suggested by Jim Meyering.
29055
29056         Fix cross-compile guess for utime test.
29057         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
29058         autoconf.
29059         * doc/posix-functions/utime.texi: Give more precisions.
29060         Reported by Jan <ipif@ymail.com>.
29061
29062 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
29063
29064         filevercmp: correct today's change
29065         * lib/filevercmp.c: Also handle coreutils' test inputs.
29066         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
29067
29068         Fix regression in 'filevercmp' module. Thanks Sven Joachim
29069         for reporting it.
29070         * lib/filevercmp.c: Special handle for "", "." and "..".
29071         * tests/test-filevercmp.c: Enlarge the set suite.
29072
29073 2009-04-07  Jim Meyering  <meyering@redhat.com>
29074
29075         useless-if-before-free: show how to remove braced useless free, too
29076         * build-aux/useless-if-before-free: still only in a comment, though.
29077
29078 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
29079
29080         maint.mk: import changes to syntax-check macros from coreutils
29081         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
29082         Use them in the relevant macros.
29083
29084 2009-04-06  Bruno Haible  <bruno@clisp.org>
29085
29086         Fix unportable use of bit-fields.
29087         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
29088         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
29089         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
29090
29091 2009-04-06  Bruno Haible  <bruno@clisp.org>
29092
29093         Avoid test failures on AIX and OSF/1.
29094         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
29095         that malloc(0) = NULL.
29096         * tests/unicase/test-u8-tolower.c (check): Likewise.
29097         * tests/unicase/test-u8-totitle.c (check): Likewise.
29098         * tests/unicase/test-u8-toupper.c (check): Likewise.
29099         * tests/unicase/test-u16-casefold.c (check): Likewise.
29100         * tests/unicase/test-u16-tolower.c (check): Likewise.
29101         * tests/unicase/test-u16-totitle.c (check): Likewise.
29102         * tests/unicase/test-u16-toupper.c (check): Likewise.
29103         * tests/unicase/test-u32-casefold.c (check): Likewise.
29104         * tests/unicase/test-u32-tolower.c (check): Likewise.
29105         * tests/unicase/test-u32-totitle.c (check): Likewise.
29106         * tests/unicase/test-u32-toupper.c (check): Likewise.
29107         * tests/uninorm/test-u8-nfc.c (check): Likewise.
29108         * tests/uninorm/test-u8-nfd.c (check): Likewise.
29109         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
29110         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
29111         * tests/uninorm/test-u16-nfc.c (check): Likewise.
29112         * tests/uninorm/test-u16-nfd.c (check): Likewise.
29113         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
29114         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
29115         * tests/uninorm/test-u32-nfc.c (check): Likewise.
29116         * tests/uninorm/test-u32-nfd.c (check): Likewise.
29117         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
29118         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
29119
29120 2009-04-05  Bruno Haible  <bruno@clisp.org>
29121
29122         Work around an autoconf limitation.
29123         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
29124         comment line if it would be longer than 3 KB.
29125
29126 2009-04-05  Bruno Haible  <bruno@clisp.org>
29127
29128         Avoid test failure with libiconv-1.13.
29129         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
29130         of the expected test results.
29131
29132 2009-04-05  Bruno Haible  <bruno@clisp.org>
29133
29134         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
29135         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
29136         that it should be installed.
29137
29138 2009-04-05  Bruno Haible  <bruno@clisp.org>
29139
29140         * gnulib-tool: New option --copy-file.
29141         (func_usage): Document it.
29142         (func_dest_tmpfilename): Moved out of func_import.
29143         (func_add_file, func_update_file): New functions, extracted from
29144         func_import.
29145         (func_import): Update.
29146
29147 2009-04-05  Karl Berry  <karl@gnu.org>
29148
29149         * README: prominently mention gnulib-tool.
29150         Rearrange sections so getting the code is near the top.
29151
29152 2009-04-05  Bruno Haible  <bruno@clisp.org>
29153
29154         * lib/unicase.h: Mention u*_cmp2.
29155         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29156         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
29157         * lib/unicase/ulc-casecmp.c: Likewise.
29158         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
29159         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
29160         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
29161         unistr/u8-cmp.
29162         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
29163         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
29164         unistr/u16-cmp.
29165         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
29166         unistr/u32-cmp.
29167
29168         * lib/uninorm.h: Mention u*_cmp2.
29169         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29170         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
29171         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
29172         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
29173         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
29174         unistr/u8-cmp.
29175         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
29176         unistr/u16-cmp.
29177         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
29178         unistr/u32-cmp.
29179
29180         New module 'unistr/u32-cmp2'.
29181         * lib/unistr/u32-cmp2.c: New file.
29182         * modules/unistr/u32-cmp2: New file.
29183
29184         New module 'unistr/u16-cmp2'.
29185         * lib/unistr/u16-cmp2.c: New file.
29186         * modules/unistr/u16-cmp2: New file.
29187
29188         New module 'unistr/u8-cmp2'.
29189         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
29190         * lib/unistr/u8-cmp2.c: New file.
29191         * lib/unistr/u-cmp2.h: New file.
29192         * modules/unistr/u8-cmp2: New file.
29193
29194 2009-04-05  Bruno Haible  <bruno@clisp.org>
29195
29196         * lib/unictype.h (uc_property_is_valid): New macro.
29197         * tests/unictype/test-pr_byname.c (main): Use it.
29198
29199         * lib/unistr.h: Doc fixes.
29200         * lib/uniconv.h: Doc fixes.
29201         * lib/unictype.h: Doc fixes.
29202
29203 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29204
29205         Port coreutils 7.2 to Solaris 8.
29206
29207         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
29208         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
29209         for Solaris 8.  This is a bit of a hack, as it means it's the
29210         caller's responsibility to add -lnsl if needed, but most likely it
29211         won't be needed since only getaddrinfo uses this and getaddrinfo
29212         isn't needed on Solaris 8.
29213
29214         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
29215         problem to Solaris 8 encountered with coreutils 7.2, which
29216         resulted in a message "fnmatch.c:292: warning: passing argument 4
29217         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
29218         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
29219
29220 2009-04-03  Simon Josefsson  <simon@josefsson.org>
29221
29222         * m4/ld-version-script.m4: Add FIXME comment.
29223
29224 2009-04-02  Simon Josefsson  <simon@josefsson.org>
29225
29226         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
29227         SOVERSION variable.
29228
29229 2009-04-02  Bruno Haible  <bruno@clisp.org>
29230
29231         * Makefile (info, html, dvi, pdf): Combine the rules.
29232         Suggested by Jim Meyering.
29233
29234 2009-04-01  Bruno Haible  <bruno@clisp.org>
29235
29236         * Makefile (info, html, dvi, pdf): New targets.
29237         Reported by Reuben Thomas <rrt@sc3d.org>.
29238
29239 2009-04-01  Bruno Haible  <bruno@clisp.org>
29240
29241         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
29242         can be put into PATH.
29243         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
29244
29245 2009-04-01  Bruno Haible  <bruno@clisp.org>
29246
29247         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
29248
29249 2009-04-01  Bruno Haible  <bruno@clisp.org>
29250
29251         Rename module 'visibility'.
29252         * modules/lib-symbol-visibility: Renamed from modules/visibility.
29253         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
29254         * doc/gnulib.texi: Update.
29255         * MODULES.html.sh (Misc): Update.
29256         * NEWS: Mention the change.
29257
29258 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29259
29260         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
29261         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
29262         Eric Blake <ebb9@byu.net> for review.
29263         * MODULES.html.sh: Add lib-msvc-compat.
29264         * doc/gnulib.texi: Link to new section.
29265         * m4/ld-output-def.m4: New file.
29266         * doc/ld-output-def.texi: New file.
29267
29268 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29269
29270         Rename ld-version-script to lib-symbol-versions.  Suggested by
29271         Bruno Haible <bruno@clisp.org>.
29272         * modules/ld-version-script: Renamed to lib-symbol-versions.
29273         * doc/ld-version-script.texi: Fix module name.
29274         * MODULES.html.sh: Add lib-symbol-versions.
29275
29276 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29277
29278         * modules/u64-tests: New file.
29279         * tests/test-u64.c: New file.
29280
29281 2009-03-04  Simon Josefsson  <simon@josefsson.org>
29282
29283         * MODULES.html.sh: Mention u64.
29284         * modules/u64: New module.
29285         * modules/crypto/sha512: Depend on u64 module instead of providing
29286         u64.h.
29287
29288 2009-03-27  Eric Blake  <ebb9@byu.net>
29289
29290         test-strerror: make debugging EAI_SYSTEM easier
29291         * modules/getaddrinfo-tests (Depends-on): Add strerror.
29292         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
29293         failure was EAI_SYSTEM.
29294
29295 2009-03-25  Bruno Haible  <bruno@clisp.org>
29296
29297         Fix a problem with --enable-relocatable on Solaris 7.
29298         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
29299         since 2008-02-24.
29300
29301 2009-03-25  Eric Blake  <ebb9@byu.net>
29302
29303         test-sockets: avoid gcc warning
29304         * tests/test-sockets.c (main): Silence compiler warning.
29305
29306 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29307
29308         New modules nproc, pthread, contributed by Glen Lenker.
29309
29310         * MODULES.html.sh: Add pthread, nproc.
29311         * lib/nproc.c: New file.
29312         * lib/nproc.h: New file.
29313         * lib/pthread.in.h: New file.
29314         * m4/pthread.m4: New file.
29315         * modules/nproc: New file.
29316         * modules/pthread: New file.
29317
29318 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29319
29320         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
29321         New variable.
29322
29323 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
29324
29325         filevercmp: handle simple~ and numbered.~3~ backup suffixes
29326         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
29327         * tests/test-filevercmp.c: Add tests for backup suffixes.
29328
29329 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29330
29331         * modules/stdlib (Depends-on): Add stdint, needed when defining
29332         struct random_data on, for example, HP-UX 10.20.  Reported by
29333         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29334
29335 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29336
29337         * lib/readline.c (readline): Call fflush on stdout after printing
29338         prompt.
29339
29340 2009-03-20  Bruno Haible  <bruno@clisp.org>
29341
29342         Remove dependency from 'close' module to -lws2_32 on native Windows.
29343         * lib/close-hook.h: New file.
29344         * lib/close-hook.c: New file.
29345         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
29346         w32sock.h.
29347         (_gl_close_fd_maybe_socket): Remove function.
29348         (rpl_close): Invoke execute_all_close_hooks instead of
29349         _gl_close_fd_maybe_socket.
29350         * lib/sockets.c: Include close-hook.h, w32sock.h.
29351         (close_fd_maybe_socket): New function, essentially from lib/close.c.
29352         (close_sockets_hook): New variable.
29353         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
29354         (gl_sockets_cleanup): Unregister it.
29355         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
29356         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
29357         * modules/close-hook: New file.
29358         * modules/close (Files): Remove lib/w32sock.h.
29359         (Depends-on): Add close-hook.
29360         (Link): Remove section.
29361         * modules/sockets (Files): Add lib/w32sock.h.
29362         (Depends-on): Add close-hook.
29363         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
29364         invocation.
29365         * NEWS: Mention that LIB_CLOSE is gone.
29366
29367 2009-03-23  Eric Blake  <ebb9@byu.net>
29368
29369         signal-tests: test previous patch
29370         * tests/test-signal.c: New file.
29371         * modules/signal-tests: Likewise.
29372
29373         signal.h: always support 'volatile sig_atomic_t'
29374         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
29375         (gl_SIGNAL_H_DEFAULTS): Add a default.
29376         * modules/signal (Makefile.am): Substitute if needed.
29377         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
29378         users can blindly add volatile.
29379         * doc/posix-headers/signal.texi (signal.h): Document it.
29380         Reported by Matthew Woehlke.
29381
29382 2009-03-23  Jim Meyering  <meyering@redhat.com>
29383
29384         pathmax: PATH_MAX: use pathconf only when available
29385         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
29386         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
29387         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
29388         This avoids a link failure in a PSP cross-compilation environment
29389         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
29390
29391         * lib/vasnprintf.c (divide): Fix typo in comment.
29392
29393 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29394
29395         * gnulib-tool (func_filter_filelist): Fix comment.
29396
29397 2009-03-20  Bruno Haible  <bruno@clisp.org>
29398
29399         Make sockets.h self-contained.
29400         * lib/sockets.c: Include sockets.h first.
29401         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
29402
29403 2009-03-19  Eric Blake  <ebb9@byu.net>
29404
29405         doc: mention more functions added in cygwin 1.7.0
29406         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
29407         addition.
29408         * doc/posix-functions/log2f.texi: Likewise.
29409
29410 2009-03-19  Jim Meyering  <meyering@redhat.com>
29411
29412         fsusage: avoid syntax error due to statement-before-declaration
29413         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
29414         after all declarations.  Reported by Matthew Woehlke in
29415         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
29416
29417 2009-03-18  Eric Blake  <ebb9@byu.net>
29418
29419         build-aux/compile: sync from automake
29420         * build-aux/compile: New file, from automake.
29421         * config/srclist.txt: Mention build-aux/compile.
29422
29423 2009-03-17  Bruno Haible  <bruno@clisp.org>
29424
29425         * lib/git-merge-changelog.c: Fix typo in comment.
29426         Reported by Reuben Thomas <rrt@sc3d.org>.
29427
29428 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
29429
29430         * m4/regex.m4: update and improve help for
29431         --without-included-regex.
29432
29433 2009-03-17  Simon Josefsson  <simon@josefsson.org>
29434
29435         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
29436         failure on missing include files.
29437
29438 2009-03-17  Eric Blake  <ebb9@byu.net>
29439
29440         doc: mention more functions added in cygwin 1.7.0
29441         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
29442         addition.
29443         * doc/posix-functions/fwscanf.texi: Likewise.
29444         * doc/posix-functions/swprintf.texi: Likewise.
29445         * doc/posix-functions/swscanf.texi: Likewise.
29446         * doc/posix-functions/vfwprintf.texi: Likewise.
29447         * doc/posix-functions/vfwscanf.texi: Likewise.
29448         * doc/posix-functions/vswprintf.texi: Likewise.
29449         * doc/posix-functions/vswscanf.texi: Likewise.
29450         * doc/posix-functions/vwprintf.texi: Likewise.
29451         * doc/posix-functions/vwscanf.texi: Likewise.
29452         * doc/posix-functions/wcscasecmp.texi: Likewise.
29453         * doc/posix-functions/wcsdup.texi: Likewise.
29454         * doc/posix-functions/wcsftime.texi: Likewise.
29455         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29456         * doc/posix-functions/wprintf.texi: Likewise.
29457         * doc/posix-functions/wscanf.texi: Likewise.
29458         * doc/glibc-functions/gethostbyname2.texi: Likewise.
29459
29460 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29461
29462         maint.mk: really add $(AM_MAKEFLAGS)
29463         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
29464         was inadvertently omitted in the last commit.
29465         Spotted by Bruno Haible.
29466
29467         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
29468         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
29469         $(AM_MAKEFLAGS)' rather than plain `make'.
29470
29471         gnulib-tool: execute $MAKE not make
29472         * gnulib-tool: Default $MAKE to 'make'.
29473         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
29474         than make.  Initialize $MAKE in the do-autobuild script.
29475
29476         gnulib-tool: use $MAKE not make in generated files
29477         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
29478         make, in generated files.  Initialize $MAKE in the do-autobuild
29479         script.
29480
29481         * top/GNUmakefile (_have-git-version-gen): Fix typo.
29482
29483         GNUmakefile: disable parallelism only for multiple, recursive targets
29484         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
29485         additions in the Makefile.
29486         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
29487         by Automake.
29488         (.NOTPARALLEL): Only disable parallel builds if multiple targets
29489         are listed on the command line and at least one of them is
29490         listed in $(ALL_RECURSIVE_TARGETS).
29491
29492 2009-03-14  Bruno Haible  <bruno@clisp.org>
29493
29494         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
29495         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
29496         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
29497         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
29498         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
29499         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
29500         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
29501         unistr/u8-uctomb.
29502         * modules/unistr/u8-strchr (Depends-on): Likewise.
29503         * modules/unistr/u8-strrchr (Depends-on): Likewise.
29504         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
29505         unistr/u16-uctomb.
29506         * modules/unistr/u16-strchr (Depends-on): Likewise.
29507         * modules/unistr/u16-strrchr (Depends-on): Likewise.
29508
29509 2009-03-12  Bruno Haible  <bruno@clisp.org>
29510
29511         Work around select() bug on Interix 3.5.
29512         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
29513         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
29514         * m4/select.m4: New file.
29515         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
29516         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
29517         * modules/select (Files): Add m4/select.m4.
29518         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
29519         * modules/nanosleep (Depends-on): Add select.
29520         * modules/poll (Depends-on): Likewise.
29521         * doc/posix-functions/select.texi: Mention the Interix bug.
29522         Reported by Markus Duft <mduft@gentoo.org>.
29523
29524         * lib/select.c: Renamed from lib/winsock-select.c.
29525         * modules/select (Files): Add lib/select.c, remove
29526         lib/winsock-select.c.
29527         (configure.ac): Update.
29528
29529 2009-03-12  Jim Meyering  <meyering@redhat.com>
29530
29531         avoid gcc warnings about unused macro definitions
29532         * lib/readtokens.c (STREQ): Remove unused definition.
29533         * lib/xmalloc.c (SIZE_MAX): Likewise.
29534         * lib/openat-die.c (N_): Likewise.
29535         * lib/mountlist.c (SIZE_MAX): Remove definition.
29536         Instead, include <stdint.h>.
29537         * lib/readutmp.c: Likewise.
29538         * modules/readutmp (Depends-on): Add stdint.
29539         * modules/mountlist (Depends-on): Add stdint.
29540         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
29541
29542 2009-03-10  Bruno Haible  <bruno@clisp.org>
29543
29544         Tests for module 'mbmemcasecoll'.
29545         * modules/mbmemcasecoll-tests: New file.
29546         * tests/test-mbmemcasecoll1.sh: New file.
29547         * tests/test-mbmemcasecoll2.sh: New file.
29548         * tests/test-mbmemcasecoll3.sh: New file.
29549         * tests/test-mbmemcasecoll.c: New file.
29550
29551         New module 'mbmemcasecoll'.
29552         * lib/mbmemcasecoll.h: New file.
29553         * lib/mbmemcasecoll.c: New file.
29554         * modules/mbmemcasecoll: New file.
29555
29556         * tests/test-mbmemcasecmp.h: New file, extracted from
29557         tests/test-mbmemcasecmp.c.
29558         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
29559         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
29560         (main): Update.
29561         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
29562
29563 2009-03-09  Bruno Haible  <bruno@clisp.org>
29564
29565         Tests for module 'mbmemcasecmp'.
29566         * modules/mbmemcasecmp-tests: New file.
29567         * tests/test-mbmemcasecmp1.sh: New file.
29568         * tests/test-mbmemcasecmp2.sh: New file.
29569         * tests/test-mbmemcasecmp3.sh: New file.
29570         * tests/test-mbmemcasecmp.c: New file.
29571
29572         New module 'mbmemcasecmp'.
29573         * lib/mbmemcasecmp.h: New file.
29574         * lib/mbmemcasecmp.c: New file.
29575         * modules/mbmemcasecmp: New file.
29576
29577 2009-03-09  Bruno Haible  <bruno@clisp.org>
29578
29579         Tests for module 'unicase/ulc-casecoll'.
29580         * modules/unicase/ulc-casecoll-tests: New file.
29581         * tests/unicase/test-ulc-casecoll1.sh: New file.
29582         * tests/unicase/test-ulc-casecoll2.sh: New file.
29583         * tests/unicase/test-ulc-casecoll.c: New file.
29584
29585         New module 'unicase/ulc-casecoll'.
29586         * lib/unicase.h (ulc_casecoll): New declaration.
29587         * lib/unicase/ulc-casecoll.c: New file.
29588         * modules/unicase/ulc-casecoll: New file.
29589
29590         New module 'unicase/ulc-casexfrm'.
29591         * lib/unicase.h (ulc_casexfrm): New declaration.
29592         * lib/unicase/ulc-casexfrm.c: New file.
29593         * modules/unicase/ulc-casexfrm: New file.
29594
29595 2009-03-09  Bruno Haible  <bruno@clisp.org>
29596
29597         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
29598         invocations.
29599
29600         * m4/mbscasecmp.m4: Remove file.
29601         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
29602         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
29603
29604         * m4/mbscasestr.m4: Remove file.
29605         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
29606         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
29607
29608         * m4/mbschr.m4: Remove file.
29609         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
29610         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
29611
29612         * m4/mbscspn.m4: Remove file.
29613         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
29614         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
29615
29616         * m4/mbslen.m4: Remove file.
29617         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
29618         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
29619
29620         * m4/mbsncasecmp.m4: Remove file.
29621         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
29622         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
29623
29624         * m4/mbsnlen.m4: Remove file.
29625         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
29626         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
29627
29628         * m4/mbspbrk.m4: Remove file.
29629         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
29630         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
29631
29632         * m4/mbspcasecmp.m4: Remove file.
29633         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
29634         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
29635
29636         * m4/mbsrchr.m4: Remove file.
29637         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
29638         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
29639
29640         * m4/mbssep.m4: Remove file.
29641         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
29642         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
29643
29644         * m4/mbsspn.m4: Remove file.
29645         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
29646         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
29647
29648         * m4/mbsstr.m4: Remove file.
29649         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
29650         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
29651
29652         * m4/mbstok_r.m4: Remove file.
29653         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
29654         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
29655
29656         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
29657
29658         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
29659         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
29660
29661         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
29662
29663 2009-03-08  Bruno Haible  <bruno@clisp.org>
29664
29665         Tests for module 'unicase/ulc-casecmp'.
29666         * modules/unicase/ulc-casecmp-tests: New file.
29667         * tests/unicase/test-ulc-casecmp1.sh: New file.
29668         * tests/unicase/test-ulc-casecmp2.sh: New file.
29669         * tests/unicase/test-ulc-casecmp.c: New file.
29670
29671         New module 'unicase/ulc-casecmp'.
29672         * lib/unicase.h (ulc_casecmp): New declaration.
29673         * lib/unicase/ulc-casecmp.c: New file.
29674         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
29675         'const SRC_UNIT *'.
29676         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
29677         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
29678         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
29679         * modules/unicase/ulc-casecmp: New file.
29680
29681         Tests for module 'unicase/u32-is-cased'.
29682         * modules/unicase/u32-is-cased-tests: New file.
29683         * tests/unicase/test-u32-is-cased.c: New file.
29684
29685         Tests for module 'unicase/u16-is-cased'.
29686         * modules/unicase/u16-is-cased-tests: New file.
29687         * tests/unicase/test-u16-is-cased.c: New file.
29688
29689         Tests for module 'unicase/u8-is-cased'.
29690         * modules/unicase/u8-is-cased-tests: New file.
29691         * tests/unicase/test-u8-is-cased.c: New file.
29692         * tests/unicase/test-is-cased.h: New file.
29693
29694         New module 'unicase/u32-is-cased'.
29695         * lib/unicase/u32-is-cased.c: New file.
29696         * modules/unicase/u32-is-cased: New file.
29697
29698         New module 'unicase/u16-is-cased'.
29699         * lib/unicase/u16-is-cased.c: New file.
29700         * modules/unicase/u16-is-cased: New file.
29701
29702         New module 'unicase/u8-is-cased'.
29703         * lib/unicase/u8-is-cased.c: New file.
29704         * lib/unicase/u-is-cased.h: New file.
29705         * modules/unicase/u8-is-cased: New file.
29706
29707         Tests for module 'unicase/u32-is-casefolded'.
29708         * modules/unicase/u32-is-casefolded-tests: New file.
29709         * tests/unicase/test-u32-is-casefolded.c: New file.
29710
29711         Tests for module 'unicase/u16-is-casefolded'.
29712         * modules/unicase/u16-is-casefolded-tests: New file.
29713         * tests/unicase/test-u16-is-casefolded.c: New file.
29714
29715         Tests for module 'unicase/u8-is-casefolded'.
29716         * modules/unicase/u8-is-casefolded-tests: New file.
29717         * tests/unicase/test-u8-is-casefolded.c: New file.
29718         * tests/unicase/test-is-casefolded.h: New file.
29719
29720         New module 'unicase/u32-is-casefolded'.
29721         * lib/unicase/u32-is-casefolded.c: New file.
29722         * modules/unicase/u32-is-casefolded: New file.
29723
29724         New module 'unicase/u16-is-casefolded'.
29725         * lib/unicase/u16-is-casefolded.c: New file.
29726         * modules/unicase/u16-is-casefolded: New file.
29727
29728         New module 'unicase/u8-is-casefolded'.
29729         * lib/unicase/u8-is-casefolded.c: New file.
29730         * modules/unicase/u8-is-casefolded: New file.
29731
29732         Tests for module 'unicase/u32-is-titlecase'.
29733         * modules/unicase/u32-is-titlecase-tests: New file.
29734         * tests/unicase/test-u32-is-titlecase.c: New file.
29735
29736         Tests for module 'unicase/u16-is-titlecase'.
29737         * modules/unicase/u16-is-titlecase-tests: New file.
29738         * tests/unicase/test-u16-is-titlecase.c: New file.
29739
29740         Tests for module 'unicase/u8-is-titlecase'.
29741         * modules/unicase/u8-is-titlecase-tests: New file.
29742         * tests/unicase/test-u8-is-titlecase.c: New file.
29743         * tests/unicase/test-is-titlecase.h: New file.
29744
29745         New module 'unicase/u32-is-titlecase'.
29746         * lib/unicase/u32-is-titlecase.c: New file.
29747         * modules/unicase/u32-is-titlecase: New file.
29748
29749         New module 'unicase/u16-is-titlecase'.
29750         * lib/unicase/u16-is-titlecase.c: New file.
29751         * modules/unicase/u16-is-titlecase: New file.
29752
29753         New module 'unicase/u8-is-titlecase'.
29754         * lib/unicase/u8-is-titlecase.c: New file.
29755         * modules/unicase/u8-is-titlecase: New file.
29756
29757         Tests for module 'unicase/u32-is-lowercase'.
29758         * modules/unicase/u32-is-lowercase-tests: New file.
29759         * tests/unicase/test-u32-is-lowercase.c: New file.
29760
29761         Tests for module 'unicase/u16-is-lowercase'.
29762         * modules/unicase/u16-is-lowercase-tests: New file.
29763         * tests/unicase/test-u16-is-lowercase.c: New file.
29764
29765         Tests for module 'unicase/u8-is-lowercase'.
29766         * modules/unicase/u8-is-lowercase-tests: New file.
29767         * tests/unicase/test-u8-is-lowercase.c: New file.
29768         * tests/unicase/test-is-lowercase.h: New file.
29769
29770         New module 'unicase/u32-is-lowercase'.
29771         * lib/unicase/u32-is-lowercase.c: New file.
29772         * modules/unicase/u32-is-lowercase: New file.
29773
29774         New module 'unicase/u16-is-lowercase'.
29775         * lib/unicase/u16-is-lowercase.c: New file.
29776         * modules/unicase/u16-is-lowercase: New file.
29777
29778         New module 'unicase/u8-is-lowercase'.
29779         * lib/unicase/u8-is-lowercase.c: New file.
29780         * modules/unicase/u8-is-lowercase: New file.
29781
29782         Tests for module 'unicase/u32-is-uppercase'.
29783         * modules/unicase/u32-is-uppercase-tests: New file.
29784         * tests/unicase/test-u32-is-uppercase.c: New file.
29785
29786         Tests for module 'unicase/u16-is-uppercase'.
29787         * modules/unicase/u16-is-uppercase-tests: New file.
29788         * tests/unicase/test-u16-is-uppercase.c: New file.
29789
29790         Tests for module 'unicase/u8-is-uppercase'.
29791         * modules/unicase/u8-is-uppercase-tests: New file.
29792         * tests/unicase/test-u8-is-uppercase.c: New file.
29793         * tests/unicase/test-is-uppercase.h: New file.
29794
29795         New module 'unicase/u32-is-uppercase'.
29796         * lib/unicase/u32-is-uppercase.c: New file.
29797         * modules/unicase/u32-is-uppercase: New file.
29798
29799         New module 'unicase/u16-is-uppercase'.
29800         * lib/unicase/u16-is-uppercase.c: New file.
29801         * modules/unicase/u16-is-uppercase: New file.
29802
29803         New module 'unicase/u8-is-uppercase'.
29804         * lib/unicase/u8-is-uppercase.c: New file.
29805         * modules/unicase/u8-is-uppercase: New file.
29806
29807         New module 'unicase/u32-is-invariant'.
29808         * lib/unicase/u32-is-invariant.c: New file.
29809         * modules/unicase/u32-is-invariant: New file.
29810
29811         New module 'unicase/u16-is-invariant'.
29812         * lib/unicase/u16-is-invariant.c: New file.
29813         * modules/unicase/u16-is-invariant: New file.
29814
29815         New module 'unicase/u8-is-invariant'.
29816         * lib/unicase/u8-is-invariant.c: New file.
29817         * lib/unicase/invariant.h: New file.
29818         * lib/unicase/u-is-invariant.h: New file.
29819         * modules/unicase/u8-is-invariant: New file.
29820
29821         Tests for module 'unicase/u32-casecoll'.
29822         * modules/unicase/u32-casecoll-tests: New file.
29823         * tests/unicase/test-u32-casecoll.c: New file.
29824
29825         Tests for module 'unicase/u16-casecoll'.
29826         * modules/unicase/u16-casecoll-tests: New file.
29827         * tests/unicase/test-u16-casecoll.c: New file.
29828
29829         Tests for module 'unicase/u8-casecoll'.
29830         * modules/unicase/u8-casecoll-tests: New file.
29831         * tests/unicase/test-u8-casecoll.c: New file.
29832
29833         New module 'unicase/u32-casecoll'.
29834         * lib/unicase/u32-casecoll.c: New file.
29835         * modules/unicase/u32-casecoll: New file.
29836
29837         New module 'unicase/u16-casecoll'.
29838         * lib/unicase/u16-casecoll.c: New file.
29839         * modules/unicase/u16-casecoll: New file.
29840
29841         New module 'unicase/u8-casecoll'.
29842         * lib/unicase/u8-casecoll.c: New file.
29843         * lib/unicase/u-casecoll.h: New file.
29844         * modules/unicase/u8-casecoll: New file.
29845
29846         New module 'unicase/u32-casexfrm'.
29847         * lib/unicase/u32-casexfrm.c: New file.
29848         * modules/unicase/u32-casexfrm: New file.
29849
29850         New module 'unicase/u16-casexfrm'.
29851         * lib/unicase/u16-casexfrm.c: New file.
29852         * modules/unicase/u16-casexfrm: New file.
29853
29854         New module 'unicase/u8-casexfrm'.
29855         * lib/unicase/u8-casexfrm.c: New file.
29856         * lib/unicase/u-casexfrm.h: New file.
29857         * modules/unicase/u8-casexfrm: New file.
29858
29859         Tests for module 'unicase/u32-casecmp'.
29860         * modules/unicase/u32-casecmp-tests: New file.
29861         * tests/unicase/test-u32-casecmp.c: New file.
29862
29863         Tests for module 'unicase/u16-casecmp'.
29864         * modules/unicase/u16-casecmp-tests: New file.
29865         * tests/unicase/test-u16-casecmp.c: New file.
29866
29867         Tests for module 'unicase/u8-casecmp'.
29868         * modules/unicase/u8-casecmp-tests: New file.
29869         * tests/unicase/test-u8-casecmp.c: New file.
29870         * tests/unicase/test-casecmp.h: New file.
29871
29872         New module 'unicase/u32-casecmp'.
29873         * lib/unicase/u32-casecmp.c: New file.
29874         * modules/unicase/u32-casecmp: New file.
29875
29876         New module 'unicase/u16-casecmp'.
29877         * lib/unicase/u16-casecmp.c: New file.
29878         * modules/unicase/u16-casecmp: New file.
29879
29880         New module 'unicase/u8-casecmp'.
29881         * lib/unicase/u8-casecmp.c: New file.
29882         * lib/unicase/u-casecmp.h: New file.
29883         * modules/unicase/u8-casecmp: New file.
29884
29885         Tests for module 'unicase/u32-casefold'.
29886         * modules/unicase/u32-casefold-tests: New file.
29887         * tests/unicase/test-u32-casefold.c: New file.
29888
29889         Tests for module 'unicase/u16-casefold'.
29890         * modules/unicase/u16-casefold-tests: New file.
29891         * tests/unicase/test-u16-casefold.c: New file.
29892
29893         Tests for module 'unicase/u8-casefold'.
29894         * modules/unicase/u8-casefold-tests: New file.
29895         * tests/unicase/test-u8-casefold.c: New file.
29896
29897         New module 'unicase/u32-casefold'.
29898         * lib/unicase/u32-casefold.c: New file.
29899         * modules/unicase/u32-casefold: New file.
29900
29901         New module 'unicase/u16-casefold'.
29902         * lib/unicase/u16-casefold.c: New file.
29903         * modules/unicase/u16-casefold: New file.
29904
29905         New module 'unicase/u8-casefold'.
29906         * lib/unicase/u8-casefold.c: New file.
29907         * lib/unicase/u-casefold.h: New file.
29908         * modules/unicase/u8-casefold: New file.
29909
29910         New module 'unicase/tocasefold'.
29911         * lib/unicase/casefold.h: New file.
29912         * lib/unicase/tocasefold.c: New file.
29913         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
29914         * modules/unicase/tocasefold: New file.
29915
29916         Tests for module 'unicase/u32-totitle'.
29917         * modules/unicase/u32-totitle-tests: New file.
29918         * tests/unicase/test-u32-totitle.c: New file.
29919
29920         Tests for module 'unicase/u16-totitle'.
29921         * modules/unicase/u16-totitle-tests: New file.
29922         * tests/unicase/test-u16-totitle.c: New file.
29923
29924         Tests for module 'unicase/u8-totitle'.
29925         * modules/unicase/u8-totitle-tests: New file.
29926         * tests/unicase/test-u8-totitle.c: New file.
29927
29928         New module 'unicase/u32-totitle'.
29929         * lib/unicase/u32-totitle.c: New file.
29930         * modules/unicase/u32-totitle: New file.
29931
29932         New module 'unicase/u16-totitle'.
29933         * lib/unicase/u16-totitle.c: New file.
29934         * modules/unicase/u16-totitle: New file.
29935
29936         New module 'unicase/u8-totitle'.
29937         * lib/unicase/u8-totitle.c: New file.
29938         * lib/unicase/u-totitle.h: New file.
29939         * modules/unicase/u8-totitle: New file.
29940
29941         Tests for module 'unicase/u32-tolower'.
29942         * modules/unicase/u32-tolower-tests: New file.
29943         * tests/unicase/test-u32-tolower.c: New file.
29944
29945         Tests for module 'unicase/u16-tolower'.
29946         * modules/unicase/u16-tolower-tests: New file.
29947         * tests/unicase/test-u16-tolower.c: New file.
29948
29949         Tests for module 'unicase/u8-tolower'.
29950         * modules/unicase/u8-tolower-tests: New file.
29951         * tests/unicase/test-u8-tolower.c: New file.
29952
29953         New module 'unicase/u32-tolower'.
29954         * lib/unicase/u32-tolower.c: New file.
29955         * modules/unicase/u32-tolower: New file.
29956
29957         New module 'unicase/u16-tolower'.
29958         * lib/unicase/u16-tolower.c: New file.
29959         * modules/unicase/u16-tolower: New file.
29960
29961         New module 'unicase/u8-tolower'.
29962         * lib/unicase/u8-tolower.c: New file.
29963         * modules/unicase/u8-tolower: New file.
29964
29965         Tests for module 'unicase/u32-toupper'.
29966         * modules/unicase/u32-toupper-tests: New file.
29967         * tests/unicase/test-u32-toupper.c: New file.
29968
29969         Tests for module 'unicase/u16-toupper'.
29970         * modules/unicase/u16-toupper-tests: New file.
29971         * tests/unicase/test-u16-toupper.c: New file.
29972
29973         Tests for module 'unicase/u8-toupper'.
29974         * modules/unicase/u8-toupper-tests: New file.
29975         * tests/unicase/test-u8-toupper.c: New file.
29976
29977         New module 'unicase/u32-toupper'.
29978         * lib/unicase/u32-toupper.c: New file.
29979         * modules/unicase/u32-toupper: New file.
29980
29981         New module 'unicase/u16-toupper'.
29982         * lib/unicase/u16-toupper.c: New file.
29983         * modules/unicase/u16-toupper: New file.
29984
29985         New module 'unicase/u8-toupper'.
29986         * lib/unicase/u8-toupper.c: New file.
29987         * modules/unicase/u8-toupper: New file.
29988
29989         New module 'unicase/u32-casemap'.
29990         * lib/unicase/u32-casemap.c: New file.
29991         * modules/unicase/u32-casemap: New file.
29992
29993         New module 'unicase/u16-casemap'.
29994         * lib/unicase/u16-casemap.c: New file.
29995         * modules/unicase/u16-casemap: New file.
29996
29997         New module 'unicase/u8-casemap'.
29998         * lib/unicase/unicasemap.h: New file.
29999         * lib/unicase/u8-casemap.c: New file.
30000         * lib/unicase/u-casemap.h: New file.
30001         * modules/unicase/u8-casemap: New file.
30002
30003         New module 'unicase/special-casing'.
30004         * lib/unicase/special-casing.h: New file.
30005         * lib/unicase/special-casing.c: New file.
30006         * lib/unicase/special-casing-table.gperf: New file, generated by
30007         gen-uni-tables.c.
30008         * modules/unicase/special-casing: New file.
30009
30010         Tests for module 'unicase/locale-language'.
30011         * modules/unicase/locale-language-tests: New file.
30012         * tests/unicase/test-locale-language.sh: New file.
30013         * tests/unicase/test-locale-language.c: New file.
30014
30015         New module 'unicase/locale-language'.
30016         * lib/unicase/locale-language.c: New file.
30017         * lib/unicase/locale-languages.gperf: New file.
30018         * modules/unicase/locale-language: New file.
30019
30020         Generate more tables for case conversion and case folding.
30021         * lib/gen-uni-tables.c (SCC_*): New enum items.
30022         (struct special_casing_rule): New type.
30023         (casing_rules, num_casing_rules, allocated_casing_rules): New
30024         variables.
30025         (add_casing_rule, fill_casing_rules): New functions.
30026         (struct casefold_rule): New type.
30027         (casefolding_rules, num_casefolding_rules,
30028         allocated_casefolding_rules): New variables.
30029         (fill_casefolding_rules): New function.
30030         (unicode_casefold): New variable.
30031         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
30032         sort_casing_rules, output_casing_rules): New functions.
30033         (main): Accept to more arguments: SpecialCasing.txt and
30034         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
30035         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
30036         Output mapping for casefolding.
30037
30038         * lib/unicase.h: Include stdbool.h, uninorm.h.
30039         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
30040         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
30041         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
30042         arguments.
30043         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
30044         resultp arguments.
30045         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
30046         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
30047         resultp arguments.
30048         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
30049         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
30050         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
30051         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
30052         declarations.
30053         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
30054
30055 2009-03-08  Bruno Haible  <bruno@clisp.org>
30056
30057         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30058         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
30059         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
30060         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30061
30062 2009-03-07  Bruno Haible  <bruno@clisp.org>
30063
30064         Adjust u*_normcmp, u*_normcoll API.
30065         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30066         u16_normcoll, u32_normcoll): Change failure conventions.
30067         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
30068         errno and return -1.
30069         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30070
30071 2009-03-07  Bruno Haible  <bruno@clisp.org>
30072
30073         Tests for module 'uninorm/u32-normcoll'.
30074         * modules/uninorm/u32-normcoll-tests: New file.
30075         * tests/uninorm/test-u32-normcoll.c: New file.
30076
30077         Tests for module 'uninorm/u16-normcoll'.
30078         * modules/uninorm/u16-normcoll-tests: New file.
30079         * tests/uninorm/test-u16-normcoll.c: New file.
30080
30081         Tests for module 'uninorm/u8-normcoll'.
30082         * modules/uninorm/u8-normcoll-tests: New file.
30083         * tests/uninorm/test-u8-normcoll.c: New file.
30084
30085 2009-03-07  Bruno Haible  <bruno@clisp.org>
30086
30087         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
30088         tests/uninorm/test-u32-normcmp.c.
30089         * tests/uninorm/test-u32-normcmp.c: Include it.
30090         (test_nonascii): New function, extracted from main. Add some more
30091         tests.
30092         (main): Invoke test_ascii and test_nonascii.
30093         * modules/uninorm/u32-normcmp-tests (Files): Add
30094         tests/uninorm/test-u32-normcmp.h.
30095         (Depends-on): Remove uninorm/u32-normcmp.
30096
30097         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
30098         tests/uninorm/test-u16-normcmp.c.
30099         * tests/uninorm/test-u16-normcmp.c: Include it.
30100         (test_nonascii): New function, extracted from main. Add some more
30101         tests.
30102         (main): Invoke test_ascii and test_nonascii.
30103         * modules/uninorm/u16-normcmp-tests (Files): Add
30104         tests/uninorm/test-u16-normcmp.h.
30105         (Depends-on): Remove uninorm/u16-normcmp.
30106
30107         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
30108         tests/uninorm/test-u8-normcmp.c.
30109         * tests/uninorm/test-u8-normcmp.c: Include it.
30110         (test_nonascii): New function, extracted from main. Add some more
30111         tests.
30112         (main): Invoke test_ascii and test_nonascii.
30113         * modules/uninorm/u8-normcmp-tests (Files): Add
30114         tests/uninorm/test-u8-normcmp.h.
30115         (Depends-on): Remove uninorm/u8-normcmp.
30116
30117 2009-03-07  Bruno Haible  <bruno@clisp.org>
30118
30119         New module 'uninorm/u32-normcoll'.
30120         * lib/uninorm/u32-normcoll.c: New file.
30121         * modules/uninorm/u32-normcoll: New file.
30122
30123         New module 'uninorm/u16-normcoll'.
30124         * lib/uninorm/u16-normcoll.c: New file.
30125         * modules/uninorm/u16-normcoll: New file.
30126
30127         New module 'uninorm/u8-normcoll'.
30128         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
30129         declarations.
30130         * lib/uninorm/u8-normcoll.c: New file.
30131         * lib/uninorm/u-normcoll.h: New file.
30132         * modules/uninorm/u8-normcoll: New file.
30133
30134         New module 'uninorm/u32-normxfrm'.
30135         * lib/uninorm/u32-normxfrm.c: New file.
30136         * modules/uninorm/u32-normxfrm: New file.
30137
30138         New module 'uninorm/u16-normxfrm'.
30139         * lib/uninorm/u16-normxfrm.c: New file.
30140         * modules/uninorm/u16-normxfrm: New file.
30141
30142         New module 'uninorm/u8-normxfrm'.
30143         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
30144         declarations.
30145         * lib/uninorm/u8-normxfrm.c: New file.
30146         * lib/uninorm/u-normxfrm.h: New file.
30147         * modules/uninorm/u8-normxfrm: New file.
30148
30149 2009-03-07  Bruno Haible  <bruno@clisp.org>
30150
30151         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
30152         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
30153         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
30154
30155 2009-03-07  Bruno Haible  <bruno@clisp.org>
30156
30157         New module 'memxfrm'.
30158         * lib/memxfrm.h: New file.
30159         * lib/memxfrm.c: New file.
30160         * modules/memxfrm: New file.
30161
30162 2009-03-07  Bruno Haible  <bruno@clisp.org>
30163
30164         New module 'memcmp2'.
30165         * lib/memcmp2.h: New file.
30166         * lib/memcmp2.c: New file.
30167         * modules/memcmp2: New file.
30168
30169 2009-03-07  Bruno Haible  <bruno@clisp.org>
30170
30171         Tests for module 'uninorm/decomposing-form'.
30172         * modules/uninorm/decomposing-form-tests: New file.
30173         * tests/uninorm/test-decomposing-form.c: New file.
30174
30175         New module 'uninorm/decomposing-form'.
30176         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
30177         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
30178         Add 'decomposing_variant' field.
30179         * lib/uninorm/decomposing-form.c: New file.
30180         * lib/uninorm/nfc.c (uninorm_nfc): Update.
30181         * lib/uninorm/nfd.c (uninorm_nfd): Update.
30182         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
30183         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
30184         * modules/uninorm/decomposing-form: New file.
30185         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
30186         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
30187
30188 2009-03-07  Bruno Haible  <bruno@clisp.org>
30189
30190         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
30191         strings.
30192
30193 2009-03-06  Bruno Haible  <bruno@clisp.org>
30194
30195         Tests for module 'uninorm/u32-normcmp'.
30196         * tests/uninorm/test-u32-normcmp.c: New file.
30197         * modules/uninorm/u32-normcmp-tests: New file.
30198
30199         Tests for module 'uninorm/u16-normcmp'.
30200         * tests/uninorm/test-u16-normcmp.c: New file.
30201         * modules/uninorm/u16-normcmp-tests: New file.
30202
30203         Tests for module 'uninorm/u8-normcmp'.
30204         * tests/uninorm/test-u8-normcmp.c: New file.
30205         * modules/uninorm/u8-normcmp-tests: New file.
30206
30207         New module 'uninorm/u32-normcmp'.
30208         * lib/uninorm/u32-normcmp.c: New file.
30209         * modules/uninorm/u32-normcmp: New file.
30210
30211         New module 'uninorm/u16-normcmp'.
30212         * lib/uninorm/u16-normcmp.c: New file.
30213         * modules/uninorm/u16-normcmp: New file.
30214
30215         New module 'uninorm/u8-normcmp'.
30216         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
30217         declarations.
30218         * lib/uninorm/u8-normcmp.c: New file.
30219         * lib/uninorm/u-normcmp.h: New file.
30220         * modules/uninorm/u8-normcmp: New file.
30221
30222 2009-03-06  Bruno Haible  <bruno@clisp.org>
30223
30224         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
30225         Reported by Eric Blake.
30226
30227 2009-03-06  Eric Blake  <ebb9@byu.net>
30228             Bruno Haible  <bruno@clisp.org>
30229
30230         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
30231         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
30232         condition.
30233         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30234         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
30235         condition.
30236         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30237
30238 2009-03-06  Eric Blake  <ebb9@byu.net>
30239
30240         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
30241         to avoid compiler warnings.
30242         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
30243
30244 2009-03-05  Bruno Haible  <bruno@clisp.org>
30245
30246         * tests/test-ftell.c (main): Disable test beyond end of file on
30247         FreeMiNT.
30248         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30249
30250 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
30251
30252         * lib/filevercmp.c: Move hidden files up in ordering.
30253         * tests/test-filevercmp.c: Add tests for hidden files.
30254
30255 2009-03-04  Bruno Haible  <bruno@clisp.org>
30256
30257         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
30258         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
30259         AM_CFLAGS.
30260         Reported by Simon Josefsson.
30261
30262 2009-03-03  Bruno Haible  <bruno@clisp.org>
30263
30264         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
30265         Reported by Simon Josefsson.
30266
30267         * doc/ld-version-script.texi: Update node reference.
30268
30269 2009-03-03  Bruno Haible  <bruno@clisp.org>
30270
30271         * modules/visibility (License): Change to 'unlimited'.
30272         Suggested by Simon Josefsson.
30273
30274 2009-03-03  Jim Meyering  <meyering@redhat.com>
30275
30276         unlinkdir: cannot_unlink_dir may modify process state
30277         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
30278         it's neither thread-safe nor appropriate for use in a library.
30279
30280 2009-03-03  Eric Blake  <ebb9@byu.net>
30281
30282         test-closein: silence test under Darwin
30283         * tests/test-closein.sh: Ignore stderr from cat, since we don't
30284         care if it dies from EPIPE or EBADF.
30285
30286 2009-03-03  Bruno Haible  <bruno@clisp.org>
30287
30288         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
30289         earlier.
30290         * doc/visibility.texi: Fix @node and @section.
30291
30292 2009-03-03  Simon Josefsson  <simon@josefsson.org>
30293
30294         * doc/gnulib.texi: Link to sections for ld version script and
30295         visibility.
30296         * doc/visibility.texi: Add @node and @section.
30297         * modules/ld-version-script: New module.
30298         * m4/ld-version-script.m4: New file.
30299         * doc/ld-version-script.texi: New file.
30300
30301 2009-03-02  David Lutterkort  <lutter@redhat.com>
30302
30303         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
30304         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30305
30306 2009-03-02  Bruno Haible  <bruno@clisp.org>
30307
30308         * doc/visibility.texi: Mention libtool's -export-symbols option.
30309
30310 2009-03-02  Jim Meyering  <meyering@redhat.com>
30311
30312         announce-gen: new option: --no-print-checksums
30313         * build-aux/announce-gen (usage): Describe it.
30314         (print_checksums): Print a newline here, not in the [*] footnote.
30315         (main): Honor it.
30316
30317 2009-03-01  Bruno Haible  <bruno@clisp.org>
30318
30319         Use socklen_t in the native Windows replacements prototypes.
30320         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
30321         instead of 'int'.
30322         * lib/getsockopt.c (rpl_getsockopt): Likewise.
30323         * lib/setsockopt.c (rpl_setsockopt): Likewise.
30324         * modules/getsockopt (Depends-on): Add socklen.
30325         * modules/setsockopt (Depends-on): Add socklen.
30326
30327 2009-03-01  Bruno Haible  <bruno@clisp.org>
30328
30329         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
30330         least 4.2.
30331
30332 2009-03-01  Eric Blake  <ebb9@byu.net>
30333             Bruno Haible  <bruno@clisp.org>
30334
30335         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
30336         error messages.
30337         * lib/wait-process.c (wait_subprocess): Omit error message about
30338         deadly signal sent to the child of termsigp != NULL.
30339
30340 2009-03-01  Eric Blake  <ebb9@byu.net>
30341
30342         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
30343
30344 2009-03-01  Bruno Haible  <bruno@clisp.org>
30345
30346         Avoid a gcc warning.
30347         * tests/test-sched.c (b): Make global.
30348         Reported by Eric Blake.
30349
30350 2009-01-19  Martin Lambers  <marlam@marlam.de>
30351
30352         Provide POSIX semantics for socket timeout options on W32.
30353         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
30354         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
30355         * modules/setsockopt: Depend on sys_time module for struct timeval.
30356         * modules/getsockopt: Depend on sys_time module for struct timeval.
30357
30358 2009-03-01  Simon Josefsson  <simon@josefsson.org>
30359
30360         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
30361         __USE_GNU, for consistency with netdb.in.h.
30362         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30363
30364 2009-03-01  Bruno Haible  <bruno@clisp.org>
30365
30366         More support for FreeMiNT.
30367         * lib/fseeko.c (rpl_fseeko): Complete last commit.
30368         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30369
30370 2009-03-01  Bruno Haible  <bruno@clisp.org>
30371
30372         More support for FreeMiNT.
30373         * lib/fpurge.c (fpurge): Correct last commit.
30374         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30375
30376 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30377
30378         Fix unportable awk script in vc-list-files.
30379         * build-aux/vc-list-files: In the replacement awk script, use
30380         substr with a second argument of 1, not zero.
30381         Report by Simon Josefsson.
30382
30383 2009-02-28  Bruno Haible  <bruno@clisp.org>
30384
30385         More support for FreeMiNT.
30386         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
30387         to FreeMiNT today.
30388         * lib/fwriting.c (fwriting): Likewise.
30389         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
30390
30391 2009-02-28  Bruno Haible  <bruno@clisp.org>
30392
30393         * tests/test-freadseek.c (main): Disable test beyond end of file on
30394         FreeMiNT.
30395         * tests/test-ftello.c (main): Likewise.
30396         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30397
30398 2009-02-28  Bruno Haible  <bruno@clisp.org>
30399
30400         Add tentative support for FreeMiNT.
30401         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
30402         * lib/fpurge.c (fpurge): Likewise.
30403         * lib/freadable.c (freadable): Likewise.
30404         * lib/freading.c (freading): Likewise.
30405         * lib/freadptr.c (freadptr): Likewise.
30406         * lib/freadseek.c (freadptrinc): Likewise.
30407         * lib/fseeko.c (rpl_fseeko): Likewise.
30408         * lib/fseterr.c (fseterr): Likewise.
30409         * lib/fwritable.c (fwritable): Likewise.
30410         * lib/fwriting.c (fwriting): Likewise.
30411         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
30412         Hourihane.
30413         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30414
30415 2009-02-28  Bruno Haible  <bruno@clisp.org>
30416
30417         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
30418         SIGCHLD.
30419         Reported by Jim Meyering.
30420
30421 2009-02-28  Bruno Haible  <bruno@clisp.org>
30422
30423         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
30424         Mention the results of these tests on various platforms.
30425         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
30426         order.
30427         * doc/posix-functions/printf.texi: Likewise.
30428         * doc/posix-functions/snprintf.texi: Likewise.
30429         * doc/posix-functions/sprintf.texi: Likewise.
30430         * doc/posix-functions/vfprintf.texi: Likewise.
30431         * doc/posix-functions/vprintf.texi: Likewise.
30432         * doc/posix-functions/vsnprintf.texi: Likewise.
30433         * doc/posix-functions/vsprintf.texi: Likewise.
30434         * doc/glibc-functions/obstack_printf.texi: Likewise.
30435         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
30436
30437 2009-02-28  Bruno Haible  <bruno@clisp.org>
30438
30439         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
30440         Reported by Loïc Minier <lool@dooz.org>.
30441
30442 2009-02-27  Bruno Haible  <bruno@clisp.org>
30443
30444         * gnulib-tool (func_import): Make the sed expression used to create the
30445         sed script for updating the .gitignore file POSIX compliant.
30446         Reported by Eric Blake.
30447
30448 2009-02-27  Bruno Haible  <bruno@clisp.org>
30449
30450         * gnulib-tool (sed): Don't alias as "sed --posix".
30451         Reported by Eric Blake.
30452
30453 2009-02-27  Bruno Haible  <bruno@clisp.org>
30454
30455         Avoid test link errors.
30456         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
30457         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
30458         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
30459         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
30460         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30461
30462 2009-02-27  Bruno Haible  <bruno@clisp.org>
30463
30464         Avoid spurious "(cached)" in configure output.
30465         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
30466         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
30467         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30468         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30469         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30470         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30471         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30472         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30473         Reported by Eric Blake.
30474
30475 2009-02-27  Eric Blake  <ebb9@byu.net>
30476
30477         printf: fix regression in previous patch
30478         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
30479
30480 2009-02-27  Bruno Haible  <bruno@clisp.org>
30481
30482         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
30483         value.
30484         * lib/stdint.in.h: Likewise.
30485         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
30486
30487 2009-02-27  Eric Blake  <ebb9@byu.net>
30488
30489         doc: mention more functions added in cygwin 1.7.0
30490         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
30491         addition.
30492         * doc/posix-functions/open_wmemstream.texi: Likewise.
30493         * doc/posix-functions/wcsnlen.texi: Likewise.
30494         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30495         * doc/posix-functions/wcstod.texi: Likewise.
30496         * doc/posix-functions/wcstof.texi: Likewise.
30497         * doc/posix-functions/wcstoimax.texi: Likewise.
30498         * doc/posix-functions/wcstok.texi: Likewise.
30499         * doc/posix-functions/wcstoumax.texi: Likewise.
30500
30501         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
30502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
30503         * doc/posix-functions/fprintf.texi: Update.
30504         * doc/posix-functions/printf.texi: Update.
30505         * doc/posix-functions/snprintf.texi: Update.
30506         * doc/posix-functions/sprintf.texi: Update.
30507         * doc/posix-functions/vfprintf.texi: Update.
30508         * doc/posix-functions/vprintf.texi: Update.
30509         * doc/posix-functions/vsnprintf.texi: Update.
30510         * doc/posix-functions/vsprintf.texi: Update.
30511         * doc/glibc-functions/obstack_printf.texi: Update.
30512         * doc/glibc-functions/obstack_vprintf.texi: Update.
30513
30514 2009-02-26  Eric Blake  <ebb9@byu.net>
30515
30516         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
30517         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
30518         compilation bug by using runtime conversion.
30519         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30520         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
30521         * modules/ceill-tests (Files): Use nan.h.
30522         * modules/floorl-tests (Files): Likewise.
30523         * modules/frexpl-tests (Files): Likewise.
30524         * modules/isnanl-tests (Files): Likewise.
30525         * modules/ldexpl-tests (Files): Likewise.
30526         * modules/roundl-tests (Files): Likewise.
30527         * modules/truncl-tests (Files): Likewise.
30528         * tests/test-ceill.c (main): Use a working NaN.
30529         * tests/test-floorl.c (main): Likewise.
30530         * tests/test-frexpl.c (main): Likewise.
30531         * tests/test-isnan.c (test_long_double): Likewise.
30532         * tests/test-isnanl.h (main): Likewise.
30533         * tests/test-ldexpl.h (main): Likewise.
30534         * tests/test-roundl.h (main): Likewise.
30535         * tests/test-truncl.h (main): Likewise.
30536         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
30537
30538 2009-02-26  Eric Blake  <ebb9@byu.net>
30539             Bruno Haible  <bruno@clisp.org>
30540
30541         Work around a *printf bug with %ls on Solaris.
30542         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
30543         precision is specified, sprintf stops converting the wide string
30544         argument when the number of bytes that have been produced by this
30545         conversion equals or exceeds the precision.
30546         * doc/posix-functions/fprintf.texi: Update.
30547         * doc/posix-functions/printf.texi: Update.
30548         * doc/posix-functions/snprintf.texi: Update.
30549         * doc/posix-functions/sprintf.texi: Update.
30550         * doc/posix-functions/vfprintf.texi: Update.
30551         * doc/posix-functions/vprintf.texi: Update.
30552         * doc/posix-functions/vsnprintf.texi: Update.
30553         * doc/posix-functions/vsprintf.texi: Update.
30554         * doc/glibc-functions/obstack_printf.texi: Update.
30555         * doc/glibc-functions/obstack_vprintf.texi: Update.
30556
30557 2009-02-26  Eric Blake  <ebb9@byu.net>
30558
30559         stdlib: favor compiler check of random.h
30560         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
30561         to avoid an ObjC random.h installed by Swarm.
30562
30563 2009-02-26  Bruno Haible  <bruno@clisp.org>
30564
30565         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
30566         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
30567         Reported by Gary V. Vaughan <gary@gnu.org>.
30568
30569 2009-02-26  Bruno Haible  <bruno@clisp.org>
30570
30571         Fix *printf behaviour regarding the %ls directive.
30572         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
30573         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
30574         NEED_PRINTF_DIRECTIVE_LS.
30575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
30576         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30577         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30578         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
30579         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
30580         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
30581         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30582         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30583         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30584         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30585         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30586         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
30587         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30588         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30589         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30590         * doc/posix-functions/fprintf.texi: Update.
30591         * doc/posix-functions/printf.texi: Update.
30592         * doc/posix-functions/snprintf.texi: Update.
30593         * doc/posix-functions/sprintf.texi: Update.
30594         * doc/posix-functions/vfprintf.texi: Update.
30595         * doc/posix-functions/vprintf.texi: Update.
30596         * doc/posix-functions/vsnprintf.texi: Update.
30597         * doc/posix-functions/vsprintf.texi: Update.
30598         * doc/glibc-functions/obstack_printf.texi: Update.
30599         * doc/glibc-functions/obstack_vprintf.texi: Update.
30600         Reported by Eric Blake.
30601
30602 2009-02-25  Bruno Haible  <bruno@clisp.org>
30603
30604         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
30605         with known value.
30606         Reported by Gary V. Vaughan <gary@gnu.org>.
30607
30608 2009-02-25  Bruno Haible  <bruno@clisp.org>
30609
30610         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
30611         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
30612         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
30613         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
30614         Reported by Gary V. Vaughan <gary@gnu.org>.
30615
30616 2009-02-25  Bruno Haible  <bruno@clisp.org>
30617
30618         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
30619         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
30620         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
30621         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
30622         Reported by Gary V. Vaughan <gary@gnu.org>.
30623
30624 2009-02-25  Eric Blake  <ebb9@byu.net>
30625
30626         tests: skip fseek/ftell tests if ungetc is broken
30627         * m4/ungetc.m4: New file.
30628         * modules/fseek-tests: Split test, so ungetc dependency is
30629         separate from rest of test.
30630         * modules/fseeko-tests: Likewise.
30631         * modules/ftell-tests: Likewise.
30632         * modules/ftello-tests: Likewise.
30633         * tests/test-fseek.c (main): Isolate ungetc dependency.
30634         * tests/test-fseeko.c (main): Likewise.
30635         * tests/test-ftell.c (main): Likewise.
30636         * tests/test-ftello.c (main): Likewise.
30637         * tests/test-fseek2.sh: New file.
30638         * tests/test-fseeko2.sh: Likewise.
30639         * tests/test-ftell2.sh: Likewise.
30640         * tests/test-ftello2.sh: Likewise.
30641
30642 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
30643
30644         test-getaddrinfo: fix usage of skip return code 77
30645         * tests/test-gettaddrinfo.c: Return skip code 77 only
30646         for first occurance of skip (4x77 is not 77)
30647
30648 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
30649
30650         strtod: avoid C99 decl-after-statement
30651         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
30652
30653 2009-02-24  Eric Blake  <ebb9@byu.net>
30654
30655         strtod: detect HP-UX 11.31 bug
30656         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
30657         Reported by Gary V. Vaughan.
30658
30659 2009-02-23  Bruno Haible  <bruno@clisp.org>
30660
30661         Fix invalid read past end of memory block.
30662         * lib/vasnprintf.c (DCHAR_SET): Define.
30663         (local_wcslen): Define only when needed.
30664         (local_strnlen, local_wcsnlen): New functions.
30665         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
30666         directives that involve a conversion ourselves.
30667         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
30668         wcsnlen, mbrtowc, wcrtomb.
30669         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
30670         * tests/test-vasprintf-posix.c (test_function): Likewise.
30671         * tests/test-snprintf-posix.h (test_function): Likewise.
30672         * tests/test-sprintf-posix.h (test_function): Likewise.
30673         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30674
30675 2009-02-22  Bruno Haible  <bruno@clisp.org>
30676
30677         Implement new clarified decomposition of Hangul syllables.
30678         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
30679         of type LTV, return only a pairwise decomposition.
30680         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
30681         Likewise.
30682         * tests/uninorm/test-decomposition.c (main): Updated expected result.
30683         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
30684         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
30685
30686 2009-02-22  Bruno Haible  <bruno@clisp.org>
30687
30688         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
30689         zero-length results and shrink excess allocated memory.
30690         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
30691         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
30692         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
30693         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
30694         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
30695         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
30696         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
30697         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
30698         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
30699         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
30700         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
30701         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
30702
30703 2009-02-21  Bruno Haible  <bruno@clisp.org>
30704
30705         * doc/gnulib.texi: Include safe-alloc.texi earlier.
30706         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
30707         spaces after a period. Put a space between a macro name and its
30708         argument list. Trivial rewordings.
30709         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
30710         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
30711         (main): Return 0 explicitly.
30712
30713 2009-02-21  Bruno Haible  <bruno@clisp.org>
30714
30715         Tests for module 'uninorm/filter'.
30716         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
30717         * modules/uninorm/filter-tests: New file.
30718
30719         New module 'uninorm/filter'.
30720         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
30721         uninorm_filter_flush, uninorm_filter_free): New declarations.
30722         * lib/uninorm/uninorm-filter.c: New file.
30723         * modules/uninorm/filter: New file.
30724
30725 2009-02-21  Bruno Haible  <bruno@clisp.org>
30726
30727         Tests for module 'uninorm/nfkc'.
30728         * tests/uninorm/test-nfkc.c: New file.
30729         * tests/uninorm/test-u8-nfkc.c: New file.
30730         * tests/uninorm/test-u16-nfkc.c: New file.
30731         * tests/uninorm/test-u32-nfkc.c: New file.
30732         * tests/uninorm/test-u32-nfkc-big.sh: New file.
30733         * tests/uninorm/test-u32-nfkc-big.c: New file.
30734         * modules/uninorm/nfkc-tests: New file.
30735
30736         New module 'uninorm/nfkc'.
30737         * lib/uninorm/nfkc.c: New file.
30738         * modules/uninorm/nfkc: New file.
30739
30740         Tests for module 'uninorm/nfkd'.
30741         * tests/uninorm/test-nfkd.c: New file.
30742         * tests/uninorm/test-u8-nfkd.c: New file.
30743         * tests/uninorm/test-u16-nfkd.c: New file.
30744         * tests/uninorm/test-u32-nfkd.c: New file.
30745         * tests/uninorm/test-u32-nfkd-big.sh: New file.
30746         * tests/uninorm/test-u32-nfkd-big.c: New file.
30747         * modules/uninorm/nfkd-tests: New file.
30748
30749         New module 'uninorm/nfkd'.
30750         * lib/uninorm/nfkd.c: New file.
30751         * modules/uninorm/nfkd: New file.
30752
30753         Tests for module 'uninorm/nfc'.
30754         * tests/uninorm/test-nfc.c: New file.
30755         * tests/uninorm/test-u8-nfc.c: New file.
30756         * tests/uninorm/test-u16-nfc.c: New file.
30757         * tests/uninorm/test-u32-nfc.c: New file.
30758         * tests/uninorm/test-u32-nfc-big.sh: New file.
30759         * tests/uninorm/test-u32-nfc-big.c: New file.
30760         * modules/uninorm/nfc-tests: New file.
30761
30762         New module 'uninorm/nfc'.
30763         * lib/uninorm/nfc.c: New file.
30764         * modules/uninorm/nfc: New file.
30765
30766         Tests for module 'uninorm/nfd'.
30767         * tests/uninorm/test-nfd.c: New file.
30768         * tests/uninorm/test-u8-nfd.c: New file.
30769         * tests/uninorm/test-u16-nfd.c: New file.
30770         * tests/uninorm/test-u32-nfd.c: New file.
30771         * tests/uninorm/test-u32-nfd-big.sh: New file.
30772         * tests/uninorm/test-u32-nfd-big.c: New file.
30773         * tests/uninorm/test-u32-normalize-big.h: New file.
30774         * tests/uninorm/test-u32-normalize-big.c: New file.
30775         * tests/uninorm/NormalizationTest.txt: New file, created from
30776         Unicode 5.1.0 NormalizationTest.txt.
30777         * modules/uninorm/nfd-tests: New file.
30778
30779         New module 'uninorm/nfd'.
30780         * lib/uninorm/nfd.c: New file.
30781         * modules/uninorm/nfd: New file.
30782
30783         New module 'uninorm/u32-normalize'.
30784         * lib/uninorm/u32-normalize.c: New file.
30785         * modules/uninorm/u32-normalize: New file.
30786
30787         New module 'uninorm/u16-normalize'.
30788         * lib/uninorm/u16-normalize.c: New file.
30789         * modules/uninorm/u16-normalize: New file.
30790
30791         New module 'uninorm/u8-normalize'.
30792         * lib/uninorm/u8-normalize.c: New file.
30793         * lib/uninorm/normalize-internal.h: New file.
30794         * lib/uninorm/u-normalize-internal.h: New file.
30795         * modules/uninorm/u8-normalize: New file.
30796
30797         New module 'uninorm/decompose-internal'.
30798         * lib/uninorm/decompose-internal.c: New file.
30799         * modules/uninorm/decompose-internal: New file.
30800
30801         Tests for module 'uninorm/composition'.
30802         * tests/uninorm/test-composition.c: New file.
30803         * modules/uninorm/composition-tests: New file.
30804
30805         New module 'uninorm/composition'.
30806         * lib/uninorm/composition.c: New file.
30807         * lib/uninorm/composition-table.gperf: New file, generated by
30808         gen-uni-tables.
30809         * modules/uninorm/composition: New file.
30810
30811         Tests for module 'uninorm/compat-decomposition'.
30812         * tests/uninorm/test-compat-decomposition.c: New file.
30813         * modules/uninorm/compat-decomposition-tests: New file.
30814
30815         New module 'uninorm/compat-decomposition'.
30816         * lib/uninorm/decompose-internal.h: New file.
30817         * lib/uninorm/compat-decomposition.c: New file.
30818         * modules/uninorm/compat-decomposition: New file.
30819
30820         Tests for module 'uninorm/canonical-decomposition'.
30821         * tests/uninorm/test-canonical-decomposition.c: New file.
30822         * modules/uninorm/canonical-decomposition-tests: New file.
30823
30824         New module 'uninorm/canonical-decomposition'.
30825         * lib/uninorm/canonical-decomposition.c: New file.
30826         * modules/uninorm/canonical-decomposition: New file.
30827
30828         Tests for module 'uninorm/decomposition'.
30829         * tests/uninorm/test-decomposition.c: New file.
30830         * modules/uninorm/decomposition-tests: New file.
30831
30832         New module 'uninorm/decomposition'.
30833         * lib/uninorm/decomposition.c: New file.
30834         * modules/uninorm/decomposition: New file.
30835
30836         New module 'uninorm/decomposition-table'.
30837         * lib/uninorm/decomposition-table.h: New file.
30838         * lib/uninorm/decomposition-table.c: New file.
30839         * lib/uninorm/decomposition-table1.h: New file, generated by
30840         gen-uni-tables.
30841         * lib/uninorm/decomposition-table2.h: New file, generated by
30842         gen-uni-tables.
30843         * modules/uninorm/decomposition-table: New file.
30844
30845         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
30846         (UC_DECOMP_*): New enumeration items.
30847         (get_decomposition): New function.
30848         (struct decomp_table): New type.
30849         (output_decomposition, output_decomposition_tables): New functions.
30850         (unicode_composition_exclusions): New variable.
30851         (fill_composition_exclusions, debug_output_composition_tables): New
30852         functions.
30853         (main): Accept one more argument. Invoke fill_composition_exclusions.
30854         Output decomposition and composition tables.
30855
30856         New module 'uninorm/base'.
30857         * lib/uninorm.h: New file.
30858         * lib/unictype.h: Update comment.
30859         * modules/uninorm/base: New file.
30860
30861 2009-02-21  David Lutterkort  <lutter@redhat.com>
30862
30863         Tests for module 'safe-alloc'.
30864         * tests/test-safe-alloc.c: New file.
30865         * modules/safe-alloc-tests: New file.
30866
30867         New module 'safe-alloc'.
30868         * lib/safe-alloc.h: New file.
30869         * lib/safe-alloc.c: New file.
30870         * m4/safe-alloc.m4: New file.
30871         * modules/safe-alloc: New file.
30872         * doc/safe-alloc.texi: New file.
30873         * doc/gnulib.texi: Include it.
30874         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30875         safe-alloc.
30876
30877 2009-02-18  Bruno Haible  <bruno@clisp.org>
30878
30879         Fix link error on non-glibc systems.
30880         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
30881         variable.
30882         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30883
30884 2009-02-18  Jim Meyering  <meyering@redhat.com>
30885
30886         fts: avoid used-uninitialized error due to recent change
30887         * lib/fts.c (fts_read): Guard uses of the new member,
30888         parent->fts_n_dirs_remaining, since it's not relevant for
30889         the parent of a directory specified on the command-line.
30890
30891 2009-02-17  James Youngman  <jay@gnu.org>
30892             Bruno Haible  <bruno@clisp.org>
30893
30894         * m4/include_next.m4: Reformulate comment.
30895
30896 2009-02-16  Jim Meyering  <meyering@redhat.com>
30897
30898         fts: add #if guards so that the fts_lgpl module still builds
30899         * lib/fts.c: Guard just-added hash-table-using parts with
30900         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
30901         Reported by Simon Josefsson.
30902
30903 2009-02-15  Bruno Haible  <bruno@clisp.org>
30904
30905         * modules/array-mergesort-tests: New file.
30906         * tests/test-array-mergesort.c: New file.
30907
30908         New module 'array-mergesort'.
30909         * modules/array-mergesort: New file.
30910         * lib/array-mergesort.h: New file.
30911
30912 2009-02-15  Bruno Haible  <bruno@clisp.org>
30913
30914         Fix 2009-02-07 commit.
30915         * lib/gen-uni-tables.c (output_predicate, output_category,
30916         output_combclass, output_bidi_category, output_decimal_digit,
30917         output_digit, output_numeric, output_mirror, output_scripts,
30918         output_ident_category, output_simple_mapping): Fix format directives.
30919         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30920
30921 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30922
30923         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
30924         fixes are available from IBM.
30925
30926 2009-02-13  Jim Meyering  <meyering@redhat.com>
30927
30928         fts: arrange not to stat non-directories in more cases
30929         This makes GNU find (when it doesn't need to stat each file)
30930         *much* more efficient at traversing reiserfs file systems.
30931         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
30932         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
30933         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
30934         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
30935         (leaf_optimization_applies): New function.
30936         (LCO_hash, LCO_compare): New helper functions.
30937         (link_count_optimize_ok): New function.
30938         (fts_stat): Initialize new member (if dir).
30939         (fts_read): Decrement parent's fts_n_dirs_remaining count if
30940         we've just stat'ed a directory.  Skip the stat call when possible.
30941         ---
30942         Note this AFS-related exchange:
30943         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
30944         and note find's pioctl call in find/fstype.c.
30945         But that is necessary only if you want to enable the
30946         optimization for AFS, and for now, I don't.
30947
30948         fts: move a function definition "up" (no semantic change)
30949         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
30950         "up" to precede upcoming use of a related function.
30951
30952 2009-02-11  Jim Meyering  <meyering@redhat.com>
30953
30954         fts: correct internal computation of nlinks (optimization-related)
30955         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
30956         whether the current entry is a directory, so don't test it.
30957
30958 2009-02-10  Bruno Haible  <bruno@clisp.org>
30959
30960         Tests for module 'uniwbrk/ulc-wordbreaks'.
30961         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
30962         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
30963         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
30964
30965         Tests for module 'uniwbrk/u32-wordbreaks'.
30966         * modules/uniwbrk/u32-wordbreaks-tests: New file.
30967         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
30968
30969         Tests for module 'uniwbrk/u16-wordbreaks'.
30970         * modules/uniwbrk/u16-wordbreaks-tests: New file.
30971         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
30972
30973         Tests for module 'uniwbrk/u8-wordbreaks'.
30974         * modules/uniwbrk/u8-wordbreaks-tests: New file.
30975         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
30976
30977 2009-02-10  Bruno Haible  <bruno@clisp.org>
30978
30979         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
30980         property.
30981         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
30982         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
30983         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
30984
30985 2009-02-10  Simon Josefsson  <simon@josefsson.org>
30986
30987         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
30988         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
30989
30990 2009-02-10  Bruno Haible  <bruno@clisp.org>
30991
30992         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
30993         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
30994         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
30995         * lib/unilbrk/u8-possible-linebreaks.c: Update.
30996         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
30997         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
30998
30999 2009-02-09  Simon Josefsson  <simon@josefsson.org>
31000
31001         * lib/sockets.h (gl_fd_to_handle): New function.
31002
31003         * tests/test-sockets.c: Call gl_fd_to_handle.
31004
31005 2009-02-09  Bruno Haible  <bruno@clisp.org>
31006
31007         * doc/havelib.texi: Document the conventions on bi-arch systems.
31008
31009 2009-02-08  Bruno Haible  <bruno@clisp.org>
31010
31011         Document the AC_LIB_LINKFLAGS macro.
31012         * doc/havelib.texi: New file, mostly written on 2005-05-24.
31013         * doc/gnulib.texi: Include it.
31014
31015 2009-02-08  Bruno Haible  <bruno@clisp.org>
31016
31017         Fix wrong order of sections, compared to TOC.
31018         * doc/gnulib.texi: Include relocatable-maint.texi after the
31019         "Regular expressions" node, not before.
31020
31021 2009-02-08  Bruno Haible  <bruno@clisp.org>
31022
31023         Tests for module 'unicase/totitle'.
31024         * modules/unicase/totitle-tests: New file.
31025
31026         Tests for module 'unicase/tolower'.
31027         * modules/unicase/tolower-tests: New file.
31028
31029         Tests for module 'unicase/toupper'.
31030         * modules/unicase/toupper-tests: New file.
31031         * tests/unicase/test-mapping-part1.h: New file.
31032         * tests/unicase/test-mapping-part2.h: New file.
31033
31034         New module 'unicase/totitle'.
31035         * modules/unicase/totitle: New file.
31036         * lib/unicase/totitle.c: New file.
31037
31038         New module 'unicase/tolower'.
31039         * modules/unicase/tolower: New file.
31040         * lib/unicase/tolower.c: New file.
31041
31042         New module 'unicase/toupper'.
31043         * modules/unicase/toupper: New file.
31044         * lib/unicase/toupper.c: New file.
31045         * lib/unicase/simple-mapping.h: New file.
31046
31047         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
31048         (mapping_table): New structure.
31049         (output_simple_mapping): New function.
31050         (main): Invoke output_simple_mapping_test and output_simple_mapping.
31051         * modules/gen-uni-tables (Description): Update.
31052         * lib/unicase/toupper.h: New file, automatically generated by
31053         gen-uni-tables.
31054         * lib/unicase/tolower.h: New file, automatically generated by
31055         gen-uni-tables.
31056         * lib/unicase/totitle.h: New file, automatically generated by
31057         gen-uni-tables.
31058         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
31059         gen-uni-tables.
31060         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
31061         gen-uni-tables.
31062         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
31063         gen-uni-tables.
31064
31065         New module 'unicase/base'.
31066         * modules/unicase/base: New file.
31067         * lib/unicase.h: New file.
31068
31069 2009-02-08  Bruno Haible  <bruno@clisp.org>
31070
31071         New module 'uniwbrk/ulc-wordbreaks'.
31072         * modules/uniwbrk/ulc-wordbreaks: New file.
31073         * lib/uniwbrk/ulc-wordbreaks.c: New file.
31074
31075         New module 'uniwbrk/u32-wordbreaks'.
31076         * modules/uniwbrk/u32-wordbreaks: New file.
31077         * lib/uniwbrk/u32-wordbreaks.c: New file.
31078
31079         New module 'uniwbrk/u16-wordbreaks'.
31080         * modules/uniwbrk/u16-wordbreaks: New file.
31081         * lib/uniwbrk/u16-wordbreaks.c: New file.
31082
31083         New module 'uniwbrk/u8-wordbreaks'.
31084         * modules/uniwbrk/u8-wordbreaks: New file.
31085         * lib/uniwbrk/u8-wordbreaks.c: New file.
31086         * lib/uniwbrk/u-wordbreaks.h: New file.
31087
31088         New module 'uniwbrk/table'.
31089         * modules/uniwbrk/table: New file.
31090         * lib/uniwbrk/wbrktable.h: New file.
31091         * lib/uniwbrk/wbrktable.c: New file.
31092
31093         New module 'uniwbrk/wordbreak-property'.
31094         * modules/uniwbrk/wordbreak-property: New file.
31095         * lib/uniwbrk/wordbreak-property.c: New file.
31096
31097         * lib/gen-uni-tables.c (WBP_*): New enum items.
31098         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
31099         (unicode_org_wbp): New variable.
31100         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
31101         New functions.
31102         (wbp_table): New structure.
31103         (output_wbp, output_wbrk_tables): New functions.
31104         (main): Accept additional argument. Invoke fill_org_wbp,
31105         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
31106         output_wbrk_tables.
31107         * modules/gen-uni-tables (Description): Update.
31108         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
31109         gen-uni-tables.
31110
31111         New module 'uniwbrk/base'.
31112         * modules/uniwbrk/base: New file.
31113         * lib/uniwbrk.h: New file.
31114
31115 2009-02-08  Bruno Haible  <bruno@clisp.org>
31116
31117         Update to Unicode 5.1.0.
31118         * lib/gen-uni-tables.c (is_property_alphabetic): Include
31119         U+2185..U+2188.
31120         (is_property_default_ignorable_code_point): Don't include characters
31121         of category Cc or Cs and not-a-characters.
31122         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
31123         U+0D79, U+109E, U+109F, U+A60C.
31124         * lib/unictype/bidi_of.h: Regenerated.
31125         * lib/unictype/blocks.h: Regenerated.
31126         * lib/unictype/categ_C.h: Regenerated.
31127         * lib/unictype/categ_Cf.h: Regenerated.
31128         * lib/unictype/categ_Cn.h: Regenerated.
31129         * lib/unictype/categ_L.h: Regenerated.
31130         * lib/unictype/categ_Ll.h: Regenerated.
31131         * lib/unictype/categ_Lm.h: Regenerated.
31132         * lib/unictype/categ_Lo.h: Regenerated.
31133         * lib/unictype/categ_Lu.h: Regenerated.
31134         * lib/unictype/categ_M.h: Regenerated.
31135         * lib/unictype/categ_Mc.h: Regenerated.
31136         * lib/unictype/categ_Me.h: Regenerated.
31137         * lib/unictype/categ_Mn.h: Regenerated.
31138         * lib/unictype/categ_N.h: Regenerated.
31139         * lib/unictype/categ_Nd.h: Regenerated.
31140         * lib/unictype/categ_Nl.h: Regenerated.
31141         * lib/unictype/categ_No.h: Regenerated.
31142         * lib/unictype/categ_P.h: Regenerated.
31143         * lib/unictype/categ_Pd.h: Regenerated.
31144         * lib/unictype/categ_Pe.h: Regenerated.
31145         * lib/unictype/categ_Pf.h: Regenerated.
31146         * lib/unictype/categ_Pi.h: Regenerated.
31147         * lib/unictype/categ_Po.h: Regenerated.
31148         * lib/unictype/categ_Ps.h: Regenerated.
31149         * lib/unictype/categ_S.h: Regenerated.
31150         * lib/unictype/categ_Sk.h: Regenerated.
31151         * lib/unictype/categ_Sm.h: Regenerated.
31152         * lib/unictype/categ_So.h: Regenerated.
31153         * lib/unictype/categ_of.h: Regenerated.
31154         * lib/unictype/combining.h: Regenerated.
31155         * lib/unictype/ctype_alnum.h: Regenerated.
31156         * lib/unictype/ctype_alpha.h: Regenerated.
31157         * lib/unictype/ctype_graph.h: Regenerated.
31158         * lib/unictype/ctype_lower.h: Regenerated.
31159         * lib/unictype/ctype_print.h: Regenerated.
31160         * lib/unictype/ctype_punct.h: Regenerated.
31161         * lib/unictype/ctype_upper.h: Regenerated.
31162         * lib/unictype/decdigit.h: Regenerated.
31163         * lib/unictype/digit.h: Regenerated.
31164         * lib/unictype/mirror.h: Regenerated.
31165         * lib/unictype/numeric.h: Regenerated.
31166         * lib/unictype/pr_alphabetic.h: Regenerated.
31167         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
31168         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
31169         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
31170         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
31171         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
31172         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
31173         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
31174         * lib/unictype/pr_combining.h: Regenerated.
31175         * lib/unictype/pr_dash.h: Regenerated.
31176         * lib/unictype/pr_decimal_digit.h: Regenerated.
31177         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
31178         * lib/unictype/pr_deprecated.h: Regenerated.
31179         * lib/unictype/pr_diacritic.h: Regenerated.
31180         * lib/unictype/pr_extender.h: Regenerated.
31181         * lib/unictype/pr_format_control.h: Regenerated.
31182         * lib/unictype/pr_grapheme_base.h: Regenerated.
31183         * lib/unictype/pr_grapheme_extend.h: Regenerated.
31184         * lib/unictype/pr_grapheme_link.h: Regenerated.
31185         * lib/unictype/pr_id_continue.h: Regenerated.
31186         * lib/unictype/pr_id_start.h: Regenerated.
31187         * lib/unictype/pr_ideographic.h: Regenerated.
31188         * lib/unictype/pr_ignorable_control.h: Regenerated.
31189         * lib/unictype/pr_lowercase.h: Regenerated.
31190         * lib/unictype/pr_math.h: Regenerated.
31191         * lib/unictype/pr_numeric.h: Regenerated.
31192         * lib/unictype/pr_other_alphabetic.h: Regenerated.
31193         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
31194         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
31195         * lib/unictype/pr_other_id_continue.h: Regenerated.
31196         * lib/unictype/pr_other_lowercase.h: Regenerated.
31197         * lib/unictype/pr_other_math.h: Regenerated.
31198         * lib/unictype/pr_punctuation.h: Regenerated.
31199         * lib/unictype/pr_sentence_terminal.h: Regenerated.
31200         * lib/unictype/pr_soft_dotted.h: Regenerated.
31201         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
31202         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
31203         * lib/unictype/pr_unified_ideograph.h: Regenerated.
31204         * lib/unictype/pr_uppercase.h: Regenerated.
31205         * lib/unictype/pr_xid_continue.h: Regenerated.
31206         * lib/unictype/pr_xid_start.h: Regenerated.
31207         * lib/unictype/pr_zero_width.h: Regenerated.
31208         * lib/unictype/scripts.h: Regenerated.
31209         * lib/unictype/scripts_byname.gperf: Regenerated.
31210         * lib/unictype/sy_java_ident.h: Regenerated.
31211         * lib/unilbrk/lbrkprop1.h: Regenerated.
31212         * lib/unilbrk/lbrkprop2.h: Regenerated.
31213         * tests/unictype/test-categ_C.c: Regenerated.
31214         * tests/unictype/test-categ_Cf.c: Regenerated.
31215         * tests/unictype/test-categ_Cn.c: Regenerated.
31216         * tests/unictype/test-categ_L.c: Regenerated.
31217         * tests/unictype/test-categ_Ll.c: Regenerated.
31218         * tests/unictype/test-categ_Lm.c: Regenerated.
31219         * tests/unictype/test-categ_Lo.c: Regenerated.
31220         * tests/unictype/test-categ_Lu.c: Regenerated.
31221         * tests/unictype/test-categ_M.c: Regenerated.
31222         * tests/unictype/test-categ_Mc.c: Regenerated.
31223         * tests/unictype/test-categ_Me.c: Regenerated.
31224         * tests/unictype/test-categ_Mn.c: Regenerated.
31225         * tests/unictype/test-categ_N.c: Regenerated.
31226         * tests/unictype/test-categ_Nd.c: Regenerated.
31227         * tests/unictype/test-categ_Nl.c: Regenerated.
31228         * tests/unictype/test-categ_No.c: Regenerated.
31229         * tests/unictype/test-categ_P.c: Regenerated.
31230         * tests/unictype/test-categ_Pd.c: Regenerated.
31231         * tests/unictype/test-categ_Pe.c: Regenerated.
31232         * tests/unictype/test-categ_Pf.c: Regenerated.
31233         * tests/unictype/test-categ_Pi.c: Regenerated.
31234         * tests/unictype/test-categ_Po.c: Regenerated.
31235         * tests/unictype/test-categ_Ps.c: Regenerated.
31236         * tests/unictype/test-categ_S.c: Regenerated.
31237         * tests/unictype/test-categ_Sk.c: Regenerated.
31238         * tests/unictype/test-categ_Sm.c: Regenerated.
31239         * tests/unictype/test-categ_So.c: Regenerated.
31240         * tests/unictype/test-ctype_alnum.c: Regenerated.
31241         * tests/unictype/test-ctype_alpha.c: Regenerated.
31242         * tests/unictype/test-ctype_graph.c: Regenerated.
31243         * tests/unictype/test-ctype_lower.c: Regenerated.
31244         * tests/unictype/test-ctype_print.c: Regenerated.
31245         * tests/unictype/test-ctype_punct.c: Regenerated.
31246         * tests/unictype/test-ctype_upper.c: Regenerated.
31247         * tests/unictype/test-decdigit.h: Regenerated.
31248         * tests/unictype/test-digit.h: Regenerated.
31249         * tests/unictype/test-numeric.h: Regenerated.
31250         * tests/unictype/test-pr_alphabetic.c: Regenerated.
31251         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
31252         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
31253         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
31254         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
31255         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
31256         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
31257         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
31258         * tests/unictype/test-pr_combining.c: Regenerated.
31259         * tests/unictype/test-pr_dash.c: Regenerated.
31260         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
31261         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
31262         * tests/unictype/test-pr_deprecated.c: Regenerated.
31263         * tests/unictype/test-pr_diacritic.c: Regenerated.
31264         * tests/unictype/test-pr_extender.c: Regenerated.
31265         * tests/unictype/test-pr_format_control.c: Regenerated.
31266         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
31267         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
31268         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
31269         * tests/unictype/test-pr_id_continue.c: Regenerated.
31270         * tests/unictype/test-pr_id_start.c: Regenerated.
31271         * tests/unictype/test-pr_ideographic.c: Regenerated.
31272         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
31273         * tests/unictype/test-pr_lowercase.c: Regenerated.
31274         * tests/unictype/test-pr_math.c: Regenerated.
31275         * tests/unictype/test-pr_numeric.c: Regenerated.
31276         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
31277         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
31278         Regenerated.
31279         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
31280         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
31281         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
31282         * tests/unictype/test-pr_other_math.c: Regenerated.
31283         * tests/unictype/test-pr_punctuation.c: Regenerated.
31284         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
31285         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
31286         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
31287         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
31288         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
31289         * tests/unictype/test-pr_uppercase.c: Regenerated.
31290         * tests/unictype/test-pr_xid_continue.c: Regenerated.
31291         * tests/unictype/test-pr_xid_start.c: Regenerated.
31292         * tests/unictype/test-pr_zero_width.c: Regenerated.
31293
31294         Update to Unicode 5.1.0.
31295         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
31296         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
31297         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
31298         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
31299         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
31300         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
31301         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
31302         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
31303         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
31304         (nonspacing_table_ind): Update.
31305         * tests/uniwidth/test-uc_width2.sh: Update expected result.
31306
31307         Update to Unicode 5.1.0.
31308         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
31309         code transform.
31310         * lib/uniname/uniname.c (unicode_character_name,
31311         unicode_name_character): Add the range 0x1Fxxx to the code transform.
31312         * lib/uniname/uninames.h: Regenerated.
31313         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
31314
31315 2009-02-07  Bruno Haible  <bruno@clisp.org>
31316
31317         Merge gen-ctype and gen-lbrk into a single program.
31318         * lib/gen-uni-tables.c: New file, incorporating
31319         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
31320         Add directory prefixes to the names of the generated files.
31321         * lib/unictype/gen-ctype.c: Remove file.
31322         * lib/unilbrk/gen-lbrk.c: Remove file.
31323         * modules/gen-uni-tables: New file.
31324         * modules/unictype/gen-ctype: Remove file.
31325         * modules/unilbrk/gen-lbrk: Remove file.
31326
31327 2009-02-07  Bruno Haible  <bruno@clisp.org>
31328
31329         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
31330
31331         New module 'unistr/u32-strcoll'.
31332         * modules/unistr/u32-strcoll: New file.
31333         * lib/unistr/u32-strcoll.c: New file.
31334
31335         New module 'unistr/u16-strcoll'.
31336         * modules/unistr/u16-strcoll: New file.
31337         * lib/unistr/u16-strcoll.c: New file.
31338
31339         New module 'unistr/u8-strcoll'.
31340         * modules/unistr/u8-strcoll: New file.
31341         * lib/unistr/u8-strcoll.c: New file.
31342         * lib/unistr/u-strcoll.h: New file.
31343
31344 2009-02-07  Bruno Haible  <bruno@clisp.org>
31345
31346         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
31347         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31348         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31349         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
31350         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
31351         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
31352
31353 2009-02-07  Bruno Haible  <bruno@clisp.org>
31354
31355         Make 64-bit clean.
31356         * lib/unictype/gen-ctype.c (output_predicate, output_category,
31357         output_combclass, output_bidi_category, output_decimal_digit,
31358         output_digit, output_numeric, output_mirror, output_scripts,
31359         output_ident_category): Use proper width specifier in format strings.
31360
31361 2009-02-07  Bruno Haible  <bruno@clisp.org>
31362
31363         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
31364         failure behaviour.
31365
31366 2009-02-07  Jim Meyering  <meyering@redhat.com>
31367
31368         regex: avoid compilation failure with upcoming gcc-4.4
31369         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
31370         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
31371         "... error: integer overflow in preprocessor expression".
31372
31373 2009-02-05  Ben Pfaff  <blp@gnu.org>
31374
31375         Fix link errors on Windows when close module is used.
31376         * modules/close: Add $(LIB_CLOSE) to Link section.
31377         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
31378         $(LIB_CLOSE) on Windows.
31379
31380 2009-02-05  Jim Meyering  <meyering@redhat.com>
31381
31382         still avoid unused-parameter warnings, but do it cleanly
31383         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
31384         (get_fs_usage): Cast to void instead.
31385         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
31386         (dev_from_mount_options, read_file_system_list): Cast to void.
31387         Prompted by Bruno Haible.
31388
31389 2009-02-04  Jim Meyering  <meyering@redhat.com>
31390
31391         fsusage.c: correct copyright year
31392         * lib/fsusage.c: Reflect year in which the change is pushed into
31393
31394         avoid misc. warnings
31395         * lib/fsusage.c (UNUSED_PARAM): Define.
31396         (get_fs_usage): Mark parameter "disk" as unused.
31397         * lib/getugroups.c (getgrent): Use "void" in prototype.
31398         * lib/mountlist.c: Mark unused parameters.
31399         (read_file_system_list): Declare a local with "const".
31400         * lib/nanosleep.c (getnow): Declare static.
31401         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
31402
31403         dirfd: set errno upon failure
31404         * lib/dirfd.c: Include <errno.h>.
31405         Set errno to ENOTSUP when returning -1.
31406         * modules/dirfd (Depends-on): Add errno.
31407         Suggested by John Kodis <kodis@comcast.net>.
31408
31409 2009-02-01  Bruno Haible  <bruno@clisp.org>
31410
31411         Don't assume sizeof (long) >= sizeof (void *).
31412         * lib/memcmp.c: Include stdint.h.
31413         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
31414         srcp2 to 'const byte *'.
31415         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
31416         types to uintptr_t.
31417         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
31418         * modules/memcmp (Depends-on): Add stdint.
31419         Reported by Ozkan Sezer <sezeroz@gmail.com>.
31420
31421 2009-01-30  Eric Blake  <ebb9@byu.net>
31422
31423         fix more require-before-expand issues
31424         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
31425         expand, AC_PROG_AWK.
31426         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
31427
31428 2009-01-28  Eric Blake  <ebb9@byu.net>
31429
31430         version-etc: use consistent URL formatting
31431         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
31432         Improve formatting.  Use fputs for string without %.
31433
31434 2009-01-28  Jim Meyering  <meyering@redhat.com>
31435
31436         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
31437         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
31438         "underquoted definition of NAME" from autoconf-2.59.
31439
31440 2009-01-28  Bruno Haible  <bruno@clisp.org>
31441
31442         * doc/gnulib.texi: Add "Obsolete modules" to index.
31443
31444 2009-01-28  Jim Meyering  <meyering@redhat.com>
31445
31446         useless-if-before-free: recognize more variants
31447         * build-aux/useless-if-before-free: Also recognize e.g.,
31448         if (NULL != p) free (p);
31449
31450 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
31451
31452         test-getaddrinfo: skip (don't fail) this test when there's no network
31453         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
31454         on the presumption that it means you lack network access.
31455
31456 2009-01-26  Jim Meyering  <meyering@redhat.com>
31457
31458         fflush: avoid warnings on modern systems
31459         * lib/fflush.c (rpl_fflush): Move declarations of locals,
31460         pos and result, into scopes where they're used.
31461
31462 2009-01-26  Eric Blake  <ebb9@byu.net>
31463
31464         Silence warning reintroduced by recent extensions patch.
31465         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
31466         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
31467         autoconf.
31468
31469         Backport improved autoconf semantics of AC_DEFUN_ONCE.
31470         * m4/00gnulib.m4: New file.
31471         * gnulib-tool (func_get_filelist): Always use it.
31472         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
31473         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
31474
31475 2009-01-25  Bruno Haible  <bruno@clisp.org>
31476
31477         Make test-quotearg work on MacOS X and AIX.
31478         * tests/test-quotearg.sh: New file.
31479         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
31480         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
31481         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
31482         include <libintl.h>.
31483         (fake_locale): Remove variable.
31484         (gettext, dgettext, dcgettext): Remove functions.
31485         (main): Instead of setting a fake locale, set a real locale. Call
31486         textdomain and bindtextdomain.
31487         * modules/quotearg-tests (Files): Add the new files.
31488         (Depends-on): Add gettext, setenv, unsetenv.
31489         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
31490         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
31491         Augment TESTS_ENVIRONMENT.
31492
31493 2009-01-25  Bruno Haible  <bruno@clisp.org>
31494
31495         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
31496         fr_FR.ISO8859-1 locale on MacOS X.
31497         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
31498         ja_JP.eucJP locale on MacOS X.
31499         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
31500         zh_CN.GB18030 locale on MacOS X.
31501
31502 2009-01-25  Bruno Haible  <bruno@clisp.org>
31503
31504         Avoid link errors on MacOS X 10.3.
31505         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
31506         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31507
31508 2009-01-25  Bruno Haible  <bruno@clisp.org>
31509
31510         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31511         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
31512         * modules/pipe (Files): Remove m4/posix_spawn.m4.
31513         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31514         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
31515         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31516         posix_spawnattr_init, posix_spawnattr_setsigmask,
31517         posix_spawnattr_setflags, posix_spawnattr_destroy.
31518
31519         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31520         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
31521         * modules/execute (Files): Remove m4/posix_spawn.m4.
31522         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31523         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31524         posix_spawnattr_init, posix_spawnattr_setsigmask,
31525         posix_spawnattr_setflags, posix_spawnattr_destroy.
31526
31527 2009-01-25  Bruno Haible  <bruno@clisp.org>
31528
31529         * lib/glthread/threadlib.c: Include <stdlib.h>.
31530
31531 2009-01-25  Bruno Haible  <bruno@clisp.org>
31532
31533         * lib/glthread/threadlib.c (dummy): New declaration.
31534
31535 2009-01-25  Bruno Haible  <bruno@clisp.org>
31536
31537         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
31538         multibyte characters also for the GB18030 encoding. Don't crash when
31539         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
31540
31541 2009-01-25  Bruno Haible  <bruno@clisp.org>
31542
31543         Avoid redefining 'struct random_data' on OSF/1 5.1.
31544         * lib/stdlib.in.h: Include <random.h> if it exists.
31545         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
31546         HAVE_RANDOM_H. Include <random.h> when testing whether
31547         'struct random_data' exists.
31548         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
31549
31550 2009-01-25  Bruno Haible  <bruno@clisp.org>
31551
31552         Don't install charset.alias on MacOS X >= 10.3.
31553         * lib/localcharset.c (DARWIN7): New macro.
31554         (get_charset_aliases): Hardcode the result for Darwin7.
31555         * modules/localcharset (install-exec-local): Don't install
31556         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
31557
31558 2009-01-25  Bruno Haible  <bruno@clisp.org>
31559
31560         Don't install charset.alias on mingw and Cygwin.
31561         * modules/localcharset (install-exec-local): Don't install
31562         charset.alias on mingw and Cygwin, if the file does not yet exist.
31563         The result for these platforms is hardcoded in localcharset.c.
31564
31565 2009-01-25  Bruno Haible  <bruno@clisp.org>
31566
31567         Make it possible again to use AC_GNU_SOURCE together with gnulib.
31568         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
31569         before requiring AC_USE_SYSTEM_EXTENSIONS.
31570
31571 2009-01-25  Jim Meyering  <meyering@redhat.com>
31572
31573         c-strtod: avoid warnings
31574         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
31575         "assignment discards qualifiers from pointer target type" warnings.
31576
31577 2009-01-24  Bruno Haible  <bruno@clisp.org>
31578
31579         Add support for non-UTF-8 locales on MacOS X.
31580         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
31581         canonical encodings. For Darwin 7 and newer, don't map traditional
31582         encodings to UTF-8.
31583         Reported by Vincent Lefevre <vincent@vinc17.org>
31584         at <http://savannah.gnu.org/bugs/?25235>.
31585
31586 2009-01-24  Bruno Haible  <bruno@clisp.org>
31587
31588         * doc/gnulib.texi (Obsolete modules): New section.
31589         Reported by Mike Frysinger <vapier@gentoo.org>.
31590
31591 2009-01-24  Bruno Haible  <bruno@clisp.org>
31592
31593         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
31594         (%.dvi): New rule.
31595
31596 2009-01-24  Bruno Haible  <bruno@clisp.org>
31597
31598         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
31599         Reported by Eric Blake.
31600
31601 2009-01-24  Bruno Haible  <bruno@clisp.org>
31602
31603         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
31604         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
31605         Reported by Gary V. Vaughan <gary@gnu.org>.
31606
31607 2009-01-24  Bruno Haible  <bruno@clisp.org>
31608
31609         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
31610
31611 2009-01-23  Bruno Haible  <bruno@clisp.org>
31612
31613         Make c-strtod, c-strtold usable in libraries.
31614         * lib/c-strtod.c: Include string.h instead of xalloc.h.
31615         (C_STRTOD): Call strdup instead of xstrdup.
31616         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
31617         * modules/c-strtold (Depends-on): Likewise.
31618         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
31619         * NEWS: Mention the change.
31620         Reported by Michael Gold <mgold@ncf.ca>.
31621
31622 2009-01-23  Jim Meyering  <meyering@redhat.com>
31623
31624         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
31625         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
31626         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
31627
31628 2009-01-23  Simon Josefsson  <simon@josefsson.org>
31629
31630         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
31631         GNU CoreUtils.
31632         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
31633         * modules/version-etc (Description): Update.
31634
31635 2009-01-22  Bruno Haible  <bruno@clisp.org>
31636
31637         Cache the C locale object.
31638         * lib/c-strtod.c (c_locale_cache): New variable.
31639         (c_locale): New function.
31640         (C_STRTOD): Use it, and don't call freelocale.
31641         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
31642         Suggested by Paolo Bonzini.
31643
31644 2009-01-21  Bruno Haible  <bruno@clisp.org>
31645
31646         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
31647         conditions other than overflow.
31648
31649 2009-01-21  Bruno Haible  <bruno@clisp.org>
31650
31651         * lib/c-strtod.c: Include errno.h.
31652         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
31653         value from STRTOD_L and STRTOD.
31654
31655 2009-01-21  Bruno Haible  <bruno@clisp.org>
31656         and Jim Meyering  <meyering@redhat.com>
31657
31658         nanosleep: skip configure test (fail it) for apple universal builds
31659         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
31660         universal builds, assume that nanosleep does not work.
31661         * modules/nanosleep (Depends-on): Add multiarch.
31662
31663         mktime: skip configure test (fail it) for apple universal builds
31664         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
31665         universal builds, assume that mktime does not work.
31666         * modules/mktime (Depends-on): Add multiarch.
31667
31668 2009-01-21  Eric Blake  <ebb9@byu.net>
31669
31670         multiarch: avoid expand-before-require warning
31671         * modules/multiarch (configure.ac): Require, rather than expand,
31672         gl_MULTIARCH.
31673         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
31674         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
31675         enforce that all clients require it.  Partial reversion of
31676         2008-12-29 patch.
31677
31678         error: avoid expand-before-require warning
31679         * modules/errno (configure.ac): Require, rather than expand,
31680         gl_HEADER_ERRNO_H.
31681         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
31682         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
31683         enforce that all clients require it.
31684
31685         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
31686         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
31687         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
31688         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
31689
31690 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
31691
31692         Revert:
31693         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31694
31695         regex: do not depend on obsolete modules.
31696         * modules/regex: Remove memcmp and memmove.
31697
31698 2009-01-20  Bruno Haible  <bruno@clisp.org>
31699
31700         Make the 'link' module link on Windows NT 4.
31701         * lib/link.c (_WIN32_WINNT): Don't define.
31702         (CreateHardLinkFuncType): New type.
31703         (CreateHardLinkFunc, initialized): New variables.
31704         (initialize): New function.
31705         (link): Invoke CreateHardLink indirectly through the function pointer.
31706
31707 2009-01-20  Bruno Haible  <bruno@clisp.org>
31708
31709         Fix compilation failure on mingw.
31710         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
31711
31712 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
31713
31714         * doc/c-strtod.texi: Mention a couple of restrictions.
31715
31716 2009-01-20  Jim Meyering  <meyering@redhat.com>
31717
31718         gettimeofday: move more declarations out of functions
31719         * lib/gettimeofday.c: Move extern declarations of tzset and
31720         gmtime out of containing functions.  Prompted by Bruno Haible.
31721
31722 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31723
31724         regex: do not depend on obsolete modules.
31725         * modules/regex: Remove memcmp and memmove.
31726
31727 2009-01-19  Bruno Haible  <bruno@clisp.org>
31728
31729         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31730         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
31731         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31732         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
31733         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
31734
31735 2009-01-19  Bruno Haible  <bruno@clisp.org>
31736
31737         * tests/test-link.c: Include <errno.h>.
31738         (main): Exit with code 77 when a hard link cannot be created due to
31739         the file system.
31740         * tests/test-link.sh: Skip test when a hard link cannot be created due
31741         to the file system.
31742         Suggested by Eric Blake.
31743
31744 2009-01-19  Martin Lambers  <marlam@marlam.de>
31745
31746         * modules/link-tests: New file.
31747         * tests/test-link.sh: New file.
31748         * tests/test-link.c: New file.
31749
31750 2009-01-19  Eric Blake  <ebb9@byu.net>
31751
31752         doc: mention another function added in cygwin 1.7.0
31753         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
31754         Another new function in cygwin 1.7.
31755
31756 2009-01-19  Bruno Haible  <bruno@clisp.org>
31757
31758         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31759         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
31760         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
31761         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31762         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31763         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31764         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31765         * m4/md4.m4 (gl_MD4): Likewise.
31766         * m4/md5.m4 (gl_MD5): Likewise.
31767         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
31768         * m4/sha1.m4 (gl_SHA1): Likewise.
31769         * m4/sha256.m4 (gl_SHA256): Likewise.
31770         * m4/sha512.m4 (gl_SHA512): Likewise.
31771
31772 2009-01-19  Bruno Haible  <bruno@clisp.org>
31773
31774         * modules/uniname/uniname-tests (Depends-on): Add progname.
31775         * tests/uniname/test-uninames.c: Include progname.h.
31776         (main): Call set_program_name.
31777
31778         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
31779         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
31780         (main): Call set_program_name.
31781
31782         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
31783         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
31784         (main): Call set_program_name.
31785
31786         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
31787         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
31788         (main): Call set_program_name.
31789
31790         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
31791         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
31792         (main): Call set_program_name.
31793
31794         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
31795         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
31796         (main): Call set_program_name.
31797
31798         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
31799         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
31800         (main): Call set_program_name.
31801
31802         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
31803         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
31804         (main): Call set_program_name.
31805
31806         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
31807         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
31808         (main): Call set_program_name.
31809
31810 2009-01-19  Eric Blake  <ebb9@byu.net>
31811
31812         test-unistd: test previous patch
31813         * tests/test-unistd.c: Test *_FILENO macros.
31814
31815         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
31816         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31817         Guarantee a definition.
31818         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
31819         * modules/unistd-safer (Depends-on): Add dependency on unistd.
31820         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
31821         * lib/dup-safer.c (STDERR_FILENO): Likewise.
31822         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31823         Likewise.
31824         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
31825         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
31826         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31827         Likewise.
31828         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
31829         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
31830         (STDERR_FILENO): Likewise.
31831         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
31832         (STDERR_FILENO): Likewise.
31833         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
31834         (STDERR_FILENO): Likewise.
31835         Reported by Elbert Pol.
31836
31837 2009-01-19  Eric Blake  <ebb9@byu.net>
31838
31839         doc: mention more functions added in cygwin 1.7.0
31840         * doc/posix-functions/abort.texi (abort): Update wording related
31841         to cygwin.
31842         * doc/posix-functions/daylight.texi (daylight): Likewise.
31843         * doc/posix-functions/optarg.texi (optarg): Likewise.
31844         * doc/posix-functions/optarg.texi (opterr): Likewise.
31845         * doc/posix-functions/optarg.texi (optind): Likewise.
31846         * doc/posix-functions/optarg.texi (optopt): Likewise.
31847         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
31848         worked in 1.5.x, and was withdrawn in 1.7.
31849         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31850         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
31851         cygwin versions.
31852         * doc/posix-functions/perror.texi (perror): Likewise.
31853         * doc/posix-functions/printf.texi (printf): Likewise.
31854         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
31855         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
31856         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31857         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31858         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31859         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
31860         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31861         Likewise.
31862         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31863         Likewise.
31864         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
31865         this function.
31866         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
31867         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
31868         Likewise.
31869         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
31870         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
31871         * doc/posix-functions/confstr.texi (confstr): Likewise.
31872         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
31873         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
31874         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
31875         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
31876         * doc/posix-functions/fputws.texi (fputws): Likewise.
31877         * doc/posix-functions/fwide.texi (fwide): Likewise.
31878         * doc/posix-functions/getwc.texi (getwc): Likewise.
31879         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
31880         * doc/posix-functions/putwc.texi (putwc): Likewise.
31881         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31882         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
31883         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
31884         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31885         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
31886         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
31887         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
31888         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
31889         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
31890         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
31891         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
31892
31893 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31894
31895         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
31896         * lib/ioctl.c: Include <sys/ioctl.h>.
31897
31898 2009-01-19  Simon Josefsson  <simon@josefsson.org>
31899
31900         * modules/getdate-tests (Depends-on): Add progname.
31901         * tests/test-getdate.c: Use progname module, to avoid link errors
31902         on non-glibc systems.
31903
31904 2009-01-18  Simon Josefsson  <simon@josefsson.org>
31905
31906         * modules/filenamecat-tests (Depends-on): Add progname.
31907         * modules/fstrcmp-tests (Depends-on): Likewise.
31908
31909         * tests/test-filenamecat.c: Use progname module, to avoid link
31910         errors on non-glibc systems.
31911         * tests/test-fstrcmp.c: Likewise.
31912
31913 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31914
31915         gettimeofday: avoid warning: nested extern declaration of 'localtime'
31916         * lib/gettimeofday.c: Move extern declaration out of function.
31917
31918 2009-01-18  Bruno Haible  <bruno@clisp.org>
31919
31920         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31921         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31922         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
31923
31924 2009-01-18  Bruno Haible  <bruno@clisp.org>
31925
31926         * lib/strftime.c (MEMPCPY): Remove unused macro.
31927         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
31928
31929 2009-01-18  Martin Lambers  <marlam@marlam.de>
31930
31931         New module 'link'.
31932         * lib/unistd.in.h (link): New declaration.
31933         * lib/link.c: New file.
31934         * m4/link.m4: New file.
31935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
31936         HAVE_LINK.
31937         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
31938         * modules/link: New file.
31939         * doc/posix-functions/link.texi: Mention the new module.
31940
31941 2009-01-18  Bruno Haible  <bruno@clisp.org>
31942
31943         * tests/test-avltree_list.c (main): Call set_program_name.
31944         * tests/test-avltree_oset.c (main): Likewise.
31945         * tests/test-obstack-printf.c: Include progname.h.
31946         (main): Call set_program_name.
31947         * tests/test-quotearg.c: Include progname.h.
31948         (main): Call set_program_name.
31949         * tests/test-xmemdup0.c: Include progname.h.
31950         (main): Call set_program_name.
31951
31952 2009-01-18  Bruno Haible  <bruno@clisp.org>
31953
31954         New module 'alphasort'.
31955         * lib/dirent.in.h (alphasort): New declaration.
31956         * lib/alphasort.c: New file, from glibc with modifications.
31957         * m4/alphasort.m4: New file.
31958         * modules/alphasort: New file.
31959         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
31960         HAVE_ALPHASORT.
31961         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
31962         HAVE_ALPHASORT.
31963         * doc/posix-functions/alphasort.texi: Mention the new module and the
31964         portability problems.
31965
31966 2009-01-18  Bruno Haible  <bruno@clisp.org>
31967
31968         New module 'scandir'.
31969         * lib/dirent.in.h (scandir): New declaration.
31970         * lib/scandir.c: New file, from glibc with modifications.
31971         * m4/scandir.m4: New file.
31972         * modules/scandir: New file.
31973         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
31974         HAVE_SCANDIR.
31975         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
31976         HAVE_SCANDIR.
31977         * doc/posix-functions/scandir.texi: Mention the new module and the
31978         portability problems.
31979
31980 2009-01-17  Bruno Haible  <bruno@clisp.org>
31981
31982         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
31983         Update documentation.
31984         (func_remove_suffix): Escape all dots in the suffix. Update
31985         documentation.
31986         (func_filter_filelist): Update documentation.
31987         Reported by Ralf Wildenhues.
31988
31989 2009-01-17  Bruno Haible  <bruno@clisp.org>
31990
31991         * modules/dprintf-posix-tests: New file.
31992         * tests/test-dprintf-posix.sh: New file.
31993         * tests/test-dprintf-posix.c: New file.
31994
31995         New modules 'dprintf', 'dprintf-posix'.
31996         * lib/stdio.in.h (dprintf): New declaration.
31997         * lib/dprintf.c: New file.
31998         * m4/dprintf.m4: New file.
31999         * m4/dprintf-posix.m4: New file.
32000         * modules/dprintf: New file.
32001         * modules/dprintf-posix: New file.
32002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
32003         HAVE_DPRINTF, REPLACE_DPRINTF.
32004         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
32005         HAVE_DPRINTF, REPLACE_DPRINTF.
32006         * doc/posix-functions/dprintf.texi: Mention the new modules.
32007
32008 2009-01-17  Bruno Haible  <bruno@clisp.org>
32009
32010         * modules/vdprintf-posix-tests: New file.
32011         * tests/test-vdprintf-posix.sh: New file.
32012         * tests/test-vdprintf-posix.c: New file.
32013
32014         New modules 'vdprintf', 'vdprintf-posix'.
32015         * lib/stdio.in.h (vdprintf): New declaration.
32016         * lib/vdprintf.c: New file.
32017         * m4/vdprintf.m4: New file.
32018         * m4/vdprintf-posix.m4: New file.
32019         * modules/vdprintf: New file.
32020         * modules/vdprintf-posix: New file.
32021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
32022         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32023         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
32024         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32025         * doc/posix-functions/vdprintf.texi: Mention the new modules.
32026
32027 2009-01-17  Bruno Haible  <bruno@clisp.org>
32028
32029         Fix replacement of fopen on mingw.
32030         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
32031         mingw.
32032
32033 2009-01-17  Bruno Haible  <bruno@clisp.org>
32034
32035         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
32036         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
32037
32038 2009-01-17  Bruno Haible  <bruno@clisp.org>
32039
32040         Avoid test-fflush2.sh failure on mingw.
32041         * tests/test-fflush2.c: Include binary-io.h.
32042         (main): Put standard input into binary mode.
32043         * modules/fflush-tests (Depends-on): Add binary-io.
32044
32045 2009-01-17  Bruno Haible  <bruno@clisp.org>
32046
32047         * lib/wchar.in.h: In another particular situation, include only the
32048         system's <wchar.h> file.
32049         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
32050         Reported by Albert Chin-A-Young <china@thewrittenword.com>
32051         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
32052
32053 2009-01-17  Bruno Haible  <bruno@clisp.org>
32054
32055         Support for stripping executables in --enable-relocatable.
32056         * build-aux/install-reloc: Expect one more argument, or an environment
32057         variable RELOC_STRIP_PROG. If set, strip the destination program and
32058         its wrapper.
32059         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
32060         RELOC_STRIP_PROG.
32061         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
32062         to set RELOCATABLE_STRIP.
32063         * NEWS: Mention the new Makefile requirement.
32064
32065 2009-01-17  Bruno Haible  <bruno@clisp.org>
32066
32067         * build-aux/install-reloc: Remove debugging information left over by
32068         C compiler on MacOS X.
32069
32070 2009-01-17  Bruno Haible  <bruno@clisp.org>
32071
32072         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
32073         * lib/progreloc.c (find_executable): Fix type of pointer passed to
32074         _NSGetExecutablePath.
32075
32076 2009-01-16  Jim Meyering  <meyering@redhat.com>
32077
32078         strerror: avoid warnings about discarding "const"
32079         * lib/strerror.c (rpl_strerror): Instead of returning a const
32080         string from each and every "case", use a variable, and add a single
32081         cast after the switch.
32082
32083 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
32084
32085         * lib/arpa_inet.in.h: Add extern "C" block for C++.
32086
32087 2009-01-16  Bruno Haible  <bruno@clisp.org>
32088
32089         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
32090         array initializer syntax that also works in C++ mode.
32091         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32092
32093 2009-01-16  Jim Meyering  <meyering@redhat.com>
32094
32095         poll: suppress a warning
32096         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
32097         to ignore "...unsigned expression < 0 is always false" warnings.
32098
32099 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
32100
32101         poll: remove declarations of unused variables
32102         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
32103         sockbuf and optlen.
32104
32105 2009-01-15  Bruno Haible  <bruno@clisp.org>
32106
32107         Make fflush-after-ungetc POSIX compliant on BSD systems.
32108         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
32109         (clear_ungetc_buffer): Implement also for other systems.
32110         (rpl_fflush): On glibc systems, invoke
32111         clear_ungetc_buffer_preserving_position. Otherwise, invoke
32112         clear_ungetc_buffer after fetching the stream's position, not before.
32113
32114 2009-01-15  Bruno Haible  <bruno@clisp.org>
32115
32116         Make fflush-after-ungetc POSIX compliant on glibc systems.
32117         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
32118         after ungetc.
32119         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
32120         (rpl_fflush): On glibc systems, simply call the system's fflush
32121         function after clearing the ungetc buffer.
32122         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
32123         Instead, lseek only to the end of file, then use the system's fseeko
32124         for the rest. On glibc systems, reset the EOF indicator bit.
32125
32126 2009-01-15  Jim Meyering  <meyering@redhat.com>
32127
32128         openmp.m4: revert quote-adding change, for portability to older autoconf
32129         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
32130         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
32131         Simon Josefsson noticed the problem when using autoconf-2.61.
32132
32133 2009-01-15  Bruno Haible  <bruno@clisp.org>
32134
32135         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
32136         * tests/test-fflush2.c (ASSERT): Always fail.
32137         (main): Add two tests for fflush() after ungetc(), taking into account
32138         the Austin Group's clarification.
32139         Suggested by Eric Blake.
32140
32141 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
32142
32143         mktime.m4: remove K&R-style function prototypes
32144         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
32145         for the Sun C++ compiler.
32146
32147 2009-01-14  Bruno Haible  <bruno@clisp.org>
32148
32149         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
32150         while including <wchar.h>.
32151         * lib/wchar.in.h: In two particular situations on HP-UX, include only
32152         the system's <wchar.h> file.
32153         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32154
32155 2009-01-14  Bruno Haible  <bruno@clisp.org>
32156
32157         * m4/csharp.m4: Don't mention gettext on the serial number line.
32158         * m4/csharpexec.m4: Likewise.
32159         * m4/eaccess.m4: Likewise.
32160         * m4/javaexec.m4: Likewise.
32161         * m4/sig_atomic_t.m4: Likewise.
32162         * m4/tmpdir.m4: Likewise.
32163         * m4/intldir.m4: Bump gettext version.
32164         * m4/lib-ld.m4: Likewise.
32165
32166 2009-01-14  Bruno Haible  <bruno@clisp.org>
32167
32168         * lib/progname.c (set_program_name): Add more comments.
32169         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32170
32171 2009-01-14  Simon Josefsson  <simon@josefsson.org>
32172
32173         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
32174         were sys/stat.h does not define it.
32175
32176 2009-01-14  Jim Meyering  <meyering@redhat.com>
32177
32178         many *.m4 files: improve m4 quoting
32179         99% of this change was performed by running the following commands:
32180         git ls-files | grep '\.m4$' | xargs perl -pi \
32181           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
32182           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32183           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32184           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
32185         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
32186         The remainder were to add Copyright dates, increment serial numbers,
32187         undo some changes in comments, exclude m4/intl.m4, and add quotes
32188         around the "1" in ",1" where the unusual spacing prohibited the
32189         above regexps from doing the job.  For more details, see
32190         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
32191         * m4/acl.m4: Modified.
32192         * m4/afs.m4: Likewise.
32193         * m4/alloca.m4: Likewise.
32194         * m4/argp.m4: Likewise.
32195         * m4/argz.m4: Likewise.
32196         * m4/atexit.m4: Likewise.
32197         * m4/bison-i18n.m4: Likewise.
32198         * m4/bison.m4: Likewise.
32199         * m4/byteswap.m4: Likewise.
32200         * m4/c-stack.m4: Likewise.
32201         * m4/c-strtod.m4: Likewise.
32202         * m4/calloc.m4: Likewise.
32203         * m4/canonicalize-lgpl.m4: Likewise.
32204         * m4/chown.m4: Likewise.
32205         * m4/clock_time.m4: Likewise.
32206         * m4/codeset.m4: Likewise.
32207         * m4/copy-file.m4: Likewise.
32208         * m4/csharp.m4: Likewise.
32209         * m4/csharpcomp.m4: Likewise.
32210         * m4/csharpexec.m4: Likewise.
32211         * m4/d-ino.m4: Likewise.
32212         * m4/d-type.m4: Likewise.
32213         * m4/dirfd.m4: Likewise.
32214         * m4/double-slash-root.m4: Likewise.
32215         * m4/eaccess.m4: Likewise.
32216         * m4/eealloc.m4: Likewise.
32217         * m4/environ.m4: Likewise.
32218         * m4/errno_h.m4: Likewise.
32219         * m4/euidaccess.m4: Likewise.
32220         * m4/execute.m4: Likewise.
32221         * m4/fatal-signal.m4: Likewise.
32222         * m4/fchdir.m4: Likewise.
32223         * m4/fcntl_h.m4: Likewise.
32224         * m4/fileblocks.m4: Likewise.
32225         * m4/filenamecat.m4: Likewise.
32226         * m4/findprog.m4: Likewise.
32227         * m4/flexmember.m4: Likewise.
32228         * m4/fnmatch.m4: Likewise.
32229         * m4/fopen.m4: Likewise.
32230         * m4/fpending.m4: Likewise.
32231         * m4/fprintf-posix.m4: Likewise.
32232         * m4/free.m4: Likewise.
32233         * m4/frexp.m4: Likewise.
32234         * m4/frexpl.m4: Likewise.
32235         * m4/fsusage.m4: Likewise.
32236         * m4/ftruncate.m4: Likewise.
32237         * m4/gc-camellia.m4: Likewise.
32238         * m4/gc-random.m4: Likewise.
32239         * m4/gc.m4: Likewise.
32240         * m4/getaddrinfo.m4: Likewise.
32241         * m4/getcwd-abort-bug.m4: Likewise.
32242         * m4/getcwd-path-max.m4: Likewise.
32243         * m4/getdate.m4: Likewise.
32244         * m4/getdomainname.m4: Likewise.
32245         * m4/getgroups.m4: Likewise.
32246         * m4/gethostname.m4: Likewise.
32247         * m4/gethrxtime.m4: Likewise.
32248         * m4/getline.m4: Likewise.
32249         * m4/getloadavg.m4: Likewise.
32250         * m4/getndelim2.m4: Likewise.
32251         * m4/getpass.m4: Likewise.
32252         * m4/gettext.m4: Likewise.
32253         * m4/gettime.m4: Likewise.
32254         * m4/gettimeofday.m4: Likewise.
32255         * m4/gnulib-common.m4: Likewise.
32256         * m4/group-member.m4: Likewise.
32257         * m4/host-os.m4: Likewise.
32258         * m4/iconv.m4: Likewise.
32259         * m4/iconv_open.m4: Likewise.
32260         * m4/inet_ntop.m4: Likewise.
32261         * m4/inet_pton.m4: Likewise.
32262         * m4/inline.m4: Likewise.
32263         * m4/intldir.m4: Likewise.
32264         * m4/intlmacosx.m4: Likewise.
32265         * m4/intmax.m4: Likewise.
32266         * m4/intmax_t.m4: Likewise.
32267         * m4/inttypes.m4: Likewise.
32268         * m4/inttypes_h.m4: Likewise.
32269         * m4/inttypes-pri.m4: Likewise.
32270         * m4/isapipe.m4: Likewise.
32271         * m4/isnand.m4: Likewise.
32272         * m4/isnanf.m4: Likewise.
32273         * m4/isnanl.m4: Likewise.
32274         * m4/javacomp.m4: Likewise.
32275         * m4/javaexec.m4: Likewise.
32276         * m4/jm-winsz1.m4: Likewise.
32277         * m4/jm-winsz2.m4: Likewise.
32278         * m4/lchown.m4: Likewise.
32279         * m4/lcmessage.m4: Likewise.
32280         * m4/ldexpl.m4: Likewise.
32281         * m4/lib-ld.m4: Likewise.
32282         * m4/lib-link.m4: Likewise.
32283         * m4/libsigsegv.m4: Likewise.
32284         * m4/link-follow.m4: Likewise.
32285         * m4/localcharset.m4: Likewise.
32286         * m4/locale-fr.m4: Likewise.
32287         * m4/locale-ja.m4: Likewise.
32288         * m4/locale-tr.m4: Likewise.
32289         * m4/locale-zh.m4: Likewise.
32290         * m4/lock.m4: Likewise.
32291         * m4/longlong.m4: Likewise.
32292         * m4/ls-mntd-fs.m4: Likewise.
32293         * m4/lstat.m4: Likewise.
32294         * m4/malloc.m4: Likewise.
32295         * m4/mathl.m4: Likewise.
32296         * m4/mbrtowc.m4: Likewise.
32297         * m4/mbstate_t.m4: Likewise.
32298         * m4/mbswidth.m4: Likewise.
32299         * m4/memchr.m4: Likewise.
32300         * m4/memcmp.m4: Likewise.
32301         * m4/memcpy.m4: Likewise.
32302         * m4/memmem.m4: Likewise.
32303         * m4/memmove.m4: Likewise.
32304         * m4/mempcpy.m4: Likewise.
32305         * m4/memrchr.m4: Likewise.
32306         * m4/memset.m4: Likewise.
32307         * m4/minmax.m4: Likewise.
32308         * m4/mkdir-slash.m4: Likewise.
32309         * m4/mkdtemp.m4: Likewise.
32310         * m4/mktime.m4: Likewise.
32311         * m4/mmap-anon.m4: Likewise.
32312         * m4/mountlist.m4: Likewise.
32313         * m4/nanosleep.m4: Likewise.
32314         * m4/nls.m4: Likewise.
32315         * m4/nocrash.m4: Likewise.
32316         * m4/open.m4: Likewise.
32317         * m4/openat.m4: Likewise.
32318         * m4/openmp.m4: Likewise.
32319         * m4/pathmax.m4: Likewise.
32320         * m4/perl.m4: Likewise.
32321         * m4/physmem.m4: Likewise.
32322         * m4/pipe.m4: Likewise.
32323         * m4/po.m4: Likewise.
32324         * m4/poll.m4: Likewise.
32325         * m4/posixtm.m4: Likewise.
32326         * m4/posixver.m4: Likewise.
32327         * m4/printf-frexp.m4: Likewise.
32328         * m4/printf-frexpl.m4: Likewise.
32329         * m4/printf-posix.m4: Likewise.
32330         * m4/printf-posix-rpl.m4: Likewise.
32331         * m4/printf.m4: Likewise.
32332         * m4/progtest.m4: Likewise.
32333         * m4/putenv.m4: Likewise.
32334         * m4/readline.m4: Likewise.
32335         * m4/readlink.m4: Likewise.
32336         * m4/readutmp.m4: Likewise.
32337         * m4/realloc.m4: Likewise.
32338         * m4/regex.m4: Likewise.
32339         * m4/relocatable.m4: Likewise.
32340         * m4/relocatable-lib.m4: Likewise.
32341         * m4/rename-dest-slash.m4: Likewise.
32342         * m4/rename.m4: Likewise.
32343         * m4/rmdir-errno.m4: Likewise.
32344         * m4/rmdir.m4: Likewise.
32345         * m4/roundf.m4: Likewise.
32346         * m4/roundl.m4: Likewise.
32347         * m4/rpmatch.m4: Likewise.
32348         * m4/save-cwd.m4: Likewise.
32349         * m4/selinux-selinux-h.m4: Likewise.
32350         * m4/setenv.m4: Likewise.
32351         * m4/settime.m4: Likewise.
32352         * m4/sig2str.m4: Likewise.
32353         * m4/sig_atomic_t.m4: Likewise.
32354         * m4/signalblocking.m4: Likewise.
32355         * m4/signbit.m4: Likewise.
32356         * m4/sigpipe.m4: Likewise.
32357         * m4/sockets.m4: Likewise.
32358         * m4/sockpfaf.m4: Likewise.
32359         * m4/st_dm_mode.m4: Likewise.
32360         * m4/stat-time.m4: Likewise.
32361         * m4/stdbool.m4: Likewise.
32362         * m4/stdint.m4: Likewise.
32363         * m4/stdint_h.m4: Likewise.
32364         * m4/stpcpy.m4: Likewise.
32365         * m4/stpncpy.m4: Likewise.
32366         * m4/strcase.m4: Likewise.
32367         * m4/strchrnul.m4: Likewise.
32368         * m4/strcspn.m4: Likewise.
32369         * m4/strdup.m4: Likewise.
32370         * m4/strftime.m4: Likewise.
32371         * m4/strndup.m4: Likewise.
32372         * m4/strnlen.m4: Likewise.
32373         * m4/strpbrk.m4: Likewise.
32374         * m4/strptime.m4: Likewise.
32375         * m4/strsep.m4: Likewise.
32376         * m4/strtod.m4: Likewise.
32377         * m4/strtoimax.m4: Likewise.
32378         * m4/strtok_r.m4: Likewise.
32379         * m4/strtol.m4: Likewise.
32380         * m4/strtoll.m4: Likewise.
32381         * m4/strtoul.m4: Likewise.
32382         * m4/strtoull.m4: Likewise.
32383         * m4/strtoumax.m4: Likewise.
32384         * m4/strverscmp.m4: Likewise.
32385         * m4/threadlib.m4: Likewise.
32386         * m4/timegm.m4: Likewise.
32387         * m4/tm_gmtoff.m4: Likewise.
32388         * m4/tmpdir.m4: Likewise.
32389         * m4/tmpfile.m4: Likewise.
32390         * m4/tzset.m4: Likewise.
32391         * m4/uintmax_t.m4: Likewise.
32392         * m4/unlinkdir.m4: Likewise.
32393         * m4/unlocked-io.m4: Likewise.
32394         * m4/uptime.m4: Likewise.
32395         * m4/userspec.m4: Likewise.
32396         * m4/utimbuf.m4: Likewise.
32397         * m4/utime.m4: Likewise.
32398         * m4/utimes-null.m4: Likewise.
32399         * m4/utimes.m4: Likewise.
32400         * m4/vararrays.m4: Likewise.
32401         * m4/vasnprintf.m4: Likewise.
32402         * m4/vfprintf-posix.m4: Likewise.
32403         * m4/vprintf-posix.m4: Likewise.
32404         * m4/wait-process.m4: Likewise.
32405         * m4/wchar_t.m4: Likewise.
32406         * m4/wint_t.m4: Likewise.
32407         * m4/write-any-file.m4: Likewise.
32408         * m4/yield.m4: Likewise.
32409
32410 2009-01-13  Bruno Haible  <bruno@clisp.org>
32411
32412         Avoid test-copy-file.sh failures when ACL support insufficient.
32413         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
32414         TESTS_ENVIRONMENT.
32415         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
32416         Reported by Jim Meyering.
32417
32418 2009-01-13  Bruno Haible  <bruno@clisp.org>
32419
32420         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
32421         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
32422         * modules/unistdio/u8-printf-parse (Files): Likewise.
32423         * modules/unistdio/u32-printf-parse (Files): Likewise.
32424         * modules/unistdio/ulc-printf-parse (Files): Likewise.
32425
32426 2009-01-13  Simon Josefsson  <simon@josefsson.org>
32427
32428         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
32429         and m4/inttypes_h.m4 too.
32430
32431 2009-01-12  Eric Blake  <ebb9@byu.net>
32432
32433         tests: IRIX 6.2 cc can't compile -0.0 into .data
32434         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
32435         rather than at compile-time.
32436         * tests/test-floorl.c (minus_zero): Likewise.
32437         * tests/test-frexpl.c (minus_zero): Likewise.
32438         * tests/test-isnan.c (minus_zerol): Likewise.
32439         * tests/test-isnanl.h (minus_zero): Likewise.
32440         * tests/test-ldexpl.c (minus_zero): Likewise.
32441         * tests/test-roundl.c (minus_zero): Likewise.
32442         * tests/test-signbit.c (minus_zerol): Likewise.
32443         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32444         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32445         * tests/test-truncl.c (minus_zero): Likewise.
32446         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32447         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32448         Reported by Tom G. Christensen and Nelson H. F. Beebe.
32449
32450 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32451
32452         regex: fix glibc bug 9697
32453         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
32454         handling.
32455
32456 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32457
32458         regex: fix glibc bug 697
32459         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
32460         being NULL also if there are no backreferences.
32461
32462 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32463
32464         regex: merge glibc changes
32465         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
32466         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
32467         re_string_skip_chars, re_string_reconstruct): Likewise.
32468         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
32469
32470 2009-01-07  Jim Meyering  <meyering@redhat.com>
32471
32472         poll: filter through cppi
32473         * lib/poll.c: Indent cpp directives to reflect nesting.
32474
32475 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
32476
32477         poll: don't return uninitialized
32478         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
32479
32480 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
32481
32482         avoid compile failure on AIX 6.1
32483         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
32484         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
32485
32486 2009-01-04  Jim Meyering  <meyering@redhat.com>
32487
32488         remove duplicate inclusion of <stdio.h>
32489         * tests/test-fprintf-posix.c: Likewise.
32490         * tests/test-printf-posix.c: Likewise.
32491         * tests/test-snprintf-posix.c: Likewise.
32492         * tests/test-sprintf-posix.c: Likewise.
32493         * tests/test-vasprintf-posix.c: Likewise.
32494         * tests/test-vfprintf-posix.c: Likewise.
32495         * tests/test-vprintf-posix.c: Likewise.
32496         * tests/test-vsnprintf-posix.c: Likewise.
32497         * tests/test-vsprintf-posix.c: Likewise.
32498
32499 2009-01-03  Jim Meyering  <meyering@redhat.com>
32500
32501         gnulib-tool: fix sed-based filtering
32502         * gnulib-tool (func_filter_filelist): Remove extra backslash
32503         in sed_fff_filter definition.
32504
32505 2009-01-02  Jim Meyering  <meyering@redhat.com>
32506
32507         strftime: avoid compilation failure on Solaris 2.6
32508         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
32509         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
32510         Don't #define mbrlen or mbsinit, since now they're guaranteed to
32511         be available.  Reported by Tom G. Christensen.  Details in
32512         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
32513
32514 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32515             Bruno Haible  <bruno@clisp.org>
32516
32517         Speed up gnulib-tool by doing more string processing through shell
32518         built-ins.
32519         * gnulib-tool (fast_func_append): New variable.
32520         (func_remove_prefix, func_remove_suffix): New functions.
32521         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
32522         (func_filter_filelist): New function.
32523         (func_get_dependencies): Use func_remove_suffix instead of sed.
32524         (func_get_automake_snippet): Use func_filter_filelist instead of a
32525         subshell and sed invocation.
32526
32527 2009-01-01  Bruno Haible  <bruno@clisp.org>
32528
32529         Fix a security bug.
32530         * gnulib-tool (func_import, import, update): Don't allow the characters
32531         '"', '$', '`', '\' in macro arguments that become part of commands that
32532         are evaluated.
32533
32534 2009-01-01  Bruno Haible  <bruno@clisp.org>
32535
32536         * gnulib-tool (func_reset_sigpipe): Add more comments.
32537
32538 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32539
32540         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
32541         func_emit_tests_Makefile_am, func_import): Abort loops early if we
32542         already know the answer.
32543
32544 2009-01-01  Jim Meyering  <meyering@redhat.com>
32545
32546         * lib/version-etc.c (version_etc_va): Update copyright year.
32547
32548 2008-12-30  Bruno Haible  <bruno@clisp.org>
32549
32550         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
32551         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
32552         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
32553
32554 2008-12-29  Eric Blake  <ebb9@byu.net>
32555
32556         multiarch: avoid autoconf AC_REQUIRE bug
32557         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
32558         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
32559         2.63 and older.
32560         Reported by Bruno Haible, and analyzed in
32561         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
32562
32563 2008-12-29  Bruno Haible  <bruno@clisp.org>
32564
32565         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
32566         files in subdirectories correctly.
32567         Reported by Ralf Wildenhues.
32568
32569 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32570
32571         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
32572         rather than 'join FILE -', for Solaris join.
32573
32574 2008-12-29  Bruno Haible  <bruno@clisp.org>
32575
32576         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
32577         quoting.
32578         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32579         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
32580         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
32581         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
32582         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
32583         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
32584         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
32585         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
32586         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32587         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
32588         * m4/nls.m4 (AM_NLS): Likewise.
32589         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
32590         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
32591         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
32592         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32593         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32594         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32595         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
32596         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32597         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32598         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32599         * m4/xsize.m4 (gl_XSIZE): Likewise.
32600         Suggested by Jim Meyering.
32601
32602 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32603
32604         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
32605         * lib/parse-duration.c: use a switch instead of cascading if's.
32606
32607 2008-12-29  Eric Blake  <ebb9@byu.net>
32608
32609         wchar.h: supply WEOF on Irix 5.3
32610         * lib/wchar.in.h (wint_t): Also supply WEOF.
32611         * lib/wctype.in.h (wint_t): Likewise.
32612         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
32613         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
32614         Reported by Tom G. Christensen.
32615
32616 2008-12-26  Bruno Haible  <bruno@clisp.org>
32617
32618         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
32619         i486, i586, i686.
32620
32621 2008-12-26  Bruno Haible  <bruno@clisp.org>
32622
32623         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
32624
32625 2008-12-26  Bruno Haible  <bruno@clisp.org>
32626
32627         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
32628         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
32629         not __STDC_CONSTANT_MACROS.
32630         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32631
32632 2008-12-25  Bruno Haible  <bruno@clisp.org>
32633
32634         Add support for universal builds to vasnprintf.
32635         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
32636         universal builds, guess no.
32637         * modules/vasnprintf-posix (Depends-on): Add multiarch.
32638         * modules/vasprintf-posix (Depends-on): Likewise.
32639         * modules/fprintf-posix (Depends-on): Likewise.
32640         * modules/vfprintf-posix (Depends-on): Likewise.
32641         * modules/snprintf-posix (Depends-on): Likewise.
32642         * modules/vsnprintf-posix (Depends-on): Likewise.
32643         * modules/sprintf-posix (Depends-on): Likewise.
32644         * modules/vsprintf-posix (Depends-on): Likewise.
32645         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32646         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32647         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32648         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32649         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32650         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32651         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32652
32653         Add support for universal builds to <inttypes.h>.
32654         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
32655         _SCNu64_PREFIX): In Apple
32656         universal builds, define directly, using _LP64.
32657         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
32658         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
32659         * modules/inttypes (Depends-on): Add multiarch.
32660         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32661
32662         Add support for universal builds to <stdint.h>.
32663         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
32664         universal builds, define directly, using _LP64.
32665         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
32666         Apple universal builds, don't test for the size and suffix of ptrdiff_t
32667         and size_t.
32668         * modules/stdint (Depends-on): Add multiarch.
32669         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32670
32671         New module 'multiarch'.
32672         * modules/multiarch: New file.
32673         * m4/multiarch.m4: New file.
32674
32675 2008-12-25  Bruno Haible  <bruno@clisp.org>
32676
32677         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
32678
32679 2008-12-25  Bruno Haible  <bruno@clisp.org>
32680
32681         * modules/btowc (License): Relicense under LGPLv2+.
32682         * modules/mbsinit (License): Likewise.
32683         * modules/mbrtowc (License): Likewise.
32684         * modules/wcrtomb (License): Likewise.
32685         * modules/streq (License): Likewise.
32686         Reported by David Lutterkort <lutter@redhat.com>.
32687
32688 2008-12-23  Bruno Haible  <bruno@clisp.org>
32689
32690         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
32691
32692 2008-12-23  Bruno Haible  <bruno@clisp.org>
32693
32694         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
32695         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
32696         GETADDRINFO_LIB, not in LIBS.
32697         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
32698         * modules/canon-host (Link): Likewise.
32699         * NEWS: Mention the change.
32700         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
32701         GETADDRINFO_LIB.
32702
32703 2008-12-22  Bruno Haible  <bruno@clisp.org>
32704
32705         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
32706         * doc/posix-functions/iswalpha_l.texi: Likewise.
32707         * doc/posix-functions/iswblank_l.texi: Likewise.
32708         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32709         * doc/posix-functions/iswctype_l.texi: Likewise.
32710         * doc/posix-functions/iswdigit_l.texi: Likewise.
32711         * doc/posix-functions/iswgraph_l.texi: Likewise.
32712         * doc/posix-functions/iswlower_l.texi: Likewise.
32713         * doc/posix-functions/iswprint_l.texi: Likewise.
32714         * doc/posix-functions/iswpunct_l.texi: Likewise.
32715         * doc/posix-functions/iswspace_l.texi: Likewise.
32716         * doc/posix-functions/iswupper_l.texi: Likewise.
32717         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32718         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
32719         * doc/posix-functions/open_wmemstream.texi: Likewise.
32720         * doc/posix-functions/swscanf.texi: Likewise.
32721         * doc/posix-functions/towctrans_l.texi: Likewise.
32722         * doc/posix-functions/towlower.texi: Likewise.
32723         * doc/posix-functions/towlower_l.texi: Likewise.
32724         * doc/posix-functions/towupper.texi: Likewise.
32725         * doc/posix-functions/towupper_l.texi: Likewise.
32726         * doc/posix-functions/vfwprintf.texi: Likewise.
32727         * doc/posix-functions/vfwscanf.texi: Likewise.
32728         * doc/posix-functions/vswscanf.texi: Likewise.
32729         * doc/posix-functions/vwprintf.texi: Likewise.
32730         * doc/posix-functions/vwscanf.texi: Likewise.
32731         * doc/posix-functions/wcpcpy.texi: Likewise.
32732         * doc/posix-functions/wcpncpy.texi: Likewise.
32733         * doc/posix-functions/wcscasecmp.texi: Likewise.
32734         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
32735         * doc/posix-functions/wcscoll_l.texi: Likewise.
32736         * doc/posix-functions/wcsdup.texi: Likewise.
32737         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32738         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
32739         * doc/posix-functions/wcsnlen.texi: Likewise.
32740         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32741         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32742         * doc/posix-functions/wctrans_l.texi: Likewise.
32743         * doc/posix-functions/wctype_l.texi: Likewise.
32744         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
32745         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
32746         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
32747         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
32748         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
32749         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
32750         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
32751         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
32752         * doc/glibc-functions/wcschrnul.texi: Likewise.
32753         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32754         * doc/glibc-functions/wcstod_l.texi: Likewise.
32755         * doc/glibc-functions/wcstof_l.texi: Likewise.
32756         * doc/glibc-functions/wcstol_l.texi: Likewise.
32757         * doc/glibc-functions/wcstold_l.texi: Likewise.
32758         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32759         * doc/glibc-functions/wcstoq.texi: Likewise.
32760         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32761         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32762         * doc/glibc-functions/wcstouq.texi: Likewise.
32763         * doc/glibc-functions/wmempcpy.texi: Likewise.
32764
32765 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
32766             Eric Blake  <ebb9@byu.net>
32767             Paolo Bonzini  <bonzini@gnu.org>
32768             Bruno Haible  <bruno@clisp.org>
32769
32770         Make c-stack work on Haiku.
32771         * lib/c-stack.c (SA_ONSTACK): Define fallback.
32772         (c_stack_action): Use SA_ONSTACK flag.
32773
32774 2008-12-22  Bruno Haible  <bruno@clisp.org>
32775
32776         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
32777
32778 2008-12-22  Bruno Haible  <bruno@clisp.org>
32779
32780         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
32781         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
32782         being overridden.
32783         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
32784         New macros.
32785         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
32786         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
32787         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
32788         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
32789
32790 2008-12-22  Bruno Haible  <bruno@clisp.org>
32791
32792         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
32793         from test code.
32794
32795 2008-12-22  Eric Blake  <ebb9@byu.net>
32796
32797         Avoid gcc warnings on cygwin.
32798         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
32799         Avoid unused variable.
32800         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
32801         Likewise.
32802
32803 2008-12-22  Bruno Haible  <bruno@clisp.org>
32804
32805         Remove HAVE_MBRTOWC conditionals.
32806         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
32807         (mbscasecmp): Assume mbrtowc function.
32808         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
32809         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
32810         * lib/mbschr.c: Include mbuiter.h unconditionally.
32811         (mbschr): Assume mbrtowc function.
32812         * lib/mbscspn.c: Include mbuiter.h unconditionally.
32813         (mbscspn): Assume mbrtowc function.
32814         * lib/mbslen.c: Include mbuiter.h unconditionally.
32815         (mbslen): Assume mbrtowc function.
32816         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
32817         (mbsncasecmp): Assume mbrtowc function.
32818         * lib/mbsnlen.c: Include mbiter.h unconditionally.
32819         (mbsnlen): Assume mbrtowc function.
32820         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
32821         (mbspbrk): Assume mbrtowc function.
32822         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
32823         (mbspcasecmp): Assume mbrtowc function.
32824         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
32825         (mbsrchr): Assume mbrtowc function.
32826         * lib/mbssep.c: Include mbuiter.h unconditionally.
32827         (mbssep): Assume mbrtowc function.
32828         * lib/mbsspn.c: Include mbuiter.h unconditionally.
32829         (mbsspn): Assume mbrtowc function.
32830         * lib/mbsstr.c: Include mbuiter.h unconditionally.
32831         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
32832         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
32833         (mbstok_r): Assume mbrtowc function.
32834         * lib/propername.c: Include mbuiter.h unconditionally.
32835         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
32836         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
32837         (trim2): Assume mbrtowc function.
32838         * lib/mbswidth.c (mbsinit): Remove fallback definition.
32839         (mbsnwidth): Assume mbrtowc function.
32840         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
32841         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
32842         fallback definitions.
32843         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
32844
32845 2008-12-22  Bruno Haible  <bruno@clisp.org>
32846
32847         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
32848
32849 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
32850
32851         * modules/regex: Request emulations for the mb*/wc* functions we need.
32852         * m4/regex.m4: Don't look for those functions here.
32853         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
32854
32855 2008-12-22  Bruno Haible  <bruno@clisp.org>
32856
32857         * modules/fnmatch (Depends-on): Remove duplicated dependency.
32858
32859 2008-12-21  Bruno Haible  <bruno@clisp.org>
32860
32861         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
32862         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
32863         (Include): Remove conditionalization.
32864         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
32865         (Include): Remove conditionalization.
32866         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
32867         (Include): Remove conditionalization.
32868         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
32869         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32870         * NEWS: Mention the change.
32871         Reported by Alan Hourihane <alanh@fairlite.co.uk>
32872         via Sergey Poznyakoff <gray@gnu.org.ua>.
32873
32874 2008-12-21  Bruno Haible  <bruno@clisp.org>
32875
32876         * MODULES.html.sh (Extended multibyte and wide character utilities
32877         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
32878         wcrtomb, wcsrtombs.
32879         (Support for systems lacking POSIX:2008): Add accept, bind, close,
32880         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
32881         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
32882         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
32883
32884 2008-12-21  Bruno Haible  <bruno@clisp.org>
32885
32886         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
32887
32888 2008-12-21  Bruno Haible  <bruno@clisp.org>
32889
32890         * modules/wcsnrtombs-tests: New file.
32891         * tests/test-wcsnrtombs1.sh: New file.
32892         * tests/test-wcsnrtombs2.sh: New file.
32893         * tests/test-wcsnrtombs3.sh: New file.
32894         * tests/test-wcsnrtombs4.sh: New file.
32895         * tests/test-wcsnrtombs.c: New file.
32896
32897         New module 'wcsnrtombs'.
32898         * lib/wchar.in.h (wcsnrtombs): New declaration.
32899         * lib/wcsnrtombs.c: New file.
32900         * lib/wcsrtombs-state.c: New file.
32901         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
32902         (internal_state): Remove variable.
32903         * m4/wcsnrtombs.m4: New file.
32904         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
32905         compilation units.
32906         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
32907         HAVE_WCSNRTOMBS.
32908         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
32909         HAVE_WCSNRTOMBS.
32910         * modules/wcsnrtombs: New file.
32911         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
32912         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
32913
32914 2008-12-21  Bruno Haible  <bruno@clisp.org>
32915
32916         * modules/wcsrtombs-tests: New file.
32917         * tests/test-wcsrtombs1.sh: New file.
32918         * tests/test-wcsrtombs2.sh: New file.
32919         * tests/test-wcsrtombs3.sh: New file.
32920         * tests/test-wcsrtombs4.sh: New file.
32921         * tests/test-wcsrtombs.c: New file.
32922
32923         New module 'wcsrtombs'.
32924         * lib/wchar.in.h (wcsrtombs): New declaration.
32925         * lib/wcsrtombs.c: New file.
32926         * m4/wcsrtombs.m4: New file.
32927         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
32928         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32929         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
32930         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32931         * modules/wcsrtombs: New file.
32932         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
32933         bugs.
32934
32935 2008-12-21  Bruno Haible  <bruno@clisp.org>
32936
32937         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
32938         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
32939         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
32940         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
32941         if not correct.
32942         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
32943         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
32944         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32945         m4/locale-zh.m4, m4/codeset.m4.
32946         * doc/posix-functions/wcrtomb.texi: Document the bug.
32947
32948 2008-12-21  Bruno Haible  <bruno@clisp.org>
32949
32950         Work around a btowc() bug on IRIX 6.5.
32951         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
32952         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
32953         REPLACE_WTOBC if not.
32954         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
32955         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
32956         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
32957
32958 2008-12-21  Bruno Haible  <bruno@clisp.org>
32959
32960         * modules/wcrtomb-tests: New file.
32961         * tests/test-wcrtomb.sh: New file.
32962         * tests/test-wcrtomb.c: New file.
32963
32964         New module 'wcrtomb'.
32965         * lib/wchar.in.h (wcrtomb): New declaration.
32966         * lib/wcrtomb.c: New file.
32967         * m4/wcrtomb.m4: New file.
32968         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
32969         HAVE_WCRTOMB.
32970         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
32971         HAVE_WCRTOMB.
32972         * modules/wcrtomb: New file.
32973         * doc/posix-functions/wcrtomb.texi: Mention the new module.
32974
32975 2008-12-21  Bruno Haible  <bruno@clisp.org>
32976
32977         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
32978         * modules/mbsrtowcs (Files): Likewise.
32979         * modules/wctob (Files): Likewise.
32980         * modules/c-strcase-tests (Files): Likewise.
32981         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32982         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32983         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32984         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32985         * modules/vasnprintf-posix-tests (Files): Likewise.
32986
32987 2008-12-21  William Pursell  <bill.pursell@gmail.com>
32988
32989         gitlog-to-changelog: pass all command-line arguments to git-log
32990         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
32991         it is sometimes convenient to filter the commits in various ways.
32992         gitlog-to-changelog only allows --since to specify a start date,
32993         but git-log itself supports many other filtering mechanisms.
32994         At the moment, I want to filter by branch name.  Rather than
32995         adding a --branch option to gitlog-to-changelog, it seems more
32996         flexible to simply pass all options directly to git-log and let
32997         git do the work.  Notice that this effectively makes --since a
32998         redundant option for gitlog-to-changelog, but removing it would
32999         require current usage to change since calls would then require
33000         an additional '--'.
33001
33002 2008-12-21  Bruno Haible  <bruno@clisp.org>
33003
33004         * modules/mbsnrtowcs-tests: New file.
33005         * tests/test-mbsnrtowcs1.sh: New file.
33006         * tests/test-mbsnrtowcs2.sh: New file.
33007         * tests/test-mbsnrtowcs3.sh: New file.
33008         * tests/test-mbsnrtowcs4.sh: New file.
33009         * tests/test-mbsnrtowcs.c: New file.
33010
33011         New module 'mbsnrtowcs'.
33012         * lib/wchar.in.h (mbsnrtowcs): New declaration.
33013         * lib/mbsnrtowcs.c: New file.
33014         * lib/mbsrtowcs-state.c: New file.
33015         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
33016         (internal_state): Remove variable.
33017         * m4/mbsnrtowcs.m4: New file.
33018         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
33019         compilation units.
33020         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
33021         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33022         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
33023         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33024         * modules/mbsnrtowcs: New file.
33025         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
33026         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
33027         portability problem.
33028
33029 2008-12-21  Bruno Haible  <bruno@clisp.org>
33030
33031         Work around mbsrtowcs bug.
33032         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
33033         (gl_FUNC_MBSRTOWCS): Invoke it.
33034         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33035         m4/locale-zh.m4.
33036         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
33037
33038 2008-12-21  Bruno Haible  <bruno@clisp.org>
33039
33040         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
33041
33042 2008-12-21  Bruno Haible  <bruno@clisp.org>
33043
33044         Update doc for AIX.
33045         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
33046         16-bit wchar_t type.
33047         * doc/posix-functions/btowc.texi: Likewise.
33048         * doc/posix-functions/fgetwc.texi: Likewise.
33049         * doc/posix-functions/fgetws.texi: Likewise.
33050         * doc/posix-functions/fputwc.texi: Likewise.
33051         * doc/posix-functions/fputws.texi: Likewise.
33052         * doc/posix-functions/fwide.texi: Likewise.
33053         * doc/posix-functions/fwprintf.texi: Likewise.
33054         * doc/posix-functions/fwscanf.texi: Likewise.
33055         * doc/posix-functions/getwchar.texi: Likewise.
33056         * doc/posix-functions/getwc.texi: Likewise.
33057         * doc/posix-functions/iswalnum.texi: Likewise.
33058         * doc/posix-functions/iswalpha.texi: Likewise.
33059         * doc/posix-functions/iswblank.texi: Likewise.
33060         * doc/posix-functions/iswcntrl.texi: Likewise.
33061         * doc/posix-functions/iswctype.texi: Likewise.
33062         * doc/posix-functions/iswdigit.texi: Likewise.
33063         * doc/posix-functions/iswgraph.texi: Likewise.
33064         * doc/posix-functions/iswlower.texi: Likewise.
33065         * doc/posix-functions/iswprint.texi: Likewise.
33066         * doc/posix-functions/iswpunct.texi: Likewise.
33067         * doc/posix-functions/iswspace.texi: Likewise.
33068         * doc/posix-functions/iswupper.texi: Likewise.
33069         * doc/posix-functions/iswxdigit.texi: Likewise.
33070         * doc/posix-functions/mbrtowc.texi: Likewise.
33071         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33072         * doc/posix-functions/mbstowcs.texi: Likewise.
33073         * doc/posix-functions/mbtowc.texi: Likewise.
33074         * doc/posix-functions/putwchar.texi: Likewise.
33075         * doc/posix-functions/putwc.texi: Likewise.
33076         * doc/posix-functions/swprintf.texi: Likewise.
33077         * doc/posix-functions/tolower.texi: Likewise.
33078         * doc/posix-functions/toupper.texi: Likewise.
33079         * doc/posix-functions/towctrans.texi: Likewise.
33080         * doc/posix-functions/ungetwc.texi: Likewise.
33081         * doc/posix-functions/vswprintf.texi: Likewise.
33082         * doc/posix-functions/wcrtomb.texi: Likewise.
33083         * doc/posix-functions/wcscat.texi: Likewise.
33084         * doc/posix-functions/wcschr.texi: Likewise.
33085         * doc/posix-functions/wcscmp.texi: Likewise.
33086         * doc/posix-functions/wcscoll.texi: Likewise.
33087         * doc/posix-functions/wcscpy.texi: Likewise.
33088         * doc/posix-functions/wcscspn.texi: Likewise.
33089         * doc/posix-functions/wcsftime.texi: Likewise.
33090         * doc/posix-functions/wcslen.texi: Likewise.
33091         * doc/posix-functions/wcsncat.texi: Likewise.
33092         * doc/posix-functions/wcsncmp.texi: Likewise.
33093         * doc/posix-functions/wcsncpy.texi: Likewise.
33094         * doc/posix-functions/wcspbrk.texi: Likewise.
33095         * doc/posix-functions/wcsrchr.texi: Likewise.
33096         * doc/posix-functions/wcsrtombs.texi: Likewise.
33097         * doc/posix-functions/wcsspn.texi: Likewise.
33098         * doc/posix-functions/wcsstr.texi: Likewise.
33099         * doc/posix-functions/wcstod.texi: Likewise.
33100         * doc/posix-functions/wcstof.texi: Likewise.
33101         * doc/posix-functions/wcstoimax.texi: Likewise.
33102         * doc/posix-functions/wcstok.texi: Likewise.
33103         * doc/posix-functions/wcstold.texi: Likewise.
33104         * doc/posix-functions/wcstoll.texi: Likewise.
33105         * doc/posix-functions/wcstol.texi: Likewise.
33106         * doc/posix-functions/wcstombs.texi: Likewise.
33107         * doc/posix-functions/wcstoull.texi: Likewise.
33108         * doc/posix-functions/wcstoul.texi: Likewise.
33109         * doc/posix-functions/wcstoumax.texi: Likewise.
33110         * doc/posix-functions/wcswidth.texi: Likewise.
33111         * doc/posix-functions/wcsxfrm.texi: Likewise.
33112         * doc/posix-functions/wctob.texi: Likewise.
33113         * doc/posix-functions/wctomb.texi: Likewise.
33114         * doc/posix-functions/wctrans.texi: Likewise.
33115         * doc/posix-functions/wctype.texi: Likewise.
33116         * doc/posix-functions/wcwidth.texi: Likewise.
33117         * doc/posix-functions/wmemchr.texi: Likewise.
33118         * doc/posix-functions/wmemcmp.texi: Likewise.
33119         * doc/posix-functions/wmemcpy.texi: Likewise.
33120         * doc/posix-functions/wmemmove.texi: Likewise.
33121         * doc/posix-functions/wmemset.texi: Likewise.
33122         * doc/posix-functions/wprintf.texi: Likewise.
33123         * doc/posix-functions/wscanf.texi: Likewise.
33124
33125 2008-12-21  Bruno Haible  <bruno@clisp.org>
33126
33127         Update doc for HP-UX 11.11.
33128         * doc/posix-functions/btowc.texi: Clarify that the function is missing
33129         in HP-UX version 11.00, not in all versions of HP-UX 11.
33130         * doc/posix-functions/fwide.texi: Likewise.
33131         * doc/posix-functions/fwprintf.texi: Likewise.
33132         * doc/posix-functions/fwscanf.texi: Likewise.
33133         * doc/posix-functions/inet_ntop.texi: Likewise.
33134         * doc/posix-functions/inet_pton.texi: Likewise.
33135         * doc/posix-functions/mbrlen.texi: Likewise.
33136         * doc/posix-functions/mbrtowc.texi: Likewise.
33137         * doc/posix-functions/mbsinit.texi: Likewise.
33138         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33139         * doc/posix-functions/swprintf.texi: Likewise.
33140         * doc/posix-functions/swscanf.texi: Likewise.
33141         * doc/posix-functions/towctrans.texi: Likewise.
33142         * doc/posix-functions/vfwprintf.texi: Likewise.
33143         * doc/posix-functions/vswprintf.texi: Likewise.
33144         * doc/posix-functions/vwprintf.texi: Likewise.
33145         * doc/posix-functions/wcrtomb.texi: Likewise.
33146         * doc/posix-functions/wcsrtombs.texi: Likewise.
33147         * doc/posix-functions/wcsstr.texi: Likewise.
33148         * doc/posix-functions/wctob.texi: Likewise.
33149         * doc/posix-functions/wctrans.texi: Likewise.
33150         * doc/posix-functions/wmemchr.texi: Likewise.
33151         * doc/posix-functions/wmemcmp.texi: Likewise.
33152         * doc/posix-functions/wmemcpy.texi: Likewise.
33153         * doc/posix-functions/wmemmove.texi: Likewise.
33154         * doc/posix-functions/wmemset.texi: Likewise.
33155         * doc/posix-functions/wprintf.texi: Likewise.
33156         * doc/posix-functions/wscanf.texi: Likewise.
33157
33158 2008-12-21  Bruno Haible  <bruno@clisp.org>
33159
33160         Work around a portability problem.
33161         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
33162         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
33163
33164 2008-12-20  Bruno Haible  <bruno@clisp.org>
33165
33166         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
33167         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
33168         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
33169         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
33170         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
33171
33172         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
33173         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
33174         set.
33175         (GNULIB_defined_mbstate_t): New macro.
33176         (mbsinit): Redefine if REPLACE_MBSINIT is set.
33177         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
33178         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
33179         reuses the system's mbrtowc function but works around the bugs.
33180         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
33181         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
33182         macros.
33183         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
33184         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
33185         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
33186         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
33187         REPLACE_MBSINIT if mbsinit needs to be overridden.
33188         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
33189         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33190         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
33191         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33192         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33193         m4/locale-zh.m4.
33194         (Depends): Add mbsinit.
33195         * modules/mbsinit (Depends): Add mbrtowc.
33196         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
33197
33198 2008-12-20  Bruno Haible  <bruno@clisp.org>
33199
33200         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
33201         so that there are no conversion errors on AIX.
33202         * tests/test-mbsrtowcs.c (main): LIkewise.
33203
33204 2008-12-20  Bruno Haible  <bruno@clisp.org>
33205
33206         Work around wctob bug on Solaris <= 9.
33207         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
33208         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
33209         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
33210         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
33211         * modules/wctob (Files): Add m4/locale-fr.m4.
33212         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
33213
33214 2008-12-20  Bruno Haible  <bruno@clisp.org>
33215
33216         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
33217         /dev/null.
33218         * tests/test-select-in.sh: Likewise.
33219         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33220
33221 2008-12-20  Bruno Haible  <bruno@clisp.org>
33222
33223         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
33224         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
33225         Cygwin 1.5.x.
33226
33227 2008-12-20  Bruno Haible  <bruno@clisp.org>
33228
33229         Ensure mbstate_t is defined on HP-UX 11.11.
33230         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
33231         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
33232         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
33233         AC_USE_SYSTEM_EXTENSIONS.
33234         * modules/fnmatch (Depends-on): Add extensions.
33235         * modules/mbrlen (Depends-on): Likewise.
33236         * modules/mbrtowc (Depends-on): Likewise.
33237         * modules/mbsinit (Depends-on): Likewise.
33238         * modules/mbsrtowcs (Depends-on): Likewise.
33239         * modules/mbswidth (Depends-on): Likewise.
33240         * modules/quotearg (Depends-on): Likewise.
33241         * modules/strftime (Depends-on): Likewise.
33242
33243 2008-12-20  Bruno Haible  <bruno@clisp.org>
33244
33245         Ensure wctob is declared on IRIX 6.5.
33246         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
33247         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
33248         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
33249         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
33250         of HAVE_WCTOB.
33251         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
33252         HAVE_WCTOB.
33253         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
33254
33255 2008-12-19  Bruno Haible  <bruno@clisp.org>
33256
33257         * modules/mbsrtowcs-tests: New file.
33258         * tests/test-mbsrtowcs1.sh: New file.
33259         * tests/test-mbsrtowcs2.sh: New file.
33260         * tests/test-mbsrtowcs3.sh: New file.
33261         * tests/test-mbsrtowcs4.sh: New file.
33262         * tests/test-mbsrtowcs.c: New file.
33263
33264         New module 'mbsrtowcs'.
33265         * lib/wchar.in.h (mbsrtowcs): New declaration.
33266         * lib/mbsrtowcs.c: New file.
33267         * m4/mbsrtowcs.m4: New file.
33268         * modules/mbsrtowcs: New file.
33269         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
33270         HAVE_MBSRTOWCS.
33271         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
33272         HAVE_MBSRTOWCS.
33273         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
33274
33275 2008-12-19  Bruno Haible  <bruno@clisp.org>
33276
33277         New module 'mbrlen'.
33278         * lib/wchar.in.h (mbrlen): New declaration.
33279         * lib/mbrlen.c: New file.
33280         * m4/mbrlen.m4: New file.
33281         * modules/mbrlen: New file.
33282         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
33283         HAVE_MBRLEN.
33284         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
33285         HAVE_MBRLEN.
33286         * doc/posix-functions/mbrlen.texi: Document the new module.
33287
33288 2008-12-19  Bruno Haible  <bruno@clisp.org>
33289
33290         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
33291         * modules/mbrtowc (Depends-on): Add verify.
33292         Suggested by Paul Eggert.
33293
33294 2008-12-18  Bruno Haible  <bruno@clisp.org>
33295
33296         * modules/mbsinit-tests: New file.
33297         * tests/test-mbsinit.sh: New file.
33298         * tests/test-mbsinit.c: New file.
33299
33300 2008-12-18  Bruno Haible  <bruno@clisp.org>
33301
33302         * modules/mbrtowc-tests: New file.
33303         * tests/test-mbrtowc1.sh: New file.
33304         * tests/test-mbrtowc2.sh: New file.
33305         * tests/test-mbrtowc3.sh: New file.
33306         * tests/test-mbrtowc4.sh: New file.
33307         * tests/test-mbrtowc.c: New file.
33308
33309         New module 'mbrtowc'.
33310         * lib/wchar.in.h (mbstate_t): Override when the system does not have
33311         mbsinit and mbrtowc.
33312         (mbrtowc): New declaration.
33313         * lib/mbrtowc.c: New file.
33314         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
33315         * modules/mbrtowc: New file.
33316         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
33317         HAVE_MBRTOWC.
33318         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
33319         HAVE_MBRTOWC.
33320         * doc/posix-functions/mbrtowc.texi: Document the new module.
33321
33322 2008-12-18  Bruno Haible  <bruno@clisp.org>
33323
33324         New module 'wctob'.
33325         * lib/wchar.in.h (wctob): New declaration.
33326         * lib/wctob.c: New file.
33327         * m4/wctob.m4: New file.
33328         * modules/wctob: New file.
33329         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
33330         HAVE_WCTOB.
33331         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
33332         * doc/posix-functions/wctob.texi: Document the new module.
33333
33334 2008-12-18  Bruno Haible  <bruno@clisp.org>
33335
33336         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
33337         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
33338
33339 2008-12-18  Simon Josefsson  <simon@josefsson.org>
33340
33341         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
33342         G. Christensen" <tgc@jupiterrise.com>.
33343
33344         * lib/flock.c: Need to include errno.h.  Reported by "Tom
33345         G. Christensen" <tgc@jupiterrise.com>.
33346
33347         * lib/flock.c: Need to include string.h.  Reported by "Tom
33348         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
33349         <ebb9@byu.net>.
33350
33351 2008-12-18  Bruno Haible  <bruno@clisp.org>
33352
33353         * m4/locale-ja.m4: New file, from GNU gettext.
33354
33355 2008-12-17  Bruno Haible  <bruno@clisp.org>
33356
33357         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
33358         Suggested by Eric Blake.
33359
33360 2008-12-17  Bruno Haible  <bruno@clisp.org>
33361
33362         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
33363
33364 2008-12-17  Bruno Haible  <bruno@clisp.org>
33365
33366         * lib/mbsinit.c: Include verify.h. Verify an assumption.
33367         * modules/mbsinit (Depends-on): Add verify.
33368         Suggested by Paul Eggert.
33369
33370 2008-12-17  Bruno Haible  <bruno@clisp.org>
33371
33372         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
33373         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
33374         gl_FUNC_MBRTOWC.
33375         * m4/mbiter.m4 (gl_MBITER): LIkewise.
33376         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
33377         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
33378         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
33379         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
33380         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
33381         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
33382         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
33383         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
33384         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
33385         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
33386         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
33387         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
33388         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
33389         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
33390         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33391         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
33392         * modules/trim (configure.ac): Likewise.
33393
33394 2008-12-17  Bruno Haible  <bruno@clisp.org>
33395
33396         * modules/btowc-tests: New file.
33397         * tests/test-btowc1.sh: New file.
33398         * tests/test-btowc2.sh: New file.
33399         * tests/test-btowc.c: New file.
33400
33401         New module 'btowc'.
33402         * lib/wchar.in.h (btowc): New declaration.
33403         * lib/btowc.c: New file.
33404         * m4/btowc.m4: New file.
33405         * modules/btowc: New file.
33406         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
33407         HAVE_BTOWC.
33408         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
33409         * doc/posix-functions/btowc.texi: Document the new module.
33410
33411 2008-12-17  Bruno Haible  <bruno@clisp.org>
33412
33413         New module 'mbsinit'.
33414         * lib/wchar.in.h (mbsinit): New declaration.
33415         * lib/mbsinit.c: New file.
33416         * m4/mbsinit.m4: New file.
33417         * modules/mbsinit: New file.
33418         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
33419         HAVE_MBSINIT.
33420         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
33421         HAVE_MBSINIT.
33422         * doc/posix-functions/mbsinit.texi: Document the new module.
33423
33424 2008-12-16  Bruno Haible  <bruno@clisp.org>
33425
33426         * lib/unistd.in.h: Add comment.
33427         * tests/test-environ.c: Don't include <stdlib.h>.
33428
33429 2008-12-16  Bruno Haible  <bruno@clisp.org>
33430
33431         * lib/parse-duration.h (parse_duration): Document return value
33432         convention.
33433         * lib/parse-duration.c: Include specification header first. Add
33434         comments.
33435         (_): Remove macro.
33436         (parse_year_month_day, parse_hour_minute_second): Move side effects
33437         outside of strchr call.
33438         (parse_non_iso8601): Move side effects outside of isspace call.
33439         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
33440         call.
33441
33442 2008-12-16  Bruno Haible  <bruno@clisp.org>
33443
33444         * tests/test-parse-duration.sh: Produce no output when the test
33445         succeeds.
33446
33447 2008-12-16  Bruno Haible  <bruno@clisp.org>
33448
33449         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
33450         expressions.
33451
33452 2008-12-15  Bruno Haible  <bruno@clisp.org>
33453
33454         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
33455         * doc/glibc-functions/flistxattr.texi: Likewise.
33456         * doc/glibc-functions/fopencookie.texi: Likewise.
33457         * doc/glibc-functions/fremovexattr.texi: Likewise.
33458         * doc/glibc-functions/fsetxattr.texi: Likewise.
33459         * doc/glibc-functions/getxattr.texi: Likewise.
33460         * doc/glibc-functions/lgetxattr.texi: Likewise.
33461         * doc/glibc-functions/listxattr.texi: Likewise.
33462         * doc/glibc-functions/llistxattr.texi: Likewise.
33463         * doc/glibc-functions/lremovexattr.texi: Likewise.
33464         * doc/glibc-functions/lsetxattr.texi: Likewise.
33465         * doc/glibc-functions/removexattr.texi: Likewise.
33466         * doc/glibc-functions/setxattr.texi: Likewise.
33467         * doc/posix-functions/open_memstream.texi: Likewise.
33468
33469 2008-12-15  Eric Blake  <ebb9@byu.net>
33470
33471         Update doc for cygwin 1.7.
33472         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
33473         functions.
33474         * doc/posix-functions/fchmodat.texi: Likewise.
33475         * doc/posix-functions/fchownat.texi: Likewise.
33476         * doc/posix-functions/fdopendir.texi: Likewise.
33477         * doc/posix-functions/fmemopen.texi: Likewise.
33478         * doc/posix-functions/freeaddrinfo.texi: Likewise.
33479         * doc/posix-functions/fstatat.texi: Likewise.
33480         * doc/posix-functions/futimens.texi: Likewise.
33481         * doc/posix-functions/gai_strerror.texi: Likewise.
33482         * doc/posix-functions/getaddrinfo.texi: Likewise.
33483         * doc/posix-functions/getnameinfo.texi: Likewise.
33484         * doc/posix-functions/if_freenameindex.texi: Likewise.
33485         * doc/posix-functions/if_indextoname.texi: Likewise.
33486         * doc/posix-functions/if_nameindex.texi: Likewise.
33487         * doc/posix-functions/if_nametoindex.texi: Likewise.
33488         * doc/posix-functions/insque.texi: Likewise.
33489         * doc/posix-functions/linkat.texi: Likewise.
33490         * doc/posix-functions/llrint.texi: Likewise.
33491         * doc/posix-functions/llrintf.texi: Likewise.
33492         * doc/posix-functions/llrintl.texi: Likewise.
33493         * doc/posix-functions/lockf.texi: Likewise.
33494         * doc/posix-functions/lrintl.texi: Likewise.
33495         * doc/posix-functions/mkdirat.texi: Likewise.
33496         * doc/posix-functions/mkfifoat.texi: Likewise.
33497         * doc/posix-functions/mknodat.texi: Likewise.
33498         * doc/posix-functions/mq_close.texi: Likewise.
33499         * doc/posix-functions/mq_getattr.texi: Likewise.
33500         * doc/posix-functions/mq_notify.texi: Likewise.
33501         * doc/posix-functions/mq_open.texi: Likewise.
33502         * doc/posix-functions/mq_receive.texi: Likewise.
33503         * doc/posix-functions/mq_send.texi: Likewise.
33504         * doc/posix-functions/mq_setattr.texi: Likewise.
33505         * doc/posix-functions/mq_timedreceive.texi: Likewise.
33506         * doc/posix-functions/mq_timedsend.texi: Likewise.
33507         * doc/posix-functions/mq_unlink.texi: Likewise.
33508         * doc/posix-functions/open_memstream.texi: Likewise.
33509         * doc/posix-functions/openat.texi: Likewise.
33510         * doc/posix-functions/posix_fadvise.texi: Likewise.
33511         * doc/posix-functions/posix_fallocate.texi: Likewise.
33512         * doc/posix-functions/posix_madvise.texi: Likewise.
33513         * doc/posix-functions/posix_memalign.texi: Likewise.
33514         * doc/posix-functions/posix_openpt.texi: Likewise.
33515         * doc/posix-functions/readlinkat.texi: Likewise.
33516         * doc/posix-functions/remque.texi: Likewise.
33517         * doc/posix-functions/renameat.texi: Likewise.
33518         * doc/posix-functions/rintl.texi: Likewise.
33519         * doc/posix-functions/sem_unlink.texi: Likewise.
33520         * doc/posix-functions/shm_open.texi: Likewise.
33521         * doc/posix-functions/shm_unlink.texi: Likewise.
33522         * doc/posix-functions/signgam.texi: Likewise.
33523         * doc/posix-functions/sigset.texi: Likewise.
33524         * doc/posix-functions/stpcpy.texi: Likewise.
33525         * doc/posix-functions/stpncpy.texi: Likewise.
33526         * doc/posix-functions/strerror.texi: Likewise.
33527         * doc/posix-functions/strtod.texi: Likewise.
33528         * doc/posix-functions/symlinkat.texi: Likewise.
33529         * doc/posix-functions/unlinkat.texi: Likewise.
33530         * doc/posix-functions/utimensat.texi: Likewise.
33531         * doc/glibc-functions/bindresvport.texi: Likewise.
33532         * doc/glibc-functions/dn_expand.texi: Likewise.
33533         * doc/glibc-functions/exp10.texi: Likewise.
33534         * doc/glibc-functions/exp10f.texi: Likewise.
33535         * doc/glibc-functions/fgetxattr.texi: Likewise.
33536         * doc/glibc-functions/flistxattr.texi: Likewise.
33537         * doc/glibc-functions/fopencookie.texi: Likewise.
33538         * doc/glibc-functions/freeifaddrs.texi: Likewise.
33539         * doc/glibc-functions/fremovexattr.texi: Likewise.
33540         * doc/glibc-functions/fsetxattr.texi: Likewise.
33541         * doc/glibc-functions/getifaddrs.texi: Likewise.
33542         * doc/glibc-functions/getxattr.texi: Likewise.
33543         * doc/glibc-functions/lgetxattr.texi: Likewise.
33544         * doc/glibc-functions/listxattr.texi: Likewise.
33545         * doc/glibc-functions/llistxattr.texi: Likewise.
33546         * doc/glibc-functions/lremovexattr.texi: Likewise.
33547         * doc/glibc-functions/lsetxattr.texi: Likewise.
33548         * doc/glibc-functions/pow10.texi: Likewise.
33549         * doc/glibc-functions/pow10f.texi: Likewise.
33550         * doc/glibc-functions/rcmd_af.texi: Likewise.
33551         * doc/glibc-functions/removexattr.texi: Likewise.
33552         * doc/glibc-functions/res_init.texi: Likewise.
33553         * doc/glibc-functions/res_mkquery.texi: Likewise.
33554         * doc/glibc-functions/res_query.texi: Likewise.
33555         * doc/glibc-functions/res_querydomain.texi: Likewise.
33556         * doc/glibc-functions/res_send.texi: Likewise.
33557         * doc/glibc-functions/rresvport_af.texi: Likewise.
33558         * doc/glibc-functions/setxattr.texi: Likewise.
33559         * doc/glibc-functions/strcasestr.texi: Likewise.
33560
33561 2008-12-15  Bruno Haible  <bruno@clisp.org>
33562
33563         Fix compilation error on OSF/1 4.0.
33564         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
33565         <sys/time.h>, simply delegate to the system header.
33566         Reported by Daniel Richard G. <oss@teragram.com>.
33567
33568 2008-12-15  Bruno Haible  <bruno@clisp.org>
33569
33570         * doc/posix-functions/openat.texi: Mention the 'openat' module.
33571         * doc/posix-functions/fchmodat.texi: Likewise.
33572         * doc/posix-functions/fchownat.texi: Likewise.
33573         * doc/posix-functions/fdopendir.texi: Likewise.
33574         * doc/posix-functions/fstatat.texi: Likewise.
33575         * doc/posix-functions/mkdirat.texi: Likewise.
33576         * doc/posix-functions/unlinkat.texi: Likewise.
33577
33578 2008-12-14  Bruno Haible  <bruno@clisp.org>
33579
33580         Update doc for POSIX:2008.
33581         * doc/posix-functions/faccessat.texi: New file.
33582         * doc/posix-functions/fchmodat.texi: New file.
33583         * doc/posix-functions/fchownat.texi: New file.
33584         * doc/posix-functions/fdopendir.texi: New file.
33585         * doc/posix-functions/fstatat.texi: New file.
33586         * doc/posix-functions/futimens.texi: New file.
33587         * doc/posix-functions/linkat.texi: New file.
33588         * doc/posix-functions/mkdirat.texi: New file.
33589         * doc/posix-functions/mkfifoat.texi: New file.
33590         * doc/posix-functions/mknodat.texi: New file.
33591         * doc/posix-functions/open_wmemstream.texi: New file.
33592         * doc/posix-functions/openat.texi: New file.
33593         * doc/posix-functions/psiginfo.texi: New file.
33594         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
33595         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
33596         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
33597         * doc/posix-functions/readlinkat.texi: New file.
33598         * doc/posix-functions/renameat.texi: New file.
33599         * doc/posix-functions/strerror_l.texi: New file.
33600         * doc/posix-functions/symlinkat.texi: New file.
33601         * doc/posix-functions/unlinkat.texi: New file.
33602         * doc/posix-functions/utimensat.texi: New file.
33603         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33604
33605 2008-12-14  Bruno Haible  <bruno@clisp.org>
33606
33607         Update doc for POSIX:2008.
33608         * doc/posix-functions/alphasort.texi: Renamed from
33609         doc/glibc-functions/alphasort.texi.
33610         * doc/posix-functions/dirfd.texi: Renamed from
33611         doc/glibc-functions/dirfd.texi.
33612         * doc/posix-functions/dprintf.texi: Renamed from
33613         doc/glibc-functions/dprintf.texi.
33614         * doc/posix-functions/duplocale.texi: Renamed from
33615         doc/glibc-functions/duplocale.texi.
33616         * doc/posix-functions/fexecve.texi: Renamed from
33617         doc/glibc-functions/fexecve.texi.
33618         * doc/posix-functions/fmemopen.texi: Renamed from
33619         doc/glibc-functions/fmemopen.texi.
33620         * doc/posix-functions/freelocale.texi: Renamed from
33621         doc/glibc-functions/freelocale.texi.
33622         * doc/posix-functions/getdate_err.texi: Renamed from
33623         doc/glibc-functions/getdate_err.texi.
33624         * doc/posix-functions/isalnum_l.texi: Renamed from
33625         doc/glibc-functions/isalnum_l.texi.
33626         * doc/posix-functions/isalpha_l.texi: Renamed from
33627         doc/glibc-functions/isalpha_l.texi.
33628         * doc/posix-functions/isblank_l.texi: Renamed from
33629         doc/glibc-functions/isblank_l.texi.
33630         * doc/posix-functions/iscntrl_l.texi: Renamed from
33631         doc/glibc-functions/iscntrl_l.texi.
33632         * doc/posix-functions/isdigit_l.texi: Renamed from
33633         doc/glibc-functions/isdigit_l.texi.
33634         * doc/posix-functions/isgraph_l.texi: Renamed from
33635         doc/glibc-functions/isgraph_l.texi.
33636         * doc/posix-functions/islower_l.texi: Renamed from
33637         doc/glibc-functions/islower_l.texi.
33638         * doc/posix-functions/isprint_l.texi: Renamed from
33639         doc/glibc-functions/isprint_l.texi.
33640         * doc/posix-functions/ispunct_l.texi: Renamed from
33641         doc/glibc-functions/ispunct_l.texi.
33642         * doc/posix-functions/isspace_l.texi: Renamed from
33643         doc/glibc-functions/isspace_l.texi.
33644         * doc/posix-functions/isupper_l.texi: Renamed from
33645         doc/glibc-functions/isupper_l.texi.
33646         * doc/posix-functions/iswalnum_l.texi: Renamed from
33647         doc/glibc-functions/iswalnum_l.texi.
33648         * doc/posix-functions/iswalpha_l.texi: Renamed from
33649         doc/glibc-functions/iswalpha_l.texi.
33650         * doc/posix-functions/iswblank_l.texi: Renamed from
33651         doc/glibc-functions/iswblank_l.texi.
33652         * doc/posix-functions/iswcntrl_l.texi: Renamed from
33653         doc/glibc-functions/iswcntrl_l.texi.
33654         * doc/posix-functions/iswctype_l.texi: Renamed from
33655         doc/glibc-functions/iswctype_l.texi.
33656         * doc/posix-functions/iswdigit_l.texi: Renamed from
33657         doc/glibc-functions/iswdigit_l.texi.
33658         * doc/posix-functions/iswgraph_l.texi: Renamed from
33659         doc/glibc-functions/iswgraph_l.texi.
33660         * doc/posix-functions/iswlower_l.texi: Renamed from
33661         doc/glibc-functions/iswlower_l.texi.
33662         * doc/posix-functions/iswprint_l.texi: Renamed from
33663         doc/glibc-functions/iswprint_l.texi.
33664         * doc/posix-functions/iswpunct_l.texi: Renamed from
33665         doc/glibc-functions/iswpunct_l.texi.
33666         * doc/posix-functions/iswspace_l.texi: Renamed from
33667         doc/glibc-functions/iswspace_l.texi.
33668         * doc/posix-functions/iswupper_l.texi: Renamed from
33669         doc/glibc-functions/iswupper_l.texi.
33670         * doc/posix-functions/iswxdigit_l.texi: Renamed from
33671         doc/glibc-functions/iswxdigit_l.texi.
33672         * doc/posix-functions/isxdigit_l.texi: Renamed from
33673         doc/glibc-functions/isxdigit_l.texi.
33674         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
33675         doc/glibc-functions/mbsnrtowcs.texi.
33676         * doc/posix-functions/mkdtemp.texi: Renamed from
33677         doc/glibc-functions/mkdtemp.texi.
33678         * doc/posix-functions/newlocale.texi: Renamed from
33679         doc/glibc-functions/newlocale.texi.
33680         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
33681         doc/glibc-functions/nl_langinfo_l.texi.
33682         * doc/posix-functions/open_memstream.texi: Renamed from
33683         doc/glibc-functions/open_memstream.texi.
33684         * doc/posix-functions/opterr.texi: Renamed from
33685         doc/glibc-functions/opterr.texi.
33686         * doc/posix-functions/optind.texi: Renamed from
33687         doc/glibc-functions/optind.texi.
33688         * doc/posix-functions/optopt.texi: Renamed from
33689         doc/glibc-functions/optopt.texi.
33690         * doc/posix-functions/psignal.texi: Renamed from
33691         doc/glibc-functions/psignal.texi.
33692         * doc/posix-functions/scandir.texi: Renamed from
33693         doc/glibc-functions/scandir.texi.
33694         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
33695         doc/glibc-functions/sched_get_priority_min.texi.
33696         * doc/posix-functions/signgam.texi: Renamed from
33697         doc/glibc-functions/signgam.texi.
33698         * doc/posix-functions/stpcpy.texi: Renamed from
33699         doc/glibc-functions/stpcpy.texi.
33700         * doc/posix-functions/stpncpy.texi: Renamed from
33701         doc/glibc-functions/stpncpy.texi.
33702         * doc/posix-functions/strcasecmp_l.texi: Renamed from
33703         doc/glibc-functions/strcasecmp_l.texi.
33704         * doc/posix-functions/strcoll_l.texi: Renamed from
33705         doc/glibc-functions/strcoll_l.texi.
33706         * doc/posix-functions/strfmon_l.texi: Renamed from
33707         doc/glibc-functions/strfmon_l.texi.
33708         * doc/posix-functions/strftime_l.texi: Renamed from
33709         doc/glibc-functions/strftime_l.texi.
33710         * doc/posix-functions/strncasecmp_l.texi: Renamed from
33711         doc/glibc-functions/strncasecmp_l.texi.
33712         * doc/posix-functions/strndup.texi: Renamed from
33713         doc/glibc-functions/strndup.texi.
33714         * doc/posix-functions/strnlen.texi: Renamed from
33715         doc/glibc-functions/strnlen.texi.
33716         * doc/posix-functions/strsignal.texi: Renamed from
33717         doc/glibc-functions/strsignal.texi.
33718         * doc/posix-functions/strxfrm_l.texi: Renamed from
33719         doc/glibc-functions/strxfrm_l.texi.
33720         * doc/posix-functions/timer_gettime.texi: Renamed from
33721         doc/glibc-functions/timer_gettime.texi.
33722         * doc/posix-functions/tolower_l.texi: Renamed from
33723         doc/glibc-functions/tolower_l.texi.
33724         * doc/posix-functions/toupper_l.texi: Renamed from
33725         doc/glibc-functions/toupper_l.texi.
33726         * doc/posix-functions/towctrans_l.texi: Renamed from
33727         doc/glibc-functions/towctrans_l.texi.
33728         * doc/posix-functions/towlower_l.texi: Renamed from
33729         doc/glibc-functions/towlower_l.texi.
33730         * doc/posix-functions/towupper_l.texi: Renamed from
33731         doc/glibc-functions/towupper_l.texi.
33732         * doc/posix-functions/uselocale.texi: Renamed from
33733         doc/glibc-functions/uselocale.texi.
33734         * doc/posix-functions/vdprintf.texi: Renamed from
33735         doc/glibc-functions/vdprintf.texi.
33736         * doc/posix-functions/wcpcpy.texi:
33737         Renamed from doc/glibc-functions/wcpcpy.texi.
33738         * doc/posix-functions/wcpncpy.texi: Renamed from
33739         doc/glibc-functions/wcpncpy.texi.
33740         * doc/posix-functions/wcscasecmp.texi: Renamed from
33741         doc/glibc-functions/wcscasecmp.texi.
33742         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
33743         doc/glibc-functions/wcscasecmp_l.texi.
33744         * doc/posix-functions/wcscoll_l.texi: Renamed from
33745         doc/glibc-functions/wcscoll_l.texi.
33746         * doc/posix-functions/wcsdup.texi: Renamed from
33747         doc/glibc-functions/wcsdup.texi.
33748         * doc/posix-functions/wcsncasecmp.texi: Renamed from
33749         doc/glibc-functions/wcsncasecmp.texi.
33750         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
33751         doc/glibc-functions/wcsncasecmp_l.texi.
33752         * doc/posix-functions/wcsnlen.texi: Renamed from
33753         doc/glibc-functions/wcsnlen.texi.
33754         * doc/posix-functions/wcsnrtombs.texi: Renamed from
33755         doc/glibc-functions/wcsnrtombs.texi.
33756         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
33757         doc/glibc-functions/wcsxfrm_l.texi.
33758         * doc/posix-functions/wctrans_l.texi: Renamed from
33759         doc/glibc-functions/wctrans_l.texi.
33760         * doc/posix-functions/wctype_l.texi: Renamed from
33761         doc/glibc-functions/wctype_l.texi.
33762         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33763         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
33764         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
33765         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
33766         these subsections.
33767         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
33768         Remove sections.
33769
33770 2008-12-14  Bruno Haible  <bruno@clisp.org>
33771
33772         Update doc for POSIX:2008.
33773         * doc/posix-functions/*.texi: Update URL of POSIX specification.
33774
33775 2008-12-14  Bruno Haible  <bruno@clisp.org>
33776
33777         Update doc for POSIX:2008.
33778         * doc/pastposix-functions/bcmp.texi: Renamed from
33779         doc/posix-functions/bcmp.texi.
33780         * doc/pastposix-functions/bcopy.texi: Renamed from
33781         doc/posix-functions/bcopy.texi.
33782         * doc/pastposix-functions/bsd_signal.texi: Renamed from
33783         doc/posix-functions/bsd_signal.texi.
33784         * doc/pastposix-functions/bzero.texi: Renamed from
33785         doc/posix-functions/bzero.texi.
33786         * doc/pastposix-functions/ecvt.texi: Renamed from
33787         doc/posix-functions/ecvt.texi.
33788         * doc/pastposix-functions/fcvt.texi: Renamed from
33789         doc/posix-functions/fcvt.texi.
33790         * doc/pastposix-functions/ftime.texi: Renamed from
33791         doc/posix-functions/ftime.texi.
33792         * doc/pastposix-functions/gcvt.texi: Renamed from
33793         doc/posix-functions/gcvt.texi.
33794         * doc/pastposix-functions/getcontext.texi: Renamed from
33795         doc/posix-functions/getcontext.texi.
33796         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
33797         doc/posix-functions/gethostbyaddr.texi.
33798         * doc/pastposix-functions/gethostbyname.texi: Renamed from
33799         doc/posix-functions/gethostbyname.texi.
33800         * doc/pastposix-functions/getwd.texi: Renamed from
33801         doc/posix-functions/getwd.texi.
33802         * doc/pastposix-functions/h_errno.texi: Renamed from
33803         doc/posix-functions/h_errno.texi.
33804         * doc/pastposix-functions/index.texi: Renamed from
33805         doc/posix-functions/index.texi.
33806         * doc/pastposix-functions/makecontext.texi: Renamed from
33807         doc/posix-functions/makecontext.texi.
33808         * doc/pastposix-functions/mktemp.texi: Renamed from
33809         doc/posix-functions/mktemp.texi.
33810         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
33811         doc/posix-functions/pthread_attr_getstackaddr.texi.
33812         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
33813         doc/posix-functions/pthread_attr_setstackaddr.texi.
33814         * doc/pastposix-functions/rindex.texi: Renamed from
33815         doc/posix-functions/rindex.texi.
33816         * doc/pastposix-functions/scalb.texi: Renamed from
33817         doc/posix-functions/scalb.texi.
33818         * doc/pastposix-functions/setcontext.texi: Renamed from
33819         doc/posix-functions/setcontext.texi.
33820         * doc/pastposix-functions/swapcontext.texi: Renamed from
33821         doc/posix-functions/swapcontext.texi.
33822         * doc/pastposix-functions/ualarm.texi: Renamed from
33823         doc/posix-functions/ualarm.texi.
33824         * doc/pastposix-functions/usleep.texi: Renamed from
33825         doc/posix-functions/usleep.texi.
33826         * doc/pastposix-functions/vfork.texi: Renamed from
33827         doc/posix-functions/vfork.texi.
33828         * doc/pastposix-functions/wcswcs.texi: Renamed from
33829         doc/posix-functions/wcswcs.texi.
33830         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
33831         (Function Substitutes): Update.
33832
33833 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33834
33835         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
33836         m4/strerror.m4.
33837
33838 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33839             Bruno Haible  <bruno@clisp.org>
33840
33841         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
33842
33843 2008-12-13  Bruno Haible  <bruno@clisp.org>
33844
33845         * modules/strtoull (Depends-on): Remove unistd.
33846
33847 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33848
33849         * modules/strtoull (Depends-on): Add stdlib.
33850
33851 2008-12-11  Simon Josefsson  <simon@josefsson.org>
33852
33853         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
33854
33855 2008-12-10  Jim Meyering  <meyering@redhat.com>
33856
33857         gl_ASSERT: don't say assertions are disabled when they're not
33858         * m4/assert.m4 (gl_ASSERT): Do not make configure report
33859         "checking whether to enable assertions... no", when they are in
33860         fact enabled.  This is solely a bug in the output of configure.
33861         In spite of saying "no", NDEBUG was not defined in that case.
33862         Also, as noted by Eric Blake, leave assertions enabled upon
33863         --enable-assert=INVALID.
33864
33865 2008-12-10  Bruno Haible  <bruno@clisp.org>
33866
33867         Change MODULES.html to refer to POSIX:2008 where possible.
33868         * MODULES.html.sh (POSIX2008_URL): New variable.
33869         (posix_headers): Remove sys/timeb, ucontext.
33870         (posix2001_headers): New variable.
33871         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
33872         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
33873         index, makecontext, mktemp, pthread_attr_getstackaddr,
33874         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
33875         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
33876         (posix2001_functions): New variable.
33877         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
33878         otherwise.
33879
33880 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33881
33882         add missing include to parse-duration.c
33883         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
33884         * modules/parse-duration (Depends-on): Add xalloc.
33885
33886         fix sed script reading maint.mk
33887         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
33888         (syntax-check-rules): Use it.
33889
33890 2008-12-09  Bruno Haible  <bruno@clisp.org>
33891
33892         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
33893         MacOS X 10.4/PowerPC.
33894         Reported by Simon Josefsson.
33895
33896 2008-12-08  Jim Meyering  <meyering@redhat.com>
33897
33898         work around mingw's lack of some S_IF definitions
33899         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
33900         Reported by Simon Josefsson.
33901
33902 2008-12-08  Bruno Haible  <bruno@clisp.org>
33903
33904         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
33905         applied to variables. Needed on MacOS X 10.4/PowerPC.
33906         Reported by Simon Josefsson.
33907
33908 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
33909         and Eric Blake  <ebb9@byu.net>
33910
33911         assert: honor --enable-assert
33912         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
33913         order to honor --enable-assert, rather than treating it as a
33914         synonym for --disable-assert.
33915
33916 2008-12-08  Jim Meyering  <meyering@redhat.com>
33917
33918         * lib/posixtm.c: Remove now-useless declaration of mktime.
33919
33920         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33921
33922 2008-12-07  Bruno Haible  <bruno@clisp.org>
33923
33924         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
33925         test_once): Mark functions as static.
33926         * tests/test-tls.c (test_tls): Likewise.
33927
33928 2008-12-07  Bruno Haible  <bruno@clisp.org>
33929
33930         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
33931         iconv_register_autodetect.
33932
33933 2008-12-07  Jim Meyering  <meyering@redhat.com>
33934
33935         posixtm.c: avoid a warning
33936         * lib/posixtm.c (posixtime): Don't initialize tm0.
33937         It's no longer needed to placate gcc4's -Wuninitialized,
33938         and the attempt to placate would elicit a new warning.
33939
33940         unicodeio.c: mark unused parameters
33941         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33942         (fallback_failure_callback): Likewise.
33943
33944 2008-12-07  Bruno Haible  <bruno@clisp.org>
33945
33946         * gnulib-tool (func_create_testdir): When building the tests
33947         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
33948         Reported by Simon Josefsson.
33949
33950 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33951
33952         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
33953
33954 2008-12-06  Bruno Haible  <bruno@clisp.org>
33955
33956         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
33957         Suggested by Eric Blake.
33958
33959 2008-12-06  Bruno Haible  <bruno@clisp.org>
33960
33961         Fix a c-stack test failure on MacOS X.
33962         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
33963         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
33964         handler for SIGBUS as well.
33965         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
33966         install a signal handler for SIGBUS as well.
33967         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
33968
33969 2008-12-06  Bruno Haible  <bruno@clisp.org>
33970
33971         Advocacy documentation.
33972         * doc/gnulib-intro.texi (Benefits): New section.
33973         * doc/gnulib.texi: Update.
33974
33975 2008-12-06  Bruno Haible  <bruno@clisp.org>
33976
33977         Document the 'manywarnings' module.
33978         * doc/manywarnings.texi: New file.
33979         * doc/gnulib.texi: Include it.
33980
33981 2008-12-05  Eric Blake  <ebb9@byu.net>
33982
33983         tests: silence some gcc warnings
33984         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
33985         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
33986         type mismatches.
33987
33988 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33989             Bruno Haible  <bruno@clisp.org>
33990
33991         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
33992
33993 2008-11-29  Jim Meyering  <meyering@redhat.com>
33994
33995         unicodeio.c: mark unused parameters
33996         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33997         (fallback_failure_callback): Likewise.
33998
33999         fts: fix a thinko
34000         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
34001         (set_stat_type): Return S_IF*-valued "type" directly.
34002         Prompted by James Youngman's spotting a related bug.
34003         Confirmed by further testing through find.
34004
34005         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
34006         * lib/fts.c (D_TYPE): Define.
34007         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
34008         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
34009         (s_ifmt_shift_bits): New function.
34010         (set_stat_type): New function.
34011         (fts_build): When not calling fts_stat, call set_stat_type
34012         to propagate dirent.d_type info to fts_read caller.
34013         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
34014         fts_statp->st_mode type information may be valid.
34015
34016 2008-11-28  Simon Josefsson  <simon@josefsson.org>
34017
34018         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
34019         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
34020         <sds@gnu.org>.
34021
34022 2008-11-20  Bruno Haible  <bruno@clisp.org>
34023
34024         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
34025         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
34026         INCLUDE_NEXT.
34027         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
34028         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
34029         * modules/math (Makefile.am): Substitute
34030         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
34031         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34032
34033 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34034             Bruno Haible  <bruno@clisp.org>
34035
34036         * lib/stdint.in.h: Define all type macros so that their expansion is
34037         a single typedef'ed token. Fixes a compilation failure in Boost which
34038         does "using ::int8_t;".
34039
34040 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34041
34042         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
34043         gl_MANYWARN_ALL_GCC.
34044         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
34045         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
34046         * modules/manywarnings: New file.
34047         * MODULES.html.sh: Mention manywarnings module.
34048
34049 2008-11-18  Bruno Haible  <bruno@clisp.org>
34050
34051         * doc/gnulib-tool.texi (Unit tests): New section.
34052
34053 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34054
34055         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
34056         paths like 'lib/po/foo.po'.
34057
34058 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34059
34060         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
34061         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
34062
34063 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34064
34065         * m4/warnings.m4: Use CPPFLAGS to really check whether the
34066         parameter works.
34067
34068 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34069
34070         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
34071
34072 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34073
34074         * modules/parse-duration-tests: New file.
34075         * tests/test-parse-duration.sh: New file.
34076         * tests/test-parse-duration.c: New file.
34077
34078         New module 'parse-duration'.
34079         * lib/parse-duration.h: New file.
34080         * lib/parse-duration.c: New file.
34081         * modules/parse-duration: New file.
34082
34083 2008-11-17  Bruno Haible  <bruno@clisp.org>
34084
34085         * tests/test-select-out.sh: Comment out the first pipe test.
34086         Reported by Simon Josefsson.
34087
34088 2008-11-17  Bruno Haible  <bruno@clisp.org>
34089
34090         * modules/getaddrinfo (Depends-on): Add servent, hostent.
34091         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
34092         gl_HOSTENT.
34093
34094 2008-11-17  Bruno Haible  <bruno@clisp.org>
34095
34096         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
34097         -lnetwork and -lnet. Needed for Haiku and BeOS.
34098
34099 2008-11-16  Bruno Haible  <bruno@clisp.org>
34100
34101         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
34102
34103 2008-11-16  Bruno Haible  <bruno@clisp.org>
34104
34105         Avoid test failure on Haiku.
34106         * tests/test-fsync.c: Include <errno.h>.
34107         (main): Don't require that fsync (0) fails.
34108
34109 2008-11-15  Bruno Haible  <bruno@clisp.org>
34110
34111         New module 'hostent'.
34112         * modules/hostent: New file.
34113         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
34114
34115 2008-11-15  Bruno Haible  <bruno@clisp.org>
34116
34117         New module 'servent'.
34118         * modules/servent: New file.
34119         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
34120
34121 2008-11-15  Bruno Haible  <bruno@clisp.org>
34122
34123         Avoid generating same test program with two different rules.
34124         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
34125         test-frexp to test-frexp-nolibm.
34126         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
34127         test-frexpl to test-frexpl-nolibm.
34128
34129 2008-11-15  Bruno Haible  <bruno@clisp.org>
34130
34131         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
34132         $(FREXPL_LIBM).
34133
34134 2008-11-15  Bruno Haible  <bruno@clisp.org>
34135
34136         * lib/netdb.in.h: Activate the definitions also when the system's
34137         <netdb.h> has 'struct addrinfo'.
34138         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
34139         EAI_OVERFLOW or AI_NUMERICSERV.
34140         * doc/posix-headers/netdb.texi: Document the problem.
34141
34142 2008-11-15  Bruno Haible  <bruno@clisp.org>
34143
34144         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
34145
34146         Make the 'sched' module work on platforms where <sched.h> exists but
34147         is incomplete (such as Haiku).
34148         * lib/sched.in.h; Include the system's <sched.h> if it exists.
34149         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
34150         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
34151         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
34152         HAVE_STRUCT_SCHED_PARAM.
34153         * modules/sched (Depends-on): Add include_next.
34154         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
34155         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
34156         * doc/posix-headers/sched.texi: Document the issue.
34157
34158 2008-11-13  Jim Meyering  <meyering@redhat.com>
34159
34160         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
34161         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
34162         test would fail due to the difference in the Report bugs to ...
34163         line.  The expected address is empty, "<>", while the actual
34164         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
34165
34166 2008-11-12  Bruno Haible  <bruno@clisp.org>
34167
34168         lstat: don't compile lstat.c on systems lacking lstat
34169         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
34170         which don't have lstat; this is handled by lib/sys_stat.in.h already.
34171         Reported by Daniel P. Berrange via Jim Meyering.
34172
34173 2008-11-12  Jim Meyering  <meyering@redhat.com>
34174
34175         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
34176
34177 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34178
34179         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
34180         instead.
34181
34182 2008-11-12  Bruno Haible  <bruno@clisp.org>
34183
34184         * lib/unicodeio.c: Include unistr.h.
34185         (utf8_wctomb): Remove function.
34186         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
34187
34188 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34189
34190         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
34191         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
34192         <bruno@clisp.org>.
34193         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
34194
34195 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34196
34197         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
34198         * doc/gnulib.texi: Add section for warnings.
34199
34200 2008-11-11  Bruno Haible  <bruno@clisp.org>
34201
34202         * lib/sockets.h: Add a comment.
34203
34204 2008-11-11  Karl Berry  <karl@gnu.org>
34205
34206         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
34207
34208 2008-11-11  Eric Blake  <ebb9@byu.net>
34209
34210         fdl.texi: avoid git symlinks
34211         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
34212
34213 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34214
34215         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
34216
34217 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34218
34219         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
34220         (gl_WARN_ADD): Substitute $2 if literal.
34221
34222 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34223
34224         * m4/warning.m4: Remove.
34225
34226 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34227
34228         * m4/warnings.m4: Almost complete rewrite. :-)
34229
34230 2008-11-10  Simon Josefsson  <simon@josefsson.org>
34231
34232         * modules/warnings: New module.
34233         * m4/warnings.m4: New file.
34234         * MODULES.html.sh: Mention warnings module.
34235         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
34236         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34237
34238 2008-11-10  Eric Blake  <ebb9@byu.net>
34239
34240         fdl.texi: make a symlink to the latest version
34241         * doc/standards.texi: Revert today's earlier change.
34242         * doc/fdl-1.2.texi: Rename from old fdl.texi...
34243         * doc/fdl.texi: ...and replace this with a symlink to the newer
34244         fdl-1.3.texi.
34245
34246 2008-11-10  Bruno Haible  <bruno@clisp.org>
34247
34248         * tests/test-select-fd.c (main): Accept the result file name as fourth
34249         argument.
34250         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
34251         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
34252
34253 2008-11-10  Bruno Haible  <bruno@clisp.org>
34254
34255         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
34256         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
34257         as autoconf-substituted macros.
34258         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
34259         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
34260         gl_NETDB_H_DEFAULTS. Set these variables.
34261         * modules/netdb (Makefile.am): Substitute these variables.
34262
34263 2008-11-10  Eric Blake  <ebb9@byu.net>
34264
34265         standards.texi: include correct file for FDL 1.3
34266         * doc/standards.texi (GNU Free Documentation License): Change
34267         include file to pull in FDL 1.3, not 1.2.
34268
34269         fdl.texi: revert accidental change to license
34270         * doc/fdl.texi: This is FDL 1.2, not 1.3.
34271
34272 2008-11-10  Bruno Haible  <bruno@clisp.org>
34273
34274         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
34275         cross-compiling guesses also when the native compile gives no result.
34276
34277 2008-11-10  Bruno Haible  <bruno@clisp.org>
34278
34279         * lib/spawni.c (__spawni): Force variable into the stack.
34280
34281 2008-11-10  Bruno Haible  <bruno@clisp.org>
34282
34283         Add support for Haiku.
34284         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
34285         glibc and BeOS, but also on Haiku.
34286         * lib/fpurge.c (fpurge): Likewise.
34287         * lib/freadable.c (freadable): Likewise.
34288         * lib/freadahead.c (freadahead): Likewise.
34289         * lib/freading.c (freading): Likewise.
34290         * lib/freadptr.c (freadptr): Likewise.
34291         * lib/freadseek.c (freadptrinc): Likewise.
34292         * lib/fseeko.c (rpl_fseeko): Likewise.
34293         * lib/fseterr.c (fseterr): Likewise.
34294         * lib/fwritable.c (fwritable): Likewise.
34295         * lib/fwriting.c (fwriting): Likewise.
34296         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
34297
34298 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34299
34300         * lib/config.charset: Treat Haiku like BeOS.
34301
34302 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34303
34304         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
34305         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
34306
34307 2008-11-08  Bruno Haible  <bruno@clisp.org>
34308
34309         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
34310         AC_CACHE_CHECK.
34311
34312 2008-11-08  Bruno Haible  <bruno@clisp.org>
34313
34314         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
34315
34316 2008-11-08  Bruno Haible  <bruno@clisp.org>
34317
34318         * tests/test-select-fd.c: New file.
34319         * tests/test-select-in.sh: New file.
34320         * tests/test-select-out.sh: New file.
34321         * tests/test-select-stdin.c: New file.
34322         * modules/select-tests (Files): Add the new files.
34323         (Depends-on): Add gettimeofday.
34324         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
34325         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
34326         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
34327
34328 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
34329             Bruno Haible  <bruno@clisp.org>
34330
34331         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
34332
34333 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
34334
34335         * build-aux/pmccabe2html: Added support for C++ source files.
34336
34337 2008-11-05  Ben Pfaff  <blp@gnu.org>
34338
34339         Fix lib/close.c build on Windows.
34340         * modules/close (Files): Add lib/w32sock.h.
34341
34342 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
34343
34344         Accept Bison's NEWS format.
34345         * build-aux/announce-gen (print_news_deltas): Tweak
34346         $re_prefix.
34347
34348 2008-11-04  Bruno Haible  <bruno@clisp.org>
34349
34350         * modules/random_r (Maintainer): Add glibc.
34351
34352 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34353
34354         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
34355         by karl@freefriends.org (Karl Berry).
34356         * doc/alloca.texi: Likewise.
34357         * doc/c-ctype.texi: Likewise.
34358         * doc/c-strcase.texi: Likewise.
34359         * doc/c-strcaseeq.texi: Likewise.
34360         * doc/c-strcasestr.texi: Likewise.
34361         * doc/c-strstr.texi: Likewise.
34362         * doc/c-strtod.texi: Likewise.
34363         * doc/c-strtold.texi: Likewise.
34364         * doc/ctime.texi: Likewise.
34365         * doc/error.texi: Likewise.
34366         * doc/fdl.texi: Likewise.
34367         * doc/gcd.texi: Likewise.
34368         * doc/getdate.texi: Likewise.
34369         * doc/gnulib-intro.texi: Likewise.
34370         * doc/gnulib-tool.texi: Likewise.
34371         * doc/gnulib.texi: Likewise.
34372         * doc/inet_ntoa.texi: Likewise.
34373         * doc/maintain.texi: Likewise.
34374         * doc/make-stds.texi: Likewise.
34375         * doc/quote.texi: Likewise.
34376         * doc/regexprops-generic.texi: Likewise.
34377         * doc/standards.texi: Likewise.
34378         * doc/verify.texi: Likewise.
34379         * doc/visibility.texi: Likewise.
34380         * doc/gnulib.texi (GNU Free Documentation License): Include
34381         fdl-1.3.texi instead of fdl.texi.
34382
34383 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34384
34385         * doc/fdl-1.3.texi: New file, from
34386         <http://www.gnu.org/licenses/fdl-1.3.texi>.
34387         * modules/fdl-1.3: Add.
34388         * MODULES.html.sh: Add fdl-1.3.
34389
34390 2008-11-03  Bruno Haible  <bruno@clisp.org>
34391
34392         Make determination of absolute name of header file work with AIX xlc.
34393         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
34394         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
34395         preprocessing.
34396         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34397         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
34398
34399 2008-11-03  Simon Josefsson  <simon@josefsson.org>
34400
34401         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
34402         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
34403         <ludo@gnu.org>.
34404
34405 2008-11-02  Bruno Haible  <bruno@clisp.org>
34406
34407         Mark 'strpbrk' obsolete.
34408         * modules/strpbrk (Status, Notice): New sections.
34409         * modules/strtok_r (Depends-on): Add strpbrk.
34410
34411 2008-11-02  Bruno Haible  <bruno@clisp.org>
34412
34413         Mark 'strdup' obsolete.
34414         * modules/strdup (Status, Notice): New sections.
34415         * modules/findprog (Depends-on): Add strdup.
34416         * modules/getaddrinfo (Depends-on): Likewise.
34417         * modules/localename (Depends-on): Likewise.
34418         * modules/relocatable-lib (Depends-on): Likewise.
34419         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
34420         * modules/relocatable-prog (Depends-on): Likewise.
34421         * modules/trim (Depends-on): Likewise.
34422         * modules/unictype/gen-ctype (Depends-on): Likewise.
34423         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34424
34425 2008-11-02  Bruno Haible  <bruno@clisp.org>
34426
34427         Mark 'strcspn' obsolete.
34428         * modules/strcspn (Status, Notice): New sections.
34429
34430 2008-11-02  Bruno Haible  <bruno@clisp.org>
34431
34432         Mark 'rmdir' obsolete.
34433         * modules/rmdir (Status, Notice): New sections.
34434         * modules/clean-temp (Depends-on): Add rmdir.
34435         * modules/openat (Depends-on): Likewise.
34436
34437 2008-11-02  Bruno Haible  <bruno@clisp.org>
34438
34439         Mark 'raise' obsolete.
34440         * modules/raise (Status, Notice): New sections.
34441         (Include): Specify <signal.h>.
34442         * modules/stdio (Depends-on): Add raise.
34443         * modules/write (Depends-on): Likewise.
34444
34445 2008-11-02  Bruno Haible  <bruno@clisp.org>
34446
34447         Mark 'memset' obsolete.
34448         * modules/memset (Status, Notice): New sections.
34449
34450 2008-11-02  Bruno Haible  <bruno@clisp.org>
34451
34452         Mark 'memmove' obsolete.
34453         * modules/memmove (Status, Notice): New sections.
34454         * modules/argp (Depends-on): Add memmove.
34455         * modules/argz (Depends-on): Likewise.
34456         * modules/canonicalize (Depends-on): Likewise.
34457         * modules/canonicalize-lgpl (Depends-on): Likewise.
34458         * modules/fts (Depends-on): Likewise.
34459         * modules/getcwd (Depends-on): Likewise.
34460         * modules/human (Depends-on): Likewise.
34461         * modules/regex (Depends-on): Likewise.
34462         * modules/striconveh (Depends-on): Likewise.
34463         * modules/trim (Depends-on): Likewise.
34464         * modules/unistr/u8-move (Depends-on): Likewise.
34465         * modules/unistr/u16-move (Depends-on): Likewise.
34466         * modules/unistr/u32-move (Depends-on): Likewise.
34467
34468 2008-11-02  Bruno Haible  <bruno@clisp.org>
34469
34470         Mark 'memcpy' obsolete.
34471         * modules/memcpy (Status, Notice): New sections.
34472
34473 2008-11-02  Bruno Haible  <bruno@clisp.org>
34474
34475         Mark 'memcmp' obsolete.
34476         * modules/memcmp (Status, Notice): New sections.
34477         * modules/argmatch (Depends-on): Add memchr.
34478         * modules/backupfile (Depends-on): Likewise.
34479         * modules/c-strcasestr (Depends-on): Likewise.
34480         * modules/crypto/des (Depends-on): Likewise.
34481         * modules/csharpcomp (Depends-on): Likewise.
34482         * modules/fnmatch (Depends-on): Likewise.
34483         * modules/git-merge-changelog (Depends-on): Likewise.
34484         * modules/isnand (Depends-on): Likewise.
34485         * modules/isnand-nolibm (Depends-on): Likewise.
34486         * modules/isnanf (Depends-on): Likewise.
34487         * modules/isnanf-nolibm (Depends-on): Likewise.
34488         * modules/isnanl (Depends-on): Likewise.
34489         * modules/isnanl-nolibm (Depends-on): Likewise.
34490         * modules/mbchar (Depends-on): Likewise.
34491         * modules/memcoll (Depends-on): Likewise.
34492         * modules/quotearg (Depends-on): Likewise.
34493         * modules/regex (Depends-on): Likewise.
34494         * modules/relocatable-prog (Depends-on): Likewise.
34495         * modules/same (Depends-on): Likewise.
34496         * modules/signbit (Depends-on): Likewise.
34497         * modules/strcasestr-simple (Depends-on): Likewise.
34498         * modules/unictype/gen-ctype (Depends-on): Likewise.
34499         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34500         * modules/uniname/uniname (Depends-on): Likewise.
34501         * modules/unistr/u8-cmp (Depends-on): Likewise.
34502
34503 2008-11-02  Bruno Haible  <bruno@clisp.org>
34504
34505         Mark 'memchr' obsolete.
34506         * modules/memchr (Status, Notice): New sections.
34507         * modules/argp (Depends-on): Add memchr.
34508         * modules/base64 (Depends-on): Likewise.
34509         * modules/c-strcasestr (Depends-on): Likewise.
34510         * modules/chdir-long (Depends-on): Likewise.
34511         * modules/fnmatch (Depends-on): Likewise.
34512         * modules/getsubopt (Depends-on): Likewise.
34513         * modules/git-merge-changelog (Depends-on): Likewise.
34514         * modules/glob (Depends-on): Likewise.
34515         * modules/strcasestr-simple (Depends-on): Likewise.
34516         * modules/strnlen (Depends-on): Likewise.
34517
34518 2008-11-02  Bruno Haible  <bruno@clisp.org>
34519
34520         Mark 'atexit' obsolete.
34521         * modules/atexit (Status, Notice): New sections.
34522         * modules/chdir-long (Depends-on): Add atexit.
34523         * modules/wait-process (Depends-on): Likewise.
34524
34525 2008-11-02  Bruno Haible  <bruno@clisp.org>
34526
34527         * gnulib-tool: New option --with-obsolete.
34528         (func_usage): Document it.
34529         (func_modules_transitive_closure): Drop obsolete dependencies if
34530         incobsolete is not true.
34531         (func_import): Read and save the incobsolete variable to the cache.
34532
34533 2008-11-02  Bruno Haible  <bruno@clisp.org>
34534
34535         * modules/TEMPLATE-EXTENDED: New field 'Status'.
34536         * gnulib-tool: New option --extract-status.
34537         (func_usage): Document it.
34538         (sed_extract_prog): Recognize it.
34539         (func_get_status): New function.
34540
34541 2008-10-30  Simon Josefsson  <simon@josefsson.org>
34542
34543         * modules/sockets (License): Change from LGPL to LGPLv2+.
34544
34545 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34546
34547         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
34548
34549 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34550
34551         * MODULES.html.sh (Support for systems lacking POSIX:2001):
34552         Mention times and sys_times.
34553         * modules/sys_times, modules/sys_times-tests: New modules.
34554         * modules/times, modules/times-tests: Likewise
34555         * m4/sys_times_h.m4: New file.
34556         * lib/sys_times.in.h: Likewise
34557         * lib/times.c: Likewise.
34558         * tests/test-sys_times.c: Likewise.
34559         * tests/test-times.c: Likewise.
34560         * doc/posix-headers/sys_times.texi: Update.
34561         * doc/posix-functions/times.texi: Update.
34562
34563 2008-10-28  Jim Meyering  <meyering@redhat.com>
34564
34565         * modules/tempname (Depends-on): Add lstat.
34566
34567         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
34568
34569 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34570
34571         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
34572         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
34573         using idiom used elsewhere in gnulib.
34574
34575 2008-10-27  Jim Meyering  <meyering@redhat.com>
34576
34577         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
34578
34579 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34580
34581         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
34582         TESTS_ENVIRONMENT, for shell scripts that needs to call built
34583         programs.
34584         * tests/test-argp-2.sh: Use $EXEEXT when needed.
34585
34586 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34587
34588         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
34589
34590 2008-10-27  Bruno Haible  <bruno@clisp.org>
34591
34592         * tests/test-lstat.c: Include <stdio.h>.
34593
34594 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34595
34596         * modules/lstat-tests: New module.
34597         * tests/test-lstat.c: New file.
34598
34599 2008-10-26  Jim Meyering  <meyering@redhat.com>
34600
34601         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
34602
34603 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34604             Bruno Haible  <bruno@clisp.org>
34605
34606         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
34607         * modules/configmake (Include): Add a note that the include must come
34608         after all system headers.
34609         * lib/javaversion.c: Include configmake.h after all other includes.
34610
34611 2008-10-26  Bruno Haible  <bruno@clisp.org>
34612
34613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
34614         HAVE_STRUCT_RANDOM_DATA to 1.
34615         (gl_STDLIB_H): Simplify.
34616
34617 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34618
34619         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
34620         substitute HAVE_STRUCT_RANDOM_DATA.
34621         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
34622         random_data.
34623         * modules/stdlib (Makefile.am): Substitute
34624         HAVE_STRUCT_RANDOM_DATA.
34625
34626 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34627
34628         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
34629         * doc/gnulib-intro.texi (Copyright): Likewise.
34630
34631 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34632
34633         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
34634         findings.
34635
34636 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
34637             Bruno Haible  <bruno@clisp.org>
34638
34639         * lib/unistd.in.h: Include <winsock2.h>.
34640         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
34641         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
34642         Provide dummy declarations.
34643         (gethostname): Override.
34644         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
34645         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
34646         gl_PREREQ_SYS_H_WINSOCK2.
34647         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
34648         * doc/posix-functions/gethostname.texi: More details.
34649
34650 2008-10-25  Bruno Haible  <bruno@clisp.org>
34651
34652         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34653         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
34654         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
34655
34656         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
34657         here ...
34658         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
34659         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
34660         gl_UNISTD_H_DEFAULTS.
34661
34662 2008-10-25  Eric Blake  <ebb9@byu.net>
34663
34664         signbit: avoid spurious compiler failure
34665         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
34666         declarations inside function.
34667
34668 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34669             Bruno Haible  <bruno@clisp.org>
34670
34671         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
34672         * modules/random_r (Depends-on): Add stdint.
34673
34674 2008-10-24  Bruno Haible  <bruno@clisp.org>
34675
34676         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
34677         Eggert.
34678         * modules/strerror (License): Likewise.
34679
34680 2008-10-24  Jim Meyering  <meyering@redhat.com>
34681
34682         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
34683         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
34684
34685 2008-10-24  Eric Blake  <ebb9@byu.net>
34686
34687         getgroups: fix compilation when getgroups is available
34688         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
34689         but with <config.h> override of getgroups disabled.
34690
34691 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34692
34693         * doc/gnulib.texi (Header files): Add note about C++ problems.
34694         Explained by Bruno Haible <bruno@clisp.org>.
34695
34696 2008-10-23  Bruno Haible  <bruno@clisp.org>
34697
34698         Define a dummy SA_NODEFER macro on Interix.
34699         * lib/signal.in.h (SA_NODEFER): Define fallback.
34700         Reported by Aleksey Cheusov <cheusov@tut.by> via
34701         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
34702
34703 2008-10-23  Bruno Haible  <bruno@clisp.org>
34704
34705         * modules/freadahead (License): Change to LGPLv2+.
34706         Suggested by Simon Josefsson.
34707
34708 2008-10-23  Jim Meyering  <meyering@redhat.com>
34709
34710         random_r: new module
34711         * modules/random_r: New file.
34712         * m4/random_r.m4: New file.
34713         * lib/random_r.c: New file, from glibc.
34714         * modules/random_r-tests: New file.
34715         * tests/test-random_r.c: New file.
34716         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
34717          Declare.
34718         (RAND_MAX): Define.
34719         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
34720         * modules/stdlib: Substitute them, too.
34721         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
34722         * doc/glibc-functions/initstate_r.texi: Mention the new module.
34723         * doc/glibc-functions/random_r.texi: Likewise.
34724         * doc/glibc-functions/setstate_r.texi: Likewise.
34725         * doc/glibc-functions/srandom_r.texi: Likewise.
34726         * config/srclist.txt: Mention it.
34727
34728 2008-10-23  David Lutterkort  <lutter@redhat.com>
34729
34730         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
34731         link requirement
34732
34733 2008-10-23  Jim Meyering  <meyering@redhat.com>
34734
34735         selinux-h: mark parameters of stub functions as intentionally unused
34736         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
34737         * lib/se-context.in.h: Likewise.
34738
34739 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34740
34741         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
34742
34743 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34744
34745         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
34746
34747 2008-10-22  Eric Blake  <ebb9@byu.net>
34748
34749         glthread/thread: avoid compiler warning
34750         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
34751         Add unreachable abort to silence compiler.
34752
34753 2008-10-22  Eric Blake  <ebb9@byu.net>
34754
34755         netdb: also supply struct addrinfo for cygwin 1.5.x
34756         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
34757         older cygwin.
34758         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
34759         cygwin.
34760         * doc/posix-headers/netdb.texi (netdb.h): Document this.
34761
34762 2008-10-22  Bruno Haible  <bruno@clisp.org>
34763
34764         * users.txt: Update entry about pspp.
34765
34766 2008-10-21  Bruno Haible  <bruno@clisp.org>
34767
34768         Simplification.
34769         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
34770         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
34771
34772         Simplification.
34773         * lib/ioctl.c (ioctl): Don't undefine.
34774         * lib/socket.c (socket): Don't undefine.
34775
34776         Remove unused module indicator macros.
34777         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
34778         GNULIB_$1 as a C macro.
34779
34780         * doc/posix-functions/close.texi: Undo last change.
34781         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
34782         Windows platforms.
34783
34784 2008-10-21  Bruno Haible  <bruno@clisp.org>
34785
34786         Add gethostname() declaration to <unistd.h>.
34787         * lib/unistd.in.h (gethostname): New declaration.
34788         * lib/gethostname.c: Include <unistd.h>.
34789         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
34790         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
34791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
34792         and HAVE_GETHOSTNAME.
34793         * modules/gethostname (Depends-on): Add unistd.
34794         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34795         (Include): Specify <unistd.h>.
34796         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
34797         HAVE_GETHOSTNAME.
34798         * tests/test-gethostname.c: Include <unistd.h> first.
34799
34800 2008-10-21  Bruno Haible  <bruno@clisp.org>
34801
34802         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
34803         * modules/select-tests (Depends-on): Likewise.
34804         Reported by Simon Josefsson.
34805
34806 2008-10-21  Simon Josefsson  <simon@josefsson.org>
34807
34808         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
34809         * lib/accept.c: New file, based on winsock.c.
34810         * lib/bind.c: New file, based on winsock.c.
34811         * lib/connect.c: New file, based on winsock.c.
34812         * lib/getpeername.c: New file, based on winsock.c.
34813         * lib/getsockname.c: New file, based on winsock.c.
34814         * lib/getsockopt.c: New file, based on winsock.c.
34815         * lib/ioctl.c: New file, based on winsock.c.
34816         * lib/listen.c: New file, based on winsock.c.
34817         * lib/recv.c: New file, based on winsock.c.
34818         * lib/recvfrom.c: New file, based on winsock.c.
34819         * lib/send.c: New file, based on winsock.c.
34820         * lib/sendto.c: New file, based on winsock.c.
34821         * lib/setsockopt.c: New file, based on winsock.c.
34822         * lib/shutdown.c: New file, based on winsock.c.
34823         * lib/socket.c: New file, based on winsock.c.
34824         * lib/w32sock.h: New file, based on winsock.c.
34825         * lib/winsock.c: Remove file.
34826         * modules/accept: Likewise.
34827         * modules/bind: Likewise.
34828         * modules/connect: Likewise.
34829         * modules/getpeername: Likewise.
34830         * modules/getsockname: Likewise.
34831         * modules/getsockopt: Likewise.
34832         * modules/ioctl: Likewise.
34833         * modules/listen: Likewise.
34834         * modules/recv: Likewise.
34835         * modules/recvfrom: Likewise.
34836         * modules/send: Likewise.
34837         * modules/sendto: Likewise.
34838         * modules/setsockopt: Likewise.
34839         * modules/shutdown: Likewise.
34840         * modules/socket: Use socket.c instead of winsock.c.
34841         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
34842         * doc/posix-functions/accept.texi: Doc fix.
34843         * doc/posix-functions/bind.texi: Doc fix.
34844         * doc/posix-functions/close.texi: Doc fix.
34845         * doc/posix-functions/connect.texi: Doc fix.
34846         * doc/posix-functions/getpeername.texi: Doc fix.
34847         * doc/posix-functions/getsockname.texi: Doc fix.
34848         * doc/posix-functions/getsockopt.texi: Doc fix.
34849         * doc/posix-functions/ioctl.texi: Doc fix.
34850         * doc/posix-functions/listen.texi: Doc fix.
34851         * doc/posix-functions/recv.texi: Doc fix.
34852         * doc/posix-functions/recvfrom.texi: Doc fix.
34853         * doc/posix-functions/send.texi: Doc fix.
34854         * doc/posix-functions/sendto.texi: Doc fix.
34855         * doc/posix-functions/setsockopt.texi: Doc fix.
34856         * doc/posix-functions/shutdown.texi: Doc fix.
34857         * doc/posix-functions/socket.texi: Doc fix.
34858
34859 2008-10-20  Bruno Haible  <bruno@clisp.org>
34860
34861         Take into account the role of SIGABRT_COMPAT on Windows 2008.
34862         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
34863         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
34864         as an alias for SIGABRT.
34865         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
34866         (sigaction): Map it to SIGABRT.
34867         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
34868
34869 2008-10-20  Bruno Haible  <bruno@clisp.org>
34870
34871         * lib/fts.c: Don't include lstat.h.
34872         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
34873
34874         Move the lstat() declaration to <sys/stat.h>.
34875         * lib/lstat.h: Remove file.
34876         * lib/sys_stat.in.h: Add special invocation convention.
34877         (lstat): New declaration.
34878         * lib/lstat.c (orig_lstat): New function.
34879         (rpl_lstat): Use orig_lstat instead of lstat.
34880         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
34881         AC_C_INLINE. Set REPLACE_LSTAT.
34882         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
34883         and REPLACE_LSTAT.
34884         * modules/lstat (Files): Remove lib/lstat.h.
34885         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34886         (Include): Specify <sys/stat.h> instead of lstat.h.
34887         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
34888         REPLACE_LSTAT.
34889         * NEWS: Mention the change.
34890
34891 2008-10-20  Bruno Haible  <bruno@clisp.org>
34892
34893         * modules/posix_spawn-tests: New file.
34894         * tests/test-posix_spawn3.c: New file.
34895
34896 2008-10-20  Bruno Haible  <bruno@clisp.org>
34897
34898         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
34899         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34900         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
34901         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34902         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
34903
34904 2008-10-20  Bruno Haible  <bruno@clisp.org>
34905
34906         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
34907         of posix_spawn on AIX 5.3.
34908
34909 2008-10-20  Bruno Haible  <bruno@clisp.org>
34910
34911         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
34912
34913 2008-10-20  Bruno Haible  <bruno@clisp.org>
34914
34915         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
34916         of AC_LANG_PROGRAM.
34917
34918 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34919
34920         * lib/netdb.in.h: Don't define GNU specific constants until they
34921         are supported or needed.  Reported by Bruno Haible
34922         <bruno@clisp.org>.
34923
34924 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34925
34926         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
34927
34928 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34929
34930         * lib/getaddrinfo.h: Remove file.
34931         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
34932         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
34933         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
34934         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
34935         * modules/netdb: Substitute GNULIB_GETADDRINFO.
34936         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
34937         * tests/test-getaddrinfo.c: Likewise.
34938         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
34939         * NEWS: Mention change.
34940
34941 2008-10-19  Bruno Haible  <bruno@clisp.org>
34942
34943         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
34944
34945 2008-10-19  Bruno Haible  <bruno@clisp.org>
34946
34947         * lib/wait-process.c: Include simply <sys/wait.h>.
34948         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
34949         WIFSTOPPED): Remove fallback definitions.
34950         * modules/wait-process (Depends-on): Add sys_wait.
34951
34952         New module 'sys_wait'.
34953         * modules/sys_wait: New file.
34954         * lib/sys_wait.in.h: New file, partially copied from
34955         lib/wait-process.c.
34956         * m4/sys_wait_h.m4: New file.
34957         * doc/posix-headers/sys_wait.texi: Mention the new module.
34958
34959 2008-10-19  Bruno Haible  <bruno@clisp.org>
34960
34961         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
34962
34963 2008-10-19  Bruno Haible  <bruno@clisp.org>
34964
34965         Assume that waitpid() fills an 'int' status, not a 'union wait'.
34966         * lib/wait-process.c (WAIT_T): Remove type.
34967         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
34968         (wait_subprocess): Update.
34969
34970 2008-10-19  Bruno Haible  <bruno@clisp.org>
34971
34972         New module 'atoll'.
34973         * modules/atoll: New file.
34974         * lib/stdlib.in.h (atoll): New declaration.
34975         * lib/atoll.c: New file, from glibc with modifications.
34976         * m4/atoll.m4: New file.
34977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
34978         HAVE_ATOLL.
34979         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
34980         * doc/posix-functions/atoll.texi: Mention the new module.
34981
34982 2008-10-19  Bruno Haible  <bruno@clisp.org>
34983
34984         Add strtoull() declaration to <stdlib.h>.
34985         * lib/stdlib.in.h (strtoull): New declaration.
34986         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34987         Set HAVE_STRTOULL.
34988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
34989         HAVE_STRTOULL.
34990         * modules/strtoull (Depends-on): Add stdlib.
34991         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34992         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
34993         HAVE_STRTOULL.
34994
34995 2008-10-19  Bruno Haible  <bruno@clisp.org>
34996
34997         Add strtoll() declaration to <stdlib.h>.
34998         * lib/stdlib.in.h (strtoll): New declaration.
34999         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35000         Set HAVE_STRTOLL.
35001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
35002         HAVE_STRTOLL.
35003         * modules/strtoll (Depends-on): Add stdlib.
35004         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35005         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
35006
35007 2008-10-19  Bruno Haible  <bruno@clisp.org>
35008
35009         * modules/bcopy (Depends-on): Add strings.
35010         (Include): Specify <strings.h>.
35011
35012 2008-10-19  Bruno Haible  <bruno@clisp.org>
35013
35014         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
35015
35016 2008-10-19  Bruno Haible  <bruno@clisp.org>
35017
35018         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
35019         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
35020         mingw.
35021
35022 2008-10-19  Bruno Haible  <bruno@clisp.org>
35023
35024         * lib/atanl.c: Don't include isnanl.h.
35025         * lib/cosl.c: Likewise.
35026         * lib/ldexpl.c: Likewise.
35027         * lib/logl.c: Likewise.
35028         * lib/sinl.c: Likewise.
35029         * lib/sqrtl.c: Likewise.
35030         * lib/tanl.c: Likewise.
35031
35032         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
35033         * lib/isnanf.h: Remove file.
35034         * lib/isnand.h: Remove file.
35035         * lib/isnanl.h: Remove file.
35036         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
35037         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
35038         macros.
35039         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
35040         HAVE_ISNANF, don't define it as a C macro.
35041         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
35042         HAVE_ISNAND, don't define it as a C macro.
35043         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
35044         HAVE_ISNANL, don't define it as a C macro.
35045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
35046         HAVE_ISNAN[FDL].
35047         * modules/isnanf (Files): Remove lib/isnanf.h.
35048         (Depends-on): Add math.
35049         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35050         (Include): Specify <math.h> instead of isnanf.h.
35051         * modules/isnand (Files): Remove lib/isnand.h.
35052         (Depends-on): Add math.
35053         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35054         (Include): Specify <math.h> instead of isnand.h.
35055         * modules/isnanl (Files): Remove lib/isnanl.h.
35056         (Depends-on): Add math.
35057         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35058         (Include): Specify <math.h> instead of isnanl.h.
35059         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
35060         HAVE_ISNAN[FDL].
35061         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
35062         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
35063         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
35064         * NEWS: Mention the change.
35065
35066 2008-10-18  Bruno Haible  <bruno@clisp.org>
35067
35068         Add getusershell(), setusershell(), endusershell() declarations to
35069         <unistd.h>.
35070         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
35071         declarations.
35072         * lib/getusershell.c: Include unistd.h.
35073         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
35074         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35075         HAVE_GETUSERSHELL.
35076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
35077         and HAVE_GETUSERSHELL.
35078         * modules/getusershell (Depends-on): Add unistd, extensions.
35079         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35080         (Include): Specify <unistd.h>.
35081         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
35082         HAVE_GETUSERSHELL.
35083
35084 2008-10-18  Bruno Haible  <bruno@clisp.org>
35085
35086         Add a getloadavg() declaration to <stdlib.h>.
35087         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
35088         getloadavg declaration.
35089         (getloadavg): New declaration.
35090         * lib/getloadavg.c: Include <stdlib.h> first.
35091         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
35092         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
35093         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
35094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
35095         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35096         * modules/getloadavg (Depends-on): Add stdlib, extensions.
35097         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35098         (Include): Specify <stdlib.h>.
35099         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
35100         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35101
35102 2008-10-18  Bruno Haible  <bruno@clisp.org>
35103
35104         * lib/dirchownmod.c: Don't include lchmod.h.
35105
35106         Move the lchmod() declaration to <sys/stat.h>.
35107         * lib/lchmod.h: Remove file.
35108         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
35109         (lchmod): New declaration, moved here from lib/lchown.h.
35110         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
35111         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
35112         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
35113         and HAVE_LCHMOD.
35114         * modules/lchmod (Files): Remove lib/lchmod.h.
35115         (Depends-on): Add sys_stat, extensions.
35116         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35117         (Include): Specify <sys/stat.h> instead of lchmod.h.
35118         * modules/sys_stat (Depends-on): Add link-warning.
35119         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
35120         definition of GL_LINK_WARNING.
35121         * NEWS: Mention the change.
35122
35123 2008-10-18  Bruno Haible  <bruno@clisp.org>
35124
35125         * lib/fchdir.c: Don't include dirfd.h.
35126         * lib/fts.c: Likewise.
35127         * lib/getcwd.c: Likewise.
35128         * lib/glob.c: Likewise.
35129
35130         Move the dirfd() declaration to <dirent.h>.
35131         * lib/dirfd.h: Remove file.
35132         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
35133         (dirfd): New declaration.
35134         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
35135         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
35136         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
35137         HAVE_DECL_DIRFD.
35138         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
35139         HAVE_DECL_DIRFD.
35140         * modules/dirfd (Files): Remove lib/dirfd.h.
35141         (Depends-on): Add dirent, extensions.
35142         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
35143         (Include): Specify <dirent.h> instead of dirfd.h.
35144         * modules/dirent (Depends-on): Add link-warning.
35145         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
35146         definition of GL_LINK_WARNING.
35147         * NEWS: Mention the change.
35148
35149 2008-10-18  Bruno Haible  <bruno@clisp.org>
35150
35151         Move the euidaccess() declaration to <unistd.h>.
35152         * lib/euidaccess.h: Remove file.
35153         * lib/unistd.in.h (euidaccess): New declaration.
35154         * lib/euidaccess.c: Don't include euidaccess.h.
35155         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
35156         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
35157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
35158         and HAVE_EUIDACCESS.
35159         * modules/euidaccess (Files): Remove lib/euidaccess.h.
35160         (Depends-on): Add unistd.
35161         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35162         (Include): Specify <unistd.h> instead of euidaccess.h.
35163         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
35164         HAVE_EUIDACCESS.
35165         * NEWS: Mention the change.
35166
35167 2008-10-18  Bruno Haible  <bruno@clisp.org>
35168
35169         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
35170
35171         Move the getdomainname() declaration to <unistd.h>.
35172         * lib/getdomainname.h: Remove file.
35173         * lib/unistd.in.h (getdomainname): New declaration.
35174         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
35175         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
35176         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35177         HAVE_GETDOMAINNAME.
35178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35179         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
35180         * modules/getdomainname (Files): Remove lib/getdomainname.h.
35181         (Depends-on): Add unistd, extensions.
35182         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35183         (Includes): Specify <unistd.h> instead of getdomainname.h.
35184         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
35185         HAVE_GETDOMAINNAME.
35186         * NEWS: Mention the change.
35187
35188 2008-10-18  Bruno Haible  <bruno@clisp.org>
35189
35190         * modules/dirent: New file.
35191         * m4/dirent_h.m4: New file.
35192         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
35193         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
35194         * modules/fchdir (Files): Remove lib/dirent.in.h.
35195         (Depends-on): Add dirent.
35196         (Makefile.am): Move rules to modules/dirent.
35197         * doc/posix-headers/dirent.texi: Mention the new module.
35198
35199 2008-10-18  Bruno Haible  <bruno@clisp.org>
35200
35201         Avoid -Wunused-parameter warnings in public gnulib header files.
35202         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
35203         macro.
35204         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
35205
35206 2008-10-18  Bruno Haible  <bruno@clisp.org>
35207
35208         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
35209         * doc/glibc-functions/error.texi: Mention the module 'error'.
35210         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
35211         * doc/glibc-functions/getdomainname.texi: Mention the module
35212         'getdomainname'.
35213         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
35214         * doc/glibc-functions/getpagesize.texi: Mention the module
35215         'getpagesize'.
35216         * doc/glibc-functions/getusershell.texi: Mention the module
35217         'getusershell'.
35218         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
35219         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
35220         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
35221         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
35222         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
35223         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
35224         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
35225         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
35226         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
35227         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
35228         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
35229         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
35230         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
35231         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
35232
35233 2008-10-17  Bruno Haible  <bruno@clisp.org>
35234
35235         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
35236         HP-UX and IRIX, use -0.0L.
35237         * tests/test-ceill.c (minus_zero): Likewise.
35238         * tests/test-floorl.c (minus_zero): Likewise.
35239         * tests/test-frexpl.c (minus_zero): Likewise.
35240         * tests/test-isnan.c (minus_zerol): Likewise.
35241         * tests/test-isnanl.h (minus_zero): Likewise.
35242         * tests/test-ldexpl.c (minus_zero): Likewise.
35243         * tests/test-roundl.c (minus_zero): Likewise.
35244         * tests/test-signbit.c (minus_zerol): Likewise.
35245         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35246         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35247         * tests/test-truncl.c (minus_zero): Likewise.
35248         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35249         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35250         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
35251         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35252
35253 2008-10-17  Bruno Haible  <bruno@clisp.org>
35254
35255         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
35256         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
35257         that it gets activated only for gcc >= 3.0.
35258         * lib/dirent.in.h: Likewise.
35259         * lib/errno.in.h: Likewise.
35260         * lib/fcntl.in.h: Likewise.
35261         * lib/float.in.h: Likewise.
35262         * lib/iconv.in.h: Likewise.
35263         * lib/inttypes.in.h: Likewise.
35264         * lib/locale.in.h: Likewise.
35265         * lib/math.in.h: Likewise.
35266         * lib/netdb.in.h: Likewise.
35267         * lib/netinet_in.in.h: Likewise.
35268         * lib/search.in.h: Likewise.
35269         * lib/signal.in.h: Likewise.
35270         * lib/spawn.in.h: Likewise.
35271         * lib/stdarg.in.h: Likewise.
35272         * lib/stdint.in.h: Likewise.
35273         * lib/stdio.in.h: Likewise.
35274         * lib/stdlib.in.h: Likewise.
35275         * lib/string.in.h: Likewise.
35276         * lib/strings.in.h: Likewise.
35277         * lib/sys_file.in.h: Likewise.
35278         * lib/sys_ioctl.in.h: Likewise.
35279         * lib/sys_select.in.h: Likewise.
35280         * lib/sys_socket.in.h: Likewise.
35281         * lib/sys_stat.in.h: Likewise.
35282         * lib/sys_time.in.h: Likewise.
35283         * lib/sysexits.in.h: Likewise.
35284         * lib/time.in.h: Likewise.
35285         * lib/unistd.in.h: Likewise.
35286         * lib/wchar.in.h: Likewise.
35287         * lib/wctype.in.h: Likewise.
35288         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35289
35290 2008-10-17  Jim Meyering  <meyering@redhat.com>
35291
35292         ignore-value: don't depend on inline module
35293         * modules/ignore-value (Depends-on): Remove 'inline'.
35294         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
35295         Suggestion from Bruno Haible.
35296
35297 2008-10-17  Bruno Haible  <bruno@clisp.org>
35298
35299         New implementation of condition variables for Win32.
35300         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
35301         (gl_linked_waitqueue_t): New type.
35302         (gl_cond_t): Use it.
35303         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
35304         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
35305         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
35306         (glthread_cond_init_func, glthread_cond_wait_func,
35307         glthread_cond_timedwait_func, glthread_cond_signal_func,
35308         glthread_cond_broadcast_func, glthread_cond_destroy_func):
35309         Reimplemented on the basis of gl_linked_waitqueue_t.
35310         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
35311         gl_waitqueue_t.
35312         (gl_rwlock_t): Update.
35313         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
35314
35315 2008-10-17  Simon Josefsson  <simon@josefsson.org>
35316
35317         * modules/recvfrom (Depends-on): Add dependency on getpeername.
35318         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35319
35320 2008-10-17  Jim Meyering  <meyering@redhat.com>
35321
35322         ignore-value: new module
35323         * modules/ignore-value: New file.
35324         * lib/ignore-value.h: New file.
35325         * MODULES.html.sh (Compiler warning management): New section,
35326         just for this module.  More to come.
35327
35328 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35329
35330         open-safer.c: avoid 'signed and unsigned in conditional...' warning
35331         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
35332         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
35333
35334 2008-10-16  Jim Meyering  <meyering@redhat.com>
35335
35336         openat-die.c: avoid 'no previous prototype' warning
35337         * lib/openat-die.c: Include "openat.h".
35338         Reported by Reuben Thomas <rrt@sc3d.org>.
35339
35340 2008-10-16  Simon Josefsson  <simon@josefsson.org>
35341
35342         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
35343         * lib/netdb.in.h: Fix typo.
35344         Reported by Bruno Haible  <bruno@clisp.org>
35345
35346         * lib/netdb.in.h: Include sys/socket.h for platforms without
35347         netdb.h, to get structures like hostent on MinGW.
35348         * modules/netdb (Depends-on): Add sys_socket.
35349
35350 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35351
35352         * modules/netdb, modules/netdb-tests: New file.
35353         * m4/netdb_h.m4: New file.
35354         * lib/netdb.in.h: Add, currently just an empty file pending
35355         definitions.
35356         * tests/test-netdb.c: New file.
35357         * doc/posix-headers/netdb.texi: Mention that we replace it if
35358         needed.
35359         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35360         netdb.
35361
35362 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35363
35364         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
35365         with code.
35366
35367 2008-10-13  Bruno Haible  <bruno@clisp.org>
35368
35369         * lib/glthread/cond.c (glthread_cond_wait_func,
35370         glthread_cond_timedwait_func): Add a comment.
35371
35372 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35373
35374         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
35375         * tests/test-select.c: Likewise,
35376
35377 2008-10-13  Bruno Haible  <bruno@clisp.org>
35378
35379         * lib/glthread/cond.c (glthread_cond_wait_func,
35380         glthread_cond_timedwait_func): Fix variable name.
35381         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35382
35383 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
35384
35385         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
35386         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
35387         struct sockaddr.sa_len.
35388         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
35389
35390 2008-10-13  Simon Josefsson  <simon@josefsson.org>
35391
35392         * build-aux/pmccabe2html: Add css and css_url parameters.
35393
35394 2008-10-12  Bruno Haible  <bruno@clisp.org>
35395
35396         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
35397         calling aclx_get.
35398         Reported by Rainer Tammer <tammer@tammer.net>.
35399
35400 2008-10-12  Bruno Haible  <bruno@clisp.org>
35401
35402         Use msvcrt aware primitives for creation/termination of Win32 threads.
35403         * lib/glthread/thread.c: Include <process.h>.
35404         (glthread_create_func): Use _beginthreadex instead of CreateThread.
35405         (wrapper_func): Update signature.
35406         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
35407
35408 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35409             Bruno Haible  <bruno@clisp.org>
35410
35411         Provide a Win32 implementation of the 'cond' module.
35412         * lib/glthread/cond.h [USE_WIN32]: New implementation.
35413         * lib/glthread/cond.c (glthread_cond_init_func,
35414         glthread_cond_wait_func, glthread_cond_timedwait_func,
35415         glthread_cond_signal_func, glthread_cond_broadcast_func,
35416         glthread_cond_destroy_func) [USE_WIN32]: New functions.
35417         * modules/cond (Dependencies): Add gettimeofday.
35418
35419 2008-10-11  Bruno Haible  <bruno@clisp.org>
35420
35421         Make sleep work on older versions of mingw.
35422         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
35423         only whether it exists.
35424         * doc/posix-functions/sleep.texi: Mention the problem with older
35425         versions of mingw.
35426
35427 2008-10-11  Bruno Haible  <bruno@clisp.org>
35428
35429         New module 'shutdown'.
35430         * modules/shutdown: New file.
35431         * lib/sys_socket.in.h (shutdown): New declaration.
35432         * lib/winsock.c (shutdown): New function.
35433         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35434         GNULIB_SHUTDOWN.
35435         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
35436         * doc/posix-functions/shutdown.texi: Document the new module.
35437
35438 2008-10-11  Jim Meyering  <meyering@redhat.com>
35439
35440         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
35441
35442 2008-10-11  Bruno Haible  <bruno@clisp.org>
35443
35444         New module 'fclose'.
35445         * modules/fclose: New file.
35446         * lib/stdio.in.h (fclose): New declaration.
35447         * lib/fclose.c: New file.
35448         * m4/fclose.m4: New file.
35449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
35450         REPLACE_FCLOSE.
35451         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
35452         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
35453         REPLACE_FCLOSE.
35454         * modules/close (Depends-on): fclose.
35455         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
35456
35457 2008-10-11  Bruno Haible  <bruno@clisp.org>
35458
35459         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
35460         set errno and don't call _close.
35461
35462 2008-10-10  Bruno Haible  <bruno@clisp.org>
35463
35464         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
35465         ACL, not afterwards. Fixes test failure on Cygwin.
35466
35467 2008-10-09  Ben Pfaff  <blp@gnu.org>
35468
35469         * build-aux/announce-gen: Fix gnulib version related part of usage
35470         message.  Die with a useful error message if no tarballs are
35471         found.
35472
35473 2008-10-10  Jim Meyering  <meyering@redhat.com>
35474
35475         bootstrap: use git's --depth=N option only if it's supported
35476         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
35477         recognize the --depth option.  Reported by Pádraig Brady.
35478
35479 2008-10-09  Bruno Haible  <bruno@clisp.org>
35480
35481         New module 'ioctl'.
35482         * modules/ioctl: New file.
35483         * lib/sys_socket.in.h (ioctl): Remove declaration.
35484         * lib/winsock.c: Include <sys/ioctl.h>.
35485         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
35486         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35487         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
35488         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
35489         * doc/posix-functions/ioctl.texi: Mention the new module.
35490
35491 2008-10-09  Bruno Haible  <bruno@clisp.org>
35492
35493         New module 'sys_ioctl'.
35494         * lib/sys_ioctl.in.h: New file.
35495         * m4/sys_ioctl_h.m4: New file.
35496         * modules/sys_ioctl: New file.
35497         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
35498
35499 2008-10-09  Bruno Haible  <bruno@clisp.org>
35500
35501         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
35502         * lib/winsock.c: Include <stdarg.h>.
35503         (rpl_ioctl): Change to second argument 'int' and then varargs.
35504
35505 2008-10-09  Bruno Haible  <bruno@clisp.org>
35506
35507         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
35508         when the sys_socket module is present and the system has <winsock2.h>.
35509
35510 2008-10-09  Bruno Haible  <bruno@clisp.org>
35511
35512         * doc/posix-functions/close.texi: Mention module 'close' instead of
35513         module 'sys_socket'.
35514
35515 2008-10-09  Bruno Haible  <bruno@clisp.org>
35516
35517         * doc/glibc-headers/sys_ioctl.texi: New file.
35518         * doc/gnulib.texi: Include it.
35519
35520 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35521             Bruno Haible  <bruno@clisp.org>
35522
35523         Combine the two replacements of 'close'.
35524         * lib/sys_socket.in.h (close): Define to a reminder to include
35525         <unistd.h>.
35526         (_gl_close_fd_maybe_socket): New declaration.
35527         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
35528         * lib/winsock.c (close): Remove undefinition.
35529         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
35530         needed for the gnulib module 'close'.
35531         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
35532         define to an error symbol or to a warning, if suitable.
35533         * lib/close.c: Include <sys/socket.h>.
35534         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
35535         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
35536         UNISTD_H_HAVE_WINSOCK2_H.
35537         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
35538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35539         UNISTD_H_HAVE_WINSOCK2_H.
35540         * modules/sys_socket (Files): Add m4/unistd_h.m4.
35541         (configure.ac): Set a module indicator.
35542         (Makefile.am): Substitute GNULIB_CLOSE.
35543         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
35544         * modules/poll-tests (Depends-on): Add close.
35545         * modules/select-tests (Depends-on): Likewise.
35546
35547 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35548             Bruno Haible  <bruno@clisp.org>
35549
35550         New module 'close'.
35551         * modules/close: New file.
35552         * lib/unistd.in.h (close): Move declaration out of the
35553         FCHDIR_REPLACEMENT scope.
35554         (_gl_unregister_fd): New declaration.
35555         * lib/close.c: New file.
35556         * lib/fchdir.c (rpl_close): Remove function.
35557         * m4/close.m4: New file.
35558         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35559         close.
35560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
35561         REPLACE_CLOSE.
35562         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
35563         REPLACE_CLOSE.
35564         * modules/fchdir (Depends-on): Add close.
35565
35566 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35567             Bruno Haible  <bruno@clisp.org>
35568
35569         * lib/fcntl.in.h (open): Simplify conditionals.
35570         (_gl_register_fd): New declaration.
35571         * lib/fchdir.c (rpl_open): Remove function.
35572         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
35573         also.
35574         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
35575         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35576         open.
35577
35578 2008-10-09  Jim Meyering  <meyering@redhat.com>
35579
35580         GNUmakefile: use the more name-space-friendly "_version"
35581         * top/GNUmakefile (_dummy): Update.
35582         (_version): Rename from "version".
35583
35584 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35585             Bruno Haible  <bruno@clisp.org>
35586
35587         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
35588         rpl_close.
35589         (_gl_register_fd): New function, extracted from rpl_open.
35590         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
35591         (rpl_open, rpl_opendir): Use _gl_register_fd.
35592
35593 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35594
35595         Fix organization of 'open' replacement.
35596         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
35597         (gl_FUNC_OPEN): Use it.
35598         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
35599
35600 2008-10-08  Bruno Haible  <bruno@clisp.org>
35601
35602         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
35603
35604 2008-10-08  Simon Josefsson  <simon@josefsson.org>
35605
35606         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
35607         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
35608         listen).
35609
35610 2008-10-08  Eric Blake  <ebb9@byu.net>
35611
35612         GNUmakefile: add 'make version' target
35613         * top/GNUmakefile (_curr-ver): Split version update rules...
35614         (version): ...into a target.
35615
35616 2008-10-07  Bruno Haible  <bruno@clisp.org>
35617
35618         Use a more portable replacement expression for -0.0L.
35619         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
35620         instead of -0.0L. Fix m4 quotation.
35621
35622         * tests/test-signbit.c: Include <float.h>.
35623         (minus_zero): New variable.
35624         (test_signbitl): Use minus_zero instead of -zero.
35625         * modules/signbit-tests (Depends-on): Add float.
35626
35627         * tests/test-ceill.c: Include <float.h>.
35628         (zero): Remove variable.
35629         (minus_zero): New variable.
35630         (main): Use minus_zero instead of -zero.
35631         * modules/ceill-tests (Depends-on): Add float.
35632
35633         * tests/test-floorl.c: Include <float.h>.
35634         (zero): Remove variable.
35635         (minus_zero): New variable.
35636         (main): Use minus_zero instead of -zero.
35637         * modules/floorl-tests (Depends-on): Add float.
35638
35639         * tests/test-roundl.c: Include <float.h>.
35640         (zero): Remove variable.
35641         (minus_zero): New variable.
35642         (main): Use minus_zero instead of -zero.
35643         * modules/roundl-tests (Depends-on): Add float.
35644
35645         * tests/test-truncl.c: Include <float.h>.
35646         (zero): Remove variable.
35647         (minus_zero): New variable.
35648         (main): Use minus_zero instead of -zero.
35649         * modules/truncl-tests (Depends-on): Add float.
35650
35651         * tests/test-frexpl.c (zero): Remove variable.
35652         (minus_zero): New variable.
35653         (main): Use minus_zero instead of -zero.
35654         * modules/frexpl-tests (Depends-on): Add float.
35655
35656         * tests/test-isnan.c (zerol): Remove variable.
35657         (minus_zerol): New variable.
35658         (test_long_double): Use minus_zerol instead of -zerol.
35659         * modules/isnan-tests (Depends-on): Add float.
35660
35661         * tests/test-isnanl.h (zero): Remove variable.
35662         (minus_zero): New variable.
35663         (main): Use minus_zero instead of -zero.
35664         * modules/isnanl-nolibm-tests (Depends-on): Add float.
35665         * modules/isnanl-tests (Depends-on): Add float.
35666
35667         * tests/test-ldexpl.c (zero): Remove variable.
35668         (minus_zero): New variable.
35669         (main): Use minus_zero instead of -zero.
35670         * modules/ldexpl-tests (Depends-on): Add float.
35671
35672         * tests/test-snprintf-posix.h (zerol): Remove variable.
35673         (minus_zerol): New variable.
35674         (test_function): Use minus_zerol instead of -zerol.
35675         * modules/snprintf-posix-tests (Depends-on): Add float.
35676         * modules/vsnprintf-posix-tests (Depends-on): Add float.
35677
35678         * tests/test-sprintf-posix.h (zerol): Remove variable.
35679         (minus_zerol): New variable.
35680         (test_function): Use minus_zerol instead of -zerol.
35681         * modules/sprintf-posix-tests (Depends-on): Add float.
35682         * modules/vsprintf-posix-tests (Depends-on): Add float.
35683
35684         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
35685         (minus_zerol): New variable.
35686         (test_function): Use minus_zerol instead of -zerol.
35687         * modules/vasnprintf-posix-tests (Depends-on): Add float.
35688
35689         * tests/test-vasprintf-posix.c (zerol): Remove variable.
35690         (minus_zerol): New variable.
35691         (test_function): Use minus_zerol instead of -zerol.
35692         * modules/vasprintf-posix-tests (Depends-on): Add float.
35693
35694 2008-10-07  Simon Josefsson  <simon@josefsson.org>
35695
35696         * MODULES.html.sh (Support for building documentation): Mention
35697         pmccabe2html.  Sort entries.
35698
35699         Add pmccabe2html module, from gnupdf.
35700         * build-aux/pmccabe.css: New file.
35701         * build-aux/pmccabe2html: New file.
35702         * m4/pmccabe2html.m4: New file.
35703         * modules/pmccabe2html: New file.
35704
35705 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
35706
35707         flock: new module
35708         * MODULES.html.sh: Add to list of modules.
35709         * lib/flock.c: flock implementation for Windows and Unix systems
35710         which have fcntl.
35711         * doc/glibc-functions/flock.texi: Update documentation.
35712         * lib/sys_file.in.h: <sys/file.h> header file.
35713         * m4/flock.m4: M4 macros.
35714         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
35715         * modules/flock: flock module.
35716         * modules/flock-tests: flock tests module.
35717         * modules/sys_file: sys/file.h module.
35718         * tests/test-flock.c: test suite for flock.
35719
35720 2008-10-06  Jim Meyering  <meyering@redhat.com>
35721
35722         bootstrap: check for LT_INIT more portably still ;-)
35723         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
35724         Spotted by Bruno Haible.
35725
35726 2008-10-06  Eric Blake  <ebb9@byu.net>
35727
35728         test-signbit: avoid tripping Irix cc bug on -0.0L
35729         * tests/test-signbit.c (minus_zerol): Delete, and replace with
35730         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
35731         entire testsuite consistent and avoids an Irix 6.2 bug.
35732
35733 2008-10-05  Bruno Haible  <bruno@clisp.org>
35734             Jim Meyering  <jim@meyering.net>
35735
35736         Add an option for ignoring EPIPE during close_stdout.
35737         * lib/closeout.h: Include <stdbool.h>.
35738         (close_stdout_set_ignore_EPIPE): New declaration.
35739         * lib/closeout.c: Include <stdbool.h>.
35740         (ignore_EPIPE): New variable.
35741         (close_stdout_set_ignore_EPIPE): New function.
35742         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
35743         * lib/close-stream.c (close_stream): Mention the possible EPIPE
35744         failure.
35745         * modules/closeout (Depends-on): Add stdbool.
35746
35747 2008-10-05  Bruno Haible  <bruno@clisp.org>
35748
35749         * modules/accept: New file.
35750         * modules/bind: New file.
35751         * modules/connect: New file.
35752         * modules/getpeername: New file.
35753         * modules/getsockname: New file.
35754         * modules/getsockopt: New file.
35755         * modules/listen: New file.
35756         * modules/recv: New file.
35757         * modules/recvfrom: New file.
35758         * modules/send: New file.
35759         * modules/sendto: New file.
35760         * modules/setsockopt: New file.
35761         * modules/socket: New file.
35762         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
35763         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35764         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
35765         the particular module is requested. Add a link warning when the
35766         particular module is not requested.
35767         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
35768         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
35769         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
35770         the particular module is requested.
35771         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
35772         gl_SYS_SOCKET_H_DEFAULTS): New macros.
35773         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
35774         * modules/sys_socket (Depends-on): Add link-warning.
35775         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
35776         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
35777         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
35778         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
35779         GL_LINK_WARNING.
35780         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
35781         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
35782         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
35783         * doc/posix-functions/getpeername.texi: Mention the new module
35784         'getpeername'.
35785         * doc/posix-functions/getsockname.texi: Mention the new module
35786         'getsockname'.
35787         * doc/posix-functions/getsockopt.texi: Mention the new module
35788         'getsockopt'.
35789         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
35790         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
35791         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
35792         * doc/posix-functions/send.texi: Mention the new module 'send'.
35793         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
35794         * doc/posix-functions/setsockopt.texi: Mention the new module
35795         'setsockopt'.
35796         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
35797         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
35798         listen, connect, accept.
35799         * modules/select-tests (Depends-on): Likewise.
35800
35801 2008-10-05  Bruno Haible  <bruno@clisp.org>
35802
35803         * lib/winsock.c (strerror): Remove unused #undef.
35804         (rpl_close): Remove unused local variable.
35805
35806         * modules/sys_socket (Depends-on); Add errno.
35807
35808 2008-10-05  Bruno Haible  <bruno@clisp.org>
35809
35810         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
35811         (select): Add a link warning when the 'select' module is not used.
35812         * modules/sys_select (Depends-on): Add link-warning.
35813         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
35814         Suggested by Paolo Bonzini.
35815
35816 2008-10-05  Jim Meyering  <meyering@redhat.com>
35817
35818         bootstrap: check for LT_INIT more portably
35819         * build-aux/bootstrap: Avoid using grep -E, since it's not
35820         portable enough.  Suggestion from Bruno Haible.
35821
35822 2008-10-05  Bruno Haible  <bruno@clisp.org>
35823
35824         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
35825         as being fixed by gnulib.
35826
35827 2008-10-05  Bruno Haible  <bruno@clisp.org>
35828
35829         * modules/select-tests: New file, mostly copied from
35830         modules/sys_select-tests.
35831         * tests/test-select.c: New file, mostly copied from
35832         tests/test-sys_select.c.
35833         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
35834         * modules/sys_select-tests (Depends-on): Remove all dependencies.
35835         (Makefile.am): Remove test_sys_select_LDADD.
35836
35837         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
35838         to an undefined symbol, for an error message.
35839         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
35840         (gl_SYS_SELECT_H_DEFAULTS): New macro.
35841         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
35842         winsock-select.c here.
35843         * modules/sys_select (Files): Remove lib/winsock-select.c.
35844         (Depends-on): Remove alloca.
35845         (Makefile.am): Substitute GNULIB_SELECT.
35846         * modules/select: New file.
35847         * doc/posix-functions/select.texi: Update.
35848
35849 2008-10-05  Bruno Haible  <bruno@clisp.org>
35850
35851         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
35852         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
35853         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
35854         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
35855         getdtablesize.
35856         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35857         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35858
35859 2008-10-05  Bruno Haible  <bruno@clisp.org>
35860
35861         * modules/getdtablesize-tests: New file.
35862         * tests/test-getdtablesize.c: New file.
35863
35864         New module 'getdtablesize'.
35865         * lib/unistd.in.h (getdtablesize): New declaration.
35866         * lib/getdtablesize.c: New file.
35867         * m4/getdtablesize.m4: New file.
35868         * modules/getdtablesize: New file.
35869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35870         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
35871         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
35872         HAVE_GETDTABLESIZE.
35873         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
35874
35875 2008-10-05  Bruno Haible  <bruno@clisp.org>
35876
35877         * modules/sched (Makefile.am): Fix typo.
35878         Reported by Simon Josefsson.
35879
35880 2008-10-05  Jim Meyering  <meyering@redhat.com>
35881
35882         bootstrap: check for LT_INIT, too
35883         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
35884         are deprecated.  Suggestion from Ralf Wildenhues.
35885
35886 2008-10-05  Bruno Haible  <bruno@clisp.org>
35887
35888         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
35889         overriding them by ours.
35890         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
35891
35892 2008-10-05  Jim Meyering  <meyering@redhat.com>
35893
35894         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
35895         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
35896         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
35897
35898 2008-10-04  Bruno Haible  <bruno@clisp.org>
35899
35900         * modules/dup2 (License): Change to LGPLv2+.
35901         * modules/sleep (License): Likewise.
35902         * modules/perror (License): Likewise.
35903         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
35904         Blake.
35905         * modules/signal (License): Likewise.
35906         * modules/sigprocmask (License): Likewise.
35907         * modules/raise (License): Change to LGPLv2+, with approval by Jim
35908         Meyering.
35909
35910 2008-10-04  Bruno Haible  <bruno@clisp.org>
35911
35912         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
35913         Reported by Rainer Tammer <tammer@tammer.net>.
35914
35915 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
35916             Bruno Haible  <bruno@clisp.org>
35917
35918         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35919         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35920         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35921
35922 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
35923
35924         filevercmp: new module
35925         * lib/filevercmp.h: New function filevercmp comparing version strings.
35926         * lib/filevercmp.c: Implementation of filevercmp function.
35927         * modules/filevercmp: Module metadata.
35928         * tests/test-filevercmp.c: Unit test for new module.
35929         * modules/filevercmp-tests: Unit test metadata.
35930         * MODULES.html.sh: Add filevercmp module.
35931
35932 2008-10-03  Bruno Haible  <bruno@clisp.org>
35933
35934         * lib/c-ctype.h: Add comment.
35935         Reported by Jim Meyering.
35936
35937 2008-10-02  Bruno Haible  <bruno@clisp.org>
35938
35939         * modules/posix_spawn-internal (Depends-on): Add 'open'.
35940
35941 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35942
35943         * build-aux/bootstrap: Allow renaming bootstrap, and change the
35944         name of bootstrap.conf accordingly.
35945
35946 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35947
35948         * build-aux/bootstrap: Install git-merge-changelog configuration
35949         items into .gitconfig if needed.
35950
35951 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35952
35953         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
35954         git repository, and initialize/update it accordingly.
35955
35956 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
35957
35958         * modules/fsync-tests: New file.
35959         * tests/test-fsync.c: New file.
35960
35961         New module 'fsync'.
35962         * lib/fsync.c: New file.
35963         * m4/fsync.m4: New file.
35964         * modules/fsync: New file.
35965         * lib/unistd.in.h (fsync): New declaration.
35966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
35967         GNULIB_FSYNC and HAVE_FSYNC.
35968         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
35969         * MODULES.html.sh (posix_functions): Add fsync.
35970         * doc/posix-functions/fsync.texi: Mention the new module.
35971
35972 2008-10-02  Jim Meyering  <meyering@redhat.com>
35973
35974         fts.c: sync with similar code from coreutils' remove.c
35975         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
35976         Guard also with "#if defined __linux__", since for now at least,
35977         this code is Linux-kernel-specific.
35978
35979 2008-10-02  Jim Meyering  <meyering@redhat.com>
35980
35981         fts: bug fixes
35982         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
35983         Include <sys/vfs.h>, not <sys/statfs.h>.
35984
35985         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
35986         Include <sys/vfs.h>, not <sys/statfs.h>.
35987
35988 2008-10-01  Bruno Haible  <bruno@clisp.org>
35989
35990         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
35991         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
35992         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
35993         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
35994         * doc/posix-functions/posix_spawnp.texi: Likewise.
35995         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
35996         whether posix_spawn actually works.
35997         * m4/pipe.m4 (gl_PIPE): Likewise.
35998         * modules/execute (Files): Add m4/posix_spawn.m4.
35999         * modules/pipe (Files): Add m4/posix_spawn.m4.
36000         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
36001
36002 2008-10-01  Jim Meyering  <meyering@redhat.com>
36003
36004         remove trailing spaces
36005         * NEWS: Likewise.
36006         * lib/poll.c (poll): Likewise.
36007         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
36008         * lib/winsock.c (rpl_close): Likewise.
36009         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
36010         * modules/yield: Likewise.
36011         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
36012         * tests/test-sys_select.c (connect_to_socket): Likewise.
36013
36014         fts.c: adjust a new interface to be more generally useful
36015         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
36016         (fts_build): Adjust caller.
36017
36018 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36019
36020         * modules/cond-tests: New file.
36021         * tests/test-cond.c: New file.
36022
36023 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36024             Bruno Haible  <bruno@clisp.org>
36025
36026         * modules/cond (Dependencies): Add errno, time.
36027         * lib/glthread/cond.h: Include <time.h>.
36028         (gl_cond_define, gl_cond_define_initialized): Use the same definition
36029         across platforms.
36030
36031 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36032             Bruno Haible  <bruno@clisp.org>
36033
36034         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
36035
36036 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36037             Bruno Haible  <bruno@clisp.org>
36038
36039         * modules/tls-tests (Depends-on): Add thread, yield.
36040         (configure.ac): Remove all checks.
36041         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
36042         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36043         gl_thread_self): Remove definitions. Include glthread/thread.h and
36044         glthread/yield.h instead.
36045         (test_tls): Pass an additional NULL argument to gl_thread_join.
36046
36047 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36048             Bruno Haible  <bruno@clisp.org>
36049
36050         * modules/lock-tests (Depends-on): Add thread, yield.
36051         (configure.ac): Remove all checks.
36052         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
36053         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36054         gl_thread_self): Remove definitions. Include glthread/thread.h and
36055         glthread/yield.h instead.
36056         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
36057         additional NULL argument to gl_thread_join.
36058
36059 2008-09-30  Bruno Haible  <bruno@clisp.org>
36060
36061         Fix the Win32 implementation of the 'thread' module.
36062         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
36063         pointer type.
36064         (gl_thread_self): Invoke gl_thread_self_func.
36065         (gl_thread_self_func): New declaration.
36066         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
36067         (do_init_self_key, init_self_key): New functions.
36068         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
36069         Remove some fields.
36070         (running_threads, running_lock): Remove variables.
36071         (get_current_thread_handle): New function.
36072         (gl_thread_self_func, wrapper_func, glthread_create_func,
36073         glthread_join_func, gl_thread_exit_func): Largely rewritten and
36074         simplified.
36075
36076 2008-09-30  Bruno Haible  <bruno@clisp.org>
36077
36078         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
36079         files.
36080
36081 2008-09-30  Jim Meyering  <meyering@redhat.com>
36082
36083         fts.m4: correct the test for statfs.f_type
36084         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
36085         when checking for statfs.f_type.
36086
36087 2008-09-15  Simon Josefsson  <simon@josefsson.org>
36088
36089         tests: avoid some compiler warnings
36090         * tests/test-memchr.c (main): Pass NULL indirectly.
36091         * tests/test-getdate.c (main): Remove unused variable 'ret'.
36092
36093 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
36094
36095         getdate.y: disallow countable dayshifts like "4 yesterday ago"
36096         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
36097         exactly specified dayshifts.
36098         (dayshift): New rule.
36099         (rel): Add dayshift.
36100         (relative_time_table) [tomorrow, yesterday, today, now]:
36101         Use tDAY_SHIFT in place of tDAY_UNIT.
36102         * tests/test-getdate.c: Add tests for now-disallowed countable
36103         dayshifts, e.g., "4 yesterday ago".
36104
36105 2008-09-29  Bruno Haible  <bruno@clisp.org>
36106
36107         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
36108         * tests/test-posix_spawn1.in.sh: Renamed from
36109         tests/test-posix_spawn.in.sh.
36110         * tests/test-posix_spawn2.c: New file.
36111         * tests/test-posix_spawn2.in.sh: New file.
36112         * modules/posix_spawnp-tests (Files): Update.
36113         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
36114
36115 2008-09-29  Bruno Haible  <bruno@clisp.org>
36116
36117         Propagate effects of putenv/setenv/unsetenv to child processes.
36118         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
36119         * lib/pipe.c (create_pipe): Likewise.
36120
36121 2008-09-29  Bruno Haible  <bruno@clisp.org>
36122
36123         Enable use of shell scripts as executables in mingw.
36124         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
36125         run the program as a shell script.
36126         * lib/pipe.c (create_pipe): Likewise.
36127         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
36128         resulting array.
36129
36130 2008-09-29  Eric Blake  <ebb9@byu.net>
36131
36132         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
36133
36134 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
36135
36136         * doc/posix-functions/accept.texi: Update mingw problems.
36137         * doc/posix-functions/bind.texi: Update mingw problems.
36138         * doc/posix-functions/close.texi: Update mingw problems.
36139         * doc/posix-functions/connect.texi: Update mingw problems.
36140         * doc/posix-functions/getpeername.texi: Update mingw problems.
36141         * doc/posix-functions/getsockname.texi: Update mingw problems.
36142         * doc/posix-functions/getsockopt.texi: Update mingw problems.
36143         * doc/posix-functions/ioctl.texi: Update mingw problems.
36144         * doc/posix-functions/listen.texi: Update mingw problems.
36145         * doc/posix-functions/recv.texi: Update mingw problems.
36146         * doc/posix-functions/recvfrom.texi: Update mingw problems.
36147         * doc/posix-functions/select.texi: Update mingw problems.
36148         * doc/posix-functions/send.texi: Update mingw problems.
36149         * doc/posix-functions/sendto.texi: Update mingw problems.
36150         * doc/posix-functions/setsockopt.texi: Update mingw problems.
36151         * doc/posix-functions/socket.texi: Update mingw problems.
36152
36153 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
36154             Bruno Haible  <bruno@clisp.org>
36155
36156         * lib/sys_select.in.h: Include sys/time.h.
36157         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
36158         * modules/sys_select: Depend on sys_time.
36159         * tests/test-sys_select.c: Test that sys/select.h defines struct
36160         timeval fully.
36161
36162 2008-09-29  Bruno Haible  <bruno@clisp.org>
36163
36164         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
36165         * lib/sys_select.in.h: Likewise.
36166
36167 2008-09-29  Bruno Haible  <bruno@clisp.org>
36168
36169         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
36170
36171 2008-09-29  Bruno Haible  <bruno@clisp.org>
36172
36173         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
36174         Set LIBSOCKET instead of augmenting LIBS.
36175         * modules/sockets (Link): New section.
36176         * modules/sockets-tests (test_sockets_LDADD): New variable.
36177         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
36178         * modules/poll-tests (test_poll_LDADD): New variable.
36179         * NEWS: Document the change.
36180
36181 2008-09-29  Bruno Haible  <bruno@clisp.org>
36182
36183         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
36184         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
36185         ARPA_INET_H directly.
36186         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36187
36188 2008-09-28  Bruno Haible  <bruno@clisp.org>
36189
36190         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
36191         from gl_HEADER_SYS_SOCKET.
36192         (gl_HEADER_SYS_SOCKET): Invoke it.
36193         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36194
36195 2008-09-28  Bruno Haible  <bruno@clisp.org>
36196
36197         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
36198         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
36199         Needed on OSF/1 4.0.
36200
36201 2008-09-28  Bruno Haible  <bruno@clisp.org>
36202
36203         Override open more carefully.
36204         * lib/open.c (orig_open): New function.
36205         (rpl_open): Use orig_open instead of open.
36206         * lib/fcntl.in.h: Add special invocation convention.
36207         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
36208         (gl_FUNC_OPEN): Invoke it.
36209
36210         Override freopen more carefully.
36211         * lib/freopen.c (orig_freopen): New function.
36212         (rpl_freopen): Use orig_freopen instead of freopen.
36213         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
36214         (gl_FUNC_FREOPEN): Invoke it.
36215
36216         Override fopen more carefully.
36217         * lib/fopen.c (orig_fopen): New function.
36218         (rpl_fopen): Use orig_fopen instead of fopen.
36219         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
36220         (gl_FUNC_FOPEN): Invoke it.
36221         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
36222
36223 2008-09-28  Bruno Haible  <bruno@clisp.org>
36224
36225         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
36226         SIGPIPE.
36227
36228 2008-09-28  Bruno Haible  <bruno@clisp.org>
36229
36230         * tests/test-sigaction.c (handler, main): Disable the check whether
36231         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
36232         glibc systems with LinuxThreads.
36233
36234 2008-09-28  Bruno Haible  <bruno@clisp.org>
36235
36236         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
36237
36238         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
36239         with AIX xlc.
36240         * lib/fcntl.in.h (open): Likewise.
36241         Reported by Rainer Tammer <tammer@tammer.net>.
36242
36243 2008-09-28  Bruno Haible  <bruno@clisp.org>
36244
36245         * modules/posix_spawnp-tests: New file.
36246         * tests/test-posix_spawn.c: New file.
36247         * tests/test-posix_spawn.in.sh: New file.
36248
36249         New module 'posix_spawnp'.
36250         * modules/posix_spawnp: New file.
36251         * lib/spawnp.c: New file, from GNU libc with modifications.
36252         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
36253
36254         New module 'posix_spawn'.
36255         * modules/posix_spawn: New file.
36256         * lib/spawn.c: New file, from GNU libc with modifications.
36257         * doc/posix-functions/posix_spawn.texi: Mention the new module.
36258
36259         New module 'posix_spawnattr_destroy'.
36260         * modules/posix_spawnattr_destroy: New file.
36261         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
36262         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
36263         module.
36264
36265         New module 'posix_spawnattr_setsigmask'.
36266         * modules/posix_spawnattr_setsigmask: New file.
36267         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
36268         modifications.
36269         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
36270         new module.
36271
36272         New module 'posix_spawnattr_getsigmask'.
36273         * modules/posix_spawnattr_getsigmask: New file.
36274         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
36275         modifications.
36276         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
36277         new module.
36278
36279         New module 'posix_spawnattr_setsigdefault'.
36280         * modules/posix_spawnattr_setsigdefault: New file.
36281         * lib/spawnattr_setdefault.c: New file, from GNU libc with
36282         modifications.
36283         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
36284         new module.
36285
36286         New module 'posix_spawnattr_getsigdefault'.
36287         * modules/posix_spawnattr_getsigdefault: New file.
36288         * lib/spawnattr_getdefault.c: New file, from GNU libc with
36289         modifications.
36290         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
36291         new module.
36292
36293         New module 'posix_spawnattr_setschedpolicy'.
36294         * modules/posix_spawnattr_setschedpolicy: New file.
36295         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
36296         modifications.
36297         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
36298         new module.
36299
36300         New module 'posix_spawnattr_getschedpolicy'.
36301         * modules/posix_spawnattr_getschedpolicy: New file.
36302         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
36303         modifications.
36304         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
36305         new module.
36306
36307         New module 'posix_spawnattr_setschedparam'.
36308         * modules/posix_spawnattr_setschedparam: New file.
36309         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
36310         modifications.
36311         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
36312         new module.
36313
36314         New module 'posix_spawnattr_getschedparam'.
36315         * modules/posix_spawnattr_getschedparam: New file.
36316         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
36317         modifications.
36318         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
36319         new module.
36320
36321         New module 'posix_spawnattr_setpgroup'.
36322         * modules/posix_spawnattr_setpgroup: New file.
36323         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
36324         modifications.
36325         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
36326         module.
36327
36328         New module 'posix_spawnattr_getpgroup'.
36329         * modules/posix_spawnattr_getpgroup: New file.
36330         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
36331         modifications.
36332         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
36333         module.
36334
36335         New module 'posix_spawnattr_setflags'.
36336         * modules/posix_spawnattr_setflags: New file.
36337         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
36338         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
36339         module.
36340
36341         New module 'posix_spawnattr_getflags'.
36342         * modules/posix_spawnattr_getflags: New file.
36343         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
36344         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
36345         module.
36346
36347         New module 'posix_spawnattr_init'.
36348         * modules/posix_spawnattr_init: New file.
36349         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
36350         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
36351         module.
36352
36353         New module 'posix_spawn_file_actions_destroy'.
36354         * modules/posix_spawn_file_actions_destroy: New file.
36355         * lib/spawn_faction_destroy.c: New file, from GNU libc with
36356         modifications.
36357         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
36358         the new module.
36359
36360         New module 'posix_spawn_file_actions_addopen'.
36361         * modules/posix_spawn_file_actions_addopen: New file.
36362         * lib/spawn_faction_addopen.c: New file, from GNU libc with
36363         modifications.
36364         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
36365         the new module.
36366
36367         New module 'posix_spawn_file_actions_adddup2'.
36368         * modules/posix_spawn_file_actions_adddup2: New file.
36369         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
36370         modifications.
36371         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
36372         the new module.
36373
36374         New module 'posix_spawn_file_actions_addclose'.
36375         * modules/posix_spawn_file_actions_addclose: New file.
36376         * lib/spawn_faction_addclose.c: New file, from GNU libc with
36377         modifications.
36378         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
36379         the new module.
36380
36381         New module 'posix_spawn_file_actions_init'.
36382         * modules/posix_spawn_file_actions_init: New file.
36383         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
36384         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
36385         new module.
36386
36387         New module 'posix_spawn-internal'.
36388         * modules/posix_spawn-internal: New file.
36389         * lib/spawn_int.h: New file, from GNU libc with modifications.
36390         * lib/spawni.c: New file, from GNU libc with modifications.
36391         * m4/posix_spawn.m4: New file.
36392
36393         New module 'spawn'.
36394         * modules/spawn: New file.
36395         * lib/spawn.in.h: New file, from GNU libc with modifications.
36396         * m4/spawn_h.m4: New file.
36397         * doc/posix-headers/spawn.texi: Mention the new module.
36398
36399 2008-09-28  Bruno Haible  <bruno@clisp.org>
36400
36401         * modules/sched-tests: New file.
36402         * tests/test-sched.c: New file.
36403
36404         New module 'sched'.
36405         * modules/sched: New file.
36406         * lib/sched.in.h: New file.
36407         * m4/sched_h.m4: New file.
36408         * doc/posix-headers/sched.texi: Mention the new module.
36409
36410 2008-09-27  Eric Blake  <ebb9@byu.net>
36411
36412         Fix previous patch, and tweak references to $0.
36413         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
36414         (func_version, func_gnulib_dir): Don't call this program
36415         gnulib-tool.
36416         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
36417         with using $0 in function.
36418         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
36419         (func_fatal_error): Reuse the name the user invoked us with.
36420
36421 2008-09-27  Bruno Haible  <bruno@clisp.org>
36422
36423         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
36424         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
36425         (gl_ICONV_H): Not here.
36426         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36427         instead of assigning ICONV_H directly.
36428
36429         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
36430         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
36431         WCHAR_H directly.
36432
36433 2008-09-27  Bruno Haible  <bruno@clisp.org>
36434
36435         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
36436         * modules/arpa_inet (Depends-on): Add link-warning.
36437         (Makefile.am): Insert the definition of GL_LINK-WARNING.
36438         * modules/unistd (Makefile.am): Likewise.
36439
36440 2008-09-26  Bruno Haible  <bruno@clisp.org>
36441
36442         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
36443         variables.
36444         (func_version): Essentially copied from gnulib-tool.
36445         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
36446         func_readlink): Copied from gnulib-tool.
36447
36448 2008-09-26  Bruno Haible  <bruno@clisp.org>
36449
36450         * gnulib-tool (func_version): Change directory to $gnulib_dir before
36451         invoking git-version-gen.
36452
36453 2008-09-26  Bruno Haible  <bruno@clisp.org>
36454
36455         * posix-modules: Update to directory names changed on 2008-01-19.
36456         Remove commas in output before splitting into words. No more need to
36457         avoid 'ftruncate' since 2007-02-19.
36458
36459 2008-09-26  Bruno Haible  <bruno@clisp.org>
36460
36461         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
36462
36463 2008-09-26  Bruno Haible  <bruno@clisp.org>
36464
36465         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
36466         * modules/fwriteerror (Depends-on): Add errno.
36467
36468 2008-09-26  Bruno Haible  <bruno@clisp.org>
36469
36470         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
36471         * tests/test-vc-list-files-cvs.sh: Likewise.
36472
36473 2008-09-26  Bruno Haible  <bruno@clisp.org>
36474
36475         * doc/posix-headers/sys_resource.texi: Reorder items.
36476
36477 2008-09-26  Jim Meyering  <meyering@redhat.com>
36478
36479         fts: tweak inode comparison function
36480         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
36481         inode numbers, as documented.
36482
36483         fts: sort dirent entries on inode number before traversing
36484         This avoids a quadratic, seek-related performance penalty when
36485         operating on a directory containing many entries (measurable at 10k;
36486         3.5 hours at 2 million entries with a cold cache) on certain types
36487         of file systems, including ext3 and ext4, but not tmpfs.
36488         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
36489         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
36490         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
36491         (fs_handles_readdir_ordered_dirents_efficiently): New function.
36492         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
36493         (fts_build): Set the stat.st_ino member from D_INO.
36494         If it is likely to be useful, sort dirent entries on inode number.
36495
36496         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
36497         and the struct statfs.f_type member.
36498         * modules/fts (Depends-on): Add d-ino.
36499
36500 2008-09-26  Bruno Haible  <bruno@clisp.org>
36501
36502         * modules/sigpipe-die (Depends-on): Add sigpipe.
36503
36504         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
36505         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
36506         and GNULIB_STDIO_H_SIGPIPE are set.
36507         * lib/stdio-write.c: New file.
36508         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
36509         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36510         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36511         REPLACE_STDIO_WRITE_FUNCS.
36512         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
36513         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36514         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36515         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36516         * modules/stdio (Files): Add lib/stdio-write.c.
36517         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
36518         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36519         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36520         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36521         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
36522         REPLACE_FPRINTF_POSIX.
36523         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
36524         REPLACE_PRINTF_POSIX.
36525         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
36526         REPLACE_VFPRINTF_POSIX.
36527         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
36528         REPLACE_VPRINTF_POSIX.
36529         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
36530         SIGPIPE issue.
36531         * doc/posix-functions/fputc.texi: Likewise.
36532         * doc/posix-functions/fputs.texi: Likewise.
36533         * doc/posix-functions/fwrite.texi: Likewise.
36534         * doc/posix-functions/printf.texi: Likewise.
36535         * doc/posix-functions/putc.texi: Likewise.
36536         * doc/posix-functions/putchar.texi: Likewise.
36537         * doc/posix-functions/puts.texi: Likewise.
36538         * doc/posix-functions/vfprintf.texi: Likewise.
36539         * doc/posix-functions/vprintf.texi: Likewise.
36540
36541         * modules/safe-write (Depends-on): Add write.
36542
36543         * modules/sigpipe-tests: New file.
36544         * tests/test-sigpipe.c: New file.
36545         * tests/test-sigpipe.sh: New file.
36546
36547         * modules/write: New file.
36548         * lib/unistd.in.h: Include <sys/types.h>.
36549         (write): New declaration.
36550         * lib/write.c: New file.
36551         * m4/write.m4: New file.
36552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36553         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
36554         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
36555         GNULIB_WRITE, REPLACE_WRITE.
36556         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
36557         and the SIGPIPE issue.
36558
36559         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
36560         (raise): New declaration.
36561         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
36562         (ext_signal): New function.
36563         (rpl_raise): New function.
36564         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
36565         GNULIB_SIGNAL_H_SIGPIPE.
36566         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
36567         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
36568
36569         * modules/sigpipe: New file.
36570         * m4/sigpipe.m4: New file.
36571
36572 2008-09-25  Derek Price  <derek@ximbiot.com>
36573             Bruno Haible  <bruno@clisp.org>
36574
36575         * gnulib-tool (func_import): Report all license incompatibilities, not
36576         just the first one.
36577
36578 2008-09-25  Bruno Haible  <bruno@clisp.org>
36579
36580         * gnulib-tool (func_import): When computing the edits, consider not
36581         only the Makefile.ams that exist but also those that will be generated.
36582
36583 2008-09-25  Simon Josefsson  <simon@josefsson.org>
36584
36585         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
36586         fixes gnulib-tool --test warning about duplicate dependency.
36587
36588 2008-09-25  Bruno Haible  <bruno@clisp.org>
36589
36590         * gnulib-tool: Don't ask the user to perform edits in the generated
36591         Makefile.ams.
36592         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
36593         apply to the Makefile.am being generated.
36594         (func_emit_tests_Makefile_am): Execute edits that apply to the
36595         Makefile.am being generated.
36596         (func_import): Setup list of Makefile.am edits before emitting the
36597         Makefile.ams, not at the end.
36598         (func_create_testdir): Update.
36599         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36600
36601 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36602
36603         * gnulib-tool (func_import): Store the --tests-base option in the
36604         comment in gnulib-cache.m4.
36605
36606 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
36607
36608         * NEWS: Document increased portability that sys_select now provides.
36609
36610         * lib/sys_select.in.h: Install select wrapper.
36611         * lib/sys_socket.in.h: Use more descriptive name when there is no
36612         select wrapper.
36613         * lib/winsock-select.c: New.
36614         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
36615         Require gl_HEADER_SYS_SOCKET.
36616         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
36617         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
36618         * tests/test-sys_select.c: Add functional tests.
36619
36620 2008-09-24  Eric Blake  <ebb9@byu.net>
36621
36622         open, fopen: close fd leak in last patch
36623         * lib/open.c (rpl_open): Close fd before returning error.
36624         * lib/fopen.c (rpl_fopen): Close fd before returning error.
36625         * doc/posix-functions/open.texi (open): Document that Irix also
36626         has the bug.
36627         * doc/posix-functions/fopen.texi (fopen): Likewise.
36628         Reported by Paolo Bonzini.
36629
36630 2008-09-24  Bruno Haible  <bruno@clisp.org>
36631
36632         Ensure that a filename ending in a slash cannot be used to access a
36633         non-directory.
36634         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
36635         to check whether it's really a directory.
36636         * lib/fopen.c: Include fcntl.h, unistd.h.
36637         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
36638         and fdopen().
36639         * modules/fopen (Depends-on): Add unistd.
36640         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
36641         * tests/test-fopen.c (main): Likewise.
36642         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
36643         * doc/posix-functions/fopen.texi: Likewise.
36644         Reported by Eric Blake.
36645
36646 2008-09-23  Eric Blake  <ebb9@byu.net>
36647
36648         c-stack: avoid compiler optimizations when provoking overflow
36649         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
36650         recursion harder to optimize, to ensure a stack overflow occurs.
36651         * tests/test-c-stack.c (recurse): Likewise.
36652         Borrowed from libsigsegv.
36653
36654         c-stack: work around Irix sigaltstack bug
36655         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
36656         whether sigaltstack uses wrong end of stack_t (copied in part from
36657         libsigsegv).
36658         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
36659         Irix bug, without requiring an over-allocation.
36660         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
36661         bug.
36662
36663         fopen: document mingw bug on directories
36664         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
36665         not allowing a stream visiting a directory, even though reading
36666         from such a stream is not portable.
36667
36668 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36669
36670         * lib/poll.c: Rewrite.
36671         * modules/poll: Depend on alloca.
36672
36673 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36674
36675         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
36676         instead define prototypes for a full set of wrappers.  Ensure
36677         that Cygwin does not use the compatibility code, which is only
36678         for MinGW.
36679         * lib/winsock.c: New.
36680         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
36681         * modules/sys_socket: Add lib/winsock.c.
36682
36683         * modules/poll-tests: Add errno and perror.
36684         * tests/test-poll.c: Use ioctl, not ioctlsocket.
36685
36686 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36687
36688         * tests/test-poll.c: Downgrade minimum needed Winsock version.
36689
36690 2008-09-23  Bruno Haible  <bruno@clisp.org>
36691
36692         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
36693         * doc/glibc-functions/*: Likewise.
36694
36695 2008-09-23  Simon Josefsson  <simon@josefsson.org>
36696
36697         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
36698         success.
36699
36700 2008-09-22  Eric Blake  <ebb9@byu.net>
36701             Bruno Haible  <bruno@clisp.org>
36702
36703         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
36704         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
36705         supply %A but mishandle pseudo-NaN.
36706         Reported by Simon Josefsson.
36707
36708 2008-09-21  Bruno Haible  <bruno@clisp.org>
36709
36710         * tests/test-lock.c (main): Tweak skip message.
36711         * tests/test-tls.c (main): Likewise.
36712
36713 2008-09-21  Bruno Haible  <bruno@clisp.org>
36714
36715         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
36716         whether 'struct sigaction' has sa_sigaction here...
36717         (gl_PREREQ_SIG_HANDLER_H): ... not here.
36718         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
36719
36720 2008-09-21  Bruno Haible  <bruno@clisp.org>
36721
36722         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
36723         section.
36724         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
36725         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
36726         the new section.
36727         (Support for obsolete systems lacking POSIX:2001): New section.
36728         (String handling <string.h>): Move strdup to the new section.
36729         Suggested by Simon Josefsson and Paolo Bonzini.
36730
36731 2008-09-21  Bruno Haible  <bruno@clisp.org>
36732
36733         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
36734         exponents in %e and %g results on 'long double'. Needed for mingw's
36735         improved *printf functions.
36736         * tests/test-vasprintf-posix.c (test_function): Likewise.
36737         * tests/test-snprintf-posix.h (test_function): Likewise.
36738         * tests/test-sprintf-posix.h (test_function): Likewise.
36739         Reported by Eric Blake.
36740
36741 2008-09-21  Bruno Haible  <bruno@clisp.org>
36742
36743         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
36744         * tests/test-sprintf-posix.h (test_function): Likewise.
36745
36746 2008-09-21  Bruno Haible  <bruno@clisp.org>
36747
36748         * modules/getpass (Depends-on): Add strdup-posix.
36749
36750         New module 'strdup-posix'.
36751         * modules/strdup-posix: New file.
36752         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
36753         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
36754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36755         REPLACE_STRDUP.
36756         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
36757         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
36758         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36759         strdup-posix.
36760
36761         * modules/strdup (Depends-on): Remove malloc-posix.
36762
36763 2008-09-20  Bruno Haible  <bruno@clisp.org>
36764
36765         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
36766         Wildenhues.
36767
36768 2008-09-20  Bruno Haible  <bruno@clisp.org>
36769
36770         Ensure that wint_t gets defined on IRIX 5.3.
36771         * lib/wchar.in.h (wint_t): Define if not defined by the system.
36772         * lib/wctype.in.h (wint_t): Likewise.
36773         (__wctype_wint_t): Remove type.
36774         (isw*): Use wint_t instead of __wctype_wint_t.
36775         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
36776         * modules/wchar (Files): Add m4/wint_t.m4.
36777         (Makefile.am): Substitute HAVE_WINT_T.
36778         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
36779         * tests/test-wctype.c: Check that wint_t is defined.
36780         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
36781         * doc/posix-headers/wctype.texi: Likewise.
36782         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36783
36784 2008-09-18  Bruno Haible  <bruno@clisp.org>
36785
36786         * gnulib-tool (func_exit): Update comment.
36787
36788 2008-09-18  Simon Josefsson  <simon@josefsson.org>
36789
36790         * modules/getaddrinfo (Depends-on): Remove strdup, this module
36791         assumes strdup exists and does not depend on strdup to return
36792         ENOMEM on out of memory conditions.
36793
36794 2008-09-18  Bruno Haible  <bruno@clisp.org>
36795
36796         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
36797         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
36798         digits for the exponent.
36799
36800 2008-09-18  Jim Meyering  <meyering@redhat.com>
36801             Bruno Haible  <bruno@clisp.org>
36802
36803         * lib/vasnprintf.c (decimal_point_char): Define also if
36804         NEED_PRINTF_INFINITE_LONG_DOUBLE.
36805
36806 2008-09-16  Bruno Haible  <bruno@clisp.org>
36807         and Eric Blake  <ebb9@byu.net>
36808
36809         vasnprintf: support Irix 5.3
36810         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
36811         that mishandle long double infinity.
36812         Reported by Tom G. Christensen.
36813
36814 2008-09-16  Bruno Haible  <bruno@clisp.org>
36815
36816         * doc/glibc-functions/scandir.texi: Mention the function is missing on
36817         Solaris 9.
36818         * doc/glibc-functions/alphasort.texi: Likewise.
36819         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
36820
36821 2008-09-16  Jim Meyering  <meyering@redhat.com>
36822
36823         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
36824         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
36825         a umask modification leak out of a subshell.  Otherwise, the
36826         opensolaris /bin/sh would be accepted and thus cause unwarranted
36827         failures in the coreutils test suite.
36828
36829 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
36830
36831         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
36832         to succeed.
36833
36834 2008-09-16  Jim Meyering  <meyering@redhat.com>
36835
36836         avoid spurious test failure when library is built without ACL support
36837         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
36838         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
36839         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
36840         * tests/test-copy-acl.sh: Likewise.
36841
36842 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36843
36844         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
36845         based on character occurrence counts.
36846
36847 2008-09-15  Eric Blake  <ebb9@byu.net>
36848
36849         tests: avoid some compiler warnings
36850         * tests/test-memchr.c (main): Pass NULL indirectly.
36851         * tests/test-closein.c (main): Avoid unused variable.
36852
36853 2008-09-15  Bruno Haible  <bruno@clisp.org>
36854
36855         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
36856         are missing on OpenBSD 4.0 individually.
36857         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36858
36859 2008-09-15  Bruno Haible  <bruno@clisp.org>
36860
36861         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
36862         * doc/posix-functions/strerror.texi: Mention also Cygwin.
36863         * doc/posix-functions/perror.texi: Likewise.
36864         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
36865         is missing.
36866         Reported by Eric Blake.
36867
36868         * lib/errno.in.h: Use replacement values >= 2000.
36869         Reported by Eric Blake.
36870
36871 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36872
36873         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
36874         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
36875         limit.
36876         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
36877         compareseq was aborted.
36878
36879 2008-09-14  Bruno Haible  <bruno@clisp.org>
36880
36881         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
36882         yvec_edit_count.
36883         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
36884         (fstrcmp_bounded): Simplify result computation accordingly.
36885
36886 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36887
36888         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
36889         (fstrcmp): Define in terms of fstrcmp_bounded.
36890         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
36891         lower_bound argument.
36892         Return quickly if the result is certainly < lower_bound.
36893         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
36894
36895 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36896
36897         * lib/diffseq.h (EARLY_ABORT): New macro.
36898         (compareseq): Change return type to bool. Return true when EARLY_ABORT
36899         evaluates to true.
36900
36901 2008-09-14  Bruno Haible  <bruno@clisp.org>
36902
36903         * modules/perror-tests: New file.
36904         * tests/test-perror.sh: New file.
36905         * tests/test-perror.c: New file.
36906
36907         New module 'perror'.
36908         * lib/stdio.in.h (perror): New declaration.
36909         * lib/perror.c: New file.
36910         * m4/perror.m4: New file.
36911         * modules/perror: New file.
36912         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
36913         * doc/posix-functions/perror.texi: Mention the perror module.
36914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36915         REPLACE_PERROR.
36916         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
36917         REPLACE_PERROR.
36918
36919 2008-09-14  Bruno Haible  <bruno@clisp.org>
36920
36921         * modules/stdio (Makefile.am): Reorder to match the order in
36922         lib/stdio.in.h.
36923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36924
36925 2008-09-13  Bruno Haible  <bruno@clisp.org>
36926
36927         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
36928
36929 2008-09-13  Bruno Haible  <bruno@clisp.org>
36930
36931         Extend strerror to cover the added errno values.
36932         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
36933         (rpl_strerror): Provide error messages for the added errno values and
36934         for the WSA* values.
36935         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
36936         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
36937         strerror.
36938         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
36939         * modules/strerror (Depends-on): Add errno.
36940         * doc/posix-functions/strerror.texi: Document the change.
36941         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
36942         and EOVERFLOW.
36943
36944 2008-09-13  Bruno Haible  <bruno@clisp.org>
36945
36946         * modules/EOVERFLOW: Remove file.
36947         * m4/eoverflow.m4: Remove file.
36948         * modules/EOVERFLOW-tests: Remove file.
36949         * tests/test-EOVERFLOW.c: Remove file.
36950         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
36951         * modules/ftell (Depends-on): Likewise.
36952         * modules/getdelim (Depends-on): Likewise.
36953         * modules/getugroups (Depends-on): Likewise.
36954         * modules/poll (Depends-on): Likewise.
36955         * modules/snprintf (Depends-on): Likewise.
36956         * modules/sprintf-posix (Depends-on): Likewise.
36957         * modules/vasnprintf (Depends-on): Likewise.
36958         * modules/vasprintf (Depends-on): Likewise.
36959         * modules/vfprintf-posix (Depends-on): Likewise.
36960         * modules/vsnprintf (Depends-on): Likewise.
36961         * modules/vsprintf-posix (Depends-on): Likewise.
36962         * modules/xvasprintf (Depends-on): Likewise.
36963         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36964         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
36965         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
36966         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
36967         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36968         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
36969         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
36970         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
36971         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36972         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
36973         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
36974         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
36975         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36976         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
36977         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
36978         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
36979         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36980         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
36981         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
36982         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
36983         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36984         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
36985         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
36986         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
36987         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
36988         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36989         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
36990         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
36991         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
36992         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
36993         * MODULES.html.sh: Remove EOVERFLOW.
36994         * NEWS: Mention the change.
36995
36996 2008-09-13  Bruno Haible  <bruno@clisp.org>
36997
36998         * modules/errno-tests: New file.
36999         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
37000
37001         * lib/errno.in.h: New file.
37002         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
37003         * modules/errno: New file.
37004         * doc/posix-headers/errno.texi: Update documentation.
37005         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
37006
37007 2008-09-13  Bruno Haible  <bruno@clisp.org>
37008
37009         * tests/test-poll.c: Use #if for native Windows, rather than testing
37010         __MSVCRT__.
37011
37012 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37013             Bruno Haible  <bruno@clisp.org>
37014
37015         * lib/glob.c: Don't include <pwd.h> on native Windows.
37016         (WINDOWS32): New macro.
37017         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
37018
37019 2008-09-13  Bruno Haible  <bruno@clisp.org>
37020
37021         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
37022         (ETIMEDOUT): Remove macro.
37023         (glthread_cond_timedwait_multithreaded): New declaration.
37024         (glthread_cond_timedwait): Use it.
37025         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
37026         (glthread_cond_timedwait_multithreaded): New function.
37027
37028 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37029
37030         * modules/poll-tests: Do not check for io.h.
37031         * tests/test-poll.c: Check for __MSVCRT__ instead.
37032
37033 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37034
37035         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
37036         * modules/poll-tests: Add inet_pton, stdbool, sockets.
37037         * tests/test-poll.c: Use them.  Use _pipe on Windows.
37038
37039 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37040
37041         * modules/poll-tests: New.
37042         * tests/test-poll.c: New.
37043
37044 2008-09-12  Eric Blake  <ebb9@byu.net>
37045
37046         frexp: test for NetBSD failure on -0.0
37047         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
37048         not all, bugs from NetBSD 3.0 have been fixed.
37049         * doc/posix-functions/frexp.texi (frexp): Document bug.
37050         Reported by Thomas Klausner.
37051
37052         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
37053         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
37054         literal -0.0.
37055         Reported by Jonathan C. Patschke <jp@centtech.com>.
37056
37057 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37058
37059         * lib/glthread/cond.h: Use dummy implementation also if
37060         USE_WIN32_THREADS.
37061
37062 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37063
37064         * modules/fnmatch-posix (License): Change to LGPLv2+.
37065         * modules/fnmatch-gnu (License): Likewise.
37066
37067 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37068
37069         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
37070
37071 2008-09-11  Jim Meyering  <meyering@redhat.com>
37072
37073         * users.txt: Add gtk-vnc.
37074
37075 2008-09-08  Simon Josefsson  <simon@josefsson.org>
37076
37077         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
37078         rotate amounts.
37079
37080         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
37081         required for 16-bit and 8-bit rotates.
37082         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
37083         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
37084         UINT8_MAX instead of hard-coded constants.
37085         Suggested by Paul Eggert.
37086
37087 2008-09-07  Bruno Haible  <bruno@clisp.org>
37088
37089         * tests/test-striconveh.c (main): Check behaviour when converting from
37090         UTF-7.
37091
37092         Make striconveh work better with stateful encodings.
37093         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
37094         that iconv does not increment the inptr when returning -1/EINVAL.
37095
37096 2008-09-07  Bruno Haible  <bruno@clisp.org>
37097
37098         * build-aux/config.rpath: Update according to libtool-2.2.6.
37099         * build-aux/config.libpath: Likewise.
37100
37101 2008-09-06  Bruno Haible  <bruno@clisp.org>
37102
37103         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
37104         * lib/freadptr.c (freadptr): Likewise.
37105         * lib/freadseek.c (freadptrinc): Likewise.
37106         Reported by Simon Josefsson.
37107
37108 2008-09-06  Bruno Haible  <bruno@clisp.org>
37109
37110         * modules/freadptr (License): Change to LGPLv2+.
37111         * modules/freadseek (License): Likewise.
37112         Suggested by Eric Blake.
37113
37114         * modules/memchr2 (License): Change to LGPLv2+.
37115         Approved by Eric Blake.
37116
37117 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37118             Bruno Haible  <bruno@clisp.org>
37119
37120         Make gnulib-tool work with native 'sed' on AIX.
37121         * gnulib-tool (sed_noop): New variable.
37122         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
37123         func_add_or_update, func_create_testdir): Use it to initialize sed
37124         script variables.
37125         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37126
37127 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
37128             Bruno Haible  <bruno@clisp.org>
37129
37130         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
37131         also works after #include directives.
37132
37133 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
37134
37135         getdate.y: reject an out-of-range timezone value
37136         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
37137         the range [-24...+24].  When specified with only one or two digits,
37138         * tests/test-getdate.c: Tests for the fix.
37139         * doc/getdate.texi: Document this change.
37140
37141 2008-09-03  Bruno Haible  <bruno@clisp.org>
37142
37143         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
37144
37145 2008-09-02  Simon Josefsson  <simon@josefsson.org>
37146
37147         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
37148         <bruce.korb@gmail.com> with ideas from Ben Pfaff
37149         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
37150         Blake <ebb9@byu.net>.
37151
37152         * tests/test-bitrotate.c: Add more test vectors.
37153
37154 2008-09-02  Eric Blake  <ebb9@byu.net>
37155
37156         vasnprintf-posix: handle large precision via %.*d
37157         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
37158         when handling it ourselves.
37159         * tests/test-vasnprintf-posix.c (test_function): Add test.
37160         * tests/test-snprintf-posix.h (test_function): Likewise.
37161         * tests/test-sprintf-posix.h (test_function): Likewise.
37162         * tests/test-vasprintf-posix.c (test_function): Likewise.
37163         Reported by Alain Guibert.
37164
37165 2008-09-01  Eric Blake  <ebb9@byu.net>
37166
37167         c-stack: make configure-time check more robust
37168         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
37169         successful sigaction call.
37170         Reported by Tom G. Christensen.
37171
37172 2008-09-01  Bruno Haible  <bruno@clisp.org>
37173
37174         New module 'findprog-lgpl'.
37175         * modules/findprog-lgpl: New file.
37176         * lib/findprog-lgpl.c: New file.
37177         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
37178         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
37179         to decide whether to use strdup or xstrdup, concatenated_filename or
37180         xconcatenated_filename.
37181
37182 2008-09-01  Bruno Haible  <bruno@clisp.org>
37183
37184         Split module 'concat-filename' into 'concat-filename' (LGPL) and
37185         'xconcat-filename' (GPL).
37186         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
37187         (License): Change to LGPLv2+.
37188         * modules/xconcat-filename: New file.
37189         * lib/concat-filename.h (concatenated_filename): Change specification.
37190         (xconcatenated_filename): New declaration.
37191         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
37192         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
37193         memory situations.
37194         * lib/xconcat-filename.c: New file.
37195         * NEWS: Mention the change.
37196         * lib/findprog.c: Include concat-filename.h, not filename.h.
37197         (find_in_path): Use xconcatenated_filename instead of
37198         concatenated_filename.
37199         * lib/javacomp.c: Include concat-filename.h, not filename.h.
37200         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37201         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37202         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37203         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
37204         instead of concatenated_filename.
37205         * lib/javaexec.c: Include concat-filename.h, not filename.h.
37206         (execute_java_class): Use xconcatenated_filename instead of
37207         concatenated_filename.
37208         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
37209         * modules/javacomp (Depends-on): Likewise.
37210         * modules/javaexec (Depends-on): Likewise.
37211
37212 2008-09-01  Bruno Haible  <bruno@clisp.org>
37213
37214         Split module 'filename' into 'filename' and 'concat-filename'.
37215         * modules/filename: Keep only lib/filename.h.
37216         (License): Change to LGPLv2+.
37217         * modules/concat-filename: New file, extracted from modules/filename.
37218         * lib/filename.h (concatenated_filename): Remove declaration.
37219         * lib/concat-filename.h: New file, extracted from lib/filename.h.
37220         * lib/concat-filename.c: Include concat-filename.h.
37221         * NEWS: Mention the change.
37222
37223 2008-09-01  Simon Josefsson  <simon@josefsson.org>
37224
37225         * lib/bitrotate.h (rotl8, rotr8): Add.
37226
37227         * modules/bitrotate (configure.ac): Need
37228         AC_REQUIRE([AC_C_INLINE]).
37229         (Description): Mention stdint.h.  Reported by Bruno Haible
37230         <bruno@clisp.org>.
37231
37232         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
37233         Paolo Bonzini <bonzini@gnu.org>.
37234
37235 2008-08-31  Bruno Haible  <bruno@clisp.org>
37236
37237         Assume Solaris specific bi-arch conventions on Solaris systems.
37238         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
37239         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
37240         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
37241         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
37242         like acl_libdirstem.
37243         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
37244         acl_libdirstem.
37245         * NEWS: Mention the change.
37246         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
37247
37248 2008-08-31  Jim Meyering  <meyering@redhat.com>
37249
37250         * lib/strftime.h: Add comments describing the two added arguments.
37251
37252         remove duplicate #include directives
37253         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
37254         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
37255
37256 2008-08-31  Bruno Haible  <bruno@clisp.org>
37257
37258         New module 'sigpipe-die'.
37259         * modules/sigpipe-die: New file.
37260         * lib/sigpipe-die.h: New file.
37261         * lib/sigpipe-die.c: New file.
37262         * MODULES.html.sh (Signal handling): Add sigpipe-die.
37263
37264 2008-08-31  Bruno Haible  <bruno@clisp.org>
37265
37266         Don't override previously installed signal handlers.
37267         * lib/fatal-signal.c (saved_sigactions): New variable.
37268         (uninstall_handlers): Reset the signal to the saved handler, not
37269         to SIG_DFL (except when ignored).
37270         (install_handlers): Save the previous handlers.
37271
37272 2008-08-30  Bruno Haible  <bruno@clisp.org>
37273
37274         * gnulib-tool (func_reset_sigpipe): New function.
37275         (func_get_automake_snippet, func_modules_transitive_closure,
37276         func_import): Invoke it before a join command that reads from stdin,
37277         to avoid "echo: write error: Broken pipe" error messages on stderr.
37278         Reported by Sam Steingold <sds@gnu.org>.
37279
37280 2008-08-30  Bruno Haible  <bruno@clisp.org>
37281
37282         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
37283         Code copied from m4/open.m4.
37284         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
37285         access and the filename ends in a slash. Code copied from lib/open.c.
37286         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
37287         * tests/test-fopen.c (main): Check against bug with trailing slash.
37288
37289 2008-08-29  Bruno Haible  <bruno@clisp.org>
37290
37291         Avoid some "gcc -pedantic" warnings.
37292         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
37293         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
37294         * lib/dirent.in.h: Likewise.
37295         * lib/fcntl.in.h: Likewise.
37296         * lib/float.in.h: Likewise.
37297         * lib/iconv.in.h: Likewise.
37298         * lib/inttypes.in.h: Likewise.
37299         * lib/locale.in.h: Likewise.
37300         * lib/math.in.h: Likewise.
37301         * lib/netinet_in.in.h: Likewise.
37302         * lib/search.in.h: Likewise.
37303         * lib/signal.in.h: Likewise.
37304         * lib/stdarg.in.h: Likewise.
37305         * lib/stdint.in.h: Likewise.
37306         * lib/stdio.in.h: Likewise.
37307         * lib/stdlib.in.h: Likewise.
37308         * lib/string.in.h: Likewise.
37309         * lib/strings.in.h: Likewise.
37310         * lib/sys_select.in.h: Likewise.
37311         * lib/sys_socket.in.h: Likewise.
37312         * lib/sys_stat.in.h: Likewise.
37313         * lib/sys_time.in.h: Likewise.
37314         * lib/sysexits.in.h: Likewise.
37315         * lib/time.in.h: Likewise.
37316         * lib/unistd.in.h: Likewise.
37317         * lib/wchar.in.h: Likewise.
37318         * lib/wctype.in.h: Likewise.
37319         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
37320         * modules/fchdir (Makefile.am): Likewise.
37321         * modules/fcntl (Makefile.am): Likewise.
37322         * modules/float (Makefile.am): Likewise.
37323         * modules/iconv_open (Makefile.am): Likewise.
37324         * modules/inttypes (Makefile.am): Likewise.
37325         * modules/locale (Makefile.am): Likewise.
37326         * modules/math (Makefile.am): Likewise.
37327         * modules/netinet_in (Makefile.am): Likewise.
37328         * modules/search (Makefile.am): Likewise.
37329         * modules/signal (Makefile.am): Likewise.
37330         * modules/stdarg (Makefile.am): Likewise.
37331         * modules/stdint (Makefile.am): Likewise.
37332         * modules/stdio (Makefile.am): Likewise.
37333         * modules/stdlib (Makefile.am): Likewise.
37334         * modules/string (Makefile.am): Likewise.
37335         * modules/strings (Makefile.am): Likewise.
37336         * modules/sys_select (Makefile.am): Likewise.
37337         * modules/sys_socket (Makefile.am): Likewise.
37338         * modules/sys_stat (Makefile.am): Likewise.
37339         * modules/sys_time (Makefile.am): Likewise.
37340         * modules/sysexits (Makefile.am): Likewise.
37341         * modules/time (Makefile.am): Likewise.
37342         * modules/unistd (Makefile.am): Likewise.
37343         * modules/wchar (Makefile.am): Likewise.
37344         * modules/wctype (Makefile.am): Likewise.
37345         Reported by Reuben Thomas <rrt@sc3d.org>.
37346
37347 2008-08-29  Bruno Haible  <bruno@clisp.org>
37348
37349         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
37350         any more.
37351
37352 2008-08-29  Simon Josefsson  <simon@josefsson.org>
37353
37354         * MODULES.html.sh (Misc): Add bitrotate.
37355
37356         * modules/bitrotate: New file.
37357
37358         * lib/bitrotate.h: New file.
37359
37360         * modules/bitrotate-tests: New file.
37361
37362         * tests/test-bitrotate.c: New file.
37363
37364         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
37365         on the bitrotate module.
37366
37367         * lib/arctwo.c: Use new bitrotate module.
37368
37369 2008-08-29  Jim Meyering  <meyering@redhat.com>
37370
37371         bootstrap: merge changes from coreutils
37372         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
37373         of copied files.  Remove a kludge, now that this is fixed.
37374         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
37375         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
37376         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
37377
37378 2008-08-29  Bruno Haible  <bruno@clisp.org>
37379
37380         * MODULES.html.sh: Remove --cvs-urls option.
37381
37382 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
37383
37384         maint.mk: adjust to file name change
37385         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
37386
37387 2008-08-28  Jim Meyering  <meyering@redhat.com>
37388
37389         * modules/getndelim2 (License): Relicense to LGPLv2+.
37390         Approved by Richard Stallman for the version of 1995, and by
37391         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
37392
37393 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
37394
37395         * lib/getdelim.c (flockfile, funlockfile): Make all of them
37396         dummy if one is not available.  Do not touch them if
37397         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
37398         (getc_maybe_unlocked): New.
37399         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
37400
37401 2008-08-26  Eric Blake  <ebb9@byu.net>
37402
37403         doc/INSTALL: resync from autoconf
37404         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
37405         (INSTALL_PRELUDE): Delete; this is done more efficiently by
37406         moving...
37407         * install.texi [!autoconf]: ...here.  Resync from autoconf.
37408         * INSTALL: Regenerate.
37409         * INSTALL.ISO: New file.
37410         * INSTALL.UTF-8: Likewise.
37411
37412 2008-08-26  Jim Meyering  <meyering@redhat.com>
37413
37414         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
37415         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
37416         these definitions conditional, so that they may be overridden, too.
37417
37418 2008-08-26  Bruno Haible  <bruno@clisp.org>
37419
37420         Generate INSTALL file variants with prettier quotes.
37421         * doc/Makefile (INSTALL_PRELUDE): New macro.
37422         (INSTALL): Use it.
37423         (INSTALL.ISO, INSTALL.UTF-8): New rules.
37424
37425 2008-08-26  Bruno Haible  <bruno@clisp.org>
37426
37427         Run makeinfo in an English locale.
37428         * doc/Makefile (MAKEINFO): New variable.
37429
37430 2008-08-26  Bruno Haible  <bruno@clisp.org>
37431
37432         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
37433         Suggested by Eric Blake.
37434
37435 2008-08-25  Bruno Haible  <bruno@clisp.org>
37436
37437         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
37438
37439 2008-08-25  Eric Blake  <ebb9@byu.net>
37440
37441         c-stack: test that stack overflow can be caught
37442         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
37443         that platform allows handling stack overflow; at least OS/2 EMX
37444         has sigaltstack, but crashes before transferring control to
37445         handler on stack overflow.
37446         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
37447         check for HAVE_STACK_OVERFLOW_HANDLING.
37448         Reported by Elbert Pol.
37449
37450 2008-08-25  Bruno Haible  <bruno@clisp.org>
37451
37452         * doc/posix-functions/strftime.texi: Fix description of strftime
37453         module.
37454
37455 2008-08-24  Bruno Haible  <bruno@clisp.org>
37456
37457         * tests/uniwidth/test-uc_width2.c: New file.
37458         * tests/uniwidth/test-uc_width2.sh: New file.
37459         * modules/uniwidth/width-tests (Files): Add the new files.
37460         (TESTS): Add uniwidth/test-uc_width2.sh.
37461         (TESTS_ENVIRONMENT): New variable.
37462         (check_PROGRAMS): Add test-uc_width2.
37463         (test_uc_width2_SOURCES): New variable.
37464
37465         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
37466         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
37467         not 0x00AB.
37468         Reported by Alexander V. Lukyanov <lav@netis.ru>.
37469
37470 2008-08-22  Eric Blake  <ebb9@byu.net>
37471
37472         test-lock, test-tls: mention why a test is skipped
37473         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
37474         skipped.
37475         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
37476
37477         count-one-bits: relax license
37478         * modules/count-one-bits (License): Relicense to LGPLv2+.
37479         Suggested by Ludovic Courtès, approved by Ben Pfaff.
37480
37481 2008-08-22  Andreas Schwab  <schwab@suse.de>
37482
37483         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37484         Remove spurious space in assignment.
37485
37486 2008-08-21  Simon Josefsson  <simon@josefsson.org>
37487
37488         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
37489         Paul Eggert <eggert@CS.UCLA.EDU>.
37490
37491 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
37492
37493         * modules/gettext: Add m4/threadlib.m4.
37494
37495 2008-08-19  Eric Blake  <ebb9@byu.net>
37496
37497         test-c-stack: fix compilation failure on FreeBSD 5.0
37498         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
37499         headers before <sys/resource.h>.
37500         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
37501         the bug.
37502         Reported by Nelson H. F. Beebe.
37503
37504         strverscmp: migrate from "strverscmp.h" to <string.h>
37505         * modules/string (Makefile.am): Add new hooks.
37506         * modules/strverscmp (Files): Remove strverscmp.h.
37507         (Depends-on): Add string.
37508         (configure.ac): Add indicator.
37509         (Include): Mention new header.
37510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
37511         defaults.
37512         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
37513         results.
37514         * lib/strverscmp.h: Delete.
37515         * lib/string.in.h (strverscmp): Provide declaration, when needed.
37516         * tests/test-strverscmp.c (includes): Adjust client.
37517         * lib/check-version.c (includes): Likewise.
37518         * NEWS: Document the change.
37519
37520         strverscmp: add unit test
37521         * modules/strverscmp-tests: New file.
37522         * tests/test-strverscmp.c: Likewise.
37523
37524 2008-08-19  Simon Josefsson  <simon@josefsson.org>
37525
37526         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
37527         regarding Windows crypto stuff, from Mono.
37528
37529 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
37530
37531         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
37532         if present, for intel RND.  Return error on failures.
37533
37534 2008-08-18  Ben Pfaff  <blp@gnu.org>
37535
37536         gitlog-to-changelog: give better diagnostic for failed pipe-open
37537         * build-aux/gitlog-to-changelog: Improve error message: suggest
37538         that the version of Git may be too old.
37539
37540 2008-08-18  Simon Josefsson  <simon@josefsson.org>
37541
37542         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
37543         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
37544
37545 2008-08-18  Bruno Haible  <bruno@clisp.org>
37546
37547         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
37548         pthread_in_use().
37549
37550 2008-08-18  Bruno Haible  <bruno@clisp.org>
37551
37552         * lib/glthread/threadlib.c: Include <pthread.h>.
37553
37554 2008-08-18  Bruno Haible  <bruno@clisp.org>
37555
37556         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
37557         glthread_recursive_lock_* macros.
37558         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
37559         Fix syntax error.
37560
37561 2008-08-18  Bruno Haible  <bruno@clisp.org>
37562
37563         * lib/glthread/thread.c: Avoid forcing a context switch right after
37564         thread creation.
37565
37566 2008-08-17  Bruno Haible  <bruno@clisp.org>
37567
37568         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
37569         * lib/glthread/thread.h: Provide Win32 specific implementation.
37570         * modules/thread (Files): Add lib/glthread/thread.c.
37571         (Depends-on): Add lock.
37572         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
37573
37574 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37575
37576         New module 'yield'.
37577         * modules/yield: New file.
37578         * lib/glthread/yield.h: New file.
37579         * m4/yield.m4: New file.
37580         * MODULES.html.sh (Multithreading): Add yield.
37581
37582 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37583
37584         New module 'thread'.
37585         * modules/thread: New file.
37586         * lib/glthread/thread.h: New file.
37587         * m4/thread.m4: New file.
37588         * MODULES.html.sh (Multithreading): Add thread.
37589
37590 2008-08-17  Bruno Haible  <bruno@clisp.org>
37591
37592         * lib/glthread/lock.h: Include <stdlib.h> always.
37593         * lib/glthread/tls.h: Likewise.
37594         * lib/glthread/cond.h: Likewise.
37595
37596 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37597
37598         New module 'cond'.
37599         * modules/cond: New file.
37600         * lib/glthread/cond.h: New file.
37601         * lib/glthread/cond.c: New file.
37602         * m4/cond.m4: New file.
37603         * MODULES.html.sh (Multithreading): Add cond.
37604
37605 2008-08-16  Eric Blake  <ebb9@byu.net>
37606
37607         c-stack: fix regression on Irix 5.3 from 2008-06-21
37608         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
37609         sa_sigaction...
37610         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
37611         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
37612         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
37613         * modules/signal (Makefile.am): Use the value.
37614         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
37615         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
37616         * doc/posix-headers/signal.texi (signal.h): Document this
37617         portability issue.
37618         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
37619         Reported by Tom G. Christensen.
37620
37621 2008-08-17  Bruno Haible  <bruno@clisp.org>
37622
37623         New module 'threadlib'.
37624         * modules/threadlib: New file.
37625         * lib/glthread/threadlib.c: New file, extracted from
37626         lib/glthread/lock.c.
37627         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
37628         functions.
37629         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
37630         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
37631         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
37632         macros.
37633         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
37634         (gl_DISABLE_THREADS): Remove macro.
37635         * modules/lock (Files): Remove build-aux/config.rpath.
37636         (Depends-on): Remove havelib. Add threadlib.
37637         (configure.ac-early): Remove section.
37638         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
37639         * modules/tls (Depends-on): Remove lock. Add threadlib.
37640         (Link): New section, copied from threadlib.
37641         * MODULES.html.sh (Multithreading): Add threadlib.
37642
37643 2008-08-14  Bruno Haible  <bruno@clisp.org>
37644
37645         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
37646         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
37647         glthread_rwlock_unlock, glthread_rwlock_destroy,
37648         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
37649         glthread_recursive_lock_destroy): Define as macros always.
37650         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
37651         glthread_lock_lock.
37652         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
37653         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
37654         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
37655         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
37656         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
37657         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
37658         (glthread_recursive_lock_lock_func): Renamed from
37659         glthread_recursive_lock_lock.
37660         (glthread_recursive_lock_unlock_func): Renamed from
37661         glthread_recursive_lock_unlock.
37662         (glthread_recursive_lock_destroy_func): Renamed from
37663         glthread_recursive_lock_destroy.
37664
37665 2008-08-14  Bruno Haible  <bruno@clisp.org>
37666
37667         * lib/glthread/lock.h: Renamed from lib/lock.h.
37668         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
37669         * lib/glthread/tls.h: Renamed from lib/tls.h.
37670         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
37671         * lib/fstrcmp.c: Update includes.
37672         * lib/strsignal.c: Update includes.
37673         * modules/lock (Files, Makefile.am): Update.
37674         (Include): Change to "glthread/lock.h".
37675         * modules/tls (Files, Makefile.am): Update.
37676         (Include): Change to "glthread/tls.h".
37677         * tests/test-lock.c: Update includes.
37678         * tests/test-tls.c: Update includes.
37679         * NEWS: Mention the renamed header files.
37680
37681 2008-08-11  Jim Meyering  <meyering@redhat.com>
37682
37683         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
37684
37685 2008-08-11  Eric Blake  <ebb9@byu.net>
37686
37687         test-c-stack: avoid C99-ism
37688         * tests/test-c-stack.c (main): Fix whitespace, move declaration
37689         before statement.
37690         Reported by Alain Guibert.
37691
37692 2008-08-10  Jim Meyering  <meyering@redhat.com>
37693
37694         ensure that return value of uinttostr et al are not ignored
37695         * lib/inttostr.h (__GNUC_PREREQ): Define.
37696         (__attribute_warn_unused_result__): Define.
37697         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
37698
37699 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
37700
37701         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
37702         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
37703
37704 2008-08-07  Jim Meyering  <meyering@redhat.com>
37705
37706         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
37707
37708         * modules/mkstemp (License): Relicense under LGPLv2+.
37709         * modules/tempname (License): Likewise.
37710
37711 2008-08-06  Bruno Haible  <bruno@clisp.org>
37712
37713         * lib/poll.c (poll): Further micro-optimization.
37714
37715 2008-08-06  Jim Meyering  <meyering@redhat.com>
37716
37717         inet_pton.c: use locale-independent tolower
37718         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
37719         (inet_pton6): Use c_tolower rather than tolower.
37720         * modules/inet_pton (Depends-on): Add c-ctype.
37721
37722 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
37723
37724         * lib/poll.c (poll): Avoid division when timeout is 0, cache
37725         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
37726
37727 2008-08-06  Jim Meyering  <meyering@redhat.com>
37728
37729         * modules/inet_pton (License): Relicense under LGPLv2+.
37730
37731 2008-08-03  Bruno Haible  <bruno@clisp.org>
37732
37733         Additional non-aborting API for lock and tls.
37734         * lib/lock.h: Include <errno.h>.
37735         (glthread_lock_init): New macro/function.
37736         (gl_lock_init): Define as wrapper around glthread_lock_init.
37737         (glthread_lock_lock): New macro/function.
37738         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
37739         (glthread_lock_unlock): New macro/function.
37740         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
37741         (glthread_lock_destroy): New macro/function.
37742         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
37743         (glthread_rwlock_init): New macro/function.
37744         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
37745         (glthread_rwlock_rdlock): New macro/function.
37746         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
37747         (glthread_rwlock_wrlock): New macro/function.
37748         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
37749         (glthread_rwlock_unlock): New macro/function.
37750         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
37751         (glthread_rwlock_destroy): New macro/function.
37752         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
37753         (glthread_recursive_lock_init): New macro/function.
37754         (gl_recursive_lock_init): Define as wrapper around
37755         glthread_recursive_lock_init.
37756         (glthread_recursive_lock_lock): New macro/function.
37757         (gl_recursive_lock_lock): Define as wrapper around
37758         glthread_recursive_lock_lock.
37759         (glthread_recursive_lock_unlock): New macro/function.
37760         (gl_recursive_lock_unlock): Define as wrapper around
37761         glthread_recursive_lock_unlock.
37762         (glthread_recursive_lock_destroy): New macro/function.
37763         (gl_recursive_lock_destroy): Define as wrapper around
37764         glthread_recursive_lock_destroy.
37765         (glthread_once): New macro/function.
37766         (gl_once): Define as wrapper around glthread_once.
37767         Update function declarations.
37768         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
37769         glthread_rwlock_init. Return error code.
37770         (glthread_rwlock_rdlock_multithreaded): Renamed from
37771         glthread_rwlock_rdlock. Return error code.
37772         (glthread_rwlock_wrlock_multithreaded): Renamed from
37773         glthread_rwlock_wrlock. Return error code.
37774         (glthread_rwlock_unlock_multithreaded): Renamed from
37775         glthread_rwlock_unlock. Return error code.
37776         (glthread_rwlock_destroy_multithreaded): Renamed from
37777         glthread_rwlock_destroy. Return error code.
37778         (glthread_recursive_lock_init_multithreaded): Renamed from
37779         glthread_recursive_lock_init. Return error code.
37780         (glthread_recursive_lock_lock_multithreaded): Renamed from
37781         glthread_recursive_lock_lock. Return error code.
37782         (glthread_recursive_lock_unlock_multithreaded): Renamed from
37783         glthread_recursive_lock_unlock. Return error code.
37784         (glthread_recursive_lock_destroy_multithreaded): Renamed from
37785         glthread_recursive_lock_destroy. Return error code.
37786         (glthread_once_call): Make static.
37787         (glthread_once_multithreaded): Renamed from glthread_once.
37788         * lib/tls.h: Include <errno.h>.
37789         (glthread_tls_key_init): New macro/function.
37790         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
37791         (glthread_tls_set): New macro/function.
37792         (gl_tls_set): Define as wrapper around glthread_tls_set.
37793         (glthread_tls_key_destroy): New macro/function.
37794         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
37795         Update function declarations.
37796         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
37797         glthread_tls_get.
37798         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37799
37800 2008-08-04  Eric Blake  <ebb9@byu.net>
37801
37802         gnumakefile: use space, not TAB, outside of targets
37803         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
37804
37805 2008-08-02  Jim Meyering  <meyering@redhat.com>
37806
37807         getdate.y: avoid locale-dependent date parsing failure
37808         In Turkish locales, getdate would fail to recognize keywords
37809         containing a lowercase "i".  The solution is not to rely on
37810         locale-sensitive case-conversion.
37811         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
37812         (lookup_word): Use c_toupper in place of toupper.
37813         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
37814         Reported by Vefa Bicakci <bicave@superonline.com> in
37815         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
37816         * modules/getdate (Depends-on): Add c-ctype.
37817
37818 2008-08-02  Bruno Haible  <bruno@clisp.org>
37819
37820         * gnulib-tool (func_import): When updating or creating a .gitignore
37821         file, prepend each added line with a slash, and ignore leading slashes
37822         from the existing lines.
37823         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37824
37825 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37826
37827         Portability fix for GNU make 3.79.1.
37828         * top/GNUmakefile: Avoid 'else COND', which older GNU make
37829         versions do not understand.
37830
37831 2008-08-01  Bruno Haible  <bruno@clisp.org>
37832
37833         Work around bug of HP-UX 10.20 cc with -0.0 literal.
37834         * tests/test-isnanf.h (zero): New variable.
37835         (main): Avoid literal -0.0f.
37836         * tests/test-isnand.h (zero): New variable.
37837         (main): Avoid literal -0.0.
37838         * tests/test-isnanl.h (zero): New variable.
37839         (main): Avoid literal -0.0L.
37840         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
37841         (test_float, test_double, test_long_double): Avoid literals -0.0f,
37842         -0.0, -0.0L.
37843         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
37844         (test_signbitd): Avoid literal -0.0.
37845         (test_signbitl): Avoid literal -0.0L.
37846         * tests/test-ceilf1.c (zero): New variable.
37847         (main): Avoid literal -0.0f.
37848         * tests/test-ceill.c (zero): New variable.
37849         (main): Avoid literal -0.0L.
37850         * tests/test-floorf1.c (zero): New variable.
37851         (main): Avoid literal -0.0f.
37852         * tests/test-floorl.c (zero): New variable.
37853         (main): Avoid literal -0.0L.
37854         * tests/test-roundf1.c (zero): New variable.
37855         (main): Avoid literal -0.0f.
37856         * tests/test-round1.c (zero): New variable.
37857         (main): Avoid literal -0.0.
37858         * tests/test-roundl.c (zero): New variable.
37859         (main): Avoid literal -0.0L.
37860         * tests/test-truncf1.c (zero): New variable.
37861         (main): Avoid literal -0.0f.
37862         * tests/test-trunc1.c (zero): New variable.
37863         (main): Avoid literal -0.0.
37864         * tests/test-truncl.c (zero): New variable.
37865         (main): Avoid literal -0.0L.
37866         * tests/test-frexp.c (zero): New variable.
37867         (main): Avoid literal -0.0.
37868         * tests/test-frexpl.c (zero): New variable.
37869         (main): Avoid literal -0.0L.
37870         * tests/test-ldexpl.c (zero): New variable.
37871         (main): Avoid literal -0.0L.
37872         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37873         (zerod, zerol): New variables.
37874         (test_function): Avoid literals -0.0, -0.0L.
37875         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37876         (zerod, zerol): New variables.
37877         (test_function): Avoid literals -0.0, -0.0L.
37878         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37879         (zerod, zerol): New variables.
37880         (test_function): Avoid literals -0.0, -0.0L.
37881         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37882         (zerod, zerol): New variables.
37883         (test_function): Avoid literals -0.0, -0.0L.
37884         * tests/test-strtod.c (zero): New variable.
37885         (main): Avoid literal -0.0.
37886         Reported by Jonathan C. Patschke <jp@centtech.com>.
37887
37888 2008-07-31  Jim Meyering  <meyering@redhat.com>
37889
37890         sha256.h: correct definition of SHA224_DIGEST_SIZE
37891         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
37892         Reported by Paulie Pena IV <paulie4@gmail.com>.
37893         Define as 224 / 8, rather than as a literal.
37894         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
37895         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
37896         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
37897
37898 2008-07-31  Bruno Haible  <bruno@clisp.org>
37899
37900         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
37901         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
37902         Reported by Jonathan Patschke <jp@centtech.com>.
37903
37904 2008-07-31  Bruno Haible  <bruno@clisp.org>
37905
37906         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
37907         Reported by Paolo Bonzini <bonzini@gnu.org>.
37908
37909 2008-07-30  Eric Blake  <ebb9@byu.net>
37910
37911         test-strtod: allow compilation without -lm
37912         * tests/test-strtod.c (main): Avoid link dependence on fabs.
37913         Reported by Dennis Clarke <blastwave@gmail.com>.
37914
37915 2008-07-28  Jim Meyering  <meyering@redhat.com>
37916
37917         bootstrap: work also when there are no .po files in po/
37918         * build-aux/bootstrap (update_po_files): Complete the change
37919         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37920
37921 2008-07-27  Jim Meyering  <meyering@redhat.com>
37922
37923         * users.txt: Add zile.
37924
37925 2008-07-26  Ben Pfaff  <blp@gnu.org>
37926
37927         Add missing dependencies on new m4/exponent[fdl].m4 files.
37928         * modules/isnanf-nolibm: Add m4/exponentf.m4.
37929         * modules/isnand-nolibm: Add m4/exponentd.m4.
37930         * modules/isnanl-nolibm: Add m4/exponentl.m4.
37931         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
37932         m4/isnan[fdl].m4, because the macros actually used moved.
37933         Reported by Jim Meyering.
37934
37935 2008-07-14  Ben Pfaff  <blp@gnu.org>
37936
37937         Add isinf module.
37938         * lib/isinf.c: New file.
37939         * lib/math.in.h: Define isinf macro if we have decided to replace
37940         it.
37941         * m4/isinf.m4: New file.
37942         * m4/math_h.m4: Initialize and substitute variables for isinf
37943         module.
37944         * modules/isinf: New file.
37945         * modules/isinf-tests: New file.
37946         * modules/math: Add substitutions for new module.
37947         * tests/test-isinf.c: New file.
37948         * doc/posix-functions/isinf.texi: Mention new module.
37949         * MODULES.html.sh: Mention new module.
37950
37951 2008-07-14  Ben Pfaff  <blp@gnu.org>
37952
37953         Factor out some macros for use by additional modules.
37954         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
37955         exponentf.m4.
37956         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
37957         exponentd.m4.
37958         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
37959         file exponentl.m4.
37960         * m4/exponentf.m4: New file.
37961         * m4/exponentd.m4: New file.
37962         * m4/exponentl.m4: New file.
37963         * modules/isnanf: Use new file m4/exponentf.m4.
37964         * modules/isnand: Use new file m4/exponentd.m4.
37965         * modules/isnanl: Use new file m4/exponentl.m4.
37966
37967 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
37968
37969         mktime.c: normalize tp->tm_isdst value to -1/0/1.
37970         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
37971         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
37972         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
37973
37974         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
37975         readlink on platforms without PATH_MAX.
37976
37977 2008-07-21  Eric Blake  <ebb9@byu.net>
37978
37979         Warn, not fail, on stale version.
37980         * top/GNUmakefile (_curr-ver): Tone down previous patch.
37981
37982         Don't allow installation with stale devel version number.
37983         * top/GNUmakefile (_is-install-target): New macro.
37984         (_curr-ver): Forbid installation with stale version number.
37985
37986 2008-07-20  Bruno Haible  <bruno@clisp.org>
37987
37988         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
37989         TESTS_ENVIRONMENT.
37990         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
37991
37992 2008-07-20  Bruno Haible  <bruno@clisp.org>
37993
37994         * lib/c-stack.h (c_stack_action): Add documentation.
37995         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
37996
37997 2008-07-20  Bruno Haible  <bruno@clisp.org>
37998
37999         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
38000         * modules/readlink (License): Likewise.
38001
38002 2008-07-17  Eric Blake  <ebb9@byu.net>
38003
38004         * modules/c-stack (Link): Fix typo.
38005
38006         Make c-stack use libsigsegv, when available.
38007         * modules/c-stack (Depends-on): Add libsigsegv.
38008         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
38009         needed.
38010         * lib/c-stack.c (SIGSTKSZ): Define fallback.
38011         (segv_handler, overflow_handler, c_stack_action)
38012         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
38013         implementation when libsigsegv is available, but only when using
38014         the library is necessary.
38015         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
38016         comment, explaining why XSI check fails on Linux.
38017         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
38018         * tests/test-c-stack2.sh: Tweak skip message.
38019         * NEWS: Document new link-time requirements.
38020
38021 2008-07-16  Eric Blake  <ebb9@byu.net>
38022
38023         c-stack: Expose false positives when not using libsigsegv.
38024         * modules/c-stack-tests (Files): Expand test.
38025         * tests/test-c-stack.c (main): Add means to conditionally trigger
38026         non-overflow SIGSEGV.
38027         * tests/test-c-stack2.sh: New file.
38028
38029 2008-07-14  Bruno Haible  <bruno@clisp.org>
38030
38031         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
38032         Reported by Eric Blake.
38033
38034 2008-07-14  Sam Steingold  <sds@gnu.org>
38035             Bruno Haible  <bruno@clisp.org>
38036
38037         New module libsigsegv.
38038         * modules/libsigsegv: New file.
38039         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
38040         modifications.
38041         * MODULES.html.sh (Signal handling): New section.
38042
38043 2008-07-14  Bruno Haible  <bruno@clisp.org>
38044
38045         * modules/unictype/ctype-* (Description): Add the word "function".
38046         Improves the resulting doc in MODULES.html.
38047
38048 2008-07-12  Ben Pfaff  <blp@gnu.org>
38049
38050         Add longlong module.
38051         * modules/longlong: New file.
38052
38053 2008-07-12  Bruno Haible  <bruno@clisp.org>
38054
38055         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
38056         to empty.
38057
38058 2008-07-10  Ben Pfaff  <blp@gnu.org>
38059
38060         Add isnan module.
38061         * doc/posix-functions/isnan.texi: Mention new module.
38062         * lib/math.in.h: Define isnan macro if we have decided to replace
38063         it.
38064         * m4/isnan.m4: New file.
38065         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
38066         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
38067         also.
38068         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
38069         redundancy.
38070         * m4/math_h.m4: Initialize and substitute variables for isnan
38071         module.
38072         * modules/isnan: New file.
38073         * modules/isnan-tests: New file.
38074         * modules/math: Add substitutions for new module.
38075         * tests/test-isnan.c: New file.
38076         * MODULES.html.sh: Mention new module.
38077
38078 2008-07-10  Ben Pfaff  <blp@gnu.org>
38079
38080         Add isnanf module.
38081         * lib/isnanf.m4: New file.
38082         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
38083         (gl_HAVE_ISNANF_IN_LIBM): New macro.
38084         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
38085         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
38086         * modules/isnanf: New file.
38087         * modules/isnanf-tests: New file.
38088         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
38089         files.
38090         * tests/test-isnanf-nolibm.c: factored most of its contents into
38091         new file tests/test-isnanf.h.
38092         * tests/test-isnanf.h: New file.
38093         * tests/test-isnanf.c: New file.
38094         * MODULES.html.sh: Mention new module.
38095         * doc/glibc-functions/isnanf.texi: Mention new module.
38096
38097 2008-07-10  Ben Pfaff  <blp@gnu.org>
38098
38099         Add isnand module.
38100         * lib/isnand.h: New file.
38101         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
38102         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
38103         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
38104         functionality also.
38105         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
38106         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
38107         (gl_HAVE_ISNAND_IN_LIBM): New macro.
38108         * modules/isnand: New file.
38109         * modules/isnand-tests: New file.
38110         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
38111         files.
38112         * tests/test-isnand-nolibm.c: factored most of its contents into
38113         new file tests/test-isnand.h.
38114         * tests/test-isnand.h: New file.
38115         * tests/test-isnand.c: New file.
38116         * MODULES.html.sh: Mention new module.
38117
38118 2008-07-10  Ben Pfaff  <blp@gnu.org>
38119
38120         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
38121         * lib/isnand.h: Rename lib/isnand-nolibm.h.
38122         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
38123         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
38124         * modules/isnanf-nolibm: Update references to renamed files.
38125         * modules/isnand-nolibm: Likewise.
38126         * modules/isnanf-nolibm-tests: Likewise.
38127         * modules/isnand-nolibm-tests: Likewise.
38128         * lib/frexp.c: Likewise.
38129         * lib/isfinite.c: Likewise.
38130         * lib/signbitd.c: Likewise.
38131         * lib/signbitf.c: Likewise.
38132         * lib/vasnprintf.c: Likewise.
38133         * tests/test-ceilf1.c: Likewise.
38134         * tests/test-ceilf2.c: Likewise.
38135         * tests/test-floorf1.c: Likewise.
38136         * tests/test-floorf2.c: Likewise.
38137         * tests/test-frexp.c: Likewise.
38138         * tests/test-round1.c: Likewise.
38139         * tests/test-round2.c: Likewise.
38140         * tests/test-roundf1.c: Likewise.
38141         * tests/test-strtod.c: Likewise.
38142         * tests/test-trunc1.c: Likewise.
38143         * tests/test-trunc2.c: Likewise.
38144         * tests/test-truncf1.c: Likewise.
38145         * tests/test-truncf2.c: Likewise.
38146         * NEWS: Mention the renamed header files.
38147
38148 2008-07-11  Jim Meyering  <meyering@redhat.com>
38149
38150         vc-list-files: make the last-resort awk code more portable
38151         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
38152         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
38153         does not support it.
38154
38155 2008-07-10  Eric Blake  <ebb9@byu.net>
38156
38157         Work with tar's bootstrap.
38158         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
38159         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
38160         an m4 comment.
38161
38162 2008-07-09  Jim Meyering  <meyering@redhat.com>
38163
38164         posix-shell.m4: fix typo that made this test malfunction
38165         * m4/posix-shell.m4: Remove capitalization in variable name.
38166
38167 2008-07-08  Bruno Haible  <bruno@clisp.org>
38168
38169         * m4/onceonly.m4: Update comments.
38170         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38171
38172 2008-07-04  Jim Meyering  <meyering@redhat.com>
38173
38174         * users.txt: Add vc-dwim.
38175         (bison, coreutils): Use the gitweb URL.
38176
38177 2008-07-03  Jim Meyering  <meyering@redhat.com>
38178
38179         * users.txt: Add libffcall.  From Sam Steingold.
38180
38181 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
38182
38183         getdate.y: do not ignore TZ with relative day, month or year offset
38184         * lib/getdate.y (get_date): Move the tz-handling block to follow the
38185         relative-date-handling, since otherwise, the latter would clobber the
38186         sole output (an updated Start value) of the tz-handling block.
38187         * tests/test-getdate.c: Tests for the fix
38188
38189 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38190
38191         Recognize 'foo_LIBRARIES += libgnu.a'.
38192         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
38193         makefile snippet has already specified an installation location,
38194         also using '+='.
38195
38196 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
38197
38198         getdate.y: factor out common actions
38199         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
38200         Use them in place of open-coded actions.
38201
38202 2008-07-01  Simon Josefsson  <simon@josefsson.org>
38203
38204         Add self-test for getdate module.
38205         * modules/getdate-tests: New file.
38206         * tests/test-getdate.c: New file.
38207
38208 2008-06-29  Bruno Haible  <bruno@clisp.org>
38209
38210         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
38211         .gitignore.
38212         Reported by Sylvain Beucler <beuc@beuc.net>.
38213
38214 2008-06-29  Bruno Haible  <bruno@clisp.org>
38215
38216         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
38217         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
38218
38219 2008-06-29  Bruno Haible  <bruno@clisp.org>
38220
38221         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
38222         EXTRA_DIST.
38223         Reported by Sylvain Beucler <beuc@beuc.net>.
38224
38225 2008-06-26  Jim Meyering  <meyering@redhat.com>
38226
38227         make several modules depend on the "open" module
38228         This provides slightly increased consistency when opening-for-write
38229         the name of a non-directory spelled with a trailing slash.
38230         * modules/chdir-safer: Likewise.
38231         * modules/chown: Likewise.
38232         * modules/clean-temp: Likewise.
38233         * modules/copy-file: Likewise.
38234         * modules/fchdir: Likewise.
38235         * modules/fcntl-safer: Likewise.
38236         * modules/pipe: Likewise.
38237         * modules/utime: Likewise.
38238         Prompted by Eric Blake and Bruno Haible.
38239
38240 2008-06-24  Andreas Schwab  <schwab@suse.de>
38241
38242         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
38243         literals can be used as initializers for global variables.
38244
38245 2008-06-23  Eric Blake  <ebb9@byu.net>
38246
38247         Make gnulib-cache.m4 easier to diff.
38248         * gnulib-tool (func_import): Allow newlines when reading cached
38249         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
38250
38251 2008-06-23  Bruno Haible  <bruno@clisp.org>
38252
38253         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
38254         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
38255         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
38256         m4/signalblocking.m4.
38257         (gl_PREREQ_SIGACTION): Don't invoke it.
38258         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
38259         gl_PREREQ_SIG_HANDLER_H.
38260         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38261         Don't check for sigaction here.
38262
38263 2008-06-23  Bruno Haible  <bruno@clisp.org>
38264
38265         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
38266         (install_handlers): Don't set the SA_RESETHAND flag.
38267
38268 2008-06-23  Bruno Haible  <bruno@clisp.org>
38269
38270         * m4/sigaction.m4: Comment fixes.
38271         * lib/signal.in.h: Likewise.
38272
38273 2008-06-23  Eric Blake  <ebb9@byu.net>
38274
38275         Fix typo.
38276         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
38277
38278         Avoid SA_ namespace.
38279         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
38280         Reported by Ralf Wildenhues.
38281
38282         Avoid test failure due to SA_RESTORER.
38283         * tests/test-sigaction.c (SA_MASK): New macro.
38284         (main): Avoid failing due to extension flags being set.
38285         Reported by Jim Meyering.
38286
38287         Revert use of sig-handler.h in sigprocmask.c.
38288         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
38289         it requires the existence of struct sigaction.
38290         * lib/sigprocmask.c (handler_t): Restore typedef.
38291         (rpl_signal, old_handlers): Use local type.
38292
38293 2008-06-22  Bruno Haible  <bruno@clisp.org>
38294
38295         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
38296         conditionally.
38297         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38298
38299 2008-06-22  Bruno Haible  <bruno@clisp.org>
38300
38301         * doc/posix-functions/siginterrupt.texi: Move note.
38302
38303         * lib/signal.in.h (SA_RESTART): New macro.
38304         * lib/sigaction.c: Update comment.
38305
38306         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
38307
38308         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
38309         (gl_PREREQ_SIGPROCMASK): Invoke it.
38310         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
38311
38312         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
38313
38314         * lib/sigprocmask.c: Update a comment.
38315
38316 2008-06-21  Eric Blake  <ebb9@byu.net>
38317
38318         Use sigaction module rather than signal().
38319         * modules/c-stack (Depends-on): Add sigaction.
38320         * modules/fatal-signal (Depends-on): Likewise.
38321         * modules/nanosleep (Depends-on): Likewise.
38322         * modules/sigprocmask (Files): Add sig-handler.h.
38323         * modules/sigaction (Files): Likewise.
38324         * lib/sig-handler.h (get_handler): New file, suggested by Paul
38325         Eggert.
38326         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
38327         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
38328         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38329         (init_fatal_signals): Likewise.
38330         * lib/nanosleep.c (rpl_nanosleep): Likewise.
38331         (siginterrupt): Delete fallback.
38332         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
38333         instead.
38334         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
38335         siginterrupt.
38336
38337         New module sigaction, for mingw.
38338         * modules/sigaction: New module...
38339         * modules/sigaction-tests: ...and its test.
38340         * m4/sigaction.m4: New file.
38341         * lib/sigaction.c: Likewise.
38342         * tests/test-sigaction.c: Likewise.
38343         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
38344         * modules/signal (Makefile.am): Likewise.
38345         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
38346         needed.
38347         * doc/posix-headers/signal.texi (signal.h): Mention provided
38348         types.
38349         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
38350         that sigaction is preferable.
38351         * doc/posix-functions/sigaction.texi (sigaction): Mention new
38352         module.
38353         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38354         sigaction.
38355
38356         Improve robustness of sigprocmask by overriding signal.
38357         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
38358         is in use.
38359         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
38360         (SIGKILL, SIGSTOP): Provide fallbacks.
38361         (rpl_signal): Implement.
38362         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
38363         signal can be called inside handlers.
38364
38365         Fix nanosleep module on mingw.
38366         * modules/nanosleep (Depends-on): Add sys_select.
38367         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
38368
38369         Fix licensing of sigprocmask.
38370         * modules/raise (License): Relicense as LGPL.
38371
38372 2008-06-21  Bruno Haible  <bruno@clisp.org>
38373
38374         * lib/propername.c (proper_name_utf8): Don't use the transliterated
38375         result if it contains question marks.
38376         Reported by Michael Geng <linux@michaelgeng.de>.
38377
38378 2008-06-19  Bruno Haible  <bruno@clisp.org>
38379
38380         Fix CVS-ism.
38381         * doc/gnulib.texi: Include updated-stamp.texi.
38382         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
38383         (updated-stamp.texi): New rule.
38384         (gnulib.info): Depend on it.
38385         * doc/.gitignore: Add updated-stamp.texi.
38386         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
38387
38388 2008-06-19  Bruno Haible  <bruno@clisp.org>
38389
38390         * doc/Makefile (gnulib.info): Update and simplify dependencies.
38391         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38392
38393 2008-06-19  Eric Blake  <ebb9@byu.net>
38394
38395         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
38396         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
38397         Reported by Stepan Kasal.
38398
38399 2008-06-18  Bruno Haible  <bruno@clisp.org>
38400
38401         * lib/fatal-signal.c (init_fatal_signals): Add comment.
38402         Reported by Eric Blake.
38403
38404 2008-06-18  Eric Blake  <ebb9@byu.net>
38405
38406         Work around cygwin 1.5.25 strsignal bug.
38407         * tests/test-strsignal.c: Allow for const char *.
38408         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
38409
38410 2008-06-18  Simon Josefsson  <simon@josefsson.org>
38411
38412         * users.txt: Update URL to article and add author/date
38413         information.
38414
38415 2008-06-17  Bruno Haible  <bruno@clisp.org>
38416
38417         New macro gl_DISABLE_THREADS.
38418         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
38419         if the user did not pass --enable-threads or --disable-threads option.
38420         (gl_DISABLE_THREADS): New macro.
38421         Reported by Eric Blake <ebb9@byu.net>.
38422
38423 2008-06-17  Bruno Haible  <bruno@clisp.org>
38424
38425         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
38426         when the macro ignores it.
38427         Based on a patch by Eric Blake <ebb9@byu.net>.
38428
38429 2008-06-17  Bruno Haible  <bruno@clisp.org>
38430
38431         * modules/tls (License): Change to LGPLv2+.
38432         Reported by Eric Blake.
38433
38434 2008-06-17  Eric Blake  <ebb9@byu.net>
38435
38436         Simplify c-stack prerequisites.
38437         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
38438         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
38439         no longer requires <ucontext.h> to exist.  Optimize setrlimit
38440         check.
38441         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
38442         <sys/resource.h>.
38443
38444         Move c-stack test into testsuite.
38445         * modules/c-stack-tests: New file.
38446         * lib/c-stack.c [DEBUG]: Move test program...
38447         * tests/test-c-stack.c: ...into this new file.  Skip rather than
38448         fail test if sigaltstack is lacking.
38449         * tests/test-c-stack.sh: New driver file.
38450
38451 2008-06-16  Eric Blake  <ebb9@byu.net>
38452
38453         Use raise module consistently.
38454         * modules/fatal-signal (Depends-on): Add raise.
38455         * modules/sigprocmask (Depends-on): Likewise.
38456         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
38457         * lib/sigprocmask.c (sigprocmask): Likewise.
38458         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38459         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
38460
38461         Fix compliance bug in sigpending.
38462         * lib/sigprocmask.c (sigpending): Return pending array via
38463         parameter, not return value.
38464
38465 2008-06-14  Eric Blake  <ebb9@byu.net>
38466
38467         Improve obstack-printf test code.
38468         * tests/test-obstack-printf.c (test_function): Fix comment, and
38469         simplify usage of obstack_* in macros.  Add a test for coverage.
38470         Reported by Bruno Haible.
38471
38472 2008-06-14  Bruno Haible  <bruno@clisp.org>
38473
38474         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
38475         array size as a constant, not as a const variable.
38476         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
38477         AC_USE_SYSTEM_EXTENSIONS.
38478         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38479         Test whether the obstack_printf function actually exists.
38480         * modules/obstack-printf (Depends-on): Add extensions.
38481         (Include): Remove obstack.h.
38482         * modules/obstack-printf-posix (Depends-on): Add extensions.
38483         (Include): Remove obstack.h.
38484
38485 2008-06-13  Eric Blake  <ebb9@byu.net>
38486
38487         Add obstack-printf and obstack-printf-posix modules.
38488         * modules/obstack-printf: New file.
38489         * modules/obstack-printf-posix: Likewise.
38490         * MODULES.html.sh (Misc): Mention them.
38491         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38492         Likewise.
38493         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38494         Likewise.
38495         * modules/stdio (Makefile.am): Accomodate new modules.
38496         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38497         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
38498         Declare.
38499         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
38500         functions.
38501         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
38502         (gl_REPLACE_OBSTACK_PRINTF): New macros
38503         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
38504         * tests/test-obstack-printf.c: New file.
38505         * modules/obstack-printf-tests: Likewise.
38506         * modules/obstack-printf-posix-tests: Likewise.
38507
38508 2008-06-11  Bruno Haible  <bruno@clisp.org>
38509
38510         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
38511         * lib/open.c: Include errno.h.
38512         (open): Fail when attempting to write to a file that has a trailing
38513         slash.
38514         * tests/test-open.c (main): Test against trailing slash bug.
38515         * doc/posix-functions/open.texi: Mention the trailing slash bug.
38516
38517 2008-06-10  Bruno Haible  <bruno@clisp.org>
38518
38519         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
38520         for $? to work inside the trap command, with various /bin/sh-s.
38521         * tests/test-vc-list-files-cvs.sh: Likewise.
38522
38523 2008-06-10  Bruno Haible  <bruno@clisp.org>
38524
38525         * lib/acl-internal.h: Don't include gettext.h here.
38526         * lib/set-mode-acl.c: Include gettext.h here.
38527         * lib/copy-acl.c: Likewise.
38528
38529 2008-06-10  Bruno Haible  <bruno@clisp.org>
38530
38531         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
38532         * lib/wait-process.c (wait_subprocess): Likewise.
38533         * lib/execute.h (execute): Add termsigp argument.
38534         * lib/execute.c (execute): Likewise.
38535         * lib/csharpcomp.c (compile_csharp_using_pnet,
38536         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
38537         * lib/csharpexec.c (execute_csharp_using_pnet,
38538         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
38539         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
38540         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
38541         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
38542         is_jikes_present): Update.
38543         * lib/javaexec.c (execute_java_class): Update.
38544         * lib/javaversion.c (execute_and_read_line): Update.
38545         * NEWS: Document the changes.
38546         Reported by Eric Blake.
38547
38548 2008-06-10  Eric Blake  <ebb9@byu.net>
38549
38550         Add missing include.
38551         * tests/test-strstr.c (includes): Add <signal.h>.
38552         * tests/test-strcasestr.c (includes): Likewise.
38553         * tests/test-memmem.c (includes): Likewise.
38554
38555 2008-06-10  Bruno Haible  <bruno@clisp.org>
38556
38557         * lib/wait-process.c (wait_subprocess): Add an assertion.
38558
38559 2008-06-10  Bruno Haible  <bruno@clisp.org>
38560
38561         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
38562
38563 2008-06-10  Bruno Haible  <bruno@clisp.org>
38564
38565         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
38566         using alarm().
38567         * tests/test-strcasestr.c (main): Likewise.
38568         * tests/test-strstr.c (main): Likewise.
38569
38570 2008-06-09  Bruno Haible  <bruno@clisp.org>
38571
38572         Work around the Solaris 10 ACE ACLs ABI change.
38573         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
38574         declare if ACL_NO_TRIVIAL is present.
38575         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
38576         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
38577         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
38578         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
38579         define if ACL_NO_TRIVIAL is present.
38580         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
38581         and use the current ABI.
38582         (file_has_acl): Use same #if condition as elsewhere.
38583         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
38584         in use, and use the current ABI.
38585         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
38586         Reported by Jim Meyering.
38587
38588 2008-06-09  Eric Blake  <ebb9@byu.net>
38589
38590         Work around environments that (stupidly) ignore SIGALRM.
38591         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
38592         before using alarm().
38593         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38594         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38595         Reported by Ian Beckwith <ianb@erislabs.net>.
38596
38597         Produce autobuild blurb earlier in log.
38598         * modules/autobuild (configure.ac-early): Move AB_INIT here.
38599
38600 2008-06-09  Jim Meyering  <meyering@redhat.com>
38601         and OndÅ™ej Vašík  <ovasik@redhat.com>
38602
38603         utimens.c: correct kernel bug work-around
38604         OndÅ™ej Vašík found that the invalid return value of 280 indicates
38605         failure, not success, and the kernel bug we're trying to work
38606         around affects not just the utimensat call, but also the fallback
38607         futimens call.
38608         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
38609         not success.
38610         [HAVE_FUTIMENS]: Use the same work-around, here.
38611
38612 2008-06-09  Jim Meyering  <meyering@redhat.com>
38613
38614         add more guards around definition of ACE_-related code
38615         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
38616         ALLOW and ACE_OWNER are also defined.
38617
38618 2008-06-08  Bruno Haible  <bruno@clisp.org>
38619
38620         * lib/acl-internal.h: Add me as co-author.
38621         * lib/file-has-acl.c: Likewise.
38622         * lib/set-mode-acl.c: Likewise.
38623         * lib/copy-acl.c: Likewise.
38624
38625 2008-06-08  Bruno Haible  <bruno@clisp.org>
38626
38627         Add support for AIX ACLs.
38628         * lib/acl-internal.h (acl_nontrivial): New declaration.
38629         * lib/file-has-acl.c (acl_nontrivial): New function.
38630         (file_has_acl): Add implementation using AIX 4 ACL API.
38631         * lib/set-mode-acl.c (qset_acl): Likewise.
38632         * lib/copy-acl.c (qcopy_acl): Likewise.
38633
38634 2008-06-08  Bruno Haible  <bruno@clisp.org>
38635
38636         Add support for HP-UX ACLs.
38637         * lib/acl-internal.h (acl_nontrivial): New declaration.
38638         * lib/file-has-acl.c (acl_nontrivial): New function.
38639         (file_has_acl): Add implementation using HP-UX 11 ACL API.
38640         * lib/set-mode-acl.c (qset_acl): Likewise.
38641         * lib/copy-acl.c (qcopy_acl): Likewise.
38642
38643 2008-06-08  Bruno Haible  <bruno@clisp.org>
38644
38645         Add support for Cygwin ACLs.
38646         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
38647         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
38648         the chmod_or_fchmod call.
38649         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
38650
38651 2008-06-08  Bruno Haible  <bruno@clisp.org>
38652
38653         Fix bug with setuid modes in Solaris 10+ code.
38654         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
38655         succeeded, when the mode contains some special bits.
38656
38657 2008-06-08  Bruno Haible  <bruno@clisp.org>
38658
38659         Add support for Solaris 7..10 ACLs.
38660         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
38661         declarations.
38662         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
38663         functions.
38664         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
38665         * lib/set-mode-acl.c (qset_acl): Likewise.
38666         * lib/copy-acl.c (qcopy_acl): Likewise.
38667
38668 2008-06-08  Bruno Haible  <bruno@clisp.org>
38669
38670         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
38671         declaration.
38672         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
38673         (acl_access_nontrivial): Remove MacOS X case.
38674         (file_has_acl): Use acl_extended_nontrivial.
38675         * lib/copy-acl.c (qcopy_acl): Likewise.
38676
38677 2008-06-08  Bruno Haible  <bruno@clisp.org>
38678
38679         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
38680
38681 2008-06-08  Jim Meyering  <meyering@redhat.com>
38682
38683         * modules/acl (Maintainer): Add Bruno Haible.
38684
38685 2008-06-07  Bruno Haible  <bruno@clisp.org>
38686
38687         Improve support for Tru64 ACLs.
38688         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
38689         ACL on OSF/1.
38690
38691 2008-06-07  Bruno Haible  <bruno@clisp.org>
38692
38693         Add support for MacOS X ACLs.
38694         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
38695         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
38696         * lib/set-mode-acl.c (qset_acl): Likewise.
38697         * lib/copy-acl.c (qcopy_acl): Likewise.
38698
38699 2008-06-07  Bruno Haible  <bruno@clisp.org>
38700
38701         Fix memory leak introduced on 2008-05-22.
38702         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
38703         use.
38704
38705 2008-06-07  Bruno Haible  <bruno@clisp.org>
38706
38707         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
38708         to construct an empty ACL.
38709
38710 2008-06-07  Bruno Haible  <bruno@clisp.org>
38711
38712         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
38713         precisely.
38714         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
38715
38716 2008-06-07  Bruno Haible  <bruno@clisp.org>
38717
38718         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
38719         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
38720
38721 2008-06-07  Bruno Haible  <bruno@clisp.org>
38722
38723         * doc/posix-functions/_setjmp.texi: Explain the use of this function
38724         regardless of POSIX.
38725         * doc/posix-functions/_longjmp.texi: Likewise.
38726         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
38727         SystemV platform in this case.
38728
38729 2008-06-06  Eric Blake  <ebb9@byu.net>
38730
38731         Document abort() bugs.
38732         * doc/posix-functions/abort.texi (abort): Mention anomalies.
38733
38734         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
38735         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
38736         sigsetjmp.
38737         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
38738         siglongjmp, but only as a macro.
38739         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
38740         is obsolete.
38741         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
38742
38743         Tweak documentation to cover cygwin argz bugs.
38744         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
38745         argz bug fix; no code change needed since no cygwin releases
38746         occurred between the last fix and the bug being tested.
38747         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
38748         module and recently fixed cygwin bugs.
38749         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
38750         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
38751         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
38752         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
38753         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
38754         Likewise.
38755         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
38756         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
38757         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
38758         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
38759         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
38760         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
38761         Likewise.
38762
38763         Avoid gcc warning on cygwin.
38764         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
38765         !ACL_NO_TRIVIAL]: Avoid unused variable.
38766
38767 2008-06-05  Eric Blake  <ebb9@byu.net>
38768
38769         Be tolerant of UNKNOWN version in gnulib-tool test dir.
38770         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
38771         git-version-gen fails to come up with a version.
38772         Reported by Simon Josefsson.
38773
38774 2008-06-05  Jim Meyering  <meyering@redhat.com>
38775             Paul Eggert  <eggert@cs.ucla.edu>
38776
38777         utimens.c: work around a probable Linux kernel bug
38778         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
38779         appears to be a kernel bug that causes utimensat to return 280
38780         instead of 0, indicating success.
38781
38782 2008-06-04  Bruno Haible  <bruno@clisp.org>
38783
38784         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
38785         2008-06-01 commit.
38786
38787 2008-06-04  Bruno Haible  <bruno@clisp.org>
38788
38789         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
38790         * lib/file-has-acl.c (acl_access_nontrivial): New function.
38791         (file_has_acl): Use it. Save errno afterwards.
38792         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
38793
38794 2008-06-03  Bruno Haible  <bruno@clisp.org>
38795
38796         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
38797         draft code. Simplify #ifs.
38798         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
38799         Put Solaris code after POSIX-draft code. Fix comments regarding
38800         Solaris 10, HP-UX. Mention Cygwin.
38801         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
38802
38803 2008-06-03  Eric Blake  <ebb9@byu.net>
38804
38805         Provide fallback for older kernels.
38806         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
38807         Provide runtime fallback if kernel lacks support.
38808         Reported by Mike Frysinger.
38809
38810 2008-06-02  Bruno Haible  <bruno@clisp.org>
38811
38812         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
38813         it exists.
38814
38815 2008-06-02  Bruno Haible  <bruno@clisp.org>
38816
38817         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
38818         * lib/copy-acl.c (qcopy_acl): Update comment.
38819
38820 2008-06-02  Bruno Haible  <bruno@clisp.org>
38821
38822         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
38823         like ACL APIs.
38824
38825 2008-06-02  Bruno Haible  <bruno@clisp.org>
38826
38827         * tests/test-file-has-acl.sh: Use different code for Cygwin.
38828         * tests/test-set-mode-acl.sh: Likewise.
38829         * tests/test-copy-acl.sh: Likewise.
38830         * tests/test-copy-file.sh: Likewise.
38831
38832 2008-06-02  Bruno Haible  <bruno@clisp.org>
38833
38834         * tests/test-file-has-acl.sh: Remove unused code.
38835
38836 2008-06-01  Bruno Haible  <bruno@clisp.org>
38837
38838         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
38839         (copy_acl): Just a wrapper around qcopy_acl that emits the error
38840         messages.
38841         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
38842
38843 2008-06-01  Bruno Haible  <bruno@clisp.org>
38844
38845         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
38846         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
38847         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
38848         APIs.
38849         * modules/acl-tests (configure.ac): Remove tests now contained in
38850         m4/acl.m4.
38851
38852 2008-06-02  Jim Meyering  <meyering@redhat.com>
38853
38854         announce-gen: use a better key-server host name
38855         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
38856         it may be more consistently reliable.  Suggested by Werner Koch
38857         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
38858
38859 2008-06-01  Bruno Haible  <bruno@clisp.org>
38860
38861         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
38862         Reported by Voroskoi Andras <voroskoi@gmail.com>.
38863
38864 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
38865
38866         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
38867
38868 2008-06-01  Bruno Haible  <bruno@clisp.org>
38869
38870         New ACL tests.
38871         * tests/test-file-has-acl.sh: New file.
38872         * tests/test-file-has-acl.c: New file.
38873         * tests/test-set-mode-acl.sh: New file.
38874         * tests/test-set-mode-acl.c: New file.
38875         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
38876         * tests/test-copy-acl.c: New file.
38877         * modules/acl-tests: New file, based on modules/copy-file-tests.
38878         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
38879         (Depends-on): Add acl-tests.
38880         (configure.ac): Remove checks.
38881         (Makefile.am): Don't create test-sameacls program here any more.
38882
38883 2008-06-01  Bruno Haible  <bruno@clisp.org>
38884
38885         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
38886         * tests/test-sameacls.c: Include progname.h.
38887         (main): Invoke set_program_name. Portability fixes for MacOS X,
38888         Solaris, HP-UX.
38889
38890 2008-06-01  Bruno Haible  <bruno@clisp.org>
38891
38892         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
38893         function.
38894         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
38895
38896 2008-06-01  Bruno Haible  <bruno@clisp.org>
38897
38898         * modules/rpmatch (Depends-on): Add strdup.
38899
38900 2008-06-01  Bruno Haible  <bruno@clisp.org>
38901
38902         * lib/pipe.c: Include unistd-safer.h.
38903         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
38904         * modules/pipe (Depends-on): Add unistd-safer.
38905
38906 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38907
38908         * modules/autobuild (configure.ac): Call AB_INIT.
38909
38910 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38911
38912         * tests/test-getaddrinfo.c: Don't print debug messages by default.
38913         Suggested by Bruno Haible <bruno@clisp.org>.
38914
38915 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38916
38917         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38918         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38919         <bruno@clisp.org>.
38920
38921 2008-05-29  Eric Blake  <ebb9@byu.net>
38922
38923         Prefer new POSIX 200x interfaces over futimesat.
38924         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
38925         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
38926         when available.
38927         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
38928
38929 2008-05-28  Bruno Haible  <bruno@clisp.org>
38930
38931         * modules/stpcpy (License): Change to LGPLv2+.
38932         Requested by David Lutterkort <dlutter@redhat.com>.
38933
38934 2008-05-27  Bruno Haible  <bruno@clisp.org>
38935
38936         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
38937         current mingw.
38938         Reported by Jose E. Marchesi <jemarch@gnu.org>.
38939
38940 2008-05-27  Bruno Haible  <bruno@clisp.org>
38941
38942         * modules/iconv_open (Link): New section, from module 'iconv'.
38943         * modules/striconv (Link): Likewise.
38944         * modules/striconveh (Link): Likewise.
38945         * modules/xstriconv (Link): Likewise.
38946         * modules/unicodeio (Link): Likewise.
38947         * modules/propername (Link): Likewise.
38948         Reported by Jim Meyering.
38949
38950 2008-05-26  Jim Meyering  <meyering@redhat.com>
38951
38952         sha256: do not artificially restrict buffer length to be < 2^32
38953         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
38954         uint32_t to size_t.
38955         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
38956         to match.
38957
38958         avoid unaligned access errors, e.g., on sparc
38959         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
38960         direct access through a possibly-unaligned uint64* pointer.
38961         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
38962         direct access through a possibly-unaligned uint32* pointer.
38963         Prompted by this patch from Tom "spot" Callaway:
38964         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
38965
38966         sha512.c: fix typo in comment
38967         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
38968
38969 2008-05-25  Bruno Haible  <bruno@clisp.org>
38970
38971         * lib/set-mode-acl.c: Renamed from lib/acl.c.
38972         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
38973         (Makefile.am): Update lib_SOURCES.
38974
38975 2008-05-25  Bruno Haible  <bruno@clisp.org>
38976
38977         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
38978
38979 2008-05-25  Jim Meyering  <meyering@redhat.com>
38980
38981         useless-if-before-free: freed expr may have white-space differences
38982         * build-aux/useless-if-before-free: Recognize cases in which the
38983         freed expression differs from the tested one in embedded white
38984         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
38985         $1 was used, so we can't make any regexp shy.  Improved tests now
38986         detect this.
38987
38988         useless-if-before-free: accept white space in the expression.
38989         * build-aux/useless-if-before-free: For now, any white space
38990         in the expression must be identical in the free argument.
38991
38992         useless-if-before-free: efficiency tweak
38993         * build-aux/useless-if-before-free: Make the expression-matching
38994         regexp "shy".
38995         Make the *outer* regexp shy, not the expr-matching one.
38996
38997         update code-in-comment to accept cast of free arg
38998         * build-aux/useless-if-before-free: Update regexp.
38999
39000 2008-05-25  Bruno Haible  <bruno@clisp.org>
39001
39002         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
39003         * modules/copy-file-tests (Files, Makefile.am): Update.
39004         * tests/test-copy-file.c (func_test_copy): Update.
39005
39006 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
39007
39008         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
39009
39010 2008-05-23  Bruno Haible  <bruno@clisp.org>
39011
39012         Improve support for ACLs on OSF/1.
39013         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
39014         Remove fallback for unknown flavors of ACLs.
39015
39016 2008-05-22  Bruno Haible  <bruno@clisp.org>
39017
39018         Add support for ACLs on OSF/1.
39019         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
39020         replacements.
39021         (acl_free_text): New macro fallback.
39022         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
39023         acl_free.
39024         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
39025         acl_free_text function. Require AC_C_INLINE.
39026
39027 2008-05-22  Bruno Haible  <bruno@clisp.org>
39028
39029         Make copy_acl work on MacOS X 10.5.
39030         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
39031         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
39032         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
39033         If MODE_INSIDE_ACL, don't assume that every system has the same text
39034         representation for ACLs as FreeBSD.
39035         * lib/copy-acl.c (copy_acl): Add support for platforms with
39036         !MODE_INSIDE_ACL.
39037         * lib/file-has-acl.c (file_has_acl): Likewise.
39038         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
39039         FreeBSD, MacOS X, or IRIX, respectively.
39040
39041 2008-05-22  Bruno Haible  <bruno@clisp.org>
39042
39043         * lib/acl.h: Don't include <sys/acl.h>.
39044         (GETACLCNT): Move fallback to lib/acl-internal.h.
39045         * lib/acl-internal.h: Include <sys/acl.h> here.
39046         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
39047
39048 2008-05-22  Bruno Haible  <bruno@clisp.org>
39049
39050         Split off copy_acl function to separate file.
39051         * lib/copy-acl.c: New file, extracted from lib/acl.c.
39052         * lib/acl.c (copy_acl): Moved function to separate file.
39053         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
39054         * modules/acl (Files): Add lib/copy-acl.c.
39055         (Makefiles.am): Augment lib_SOURCES.
39056
39057 2008-05-22  Bruno Haible  <bruno@clisp.org>
39058
39059         * modules/copy-file-tests: New file.
39060         * tests/test-copy-file.sh: New file.
39061         * tests/test-copy-file.c: New file.
39062         * tests/test-copy-file-sameacls.c: New file.
39063
39064 2008-05-22  Eric Blake  <ebb9@byu.net>
39065
39066         Avoid gcc warning.
39067         * tests/test-memcmp.c (main): Pass NULL indirectly.
39068
39069 2008-05-21  Bruno Haible  <bruno@clisp.org>
39070
39071         Add reference doc about ACLs.
39072         * doc/acl-resources.txt: New file.
39073         * doc/acl-cygwin.txt: New file.
39074
39075 2008-05-21  Bruno Haible  <bruno@clisp.org>
39076
39077         Avoid one more warning from gcc.
39078         * lib/vasnprintf.c (IF_LINT): Update comments.
39079         (VASNPRINTF): Use it also for the 'prefix' array initializer.
39080
39081 2008-05-21  Jim Meyering  <meyering@redhat.com>
39082
39083         avoid a warning from gcc
39084         * lib/vasnprintf.c (IF_LINT): Define.
39085         (scale10_round_decimal_long_double):
39086         Use it to avoid a "may be used uninitialized" warning.
39087         (scale10_round_decimal_double): Likewise.
39088
39089 2008-05-21  Simon Josefsson  <simon@josefsson.org>
39090
39091         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
39092         declared.
39093
39094 2008-05-20  Bruno Haible  <bruno@clisp.org>
39095
39096         * tests/test-memcmp.c (main): Test also the sign of the result. Test
39097         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
39098
39099 2008-05-20  Simon Josefsson  <simon@josefsson.org>
39100
39101         * modules/memcmp-tests: New file.
39102         * tests/test-memcmp.c: New file.
39103
39104 2008-05-19  Bruno Haible  <bruno@clisp.org>
39105
39106         * modules/propername (Notice, configure.ac): Put quoted "..." into
39107         --keyword option.
39108         * lib/propername.h: Update comments accordingly.
39109         Reported by Eric Blake.
39110
39111 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
39112
39113         * modules/getpass-gnu (Depends-on): Add fseeko.
39114
39115 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39116
39117         * modules/base64-tests: New file.
39118
39119 2008-05-19  Bo Borgerson <gigabo@gmail.com>
39120
39121         * lib/base64.c (base64_decode_ctx): If a decode context structure
39122         was passed in use it to ignore newlines.  If a context structure
39123         was _not_ passed in, continue to treat newlines as garbage (this
39124         is the historical behavior).  Formerly base64_decode.
39125         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39126         takes a decode context structure.
39127         * lib/base64.h (base64_decode): Macro for four-argument calls.
39128         (base64_decode_alloc): Likewise.
39129         * lib/base64.c (base64_decode_ctx): If a decode context structure
39130         was passed in use it to ignore newlines.  If a context structure
39131         was _not_ passed in, continue to treat newlines as garbage (this
39132         is the historical behavior).  Formerly base64_decode.
39133         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39134         takes a decode context structure.
39135         * lib/base64.h (base64_decode): Macro for four-argument calls.
39136         (base64_decode_alloc): Likewise.
39137
39138 2008-05-19  Jim Meyering  <meyering@redhat.com>
39139
39140         avoid a warning from gcc
39141         * lib/trim.c (IF_LINT): Define.
39142         (trim2): Use it to avoid a "may be used uninitialized" warning.
39143
39144         Fix doc typo.
39145         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
39146
39147 2008-05-19  Bruno Haible  <bruno@clisp.org>
39148
39149         * doc/glibc-functions/getpass.texi: Document limits of other
39150         implementations.
39151
39152 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39153             Bruno Haible <bruno@clisp.org>
39154
39155         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
39156
39157 2008-05-18  Bruno Haible  <bruno@clisp.org>
39158
39159         * modules/propername: New file, from GNU gettext.
39160         * lib/propername.h: New file, from GNU gettext.
39161         * lib/propername.c: New file, from GNU gettext.
39162         * MODULES.html.sh (Internationalization functions): Add propername.
39163
39164 2008-05-16  Jim Meyering  <meyering@redhat.com>
39165             Bruno Haible  <bruno@clisp.org>
39166
39167         Avoid some warnings from "gcc -Wshadow".
39168         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
39169
39170 2008-05-15  Eric Blake  <ebb9@byu.net>
39171
39172         Extend previous patch to cygwin 1.7.0.
39173         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
39174         fast implementation in cygwin >= 1.7.0.
39175         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39176         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39177
39178 2008-05-15  Bruno Haible  <bruno@clisp.org>
39179
39180         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
39181         implementation in glibc >= 2.9.
39182         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39183         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39184
39185 2008-05-15  Bruno Haible  <bruno@clisp.org>
39186
39187         * MODULES.html.sh (Internationalization functions): Remove linebreak.
39188         (Unicode string functions): Add unilbrk/*.
39189         Reported by Karl Berry.
39190
39191 2008-05-15  Eric Blake  <ebb9@byu.net>
39192
39193         Fix violation of <stdbool.h> replacement in regex.
39194         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
39195         * lib/regexec.c (re_search_internal): Likewise.
39196         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
39197
39198 2008-05-15  Jim Meyering  <meyering@redhat.com>
39199
39200         avoid distracting test output when git or cvs is not found
39201         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
39202         * tests/test-vc-list-files-git.sh: Likewise.
39203
39204 2008-05-15  Eric Blake  <ebb9@byu.net>
39205
39206         Glibc finally accepted the memmem speedup code, bugzilla #5514.
39207         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
39208         glibc version.
39209         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39210         * doc/posix-functions/strstr.texi (strstr): Likewise.
39211         * lib/str-two-way.h (MAX): Sychronize with glibc.
39212
39213 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
39214
39215         * lib/regcomp.c (optimize_utf8): Add a note on why we test
39216         opr.ctx_type.
39217         (calc_first): Initialize constraint field.
39218         (duplicate_node_closure): Use it instead of special casing ANCHORS.
39219         Fix grammar.
39220         (duplicate_node): Merge constraint field for all node types.
39221         (calc_eclosure_iter): Look at constraint field for all node types.
39222         * lib/regex_internal.c (create_cd_newstate): Don't look at
39223         opr.ctx_type.
39224
39225 2008-05-14  Bruno Haible  <bruno@clisp.org>
39226
39227         Help GCC to do better code generation.
39228         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
39229         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
39230         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
39231         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
39232         Declare with attribute 'malloc' if supported.
39233
39234 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
39235
39236         use "echo STR|wc -c" rather than unportable "expr length STR"
39237         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
39238         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
39239
39240 2008-05-14  Jim Meyering  <meyering@redhat.com>
39241
39242         use dd ibs=$n count=1 ... rather than less-portable head -c$n
39243         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
39244         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
39245         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
39246         via Collin Lasse.
39247
39248 2008-05-14  Eric Blake  <ebb9@byu.net>
39249
39250         Avoid quadratic growth in gl_LIBSOURCES.
39251         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
39252         Suggested by Bruno Haible.
39253
39254         Test xmemdup0.
39255         * modules/xmemdup0-tests: New file.
39256         * tests/test-xmemdup0.c: Likewise.
39257
39258 2008-05-13  Eric Blake  <ebb9@byu.net>
39259
39260         Split xmemdup0 into its own module.
39261         * modules/xmemdup0: New file.
39262         * lib/xmemdup0.h: Likewise.
39263         * lib/xmemdup0.c: Likewise.
39264         * MODULES.html.sh (Memory management functions): Add xmemdup0.
39265         * lib/xalloc.h (xmemdup0): Remove.
39266         * lib/xmalloc.c (xmemdup0): Likewise.
39267
39268 2008-05-13  Eric Blake  <ebb9@byu.net>
39269             Bruno Haible  <bruno@clisp.org>
39270
39271         Reduce number of forks required during autoconf.
39272         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
39273         and gl_LIBSOURCES_DIR.
39274         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
39275         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
39276         m4_syscmd per file.
39277         <m4_foreach_w>: Move...
39278         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
39279
39280 2008-05-13  Eric Blake  <ebb9@byu.net>
39281
39282         * gnulib-tool: Fix various comment typos.
39283
39284 2008-05-12  Bruno Haible  <bruno@clisp.org>
39285
39286         Tailor the linebreaking algorithm.
39287         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
39288
39289 2008-05-12  Bruno Haible  <bruno@clisp.org>
39290
39291         Update to Unicode 5.0.0.
39292         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39293         LBP_JV, LBP_JT. Redistribute values.
39294         (unilbrk_table): Change size.
39295         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
39296         Unicode TR#14 rev. 22.
39297         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39298         LBP_JV, LBP_JT. Redistribute values.
39299         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
39300         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
39301         Update.
39302         * lib/unilbrk/lbrkprop1.h: Regenerated.
39303         * lib/unilbrk/lbrkprop2.h: Regenerated.
39304         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
39305         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
39306         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
39307         Likewise.
39308         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
39309         Likewise.
39310         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
39311         result.
39312         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39313         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39314         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
39315         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
39316         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
39317         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
39318
39319 2008-05-11  Bruno Haible  <bruno@clisp.org>
39320
39321         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
39322
39323 2008-05-11  Bruno Haible  <bruno@clisp.org>
39324
39325         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
39326         * modules/unilbrk/gen-lbrk: New file.
39327
39328 2008-05-11  Bruno Haible  <bruno@clisp.org>
39329
39330         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
39331         * m4/sha512.m4 (gl_SHA512): Likewise.
39332
39333 2008-05-11  Jim Meyering  <meyering@redhat.com>
39334
39335         New modules: crypto/sha256, crypto/sha512 (from coreutils)
39336         * modules/crypto/sha256: New file.
39337         * modules/crypto/sha512: Likewise.
39338         * lib/sha256.c: Likewise.
39339         * lib/sha256.h: Likewise.
39340         * lib/sha512.c: Likewise.
39341         * lib/sha512.h: Likewise.
39342         * lib/u64.h: Likewise.
39343         * m4/sha256.m4: Likewise.
39344         * m4/sha512.m4: Likewise.
39345         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
39346
39347 2008-05-10  Bruno Haible  <bruno@clisp.org>
39348
39349         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
39350         (Input/Output <stdio.h>): Add xprintf.
39351         (Signal handling <signal.h>): Add strsignal.
39352         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
39353         (Core language properties): Add func.
39354         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
39355         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
39356         strings.
39357         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
39358         (Input/output): New section.
39359         (File system functions): Add openat-die, stat-macros.
39360         (Networking functions): Add sockets.
39361         (Unicode string functions): Add unictype/*.
39362         (Support for building libraries and executables): Add gperf.
39363         (Support for building documentation): Add agpl-3.0.
39364         (Misc): Add nocrash.
39365
39366 2008-05-10  Bruno Haible  <bruno@clisp.org>
39367
39368         * modules/unictype/gen-ctype: New file.
39369
39370 2008-05-10  Jim Meyering  <meyering@redhat.com>
39371
39372         Make chdir-safer.c more efficient on a system with no symlinks.
39373         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
39374         also if ELOOP is zero.  Suggested by Bruno Haible.
39375
39376         Make chdir-safer.c slightly safer.
39377         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
39378         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
39379
39380         Avoid compile failure on systems without ELOOP (like mingw).
39381         * lib/chdir-safer.c (ELOOP): Define if not already defined.
39382         Reported by Bruno Haible.
39383
39384 2008-05-10  Bruno Haible  <bruno@clisp.org>
39385
39386         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
39387         (is_utf8_encoding): Use a case-insensitive comparison.
39388         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
39389         streq.
39390
39391 2008-05-10  Bruno Haible  <bruno@clisp.org>
39392
39393         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
39394         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
39395         * lib/unilbrk/ulc-common.h (iconv_string_length,
39396         iconv_string_keeping_offsets): Remove declarations.
39397         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
39398         Don't include <iconv.h>, streq.h, xsize.h.
39399         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
39400         conversion.
39401         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
39402         <iconv.h>, streq.h, xsize.h.
39403         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
39404         conversion.
39405         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
39406         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
39407         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
39408         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
39409
39410 2008-05-10  Bruno Haible  <bruno@clisp.org>
39411
39412         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
39413         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
39414
39415         * modules/unilbrk/u32-width-linebreaks-tests: New file.
39416         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
39417
39418         * modules/unilbrk/u16-width-linebreaks-tests: New file.
39419         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
39420
39421         * modules/unilbrk/u8-width-linebreaks-tests: New file.
39422         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
39423
39424         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
39425         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
39426
39427         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
39428         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
39429
39430         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
39431         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
39432
39433         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
39434         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
39435
39436 2008-05-10  Bruno Haible  <bruno@clisp.org>
39437
39438         Split up 'linebreak' module.
39439         * lib/unilbrk.h: New file, based on lib/linebreak.h.
39440         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
39441         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
39442         modifications.
39443         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
39444         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
39445         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
39446         lib/linebreak.c.
39447         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
39448         lib/linebreak.c.
39449         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
39450         lib/linebreak.c.
39451         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
39452         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
39453         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
39454         lib/linebreak.c.
39455         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
39456         lib/linebreak.c.
39457         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
39458         lib/linebreak.c.
39459         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
39460         lib/linebreak.c.
39461         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
39462         lib/linebreak.c.
39463         * modules/unilbrk/base: New file.
39464         * modules/unilbrk/tables: New file.
39465         * modules/unilbrk/u8-possible-linebreaks: New file.
39466         * modules/unilbrk/u16-possible-linebreaks: New file.
39467         * modules/unilbrk/u32-possible-linebreaks: New file.
39468         * modules/unilbrk/ulc-common: New file.
39469         * modules/unilbrk/ulc-possible-linebreaks: New file.
39470         * modules/unilbrk/u8-width-linebreaks: New file.
39471         * modules/unilbrk/u16-width-linebreaks: New file.
39472         * modules/unilbrk/u32-width-linebreaks: New file.
39473         * modules/unilbrk/ulc-width-linebreaks: New file.
39474         * lib/linebreak.h: Remove file.
39475         * lib/linebreak.c: Remove file.
39476         * m4/linebreak.m4: Remove file.
39477         * modules/linebreak: Remove file.
39478         * NEWS: Mention the changes.
39479
39480 2008-05-09  Eric Blake  <ebb9@byu.net>
39481
39482         Add xmemdup0.
39483         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
39484         implementation.
39485         * lib/xmalloc.c (xmemdup0): New C implementation.
39486
39487 2008-05-08  Bruno Haible  <bruno@clisp.org>
39488
39489         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
39490
39491 2008-05-07  Eric Blake  <ebb9@byu.net>
39492
39493         Support cross-compilation of <wctype.h>.
39494         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
39495         AC_CACHE_CHECK.
39496
39497 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
39498
39499         * build-aux/vc-list-files: Add support for bzr.
39500
39501 2008-05-03  Jim Meyering  <meyering@redhat.com>
39502
39503         avoid failed assertion with tight malloc
39504         * tests/test-getndelim2.c: Correct an off-by-one assertion.
39505
39506 2008-05-03  Simon Josefsson  <simon@josefsson.org>
39507
39508         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
39509         are needed from arpa/inet.h.
39510         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
39511         Reported by Bruno Haible.
39512
39513 2008-05-02  Jim Meyering  <meyering@redhat.com>
39514
39515         avoid compilation error on FreeBSD 6
39516         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
39517
39518 2008-05-01  Jim Meyering  <meyering@redhat.com>
39519
39520         useless-if-before-free: correct --help's exit status description
39521         * build-aux/useless-if-before-free (usage): Like grep, exit 0
39522         for one or more matches, etc.  Reported by Bruno Haible.
39523
39524         vc-list-files: make the stand-alone gnulib test work
39525         * modules/vc-list-files-tests (configure.ac):
39526         Define and AC_SUBST abs_aux_dir.
39527         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
39528         $(abs_top_srcdir) to each script and having each of them
39529         duplicate the work of setting PATH, set PATH here, using
39530         the new variable, abs_aux_dir instead.
39531         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
39532         * tests/test-vc-list-files-git.sh: Likewise.
39533         Reported by Bruno Haible.
39534
39535 2008-05-01  Bruno Haible  <bruno@clisp.org>
39536
39537         * lib/getndelim2.c (getndelim2): Fix newsize computation during
39538         reallocation. Rename 'done' to 'found_delimiter'.
39539
39540 2008-05-01  Jim Meyering  <meyering@redhat.com>
39541
39542         vc-list-files: accommodate /bin/sh like the one from Solaris 10
39543         * build-aux/vc-list-files: Use `...`, not $(...).
39544
39545 2008-04-30  Jim Meyering  <meyering@redhat.com>
39546
39547         add tests for vc-list-files
39548         * modules/vc-list-files-tests: New module.
39549         * tests/test-vc-list-files-cvs.sh: New file.
39550         * tests/test-vc-list-files-git.sh: New file.
39551
39552         avoid a warning from gcc
39553         * lib/getndelim2.c (IF_LINT): Define.
39554         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
39555
39556         vc-list-files: work properly with build-aux/cvsu, too
39557         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
39558         to all cvs-based clauses.
39559
39560         vc-list-files: work properly in the CVS+awk case, too
39561         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
39562
39563         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
39564         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
39565         take more than one file argument, so .  Add quotes, just in case $dir
39566         ever contains a shell meta-character.  Prompted by Soren Hansen in
39567         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
39568
39569 2008-04-29  Eric Blake  <ebb9@byu.net>
39570
39571         Optimize getndelim2 to use block operations when possible.
39572         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
39573         freadseek, and memchr2.
39574         * lib/getndelim2.c (getndelim2): Use them for block reads.
39575
39576 2008-04-29  Bruno Haible  <bruno@clisp.org>
39577
39578         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
39579         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39580         * modules/inet_ntop (Depends-on): Add extensions.
39581         * modules/inet_pton (Depends-on): Likewise.
39582         Reported by Simon Josefsson.
39583
39584 2008-04-29  Jim Meyering  <meyering@redhat.com>
39585
39586         When the is more than one match in a block, match all of them.
39587         * build-aux/useless-if-before-free: Iterate through each block
39588         until there are no more matches.
39589
39590         Fix broken useless-if-before-free script.
39591         * build-aux/useless-if-before-free: Fix typo: missing "?" after
39592         the expression to match cast of argument to free-like function.
39593
39594 2008-04-29  Eric Blake  <ebb9@byu.net>
39595
39596         Use new header.
39597         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
39598
39599 2008-04-29  Jim Meyering  <meyering@redhat.com>
39600
39601         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
39602         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
39603         by gnulib to exist and to declare e.g., inet_ntop.
39604         Don't include "inet_ntop.h", now removed.
39605
39606         * m4/arpa_inet_h.m4: Remove trailing blanks.
39607
39608 2008-04-29  Eric Blake  <ebb9@byu.net>
39609
39610         Silence valgrind on safe reads beyond potential array bounds.
39611         * lib/rawmemchr.valgrind: New file.
39612         * lib/strchrnul.valgrind: Likewise.
39613         * modules/rawmemchr (Files): Distribute new file.
39614         * modules/strchrnul (Files): Likewise.
39615         Suggested by Bruno Haible.
39616
39617 2008-04-29  Bruno Haible  <bruno@clisp.org>
39618
39619         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
39620         (inet_ntop, inet_pton): Change portability warning's wording.
39621         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
39622         Invoke gl_CHECK_NEXT_HEADERS.
39623         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
39624         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
39625         set ARPA_INET_H.
39626         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39627         * modules/arpa_inet (Description): No longer only for systems that
39628         lack it.
39629         (Depends-on): Add include_next.
39630         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
39631         HAVE_ARPA_INET_H.
39632
39633 2008-04-29  Jim Meyering  <meyering@redhat.com>
39634
39635         * modules/mkdir (License): Re-license as LGPLv2+.
39636
39637 2008-04-29  Bruno Haible  <bruno@clisp.org>
39638
39639         * modules/rawmemchr (Maintainer): Set to Eric.
39640         * modules/strchrnul (Maintainer): Likewise.
39641
39642 2008-04-29  Simon Josefsson  <simon@josefsson.org>
39643
39644         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
39645         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
39646
39647         * modules/arpa_inet (arpa/inet.h): Use them.
39648
39649 2008-04-28  Eric Blake  <ebb9@byu.net>
39650
39651         Test getndelim2.
39652         * modules/getndelim2-tests: New file.
39653         * tests/test-getndelim2.c: Likewise.
39654         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
39655         stream.
39656         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
39657
39658         * MODULES.html.sh: Document new module.
39659
39660 2008-04-20  Bruno Haible  <bruno@clisp.org>
39661
39662         * lib/c-stack.c (die): Use raise.
39663         * modules/c-stack (Depends-on): Add raise.
39664
39665 2008-04-28  Bruno Haible  <bruno@clisp.org>
39666
39667         Expect rpmatch to be declared.
39668         * lib/yesno.c (rpmatch): Remove declaration.
39669
39670         Declare rpmatch.
39671         * lib/stdlib.in.h (rpmatch): New declaration.
39672         * lib/rpmatch.c: Include <stdlib.h> first.
39673         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
39674         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
39675         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
39676         HAVE_RPMATCH.
39677         * modules/rpmatch (Depends-on): Add stdlib, extensions.
39678         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39679         (Include): Set to <stdlib.h>.
39680         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
39681         HAVE_RPMATCH.
39682         * NEWS: Document the change.
39683
39684 2008-04-28  Bruno Haible  <bruno@clisp.org>
39685
39686         Change rpmatch to use nl_langinfo when appropriate.
39687         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
39688         (N_): New macro.
39689         (localized_pattern): New function/macro.
39690         (try): Remove match, nomatch arguments. Copy the pattern into safe
39691         memory before caching it.
39692         (rpmatch): Use localized_pattern. Add translator comments.
39693         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
39694         Suggested by Eric Blake.
39695         * modules/rpmatch (Depends-on): Add stdbool.
39696
39697 2008-04-28  Eric Blake  <ebb9@byu.net>
39698
39699         Add rawmemchr module, matching glibc.
39700         * modules/string (Makefile.am): New indicator.
39701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
39702         * lib/string.in.h (rawmemchr): Declare when appropriate.
39703         * modules/rawmemchr: New file.
39704         * m4/rawmemchr.m4: Likewise.
39705         * lib/rawmemchr.c: Likewise.
39706         * modules/rawmemchr-tests: Likewise.
39707         * tests/test-rawmemchr.c: Likewise.
39708         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
39709         module.
39710         * modules/strchrnul (Depends-on): Add rawmemchr.
39711         * lib/strchrnul.c (strchrnul): Optimize a corner case.
39712
39713         Whitespace cleanup.
39714         * tests/test-strchrnul.c: Reindent.
39715         * lib/strchrnul.c: Likewise.
39716
39717         Optimize and test strchrnul.
39718         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
39719         * modules/strchrnul-tests: New file.
39720         * tests/test-strchrnul.c: Likewise.
39721
39722         Remove intprops dependency.
39723         * modules/memchr (Depends-on): Remove intprops.
39724         * modules/memrchr (Depends-on): Likewise.
39725         * modules/memchr2 (Depends-on): Likewise.
39726         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
39727         * lib/memrchr.c (__memrchr): Likewise.
39728         * lib/memrchr2.c (memchr2): Likewise.
39729         Reported by Simon Josefsson.
39730
39731 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39732
39733         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
39734         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39735
39736 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39737
39738         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
39739
39740         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
39741
39742         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
39743
39744         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
39745         declarations.
39746         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
39747
39748         * m4/inet_pton.m4: Don't check for header files.
39749
39750         * m4/inet_ntop.m4: Don't check for header files.
39751
39752 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39753
39754         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
39755         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
39756         trigger for cygwin).
39757         Reported by Bruno Haible  <bruno@clisp.org>.
39758
39759 2008-04-28  Bruno Haible  <bruno@clisp.org>
39760
39761         * doc/posix-functions/strdup.texi: Mention mingw problem.
39762
39763 2008-04-27  Bruno Haible  <bruno@clisp.org>
39764
39765         * modules/stat-time-tests (Depends-on): Add sleep.
39766         * tests/test-stat-time.c (force_unlink): New function.
39767         (cleanup): Use it.
39768         (test_mtime): Remove the ctime related tests.
39769         (test_ctime): New function, containing the ctime related tests.
39770         (main): Call test_ctime, except on native Windows platforms.
39771
39772 2008-04-27  Bruno Haible  <bruno@clisp.org>
39773
39774         * lib/rpmatch.c (rpmatch): Add some comments.
39775         Reported by James Youngman <jay@gnu.org>.
39776
39777 2008-04-27  Bruno Haible  <bruno@clisp.org>
39778
39779         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
39780         quiet NaNs.
39781
39782 2008-04-27  Bruno Haible  <bruno@clisp.org>
39783
39784         Make test-yesno.sh work on mingw.
39785         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
39786         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
39787         (main): Set stdin to binary mode.
39788         * modules/yesno-tests (Depends-on): Add binary-io.
39789
39790 2008-04-27  Bruno Haible  <bruno@clisp.org>
39791
39792         Fix 'isfinite' on x86, x86_64, ia64 platforms.
39793         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
39794         argument that lie outside the IEEE 854 domain.
39795         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
39796         (gl_ISFINITE): Use it.
39797         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
39798
39799 2008-04-27  Bruno Haible  <bruno@clisp.org>
39800
39801         Allow local renaming in config.h.
39802         * lib/memrchr.c (memrchr): Don't undefine outside libc.
39803
39804 2008-04-27  Bruno Haible  <bruno@clisp.org>
39805
39806         * lib/memchr.c (__memchr): Change type of 'i'.
39807         * lib/memchr2.c (memchr2): Likewise.
39808
39809 2008-04-26  Eric Blake  <ebb9@byu.net>
39810         and Bruno Haible  <bruno@clisp.org>
39811
39812         Optimize and test memrchr.
39813         * modules/memrchr (Depends-on): Add intprops.
39814         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
39815         * modules/memrchr-tests: New file.
39816         * tests/test-memrchr.c: New file.
39817
39818 2008-04-26  Bruno Haible  <bruno@clisp.org>
39819
39820         Add tentative support for DragonFly BSD.
39821         * lib/stdio-impl.h: Add macros for DragonFly BSD.
39822         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
39823         fp.
39824         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39825         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
39826         * lib/fpurge.c (fpurge): Likewise.
39827         * lib/freadable.c (freaadable): Likewise.
39828         * lib/freadahead.c (freadahead): Likewise.
39829         * lib/freading.c (freading): Likewise.
39830         * lib/freadptr.c (freadptr): Likewise.
39831         * lib/freadseek.c (freadptrinc): Likewise.
39832         * lib/fseeko.c (fseeko): Likewise.
39833         * lib/fseterr.c (fseterr): Likewise.
39834         * lib/fwritable.c (fwritable): Likewise.
39835         * lib/fwriting.c (fwriting): Likewise.
39836
39837 2008-04-26  Bruno Haible  <bruno@clisp.org>
39838
39839         * lib/stdio-impl.h: New file.
39840         * lib/fbufmode.c: Include stdio-impl.h.
39841         (fbufmode): Use fp_, remove redundant #defines.
39842         * lib/fflush.c: Include stdio-impl.h.
39843         (clear_ungetc_buffer): Remove redundant #defines.
39844         * lib/fpurge.c: Include stdio-impl.h.
39845         (fpurge): Remove redundant #defines.
39846         * lib/freadable.c: Include stdio-impl.h.
39847         (freadable): Remove redundant #defines.
39848         * lib/freadahead.c: Include stdio-impl.h.
39849         (freadahead): Remove redundant #defines.
39850         * lib/freading.c: Include stdio-impl.h.
39851         (freading): Remove redundant #defines.
39852         * lib/freadptr.c: Include stdio-impl.h.
39853         (freadptr): Remove redundant #defines.
39854         * lib/freadseek.c: Include stdio-impl.h.
39855         (freadptrinc): Remove redundant #defines.
39856         * lib/fseeko.c: Include stdio-impl.h.
39857         (rpl_fseeko): Remove redundant #defines.
39858         * lib/fseterr.c: Include stdio-impl.h.
39859         (fseterr): Remove redundant #defines.
39860         * lib/fwritable.c: Include stdio-impl.h.
39861         (fwritable: Remove redundant #defines.
39862         * lib/fwriting.c: Include stdio-impl.h.
39863         (fwriting): Remove redundant #defines.
39864         * modules/fbufmode (Files): Add lib/stdio-impl.h.
39865         * modules/fflush (Files): Likewise.
39866         * modules/fpurge (Files): Likewise.
39867         * modules/freadable (Files): Likewise.
39868         * modules/freadahead (Files): Likewise.
39869         * modules/freading (Files): Likewise.
39870         * modules/freadptr (Files): Likewise.
39871         * modules/freadseek (Files): Likewise.
39872         * modules/fseeko (Files): Likewise.
39873         * modules/fseterr (Files): Likewise.
39874         * modules/fwritable (Files): Likewise.
39875         * modules/fwriting (Files): Likewise.
39876
39877 2008-04-26  Bruno Haible  <bruno@clisp.org>
39878
39879         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39880         restore_seek_optimization, update_fpos_cache): New functions, extracted
39881         from rpl_fflush.
39882         (rpl_fflush): Use them.
39883         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
39884         (gl_REPLACE_FFLUSH): Use it.
39885
39886 2008-04-26  Bruno Haible  <bruno@clisp.org>
39887
39888         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
39889         on Solaris.
39890         * tests/test-xstrtoimax.sh: Likewise.
39891         * tests/test-xstrtoumax.sh: Likewise.
39892         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39893
39894 2008-04-26  Bruno Haible  <bruno@clisp.org>
39895
39896         * modules/memchr-tests: New file.
39897         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
39898
39899 2008-04-26  Eric Blake  <ebb9@byu.net>
39900             Bruno Haible  <bruno@clisp.org>
39901
39902         * lib/memchr.c: Include intprops.h.
39903         (__memchr): Optimize parallel detection of matching bytes. Rename local
39904         variables. Add explanatory comments.
39905
39906 2008-04-26  Bruno Haible  <bruno@clisp.org>
39907
39908         Fix module 'memchr', broken since 2000-10-28.
39909         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
39910
39911 2008-04-26  Bruno Haible  <bruno@clisp.org>
39912
39913         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
39914         comments.
39915
39916 2008-04-25  Eric Blake  <ebb9@byu.net>
39917
39918         Use native fstatat on cygwin 1.7.0.
39919         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39920         first.
39921
39922 2008-04-23  Eric Blake  <ebb9@byu.net>
39923
39924         Improve memchr2 performance.
39925         * lib/memchr2.c (memchr2): Further optimize parallel detection of
39926         NUL bytes.
39927         * modules/memchr2 (Depends-on): Use intprops.h.
39928
39929 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39930
39931         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
39932         an inline function instead of a CPP macro.  Patch by Ben Pfaff
39933         <blp@cs.stanford.edu>.
39934
39935 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39936
39937         * lib/arpa_inet.in.h: New file.
39938
39939         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
39940         (Makefile.am): Sed in substitute header file.
39941
39942         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
39943         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
39944
39945         * modules/inet_ntop (configure.ac): Use
39946         gl_ARPA_INET_MODULE_INDICATOR.
39947
39948         * modules/inet_pton (configure.ac): Use
39949         gl_ARPA_INET_MODULE_INDICATOR.
39950
39951 2008-04-22  Jim Meyering  <meyering@redhat.com>
39952
39953         * modules/verify (License): Re-license as LGPLv2+.
39954
39955 2008-04-22  Simon Josefsson  <simon@josefsson.org>
39956
39957         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
39958         parameter to void* as per POSIX standard (MinGW uses char*).
39959
39960 2008-04-21  Bruno Haible  <bruno@clisp.org>
39961
39962         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39963         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39964         Define to replacements if REPLACE_ISWCNTRL is 1.
39965         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
39966         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
39967         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
39968         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
39969         what it fixes.
39970         * doc/posix-functions/iswalpha.texi: Likewise.
39971         * doc/posix-functions/iswblank.texi: Likewise.
39972         * doc/posix-functions/iswcntrl.texi: Likewise.
39973         * doc/posix-functions/iswdigit.texi: Likewise.
39974         * doc/posix-functions/iswgraph.texi: Likewise.
39975         * doc/posix-functions/iswlower.texi: Likewise.
39976         * doc/posix-functions/iswprint.texi: Likewise.
39977         * doc/posix-functions/iswpunct.texi: Likewise.
39978         * doc/posix-functions/iswspace.texi: Likewise.
39979         * doc/posix-functions/iswupper.texi: Likewise.
39980         * doc/posix-functions/iswxdigit.texi: Likewise.
39981         Reported by Alain Guibert.
39982
39983 2008-04-21  Bruno Haible  <bruno@clisp.org>
39984
39985         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
39986         Patch by Alain Guibert.
39987
39988 2008-04-21  Bruno Haible  <bruno@clisp.org>
39989
39990         Fix test failures on mingw.
39991         * tests/test-xstrtol.c (print_no_progname): New function.
39992         (main): Install it in error_print_progname hook.
39993         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
39994         * tests/test-xstrtoimax.sh: Likewise.
39995         * tests/test-xstrtoumax.sh: Likewise.
39996
39997 2008-04-21  Bruno Haible  <bruno@clisp.org>
39998
39999         Fix test failure on mingw.
40000         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
40001
40002 2008-04-21  Bruno Haible  <bruno@clisp.org>
40003
40004         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
40005         Actually assign a value.
40006
40007 2008-04-20  Bruno Haible  <bruno@clisp.org>
40008
40009         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
40010         take 2.
40011         * lib/canonicalize.c (canonicalize_file_name): Elide if the
40012         'canonicalize-lgpl' module is also used.
40013         * lib/canonicalize-lgpl.c: Undo last change.
40014         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
40015
40016 2008-04-20  Bruno Haible  <bruno@clisp.org>
40017
40018         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
40019         config.h. Provide _mkdir based fallback for mingw.
40020         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
40021         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
40022         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
40023         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
40024         rather than defining mkdir in config.h.
40025         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
40026         (gl_SYS_STAT_H_DEFAULTS): New macro.
40027         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
40028         HAVE_IO_H any more.
40029         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
40030         HAVE_DECL_MKDIR and HAVE_IO_H.
40031
40032 2008-04-20  Bruno Haible  <bruno@clisp.org>
40033
40034         * lib/isapipe.c: Port to native Windows platforms.
40035
40036 2008-04-20  Bruno Haible  <bruno@clisp.org>
40037
40038         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
40039
40040 2008-04-21  Eric Blake  <ebb9@byu.net>
40041
40042         Work around preprocessors that don't handle UINTMAX_MAX.
40043         * lib/memchr2.c (memchr2): Avoid embedded #if.
40044         Reported by Alain Guibert, fix suggested by Bruno Haible.
40045
40046 2008-04-21  Simon Josefsson  <simon@josefsson.org>
40047
40048         * doc/posix-functions/strftime.texi (strftime): Explain better
40049         Windows incompatibility.  Suggested by Micah Cowan
40050         <micah@cowan.name>.
40051
40052 2008-04-20  Bruno Haible  <bruno@clisp.org>
40053
40054         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
40055         unistr/u8-mblen.
40056
40057 2008-04-20  Bruno Haible  <bruno@clisp.org>
40058
40059         Fix test failure on platforms with non-GNU iconv.
40060         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
40061         (U_TO_U8): Use it, rather than u16_to_u8.
40062         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
40063         units at the end of the input string.
40064         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
40065
40066 2008-04-20  Bruno Haible  <bruno@clisp.org>
40067
40068         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
40069         when the resulting length is 0.
40070         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
40071
40072 2008-04-20  Bruno Haible  <bruno@clisp.org>
40073
40074         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
40075         works.
40076         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
40077
40078 2008-04-20  Bruno Haible  <bruno@clisp.org>
40079
40080         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
40081         * modules/tsearch-tests (configure.ac): Test for initstate function.
40082
40083 2008-04-20  Bruno Haible  <bruno@clisp.org>
40084
40085         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
40086         for nlink_t if missing.
40087         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
40088
40089 2008-04-19  Bruno Haible  <bruno@clisp.org>
40090
40091         Work around snprintf bug on Linux libc5.
40092         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
40093         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40094         gl_SNPRINTF_SIZE1.
40095         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40096         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
40097         that test failed.
40098         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40099         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
40100         * modules/snprintf (Files): Add m4/printf.m4.
40101         * modules/vsnprintf (Files): Likewise.
40102         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
40103         * doc/posix-functions/vsnprintf.texi: Likewise.
40104
40105 2008-04-19  Bruno Haible  <bruno@clisp.org>
40106
40107         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
40108         from 0.0058 to less than 10^-7.
40109
40110 2008-04-19  Bruno Haible  <bruno@clisp.org>
40111
40112         Fix rounding when a precision is given.
40113         * lib/vasnprintf.c (is_borderline): New function.
40114         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
40115         9...9x.
40116         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
40117         %e, %g.
40118         * tests/test-vasprintf-posix.c (test_function): Likewise.
40119         * tests/test-snprintf-posix.h (test_function): Likewise.
40120         * tests/test-sprintf-posix.h (test_function): Likewise.
40121         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
40122         * tests/test-printf-posix.h (test_function): Likewise.
40123         * tests/test-printf-posix.output: Update.
40124         Reported by John Darrington <john@darrington.wattle.id.au> via
40125         Ben Pfaff <blp@cs.stanford.edu>.
40126
40127 2008-04-18  Simon Josefsson  <simon@josefsson.org>
40128
40129         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
40130         Suggested by Bruno Haible <bruno@clisp.org>.
40131
40132 2008-04-17  Bruno Haible  <bruno@clisp.org>
40133
40134         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
40135         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
40136         implementation.
40137         Patch by Bruce Merry <bmerry@gmail.com>.
40138
40139 2008-04-17  Simon Josefsson  <simon@josefsson.org>
40140
40141         * doc/posix-functions/strftime.texi (strftime): Mention that %e
40142         doesn't work under Windows.
40143
40144 2008-04-16  Bruno Haible  <bruno@clisp.org>
40145
40146         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
40147         New macros.
40148         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
40149         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
40150         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
40151         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
40152         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
40153         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
40154         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
40155         macros.
40156         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
40157         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
40158         Northern Sotho, Uighur.
40159
40160 2008-04-16  Bruno Haible  <bruno@clisp.org>
40161
40162         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
40163         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
40164         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
40165         Reported by Daniel Bergström <daniel@octocode.com>.
40166
40167 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
40168             Bruno Haible  <bruno@clisp.org>
40169
40170         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
40171         function.
40172         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
40173         New functions, mostly extracted from gl_locale_name_default.
40174         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
40175
40176 2008-04-16  Eric Blake  <ebb9@byu.net>
40177
40178         Adjust strtod detection to catch glibc 2.7 bug.
40179         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
40180         Reported by John Gatewood Ham.
40181
40182 2008-04-16  Bruno Haible  <bruno@clisp.org>
40183
40184         Add tentative support for Linux libc5.
40185         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
40186         * lib/fpurge.c (fpurge): Likewise.
40187         * lib/freadable.c (freadable): Likewise.
40188         * lib/freadahead.c (freadahead): Likewise.
40189         * lib/freading.c (freading): Likewise.
40190         * lib/freadptr.c (freadptr): Likewise.
40191         * lib/freadseek.c (freadptrinc): Likewise.
40192         * lib/fseeko.c (rpl_fseeko): Likewise.
40193         * lib/fseterr.c (fseterr): Likewise.
40194         * lib/fwritable.c (fwritable): Likewise.
40195         * lib/fwriting.c (fwriting): Likewise.
40196         Reported by Alain Guibert <alguibert+bts@free.fr>.
40197
40198 2008-04-15  Bruno Haible  <bruno@clisp.org>
40199
40200         * modules/mathl (configure.ac): Define module indicator.
40201
40202 2008-04-15  Bruno Haible  <bruno@clisp.org>
40203
40204         * lib/logl.c (logl): Remove unused variables.
40205
40206 2008-04-15  Bruno Haible  <bruno@clisp.org>
40207
40208         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
40209         fails.
40210
40211 2008-04-15  Bruno Haible  <bruno@clisp.org>
40212
40213         * lib/trim.c (trim2): Fix argument of isspace() macro.
40214
40215 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
40216
40217         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
40218         to 0.
40219         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
40220
40221 2008-04-14  Bruno Haible  <bruno@clisp.org>
40222
40223         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
40224         AC_LANG_PROGRAM argument.
40225         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
40226         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
40227         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40228         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40229         * m4/math_h.m4 (gl_MATH_H): Likewise.
40230         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40231         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40232         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40233         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
40234         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40235         * m4/regex.m4 (gl_REGEX): Likewise.
40236         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
40237         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
40238         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40239         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
40240         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40241         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40242         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40243         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40244
40245 2008-04-14  Jim Meyering  <meyering@redhat.com>
40246
40247         test-strtod: fix typos: s/abs/fabs/
40248         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
40249
40250 2008-04-13  Bruno Haible  <bruno@clisp.org>
40251
40252         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
40253         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
40254         module is also used and while not building the reloc-wrapper.
40255
40256 2008-04-13  Bruno Haible  <bruno@clisp.org>
40257
40258         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
40259
40260 2008-04-13  Bruno Haible  <bruno@clisp.org>
40261
40262         Fix AIX compilation failure introduced on 2008-04-02.
40263         * tests/test-frexp.c (exp): Undefine before redefining.
40264         * tests/test-frexpl.c (exp): Likewise.
40265
40266 2008-04-13  Bruno Haible  <bruno@clisp.org>
40267
40268         Work around a HP-UX stdio bug.
40269         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
40270         * tests/test-ftello.c (main): Likewise.
40271         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
40272         * doc/posix-functions/ftello.texi: Likewise.
40273
40274 2008-04-13  Bruno Haible  <bruno@clisp.org>
40275
40276         Make test-signbit pass on HP-UX/hppa.
40277         * tests/test-signbit.c (minus_zerol): New variable.
40278         (test_signbitl): Use it.
40279
40280 2008-04-13  Bruno Haible  <bruno@clisp.org>
40281
40282         Make truncl work on OSF/1 4.0.
40283         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
40284         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40285         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40286         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
40287         HAVE_DECL_TRUNCL.
40288         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
40289         HAVE_DECL_TRUNCL.
40290         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
40291
40292 2008-04-13  Bruno Haible  <bruno@clisp.org>
40293
40294         * lib/unictype.h: Remove trailing comma from enumeration definitions.
40295
40296 2008-04-13  Bruno Haible  <bruno@clisp.org>
40297
40298         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
40299         expression, so as to avoid HP-UX 11 cc compiler bug.
40300
40301 2008-04-13  Bruno Haible  <bruno@clisp.org>
40302
40303         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
40304
40305 2008-04-13  Bruno Haible  <bruno@clisp.org>
40306
40307         * lib/git-merge-changelog.c: Remove empty declaration outside of
40308         functions.
40309
40310 2008-04-13  Bruno Haible  <bruno@clisp.org>
40311
40312         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
40313
40314 2008-04-13  Bruno Haible  <bruno@clisp.org>
40315
40316         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
40317         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
40318         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
40319         also if it exists but lacks definitions of the SHUT_* macros.
40320         * modules/sys_socket (Description): Update.
40321         Reported by Elbert Pol <e.pol@chello.nl>.
40322
40323 2008-04-13  Bruno Haible  <bruno@clisp.org>
40324
40325         * lib/localcharset.c (OS2): Don't redefine if already defined.
40326         Reported by Elbert Pol <e.pol@chello.nl>.
40327
40328 2008-04-13  Bruno Haible  <bruno@clisp.org>
40329
40330         * lib/binary-io.h [__EMX__]: Include <io.h>.
40331         Reported by Elbert Pol <e.pol@chello.nl>.
40332
40333 2008-04-12  Bruno Haible  <bruno@clisp.org>
40334
40335         * lib/fpucw.h: Enable the definitions also for x86_64.
40336         Needed for NetBSD/x86_64.
40337         Reported by Thomas Klausner <tk@giga.or.at>.
40338
40339 2008-04-12  Bruno Haible  <bruno@clisp.org>
40340
40341         * tests/test-strtod.c: Include isnand.h.
40342         (main): Use isnand instead of isnan.
40343         Reported by Jim Meyering.
40344
40345 2008-04-12  Bruno Haible  <bruno@clisp.org>
40346
40347         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
40348         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40349
40350 2008-04-12  Jim Meyering  <meyering@redhat.com>
40351
40352         * m4/math_h.m4 (gl_MATH_H): Fix typos.
40353
40354 2008-04-12  Bruno Haible  <bruno@clisp.org>
40355
40356         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
40357         Reported by Elbert Pol <e.pol@chello.nl>.
40358
40359 2008-04-12  Eric Blake  <ebb9@byu.net>
40360
40361         Work around Solaris 10 math.h bug.
40362         * m4/math_h.m4 (gl_MATH_H): Check for bug.
40363         (gl_MATH_H_DEFAULTS): Set up default.
40364         * modules/math (Makefile.am): Replace new indicators.
40365         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
40366         * tests/test-math.c (main): Test this.
40367         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
40368         * doc/posix-headers/math.texi (math.h): Mention bug.
40369         Reported by Nelson H. F. Beebe and Jim Meyering.
40370
40371 2008-04-11  Bruno Haible  <bruno@clisp.org>
40372
40373         Adapt to future versions of Apple GCC.
40374         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
40375         Reported by Peter O'Gorman <peter@pogma.com>.
40376
40377 2008-04-11  Bruno Haible  <bruno@clisp.org>
40378
40379         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
40380
40381 2008-04-11  Bruno Haible  <bruno@clisp.org>
40382
40383         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
40384
40385         * modules/getaddrinfo-tests (Makefile.am): Define
40386         test_getaddrinfo_LDADD.
40387
40388 2008-04-11  Bruno Haible  <bruno@clisp.org>
40389
40390         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
40391         (init): Fix syntax error.
40392         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
40393         is declared.
40394
40395 2008-04-11  Bruno Haible  <bruno@clisp.org>
40396
40397         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
40398         * modules/glob (Depends-on): Add stdbool.
40399
40400 2008-04-11  Bruno Haible  <bruno@clisp.org>
40401
40402         * lib/trim.c: Include <string.h>.
40403
40404 2008-04-11  Eric Blake  <ebb9@byu.net>
40405
40406         Avoid compile failure on OS/2.
40407         * lib/regex_internal.h (internal_function): Disable optimization
40408         on OS/2 (__EMX__), where it caused compiler error.
40409         Reported by Elbert Pol.
40410
40411 2008-04-11  Bruno Haible  <bruno@clisp.org>
40412
40413         Flush the standard error stream before aborting. Needed on mingw.
40414         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
40415         * tests/test-array_list.c (ASSERT): Likewise.
40416         * tests/test-array_oset.c (ASSERT): Likewise.
40417         * tests/test-avltree_list.c (ASSERT): Likewise.
40418         * tests/test-avltree_oset.c (ASSERT): Likewise.
40419         * tests/test-avltreehash_list.c (ASSERT): Likewise.
40420         * tests/test-binary-io.c (ASSERT): Likewise.
40421         * tests/test-byteswap.c (ASSERT): Likewise.
40422         * tests/test-c-ctype.c (ASSERT): Likewise.
40423         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
40424         * tests/test-c-strcasestr.c (ASSERT): Likewise.
40425         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
40426         * tests/test-c-strstr.c (ASSERT): Likewise.
40427         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
40428         * tests/test-canonicalize.c (ASSERT): Likewise.
40429         * tests/test-carray_list.c (ASSERT): Likewise.
40430         * tests/test-ceilf1.c (ASSERT): Likewise.
40431         * tests/test-ceilf2.c (ASSERT): Likewise.
40432         * tests/test-ceill.c (ASSERT): Likewise.
40433         * tests/test-count-one-bits.c (ASSERT): Likewise.
40434         * tests/test-fbufmode.c (ASSERT): Likewise.
40435         * tests/test-fflush2.c (ASSERT): Likewise.
40436         * tests/test-floorf1.c (ASSERT): Likewise.
40437         * tests/test-floorf2.c (ASSERT): Likewise.
40438         * tests/test-floorl.c (ASSERT): Likewise.
40439         * tests/test-fopen.c (ASSERT): Likewise.
40440         * tests/test-fpending.c (ASSERT): Likewise.
40441         * tests/test-fprintf-posix.c (ASSERT): Likewise.
40442         * tests/test-fpurge.c (ASSERT): Likewise.
40443         * tests/test-freadable.c (ASSERT): Likewise.
40444         * tests/test-freadahead.c (ASSERT): Likewise.
40445         * tests/test-freading.c (ASSERT): Likewise.
40446         * tests/test-freadptr.c (ASSERT): Likewise.
40447         * tests/test-freadptr2.c (ASSERT): Likewise.
40448         * tests/test-freadseek.c (ASSERT): Likewise.
40449         * tests/test-freopen.c (ASSERT): Likewise.
40450         * tests/test-frexp.c (ASSERT): Likewise.
40451         * tests/test-frexpl.c (ASSERT): Likewise.
40452         * tests/test-fseek.c (ASSERT): Likewise.
40453         * tests/test-fseeko.c (ASSERT): Likewise.
40454         * tests/test-fstrcmp.c (ASSERT): Likewise.
40455         * tests/test-ftell.c (ASSERT): Likewise.
40456         * tests/test-ftello.c (ASSERT): Likewise.
40457         * tests/test-func.c (ASSERT): Likewise.
40458         * tests/test-fwritable.c (ASSERT): Likewise.
40459         * tests/test-fwriting.c (ASSERT): Likewise.
40460         * tests/test-getdelim.c (ASSERT): Likewise.
40461         * tests/test-getline.c (ASSERT): Likewise.
40462         * tests/test-i-ring.c (ASSERT): Likewise.
40463         * tests/test-iconv-utf.c (ASSERT): Likewise.
40464         * tests/test-iconv.c (ASSERT): Likewise.
40465         * tests/test-isfinite.c (ASSERT): Likewise.
40466         * tests/test-isnand.c (ASSERT): Likewise.
40467         * tests/test-isnanf.c (ASSERT): Likewise.
40468         * tests/test-isnanl.h (ASSERT): Likewise.
40469         * tests/test-ldexpl.c (ASSERT): Likewise.
40470         * tests/test-linked_list.c (ASSERT): Likewise.
40471         * tests/test-linkedhash_list.c (ASSERT): Likewise.
40472         * tests/test-localename.c (ASSERT): Likewise.
40473         * tests/test-lseek.c (ASSERT): Likewise.
40474         * tests/test-mbscasecmp.c (ASSERT): Likewise.
40475         * tests/test-mbscasestr1.c (ASSERT): Likewise.
40476         * tests/test-mbscasestr2.c (ASSERT): Likewise.
40477         * tests/test-mbscasestr3.c (ASSERT): Likewise.
40478         * tests/test-mbscasestr4.c (ASSERT): Likewise.
40479         * tests/test-mbschr.c (ASSERT): Likewise.
40480         * tests/test-mbscspn.c (ASSERT): Likewise.
40481         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
40482         * tests/test-mbspbrk.c (ASSERT): Likewise.
40483         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
40484         * tests/test-mbsrchr.c (ASSERT): Likewise.
40485         * tests/test-mbsspn.c (ASSERT): Likewise.
40486         * tests/test-mbsstr1.c (ASSERT): Likewise.
40487         * tests/test-mbsstr2.c (ASSERT): Likewise.
40488         * tests/test-mbsstr3.c (ASSERT): Likewise.
40489         * tests/test-memchr2.c (ASSERT): Likewise.
40490         * tests/test-memmem.c (ASSERT): Likewise.
40491         * tests/test-open.c (ASSERT): Likewise.
40492         * tests/test-printf-frexp.c (ASSERT): Likewise.
40493         * tests/test-printf-frexpl.c (ASSERT): Likewise.
40494         * tests/test-printf-posix.c (ASSERT): Likewise.
40495         * tests/test-quotearg.c (ASSERT): Likewise.
40496         * tests/test-rbtree_list.c (ASSERT): Likewise.
40497         * tests/test-rbtree_oset.c (ASSERT): Likewise.
40498         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
40499         * tests/test-round1.c (ASSERT): Likewise.
40500         * tests/test-roundf1.c (ASSERT): Likewise.
40501         * tests/test-roundl.c (ASSERT): Likewise.
40502         * tests/test-signbit.c (ASSERT): Likewise.
40503         * tests/test-sleep.c (ASSERT): Likewise.
40504         * tests/test-snprintf-posix.c (ASSERT): Likewise.
40505         * tests/test-snprintf.c (ASSERT): Likewise.
40506         * tests/test-sprintf-posix.c (ASSERT): Likewise.
40507         * tests/test-stat-time.c (ASSERT): Likewise.
40508         * tests/test-strcasestr.c (ASSERT): Likewise.
40509         * tests/test-strerror.c (ASSERT): Likewise.
40510         * tests/test-striconv.c (ASSERT): Likewise.
40511         * tests/test-striconveh.c (ASSERT): Likewise.
40512         * tests/test-striconveha.c (ASSERT): Likewise.
40513         * tests/test-strsignal.c (ASSERT): Likewise.
40514         * tests/test-strstr.c (ASSERT): Likewise.
40515         * tests/test-strtod.c (ASSERT): Likewise.
40516         * tests/test-trunc1.c (ASSERT): Likewise.
40517         * tests/test-trunc2.c (ASSERT): Likewise.
40518         * tests/test-truncf1.c (ASSERT): Likewise.
40519         * tests/test-truncf2.c (ASSERT): Likewise.
40520         * tests/test-truncl.c (ASSERT): Likewise.
40521         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
40522         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
40523         * tests/test-vasnprintf.c (ASSERT): Likewise.
40524         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
40525         * tests/test-vasprintf.c (ASSERT): Likewise.
40526         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
40527         * tests/test-vprintf-posix.c (ASSERT): Likewise.
40528         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
40529         * tests/test-vsnprintf.c (ASSERT): Likewise.
40530         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
40531         * tests/test-wcwidth.c (ASSERT): Likewise.
40532         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
40533         * tests/test-xprintf-posix.c (ASSERT): Likewise.
40534         * tests/test-xvasprintf.c (ASSERT): Likewise.
40535         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
40536         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
40537         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
40538         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
40539         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
40540         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
40541         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
40542         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
40543         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
40544         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
40545         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
40546         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
40547         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
40548         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
40549         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
40550         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
40551         * tests/unictype/test-block_list.c (ASSERT): Likewise.
40552         * tests/unictype/test-block_of.c (ASSERT): Likewise.
40553         * tests/unictype/test-block_test.c (ASSERT): Likewise.
40554         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
40555         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
40556         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
40557         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
40558         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
40559         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
40560         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
40561         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
40562         * tests/unictype/test-combining.c (ASSERT): Likewise.
40563         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
40564         * tests/unictype/test-digit.c (ASSERT): Likewise.
40565         * tests/unictype/test-mirror.c (ASSERT): Likewise.
40566         * tests/unictype/test-numeric.c (ASSERT): Likewise.
40567         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
40568         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
40569         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
40570         * tests/unictype/test-scripts.c (ASSERT): Likewise.
40571         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
40572         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
40573         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
40574         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
40575         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
40576         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
40577         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
40578         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
40579         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
40580         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
40581         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
40582         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
40583         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
40584         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
40585         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
40586         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
40587         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
40588         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
40589         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
40590         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
40591         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
40592         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
40593         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
40594         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
40595         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
40596         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
40597         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
40598         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
40599         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
40600         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
40601         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
40602         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
40603         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
40604         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
40605         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
40606         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
40607         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
40608         Reported by Eric Blake.
40609
40610 2008-04-11  Bruno Haible  <bruno@clisp.org>
40611
40612         * lib/wchar.in.h: Tweak comment.
40613
40614 2008-04-11  Bruno Haible  <bruno@clisp.org>
40615
40616         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
40617         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
40618         gl_COMMON.
40619         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
40620
40621 2008-04-11  Bruno Haible  <bruno@clisp.org>
40622
40623         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
40624
40625 2008-04-11  Simon Josefsson  <simon@josefsson.org>
40626
40627         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
40628         of attempting to use non-existing /dev/*random.  Based on patch
40629         from Adam Strzelecki <ono@java.pl> in
40630         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
40631
40632 2008-04-08  Bruno Haible  <bruno@clisp.org>
40633
40634         Add tentative support for emx+gcc.
40635         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
40636         * lib/fpurge.c (fpurge): Likewise.
40637         * lib/freadable.c (freadable): Likewise.
40638         * lib/freadahead.c (freadahead): Likewise.
40639         * lib/freading.c (freading): Likewise.
40640         * lib/freadptr.c (freadptr): Likewise.
40641         * lib/freadseek.c (freadptrinc): Likewise.
40642         * lib/fseeko.c (rpl_fseeko): Likewise.
40643         * lib/fseterr.c (fseterr): Likewise.
40644         * lib/fwritable.c (fwritable): Likewise.
40645         * lib/fwriting.c (fwriting): Likewise.
40646         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
40647
40648 2008-04-09  Eric Blake  <ebb9@byu.net>
40649
40650         Avoid some autoconf warnings.
40651         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
40652         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
40653         * m4/afs.m4 (gl_AFS): Likewise.
40654         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
40655         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
40656         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40657         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
40658         (gl_INTEGER_TYPE_SUFFIX): Likewise.
40659         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
40660         (AC_CHECK_DECLS_ONCE): Likewise.
40661         Rename file...
40662         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
40663         gnulib-tool requires autoconf 2.59 or better.
40664         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
40665
40666 2008-04-08  Eric Blake  <ebb9@byu.net>
40667
40668         Use 'git describe --match' if present (added in git 1.5.5).
40669         * build-aux/git-version-gen: Limit result to tags that match 'v*'
40670         if possible.
40671
40672 2008-04-08  Bruno Haible  <bruno@clisp.org>
40673
40674         Add tentative support for OpenServer.
40675         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
40676         _ptr, _cnt.
40677         * lib/fpurge.c (fpurge): Likewise.
40678         * lib/freadable.c (freadable): Likewise.
40679         * lib/freadahead.c (freadahead): Likewise.
40680         * lib/freading.c (freading): Likewise.
40681         * lib/freadptr.c (freadptr): Likewise.
40682         * lib/freadseek.c (freadptrinc): Likewise.
40683         * lib/fseeko.c (rpl_fseeko): Likewise.
40684         * lib/fseterr.c (fseterr): Likewise.
40685         * lib/fwritable.c (fwritable): Likewise.
40686         * lib/fwriting.c (fwriting): Likewise.
40687         Reported by Roger Cornelius <rac@tenzing.org> and
40688         Brian K. White <brian@aljex.com>.
40689
40690 2008-04-06  Jim Meyering  <meyering@redhat.com>
40691
40692         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
40693
40694 2008-04-06  Bruno Haible  <bruno@clisp.org>
40695
40696         Avoid possible error with non-ASCII bytes in UTF-8 locales.
40697         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
40698         * tests/test-printf-posix.sh: Likewise.
40699         * tests/test-vfprintf-posix.sh: Likewise.
40700         * tests/test-vprintf-posix.sh: Likewise.
40701         * tests/test-xprintf-posix.sh: Likewise.
40702
40703 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40704
40705         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
40706         hide error from 'ls', needed on OS/2.
40707         Report by Elbert Pol <elbert.pol@gmail.com>.
40708
40709 2008-04-04  Eric Blake  <ebb9@byu.net>
40710
40711         Make test-fseeko.c failures meaningful.
40712         * tests/test-fseeko.c: Print line number on failure.
40713         * tests/test-fseek.c: Likewise.
40714         Reported by Nelson H. F. Beebe.
40715
40716         Improve strtod bug detection check.
40717         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
40718         required for Solaris 10.
40719         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
40720
40721 2008-04-04  Bruno Haible  <bruno@clisp.org>
40722
40723         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
40724         by m4/setenv.m4.
40725
40726 2008-04-03  Eric Blake  <ebb9@byu.net>
40727
40728         Ensure sane .version contents.
40729         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
40730         version string.
40731         * build-aux/git-version-gen: Improve documentation.
40732
40733         Make GNU make output nicer.
40734         * top/GNUmakefile [!_have-Makefile]: Add dependency on
40735         MAKECMDGOALS to enforce message for all command line targets.  Set
40736         srcdir for use in maint.mk.
40737
40738         Another maintainer tweak.
40739         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
40740         a target that regenerates version.
40741
40742 2008-04-03  Jim Meyering  <meyering@redhat.com>
40743
40744         vc-list-files: don't cause coreutils "make po-check" failure
40745         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
40746
40747 2008-04-03  Eric Blake  <ebb9@byu.net>
40748
40749         Allow VPATH usage of vc-list-files.
40750         * build-aux/vc-list-files (scriptversion): Add timestamp.
40751         (options): Add --help, --version, -C.
40752         (CVS): Support installed cvsu.
40753
40754 2008-04-02  Bruno Haible  <bruno@clisp.org>
40755
40756         Avoid some "statement with no effect" warnings from gcc.
40757         * tests/test-wctype.c (main): Explicitly ignore unused values.
40758         Reported by Jim Meyering.
40759
40760 2008-04-02  Jim Meyering  <meyering@redhat.com>
40761
40762         Avoid some warnings from "gcc -Wshadow".
40763         * tests/test-frexp.c (exp): Define to a different identifier.
40764         * tests/test-frexpl.c (exp): Likewise.
40765
40766 2008-04-03  Jim Meyering  <meyering@redhat.com>
40767
40768         bootstrap: remove dangling *.[ch] symlinks from lib
40769         * build-aux/bootstrap [dangling symlink removal]: Move find's
40770         -depth option to precede all others, to avoid a warning.
40771         Remove *.[ch] files too, and from "$source_base" (usually lib/).
40772
40773 2008-04-02  Bruno Haible  <bruno@clisp.org>
40774
40775         Avoid some warnings from "gcc -Wshadow".
40776         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
40777         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
40778         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
40779         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
40780         Reported by Jim Meyering.
40781
40782 2008-04-01  Bruno Haible  <bruno@clisp.org>
40783
40784         Fix test to work on IRIX 6.5 with cc.
40785         * tests/test-math.c (numeric_equal): New function.
40786         (main): Use it.
40787
40788 2008-04-01  Bruno Haible  <bruno@clisp.org>
40789
40790         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
40791
40792 2008-04-01  Bruno Haible  <bruno@clisp.org>
40793
40794         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
40795         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40796         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
40797         (Depends-on): Remove math.
40798
40799         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
40800         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40801         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
40802         (Depends-on): Remove math.
40803
40804         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
40805         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40806         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
40807         (Depends-on): Remove math.
40808         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
40809         (Depends-on): Remove math.
40810
40811         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
40812         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40813         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
40814         (Depends-on): Remove math.
40815         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
40816         (Depends-on): Remove math.
40817
40818         * tests/test-round1.c: Include nan.h.
40819         (main): Use NaNd instead of NAN.
40820         * modules/round-tests (Files): Add tests/nan.h.
40821
40822         * tests/test-trunc1.c: Include nan.h.
40823         (main): Use NaNd instead of NAN.
40824         * modules/trunc-tests (Files): Add tests/nan.h.
40825
40826         * tests/test-roundf1.c: Include nan.h.
40827         (main): Use NaNf instead of NAN.
40828         * modules/roundf-tests (Files): Add tests/nan.h.
40829
40830         * tests/test-truncf1.c: Include nan.h.
40831         (main): Use NaNf instead of NAN.
40832         * modules/truncf-tests (Files): Add tests/nan.h.
40833
40834         * tests/test-ceilf1.c: Include nan.h.
40835         (main): Use NaNf instead of NAN.
40836         * modules/ceilf-tests (Files): Add tests/nan.h.
40837
40838         * tests/test-floorf1.c: Include nan.h.
40839         (main): Use NaNf instead of NAN.
40840         * modules/floorf-tests (Files): Add tests/nan.h.
40841
40842         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
40843         (main): Use NaNf instead of NAN.
40844         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
40845
40846         * tests/test-isnand.c: Include nan.h instead of <math.h>.
40847         (main): Use NaNd instead of NAN.
40848         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
40849
40850         * tests/test-frexp.c: Include nan.h.
40851         (main): Use NaNd instead of NAN.
40852         * modules/frexp-tests (Files): Add tests/nan.h.
40853
40854         * lib/isnan.c: Don't include <math.h>.
40855         (FUNC): Don't use NAN macro.
40856         * modules/isnand-nolibm (Depends-on): Remove math.
40857         * modules/isnanf-nolibm (Depends-on): Remove math.
40858         * modules/isnanl (Depends-on): Remove math.
40859         * modules/isnanl-nolibm (Depends-on): Remove math.
40860
40861         * tests/nan.h: New file.
40862
40863 2008-04-01  Eric Blake  <ebb9@byu.net>
40864
40865         Fix typos.
40866         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
40867         values to be the right type.
40868
40869         For now, cater to gnulib strtod inaccuracies.
40870         * tests/test-strtod.c (main): Allow 1-ulp error on expected
40871         fractional results.  While not as nice from a QoI perspective, it
40872         is a quicker patch than correctly implementing decimal to binary
40873         rounding.
40874
40875 2008-03-31  Eric Blake  <ebb9@byu.net>
40876
40877         Guarantee a definition of NAN.
40878         * lib/math.in.h (NAN): Define if missing.
40879         * tests/test-math.c (main): Test it.
40880         * doc/posix-headers/math.texi (math.h): Document this.
40881         * lib/isnan.c (rpl_isnand): Use it.
40882         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
40883         * tests/test-floorf1.c (NaN): Likewise.
40884         * tests/test-frexp.c (NaN): Likewise.
40885         * tests/test-isnand.c (NaN): Likewise.
40886         * tests/test-isnanf.c (NaN): Likewise.
40887         * tests/test-round1.c (NaN): Likewise.
40888         * tests/test-roundf1.c (NaN): Likewise.
40889         * tests/test-snprintf-posix.h (NaN): Likewise.
40890         * tests/test-sprintf-posix.h (NaN): Likewise.
40891         * tests/test-trunc1.c (NaN): Likewise.
40892         * tests/test-truncf1.c (NaN): Likewise.
40893         * tests/test-vasnprintf-posix.c (NaN): Likewise.
40894         * tests/test-vasprintf-posix.c (NaN): Likewise.
40895         * modules/isnand-nolibm (Depends-on): Add math.
40896         * modules/isnanf-nolibm (Depends-on): Likewise.
40897         * modules/isnanl (Depends-on): Likewise.
40898         * modules/isnanl-nolibm (Depends-on): Likewise.
40899         * modules/snprintf-posix-tests (Depends-on): Likewise.
40900         * modules/sprintf-posix-tests (Depends-on): Likewise.
40901         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
40902         * modules/vsprintf-posix-tests (Depends-on): Likewise.
40903         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
40904         * modules/vasprintf-posix-tests (Depends-on): Likewise.
40905
40906 2008-03-31  Bruno Haible  <bruno@clisp.org>
40907
40908         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
40909         * doc/posix-functions/strtod.texi: Likewise.
40910
40911 2008-03-31  Bruno Haible  <bruno@clisp.org>
40912
40913         * tests/test-strtod.c (main): Don't use C99 syntax.
40914
40915 2008-03-31  Bruno Haible  <bruno@clisp.org>
40916
40917         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40918         Reported by Eric Blake.
40919
40920 2008-03-31  Jim Meyering  <meyering@redhat.com>
40921
40922         Don't compare actual signbit return values.
40923         * tests/test-strtod.c (main): Rather, compare only their
40924         zero/non-zero nature.
40925
40926 2008-03-31  Eric Blake  <ebb9@byu.net>
40927
40928         More strtod documentation.
40929         * doc/posix-functions/strtod.texi (strtod): Interpret more test
40930         failures as distinct bugs.
40931
40932 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40933
40934         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
40935         Problem reported by Erik Benada in
40936         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
40937
40938 2008-03-30  Bruno Haible  <bruno@clisp.org>
40939
40940         * tests/test-strtod.c: Add comments about which assertion fails on which
40941         platform.
40942         * doc/posix-functions/strtod.texi: Add info about many more platforms.
40943
40944 2008-03-30  Eric Blake  <ebb9@byu.net>
40945
40946         Test signbit behavior on zeros.
40947         * tests/test-signbit.c (test_signbitf): Add tests for zero.
40948         (test_signbitd, test_signbitl): Likewise.
40949
40950         More strtod touchups.
40951         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
40952         sign of negative underflow, for now.  Use .5, not .1.
40953         * doc/posix-functions/strtod.texi (strtod): Mention these
40954         limitations.
40955         Reported by Jim Meyering.
40956
40957 2008-03-30  Bruno Haible  <bruno@clisp.org>
40958
40959         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
40960         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
40961
40962 2008-03-30  Bruno Haible  <bruno@clisp.org>
40963
40964         Avoid failure when attempting to return empty iconv results on some
40965         platforms.
40966         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
40967         allocation, don't report ENOMEM when the resulting string is empty.
40968
40969 2008-03-30  Bruno Haible  <bruno@clisp.org>
40970
40971         Fix buffer overrun.
40972         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
40973         Don't consider the width for tmp_length. Check count against tmp_length
40974         before doing the padding. Ensure enough allocation during padding.
40975
40976 2008-03-30  Eric Blake  <ebb9@byu.net>
40977
40978         strtod touchups.
40979         * lib/strtod.c (strtod): Avoid compiler warnings.
40980         Reported by Jim Meyering.
40981
40982 2008-03-30  Bruno Haible  <bruno@clisp.org>
40983
40984         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
40985         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
40986         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
40987         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
40988         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
40989         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
40990         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
40991         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
40992
40993         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
40994         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
40995         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
40996         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
40997         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
40998         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
40999         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
41000         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
41001
41002         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
41003         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
41004         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
41005         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
41006         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
41007         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
41008         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
41009         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
41010
41011         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
41012         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
41013
41014         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
41015         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
41016
41017         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
41018         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
41019
41020         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
41021         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
41022         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
41023
41024         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
41025         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
41026         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
41027
41028         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
41029         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
41030         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
41031
41032         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
41033         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
41034         * modules/vasprintf (Depends-on): Add EOVERFLOW.
41035
41036         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
41037         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
41038         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
41039         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
41040         (Depends-on): Add EOVERFLOW.
41041         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
41042         (Depends-on): Add EOVERFLOW.
41043         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41044         (Depends-on): Add EOVERFLOW.
41045         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41046         (Depends-on): Add EOVERFLOW.
41047         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41048         (Depends-on): Add EOVERFLOW.
41049         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41050         (Depends-on): Add EOVERFLOW.
41051         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41052         (Depends-on): Add EOVERFLOW.
41053         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41054         (Depends-on): Add EOVERFLOW.
41055
41056         * lib/sprintf.c (EOVERFLOW): Remove fallback.
41057         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
41058         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
41059
41060         * lib/snprintf.c (EOVERFLOW): Remove fallback.
41061         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
41062         * modules/snprintf (Depends-on): Add EOVERFLOW.
41063
41064         * lib/poll.c (EOVERFLOW): Remove fallback.
41065         * modules/poll (Depends-on): Add EOVERFLOW.
41066
41067         * lib/getugroups.c (EOVERFLOW): Remove fallback.
41068         * modules/getugroups (Depends-on): Add EOVERFLOW.
41069
41070         * lib/getdelim.c (EOVERFLOW): Remove fallback.
41071         * modules/getdelim (Depends-on): Add EOVERFLOW.
41072
41073         * lib/ftell.c (EOVERFLOW): Remove fallback.
41074         * modules/ftell (Depends-on): Add EOVERFLOW.
41075
41076         * lib/fprintf.c (EOVERFLOW): Remove fallback.
41077         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
41078         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
41079
41080         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
41081
41082         * modules/EOVERFLOW-tests: New file.
41083         * tests/test-EOVERFLOW.c: New file.
41084
41085         * modules/EOVERFLOW: New file.
41086         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
41087
41088 2008-03-30  Bruno Haible  <bruno@clisp.org>
41089
41090         Fix bug introduced on 2007-06-10.
41091         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
41092         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
41093
41094 2008-03-30  Bruno Haible  <bruno@clisp.org>
41095
41096         Improve freadseek's efficiency after ungetc.
41097         * lib/freadseek.c: Include freadahead.h.
41098         (freadptrinc): New function, extracted from freadseek.
41099         (freadseek): Use it in a loop. Use freadahead to determine the number
41100         of loop iterations.
41101         * modules/freadseek (Depends-on): Add freadahead.
41102         (configure.ac): Require AC_C_INLINE.
41103
41104 2008-03-30  Bruno Haible  <bruno@clisp.org>
41105
41106         * lib/freadseek.c (freadseek): Don't ignore the return value of
41107         freadptr.
41108
41109 2008-03-29  Eric Blake  <ebb9@byu.net>
41110
41111         Add hex float support.
41112         * modules/strtod (Depends-on): Add c-ctype.
41113         (Link): Mention POW_LIB.
41114         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
41115         whitespace between 'e' and exponent.
41116         * tests/test-strtod.c (main): Enable hex float tests.
41117         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
41118         now provides.
41119
41120         Document various strtod bugs, with some fixes.
41121         * doc/posix-functions/strtod.texi (strtod): Document bugs with
41122         "-0x", "inf", "nan", and hex constants.
41123         * doc/posix-functions/atof.texi (atof): Likewise.
41124         * modules/stdlib (Makefile.am): Support strtod.
41125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41126         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
41127         detect additional strtod bugs.
41128         * lib/stdlib.in.h (rpl_strtod): Add declarations.
41129         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
41130         bool where appropriate.  Parse 'inf' and 'nan'.
41131         * tests/test-strtod.c: New file.
41132         * modules/strtod (Depends-on): Add stdbool, stdlib.
41133         (configure.ac): Turn on module indicator.
41134         * modules/strtod-tests: New module.
41135
41136 2008-03-29  Eric Blake  <ebb9@byu.net>
41137
41138         Fix ftell on mingw.
41139         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
41140         * modules/ftell-tests (Depends-on): Add binary-io.
41141         * modules/ftello-tests (Depends-on): Likewise.
41142         * tests/test-ftell.c (main): Enhance test to cover behavior after
41143         ungetc.  Enforce binary mode.
41144         * tests/test-ftello.c (main): Likewise.
41145
41146         Pass test-freadseek on cygwin.
41147         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
41148         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
41149         ungetc buffer.
41150
41151         * tests/test-fflush2.c (main): Fix typo.
41152
41153 2008-03-29  Bruno Haible  <bruno@clisp.org>
41154
41155         * tests/test-fflush2.c (main): Temporarily disable the contents of
41156         this test.
41157         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
41158         Reported by Eric Blake.
41159
41160 2008-03-28  Simon Josefsson  <simon@josefsson.org>
41161
41162         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
41163         (GC_SHA224_DIGEST_SIZE): Add.
41164
41165         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
41166         (gc_hash_digest_length): Likewise.
41167         (gc_hash_buffer): Likewise.
41168
41169 2008-03-25  Bruno Haible  <bruno@clisp.org>
41170
41171         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
41172         detail which gettext release to use.
41173         Reported by Simon Josefsson.
41174
41175 2008-03-26  Jim Meyering  <meyering@redhat.com>
41176
41177         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
41178         * modules/gnumakefile (clean-GNUmakefile): Also, use
41179         test ... && ... || : syntax rather than if-then ... fi.
41180
41181         gnumakefile: Don't double-quote-expand $(VPATH) value.
41182         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
41183
41184 2008-03-24  Eric Blake  <ebb9@byu.net>
41185
41186         Alter GNUmakefile to install into top directory.
41187         * modules/maintainer-makefile: Split, and add dependency...
41188         * modules/gnumakefile: to this new module.
41189         * build-aux/GNUmakefile: Move...
41190         * top/GNUmakefile: ...here.
41191         * build-aux/maint.mk: Move...
41192         * top/maint.mk: ...here.
41193         * MODULES.html.sh (Support for maintaining...): Document new
41194         module.
41195
41196 2008-03-23  Bruno Haible  <bruno@clisp.org>
41197
41198         * gnulib-tool: New options --vc-files, --no-vc-files.
41199         (func_usage): Document them.
41200         (vc_files): New variable.
41201         (func_import): Consider vc_files.
41202         (func_create_testdir): Set vc_files to empty.
41203         Suggested by Jim Meyering and Karl Berry.
41204
41205 2008-03-23  Bruno Haible  <bruno@clisp.org>
41206
41207         Fix regex compilation error on HP-UX 11.
41208         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
41209         * modules/regex (Files): Add m4/mbstate_t.m4.
41210         Reported by Ton Voon <ton.voon@altinity.com>.
41211
41212 2008-03-23  Bruno Haible  <bruno@clisp.org>
41213
41214         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
41215
41216 2008-03-23  Eric Blake  <ebb9@byu.net>
41217             Bruno Haible  <bruno@clisp.org>
41218
41219         Install files from top/ in the destination directory.
41220         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41221         augmentation also for the files from top/.
41222         (func_import, func_create_testdir): Rewrite file names:
41223         top/filename -> filename.
41224
41225 2008-03-23  Bruno Haible  <bruno@clisp.org>
41226
41227         Tweak "gnulib --version" output.
41228         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
41229
41230 2008-03-23  Bruno Haible  <bruno@clisp.org>
41231
41232         Tweak "gnulib --version" output.
41233         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
41234         rather than contents of ChangeLog, when possible.
41235
41236 2008-03-21  Eric Blake  <ebb9@byu.net>
41237
41238         More --version tweaks.
41239         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
41240         date of last ChangeLog entry.
41241
41242 2008-03-21  Jim Meyering  <meyering@redhat.com>
41243
41244         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
41245
41246 2008-03-20  Eric Blake  <ebb9@byu.net>
41247
41248         VPATH fix.
41249         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
41250
41251 2008-03-20  Simon Josefsson  <simon@josefsson.org>
41252
41253         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
41254         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
41255
41256 2008-03-20  Eric Blake  <ebb9@byu.net>
41257
41258         Sync GNUmakefile with coreutils.
41259         * build-aux/GNUmakefile (have-Makefile): Rename...
41260         (_have-Makefile): ...to this, for namespace consideration.
41261         (GNUmakefile.cfg): Include, if present.
41262         (_autoreconf): Define a default.
41263         (_is-dist-target): New rule for rebuilds to pick up intra-release
41264         version.
41265         (maint-cfg.mk): Rename...
41266         (cfg.mk): ...to this.
41267
41268 2008-03-18  Jim Meyering  <meyering@redhat.com>
41269
41270         New script and module: mktempd
41271         * MODULES.html.sh (maint+release support): Add mktempd.
41272         * build-aux/mktempd: New file.
41273         * modules/mktempd: New file.
41274
41275 2008-03-15  Jim Meyering  <meyering@redhat.com>
41276
41277         Undo last change.
41278         * lib/sha1.c, lib/md5.c: 63 != ~63.
41279         Reported by Andreas Schwab.
41280
41281         sha1.c, md5.c: Hoist a redundant expression.
41282         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
41283         "ctx->buflen" only once, before calling *_process_block.
41284         * lib/md5.c (md5_process_bytes): Likewise.
41285
41286 2008-03-14  Eric Blake  <ebb9@byu.net>
41287
41288         Bump copyright year in files generated by gnulib-tool.
41289         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
41290         gnulib-tool, rather than hard-coding it.
41291
41292         Fix 'gnulib-tool --version' output to work with git.
41293         * gnulib-tool (func_gnulib_dir): New function, extracted from...
41294         (startup): ...here.
41295         (func_version): Use it to invoke git-version-gen, rather than
41296         relying on CVS keyword expansion.  Modernize wording.
41297         (cvsdatestamp, last_checkin_date, version): Kill unused
41298         variables.
41299
41300 2008-03-12  Jim Meyering  <meyering@redhat.com>
41301
41302         Recognize optional cast of the argument to free.
41303         * build-aux/useless-if-before-free: Update regexps.
41304
41305         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
41306
41307 2008-03-11  Bruno Haible  <bruno@clisp.org>
41308
41309         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
41310         by a single package.
41311         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
41312         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
41313         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
41314         Reported by Sam Steingold <sds@gnu.org>.
41315
41316 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41317
41318         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
41319         repositories.
41320
41321 2008-03-11  Bruno Haible  <bruno@clisp.org>
41322
41323         Avoid conflicts between local macro definitions.
41324         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41325         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
41326
41327 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
41328             Bruno Haible  <bruno@clisp.org>
41329
41330         Make va_copy work with some version of xlc on AIX 5.1.
41331         * lib/stdarg.in.h: New file.
41332         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
41333         On AIX, use a <stdarg.h> file substitute.
41334         * modules/stdarg (Files): Add lib/stdarg.in.h.
41335         (Depends-on): Add include_next.
41336         (Makefile.am): Build a stdarg.h substitute if requested.
41337         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
41338
41339 2008-03-10  Bruno Haible  <bruno@clisp.org>
41340
41341         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
41342         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41343         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41344
41345 2008-03-10  Bruno Haible  <bruno@clisp.org>
41346
41347         * modules/stdlib (Depends-on): Add include_next, remove
41348         absolute-header.
41349
41350 2008-03-09  Bruno Haible  <bruno@clisp.org>
41351
41352         * lib/freadahead.h (freadahead): Document more precisely.
41353         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
41354         the sum of both buffer sizes.
41355         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
41356         * NEWS: Document the change.
41357
41358 2008-03-09  Bruno Haible  <bruno@clisp.org>
41359
41360         Extend freadptr to return also the buffer size.
41361         * lib/freadptr.h (freadptr): Add sizep argument.
41362         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
41363         (freadptr): Add sizep argument. Determine buffer size like freadahead
41364         does.
41365         * tests/test-freadptr.c: Don't include freadahead.h.
41366         (main): Adapt for new calling convention of freadptr.
41367         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
41368         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
41369         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
41370         tests/test-freadptr2.sh.
41371         (Depends): Remove freadahead.
41372         (TESTS): Add test-freadptr2.sh.
41373         (check_PROGRAMS): Add test-freadptr2.
41374
41375 2008-03-09  Bruno Haible  <bruno@clisp.org>
41376
41377         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
41378         Report and solution by Simon Josefsson.
41379
41380 2008-03-06  Bruno Haible  <bruno@clisp.org>
41381
41382         Make fflush after ungetc work on BSD platforms.
41383         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
41384         * tests/test-fflush2.c: New file.
41385         * tests/test-fflush2.sh: New file.
41386         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
41387         tests/test-fflush2.c.
41388         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
41389         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
41390
41391 2008-03-06  Eric Blake  <ebb9@byu.net>
41392
41393         Likewise for ftello.
41394         * modules/ftello (Dependencies): Add extensions.
41395         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
41396
41397 2008-03-06  Bruno Haible  <bruno@clisp.org>
41398
41399         * modules/fseeko (Dependencies): Add extensions.
41400         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
41401         Needed on glibc systems.
41402
41403 2008-03-06  Bruno Haible  <bruno@clisp.org>
41404
41405         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
41406         email address.
41407         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41408
41409 2008-03-06  Bruno Haible  <bruno@clisp.org>
41410
41411         * users.txt: Add libgnupdf.
41412
41413 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41414
41415         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
41416         (Header File Substitutes, Function Substitutes,
41417         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
41418         (Build robot for gnulib): Fix typo.
41419
41420 2008-03-06  Bruno Haible  <bruno@clisp.org>
41421
41422         * doc/gnulib-tool.texi (VCS Issues): Small updates.
41423         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41424
41425 2008-03-06  Bruno Haible  <bruno@clisp.org>
41426
41427         * doc/func.texi: New file, extracted from doc/gnulib.texi.
41428         * doc/gnulib.texi: Include it.
41429
41430 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41431
41432         * modules/func (License): Change license to unlimited; there was
41433         no LGPL parts in the module anyway.
41434
41435 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41436
41437         * modules/__func__: Renamed to modules/func.
41438         * modules/__func__-tests: Renamed to modules/func-tests.
41439         * tests/test-__func__.c: Renamed to tests/test-func.c.
41440         * m4/__func__.m4: Renamed to m4/func.m4.
41441         * doc/gnulib.texi (__func__): Section renamed to func.
41442         Suggested by Eric Blake <ebb9@byu.net>.
41443
41444 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41445
41446         * doc/gnulib.texi (__func__): Use C99 terminology when talking
41447         about __func__.  Make example self-contained.  Suggested by Eric
41448         Blake <ebb9@byu.net>.
41449
41450         * tests/test-__func__.c (main): Avoid extraneous () around __func.
41451         Suggested by Eric Blake <ebb9@byu.net>.
41452
41453 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41454
41455         * modules/__func__: New file.
41456         * modules/__func__-tests: New file.
41457         * tests/test-__func__.c: New file.
41458         * m4/__func__.m4: New file.
41459         * doc/gnulib.texi (__func__): Document __func__ module.
41460
41461 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41462
41463         * modules/byteswap (License): Re-license as LGPLv2+.
41464
41465 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41466
41467         * doc/Makefile: Add pdf target.
41468
41469 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41470
41471         * modules/inline (License): Use 'unlimited', since there are only
41472         *.m4 files in this module.
41473
41474 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41475             Bruno Haible  <bruno@clisp.org>
41476
41477         Add support for HP C 7.1 on OpenVMS 8.3.
41478         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
41479
41480 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41481
41482         Update VMS specifics.
41483         * lib/getopt.c [VMS]: Remove include of unixlib.h.
41484
41485 2008-03-02  Jim Meyering  <meyering@redhat.com>
41486
41487         Remove the last dependency on the "free" module.
41488         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
41489         Reported by Bob Proulx.
41490
41491         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
41492
41493         Remove useless "if" tests before free.  Deprecate "free" module.
41494         * doc/posix-functions/free.texi: Mention that this
41495         module is no longer useful.
41496         * modules/free (Notice): Say this module is obsolete.
41497         * modules/readutmp (Depends-on): Remove free.
41498         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
41499         * lib/putenv.c (putenv): Likewise.
41500         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
41501         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
41502         * tests/test-c-strcasestr.c (main): Likewise.
41503         * tests/test-c-strstr.c (main): Likewise.
41504         * tests/test-mbscasestr1.c (main): Likewise.
41505         * tests/test-mbscasestr2.c (main): Likewise.
41506         * tests/test-mbsstr1.c (main): Likewise.
41507         * tests/test-mbsstr2.c (main): Likewise.
41508         * tests/test-memmem.c (main): Likewise.
41509         * tests/test-strcasestr.c (main): Likewise.
41510         * tests/test-striconv.c (main): Likewise.
41511         * tests/test-striconveh.c (main): Likewise.
41512         * tests/test-striconveha.c (main): Likewise.
41513         * tests/test-strstr.c (main): Likewise.
41514
41515         * build-aux/git-version-gen: Adjust a comment and the Usage string.
41516
41517         bootstrap: sync from coreutils again
41518         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
41519
41520 2008-03-01  Jim Meyering  <meyering@redhat.com>
41521
41522         bootstrap: sync from coreutils
41523         * build-aux/bootstrap (update_po_files): Copy a .po file into place
41524         also when the target doesn't exist.
41525
41526 2008-03-01  Eric Blake  <ebb9@byu.net>
41527
41528         Fix bugs in last patch.
41529         * lib/memchr2.c (memchr2): Fix typo.
41530         * tests/test-memchr2.c: Test previous bug, and don't use GNU
41531         extension.
41532         Reported by Bruce Korb.
41533
41534         New module 'memchr2'.
41535         * modules/memchr2: New file.
41536         * modules/memchr2-tests: Likewise.
41537         * lib/memchr2.h: Likewise.
41538         * lib/memchr2.c: Likewise, based on memchr.c.
41539         * tests/test-memchr2.c: New test.
41540         * MODULES.html.sh (String handling): Add memchr2.
41541
41542 2008-02-29  Bruno Haible  <bruno@clisp.org>
41543
41544         * modules/freadseek-tests: New file.
41545         * tests/test-freadseek.sh: New file.
41546         * tests/test-freadseek.c: New file.
41547
41548         New module 'freadseek'.
41549         * modules/freadseek: New file.
41550         * lib/freadseek.h: New file.
41551         * lib/freadseek.c: New file.
41552         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
41553
41554 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41555
41556         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
41557         wydawca.
41558
41559         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
41560         program_invocation_name and program_invocation_short_name are
41561         present.
41562
41563 2008-02-28  Bruno Haible  <bruno@clisp.org>
41564
41565         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
41566         * tests/test-freadptr.sh: Also test non-seekable stdin.
41567
41568 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
41569
41570         * build-aux/bootstrap (source_base, m4_base)
41571         (doc_base, tests_base): New variables.
41572         (gnulib_tool_options): Do not hardcode base directories, use
41573         the above variables instead.
41574
41575 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
41576
41577         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
41578
41579 2008-02-28  Bruno Haible  <bruno@clisp.org>
41580
41581         * modules/freadptr-tests: New file.
41582         * tests/test-freadptr.sh: New file.
41583         * tests/test-freadptr.c: New file.
41584
41585         New module 'freadptr'.
41586         * modules/freadptr: New file.
41587         * lib/freadptr.h: New file.
41588         * lib/freadptr.c: New file.
41589         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
41590
41591 2008-02-26  Karl Berry  <karl@freefriends.org>
41592
41593         Sync from Libtool:
41594         * libltdl/argz.c (argz_add, argz_count): New functions.
41595         * libltdl/argz.in.h: Declare them.
41596         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
41597
41598 2008-02-22  Bruno Haible  <bruno@clisp.org>
41599
41600         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
41601         is a pointer type.  Needed for HP-UX 10.
41602         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
41603         * doc/posix-functions/gmtime_r.texi: Likewise.
41604         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41605
41606 2008-02-24  Bruno Haible  <bruno@clisp.org>
41607
41608         * modules/environ-tests: New file.
41609         * tests/test-environ.c: New file.
41610
41611         New module 'environ'.
41612         * modules/environ: New file.
41613         * lib/unistd.in.h (environ): New declaration.
41614         * m4/environ.m4: New file.
41615         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
41616         after use.
41617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
41618         HAVE_DECL_ENVIRON.
41619         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
41620         HAVE_DECL_ENVIRON.
41621         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
41622         wrong claim that 'environ' is missing on some systems.
41623         * modules/execute (Depends-on): Add environ.
41624         * lib/execute.c (environ): Remove fallback declaration.
41625         * modules/pipe (Depends-on): Add environ.
41626         * lib/pipe.c (environ): Remove fallback declaration.
41627         * modules/setenv (Depends-on): Add environ.
41628         * lib/setenv.c (environ): Remove fallback declaration.
41629         * modules/unsetenv (Depends-on): Add environ.
41630         * lib/unsetenv.c (environ): Remove fallback declaration.
41631         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
41632         m4/environ.m4.
41633         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
41634         (gl_PREREQ_UNSETENV): Likewise.
41635
41636 2008-02-24  Bruno Haible  <bruno@clisp.org>
41637
41638         * doc/posix-functions/environ.texi: Document the MacOS X problem.
41639
41640 2008-02-20  Bob Proulx  <bob@proulx.com>
41641
41642         Enable use of older two part flavor 'git describe'.
41643         * build-aux/git-version-gen: If using the older two part flavor of
41644         git version then recreate the third part now present in the
41645         newer three part flavor of git describe.
41646
41647 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
41648
41649         * lib/fts.c (fts_build): Typo correction to comment.
41650
41651 2008-02-17  Bruno Haible  <bruno@clisp.org>
41652
41653         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
41654         generating no-op conflicts.
41655
41656 2008-02-17  Bruno Haible  <bruno@clisp.org>
41657
41658         Speed up by 10%.
41659         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
41660         result_entries, rather than an index-based loop.
41661
41662 2008-02-17  Bruno Haible  <bruno@clisp.org>
41663
41664         Speed up by 25%.
41665         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
41666         'hashcode_cached'.
41667         (entry_create): New function.
41668         (entry_hashcode): Use the cached hashcode if possible.
41669         (read_changelog_file, try_split_merged_entry): Use entry_create.
41670
41671 2008-02-17  Bruno Haible  <bruno@clisp.org>
41672
41673         Speed up from O(n^2) to O(n) for long ChangeLog files.
41674         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
41675         (read_changelog_file): Change implementation of entries_reversed list
41676         to rbtreehash.
41677         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
41678
41679 2008-02-17  Bruno Haible  <bruno@clisp.org>
41680
41681         New option --split-merged-entry.
41682         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
41683         (find_paragraph_end, try_split_merged_entry): New functions.
41684         (long_options): Add option --split-merged-entry.
41685         (usage): Document option --split-merged-entry.
41686         (main): Implement option --split-merged-entry.
41687         Reported by Eric Blake.
41688
41689 2008-02-17  Bruno Haible  <bruno@clisp.org>
41690
41691         * lib/git-merge-changelog.c: Include c-strstr.h.
41692         (main): Support the "git pull --rebase" situation.
41693         * modules/git-merge-changelog (Depends-on): Add c-strstr.
41694         Reported by Eric Blake.
41695
41696 2008-02-16  Eric Blake  <ebb9@byu.net>
41697
41698         Avoid doubling \ in common case of "c-maybe" quoting style.
41699         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
41700         eliding outer quotes.
41701         * lib/quotearg.h: Document this.
41702         * tests/test-quotearg.c (result_strings, inputs, results_g)
41703         (flag_results, locale_results): Test it by adding a new string to
41704         each test group.
41705         (compare_strings): Test new string.
41706
41707 2008-02-13  Eric Blake  <ebb9@byu.net>
41708
41709         Avoid trigraph quoting in default output.
41710         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
41711         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
41712         unless explicitly requested.
41713         * tests/test-quotearg.c (flag_results, main): Add additional tests.
41714
41715 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
41716
41717         Don't rely on signed integer overflowing to negative value.
41718         * lib/getugroups.c (getugroups): Include <limits.h>.
41719         Instead, compare against INT_MAX, and increment only if the test passes.
41720
41721 2008-02-13  Jim Meyering  <meyering@redhat.com>
41722         and Eric Blake  <ebb9@byu.net>
41723
41724         Avoid shadowing warning and compile errors on Linux.
41725         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
41726         forwarding macros on Linux.
41727         (dcgettext): Define a stub, for Linux.
41728         (results_g, main): Avoid warnings.
41729
41730 2008-02-12  Eric Blake  <ebb9@byu.net>
41731
41732         Silence warning in last patch.
41733         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
41734
41735         Quotearg part 4: add tests, fix c-maybe colon quoting.
41736         * lib/quotearg.h: Improve documentation.
41737         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
41738         escapes when adding outer quotes.  When quoting trigraphs, use
41739         valid C notation.  When quoting NUL, omit extra characters if next
41740         character is not digit.  Alter prototype.
41741         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
41742         callers.
41743         * modules/quotearg-tests: New module.
41744         * tests/test-quotearg.c: New test.
41745
41746 2008-02-07  Eric Blake  <ebb9@byu.net>
41747
41748         Quotearg part 3: add flag to control outer quote elision.
41749         * lib/quotearg.h (c_maybe_quoting_style): New style.
41750         (enum quoting_flags): Better documentation of flags.
41751         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
41752         c-maybe style.
41753         (quotearg_buffer_restyled): Handle new flag to elide outer
41754         quotes.
41755
41756         Quotearg part 2: add flag that can control NUL elision.
41757         * lib/quotearg.h (set_quoting_flags): New prototype.
41758         * lib/quotearg.c (struct quoting_options): Add flag field.
41759         (set_quoting_flags): New function.
41760         (quotearg_buffer_restyled): Add flags parameter.
41761         (quotearg_alloc_mem): Set the flag if length cannot be returned.
41762         (quotearg_n_options): Set the flag, since length cannot be
41763         returned.
41764         (quoting_options_from_style): Default flags correctly.
41765
41766         Quotearg part 1: more wrappers, restore quotearg_char state.
41767         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
41768         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
41769         (quotearg_colon_mem): New wrappers.
41770         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
41771         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
41772         functions.
41773         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
41774         (quotearg_colon_mem): New functions.
41775
41776 2008-02-11  Bruno Haible  <bruno@clisp.org>
41777
41778         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
41779         library in the current directory: it does not work with parallel make.
41780         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41781
41782 2008-02-11  Bruno Haible  <bruno@clisp.org>
41783
41784         * .gitattributes: New file.
41785
41786 2008-02-11  Jim Meyering  <meyering@redhat.com>
41787
41788         useless-if-before-free: Fix reversed exit values.
41789         * build-aux/useless-if-before-free: Use correct values
41790         for EXIT_MATCH and EXIT_NO_MATCH.
41791
41792         * build-aux/useless-if-before-free: Close stdout carefully.
41793
41794 2008-02-10  Bruno Haible  <bruno@clisp.org>
41795
41796         New module 'git-merge-changelog'.
41797         * modules/git-merge-changelog: New file.
41798         * lib/git-merge-changelog.c: New file.
41799
41800 2008-02-10  Jim Meyering  <meyering@redhat.com>
41801
41802         useless-if-before-free: New option: --list (-l).
41803
41804         useless-if-before-free: Don't exit immediately upon open failure.
41805         * build-aux/useless-if-before-free: Exit 2 for errors.
41806         Upon failure to open a file, don't exit immediately.
41807         Rather, just warn and continue with any remaining files.
41808
41809 2008-02-10  Bruno Haible  <bruno@clisp.org>
41810
41811         New abstract list operation 'node_set_value'.
41812         * lib/gl_list.h (gl_list_node_set_value): New function.
41813         (struct gl_list_implementation): New field node_set_value.
41814         * lib/gl_list.c (gl_list_node_set_value): New function.
41815         * lib/gl_array_list.c (gl_array_node_set_value): New function.
41816         (gl_array_list_implementation): Update.
41817         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
41818         (gl_carray_list_implementation): Update.
41819         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
41820         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41821         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41822         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
41823         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41824         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41825         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41826         Update.
41827         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41828         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
41829         (gl_sublist_list_implementation): Update.
41830
41831 2008-02-10  Bruno Haible  <bruno@clisp.org>
41832
41833         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
41834         Needed when ELEMENT is #defined to 'some_type *'.
41835
41836 2008-02-10  Jim Meyering  <meyering@redhat.com>
41837
41838         New script and module: useless-if-before-free
41839         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
41840         * build-aux/useless-if-before-free: New file.
41841         * modules/useless-if-before-free: New file.
41842
41843         * build-aux/gitlog-to-changelog: Use committer date, not author date.
41844
41845         xstrtol_error: Fix typo.
41846         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
41847         s/exit_failure/exit_status/.
41848
41849 2008-02-09  Jim Meyering  <meyering@redhat.com>
41850
41851         New script and module: gitlog-to-changelog
41852         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
41853         * modules/gitlog-to-changelog: New file.
41854         * build-aux/gitlog-to-changelog: New file.
41855
41856 2008-02-08  Jim Meyering  <meyering@redhat.com>
41857
41858         Avoid two "parameter unused" warnings.
41859         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
41860         Mark "st" as used.
41861
41862         Use "git COMMAND", not "git-COMMAND".
41863         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
41864         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
41865         * build-aux/git-version-gen: Use "git status", not "git-status".
41866
41867 2008-02-07  Bruno Haible  <bruno@clisp.org>
41868
41869         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
41870         Avoids a crash on Windows Vista.
41871         Reported by Adam Strzelecki <ono@java.pl> via
41872         Simon Josefsson <simon@josefsson.org>.
41873
41874 2008-02-06  Bruno Haible  <bruno@clisp.org>
41875
41876         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
41877         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
41878         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
41879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
41880         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41881         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41882         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
41883         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
41884         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41885         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41886         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41887         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41888         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41889         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41890         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41891         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
41892         left-adjust flag.
41893         * tests/test-snprintf-posix.h (test_function): Likewise.
41894         * tests/test-sprintf-posix.h (test_function): Likewise.
41895         * tests/test-vasprintf-posix.c (test_function): Likewise.
41896         * doc/posix-functions/fprintf.texi: Update.
41897         * doc/posix-functions/printf.texi: Update.
41898         * doc/posix-functions/snprintf.texi: Update.
41899         * doc/posix-functions/sprintf.texi: Update.
41900         * doc/posix-functions/vfprintf.texi: Update.
41901         * doc/posix-functions/vprintf.texi: Update.
41902         * doc/posix-functions/vsnprintf.texi: Update.
41903         * doc/posix-functions/vsprintf.texi: Update.
41904         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41905
41906 2008-02-06  Bruno Haible  <bruno@clisp.org>
41907
41908         Fix bug introduced on 2008-01-26.
41909         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
41910
41911 2008-02-06  Bruno Haible  <bruno@clisp.org>
41912
41913         Fix bug introduced on 2007-06-10.
41914         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
41915         !NEED_PRINTF_FLAG_ZERO.
41916
41917 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41918
41919         getloadavg: use libperfstat on AIX5
41920         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41921
41922 2008-02-03  Bruno Haible  <bruno@clisp.org>
41923
41924         * lib/diffseq.h: Add comments about required #includes.
41925         Reported by Michael Biggs <gnulib@doubleplum.net>.
41926
41927 2008-02-01  Bruno Haible  <bruno@clisp.org>
41928
41929         * users.txt: Add gnuit.
41930
41931 2008-01-31  Bruno Haible  <bruno@clisp.org>
41932
41933         * lib/md4.c (set_uint32): Mark as inline.
41934         * lib/md5.c (set_uint32): Likewise.
41935         * lib/sha1.c (set_uint32): Likewise.
41936         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
41937         * m4/md5.m4 (gl_MD5): Likewise.
41938         * m4/sha1.m4 (gl_SHA1): Likewise.
41939
41940 2008-01-31  Jim Meyering  <meyering@redhat.com>
41941
41942         Use "sizeof VAR", rather than a literal "4".
41943         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
41944         * lib/md4.c (md4_read_ctx): Likewise.
41945         * lib/sha1.c (sha1_read_ctx): Likewise.
41946
41947 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41948
41949         * tests/test-sha1.c: New file, based on test-md5.c.
41950
41951         * modules/crypto/sha1-tests: New file.
41952
41953 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41954
41955         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
41956
41957 2008-01-31  Jim Meyering  <meyering@redhat.com>
41958
41959         Prefer "sizeof v" over the equivalent "4".
41960         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
41961         * lib/md5.c (set_uint32): Likewise.
41962         * lib/sha1.c (set_uint32): Likewise.
41963
41964 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41965
41966         * lib/sha1.c (set_uint32): Mark function as static.
41967
41968 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41969
41970         md2: clarify comments to say that alignment is not required.
41971         * lib/md2.h: Remove warning about alignment in comment.
41972         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
41973         never been required.
41974
41975 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41976
41977         md4: adapt alignment constraint fix from sha1.
41978         * lib/md4.c (set_uint32): New function, from sha1.c
41979         (md4_read_ctx): Use it.
41980         (md4_finish_ctx): Doc fix.
41981         * lib/md4.h: Doc fix.
41982
41983 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41984
41985         md5: adapt alignment constraint fix from sha1.
41986         * lib/md5.c (set_uint32): New function, from sha1.c
41987         (md5_read_ctx): Use it.
41988         (md5_finish_ctx): Doc fix.
41989         * lib/md5.h: Doc fix.
41990
41991 2008-01-30  Peter Palfrader  <weasel@debian.org>
41992
41993         sha1: remove the result buffer alignment constraint
41994         * lib/sha1.c (set_uint32): New function.
41995         (sha1_read_ctx): Rewrite to remove the result buffer alignment
41996         constraint.
41997         (sha1_finish_ctx): Remove comment warning about alignment constraint.
41998         * lib/sha1.h: Likewise.
41999
42000 2008-01-30  Andreas Schwab  <schwab@suse.de>
42001             Bruno Haible  <bruno@clisp.org>
42002
42003         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
42004         correct definition of LDBL_MIN_EXP.
42005
42006 2008-01-30  Karl Berry  <karl@gnu.org>
42007
42008         * config/srclist-update: try to preserve x bit on updates.
42009         * config/srclistvars.sh: update for karl.
42010
42011 2008-01-29  Jim Meyering  <meyering@redhat.com>
42012
42013         vasnprintf.c: Avoid warning about unused label
42014         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
42015         "overflow" label definition and associated code with the
42016         same cpp condition that guards the sole use of that label.
42017
42018 2008-01-26  Bruno Haible  <bruno@clisp.org>
42019
42020         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
42021         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
42022         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
42023         * lib/isnanl-nolibm.h (isnanl): Likewise.
42024         Reported by Paul Eggert <eggert@cs.ucla.edu>.
42025
42026 2008-01-26  Bruno Haible  <bruno@clisp.org>
42027
42028         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
42029         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
42030
42031 2008-01-26  Bruno Haible  <bruno@clisp.org>
42032
42033         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
42034         GCC >= 4.0 built-in.
42035         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
42036
42037 2008-01-26  Bruno Haible  <bruno@clisp.org>
42038
42039         Rename isnan, applicable to 'double' only, to isnand.
42040         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
42041         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
42042         (configure.ac): Update.
42043         (Include): Replace "isnan.h" with "isnand.h".
42044         * m4/isnand.m4: Renamed from m4/isnan.m4.
42045         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
42046         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
42047         instead of isnan.c.
42048         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
42049         instead of HAVE_ISNAN_IN_LIBC.
42050         (isnand): Renamed from isnan.
42051         * lib/isnand.c: New file.
42052         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
42053         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
42054         (Makefile.am): Update.
42055         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
42056         Include isnand.h instead of isnan.h.
42057         (main): Test isnand instead of isnan.
42058         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
42059         isnan-nolibm.
42060         * modules/frexp (Depends-on): Likewise.
42061         * modules/frexp-tests (Depends-on): Likewise.
42062         * modules/frexp-nolibm (Depends-on): Likewise.
42063         * modules/frexp-nolibm-tests (Depends-on): Likewise.
42064         * modules/isfinite (Depends-on): Likewise.
42065         * modules/round-tests (Depends-on): Likewise.
42066         * modules/signbit (Depends-on): Likewise.
42067         * modules/signbit-tests (Depends-on): Likewise.
42068         * modules/snprintf-posix (Depends-on): Likewise.
42069         * modules/sprintf-posix (Depends-on): Likewise.
42070         * modules/trunc-tests (Depends-on): Likewise.
42071         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42072         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42073         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42074         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42075         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42076         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42077         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42078         * modules/vasnprintf-posix (Depends-on): Likewise.
42079         * modules/vasprintf-posix (Depends-on): Likewise.
42080         * modules/vfprintf-posix (Depends-on): Likewise.
42081         * modules/vsnprintf-posix (Depends-on): Likewise.
42082         * modules/vsprintf-posix (Depends-on): Likewise.
42083         * lib/frexp.c: Include isnand.h instead of isnan.h.
42084         (ISNAN): Set to isnand instead of isnan.
42085         * lib/isfinite.c: Include isnand.h instead of isnan.h.
42086         (gl_isfinited): Use isnand instead of isnan.
42087         * lib/signbitd.c: Include isnand.h instead of isnan.h.
42088         (gl_signbitd): Use isnand instead of isnan.
42089         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
42090         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
42091         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
42092         (main): Use isnand instead of isnan.
42093         * tests/test-round1.c: Include isnand.h.
42094         (main): Use isnand instead of isnan.
42095         * tests/test-round2.c: Include isnand.h instead of isnan.h.
42096         (ISNAN): Set to isnand instead of isnan.
42097         * tests/test-trunc1.c: Include isnand.h.
42098         (main): Use isnand instead of isnan.
42099         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
42100         (equal): Use isnand instead of isnan.
42101         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
42102         isnand-nolibm.
42103         * NEWS: Mention the change.
42104
42105 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42106             Bruno Haible  <bruno@clisp.org>
42107
42108         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
42109         the GCC builtins for signbits are present and set
42110         REPLACE_SIGNBIT_USING_GCC if so.
42111         * lib/math.in.h (signbit): Define using GCC builtins if
42112         REPLACE_SIGNBIT_USING_GCC is set.
42113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
42114         REPLACE_SIGNBIT_USING_GCC.
42115         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
42116
42117 2008-01-25  Jim Meyering  <meyering@redhat.com>
42118
42119         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
42120         * lib/poll.c: Include <config.h>, not "config.h".
42121         * tests/test-getaddrinfo.c: Likewise.
42122
42123 2008-01-25  Simon Josefsson  <simon@josefsson.org>
42124
42125         * modules/sockets-tests: New file.
42126
42127 2008-01-24  Simon Josefsson  <simon@josefsson.org>
42128
42129         * modules/sockets: New module, can be used to call WSA_Startup and
42130         WSA_Cleanup when needed.
42131
42132         * lib/sockets.h, lib/sockets.c: New files.
42133
42134         * m4/sockets.m4: New file.
42135
42136         * tests/test-sockets.c: New file.
42137
42138 2008-01-19  Bruno Haible  <bruno@clisp.org>
42139
42140         * doc/posix-headers: Renamed from doc/headers.
42141         * doc/posix-functions: Renamed from doc/functions.
42142         * doc/gnulib.texi: Update.
42143
42144 2008-01-19  Bruno Haible  <bruno@clisp.org>
42145
42146         * doc/glibc-functions/strcasestr.texi: Include contents of
42147         doc/functions/strcasestr.texi, fixing the list of platforms.
42148         * doc/functions/strcasestr.texi: Remove file.
42149
42150 2008-01-19  Bruno Haible  <bruno@clisp.org>
42151
42152         * doc/glibc-functions/memmem.texi: Include contents of
42153         doc/functions/memmem.texi.
42154         * doc/functions/memmem.texi: Remove file.
42155
42156 2008-01-18  Bruno Haible  <bruno@clisp.org>
42157
42158         * doc/glibc-functions/*.texi: New files.
42159         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
42160         to use the new files.
42161
42162 2008-01-17  Bruno Haible  <bruno@clisp.org>
42163
42164         * tests/test-gethostname.c (main): Fix printf statement.
42165
42166 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42167
42168         * modules/gethostname-tests: New file.
42169
42170         * tests/test-gethostname.c: New file.
42171
42172 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42173
42174         * lib/gethostname.c: Include string.h unconditionally, strncpy is
42175         used by the UNAME case.  Reported by Bruno Haible
42176         <bruno@clisp.org>.
42177
42178 2008-01-17  Eric Blake  <ebb9@byu.net>
42179
42180         Convert c-strcasestr to be more efficient.
42181         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
42182         (Depends-on): Add c-strcase, remove malloca, strnlen.
42183         * tests/test-c-strcasestr.c (main): Enhance test.
42184         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
42185
42186 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42187
42188         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
42189         Use it in creating po/Makevars.
42190
42191 2008-01-15  Simon Josefsson  <simon@josefsson.org>
42192
42193         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
42194         Applications that requires it should initialize libgcrypt
42195         manually.
42196
42197 2008-01-16  Simon Josefsson  <simon@josefsson.org>
42198
42199         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
42200
42201 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
42202
42203         Fix problem with getdate on mingw32 reported by Simon Josefsson
42204         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
42205         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
42206         tzname", when deciding whether to declare tzname.
42207         * lib/strftime.c (tzname): Likewise.
42208
42209 2008-01-15  Bruno Haible  <bruno@clisp.org>
42210
42211         Work around a MacOS X 10.5 bug in frexpl().
42212         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
42213         * doc/functions/frexpl.texi: Document the bug.
42214         Reported by Elias Pipping <pipping@gentoo.org>.
42215
42216 2008-01-14  Eric Blake  <ebb9@byu.net>
42217
42218         Touch up previous patch.
42219         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
42220         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
42221
42222         Convert strcasestr module to use Two-Way algorithm.
42223         * modules/strcasestr-simple: New module, based on the old
42224         strcasestr, but with Two-Way rather than KMP.
42225         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
42226         * lib/string.in.h (rpl_strcasestr): Declare.
42227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
42228         performance.
42229         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
42230         * modules/string (Makefile.am): Support strcasestr.
42231         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42232         * modules/strcasestr-tests (Depends-on): Check for alarm.
42233         * tests/test-strcasestr.c: Augment test.
42234         * lib/str-two-way.h: Clean up stray macro.
42235         * NEWS: Document new module.
42236         * MODULES.html.sh (string handling): Likewise.
42237         * doc/functions/strcasestr.texi: New file.
42238         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
42239         here, since it is not a POSIX function.
42240
42241 2008-01-14  Colin Watson  <cjwatson@debian.org>
42242             Bruno Haible  <bruno@clisp.org>
42243
42244         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
42245         works fine; if not, set REPLACE_STRSIGNAL.
42246         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
42247         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42248         REPLACE_STRSIGNAL.
42249         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
42250         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
42251         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
42252
42253 2008-01-14  Bruno Haible  <bruno@clisp.org>
42254
42255         * modules/strsignal (Include): Change to <string.h>.
42256
42257 2008-01-14  Colin Watson  <cjwatson@debian.org>
42258
42259         * modules/argp (Notice): Add a notice recommending to change
42260         XGETTEXT_OPTIONS.
42261         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
42262
42263 2008-01-13  Colin Watson  <cjwatson@debian.org>
42264
42265         * modules/strsignal-tests: New file.
42266         * tests/test-strsignal.c: New file.
42267
42268         * lib/strsignal.c: New file, from glibc with modifications.
42269         * lib/siglist.h: New file, from glibc with modifications.
42270         * lib/string.in.h (strsignal): New declaration.
42271         * m4/strsignal.m4: New file.
42272         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42273         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
42274         * modules/strsignal: New file.
42275         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
42276         HAVE_DECL_STRSIGNAL.
42277
42278 2008-01-13  Bruno Haible  <bruno@clisp.org>
42279
42280         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
42281         locale encoding is not ASCII. Needed for OpenBSD 4.0.
42282         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42283         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42284
42285 2008-01-13  Bruno Haible  <bruno@clisp.org>
42286
42287         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
42288         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
42289         * lib/argp.h (__attribute__): Likewise.
42290         * lib/c-stack.c (__attribute__): Likewise.
42291         * lib/error.h (__attribute__): Likewise.
42292         * lib/fts.c (__attribute__): Likewise.
42293         * lib/openat.h (__attribute__): Likewise.
42294         * lib/stdio.in.h (__attribute__): Likewise.
42295         * lib/string.in.h (__attribute__): Likewise.
42296         * lib/utimens.c (__attribute__): Likewise.
42297         * lib/vasnprintf.h (__attribute__): Likewise.
42298         * lib/xalloc.h (__attribute__): Likewise.
42299         * lib/xprintf.h (__attribute__): Likewise.
42300         * lib/xstrtol.h (__attribute__): Likewise.
42301         * lib/xvasprintf.h (__attribute__): Likewise.
42302
42303 2008-01-12  Bruno Haible  <bruno@clisp.org>
42304
42305         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
42306         * doc/glibc-headers/a.out.texi: New file.
42307         * doc/glibc-headers/aliases.texi: New file.
42308         * doc/glibc-headers/alloca.texi: New file.
42309         * doc/glibc-headers/ar.texi: New file.
42310         * doc/glibc-headers/argp.texi: New file.
42311         * doc/glibc-headers/argz.texi: New file.
42312         * doc/glibc-headers/byteswap.texi: New file.
42313         * doc/glibc-headers/crypt.texi: New file.
42314         * doc/glibc-headers/endian.texi: New file.
42315         * doc/glibc-headers/envz.texi: New file.
42316         * doc/glibc-headers/err.texi: New file.
42317         * doc/glibc-headers/error.texi: New file.
42318         * doc/glibc-headers/execinfo.texi: New file.
42319         * doc/glibc-headers/fpu_control.texi: New file.
42320         * doc/glibc-headers/fstab.texi: New file.
42321         * doc/glibc-headers/fts.texi: New file.
42322         * doc/glibc-headers/getopt.texi: New file.
42323         * doc/glibc-headers/ieee754.texi: New file.
42324         * doc/glibc-headers/ifaddrs.texi: New file.
42325         * doc/glibc-headers/libintl.texi: New file.
42326         * doc/glibc-headers/mcheck.texi: New file.
42327         * doc/glibc-headers/mntent.texi: New file.
42328         * doc/glibc-headers/obstack.texi: New file.
42329         * doc/glibc-headers/paths.texi: New file.
42330         * doc/glibc-headers/printf.texi: New file.
42331         * doc/glibc-headers/pty.texi: New file.
42332         * doc/glibc-headers/resolv.texi: New file.
42333         * doc/glibc-headers/shadow.texi: New file.
42334         * doc/glibc-headers/sysexits.texi: New file.
42335         * doc/glibc-headers/ttyent.texi: New file.
42336
42337 2008-01-12  Jim Meyering  <meyering@redhat.com>
42338
42339         announce-gen: emit Gnulib's git-based version string.
42340         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
42341         New option --gnulib-version=V, where V is expected to be
42342         the output of running git describe in the gnulib directory.
42343         (get_tool_versions): Request feedback on xdelta.  I suspect it's
42344         not useful, and plan to stop publishing an xdelta file with each
42345         coreutils release.
42346
42347         * build-aux/announce-gen: Also check for lzma-compressed files.
42348
42349 2008-01-11  Bruno Haible  <bruno@clisp.org>
42350
42351         * tests/test-memmem.c (main): Increase maximum allowed time.
42352         * tests/test-strstr.c (main): Likewise.
42353
42354 2008-01-11  Bruno Haible  <bruno@clisp.org>
42355
42356         * doc/functions/memmem.texi: Add more precisions about platforms.
42357         * doc/functions/strstr.texi: Likewise.
42358
42359 2008-01-10  Eric Blake  <ebb9@byu.net>
42360
42361         * m4/strstr.m4: Delete cruft from copy-n-paste.
42362         Reported by Bruno Haible.
42363
42364 2008-01-10  Bruno Haible  <bruno@clisp.org>
42365
42366         Make c-strstr rely on strstr.
42367         * lib/c-strstr.c: Don't include str-kmp.h.
42368         (c_strstr): Define in terms of strstr.
42369         * modules/c-strstr (Files): Remove lib/str-kmp.h.
42370         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
42371
42372 2008-01-10  Bruno Haible  <bruno@clisp.org>
42373
42374         * doc/gnulib.texi (String Functions in C Locale): New section.
42375         * doc/c-ctype.texi: New file.
42376         * doc/c-strcase.texi: New file.
42377         * doc/c-strcaseeq.texi: New file.
42378         * doc/c-strcasestr.texi: New file.
42379         * doc/c-strstr.texi: New file.
42380         * doc/c-strtod.texi: New file.
42381         * doc/c-strtold.texi: New file.
42382
42383 2008-01-10  Eric Blake  <ebb9@byu.net>
42384
42385         * lib/relocatable.h: Fix a comment.
42386
42387 2008-01-10  Eric Blake  <ebb9@byu.net>
42388
42389         Share two-way algorithm.
42390         * lib/str-two-way.h: New file, merged from...
42391         * lib/memmem.c: ...here...
42392         * lib/strstr.c: ...and here.
42393         * modules/memmem (Files): Use it.
42394         * modules/strstr (Files): Likewise.
42395
42396         Avoid quadratic strstr implementations.
42397         * lib/strstr.c: New file.
42398         * m4/strstr.m4: Likewise.
42399         * modules/strstr: Likewise.
42400         * modules/strstr-tests: Likewise.
42401         * tests/test-strstr.c: Likewise.
42402         * lib/string.in.h (rpl_strstr): Declare.
42403         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
42404         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
42405         * modules/string (Makefile.am): Likewise.
42406         * MODULES.html.sh (string handling): Mention new module.
42407         * doc/functions/strstr.texi (strstr): Document the bug.
42408
42409 2008-01-10  Bruno Haible  <bruno@clisp.org>
42410
42411         * lib/relocatable.h (relocate): State whether result is freshly
42412         allocated or not.
42413         * lib/relocatable.c (relocate): Return a freshly allocated string
42414         instead of a pointer to a privately held string.
42415         Reported by Sylvain Beucler <beuc@gnu.org>.
42416
42417 2008-01-10  Colin Watson  <cjwatson@debian.org>
42418
42419         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
42420         s/S_ISNLK/S_ISLNK/.
42421
42422 2008-01-09  Bruno Haible  <bruno@clisp.org>
42423
42424         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
42425         and other files.
42426         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
42427         if it's only a guess.
42428         * modules/memmem: Simplify by depending on memmem-simple.
42429
42430 2008-01-09  Bruno Haible  <bruno@clisp.org>
42431
42432         Work around OpenBSD 4.0 tdelete() bug.
42433         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
42434         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
42435         macros and don't redefine the enum values.
42436         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
42437         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
42438         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
42439
42440 2008-01-09  Bruno Haible  <bruno@clisp.org>
42441
42442         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
42443         (main): Don't perform the tests if setlocale did not install a UTF-8
42444         locale. Needed on OpenBSD 4.0.
42445         * modules/wcwidth-tests (Depends-on): Add localcharset.
42446
42447 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
42448
42449         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
42450         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
42451         * NEWS: announce this.
42452         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
42453
42454 2008-01-09  Simon Josefsson  <simon@josefsson.org>
42455         and Eric Blake  <ebb9@byu.net>
42456
42457         Add memmem-simple module.
42458         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
42459         (gl_FUNC_MEMMEM): Separate performance from presence checks.
42460         * modules/memmem-simple: New file.
42461         * modules/memmem (Description): Tweak.
42462         * MODULES.html.sh (string handling): Mention new module.
42463         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
42464         addressed by memmem-simple.
42465         * NEWS: Document the difference.
42466
42467 2008-01-09  Eric Blake  <ebb9@byu.net>
42468
42469         Give gcc some memmem optimization hints.
42470         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
42471         (strcasestr): Declare as pure.
42472         * modules/memmem (Maintainer): Claim my implementation.
42473
42474 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42475
42476         Support AIX 6.1 and higher.
42477         * build-aux/config.libpath: Likewise.
42478         * build-aux/config.rpath: Likewise.
42479
42480 2008-01-08  Jim Meyering  <meyering@redhat.com>
42481             Bruno Haible  <bruno@clisp.org>
42482
42483         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
42484         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
42485         Reported by Peter Fales in
42486         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
42487
42488 2008-01-08  Bruno Haible  <bruno@clisp.org>
42489
42490         * modules/unictype/category-of (Depends-on): Add
42491         unictype/category-none.
42492         * modules/unictype/category-and-tests (Depends-on): Add
42493         unictype/category-{L,N,Lu,Nd}.
42494         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
42495         * modules/unictype/category-or-tests (Depends-on): Add
42496         unictype/category-{L,N}.
42497         * modules/unictype/category-name-tests (Depends-on): Add
42498         unictype/category-{Z,Nl}.
42499         Reported by Simon Josefsson.
42500
42501 2008-01-08  Bruno Haible  <bruno@clisp.org>
42502
42503         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
42504         convention better.
42505         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
42506         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
42507         Reported by Peter Miller <millerp@canb.auug.org.au>.
42508
42509 2008-01-08  Eric Blake  <ebb9@byu.net>
42510
42511         Rewrite memmem to guarantee linear complexity without malloc.
42512         * lib/memmem.c (memmem): Use Two-Way rather than
42513         Knuth-Morris-Pratt, to allow O(1) space usage.
42514         (critical_factorization, two_way_short_needle)
42515         (two_way_long_needle): New functions.
42516         (knuth_morris_pratt): Delete.
42517         * modules/memmem (Depends-on): No longer need malloca or stdbool.
42518         Add stdint.
42519         * tests/test-memmem.c (main): Add tests for periodic needle and
42520         sublinear performance.
42521         * doc/functions/memmem.texi (memmem): Document other deficiencies
42522         in cygwin and older glibc.
42523
42524 2008-01-08  Bruno Haible  <bruno@clisp.org>
42525
42526         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
42527         augmentation.
42528
42529 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
42530
42531         Add a configure time option: --disable-acl.
42532         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
42533         AC_ARG_ENABLE(acl).
42534
42535 2008-01-06  Simon Josefsson  <simon@josefsson.org>
42536
42537         * tests/test-localename.c: Don't include obsolete "setenv.h".
42538
42539         * modules/localename-tests (Depends-on): Need unsetenv.
42540
42541 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42542
42543         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
42544
42545 2008-01-06  Colin Watson  <cjwatson@debian.org>
42546
42547         * users.txt: Add man-db.
42548
42549 2008-01-07  Bruno Haible  <bruno@clisp.org>
42550
42551         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
42552         previous section name.
42553
42554 2008-01-07  Bruno Haible  <bruno@clisp.org>
42555
42556         * lib/progname.c (set_program_name): Don't strip off a leading
42557         "lt-" prefix outside a .libs directory.
42558         Suggested by Paul Eggert.
42559
42560 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
42561             Bruno Haible  <bruno@clisp.org>
42562
42563         Improve memory cleanup in 'relocatable' module.
42564         * lib/relocatable.h (compute_curr_prefix): Change return type to
42565         'char *'.
42566         * lib/relocatable.c (compute_curr_prefix): Change return type to
42567         'char *'. Free curr_installdir after use.
42568         (relocate): Free curr_prefix_better after use.
42569         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
42570
42571 2008-01-01  Bruno Haible  <bruno@clisp.org>
42572
42573         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
42574         failure on older glibc systems.
42575         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42576
42577 2008-01-05  Eric Blake  <ebb9@byu.net>
42578
42579         Avoid quadratic system memmem.
42580         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
42581         Reported by Ralf Wildenhues.
42582
42583         Fix memmem test for mingw.
42584         * modules/memmem-tests (configure.ac): Check for alarm.
42585         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
42586         it.
42587         * doc/functions/memmem.texi: New file.
42588         * doc/gnulib.texi (Function Substitutes): Add memmem.
42589         Reported by Bruno Haible.
42590
42591 2008-01-04  Bruno Haible  <bruno@clisp.org>
42592
42593         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
42594         Require gl_HEADER_STRINGS_H_DEFAULTS, not
42595         gl_HEADER_STRING_H_DEFAULTS.
42596
42597 2008-01-04  Eric Blake  <ebb9@byu.net>
42598
42599         Shorten duration of memmem test.
42600         * tests/test-memmem.c (main): Use alarm to declare failure if test
42601         is taking too long.
42602         Reported by Ralf Wildenhues.
42603
42604 2007-12-21  Simon Josefsson  <simon@josefsson.org>
42605
42606         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
42607         string, needed by strerror.
42608
42609 2008-01-03  Colin Watson  <cjwatson@debian.org>
42610             Bruno Haible  <bruno@clisp.org>
42611
42612         * doc/gnulib-tool.texi (Localization): New section.
42613
42614 2008-01-02  Bruno Haible  <bruno@clisp.org>
42615
42616         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
42617         variables to 'unsigned char *' type.
42618         Reported by Paul Eggert.
42619
42620 2008-01-02  Jim Meyering  <jim@meyering.net>
42621
42622         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
42623
42624 2007-12-31  Jim Meyering  <jim@meyering.net>
42625
42626         Avoid use of private FTS type name.
42627         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
42628
42629 2007-12-30  Karl Berry  <karl@gnu.org>
42630
42631         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
42632         work around defect in Texinfo and/or the standalone Info browser.
42633
42634 2007-12-30  Bruno Haible  <bruno@clisp.org>
42635
42636         Unify 5 copies of the KMP code.
42637         * lib/str-kmp.h: New file.
42638         * lib/c-strcasestr.c: Include str-kmp.h.
42639         (knuth_morris_pratt): Remove function.
42640         (c_strcasestr): Update.
42641         * lib/c-strstr.c: Include str-kmp.h.
42642         (knuth_morris_pratt): Remove function.
42643         (c_strcasestr): Update.
42644         * lib/mbscasestr.c: Include str-kmp.h.
42645         (knuth_morris_pratt_unibyte): Remove function.
42646         * lib/mbsstr.c: Include str-kmp.h.
42647         (knuth_morris_pratt_unibyte): Remove function.
42648         * lib/strcasestr.c: Include str-kmp.h.
42649         (knuth_morris_pratt): Remove function.
42650         (strcasestr): Update.
42651         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
42652         * modules/c-strstr (Files): Likewise.
42653         * modules/mbscasestr (Files): Likewise.
42654         * modules/mbsstr (Files): Likewise.
42655         * modules/strcasestr (Files): Likewise.
42656         Suggested by Paul Eggert.
42657
42658 2007-12-30  Bruno Haible  <bruno@clisp.org>
42659
42660         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
42661         defined.
42662
42663 2007-12-30  Bruno Haible  <bruno@clisp.org>
42664
42665         * lib/xmalloca.h: Include xalloc.h.
42666         (xnmalloca): New macro.
42667
42668 2007-12-30  Bruno Haible  <bruno@clisp.org>
42669
42670         * lib/malloca.h (nmalloca): New macro.
42671         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
42672         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
42673         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
42674         knuth_morris_pratt_multibyte): Likewise.
42675         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
42676         knuth_morris_pratt_multibyte): Likewise.
42677         * lib/memmem.c (knuth_morris_pratt): Likewise.
42678         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
42679
42680 2007-12-25  Bruno Haible  <bruno@clisp.org>
42681
42682         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
42683         * lib/glob.c: Don't include openat.h.
42684         (link_exists2_p): Add back the code that deals with the
42685         !GLOB_ALTDIRFUNC case.
42686         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
42687         let it do the filename concatenation.
42688         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
42689         * modules/glob (Depends-on): Remove openat.
42690
42691 2007-12-31  Bruno Haible  <bruno@clisp.org>
42692
42693         * modules/dirfd (License): Change to LGPLv2+.
42694         Approved by Jim Meyering.
42695
42696 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
42697
42698         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
42699         when multiplying M by sizeof (size_t).
42700
42701 2007-12-10  Martin Lambers  <marlam@marlam.de>
42702
42703         Override getpagesize on mingw.
42704         * lib/getpagesize.c: New file.
42705         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
42706         * modules/getpagesize (Files): Add lib/getpagesize.c.
42707         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
42708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42709         REPLACE_GETPAGESIZE.
42710         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
42711
42712 2007-12-25  Bruno Haible  <bruno@clisp.org>
42713
42714         * modules/localcharset (Notice): New field.
42715         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
42716         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
42717
42718 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
42719             Bruno Haible  <bruno@clisp.org>
42720
42721         Avoid using the syntax symbol() in formatted documentation.
42722         * MODULES.html.sh (func_module): When replacing symbol() with a
42723         hyperlink, remove the parentheses. Show an error if some remain.
42724         Recognize and render the '...' syntax.
42725         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
42726         Rework. Add paragraph about GCC's inlining.
42727         * doc/alloca.texi: Likewise.
42728         * doc/error.texi: Remove parentheses from symbol reference.
42729         * doc/gnulib-intro.texi: Likewise.
42730         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
42731         * modules/fnmatch (Description): Reword to say "the ... function".
42732         * modules/full-read (Description): Likewise.
42733         * modules/full-write (Description): Likewise.
42734         * modules/safe-read (Description): Likewise.
42735         * modules/safe-write (Description): Likewise.
42736         * modules/strchrnul (Description): Likewise.
42737         * modules/trim (Description): Likewise.
42738         * modules/error (Description): Remove parentheses from symbol
42739         references.
42740         * modules/verror (Description): Likewise.
42741         Reported by Karl Berry.
42742
42743 2007-12-25  Bruno Haible  <bruno@clisp.org>
42744
42745         Fixup after 2007-10-16 commit.
42746         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
42747
42748 2007-12-24  Bruno Haible  <bruno@clisp.org>
42749
42750         Make --enable-relocatable work with DESTDIR.
42751         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
42752         to compute installdir from destprog.
42753         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
42754         also set the RELOC_DESTDIR variable.
42755         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42756
42757 2007-12-24  Bruno Haible  <bruno@clisp.org>
42758
42759         Fix link error due to xalloc_die().
42760         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
42761         of xreadlink.
42762         * lib/relocwrapper.c: Update comments.
42763         * build-aux/install-reloc: Remove xreadlink.c from file list.
42764         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
42765         xreadlink.c.
42766         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42767
42768 2007-12-24  Bruno Haible  <bruno@clisp.org>
42769
42770         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
42771         * lib/setenv.h: Remove file.
42772         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
42773         lib/setenv.h.
42774         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
42775         (Depends-on): Add stdlib.
42776         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
42777         gl_FUNC_UNSETENV.
42778         (Include): Replace setenv.h with <stdlib.h>.
42779         * modules/unsetenv: New file.
42780         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
42781         * lib/unsetenv.c: Include <stdlib.h> first.
42782         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
42783         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
42784         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
42785         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
42786         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
42787         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
42789         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42790         * doc/functions/unsetenv.texi: Update.
42791         * modules/xsetenv (Depends-on): Add unsetenv.
42792         * modules/getdate (Depends-on): Likewise.
42793         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
42794         * lib/xsetenv.c: Don't include setenv.h.
42795         * lib/getdate.y: Likewise.
42796         * lib/relocwrapper.c: Likewise.
42797         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
42798         (Depends-on): Add stdlib.
42799         * NEWS: Mention the changes.
42800         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42801
42802 2007-12-23  Bruno Haible  <bruno@clisp.org>
42803
42804         * lib/memmem.c (memmem): Use lowercase variable names. Tab
42805         indentation.
42806
42807 2007-12-23  Bruno Haible  <bruno@clisp.org>
42808
42809         * lib/c-strcasestr.c: Add more comments.
42810         * lib/c-strstr.c: Likewise.
42811         * lib/mbscasestr.c: Likewise.
42812         * lib/mbsstr.c: Likewise.
42813         * lib/strcasestr.c: Likewise.
42814         * lib/memmem.c: Likewise.
42815
42816 2007-12-23  Bruno Haible  <bruno@clisp.org>
42817
42818         * tests/test-memmem.c: Include <string.h> first.
42819
42820 2007-12-22  Bruno Haible  <bruno@clisp.org>
42821
42822         * gnulib-tool (func_create_testdir): Change $auxdir while generating
42823         the contents of $testsbase.
42824         Reported by Ralf Wildenhues.
42825
42826 2007-12-22  Bruno Haible  <bruno@clisp.org>
42827
42828         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
42829         two variables local_ldadd_before, local_ldadd_last.
42830
42831 2007-12-20  Eric Blake  <ebb9@byu.net>
42832
42833         Work around circular library issue when cross-compiling.
42834         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
42835         that progname.o does not need to pull in rpl_memcmp.
42836
42837 2007-12-19  Eric Blake  <ebb9@byu.net>
42838
42839         Fix memmem to avoid O(n^2) worst-case complexity.
42840         * lib/memmem.c (knuth_morris_pratt): New function.
42841         (memmem): Use it if first few naive iterations fail.
42842         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
42843         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
42844         * modules/memchr (License): Likewise.
42845         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
42846         malloca.
42847         * tests/test-memmem.c: Rewrite, borrowing ideas from
42848         test-mbsstr1.c; the old version wouldn't even compile!
42849         * modules/memmem-tests: New file.
42850         * lib/string.in.h (rpl_memmem): Add declaration.
42851         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
42852         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
42853         REPLACE_MEMMEM.
42854
42855 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42856
42857         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
42858         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
42859         before any system include files, and undef after them all.  This
42860         should fix a problem on VMS reported by John E. Malmberg in
42861         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
42862
42863 2007-12-17  Eric Blake  <ebb9@byu.net>
42864
42865         Revert addition of verify, for BSD/OS.
42866         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
42867         can't handle large files, for the sake of obsolete platforms.
42868         * modules/fseeko (Depends-on): Remove verify.
42869         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
42870         * doc/functions/ftello.texi (ftello): Likewise.
42871         * doc/functions/fgetpos.texi (fgetpos): Likewise.
42872         Reported by Larry Jones.
42873
42874 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
42875
42876         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
42877         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
42878
42879 2007-12-17  Jim Meyering  <meyering@redhat.com>
42880
42881         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
42882         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
42883         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
42884         * modules/getcwd (Depends-on): Add openat.
42885         Reported by Petr Salinger.
42886
42887 2007-12-17  Bruno Haible  <bruno@clisp.org>
42888
42889         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
42890         avoid a segmentation fault of the configure test on x86_64 systems.
42891
42892 2007-12-15  Jim Meyering  <meyering@redhat.com>
42893
42894         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
42895
42896 2007-12-13  Eric Blake  <ebb9@byu.net>
42897
42898         Another fseek test.
42899         * tests/test-fseek.c (main): Also test ungetc handling.
42900         * tests/test-fseeko.c (main): Likewise.
42901         * modules/fseeko (Depends-on): Add verify.
42902         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
42903         large.
42904         Reported by Larry Jones.
42905
42906         Fix fseeko on mingw.
42907         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
42908         seek.
42909
42910         Beef up fseek tests.
42911         * tests/test-fseek.c (main): Also test eof handling.
42912         * tests/test-fseeko.c (main): Likewise.
42913         Reported by Larry Jones.
42914
42915 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
42916
42917         Fix fseeko on BSD-based platforms.
42918         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42919         successful seek.
42920
42921 2007-12-12  Eric Blake  <ebb9@byu.net>
42922
42923         Allow circular dependency of separate libtests.a
42924         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
42925         when use_libtests.
42926
42927 2007-12-11  Eric Blake  <ebb9@byu.net>
42928
42929         Fix bug with -0.0L in previous patch.
42930         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
42931         * tests/test-isnan.c (main): Also test on zeroes.
42932         * tests/test-isnanf.c (main): Likewise.
42933         * tests/test-isnanl.h (main): Likewise.
42934
42935         Detect pseudo-denormals on x86 even when cross-compiling.
42936         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
42937         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
42938         invalid bit patterns that happen to satisfy ==.
42939
42940         Avoid link failures with separate libtests.a.
42941         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
42942         last, to satisfy circular dependencies.
42943
42944 2007-12-11  Eric Blake  <ebb9@byu.net>
42945         and Bruno Haible  <bruno@clisp.org>
42946
42947         Fix OpenBSD 4.0 <float.h> handling of long double.
42948         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
42949         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
42950         * doc/headers/float.texi (float.h): Document OpenBSD bug.
42951
42952 2007-12-11  Jim Meyering  <meyering@redhat.com>
42953
42954         * users.txt: Add libvirt.
42955
42956         Support versions of autoconf prior to 2.59c.
42957         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
42958         if it is not already defined.
42959
42960 2007-12-09  Bruno Haible  <bruno@clisp.org>
42961
42962         Let 'gnulib-tool --import' collect sources needed for the tests in
42963         tests/ rather than in lib/.
42964         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
42965         argument. If true, add rules to generate libtests.a, and put libtests.a
42966         into $(LDADD). Consider source files in subdirectories and set
42967         uses_subdirs.
42968         (func_emit_initmacro_start, func_emit_initmacro_end,
42969         func_emit_initmacro_done): Pass all arguments explicitly.
42970         (func_import): Determine two module lists main_modules,
42971         testsrelated_modules. Determine use_libtests. Determine two variables
42972         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
42973         instead of just sed_transform_lib_file. Determine two variables
42974         main_files and testsrelated_files. Compute 'files' as the union of
42975         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
42976         func_add_or_update. In the generated gnulib-comp.m4, collect the
42977         object files for tests/ in different variables than those for lib/.
42978         Substitute LIBTESTS_LIBDEPS.
42979         (func_create_testdir): Combine the uses_subdirs results from
42980         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
42981
42982 2007-12-09  Bruno Haible  <bruno@clisp.org>
42983
42984         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
42985         the build-aux directory.
42986
42987 2007-12-09  Bruno Haible  <bruno@clisp.org>
42988
42989         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
42990         introduced on 2006-09-09.
42991
42992 2007-12-07  Jim Meyering  <meyering@redhat.com>
42993
42994         Let these macros work also with autoconf-2.59.
42995         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
42996         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
42997         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42998
42999 2007-12-06  Jim Meyering  <meyering@redhat.com>
43000
43001         Avoid a configure-time syntax error in gl_FUNC_ACL.
43002         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
43003         function in each branch, before testing the cache variable.
43004
43005 2007-12-04  Eric Blake  <ebb9@byu.net>
43006
43007         Make scripts executable.
43008         * build-aux/config.guess: Add execute permissions.
43009         * build-aux/config.sub: Likewise.
43010         * build-aux/gendocs.sh: Likewise.
43011
43012         Fix frexp on mingw.
43013         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
43014         cross-compiling.
43015         * doc/functions/frexp.texi (frexp): Document the bug.
43016
43017         Make cygwin fseeko check more reliable.
43018         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
43019         version numbers, rather than unrelated feature check.
43020         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
43021         * doc/functions/ftello.texi (ftello): Likewise.
43022         Reported by Bruno Haible.
43023
43024         * m4/strerror.m4: Bump version number.
43025
43026 2007-12-03  Bruno Haible  <bruno@clisp.org>
43027
43028         * doc/functions/mprotect.texi: Mention the mingw problem.
43029
43030 2007-12-03  Eric Blake  <ebb9@byu.net>
43031
43032         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
43033         REPLACE_STRERROR is initialized before this macro.
43034
43035 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
43036
43037         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
43038         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
43039         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
43040         put -lsec in even for programs other than 'ls'.  This fixes a problem
43041         for gettext reported by Bruno Haible in
43042         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
43043         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
43044         Add support for Solaris 10.  This isn't efficient, but should get the
43045         job done for now.
43046
43047 2007-12-03  James Youngman  <jay@gnu.org>
43048
43049         * doc/regexprops-generic.texi: change "an close-group" to "a
43050         close-group" and "illegal" to "not allowed".
43051
43052 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43053
43054         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
43055         pr_byname.h. Needed for the rare case when the maintainer has done
43056         "make maintainer-clean" in the source directory and then attempts a
43057         build outside the source directory.
43058         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
43059         scripts_byname.h.
43060
43061 2007-12-02  Martin Lambers <marlam@marlam.de>
43062             Bruno Haible  <bruno@clisp.org>
43063
43064         * lib/getpagesize.h: Remove file.
43065         * lib/unistd.in.h: Include declaration of getpagesize here.
43066         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
43067         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
43068         HAVE_SYS_PARAM_H.
43069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
43070         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43071         * modules/getpagesize (Files): Remove lib/getpagesize.h.
43072         (Depends-on): Add unistd.
43073         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43074         (Include): Use <unistd.h> instead of getpagesize.h.
43075         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
43076         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43077         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
43078         gl_GETPAGESIZE invocation, already handled by module dependency.
43079         * lib/pagealign_alloc.c: Don't include getpagesize.h.
43080
43081 2007-12-02  Bruno Haible  <bruno@clisp.org>
43082
43083         * modules/strings-tests: New file.
43084         * tests/test-strings.c: New file.
43085
43086         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
43087         * lib/strings.in.h: New file.
43088         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
43089         * m4/strings_h.m4: New file.
43090         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
43091         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
43092         * modules/strings: New file.
43093         * modules/string (Makefile.am): Update.
43094         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
43095         Reported by Karl Berry.
43096
43097 2007-12-01  Eric Blake  <ebb9@byu.net>
43098
43099         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
43100         accomodate fix in cygwin 1.5.25.
43101
43102 2007-12-01  Jim Meyering  <meyering@redhat.com>
43103
43104         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
43105         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
43106         that would inhibit utf8-optimization of a regexp containing line-
43107         or buffer-anchors, e.g., `^', `$'.
43108
43109 2007-11-30  Bruno Haible  <bruno@clisp.org>
43110
43111         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
43112         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
43113         glthread_recursive_lock_init.
43114         * lib/lock.c (glthread_recursive_lock_init)
43115         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
43116         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43117
43118 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
43119
43120         New function qset_acl, like set_acl but with syscall semantics.
43121         * lib/acl.h (qset_acl): New decl.
43122         * lib/acl.c (qset_acl): New function.
43123         (set_acl): Use new function.  Use more-consistent diagnostics.
43124
43125 2007-11-28  Jim Meyering  <meyering@redhat.com>
43126
43127         * modules/physmem (License): Change from GPL to LGPLv2+.
43128
43129 2007-11-26  Bruno Haible  <bruno@clisp.org>
43130
43131         * lib/vasnprintf.c (decode_long_double): Don't abort if the
43132         'long double' type has excess precision.
43133         Reported by Jim Meyering in
43134         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
43135
43136 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43137
43138         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
43139         Sync from <http://gnu.org/licenses>.
43140         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
43141         with license text from same location.
43142         * doc/maintain.texi, doc/standards.texi:  Sync from
43143         <http://savannah.gnu.org/projects/gnustandards>.
43144
43145 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
43146         and Jim Meyering  <meyering@redhat.com>
43147
43148         Adjust getdate' grammar to accept a slightly more regular language.
43149         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
43150         Before, the former was rejected.
43151         * lib/getdate.y (digits_to_date_time): New function, factored
43152         out of ...
43153         (number): ...here.  Just call digits_to_date_time.
43154         (hybrid): New non-terminal to handle an <unsigned number,
43155         signed relative offset> sequence consistently.
43156
43157 2007-11-18  Jim Meyering  <meyering@redhat.com>
43158
43159         Pull my changes from coreutils:
43160         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
43161         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
43162         use of $gnulib_tool_option_extras, so that it's separated from the
43163         preceding argument.
43164
43165         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
43166         * build-aux/bootstrap (cp_mark_as_generated): Create any required
43167         parent destination directories before copying a file into place.
43168
43169 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
43170
43171         bootstrap: work also with 4-argument variant of AC_INIT
43172         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
43173
43174 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43175
43176         Port test-getaddrinfo to Solaris.
43177         Problem reported by Bruno Haible in
43178         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
43179         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
43180         explanation of setting 'hints'.
43181         Don't reject an implementation merely because it returns EAI_SERVICE.
43182         (EAI_SERVICE): Define to 0 if not defined.
43183
43184 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43185
43186         The license of gnu-make and posix-shell is now "GPLed build tool".
43187         * modules/gnu-make (License): Likewise.
43188         * modules/posix-shell (License): Likewise.
43189
43190         New module posix-shell, for determining a POSIX shell
43191         or perhaps something that is close enough to a POSIX shell.
43192         * m4/posix-shell.m4: New file.
43193         * modules/posix-shell: New file.
43194
43195         * MODULES.html.sh: Mention new module.
43196
43197         New module gnu-make, for determining whether we're using GNU Make.
43198         * m4/gnu-make.m4: New file.
43199         * modules/gnu-make: New file.
43200         * MODULES.html.sh: Mention new module.
43201
43202 2007-11-14  Jim Meyering  <meyering@redhat.com>
43203
43204         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
43205         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
43206         use this macro to create a function _definition_.
43207         Remove useless "#undef ARGMATCH_DIE".
43208
43209 2007-11-14  Bruno Haible  <bruno@clisp.org>
43210
43211         * lib/config.charset: Update for OpenBSD 4.1.
43212         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
43213
43214 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
43215
43216         Document 64-bit #if problems in stdint.texi.
43217         * doc/headers/stdint.texi (stdint.h): Mention problems with
43218         64-bit-#if, and how to work around them.
43219
43220         Don't insist on 'long long int' support in the preprocessor.  It
43221         breaks too many things.  For example, PRIdMAX still uses a 'long
43222         long int' format with the latest Sun compiler, even though
43223         HAVE_LONG_LONG_INT isn't defined due to that compiler's
43224         preprocessor problem.  This causes the latest coreutils to dump
43225         core on Solaris 10 sparc with the Sun C compiler.
43226         Instead, fix the 2007-10-16 problem in a different way, by evaluating
43227         the troublesome expressions at configure-time, not at #if-time.
43228         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
43229         preprocessor.
43230         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
43231         compile-time C checks, done at 'configure'-time.
43232         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
43233         * modules/inttypes (Makefile): Substitute the new symbols that
43234         gl_INTTYPES_H now generates.
43235         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
43236
43237 2007-11-12  Bruno Haible  <bruno@clisp.org>
43238
43239         Tests for Unicode character classification functions.
43240
43241         * modules/unictype/bidicategory-byname-tests: New file.
43242         * modules/unictype/bidicategory-name-tests: New file.
43243         * modules/unictype/bidicategory-of-tests: New file.
43244         * modules/unictype/bidicategory-test-tests: New file.
43245         * modules/unictype/block-list-tests: New file.
43246         * modules/unictype/block-of-tests: New file.
43247         * modules/unictype/block-test-tests: New file.
43248         * modules/unictype/category-C-tests: New file.
43249         * modules/unictype/category-Cc-tests: New file.
43250         * modules/unictype/category-Cf-tests: New file.
43251         * modules/unictype/category-Cn-tests: New file.
43252         * modules/unictype/category-Co-tests: New file.
43253         * modules/unictype/category-Cs-tests: New file.
43254         * modules/unictype/category-L-tests: New file.
43255         * modules/unictype/category-Ll-tests: New file.
43256         * modules/unictype/category-Lm-tests: New file.
43257         * modules/unictype/category-Lo-tests: New file.
43258         * modules/unictype/category-Lt-tests: New file.
43259         * modules/unictype/category-Lu-tests: New file.
43260         * modules/unictype/category-M-tests: New file.
43261         * modules/unictype/category-Mc-tests: New file.
43262         * modules/unictype/category-Me-tests: New file.
43263         * modules/unictype/category-Mn-tests: New file.
43264         * modules/unictype/category-N-tests: New file.
43265         * modules/unictype/category-Nd-tests: New file.
43266         * modules/unictype/category-Nl-tests: New file.
43267         * modules/unictype/category-No-tests: New file.
43268         * modules/unictype/category-P-tests: New file.
43269         * modules/unictype/category-Pc-tests: New file.
43270         * modules/unictype/category-Pd-tests: New file.
43271         * modules/unictype/category-Pe-tests: New file.
43272         * modules/unictype/category-Pf-tests: New file.
43273         * modules/unictype/category-Pi-tests: New file.
43274         * modules/unictype/category-Po-tests: New file.
43275         * modules/unictype/category-Ps-tests: New file.
43276         * modules/unictype/category-S-tests: New file.
43277         * modules/unictype/category-Sc-tests: New file.
43278         * modules/unictype/category-Sk-tests: New file.
43279         * modules/unictype/category-Sm-tests: New file.
43280         * modules/unictype/category-So-tests: New file.
43281         * modules/unictype/category-Z-tests: New file.
43282         * modules/unictype/category-Zl-tests: New file.
43283         * modules/unictype/category-Zp-tests: New file.
43284         * modules/unictype/category-Zs-tests: New file.
43285         * modules/unictype/category-and-not-tests: New file.
43286         * modules/unictype/category-and-tests: New file.
43287         * modules/unictype/category-byname-tests: New file.
43288         * modules/unictype/category-name-tests: New file.
43289         * modules/unictype/category-none-tests: New file.
43290         * modules/unictype/category-of-tests: New file.
43291         * modules/unictype/category-or-tests: New file.
43292         * modules/unictype/category-test-withtable-tests: New file.
43293         * modules/unictype/combining-class-tests: New file.
43294         * modules/unictype/ctype-alnum-tests: New file.
43295         * modules/unictype/ctype-alpha-tests: New file.
43296         * modules/unictype/ctype-blank-tests: New file.
43297         * modules/unictype/ctype-cntrl-tests: New file.
43298         * modules/unictype/ctype-digit-tests: New file.
43299         * modules/unictype/ctype-graph-tests: New file.
43300         * modules/unictype/ctype-lower-tests: New file.
43301         * modules/unictype/ctype-print-tests: New file.
43302         * modules/unictype/ctype-punct-tests: New file.
43303         * modules/unictype/ctype-space-tests: New file.
43304         * modules/unictype/ctype-upper-tests: New file.
43305         * modules/unictype/ctype-xdigit-tests: New file.
43306         * modules/unictype/decimal-digit-tests: New file.
43307         * modules/unictype/digit-tests: New file.
43308         * modules/unictype/mirror-tests: New file.
43309         * modules/unictype/numeric-tests: New file.
43310         * modules/unictype/property-alphabetic-tests: New file.
43311         * modules/unictype/property-ascii-hex-digit-tests: New file.
43312         * modules/unictype/property-bidi-arabic-digit-tests: New file.
43313         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
43314         * modules/unictype/property-bidi-block-separator-tests: New file.
43315         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
43316         * modules/unictype/property-bidi-common-separator-tests: New file.
43317         * modules/unictype/property-bidi-control-tests: New file.
43318         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
43319         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
43320         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
43321         * modules/unictype/property-bidi-european-digit-tests: New file.
43322         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
43323         * modules/unictype/property-bidi-left-to-right-tests: New file.
43324         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
43325         * modules/unictype/property-bidi-other-neutral-tests: New file.
43326         * modules/unictype/property-bidi-pdf-tests: New file.
43327         * modules/unictype/property-bidi-segment-separator-tests: New file.
43328         * modules/unictype/property-bidi-whitespace-tests: New file.
43329         * modules/unictype/property-byname-tests: New file.
43330         * modules/unictype/property-combining-tests: New file.
43331         * modules/unictype/property-composite-tests: New file.
43332         * modules/unictype/property-currency-symbol-tests: New file.
43333         * modules/unictype/property-dash-tests: New file.
43334         * modules/unictype/property-decimal-digit-tests: New file.
43335         * modules/unictype/property-default-ignorable-code-point-tests: New file.
43336         * modules/unictype/property-deprecated-tests: New file.
43337         * modules/unictype/property-diacritic-tests: New file.
43338         * modules/unictype/property-extender-tests: New file.
43339         * modules/unictype/property-format-control-tests: New file.
43340         * modules/unictype/property-grapheme-base-tests: New file.
43341         * modules/unictype/property-grapheme-extend-tests: New file.
43342         * modules/unictype/property-grapheme-link-tests: New file.
43343         * modules/unictype/property-hex-digit-tests: New file.
43344         * modules/unictype/property-hyphen-tests: New file.
43345         * modules/unictype/property-id-continue-tests: New file.
43346         * modules/unictype/property-id-start-tests: New file.
43347         * modules/unictype/property-ideographic-tests: New file.
43348         * modules/unictype/property-ids-binary-operator-tests: New file.
43349         * modules/unictype/property-ids-trinary-operator-tests: New file.
43350         * modules/unictype/property-ignorable-control-tests: New file.
43351         * modules/unictype/property-iso-control-tests: New file.
43352         * modules/unictype/property-join-control-tests: New file.
43353         * modules/unictype/property-left-of-pair-tests: New file.
43354         * modules/unictype/property-line-separator-tests: New file.
43355         * modules/unictype/property-logical-order-exception-tests: New file.
43356         * modules/unictype/property-lowercase-tests: New file.
43357         * modules/unictype/property-math-tests: New file.
43358         * modules/unictype/property-non-break-tests: New file.
43359         * modules/unictype/property-not-a-character-tests: New file.
43360         * modules/unictype/property-numeric-tests: New file.
43361         * modules/unictype/property-other-alphabetic-tests: New file.
43362         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
43363         * modules/unictype/property-other-grapheme-extend-tests: New file.
43364         * modules/unictype/property-other-id-continue-tests: New file.
43365         * modules/unictype/property-other-id-start-tests: New file.
43366         * modules/unictype/property-other-lowercase-tests: New file.
43367         * modules/unictype/property-other-math-tests: New file.
43368         * modules/unictype/property-other-uppercase-tests: New file.
43369         * modules/unictype/property-paired-punctuation-tests: New file.
43370         * modules/unictype/property-paragraph-separator-tests: New file.
43371         * modules/unictype/property-pattern-syntax-tests: New file.
43372         * modules/unictype/property-pattern-white-space-tests: New file.
43373         * modules/unictype/property-private-use-tests: New file.
43374         * modules/unictype/property-punctuation-tests: New file.
43375         * modules/unictype/property-quotation-mark-tests: New file.
43376         * modules/unictype/property-radical-tests: New file.
43377         * modules/unictype/property-sentence-terminal-tests: New file.
43378         * modules/unictype/property-soft-dotted-tests: New file.
43379         * modules/unictype/property-space-tests: New file.
43380         * modules/unictype/property-terminal-punctuation-tests: New file.
43381         * modules/unictype/property-test-tests: New file.
43382         * modules/unictype/property-titlecase-tests: New file.
43383         * modules/unictype/property-unassigned-code-value-tests: New file.
43384         * modules/unictype/property-unified-ideograph-tests: New file.
43385         * modules/unictype/property-uppercase-tests: New file.
43386         * modules/unictype/property-variation-selector-tests: New file.
43387         * modules/unictype/property-white-space-tests: New file.
43388         * modules/unictype/property-xid-continue-tests: New file.
43389         * modules/unictype/property-xid-start-tests: New file.
43390         * modules/unictype/property-zero-width-tests: New file.
43391         * modules/unictype/scripts-tests: New file.
43392         * modules/unictype/syntax-c-ident-tests: New file.
43393         * modules/unictype/syntax-c-whitespace-tests: New file.
43394         * modules/unictype/syntax-java-ident-tests: New file.
43395         * modules/unictype/syntax-java-whitespace-tests: New file.
43396         * tests/unictype/test-bidi_byname.c: New file.
43397         * tests/unictype/test-bidi_name.c: New file.
43398         * tests/unictype/test-bidi_of.c: New file.
43399         * tests/unictype/test-bidi_test.c: New file.
43400         * tests/unictype/test-block_list.c: New file.
43401         * tests/unictype/test-block_of.c: New file.
43402         * tests/unictype/test-block_test.c: New file.
43403         * tests/unictype/test-categ_and.c: New file.
43404         * tests/unictype/test-categ_and_not.c: New file.
43405         * tests/unictype/test-categ_byname.c: New file.
43406         * tests/unictype/test-categ_name.c: New file.
43407         * tests/unictype/test-categ_none.c: New file.
43408         * tests/unictype/test-categ_of.c: New file.
43409         * tests/unictype/test-categ_or.c: New file.
43410         * tests/unictype/test-categ_test_withtable.c: New file.
43411         * tests/unictype/test-combining.c: New file.
43412         * tests/unictype/test-decdigit.c: New file.
43413         * tests/unictype/test-digit.c: New file.
43414         * tests/unictype/test-mirror.c: New file.
43415         * tests/unictype/test-numeric.c: New file.
43416         * tests/unictype/test-pr_byname.c: New file.
43417         * tests/unictype/test-pr_test.c: New file.
43418         * tests/unictype/test-predicate-part1.h: New file.
43419         * tests/unictype/test-predicate-part2.h: New file.
43420         * tests/unictype/test-scripts.c: New file.
43421         * tests/unictype/test-sy_c_ident.c: New file.
43422         * tests/unictype/test-sy_java_ident.c: New file.
43423
43424         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
43425         for Unicode 5.0.0.
43426         * tests/unictype/test-categ_Cc.c: Likewise.
43427         * tests/unictype/test-categ_Cf.c: Likewise.
43428         * tests/unictype/test-categ_Cn.c: Likewise.
43429         * tests/unictype/test-categ_Co.c: Likewise.
43430         * tests/unictype/test-categ_Cs.c: Likewise.
43431         * tests/unictype/test-categ_L.c: Likewise.
43432         * tests/unictype/test-categ_Ll.c: Likewise.
43433         * tests/unictype/test-categ_Lm.c: Likewise.
43434         * tests/unictype/test-categ_Lo.c: Likewise.
43435         * tests/unictype/test-categ_Lt.c: Likewise.
43436         * tests/unictype/test-categ_Lu.c: Likewise.
43437         * tests/unictype/test-categ_M.c: Likewise.
43438         * tests/unictype/test-categ_Mc.c: Likewise.
43439         * tests/unictype/test-categ_Me.c: Likewise.
43440         * tests/unictype/test-categ_Mn.c: Likewise.
43441         * tests/unictype/test-categ_N.c: Likewise.
43442         * tests/unictype/test-categ_Nd.c: Likewise.
43443         * tests/unictype/test-categ_Nl.c: Likewise.
43444         * tests/unictype/test-categ_No.c: Likewise.
43445         * tests/unictype/test-categ_P.c: Likewise.
43446         * tests/unictype/test-categ_Pc.c: Likewise.
43447         * tests/unictype/test-categ_Pd.c: Likewise.
43448         * tests/unictype/test-categ_Pe.c: Likewise.
43449         * tests/unictype/test-categ_Pf.c: Likewise.
43450         * tests/unictype/test-categ_Pi.c: Likewise.
43451         * tests/unictype/test-categ_Po.c: Likewise.
43452         * tests/unictype/test-categ_Ps.c: Likewise.
43453         * tests/unictype/test-categ_S.c: Likewise.
43454         * tests/unictype/test-categ_Sc.c: Likewise.
43455         * tests/unictype/test-categ_Sk.c: Likewise.
43456         * tests/unictype/test-categ_Sm.c: Likewise.
43457         * tests/unictype/test-categ_So.c: Likewise.
43458         * tests/unictype/test-categ_Z.c: Likewise.
43459         * tests/unictype/test-categ_Zl.c: Likewise.
43460         * tests/unictype/test-categ_Zp.c: Likewise.
43461         * tests/unictype/test-categ_Zs.c: Likewise.
43462         * tests/unictype/test-ctype_alnum.c: Likewise.
43463         * tests/unictype/test-ctype_alpha.c: Likewise.
43464         * tests/unictype/test-ctype_blank.c: Likewise.
43465         * tests/unictype/test-ctype_cntrl.c: Likewise.
43466         * tests/unictype/test-ctype_digit.c: Likewise.
43467         * tests/unictype/test-ctype_graph.c: Likewise.
43468         * tests/unictype/test-ctype_lower.c: Likewise.
43469         * tests/unictype/test-ctype_print.c: Likewise.
43470         * tests/unictype/test-ctype_punct.c: Likewise.
43471         * tests/unictype/test-ctype_space.c: Likewise.
43472         * tests/unictype/test-ctype_upper.c: Likewise.
43473         * tests/unictype/test-ctype_xdigit.c: Likewise.
43474         * tests/unictype/test-decdigit.h: Likewise.
43475         * tests/unictype/test-digit.h: Likewise.
43476         * tests/unictype/test-numeric.h: Likewise.
43477         * tests/unictype/test-pr_alphabetic.c: Likewise.
43478         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
43479         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
43480         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
43481         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
43482         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
43483         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
43484         * tests/unictype/test-pr_bidi_control.c: Likewise.
43485         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
43486         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
43487         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
43488         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
43489         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
43490         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
43491         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
43492         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
43493         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
43494         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
43495         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
43496         * tests/unictype/test-pr_combining.c: Likewise.
43497         * tests/unictype/test-pr_composite.c: Likewise.
43498         * tests/unictype/test-pr_currency_symbol.c: Likewise.
43499         * tests/unictype/test-pr_dash.c: Likewise.
43500         * tests/unictype/test-pr_decimal_digit.c: Likewise.
43501         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
43502         * tests/unictype/test-pr_deprecated.c: Likewise.
43503         * tests/unictype/test-pr_diacritic.c: Likewise.
43504         * tests/unictype/test-pr_extender.c: Likewise.
43505         * tests/unictype/test-pr_format_control.c: Likewise.
43506         * tests/unictype/test-pr_grapheme_base.c: Likewise.
43507         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
43508         * tests/unictype/test-pr_grapheme_link.c: Likewise.
43509         * tests/unictype/test-pr_hex_digit.c: Likewise.
43510         * tests/unictype/test-pr_hyphen.c: Likewise.
43511         * tests/unictype/test-pr_id_continue.c: Likewise.
43512         * tests/unictype/test-pr_id_start.c: Likewise.
43513         * tests/unictype/test-pr_ideographic.c: Likewise.
43514         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
43515         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
43516         * tests/unictype/test-pr_ignorable_control.c: Likewise.
43517         * tests/unictype/test-pr_iso_control.c: Likewise.
43518         * tests/unictype/test-pr_join_control.c: Likewise.
43519         * tests/unictype/test-pr_left_of_pair.c: Likewise.
43520         * tests/unictype/test-pr_line_separator.c: Likewise.
43521         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
43522         * tests/unictype/test-pr_lowercase.c: Likewise.
43523         * tests/unictype/test-pr_math.c: Likewise.
43524         * tests/unictype/test-pr_non_break.c: Likewise.
43525         * tests/unictype/test-pr_not_a_character.c: Likewise.
43526         * tests/unictype/test-pr_numeric.c: Likewise.
43527         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
43528         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
43529         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
43530         * tests/unictype/test-pr_other_id_continue.c: Likewise.
43531         * tests/unictype/test-pr_other_id_start.c: Likewise.
43532         * tests/unictype/test-pr_other_lowercase.c: Likewise.
43533         * tests/unictype/test-pr_other_math.c: Likewise.
43534         * tests/unictype/test-pr_other_uppercase.c: Likewise.
43535         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
43536         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
43537         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
43538         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
43539         * tests/unictype/test-pr_private_use.c: Likewise.
43540         * tests/unictype/test-pr_punctuation.c: Likewise.
43541         * tests/unictype/test-pr_quotation_mark.c: Likewise.
43542         * tests/unictype/test-pr_radical.c: Likewise.
43543         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
43544         * tests/unictype/test-pr_soft_dotted.c: Likewise.
43545         * tests/unictype/test-pr_space.c: Likewise.
43546         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
43547         * tests/unictype/test-pr_titlecase.c: Likewise.
43548         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
43549         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
43550         * tests/unictype/test-pr_uppercase.c: Likewise.
43551         * tests/unictype/test-pr_variation_selector.c: Likewise.
43552         * tests/unictype/test-pr_white_space.c: Likewise.
43553         * tests/unictype/test-pr_xid_continue.c: Likewise.
43554         * tests/unictype/test-pr_xid_start.c: Likewise.
43555         * tests/unictype/test-pr_zero_width.c: Likewise.
43556         * tests/unictype/test-sy_c_whitespace.c: Likewise.
43557         * tests/unictype/test-sy_java_whitespace.c: Likewise.
43558
43559 2007-11-12  Bruno Haible  <bruno@clisp.org>
43560
43561         Unicode character classification functions.
43562         * lib/unictype.h: New file.
43563         * modules/unictype/base: New file.
43564         * modules/unictype/category-L: New file.
43565         * modules/unictype/category-Lu: New file.
43566         * modules/unictype/category-Ll: New file.
43567         * modules/unictype/category-Lt: New file.
43568         * modules/unictype/category-Lm: New file.
43569         * modules/unictype/category-Lo: New file.
43570         * modules/unictype/category-M: New file.
43571         * modules/unictype/category-Mn: New file.
43572         * modules/unictype/category-Mc: New file.
43573         * modules/unictype/category-Me: New file.
43574         * modules/unictype/category-N: New file.
43575         * modules/unictype/category-Nd: New file.
43576         * modules/unictype/category-Nl: New file.
43577         * modules/unictype/category-No: New file.
43578         * modules/unictype/category-P: New file.
43579         * modules/unictype/category-Pc: New file.
43580         * modules/unictype/category-Pd: New file.
43581         * modules/unictype/category-Ps: New file.
43582         * modules/unictype/category-Pe: New file.
43583         * modules/unictype/category-Pi: New file.
43584         * modules/unictype/category-Pf: New file.
43585         * modules/unictype/category-Po: New file.
43586         * modules/unictype/category-S: New file.
43587         * modules/unictype/category-Sm: New file.
43588         * modules/unictype/category-Sc: New file.
43589         * modules/unictype/category-Sk: New file.
43590         * modules/unictype/category-So: New file.
43591         * modules/unictype/category-Z: New file.
43592         * modules/unictype/category-Zs: New file.
43593         * modules/unictype/category-Zl: New file.
43594         * modules/unictype/category-Zp: New file.
43595         * modules/unictype/category-C: New file.
43596         * modules/unictype/category-Cc: New file.
43597         * modules/unictype/category-Cf: New file.
43598         * modules/unictype/category-Cs: New file.
43599         * modules/unictype/category-Co: New file.
43600         * modules/unictype/category-Cn: New file.
43601         * modules/unictype/category-or: New file.
43602         * modules/unictype/category-of: New file.
43603         * modules/unictype/category-test: New file.
43604         * modules/unictype/category-test-withtable: New file.
43605         * modules/unictype/category-byname: New file.
43606         * modules/unictype/category-none: New file.
43607         * modules/unictype/category-and: New file.
43608         * modules/unictype/category-and-not: New file.
43609         * modules/unictype/category-name: New file.
43610         * modules/unictype/combining-class: New file.
43611         * modules/unictype/category-all: New file.
43612         * modules/unictype/bidicategory-all: New file.
43613         * modules/unictype/bidicategory-byname: New file.
43614         * modules/unictype/bidicategory-name: New file.
43615         * modules/unictype/bidicategory-of: New file.
43616         * modules/unictype/bidicategory-test: New file.
43617         * modules/unictype/decimal-digit: New file.
43618         * modules/unictype/digit: New file.
43619         * modules/unictype/numeric: New file.
43620         * modules/unictype/mirror: New file.
43621         * modules/unictype/property-white-space: New file.
43622         * modules/unictype/property-alphabetic: New file.
43623         * modules/unictype/property-other-alphabetic: New file.
43624         * modules/unictype/property-not-a-character: New file.
43625         * modules/unictype/property-default-ignorable-code-point: New file.
43626         * modules/unictype/property-other-default-ignorable-code-point: New
43627         file.
43628         * modules/unictype/property-deprecated: New file.
43629         * modules/unictype/property-logical-order-exception: New file.
43630         * modules/unictype/property-variation-selector: New file.
43631         * modules/unictype/property-private-use: New file.
43632         * modules/unictype/property-unassigned-code-value: New file.
43633         * modules/unictype/property-uppercase: New file.
43634         * modules/unictype/property-other-uppercase: New file.
43635         * modules/unictype/property-lowercase: New file.
43636         * modules/unictype/property-other-lowercase: New file.
43637         * modules/unictype/property-titlecase: New file.
43638         * modules/unictype/property-soft-dotted: New file.
43639         * modules/unictype/property-id-start: New file.
43640         * modules/unictype/property-other-id-start: New file.
43641         * modules/unictype/property-id-continue: New file.
43642         * modules/unictype/property-other-id-continue: New file.
43643         * modules/unictype/property-xid-start: New file.
43644         * modules/unictype/property-xid-continue: New file.
43645         * modules/unictype/property-pattern-white-space: New file.
43646         * modules/unictype/property-pattern-syntax: New file.
43647         * modules/unictype/property-join-control: New file.
43648         * modules/unictype/property-grapheme-base: New file.
43649         * modules/unictype/property-grapheme-extend: New file.
43650         * modules/unictype/property-other-grapheme-extend: New file.
43651         * modules/unictype/property-grapheme-link: New file.
43652         * modules/unictype/property-bidi-control: New file.
43653         * modules/unictype/property-bidi-left-to-right: New file.
43654         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
43655         * modules/unictype/property-bidi-arabic-right-to-left: New file.
43656         * modules/unictype/property-bidi-european-digit: New file.
43657         * modules/unictype/property-bidi-eur-num-separator: New file.
43658         * modules/unictype/property-bidi-eur-num-terminator: New file.
43659         * modules/unictype/property-bidi-arabic-digit: New file.
43660         * modules/unictype/property-bidi-common-separator: New file.
43661         * modules/unictype/property-bidi-block-separator: New file.
43662         * modules/unictype/property-bidi-segment-separator: New file.
43663         * modules/unictype/property-bidi-whitespace: New file.
43664         * modules/unictype/property-bidi-non-spacing-mark: New file.
43665         * modules/unictype/property-bidi-boundary-neutral: New file.
43666         * modules/unictype/property-bidi-pdf: New file.
43667         * modules/unictype/property-bidi-embedding-or-override: New file.
43668         * modules/unictype/property-bidi-other-neutral: New file.
43669         * modules/unictype/property-hex-digit: New file.
43670         * modules/unictype/property-ascii-hex-digit: New file.
43671         * modules/unictype/property-ideographic: New file.
43672         * modules/unictype/property-unified-ideograph: New file.
43673         * modules/unictype/property-radical: New file.
43674         * modules/unictype/property-ids-binary-operator: New file.
43675         * modules/unictype/property-ids-trinary-operator: New file.
43676         * modules/unictype/property-zero-width: New file.
43677         * modules/unictype/property-space: New file.
43678         * modules/unictype/property-non-break: New file.
43679         * modules/unictype/property-iso-control: New file.
43680         * modules/unictype/property-format-control: New file.
43681         * modules/unictype/property-dash: New file.
43682         * modules/unictype/property-hyphen: New file.
43683         * modules/unictype/property-punctuation: New file.
43684         * modules/unictype/property-line-separator: New file.
43685         * modules/unictype/property-paragraph-separator: New file.
43686         * modules/unictype/property-quotation-mark: New file.
43687         * modules/unictype/property-sentence-terminal: New file.
43688         * modules/unictype/property-terminal-punctuation: New file.
43689         * modules/unictype/property-currency-symbol: New file.
43690         * modules/unictype/property-math: New file.
43691         * modules/unictype/property-other-math: New file.
43692         * modules/unictype/property-paired-punctuation: New file.
43693         * modules/unictype/property-left-of-pair: New file.
43694         * modules/unictype/property-combining: New file.
43695         * modules/unictype/property-composite: New file.
43696         * modules/unictype/property-decimal-digit: New file.
43697         * modules/unictype/property-numeric: New file.
43698         * modules/unictype/property-diacritic: New file.
43699         * modules/unictype/property-extender: New file.
43700         * modules/unictype/property-ignorable-control: New file.
43701         * modules/unictype/property-test: New file.
43702         * modules/unictype/property-byname: New file.
43703         * modules/unictype/property-all: New file.
43704         * modules/unictype/scripts: New file.
43705         * modules/unictype/scripts-all: New file.
43706         * modules/unictype/block-of: New file.
43707         * modules/unictype/block-test: New file.
43708         * modules/unictype/block-list: New file.
43709         * modules/unictype/block-all: New file.
43710         * modules/unictype/syntax-c-whitespace: New file.
43711         * modules/unictype/syntax-java-whitespace: New file.
43712         * modules/unictype/syntax-c-ident: New file.
43713         * modules/unictype/syntax-java-ident: New file.
43714         * modules/unictype/ctype-alnum: New file.
43715         * modules/unictype/ctype-alpha: New file.
43716         * modules/unictype/ctype-cntrl: New file.
43717         * modules/unictype/ctype-digit: New file.
43718         * modules/unictype/ctype-graph: New file.
43719         * modules/unictype/ctype-lower: New file.
43720         * modules/unictype/ctype-print: New file.
43721         * modules/unictype/ctype-punct: New file.
43722         * modules/unictype/ctype-space: New file.
43723         * modules/unictype/ctype-upper: New file.
43724         * modules/unictype/ctype-xdigit: New file.
43725         * modules/unictype/ctype-blank: New file.
43726         * lib/unictype/bidi_byname.c: New file.
43727         * lib/unictype/bidi_name.c: New file.
43728         * lib/unictype/bidi_of.c: New file.
43729         * lib/unictype/bidi_test.c: New file.
43730         * lib/unictype/bitmap.h: New file.
43731         * lib/unictype/block_test.c: New file.
43732         * lib/unictype/blocks.c: New file.
43733         * lib/unictype/categ_C.c: New file.
43734         * lib/unictype/categ_Cc.c: New file.
43735         * lib/unictype/categ_Cf.c: New file.
43736         * lib/unictype/categ_Cn.c: New file.
43737         * lib/unictype/categ_Co.c: New file.
43738         * lib/unictype/categ_Cs.c: New file.
43739         * lib/unictype/categ_L.c: New file.
43740         * lib/unictype/categ_Ll.c: New file.
43741         * lib/unictype/categ_Lm.c: New file.
43742         * lib/unictype/categ_Lo.c: New file.
43743         * lib/unictype/categ_Lt.c: New file.
43744         * lib/unictype/categ_Lu.c: New file.
43745         * lib/unictype/categ_M.c: New file.
43746         * lib/unictype/categ_Mc.c: New file.
43747         * lib/unictype/categ_Me.c: New file.
43748         * lib/unictype/categ_Mn.c: New file.
43749         * lib/unictype/categ_N.c: New file.
43750         * lib/unictype/categ_Nd.c: New file.
43751         * lib/unictype/categ_Nl.c: New file.
43752         * lib/unictype/categ_No.c: New file.
43753         * lib/unictype/categ_P.c: New file.
43754         * lib/unictype/categ_Pc.c: New file.
43755         * lib/unictype/categ_Pd.c: New file.
43756         * lib/unictype/categ_Pe.c: New file.
43757         * lib/unictype/categ_Pf.c: New file.
43758         * lib/unictype/categ_Pi.c: New file.
43759         * lib/unictype/categ_Po.c: New file.
43760         * lib/unictype/categ_Ps.c: New file.
43761         * lib/unictype/categ_S.c: New file.
43762         * lib/unictype/categ_Sc.c: New file.
43763         * lib/unictype/categ_Sk.c: New file.
43764         * lib/unictype/categ_Sm.c: New file.
43765         * lib/unictype/categ_So.c: New file.
43766         * lib/unictype/categ_Z.c: New file.
43767         * lib/unictype/categ_Zl.c: New file.
43768         * lib/unictype/categ_Zp.c: New file.
43769         * lib/unictype/categ_Zs.c: New file.
43770         * lib/unictype/categ_and.c: New file.
43771         * lib/unictype/categ_and_not.c: New file.
43772         * lib/unictype/categ_byname.c: New file.
43773         * lib/unictype/categ_name.c: New file.
43774         * lib/unictype/categ_none.c: New file.
43775         * lib/unictype/categ_of.c: New file.
43776         * lib/unictype/categ_or.c: New file.
43777         * lib/unictype/categ_test.c: New file.
43778         * lib/unictype/combining.c: New file.
43779         * lib/unictype/ctype_alnum.c: New file.
43780         * lib/unictype/ctype_alpha.c: New file.
43781         * lib/unictype/ctype_blank.c: New file.
43782         * lib/unictype/ctype_cntrl.c: New file.
43783         * lib/unictype/ctype_digit.c: New file.
43784         * lib/unictype/ctype_graph.c: New file.
43785         * lib/unictype/ctype_lower.c: New file.
43786         * lib/unictype/ctype_print.c: New file.
43787         * lib/unictype/ctype_punct.c: New file.
43788         * lib/unictype/ctype_space.c: New file.
43789         * lib/unictype/ctype_upper.c: New file.
43790         * lib/unictype/ctype_xdigit.c: New file.
43791         * lib/unictype/decdigit.c: New file.
43792         * lib/unictype/digit.c: New file.
43793         * lib/unictype/identsyntaxmap.h: New file.
43794         * lib/unictype/mirror.c: New file.
43795         * lib/unictype/numeric.c: New file.
43796         * lib/unictype/pr_alphabetic.c: New file.
43797         * lib/unictype/pr_ascii_hex_digit.c: New file.
43798         * lib/unictype/pr_bidi_arabic_digit.c: New file.
43799         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
43800         * lib/unictype/pr_bidi_block_separator.c: New file.
43801         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
43802         * lib/unictype/pr_bidi_common_separator.c: New file.
43803         * lib/unictype/pr_bidi_control.c: New file.
43804         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
43805         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
43806         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
43807         * lib/unictype/pr_bidi_european_digit.c: New file.
43808         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
43809         * lib/unictype/pr_bidi_left_to_right.c: New file.
43810         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
43811         * lib/unictype/pr_bidi_other_neutral.c: New file.
43812         * lib/unictype/pr_bidi_pdf.c: New file.
43813         * lib/unictype/pr_bidi_segment_separator.c: New file.
43814         * lib/unictype/pr_bidi_whitespace.c: New file.
43815         * lib/unictype/pr_byname.c: New file.
43816         * lib/unictype/pr_byname.gperf: New file.
43817         * lib/unictype/pr_combining.c: New file.
43818         * lib/unictype/pr_composite.c: New file.
43819         * lib/unictype/pr_currency_symbol.c: New file.
43820         * lib/unictype/pr_dash.c: New file.
43821         * lib/unictype/pr_decimal_digit.c: New file.
43822         * lib/unictype/pr_default_ignorable_code_point.c: New file.
43823         * lib/unictype/pr_deprecated.c: New file.
43824         * lib/unictype/pr_diacritic.c: New file.
43825         * lib/unictype/pr_extender.c: New file.
43826         * lib/unictype/pr_format_control.c: New file.
43827         * lib/unictype/pr_grapheme_base.c: New file.
43828         * lib/unictype/pr_grapheme_extend.c: New file.
43829         * lib/unictype/pr_grapheme_link.c: New file.
43830         * lib/unictype/pr_hex_digit.c: New file.
43831         * lib/unictype/pr_hyphen.c: New file.
43832         * lib/unictype/pr_id_continue.c: New file.
43833         * lib/unictype/pr_id_start.c: New file.
43834         * lib/unictype/pr_ideographic.c: New file.
43835         * lib/unictype/pr_ids_binary_operator.c: New file.
43836         * lib/unictype/pr_ids_trinary_operator.c: New file.
43837         * lib/unictype/pr_ignorable_control.c: New file.
43838         * lib/unictype/pr_iso_control.c: New file.
43839         * lib/unictype/pr_join_control.c: New file.
43840         * lib/unictype/pr_left_of_pair.c: New file.
43841         * lib/unictype/pr_line_separator.c: New file.
43842         * lib/unictype/pr_logical_order_exception.c: New file.
43843         * lib/unictype/pr_lowercase.c: New file.
43844         * lib/unictype/pr_math.c: New file.
43845         * lib/unictype/pr_non_break.c: New file.
43846         * lib/unictype/pr_not_a_character.c: New file.
43847         * lib/unictype/pr_numeric.c: New file.
43848         * lib/unictype/pr_other_alphabetic.c: New file.
43849         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
43850         * lib/unictype/pr_other_grapheme_extend.c: New file.
43851         * lib/unictype/pr_other_id_continue.c: New file.
43852         * lib/unictype/pr_other_id_start.c: New file.
43853         * lib/unictype/pr_other_lowercase.c: New file.
43854         * lib/unictype/pr_other_math.c: New file.
43855         * lib/unictype/pr_other_uppercase.c: New file.
43856         * lib/unictype/pr_paired_punctuation.c: New file.
43857         * lib/unictype/pr_paragraph_separator.c: New file.
43858         * lib/unictype/pr_pattern_syntax.c: New file.
43859         * lib/unictype/pr_pattern_white_space.c: New file.
43860         * lib/unictype/pr_private_use.c: New file.
43861         * lib/unictype/pr_punctuation.c: New file.
43862         * lib/unictype/pr_quotation_mark.c: New file.
43863         * lib/unictype/pr_radical.c: New file.
43864         * lib/unictype/pr_sentence_terminal.c: New file.
43865         * lib/unictype/pr_soft_dotted.c: New file.
43866         * lib/unictype/pr_space.c: New file.
43867         * lib/unictype/pr_terminal_punctuation.c: New file.
43868         * lib/unictype/pr_test.c: New file.
43869         * lib/unictype/pr_titlecase.c: New file.
43870         * lib/unictype/pr_unassigned_code_value.c: New file.
43871         * lib/unictype/pr_unified_ideograph.c: New file.
43872         * lib/unictype/pr_uppercase.c: New file.
43873         * lib/unictype/pr_variation_selector.c: New file.
43874         * lib/unictype/pr_white_space.c: New file.
43875         * lib/unictype/pr_xid_continue.c: New file.
43876         * lib/unictype/pr_xid_start.c: New file.
43877         * lib/unictype/pr_zero_width.c: New file.
43878         * lib/unictype/scripts.c: New file.
43879         * lib/unictype/sy_c_ident.c: New file.
43880         * lib/unictype/sy_c_whitespace.c: New file.
43881         * lib/unictype/sy_java_ident.c: New file.
43882         * lib/unictype/sy_java_whitespace.c: New file.
43883
43884         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
43885         Unicode 5.0.0.
43886         * lib/unictype/blocks.h: Likewise.
43887         * lib/unictype/categ_C.h: Likewise.
43888         * lib/unictype/categ_Cc.h: Likewise.
43889         * lib/unictype/categ_Cf.h: Likewise.
43890         * lib/unictype/categ_Cn.h: Likewise.
43891         * lib/unictype/categ_Co.h: Likewise.
43892         * lib/unictype/categ_Cs.h: Likewise.
43893         * lib/unictype/categ_L.h: Likewise.
43894         * lib/unictype/categ_Ll.h: Likewise.
43895         * lib/unictype/categ_Lm.h: Likewise.
43896         * lib/unictype/categ_Lo.h: Likewise.
43897         * lib/unictype/categ_Lt.h: Likewise.
43898         * lib/unictype/categ_Lu.h: Likewise.
43899         * lib/unictype/categ_M.h: Likewise.
43900         * lib/unictype/categ_Mc.h: Likewise.
43901         * lib/unictype/categ_Me.h: Likewise.
43902         * lib/unictype/categ_Mn.h: Likewise.
43903         * lib/unictype/categ_N.h: Likewise.
43904         * lib/unictype/categ_Nd.h: Likewise.
43905         * lib/unictype/categ_Nl.h: Likewise.
43906         * lib/unictype/categ_No.h: Likewise.
43907         * lib/unictype/categ_P.h: Likewise.
43908         * lib/unictype/categ_Pc.h: Likewise.
43909         * lib/unictype/categ_Pd.h: Likewise.
43910         * lib/unictype/categ_Pe.h: Likewise.
43911         * lib/unictype/categ_Pf.h: Likewise.
43912         * lib/unictype/categ_Pi.h: Likewise.
43913         * lib/unictype/categ_Po.h: Likewise.
43914         * lib/unictype/categ_Ps.h: Likewise.
43915         * lib/unictype/categ_S.h: Likewise.
43916         * lib/unictype/categ_Sc.h: Likewise.
43917         * lib/unictype/categ_Sk.h: Likewise.
43918         * lib/unictype/categ_Sm.h: Likewise.
43919         * lib/unictype/categ_So.h: Likewise.
43920         * lib/unictype/categ_Z.h: Likewise.
43921         * lib/unictype/categ_Zl.h: Likewise.
43922         * lib/unictype/categ_Zp.h: Likewise.
43923         * lib/unictype/categ_Zs.h: Likewise.
43924         * lib/unictype/categ_of.h: Likewise.
43925         * lib/unictype/combining.h: Likewise.
43926         * lib/unictype/ctype_alnum.h: Likewise.
43927         * lib/unictype/ctype_alpha.h: Likewise.
43928         * lib/unictype/ctype_blank.h: Likewise.
43929         * lib/unictype/ctype_cntrl.h: Likewise.
43930         * lib/unictype/ctype_digit.h: Likewise.
43931         * lib/unictype/ctype_graph.h: Likewise.
43932         * lib/unictype/ctype_lower.h: Likewise.
43933         * lib/unictype/ctype_print.h: Likewise.
43934         * lib/unictype/ctype_punct.h: Likewise.
43935         * lib/unictype/ctype_space.h: Likewise.
43936         * lib/unictype/ctype_upper.h: Likewise.
43937         * lib/unictype/ctype_xdigit.h: Likewise.
43938         * lib/unictype/decdigit.h: Likewise.
43939         * lib/unictype/digit.h: Likewise.
43940         * lib/unictype/mirror.h: Likewise.
43941         * lib/unictype/numeric.h: Likewise.
43942         * lib/unictype/pr_alphabetic.h: Likewise.
43943         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43944         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43945         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43946         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43947         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43948         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43949         * lib/unictype/pr_bidi_control.h: Likewise.
43950         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43951         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43952         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43953         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43954         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43955         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43956         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43957         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43958         * lib/unictype/pr_bidi_pdf.h: Likewise.
43959         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43960         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43961         * lib/unictype/pr_combining.h: Likewise.
43962         * lib/unictype/pr_composite.h: Likewise.
43963         * lib/unictype/pr_currency_symbol.h: Likewise.
43964         * lib/unictype/pr_dash.h: Likewise.
43965         * lib/unictype/pr_decimal_digit.h: Likewise.
43966         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43967         * lib/unictype/pr_deprecated.h: Likewise.
43968         * lib/unictype/pr_diacritic.h: Likewise.
43969         * lib/unictype/pr_extender.h: Likewise.
43970         * lib/unictype/pr_format_control.h: Likewise.
43971         * lib/unictype/pr_grapheme_base.h: Likewise.
43972         * lib/unictype/pr_grapheme_extend.h: Likewise.
43973         * lib/unictype/pr_grapheme_link.h: Likewise.
43974         * lib/unictype/pr_hex_digit.h: Likewise.
43975         * lib/unictype/pr_hyphen.h: Likewise.
43976         * lib/unictype/pr_id_continue.h: Likewise.
43977         * lib/unictype/pr_id_start.h: Likewise.
43978         * lib/unictype/pr_ideographic.h: Likewise.
43979         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43980         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43981         * lib/unictype/pr_ignorable_control.h: Likewise.
43982         * lib/unictype/pr_iso_control.h: Likewise.
43983         * lib/unictype/pr_join_control.h: Likewise.
43984         * lib/unictype/pr_left_of_pair.h: Likewise.
43985         * lib/unictype/pr_line_separator.h: Likewise.
43986         * lib/unictype/pr_logical_order_exception.h: Likewise.
43987         * lib/unictype/pr_lowercase.h: Likewise.
43988         * lib/unictype/pr_math.h: Likewise.
43989         * lib/unictype/pr_non_break.h: Likewise.
43990         * lib/unictype/pr_not_a_character.h: Likewise.
43991         * lib/unictype/pr_numeric.h: Likewise.
43992         * lib/unictype/pr_other_alphabetic.h: Likewise.
43993         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43994         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43995         * lib/unictype/pr_other_id_continue.h: Likewise.
43996         * lib/unictype/pr_other_id_start.h: Likewise.
43997         * lib/unictype/pr_other_lowercase.h: Likewise.
43998         * lib/unictype/pr_other_math.h: Likewise.
43999         * lib/unictype/pr_other_uppercase.h: Likewise.
44000         * lib/unictype/pr_paired_punctuation.h: Likewise.
44001         * lib/unictype/pr_paragraph_separator.h: Likewise.
44002         * lib/unictype/pr_pattern_syntax.h: Likewise.
44003         * lib/unictype/pr_pattern_white_space.h: Likewise.
44004         * lib/unictype/pr_private_use.h: Likewise.
44005         * lib/unictype/pr_punctuation.h: Likewise.
44006         * lib/unictype/pr_quotation_mark.h: Likewise.
44007         * lib/unictype/pr_radical.h: Likewise.
44008         * lib/unictype/pr_sentence_terminal.h: Likewise.
44009         * lib/unictype/pr_soft_dotted.h: Likewise.
44010         * lib/unictype/pr_space.h: Likewise.
44011         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44012         * lib/unictype/pr_titlecase.h: Likewise.
44013         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44014         * lib/unictype/pr_unified_ideograph.h: Likewise.
44015         * lib/unictype/pr_uppercase.h: Likewise.
44016         * lib/unictype/pr_variation_selector.h: Likewise.
44017         * lib/unictype/pr_white_space.h: Likewise.
44018         * lib/unictype/pr_xid_continue.h: Likewise.
44019         * lib/unictype/pr_xid_start.h: Likewise.
44020         * lib/unictype/pr_zero_width.h: Likewise.
44021         * lib/unictype/scripts.h: Likewise.
44022         * lib/unictype/scripts_byname.gperf: Likewise.
44023         * lib/unictype/sy_c_ident.h: Likewise.
44024         * lib/unictype/sy_c_whitespace.h: Likewise.
44025         * lib/unictype/sy_java_ident.h: Likewise.
44026         * lib/unictype/sy_java_whitespace.h: Likewise.
44027
44028         * lib/unictype/Makefile: New file.
44029         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
44030         glibc.
44031         * lib/unictype/3level.h: New file, copied from glibc.
44032         * lib/unictype/3levelbit.h: New file.
44033
44034 2007-11-11  Bruno Haible  <bruno@clisp.org>
44035
44036         * modules/gperf: New file.
44037         * modules/iconv_open (Depends-on): Add it.
44038         (Makefile.am): Remove the GPERF definition.
44039
44040 2007-11-11  Bruno Haible  <bruno@clisp.org>
44041
44042         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
44043         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
44044
44045 2007-11-11  Bruno Haible  <bruno@clisp.org>
44046
44047         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
44048         (usage): Remove function.
44049
44050 2007-11-11  Bruno Haible  <bruno@clisp.org>
44051
44052         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
44053         gl_FUNC_CEILF_LIBS.
44054         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
44055         gl_FUNC_CEIL_LIBS.
44056         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
44057         gl_FUNC_CEILL_LIBS.
44058         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
44059         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
44060         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
44061
44062 2007-11-11  Bruno Haible  <bruno@clisp.org>
44063
44064         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
44065         roundf were declared but do not exist on functions.
44066         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
44067         roundl were declared but do not exist on functions.
44068         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
44069         HAVE_FLOORL_AND_CEILL, respectively.
44070         Needed for Sun C on Solaris 10.
44071
44072 2007-11-11  Bruno Haible  <bruno@clisp.org>
44073
44074         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
44075         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
44076         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
44077         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
44078         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
44079         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
44080         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
44081         HAVE_DECL_ROUNDF.
44082         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
44083         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
44084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
44085         of HAVE_DECL_ROUND*.
44086         * modules/math (Makefile.am): Update.
44087
44088 2007-11-10  Bruno Haible  <bruno@clisp.org>
44089
44090         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
44091         ptrdiff_t as m4/intl.m4.
44092
44093 2007-11-10  Jim Meyering  <meyering@redhat.com>
44094
44095         Avoid link failure for the argmatch test.
44096         * tests/test-argmatch.c (usage): Define function to avoid a link
44097         failure: argmatch_die requires a usage function.
44098
44099 2007-11-09  Bruno Haible  <bruno@clisp.org>
44100
44101         * doc/functions/snprintf.texi: Mention BeOS deficiency.
44102         * doc/functions/vsnprintf.texi: Likewise.
44103         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
44104         with a size argument < 2.
44105
44106 2007-11-09  Bruno Haible  <bruno@clisp.org>
44107
44108         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
44109         buffer. Fixes an inefficiency introduced on 2007-11-03.
44110
44111 2007-11-09  Bruno Haible  <bruno@clisp.org>
44112
44113         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
44114         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
44115
44116 2007-11-08  Jim Meyering  <meyering@redhat.com>
44117
44118         Change cache variable name prefix "jm_" to "gl_" everywhere.
44119         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
44120         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
44121         * m4/uptime.m4: s/gl_/jm_/
44122
44123 2007-11-07  Bruno Haible  <bruno@clisp.org>
44124
44125         Update to GNU gettext 0.17.
44126         * m4/intl.m4: Update to GNU gettext 0.17.
44127         * m4/po.m4: Likewise.
44128         * modules/gettext (Files): Remove m4/ulonglong.m4.
44129         (configure.ac): Require gettext infrastructure from version 0.17.
44130
44131 2007-11-06  Bruno Haible  <bruno@clisp.org>
44132
44133         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
44134         symbolic values are not defined in a public header.
44135         * lib/freadable.c (freadable) [QNX]: Likewise.
44136         * lib/freadahead.c (freadahead) [QNX]: Likewise.
44137         * lib/freading.c (freading) [QNX]: Likewise.
44138         * lib/fseterr.c (fseterr) [QNX]: Likewise.
44139         * lib/fwritable.c (fwritable) [QNX]: Likewise.
44140         * lib/fwriting.c (fwriting) [QNX]: Likewise.
44141         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
44142         Reported by Alain Magloire.
44143
44144         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
44145
44146 2007-11-05  Bruno Haible  <bruno@clisp.org>
44147
44148         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
44149         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
44150         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
44151         Reported by Eric Blake.
44152
44153 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44154             Bruno Haible  <bruno@clisp.org>
44155
44156         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
44157         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
44158         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
44159         (malloc): Undefine also before including <stdlib.h>.
44160         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
44161         Needed on OSF/1 4.0.
44162
44163 2007-11-05  Jim Meyering  <meyering@redhat.com>
44164
44165         git-version-gen: sync from coreutils.
44166         * build-aux/git-version-gen: Add comments.
44167         Change the first '-' to '.' in the snapshot version string,
44168         e.g., 6.9-377-08144 -> 6.9.377-08144
44169         Remove first parameter.
44170         Don't declare a version "-dirty" merely because a time
44171         stamp has changed.
44172
44173 2007-11-04  Bruno Haible  <bruno@clisp.org>
44174
44175         * lib/lock.h: Protect all macro definitions containing an 'if'
44176         statement through a "do { ... } while (0)".
44177         * lib/tls.h: Likewise.
44178
44179 2007-11-04  Bruno Haible  <bruno@clisp.org>
44180
44181         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
44182
44183 2007-11-04  Bruno Haible  <bruno@clisp.org>
44184
44185         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
44186         * modules/fprintf-posix (Depends-on): Add nocrash.
44187         * modules/snprintf-posix (Depends-on): Likewise.
44188         * modules/sprintf-posix (Depends-on): Likewise.
44189         * modules/vasnprintf-posix (Depends-on): Likewise.
44190         * modules/vasprintf-posix (Depends-on): Likewise.
44191         * modules/vfprintf-posix (Depends-on): Likewise.
44192         * modules/vsnprintf-posix (Depends-on): Likewise.
44193         * modules/vsprintf-posix (Depends-on): Likewise.
44194         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44195         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44196         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44197         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44198         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44199         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44200         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44201
44202 2007-11-04  Bruno Haible  <bruno@clisp.org>
44203
44204         * modules/nocrash: New file.
44205         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
44206         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
44207
44208 2007-11-04  Bruno Haible  <bruno@clisp.org>
44209
44210         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
44211         precision handling.
44212         * tests/test-vasprintf-posix.c (test_function): Likewise.
44213         * tests/test-snprintf-posix.h (test_function): Likewise.
44214         * tests/test-sprintf-posix.h (test_function): Likewise.
44215
44216         Fix *printf behaviour for large precisions on mingw and BeOS.
44217         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
44218         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
44219         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
44220         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44221         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44222         gl_PRINTF_PRECISION and test its result. Invoke
44223         gl_PREREQ_VASNPRINTF_PRECISION.
44224         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44225         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44226         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44227         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44228         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44229         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44230         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44231         * doc/functions/fprintf.texi: Update.
44232         * doc/functions/printf.texi: Update.
44233         * doc/functions/snprintf.texi: Update.
44234         * doc/functions/sprintf.texi: Update.
44235         * doc/functions/vfprintf.texi: Update.
44236         * doc/functions/vprintf.texi: Update.
44237         * doc/functions/vsnprintf.texi: Update.
44238         * doc/functions/vsprintf.texi: Update.
44239
44240 2007-11-04  Bruno Haible  <bruno@clisp.org>
44241
44242         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
44243
44244 2007-11-04  Bruno Haible  <bruno@clisp.org>
44245
44246         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
44247         Reported by Sylvain Beucler <beuc@gnu.org>.
44248
44249 2007-11-03  Bruno Haible  <bruno@clisp.org>
44250
44251         * tests/test-fprintf-posix2.sh: New file.
44252         * tests/test-fprintf-posix2.c: New file.
44253         * modules/fprintf-posix-tests (Files): Add them.
44254         (TESTS): Add test-fprintf-posix2.sh.
44255         (configure.ac): Check for getrlimit and setrlimit.
44256         (check_PROGRAMS): Add test-fprintf-posix2.
44257
44258         * tests/test-printf-posix2.sh: New file.
44259         * tests/test-printf-posix2.c: New file.
44260         * modules/printf-posix-tests (Files): Add them.
44261         (TESTS): Add test-printf-posix2.sh.
44262         (configure.ac): Check for getrlimit and setrlimit.
44263         (check_PROGRAMS): Add test-printf-posix2.
44264
44265         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
44266         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
44267         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
44268         (decode_double): New function, copied from decode_long_double.
44269         (scale10_round_decimal_decoded): New function, extracted from
44270         scale10_round_decimal_long_double.
44271         (scale10_round_decimal_long_double): Use it.
44272         (scale10_round_decimal_double): New function.
44273         (floorlog10): New function.
44274         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
44275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
44276         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44277         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44278         gl_PRINTF_ENOMEM and test its result. Invoke
44279         gl_PREREQ_VASNPRINTF_ENOMEM.
44280         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44281         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44282         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44283         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44284         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44285         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44286         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44287         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
44288         * modules/snprintf-posix (Depends-on): Likewise.
44289         * modules/sprintf-posix (Depends-on): Likewise.
44290         * modules/vasnprintf-posix (Depends-on): Likewise.
44291         * modules/vasprintf-posix (Depends-on): Likewise.
44292         * modules/vfprintf-posix (Depends-on): Likewise.
44293         * modules/vsnprintf-posix (Depends-on): Likewise.
44294         * modules/vsprintf-posix (Depends-on): Likewise.
44295         * doc/functions/fprintf.texi: Update.
44296         * doc/functions/printf.texi: Update.
44297         * doc/functions/snprintf.texi: Update.
44298         * doc/functions/sprintf.texi: Update.
44299         * doc/functions/vfprintf.texi: Update.
44300         * doc/functions/vprintf.texi: Update.
44301         * doc/functions/vsnprintf.texi: Update.
44302         * doc/functions/vsprintf.texi: Update.
44303
44304 2007-11-03  Bruno Haible  <bruno@clisp.org>
44305
44306         * modules/frexp-nolibm-tests: New file.
44307
44308         * modules/frexp-nolibm: New file.
44309         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
44310
44311 2007-11-03  Bruno Haible  <bruno@clisp.org>
44312
44313         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
44314         value is C99 compliant.
44315         Needed for OSF/1 5.1.
44316
44317 2007-11-03  Bruno Haible  <bruno@clisp.org>
44318
44319         Fix out-of-memory handling of vasnprintf.
44320         * lib/printf-parse.c: Include <errno.h>.
44321         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
44322         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
44323         is already set.
44324
44325 2007-11-02  Eric Blake  <ebb9@byu.net>
44326
44327         Fix tests on cygwin.
44328         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
44329
44330 2007-11-01  Bruno Haible  <bruno@clisp.org>
44331
44332         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
44333         warning.
44334         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
44335         needed for POSIX compatibility.
44336
44337 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44338
44339         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
44340         for compatibility with GNU.
44341
44342 2007-11-01  Bruno Haible  <bruno@clisp.org>
44343
44344         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
44345         (putenv): Renamed from rpl_putenv. Change argument type from
44346         'const char *' to 'char *'.
44347         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
44348         of defining putenv in config.h, just set REPLACE_PUTENV.
44349         * modules/putenv (Depends-on): Add stdlib.
44350         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44351         (Include): Use <stdlib.h>.
44352         * lib/stdlib.in.h (putenv): New declaration.
44353         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
44354         REPLACE_PUTENV.
44355         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
44356         REPLACE_PUTENV.
44357         Needed for MacOS X 10.5.0.
44358         Reported by Peter O'Gorman <peter@pogma.com>.
44359
44360 2007-11-01  Jim Meyering  <meyering@redhat.com>
44361
44362         Treat an empty date string exactly like "0".
44363         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
44364         if the remaining date string (to be parsed) is empty, use "0".
44365         Reported by Mischa Molhoek and discussed in this thread:
44366         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
44367
44368 2007-10-31  Bruno Haible  <bruno@clisp.org>
44369
44370         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
44371         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
44372         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
44373         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
44374         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
44375         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
44376
44377 2007-10-31  Bruno Haible  <bruno@clisp.org>
44378
44379         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
44380         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
44381         (AC_TYPE_LONG_LONG_INT): Use it.
44382         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
44383         it as well.
44384         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
44385         to m4/longlong.m4.
44386         * modules/stdint (Files): Remove m4/ulonglong.m4.
44387         * modules/strtoull (Files): Use m4/longlong.m4 instead of
44388         m4/ulonglong.m4.
44389         * modules/strtoumax (Files): Likewise.
44390
44391 2007-10-30  Bruno Haible  <bruno@clisp.org>
44392
44393         * modules/xvasprintf-posix: New file.
44394         Suggested by Eric Blake.
44395
44396 2007-10-30  Bruno Haible  <bruno@clisp.org>
44397
44398         * modules/xprintf-posix-tests: New file.
44399         * tests/test-xprintf-posix.sh: New file.
44400         * tests/test-xprintf-posix.c: New file.
44401         * tests/test-xfprintf-posix.c: New file.
44402
44403         * modules/xprintf-posix: New file.
44404
44405 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44406
44407         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
44408         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
44409         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
44410
44411 2007-10-29  Bruno Haible  <bruno@clisp.org>
44412
44413         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
44414         contain the special marker '_cv_'.
44415         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44416         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44417         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44418         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
44419         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44420         Reported by Ralf Wildenhues.
44421
44422 2007-10-29  Bruno Haible  <bruno@clisp.org>
44423
44424         * gnulib-tool (func_import): When --lgpl is not specified, set
44425         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
44426         GPLv3.
44427         Reported by Simon Josefsson.
44428
44429 2007-10-28  Bruno Haible  <bruno@clisp.org>
44430
44431         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
44432         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
44433         HAVE_DECL_ISFINITE.
44434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44435         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
44436         HAVE_DECL_ISFINITE.
44437
44438 2007-10-28  Bruno Haible  <bruno@clisp.org>
44439
44440         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
44441         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
44442
44443 2007-10-28  Bruno Haible  <bruno@clisp.org>
44444
44445         Fix link errors with Sun C 5.0 on Solaris 10.
44446         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
44447         function is declared but not present in the compiler's libm.
44448         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44449         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44450         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
44451         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
44452         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
44453         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
44454         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
44455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44456         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
44457         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
44458         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
44459         HAVE_DECL_FLOORL.
44460
44461 2007-10-28  Bruno Haible  <bruno@clisp.org>
44462
44463         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
44464         gl_FUNC_FLOORL. Cache the result.
44465         (gl_FUNC_FLOORL): Use it.
44466         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
44467         gl_FUNC_CEILL. Cache the result.
44468         (gl_FUNC_CEILL): Use it.
44469
44470         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
44471         gl_FUNC_FLOOR. Cache the result.
44472         (gl_FUNC_FLOOR): Use it.
44473         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
44474         gl_FUNC_CEIL. Cache the result.
44475         (gl_FUNC_CEIL): Use it.
44476
44477         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
44478         gl_FUNC_FLOORF. Cache the result.
44479         (gl_FUNC_FLOORF): Use it.
44480         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
44481         gl_FUNC_CEILF. Cache the result.
44482         (gl_FUNC_CEILF): Use it.
44483
44484 2007-10-28  Bruno Haible  <bruno@clisp.org>
44485
44486         * gnulib-tool: Allow specifying the LGPL version number through
44487         --lgpl=2 or --lgpl=3.
44488         (func_usage): Document --lgpl with argument.
44489         Handle --lgpl=... arguments.
44490         (func_import): Recognize also gl_LGPL calls with an argument. When
44491         --lgpl=2 is used and the module's license is just LGPL, report an
44492         error. Set sed_transform_lib_file according to the lgpl variable. In
44493         the generated files, use --lgpl or gl_LGPL invocations with argument,
44494         if necessary.
44495         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
44496         an LGPv2+ license.
44497         * doc/gnulib-tool.texi (Modified imports): Update explanation of
44498         gl_LGPL macro.
44499
44500 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44501             Bruno Haible  <bruno@clisp.org>
44502
44503         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
44504         (u16_uctomb_aux): Likewise.
44505         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
44506         !HAVE_INLINE.
44507         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
44508
44509 2007-10-28  Bruno Haible  <bruno@clisp.org>
44510
44511         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
44512         Invoke AM_GETTEXT_OPTION if it exists.
44513         * modules/vasprintf: Likewise.
44514         * modules/verror: Likewise.
44515         * modules/xprintf: Likewise.
44516         * modules/xvasprintf: Likewise.
44517
44518 2007-10-27  Ben Pfaff  <blp@gnu.org>
44519
44520         * lib/math.in.h: Define isfinite macro and prototypes for
44521         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
44522         implementations.
44523         * m4/math_h.m4: New substitutions for isfinite module.
44524         * lib/isfinite.c: New file.
44525         * m4/isfinite.m4: New file.
44526         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
44527         * modules/isfinite: New file.
44528         * modules/isfinite-tests: New file.
44529         * tests/tests-isfinite.c: New file.
44530         * doc/functions/isfinite.texi: Mention isfinite module.
44531         * MODULES.html.sh: Mention new module.
44532
44533 2007-10-27  Ben Pfaff  <blp@gnu.org>
44534
44535         Ralf Wildenhues reported that Tru64 4.0D declares the round
44536         functions but does not have definitions.
44537         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
44538         cannot be found in any library, set the output variable to
44539         "missing" instead of "".
44540         * m4/round.m4: Also use our substitute if we cannot find round in
44541         any library, even if it is declared.
44542         * m4/roundf.m4: Likewise for roundf.
44543         * m4/roundl.m4: Likewise for roundl.
44544         * lib/math.in.h: Undefine roundf, round, roundl before defining
44545         their replacements, to allow for hypothetical systems where these
44546         may be defined as macros but not available in libraries.
44547
44548 2007-10-27  Bruno Haible  <bruno@clisp.org>
44549
44550         * doc/gnulib.texi: Invoke @firstparagraphindent.
44551         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
44552         changes in gnulib.
44553         (Source changes): New section.
44554
44555 2007-10-26  Bruno Haible  <bruno@clisp.org>
44556
44557         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
44558         borrowed from autoconf.
44559
44560 2007-10-26  Bruno Haible  <bruno@clisp.org>
44561
44562         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
44563         strerror returned the empty string. Needed on HP-UX 11.00.
44564
44565 2007-10-24  Micah Cowan  <micah@cowan.name>
44566
44567         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
44568         * build-aux/bootstrap: Remove support for now-unnecessary option,
44569         --cvs-user, and envvars CVS_USER, CVS_RSH.
44570
44571 2007-10-24  Jim Meyering  <meyering@redhat.com>
44572
44573         Avoid diagnostics from sha1sum when there is no cached checksum.
44574         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
44575         if the po.s1 file hasn't been created yet.
44576
44577         * build-aux/bootstrap: Sync from coreutils:
44578         2007-10-24  Jim Meyering  <meyering@redhat.com>
44579         Get gnulib from the git repository, not from an obsolete cvs one.
44580         * build-aux/bootstrap: Suggestion from Micah Cowan.
44581         2007-10-04  Jim Meyering  <jim@meyering.net>
44582         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
44583         (update_po_files): Work also when there are no .po files in po/.
44584
44585 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44586
44587         * README: Append ".git" to git and cg examples.
44588         Problem reported by Benoit Sigoure.
44589
44590 2007-10-23  Micah Cowan  <micah@cowan.name>
44591
44592         * users.txt: Add wget.
44593
44594 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44595
44596         Fix linking of some unistdio tests on FreeBSD.
44597         * modules/unistdio/u16-vsnprintf-tests
44598         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
44599         * modules/unistdio/u16-vsprintf-tests
44600         (test_u16_vsnprintf1_LDADD): Likewise.
44601         * modules/unistdio/u32-vsnprintf-tests
44602         (test_u32_vsnprintf1_LDADD): Likewise.
44603         * modules/unistdio/u32-vsprintf-tests
44604         (test_u32_vsprintf1_LDADD): Likewise.
44605         * modules/unistdio/u8-vsnprintf-tests
44606         (test_u8_vsnprintf1_LDADD): Likewise.
44607         * modules/unistdio/u8-vsprintf-tests
44608         (test_u8_vsprintf1_LDADD): Likewise.
44609         * modules/unistdio/ulc-vsnprintf-tests
44610         (test_ulc_vsnprintf1_LDADD): Likewise.
44611         * modules/unistdio/ulc-vsprintf-tests
44612         (test_ulc_vsprintf1_LDADD): Likewise.
44613
44614         Fix linking of some uniconv tests on FreeBSD.
44615         * modules/uniconv/u16-conv-from-enc-tests
44616         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
44617         * modules/uniconv/u16-conv-to-enc-tests
44618         (test_u16_conv_to_enc_LDADD): Likewise.
44619         * modules/uniconv/u16-strconv-from-enc-tests
44620         (test_u16_strconv_from_enc_LDADD): Likewise.
44621         * modules/uniconv/u16-strconv-to-enc-tests
44622         (test_u16_strconv_to_enc_LDADD): Likewise.
44623         * modules/uniconv/u32-conv-from-enc-tests
44624         (test_u32_conv_from_enc_LDADD): Likewise.
44625         * modules/uniconv/u32-conv-to-enc-tests
44626         (test_u32_conv_to_enc_LDADD): Likewise.
44627         * modules/uniconv/u32-strconv-from-enc-tests
44628         (test_u32_strconv_from_enc_LDADD): Likewise.
44629         * modules/uniconv/u32-strconv-to-enc-tests
44630         (test_u32_strconv_to_enc_LDADD): Likewise.
44631         * modules/uniconv/u8-conv-from-enc-tests
44632         (test_u8_conv_from_enc_LDADD): Likewise.
44633         * modules/uniconv/u8-conv-to-enc-tests
44634         (test_u8_conv_to_enc_LDADD): Likewise.
44635         * modules/uniconv/u8-strconv-from-enc-tests
44636         (test_u8_strconv_from_enc_LDADD): Likewise.
44637         * modules/uniconv/u8-strconv-to-enc-tests
44638         (test_u8_strconv_to_enc_LDADD): Likewise.
44639
44640 2007-10-22  Bruno Haible  <bruno@clisp.org>
44641
44642         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
44643         size.
44644
44645 2007-10-22  Eric Blake  <ebb9@byu.net>
44646
44647         Tweak x*printf documentation.
44648         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
44649         variable name and comments.
44650         Suggested by Bruno Haible.
44651
44652 2007-10-22  Bruno Haible  <bruno@clisp.org>
44653
44654         * lib/acl.c (copy_acl): Fix file name in comment.
44655
44656 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44657
44658         Fix Tru64 problem with stdbool.h.
44659         * lib/stdbool.in.h (false, true):
44660         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
44661         Don't declare as an enum in this situation; it runs afoul of Tru64.
44662         Problem reported by Steven M. Schweda in
44663         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
44664
44665 2007-10-22  Eric Blake  <ebb9@byu.net>
44666
44667         Also wrap vf?printf.
44668         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
44669         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
44670         (xvprintf, xvfprintf): New functions.
44671
44672 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44673
44674         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
44675         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
44676
44677         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
44678         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
44679
44680 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44681
44682         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
44683         by Bruno Haible.
44684
44685 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44686
44687         * lib/getloadavg.c
44688         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
44689         Undef `sys' after including sys/table.h, for Tru64 4.0D.
44690
44691         * tests/test-i-ring.c: Work for C89.
44692
44693 2007-10-22  Bruno Haible  <bruno@clisp.org>
44694
44695         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
44696         -1u, in preprocessor expression, so that we don't test for the bug
44697         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
44698         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
44699
44700 2007-10-22  Eric Blake  <ebb9@byu.net>
44701
44702         * tests/test-yesno.sh: Silence stderr during test.
44703
44704 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44705
44706         * modules/crypto/gc-camellia: New file.
44707
44708         * m4/gc-camellia.m4: New file.
44709
44710         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
44711
44712         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
44713
44714 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44715
44716         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
44717         --help to stdout.  Reported by sms@antinode.org (Steven
44718         M. Schweda).
44719
44720 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44721
44722         * users.txt: Fix link to libksba.
44723
44724 2007-10-21  Ben Pfaff  <blp@gnu.org>
44725
44726         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
44727         round.c roundf implementation that depends on floorf and ceilf to
44728         be tested unconditionally.
44729
44730 2007-10-21  Ben Pfaff  <blp@gnu.org>
44731
44732         * m4/check-libm-func.m4: Removed.
44733         * m4/check-math-lib.m4: New file.
44734         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
44735         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
44736         definition and lack of AC_LIBOBJ([roundf]).
44737         * m4/roundl.m4: Ditto, and similarly for roundl.
44738         * modules/round: Reference new m4 file.
44739         * modules/roundf: Ditto.
44740         * modules/roundl: Ditto.
44741         * tests/test-round2.c (main): Use ROUND instead of round.
44742         Bug report from Bruno Haible.
44743
44744 2007-10-21  Bruno Haible  <bruno@clisp.org>
44745
44746         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
44747         context.
44748
44749 2007-10-21  Bruno Haible  <bruno@clisp.org>
44750
44751         * tests/test-wcwidth.c (main): Allow negative result for some control
44752         characters.
44753
44754         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
44755         Needed on OSF/1 5.1.
44756
44757 2007-10-21  Bruno Haible  <bruno@clisp.org>
44758
44759         * tests/test-floorf1.c: Include isnanf.h.
44760         (main): Use isnanf() instead of isnan().
44761         * tests/test-ceilf1.c: Include isnanf.h.
44762         (main): Use isnanf() instead of isnan().
44763         * tests/test-truncf1.c: Include isnanf.h.
44764         (main): Use isnanf() instead of isnan().
44765         * tests/test-roundf1.c: Include isnanf.h.
44766         (main): Use isnanf() instead of isnan().
44767
44768 2007-10-21  Eric Blake  <ebb9@byu.net>
44769
44770         * users.txt: Update URL for m4.
44771
44772 2007-10-21  Bruno Haible  <bruno@clisp.org>
44773
44774         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
44775
44776 2007-10-21  Bruno Haible  <bruno@clisp.org>
44777
44778         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
44779         Git's management files if the CVS files are not present.
44780
44781 2007-10-20  Bruno Haible  <bruno@clisp.org>
44782
44783         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
44784         gcc-3.4.x.
44785
44786 2007-10-20  Ben Pfaff  <blp@gnu.org>
44787
44788         * lib/math.in.h: Declare round, roundf, roundl if we are providing
44789         implementations.
44790         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
44791         * lib/round.c: New file.
44792         * lib/roundf.c: New file.
44793         * lib/roundl.c: New file.
44794         * m4/round.m4: New file.
44795         * m4/roundf.m4: New file.
44796         * m4/roundl.m4: New file.
44797         * m4/check-libm-func-m4: New file.
44798         * modules/math: Replace round, roundf, roundl related @VARS@ in
44799         math.in.h.
44800         * modules/round: New file.
44801         * modules/round-tests: New file.
44802         * modules/roundf: New file.
44803         * modules/roundf-tests: New file.
44804         * modules/roundl: New file.
44805         * modules/roundl-tests: New file.
44806         * tests/test-round1.c: New file.
44807         * tests/test-round2.c: New file.
44808         * tests/test-roundf1.c: New file.
44809         * tests/test-roundf2.c: New file.
44810         * tests/test-roundl.c: New file.
44811         * doc/functions/round.texi: Mention round module.
44812         * doc/functions/roundf.texi: Mention roundf module.
44813         * doc/functions/roundl.texi: Mention roundl module.
44814         * MODULES.html.sh: Mention new modules.
44815         Thanks to Bruno Haible for suggestions.
44816
44817 2007-10-20  Jim Meyering  <meyering@redhat.com>
44818
44819         * lib/xprintf.c: Include <config.h> unconditionally.
44820
44821         Change xprintf's license to GPL.
44822         * modules/xprintf (License): s/LGPL/GPL/, since this module
44823         depends on modules (exit and exitfail) which are GPL.
44824         Suggestion from Bruno Haible.
44825
44826         xprintf fixes.
44827         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
44828         Use a clearer diagnostic.
44829         Patch from Bruno Haible.
44830
44831 2007-10-20  Bruno Haible  <bruno@clisp.org>
44832
44833         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
44834         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
44835         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44836
44837 2007-10-20  Bruno Haible  <bruno@clisp.org>
44838
44839         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
44840         precision in the comparison result > x - 1 or similar.
44841         * tests/test-ceilf2.c (correct_result_p): Likewise.
44842         * tests/test-truncf2.c (correct_result_p): Likewise.
44843         * tests/test-trunc2.c (correct_result_p): Likewise.
44844         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44845
44846 2007-10-20  Bruno Haible  <bruno@clisp.org>
44847
44848         * modules/ceil: New file.
44849         * m4/ceil.m4: New file.
44850         * doc/functions/ceil.texi: Mention the 'ceil' module.
44851
44852 2007-10-20  Bruno Haible  <bruno@clisp.org>
44853
44854         * modules/floor: New file.
44855         * m4/floor.m4: New file.
44856         * doc/functions/floor.texi: Mention the 'floor' module.
44857
44858 2007-10-20  Bruno Haible  <bruno@clisp.org>
44859
44860         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
44861         of %a.
44862         * modules/floorf-tests (Depends-on): Likewise.
44863         * modules/truncf-tests (Depends-on): Likewise.
44864         * modules/trunc-tests (Depends-on): Likewise.
44865         Reported by Ben Pfaff.
44866
44867 2007-10-19  Jim Meyering  <meyering@redhat.com>
44868
44869         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
44870         Don't bother testing specific errno values.  Just test ferror.
44871
44872         New module: xprintf
44873         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
44874
44875 2007-10-19  Bruno Haible  <bruno@clisp.org>
44876
44877         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
44878         syntax.
44879         * modules/javaexec (Makefile.am): Likewise.
44880         * modules/relocatable-prog (Makefile.am): Likewise.
44881         Suggested by Jim Meyering.
44882
44883 2007-10-18  Bruno Haible  <bruno@clisp.org>
44884
44885         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
44886         Reported by Jim Meyering.
44887
44888 2007-10-18  Eric Blake  <ebb9@byu.net>
44889
44890         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
44891
44892 2007-10-18  Bruno Haible  <bruno@clisp.org>
44893
44894         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
44895         the format string into writable memory. Needed in Fortify conditions.
44896
44897 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
44898             Bruno Haible  <bruno@clisp.org>
44899
44900         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
44901         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
44902         * modules/trim (Depends-on): Add mbchar.
44903         (configure.ac): Add gl_FUNC_MBRTOWC.
44904         (Makefile.am): Augment lib_SOURCES.
44905
44906 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44907
44908         Modify glob.c to use fstatat and dirfd, to simplify it.
44909         Suggested by Eric Blake.
44910         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
44911         Don't include <stdbool.h>; not used.
44912         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
44913         (link_exists_p): Simplify implementation, since we can now assume
44914         dirfd and fstatat.
44915         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
44916
44917 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44918
44919         * gnulib-tool (func_get_dependencies): Fix sed script to
44920         match only tests.
44921
44922 2007-10-17  Bruno Haible  <bruno@clisp.org>
44923
44924         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
44925         allow locale names without encoding suffix.
44926         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44927         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44928
44929 2007-10-16  Bruno Haible  <bruno@clisp.org>
44930
44931         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
44932         * lib/getgroups.c (getgroups): Likewise.
44933         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
44934
44935 2007-10-16  Bruno Haible  <bruno@clisp.org>
44936
44937         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
44938         * modules/malloc-posix (License): Likewise.
44939         * modules/realloc-posix (License): Likewise.
44940         * modules/calloc-posix (License): Likewise.
44941         * modules/intprops (License): Change from GPL to LGPL, with
44942         Paul Eggert's approval.
44943
44944 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44945
44946         Merge glibc changes into lib/glob.c.
44947
44948         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
44949         2007-10-15 04:59:03 UTC.  Here are the changes:
44950
44951         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
44952
44953         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
44954
44955         * lib/glob.c: Add some branch prediction throughout.
44956
44957         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
44958
44959         [BZ #5103]
44960         * lib/glob.c (glob): Recognize patterns starting \/.
44961
44962         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
44963
44964         [BZ #3996]
44965         * lib/glob.c (attribute_hidden): Define if not defined.
44966         (glob): Unescape dirname, filename or username when needed and not
44967         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
44968         is NULL.  Handle unescaped [ in pattern without closing ].
44969         Don't pass GLOB_CHECK down to recursive glob for directories.
44970         (__glob_pattern_type): New function.
44971         (__glob_pattern_p): Implement using __glob_pattern_type.
44972         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
44973         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
44974         Remove unreachable code.
44975
44976         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
44977
44978         * lib/glob.c (glob_in_dir): Add some comments and asserts to
44979         explain why there are no leaks.
44980
44981         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
44982
44983         [BZ #3253]
44984         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
44985         time, rather allocate increasingly bigger arrays of pointers, if
44986         possible with alloca, if too large with malloc.
44987
44988 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44989
44990         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
44991         Problem reported by H.Merijn Brand in
44992         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
44993         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
44994         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44995
44996 2007-10-15  Bruno Haible  <bruno@clisp.org>
44997
44998         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
44999         with explicit rpl_ prefix.
45000         * lib/fopen.c (fopen): Likewise.
45001         * lib/freopen.c (freopen): Likewise.
45002         * lib/iconv.c (iconv): Likewise.
45003         * lib/iconv_close.c (iconv_close): Likewise.
45004
45005 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45006
45007         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
45008
45009 2007-10-15  Bruno Haible  <bruno@clisp.org>
45010
45011         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
45012         <stddef.h> instead of <stdlib.h> since we only need NULL.
45013         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45014
45015 2007-10-15  Bruno Haible  <bruno@clisp.org>
45016
45017         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
45018         Replace paragraph talking about LIBOBJS.
45019         Reported by Colin Watson <cjwatson@debian.org>.
45020
45021 2007-10-15  Bruno Haible  <bruno@clisp.org>
45022
45023         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
45024         <stdlib.h> before using NULL.
45025
45026 2007-10-15  Simon Josefsson  <simon@josefsson.org>
45027
45028         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
45029         Reported by Albert Chin <china@thewrittenword.com>.
45030
45031 2007-10-14  Bruno Haible  <bruno@clisp.org>
45032
45033         * modules/iconv_open-utf-tests: New file.
45034         * tests/test-iconv-utf.c: New file.
45035
45036         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
45037         * modules/iconv_open-utf: New file.
45038         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
45039         (iconv, iconv_close): New declarations.
45040         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
45041         be defined.
45042         (iconv_open): Add special handling of conversion between UTF-8 and
45043         UTF-{16,32}{BE,LE}.
45044         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
45045         * lib/iconv_close.c: New file.
45046         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
45047         gl_FUNC_ICONV_OPEN.
45048         (gl_FUNC_ICONV_OPEN): Use it.
45049         (gl_FUNC_ICONV_OPEN_UTF): New macro.
45050         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
45051         and REPLACE_ICONV_UTF.
45052         * modules/iconv_open (Depends-on): Add c-strcase.
45053         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
45054         ICONV_CONST.
45055         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
45056
45057 2007-10-13  Albert Chin  <china@thewrittenword.com>
45058             Bruno Haible  <bruno@clisp.org>
45059
45060         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
45061         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
45062
45063 2007-10-13  Bruno Haible  <bruno@clisp.org>
45064
45065         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
45066         defined, use the ISO C99 inline semantics.
45067         * lib/argp.h (ARGP_EI): Likewise.
45068
45069 2007-10-13  Bruno Haible  <bruno@clisp.org>
45070
45071         Handle 'inline' change in gcc 4.3.0.
45072         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
45073         argp_fmtstream_write, argp_fmtstream_set_lmargin,
45074         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
45075         argp_fmtstream_point): Disable 'extern' declaration if the function
45076         definition is going to be provided inline.
45077         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
45078         semantics, not the ISO C99 inline semantics.
45079         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
45080         'extern' declaration if the function definition is going to be provided
45081         inline.
45082         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
45083         the GNU C inline semantics, not the ISO C99 inline semantics. With
45084         GCC 4.2, avoid a warning.
45085
45086 2007-10-13  Bruno Haible  <bruno@clisp.org>
45087
45088         * lib/freading.h (freading): Enable the use of __freading for
45089         glibc >= 2.7.
45090         * lib/freading.c (freading): Likewise.
45091
45092 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45093
45094         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
45095         "warning: C99 inline functions are not supported; using GNU89".
45096
45097 2007-10-12  Bruno Haible  <bruno@clisp.org>
45098
45099         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
45100         of 2.
45101         * tests/test-ceilf2.c: New file.
45102         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
45103
45104         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
45105         * modules/ceilf-tests: Update.
45106
45107 2007-10-12  Bruno Haible  <bruno@clisp.org>
45108
45109         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
45110         of 2.
45111         * tests/test-floorf2.c: New file.
45112         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
45113
45114         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
45115         * modules/floorf-tests: Update.
45116
45117 2007-10-12  Bruno Haible  <bruno@clisp.org>
45118
45119         * tests/test-trunc2.c: New file.
45120         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
45121
45122         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
45123         * modules/trunc-tests: Update.
45124
45125 2007-10-12  Bruno Haible  <bruno@clisp.org>
45126
45127         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
45128         of 2.
45129         * tests/test-truncf2.c: New file.
45130         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
45131
45132         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
45133         * modules/truncf-tests: Update.
45134
45135 2007-10-11  Eric Blake  <ebb9@byu.net>
45136
45137         Don't claim strerror is broken on Interix.
45138         * doc/functions/strerror.texi (strerror): Known broken systems are
45139         now Solaris 8, and not Interix.
45140         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
45141         Interix on cross-compile.
45142         Reported by Martin Koeppe in
45143         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
45144
45145 2007-10-11  Bruno Haible  <bruno@clisp.org>
45146
45147         * modules/i-ring-tests: New file.
45148         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
45149         instead of assert.
45150
45151 2007-10-11  Bruno Haible  <bruno@clisp.org>
45152
45153         * modules/filenamecat-tests: New file.
45154         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
45155         * lib/filenamecat.c: Remove test code.
45156
45157 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45158
45159         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
45160
45161         * lib/strerror.c: Include <string.h> always, to test interface,
45162         and to remove the need for the dummy.
45163         Include intprops.h to compute width instead of doing it ourselves
45164         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
45165         (strerror): Define it to return NULL if there's no system strerror.
45166         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
45167         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
45168         ancient pre-strerror Unix systems well any more.  Saying "unknown
45169         system error" is enough.
45170         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
45171         simpler strerror.c implementation.
45172         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
45173         Simplify the tests to reflect the simpler strerror implementation.
45174         * modules/strerror (Depends-on): Add intprops.
45175
45176 2007-10-09  Eric Blake  <ebb9@byu.net>
45177
45178         Silence test-fpending.
45179         * modules/fpending-tests (Files): Add wrapper script.
45180         * tests/test-fpending.sh: New file.
45181
45182 2007-10-09  Bruno Haible  <bruno@clisp.org>
45183
45184         * MODULES.html.sh (func_module): Don't create a hyperlink for
45185         function names like 'printf_frexp'.
45186         (Misc): Add crc, memxor.
45187         (Characteristics of floating types): New section.
45188         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
45189         isnanf-nolibm, signbit, trunc, truncf, truncl.
45190         (Enhancements for ISO C 99 functions): New subsection Input/output.
45191         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
45192         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
45193         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
45194         (Compatibility checks for POSIX:2001 functions): Add clock-time.
45195         (Enhancements for POSIX:2001 functions): Add chdir-long.
45196         (File system functions): Add areadlink, chdir-safer, read-file.
45197         Remove cycle-check.
45198         (File system as inode set): New section.
45199         (Date and time): Add gethrxtime.
45200         (Multithreading): Add openmp.
45201         (Internationalization functions): Add localename.
45202         (Unicode string functions): Add unistr/u*-mbsnlen.
45203         (Support for maintaining and releasing projects): Add git-version-gen.
45204         (Lone files): Remove directories.
45205
45206 2007-10-08  Ben Pfaff  <blp@gnu.org>
45207
45208         * lib/xmalloca.h: Fix typo in comment.
45209
45210 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45211
45212         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
45213         when avoiding problems with integer overflow.  Use a portable test
45214         instead.
45215
45216 2007-10-08  Simon Josefsson  <simon@josefsson.org>
45217
45218         * modules/dummy (License): Change to LGPLv2+.
45219         * modules/float (License): Likewise
45220         * modules/realloc (License): Likewise
45221         * modules/stdlib (License): Likewise
45222
45223 2007-10-07  Bruno Haible  <bruno@clisp.org>
45224
45225         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
45226         * floor.c (TWO_MANT_DIG): Likewise.
45227         * ceil.c (TWO_MANT_DIG): Likewise.
45228         Reported by Ben Pfaff.
45229
45230 2007-10-07  Bruno Haible  <bruno@clisp.org>
45231
45232         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
45233         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
45234         * lib/frexp.c (FUNC): Likewise.
45235         * lib/printf-frexp.h (printf_frexp): Likewise.
45236         * lib/printf-frexpl.h (printf_frexpl): Likewise.
45237         * lib/printf-frexp.c (FUNC): Likewise.
45238         Suggested by Jim Meyering.
45239
45240 2007-10-07  Jim Meyering  <meyering@redhat.com>
45241
45242         Make xnanosleep's integer overflow test more robust.
45243         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
45244         so that gcc-4.3.0 doesn't optimize away this test for overflow.
45245
45246 2007-10-07  Bruno Haible  <bruno@clisp.org>
45247
45248         * NEWS: Mention the license change.
45249
45250         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
45251         abbreviations in the modules files.
45252
45253         Change copyright notice from GPLv2+ to GPLv3+.
45254         * README: Change copyright notice.
45255         * MODULES.html.sh: Likewise.
45256         * build-aux/bootstrap.conf: Likewise.
45257         * build-aux/config.libpath: Likewise.
45258         * build-aux/csharpcomp.sh.in: Likewise.
45259         * build-aux/csharpexec.sh.in: Likewise.
45260         * build-aux/install-reloc: Likewise.
45261         * build-aux/javacomp.sh.in: Likewise.
45262         * build-aux/javaexec.sh.in: Likewise.
45263         * build-aux/ldd.sh.in: Likewise.
45264         * build-aux/reloc-ldflags: Likewise.
45265         * build-aux/relocatable.sh.in: Likewise.
45266         * build-aux/x-to-1.in: Likewise.
45267         * check-module: Likewise.
45268         * config/srclistvars.sh: Likewise.
45269         * gnulib-tool: Likewise.
45270         * lib/acl-internal.h: Likewise.
45271         * lib/acl.c: Likewise.
45272         * lib/acl.h: Likewise.
45273         * lib/acl_entries.c: Likewise.
45274         * lib/areadlink-with-size.c: Likewise.
45275         * lib/areadlink.c: Likewise.
45276         * lib/areadlink.h: Likewise.
45277         * lib/argmatch.c: Likewise.
45278         * lib/argmatch.h: Likewise.
45279         * lib/argp-ba.c: Likewise.
45280         * lib/argp-eexst.c: Likewise.
45281         * lib/argp-fmtstream.c: Likewise.
45282         * lib/argp-fmtstream.h: Likewise.
45283         * lib/argp-fs-xinl.c: Likewise.
45284         * lib/argp-help.c: Likewise.
45285         * lib/argp-namefrob.h: Likewise.
45286         * lib/argp-parse.c: Likewise.
45287         * lib/argp-pin.c: Likewise.
45288         * lib/argp-pv.c: Likewise.
45289         * lib/argp-pvh.c: Likewise.
45290         * lib/argp-xinl.c: Likewise.
45291         * lib/argp.h: Likewise.
45292         * lib/at-func.c: Likewise.
45293         * lib/atanl.c: Likewise.
45294         * lib/backupfile.c: Likewise.
45295         * lib/backupfile.h: Likewise.
45296         * lib/basename.c: Likewise.
45297         * lib/binary-io.h: Likewise.
45298         * lib/byteswap.in.h: Likewise.
45299         * lib/c-stack.c: Likewise.
45300         * lib/c-stack.h: Likewise.
45301         * lib/c-strcasestr.c: Likewise.
45302         * lib/c-strcasestr.h: Likewise.
45303         * lib/c-strstr.c: Likewise.
45304         * lib/c-strstr.h: Likewise.
45305         * lib/c-strtod.c: Likewise.
45306         * lib/calloc.c: Likewise.
45307         * lib/canon-host.c: Likewise.
45308         * lib/canon-host.h: Likewise.
45309         * lib/canonicalize-lgpl.c: Likewise.
45310         * lib/canonicalize.c: Likewise.
45311         * lib/canonicalize.h: Likewise.
45312         * lib/ceil.c: Likewise.
45313         * lib/ceilf.c: Likewise.
45314         * lib/ceill.c: Likewise.
45315         * lib/chdir-long.c: Likewise.
45316         * lib/chdir-long.h: Likewise.
45317         * lib/chdir-safer.c: Likewise.
45318         * lib/chdir-safer.h: Likewise.
45319         * lib/chown.c: Likewise.
45320         * lib/classpath.c: Likewise.
45321         * lib/classpath.h: Likewise.
45322         * lib/clean-temp.c: Likewise.
45323         * lib/clean-temp.h: Likewise.
45324         * lib/cloexec.c: Likewise.
45325         * lib/close-stream.c: Likewise.
45326         * lib/closein.c: Likewise.
45327         * lib/closein.h: Likewise.
45328         * lib/closeout.c: Likewise.
45329         * lib/closeout.h: Likewise.
45330         * lib/concat-filename.c: Likewise.
45331         * lib/copy-file.c: Likewise.
45332         * lib/copy-file.h: Likewise.
45333         * lib/count-one-bits.h: Likewise.
45334         * lib/crc.c: Likewise.
45335         * lib/crc.h: Likewise.
45336         * lib/creat-safer.c: Likewise.
45337         * lib/csharpcomp.c: Likewise.
45338         * lib/csharpcomp.h: Likewise.
45339         * lib/csharpexec.c: Likewise.
45340         * lib/csharpexec.h: Likewise.
45341         * lib/cycle-check.c: Likewise.
45342         * lib/cycle-check.h: Likewise.
45343         * lib/diacrit.c: Likewise.
45344         * lib/diacrit.h: Likewise.
45345         * lib/diffseq.h: Likewise.
45346         * lib/dirchownmod.c: Likewise.
45347         * lib/dirent.in.h: Likewise.
45348         * lib/dirfd.c: Likewise.
45349         * lib/dirfd.h: Likewise.
45350         * lib/dirname.c: Likewise.
45351         * lib/dirname.h: Likewise.
45352         * lib/dummy.c: Likewise.
45353         * lib/dup-safer.c: Likewise.
45354         * lib/dup2.c: Likewise.
45355         * lib/eealloc.h: Likewise.
45356         * lib/error.c: Likewise.
45357         * lib/error.h: Likewise.
45358         * lib/euidaccess.c: Likewise.
45359         * lib/exclude.c: Likewise.
45360         * lib/exclude.h: Likewise.
45361         * lib/execute.c: Likewise.
45362         * lib/execute.h: Likewise.
45363         * lib/exitfail.c: Likewise.
45364         * lib/exitfail.h: Likewise.
45365         * lib/expl.c: Likewise.
45366         * lib/fatal-signal.c: Likewise.
45367         * lib/fatal-signal.h: Likewise.
45368         * lib/fbufmode.c: Likewise.
45369         * lib/fbufmode.h: Likewise.
45370         * lib/fchdir.c: Likewise.
45371         * lib/fchmodat.c: Likewise.
45372         * lib/fchownat.c: Likewise.
45373         * lib/fcntl--.h: Likewise.
45374         * lib/fcntl-safer.h: Likewise.
45375         * lib/fcntl.in.h: Likewise.
45376         * lib/fd-safer.c: Likewise.
45377         * lib/fflush.c: Likewise.
45378         * lib/file-has-acl.c: Likewise.
45379         * lib/file-set.c: Likewise.
45380         * lib/file-type.c: Likewise.
45381         * lib/file-type.h: Likewise.
45382         * lib/fileblocks.c: Likewise.
45383         * lib/filemode.c: Likewise.
45384         * lib/filemode.h: Likewise.
45385         * lib/filename.h: Likewise.
45386         * lib/filenamecat.c: Likewise.
45387         * lib/filenamecat.h: Likewise.
45388         * lib/findprog.c: Likewise.
45389         * lib/findprog.h: Likewise.
45390         * lib/float.in.h: Likewise.
45391         * lib/floor.c: Likewise.
45392         * lib/floorf.c: Likewise.
45393         * lib/floorl.c: Likewise.
45394         * lib/fopen-safer.c: Likewise.
45395         * lib/fopen.c: Likewise.
45396         * lib/fpending.c: Likewise.
45397         * lib/fpending.h: Likewise.
45398         * lib/fprintf.c: Likewise.
45399         * lib/fprintftime.h: Likewise.
45400         * lib/fpucw.h: Likewise.
45401         * lib/fpurge.c: Likewise.
45402         * lib/fpurge.h: Likewise.
45403         * lib/freadable.c: Likewise.
45404         * lib/freadable.h: Likewise.
45405         * lib/freadahead.c: Likewise.
45406         * lib/freadahead.h: Likewise.
45407         * lib/freading.c: Likewise.
45408         * lib/freading.h: Likewise.
45409         * lib/free.c: Likewise.
45410         * lib/freopen.c: Likewise.
45411         * lib/frexp.c: Likewise.
45412         * lib/frexpl.c: Likewise.
45413         * lib/fseek.c: Likewise.
45414         * lib/fseterr.c: Likewise.
45415         * lib/fseterr.h: Likewise.
45416         * lib/fstatat.c: Likewise.
45417         * lib/fstrcmp.c: Likewise.
45418         * lib/fstrcmp.h: Likewise.
45419         * lib/fsusage.c: Likewise.
45420         * lib/fsusage.h: Likewise.
45421         * lib/ftell.c: Likewise.
45422         * lib/ftello.c: Likewise.
45423         * lib/fts-cycle.c: Likewise.
45424         * lib/fts.c: Likewise.
45425         * lib/fts_.h: Likewise.
45426         * lib/full-read.c: Likewise.
45427         * lib/full-read.h: Likewise.
45428         * lib/full-write.c: Likewise.
45429         * lib/full-write.h: Likewise.
45430         * lib/fwritable.c: Likewise.
45431         * lib/fwritable.h: Likewise.
45432         * lib/fwriteerror.c: Likewise.
45433         * lib/fwriteerror.h: Likewise.
45434         * lib/fwriting.c: Likewise.
45435         * lib/fwriting.h: Likewise.
45436         * lib/gcd.c: Likewise.
45437         * lib/gcd.h: Likewise.
45438         * lib/getcwd.c: Likewise.
45439         * lib/getdate.h: Likewise.
45440         * lib/getdate.y: Likewise.
45441         * lib/getdomainname.c: Likewise.
45442         * lib/getdomainname.h: Likewise.
45443         * lib/getgroups.c: Likewise.
45444         * lib/gethostname.c: Likewise.
45445         * lib/gethrxtime.c: Likewise.
45446         * lib/gethrxtime.h: Likewise.
45447         * lib/getloadavg.c: Likewise.
45448         * lib/getndelim2.c: Likewise.
45449         * lib/getndelim2.h: Likewise.
45450         * lib/getnline.c: Likewise.
45451         * lib/getnline.h: Likewise.
45452         * lib/getopt.c: Likewise.
45453         * lib/getopt.in.h: Likewise.
45454         * lib/getopt1.c: Likewise.
45455         * lib/getopt_int.h: Likewise.
45456         * lib/getpagesize.h: Likewise.
45457         * lib/getsubopt.c: Likewise.
45458         * lib/gettime.c: Likewise.
45459         * lib/getugroups.c: Likewise.
45460         * lib/getugroups.h: Likewise.
45461         * lib/getusershell.c: Likewise.
45462         * lib/gl_anyavltree_list1.h: Likewise.
45463         * lib/gl_anyavltree_list2.h: Likewise.
45464         * lib/gl_anyhash_list1.h: Likewise.
45465         * lib/gl_anyhash_list2.h: Likewise.
45466         * lib/gl_anylinked_list1.h: Likewise.
45467         * lib/gl_anylinked_list2.h: Likewise.
45468         * lib/gl_anyrbtree_list1.h: Likewise.
45469         * lib/gl_anyrbtree_list2.h: Likewise.
45470         * lib/gl_anytree_list1.h: Likewise.
45471         * lib/gl_anytree_list2.h: Likewise.
45472         * lib/gl_anytree_oset.h: Likewise.
45473         * lib/gl_anytreehash_list1.h: Likewise.
45474         * lib/gl_anytreehash_list2.h: Likewise.
45475         * lib/gl_array_list.c: Likewise.
45476         * lib/gl_array_list.h: Likewise.
45477         * lib/gl_array_oset.c: Likewise.
45478         * lib/gl_array_oset.h: Likewise.
45479         * lib/gl_avltree_list.c: Likewise.
45480         * lib/gl_avltree_list.h: Likewise.
45481         * lib/gl_avltree_oset.c: Likewise.
45482         * lib/gl_avltree_oset.h: Likewise.
45483         * lib/gl_avltreehash_list.c: Likewise.
45484         * lib/gl_avltreehash_list.h: Likewise.
45485         * lib/gl_carray_list.c: Likewise.
45486         * lib/gl_carray_list.h: Likewise.
45487         * lib/gl_linked_list.c: Likewise.
45488         * lib/gl_linked_list.h: Likewise.
45489         * lib/gl_linkedhash_list.c: Likewise.
45490         * lib/gl_linkedhash_list.h: Likewise.
45491         * lib/gl_list.c: Likewise.
45492         * lib/gl_list.h: Likewise.
45493         * lib/gl_oset.c: Likewise.
45494         * lib/gl_oset.h: Likewise.
45495         * lib/gl_rbtree_list.c: Likewise.
45496         * lib/gl_rbtree_list.h: Likewise.
45497         * lib/gl_rbtree_oset.c: Likewise.
45498         * lib/gl_rbtree_oset.h: Likewise.
45499         * lib/gl_rbtreehash_list.c: Likewise.
45500         * lib/gl_rbtreehash_list.h: Likewise.
45501         * lib/gl_sublist.c: Likewise.
45502         * lib/gl_sublist.h: Likewise.
45503         * lib/group-member.c: Likewise.
45504         * lib/group-member.h: Likewise.
45505         * lib/hard-locale.c: Likewise.
45506         * lib/hard-locale.h: Likewise.
45507         * lib/hash-pjw.c: Likewise.
45508         * lib/hash-pjw.h: Likewise.
45509         * lib/hash-triple.c: Likewise.
45510         * lib/hash.c: Likewise.
45511         * lib/hash.h: Likewise.
45512         * lib/human.c: Likewise.
45513         * lib/human.h: Likewise.
45514         * lib/i-ring.c: Likewise.
45515         * lib/i-ring.h: Likewise.
45516         * lib/idcache.c: Likewise.
45517         * lib/imaxabs.c: Likewise.
45518         * lib/imaxdiv.c: Likewise.
45519         * lib/inet_pton.c: Likewise.
45520         * lib/inet_pton.h: Likewise.
45521         * lib/intprops.h: Likewise.
45522         * lib/inttostr.c: Likewise.
45523         * lib/inttostr.h: Likewise.
45524         * lib/inttypes.in.h: Likewise.
45525         * lib/isapipe.c: Likewise.
45526         * lib/isdir.c: Likewise.
45527         * lib/isnan.c: Likewise.
45528         * lib/isnan.h: Likewise.
45529         * lib/isnanf.c: Likewise.
45530         * lib/isnanf.h: Likewise.
45531         * lib/isnanl-nolibm.h: Likewise.
45532         * lib/isnanl.c: Likewise.
45533         * lib/isnanl.h: Likewise.
45534         * lib/javacomp.c: Likewise.
45535         * lib/javacomp.h: Likewise.
45536         * lib/javaexec.c: Likewise.
45537         * lib/javaexec.h: Likewise.
45538         * lib/javaversion.c: Likewise.
45539         * lib/javaversion.h: Likewise.
45540         * lib/javaversion.java: Likewise.
45541         * lib/lbrkprop.h: Likewise.
45542         * lib/lchmod.h: Likewise.
45543         * lib/lchown.c: Likewise.
45544         * lib/ldexpl.c: Likewise.
45545         * lib/linebreak.c: Likewise.
45546         * lib/linebreak.h: Likewise.
45547         * lib/linebuffer.c: Likewise.
45548         * lib/linebuffer.h: Likewise.
45549         * lib/locale.in.h: Likewise.
45550         * lib/logl.c: Likewise.
45551         * lib/long-options.c: Likewise.
45552         * lib/long-options.h: Likewise.
45553         * lib/lstat.c: Likewise.
45554         * lib/lstat.h: Likewise.
45555         * lib/math.in.h: Likewise.
45556         * lib/mbchar.c: Likewise.
45557         * lib/mbchar.h: Likewise.
45558         * lib/mbfile.h: Likewise.
45559         * lib/mbiter.h: Likewise.
45560         * lib/mbscasecmp.c: Likewise.
45561         * lib/mbscasestr.c: Likewise.
45562         * lib/mbschr.c: Likewise.
45563         * lib/mbscspn.c: Likewise.
45564         * lib/mbslen.c: Likewise.
45565         * lib/mbsncasecmp.c: Likewise.
45566         * lib/mbsnlen.c: Likewise.
45567         * lib/mbspbrk.c: Likewise.
45568         * lib/mbspcasecmp.c: Likewise.
45569         * lib/mbsrchr.c: Likewise.
45570         * lib/mbssep.c: Likewise.
45571         * lib/mbsspn.c: Likewise.
45572         * lib/mbsstr.c: Likewise.
45573         * lib/mbstok_r.c: Likewise.
45574         * lib/mbswidth.c: Likewise.
45575         * lib/mbswidth.h: Likewise.
45576         * lib/mbuiter.h: Likewise.
45577         * lib/memcasecmp.c: Likewise.
45578         * lib/memcasecmp.h: Likewise.
45579         * lib/memchr.c: Likewise.
45580         * lib/memcmp.c: Likewise.
45581         * lib/memcoll.c: Likewise.
45582         * lib/memcoll.h: Likewise.
45583         * lib/memcpy.c: Likewise.
45584         * lib/memrchr.c: Likewise.
45585         * lib/mkancesdirs.c: Likewise.
45586         * lib/mkdir-p.c: Likewise.
45587         * lib/mkdir-p.h: Likewise.
45588         * lib/mkdir.c: Likewise.
45589         * lib/mkdirat.c: Likewise.
45590         * lib/mkdtemp.c: Likewise.
45591         * lib/mkstemp-safer.c: Likewise.
45592         * lib/mkstemp.c: Likewise.
45593         * lib/modechange.c: Likewise.
45594         * lib/modechange.h: Likewise.
45595         * lib/mountlist.c: Likewise.
45596         * lib/mountlist.h: Likewise.
45597         * lib/mpsort.c: Likewise.
45598         * lib/nanosleep.c: Likewise.
45599         * lib/obstack.c: Likewise.
45600         * lib/obstack.h: Likewise.
45601         * lib/open-safer.c: Likewise.
45602         * lib/open.c: Likewise.
45603         * lib/openat-die.c: Likewise.
45604         * lib/openat-priv.h: Likewise.
45605         * lib/openat-proc.c: Likewise.
45606         * lib/openat.c: Likewise.
45607         * lib/openat.h: Likewise.
45608         * lib/pagealign_alloc.c: Likewise.
45609         * lib/pagealign_alloc.h: Likewise.
45610         * lib/physmem.c: Likewise.
45611         * lib/physmem.h: Likewise.
45612         * lib/pipe-safer.c: Likewise.
45613         * lib/pipe.c: Likewise.
45614         * lib/pipe.h: Likewise.
45615         * lib/posixtm.c: Likewise.
45616         * lib/posixtm.h: Likewise.
45617         * lib/posixver.c: Likewise.
45618         * lib/printf-frexp.c: Likewise.
45619         * lib/printf-frexp.h: Likewise.
45620         * lib/printf-frexpl.c: Likewise.
45621         * lib/printf-frexpl.h: Likewise.
45622         * lib/printf.c: Likewise.
45623         * lib/progname.c: Likewise.
45624         * lib/progname.h: Likewise.
45625         * lib/progreloc.c: Likewise.
45626         * lib/putenv.c: Likewise.
45627         * lib/quote.c: Likewise.
45628         * lib/quote.h: Likewise.
45629         * lib/quotearg.c: Likewise.
45630         * lib/quotearg.h: Likewise.
45631         * lib/raise.c: Likewise.
45632         * lib/readline.c: Likewise.
45633         * lib/readline.h: Likewise.
45634         * lib/readlink.c: Likewise.
45635         * lib/readtokens.c: Likewise.
45636         * lib/readtokens.h: Likewise.
45637         * lib/readtokens0.c: Likewise.
45638         * lib/readtokens0.h: Likewise.
45639         * lib/readutmp.c: Likewise.
45640         * lib/readutmp.h: Likewise.
45641         * lib/realloc.c: Likewise.
45642         * lib/relocwrapper.c: Likewise.
45643         * lib/rename-dest-slash.c: Likewise.
45644         * lib/rename.c: Likewise.
45645         * lib/rmdir.c: Likewise.
45646         * lib/rpmatch.c: Likewise.
45647         * lib/safe-read.c: Likewise.
45648         * lib/safe-read.h: Likewise.
45649         * lib/safe-write.c: Likewise.
45650         * lib/safe-write.h: Likewise.
45651         * lib/same-inode.h: Likewise.
45652         * lib/same.c: Likewise.
45653         * lib/same.h: Likewise.
45654         * lib/save-cwd.c: Likewise.
45655         * lib/save-cwd.h: Likewise.
45656         * lib/savedir.c: Likewise.
45657         * lib/savedir.h: Likewise.
45658         * lib/savewd.c: Likewise.
45659         * lib/savewd.h: Likewise.
45660         * lib/search.in.h: Likewise.
45661         * lib/setenv.c: Likewise.
45662         * lib/setenv.h: Likewise.
45663         * lib/settime.c: Likewise.
45664         * lib/sh-quote.c: Likewise.
45665         * lib/sh-quote.h: Likewise.
45666         * lib/sig2str.c: Likewise.
45667         * lib/sig2str.h: Likewise.
45668         * lib/signal.in.h: Likewise.
45669         * lib/signbitd.c: Likewise.
45670         * lib/signbitf.c: Likewise.
45671         * lib/signbitl.c: Likewise.
45672         * lib/sigprocmask.c: Likewise.
45673         * lib/sincosl.c: Likewise.
45674         * lib/sleep.c: Likewise.
45675         * lib/sprintf.c: Likewise.
45676         * lib/sqrtl.c: Likewise.
45677         * lib/stat-time.h: Likewise.
45678         * lib/stdio--.h: Likewise.
45679         * lib/stdio-safer.h: Likewise.
45680         * lib/stdlib--.h: Likewise.
45681         * lib/stdlib-safer.h: Likewise.
45682         * lib/stdlib.in.h: Likewise.
45683         * lib/stpcpy.c: Likewise.
45684         * lib/stpncpy.c: Likewise.
45685         * lib/strchrnul.c: Likewise.
45686         * lib/strcspn.c: Likewise.
45687         * lib/strerror.c: Likewise.
45688         * lib/strftime.c: Likewise.
45689         * lib/strftime.h: Likewise.
45690         * lib/striconveh.c: Likewise.
45691         * lib/striconveh.h: Likewise.
45692         * lib/striconveha.c: Likewise.
45693         * lib/striconveha.h: Likewise.
45694         * lib/stripslash.c: Likewise.
45695         * lib/strnlen1.c: Likewise.
45696         * lib/strnlen1.h: Likewise.
45697         * lib/strtod.c: Likewise.
45698         * lib/strtoimax.c: Likewise.
45699         * lib/strtok_r.c: Likewise.
45700         * lib/strtol.c: Likewise.
45701         * lib/strtoll.c: Likewise.
45702         * lib/strtoul.c: Likewise.
45703         * lib/strtoull.c: Likewise.
45704         * lib/sysexits.in.h: Likewise.
45705         * lib/tempname.c: Likewise.
45706         * lib/tempname.h: Likewise.
45707         * lib/timespec.h: Likewise.
45708         * lib/tls.c: Likewise.
45709         * lib/tls.h: Likewise.
45710         * lib/tmpdir.c: Likewise.
45711         * lib/tmpdir.h: Likewise.
45712         * lib/tmpfile-safer.c: Likewise.
45713         * lib/tmpfile.c: Likewise.
45714         * lib/trigl.c: Likewise.
45715         * lib/trigl.h: Likewise.
45716         * lib/trim.c: Likewise.
45717         * lib/trim.h: Likewise.
45718         * lib/trunc.c: Likewise.
45719         * lib/truncf.c: Likewise.
45720         * lib/truncl.c: Likewise.
45721         * lib/tsearch.c: Likewise.
45722         * lib/unicodeio.c: Likewise.
45723         * lib/unicodeio.h: Likewise.
45724         * lib/unistd--.h: Likewise.
45725         * lib/unistd-safer.h: Likewise.
45726         * lib/unistdio/ulc-fprintf.c: Likewise.
45727         * lib/unistdio/ulc-vfprintf.c: Likewise.
45728         * lib/unlinkdir.c: Likewise.
45729         * lib/unlinkdir.h: Likewise.
45730         * lib/unlocked-io.h: Likewise.
45731         * lib/unsetenv.c: Likewise.
45732         * lib/userspec.c: Likewise.
45733         * lib/utime.c: Likewise.
45734         * lib/utimecmp.c: Likewise.
45735         * lib/utimecmp.h: Likewise.
45736         * lib/utimens.c: Likewise.
45737         * lib/verify.h: Likewise.
45738         * lib/verror.c: Likewise.
45739         * lib/verror.h: Likewise.
45740         * lib/version-etc-fsf.c: Likewise.
45741         * lib/version-etc.c: Likewise.
45742         * lib/version-etc.h: Likewise.
45743         * lib/vfprintf.c: Likewise.
45744         * lib/vprintf.c: Likewise.
45745         * lib/vsprintf.c: Likewise.
45746         * lib/w32spawn.h: Likewise.
45747         * lib/wait-process.c: Likewise.
45748         * lib/wait-process.h: Likewise.
45749         * lib/wcwidth.c: Likewise.
45750         * lib/write-any-file.c: Likewise.
45751         * lib/xalloc-die.c: Likewise.
45752         * lib/xalloc.h: Likewise.
45753         * lib/xasprintf.c: Likewise.
45754         * lib/xgetcwd.c: Likewise.
45755         * lib/xgetcwd.h: Likewise.
45756         * lib/xgetdomainname.c: Likewise.
45757         * lib/xgetdomainname.h: Likewise.
45758         * lib/xgethostname.c: Likewise.
45759         * lib/xmalloc.c: Likewise.
45760         * lib/xmalloca.c: Likewise.
45761         * lib/xmalloca.h: Likewise.
45762         * lib/xmemcoll.c: Likewise.
45763         * lib/xnanosleep.c: Likewise.
45764         * lib/xreadlink.c: Likewise.
45765         * lib/xreadlink.h: Likewise.
45766         * lib/xsetenv.c: Likewise.
45767         * lib/xsetenv.h: Likewise.
45768         * lib/xstriconv.c: Likewise.
45769         * lib/xstriconv.h: Likewise.
45770         * lib/xstrndup.c: Likewise.
45771         * lib/xstrndup.h: Likewise.
45772         * lib/xstrtod.c: Likewise.
45773         * lib/xstrtod.h: Likewise.
45774         * lib/xstrtol-error.c: Likewise.
45775         * lib/xstrtol.c: Likewise.
45776         * lib/xstrtol.h: Likewise.
45777         * lib/xtime.h: Likewise.
45778         * lib/xvasprintf.c: Likewise.
45779         * lib/xvasprintf.h: Likewise.
45780         * lib/yesno.c: Likewise.
45781         * lib/yesno.h: Likewise.
45782         * posix-modules: Likewise.
45783         * tests/test-alloca-opt.c: Likewise.
45784         * tests/test-arcfour.c: Likewise.
45785         * tests/test-arctwo.c: Likewise.
45786         * tests/test-argmatch.c: Likewise.
45787         * tests/test-argp-2.sh: Likewise.
45788         * tests/test-argp.c: Likewise.
45789         * tests/test-arpa_inet.c: Likewise.
45790         * tests/test-array_list.c: Likewise.
45791         * tests/test-array_oset.c: Likewise.
45792         * tests/test-atexit.c: Likewise.
45793         * tests/test-avltree_list.c: Likewise.
45794         * tests/test-avltree_oset.c: Likewise.
45795         * tests/test-avltreehash_list.c: Likewise.
45796         * tests/test-base64.c: Likewise.
45797         * tests/test-binary-io.c: Likewise.
45798         * tests/test-byteswap.c: Likewise.
45799         * tests/test-c-ctype.c: Likewise.
45800         * tests/test-c-strcasecmp.c: Likewise.
45801         * tests/test-c-strcasestr.c: Likewise.
45802         * tests/test-c-strncasecmp.c: Likewise.
45803         * tests/test-c-strstr.c: Likewise.
45804         * tests/test-canonicalize-lgpl.c: Likewise.
45805         * tests/test-canonicalize.c: Likewise.
45806         * tests/test-carray_list.c: Likewise.
45807         * tests/test-ceilf.c: Likewise.
45808         * tests/test-ceill.c: Likewise.
45809         * tests/test-count-one-bits.c: Likewise.
45810         * tests/test-crc.c: Likewise.
45811         * tests/test-dirname.c: Likewise.
45812         * tests/test-fbufmode.c: Likewise.
45813         * tests/test-fcntl.c: Likewise.
45814         * tests/test-fflush.c: Likewise.
45815         * tests/test-floorf.c: Likewise.
45816         * tests/test-floorl.c: Likewise.
45817         * tests/test-fopen.c: Likewise.
45818         * tests/test-fprintf-posix.c: Likewise.
45819         * tests/test-fprintf-posix.h: Likewise.
45820         * tests/test-fpurge.c: Likewise.
45821         * tests/test-freadable.c: Likewise.
45822         * tests/test-freadahead.c: Likewise.
45823         * tests/test-freading.c: Likewise.
45824         * tests/test-freopen.c: Likewise.
45825         * tests/test-frexp.c: Likewise.
45826         * tests/test-frexpl.c: Likewise.
45827         * tests/test-fseek.c: Likewise.
45828         * tests/test-fseeko.c: Likewise.
45829         * tests/test-fseterr.c: Likewise.
45830         * tests/test-fstrcmp.c: Likewise.
45831         * tests/test-ftell.c: Likewise.
45832         * tests/test-ftello.c: Likewise.
45833         * tests/test-fwritable.c: Likewise.
45834         * tests/test-fwriting.c: Likewise.
45835         * tests/test-getaddrinfo.c: Likewise.
45836         * tests/test-getpass.c: Likewise.
45837         * tests/test-gettimeofday.c: Likewise.
45838         * tests/test-hmac-md5.c: Likewise.
45839         * tests/test-hmac-sha1.c: Likewise.
45840         * tests/test-iconv.c: Likewise.
45841         * tests/test-iconvme.c: Likewise.
45842         * tests/test-inttypes.c: Likewise.
45843         * tests/test-isnan.c: Likewise.
45844         * tests/test-isnanf.c: Likewise.
45845         * tests/test-isnanl-nolibm.c: Likewise.
45846         * tests/test-isnanl.c: Likewise.
45847         * tests/test-isnanl.h: Likewise.
45848         * tests/test-ldexpl.c: Likewise.
45849         * tests/test-linked_list.c: Likewise.
45850         * tests/test-linkedhash_list.c: Likewise.
45851         * tests/test-locale.c: Likewise.
45852         * tests/test-localename.c: Likewise.
45853         * tests/test-lock.c: Likewise.
45854         * tests/test-lseek.c: Likewise.
45855         * tests/test-malloca.c: Likewise.
45856         * tests/test-math.c: Likewise.
45857         * tests/test-mbscasecmp.c: Likewise.
45858         * tests/test-mbscasestr1.c: Likewise.
45859         * tests/test-mbscasestr2.c: Likewise.
45860         * tests/test-mbscasestr3.c: Likewise.
45861         * tests/test-mbscasestr4.c: Likewise.
45862         * tests/test-mbschr.c: Likewise.
45863         * tests/test-mbscspn.c: Likewise.
45864         * tests/test-mbsncasecmp.c: Likewise.
45865         * tests/test-mbspbrk.c: Likewise.
45866         * tests/test-mbspcasecmp.c: Likewise.
45867         * tests/test-mbsrchr.c: Likewise.
45868         * tests/test-mbsspn.c: Likewise.
45869         * tests/test-mbsstr1.c: Likewise.
45870         * tests/test-mbsstr2.c: Likewise.
45871         * tests/test-mbsstr3.c: Likewise.
45872         * tests/test-md5.c: Likewise.
45873         * tests/test-memmem.c: Likewise.
45874         * tests/test-netinet_in.c: Likewise.
45875         * tests/test-open.c: Likewise.
45876         * tests/test-printf-frexp.c: Likewise.
45877         * tests/test-printf-frexpl.c: Likewise.
45878         * tests/test-printf-posix.c: Likewise.
45879         * tests/test-printf-posix.h: Likewise.
45880         * tests/test-rbtree_list.c: Likewise.
45881         * tests/test-rbtree_oset.c: Likewise.
45882         * tests/test-rbtreehash_list.c: Likewise.
45883         * tests/test-read-file.c: Likewise.
45884         * tests/test-rijndael.c: Likewise.
45885         * tests/test-search.c: Likewise.
45886         * tests/test-signbit.c: Likewise.
45887         * tests/test-sleep.c: Likewise.
45888         * tests/test-snprintf-posix.c: Likewise.
45889         * tests/test-snprintf-posix.h: Likewise.
45890         * tests/test-snprintf.c: Likewise.
45891         * tests/test-sprintf-posix.c: Likewise.
45892         * tests/test-sprintf-posix.h: Likewise.
45893         * tests/test-stat-time.c: Likewise.
45894         * tests/test-stdbool.c: Likewise.
45895         * tests/test-stdint.c: Likewise.
45896         * tests/test-stdio.c: Likewise.
45897         * tests/test-stdlib.c: Likewise.
45898         * tests/test-stpncpy.c: Likewise.
45899         * tests/test-strcasestr.c: Likewise.
45900         * tests/test-striconv.c: Likewise.
45901         * tests/test-striconveh.c: Likewise.
45902         * tests/test-striconveha.c: Likewise.
45903         * tests/test-string.c: Likewise.
45904         * tests/test-sys_select.c: Likewise.
45905         * tests/test-sys_socket.c: Likewise.
45906         * tests/test-sys_stat.c: Likewise.
45907         * tests/test-sys_time.c: Likewise.
45908         * tests/test-sysexits.c: Likewise.
45909         * tests/test-time.c: Likewise.
45910         * tests/test-tls.c: Likewise.
45911         * tests/test-trunc.c: Likewise.
45912         * tests/test-truncf.c: Likewise.
45913         * tests/test-truncl.c: Likewise.
45914         * tests/test-unistd.c: Likewise.
45915         * tests/test-vasnprintf-posix.c: Likewise.
45916         * tests/test-vasnprintf-posix2.c: Likewise.
45917         * tests/test-vasnprintf.c: Likewise.
45918         * tests/test-vasprintf-posix.c: Likewise.
45919         * tests/test-vasprintf.c: Likewise.
45920         * tests/test-verify.c: Likewise.
45921         * tests/test-vfprintf-posix.c: Likewise.
45922         * tests/test-vprintf-posix.c: Likewise.
45923         * tests/test-vsnprintf-posix.c: Likewise.
45924         * tests/test-vsnprintf.c: Likewise.
45925         * tests/test-vsprintf-posix.c: Likewise.
45926         * tests/test-wchar.c: Likewise.
45927         * tests/test-wctype.c: Likewise.
45928         * tests/test-wcwidth.c: Likewise.
45929         * tests/test-xstrtol.c: Likewise.
45930         * tests/test-xvasprintf.c: Likewise.
45931         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
45932         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
45933         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45934         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45935         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45936         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
45937         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45938         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45939         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45940         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
45941         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45942         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45943         * tests/uniname/test-uninames.c: Likewise.
45944         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
45945         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
45946         * tests/unistdio/test-u16-printf1.h: Likewise.
45947         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
45948         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
45949         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
45950         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
45951         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
45952         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
45953         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
45954         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
45955         * tests/unistdio/test-u32-printf1.h: Likewise.
45956         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
45957         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
45958         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
45959         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
45960         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
45961         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
45962         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
45963         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
45964         * tests/unistdio/test-u8-printf1.h: Likewise.
45965         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
45966         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
45967         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
45968         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
45969         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
45970         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
45971         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
45972         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
45973         * tests/unistdio/test-ulc-printf1.h: Likewise.
45974         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
45975         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
45976         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
45977         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
45978         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
45979         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
45980         * tests/uniwidth/test-u16-strwidth.c: Likewise.
45981         * tests/uniwidth/test-u16-width.c: Likewise.
45982         * tests/uniwidth/test-u32-strwidth.c: Likewise.
45983         * tests/uniwidth/test-u32-width.c: Likewise.
45984         * tests/uniwidth/test-u8-strwidth.c: Likewise.
45985         * tests/uniwidth/test-u8-width.c: Likewise.
45986         * tests/uniwidth/test-uc_width.c: Likewise.
45987         * config/srclist-update: Likewise.
45988         (fixlicense): Update to GPLv3+.
45989
45990         Change copyright notice from LGPLv2.1+ to LGPLv3+.
45991         * tests/test-tsearch.c: Change copyright notice.
45992
45993         Change copyright notice from LGPLv2.0+ to LGPLv3+.
45994         * lib/c-strcaseeq.h: Change copyright notice.
45995         * lib/streq.h: Likewise.
45996         * lib/uniconv.h: Likewise.
45997         * lib/uniconv/u-conv-from-enc.h: Likewise.
45998         * lib/uniconv/u-conv-to-enc.h: Likewise.
45999         * lib/uniconv/u-strconv-from-enc.h: Likewise.
46000         * lib/uniconv/u-strconv-to-enc.h: Likewise.
46001         * lib/uniconv/u16-conv-from-enc.c: Likewise.
46002         * lib/uniconv/u16-conv-to-enc.c: Likewise.
46003         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
46004         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
46005         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
46006         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
46007         * lib/uniconv/u32-conv-from-enc.c: Likewise.
46008         * lib/uniconv/u32-conv-to-enc.c: Likewise.
46009         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
46010         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
46011         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
46012         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
46013         * lib/uniconv/u8-conv-from-enc.c: Likewise.
46014         * lib/uniconv/u8-conv-to-enc.c: Likewise.
46015         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
46016         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
46017         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
46018         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
46019         * lib/uniname.h: Likewise.
46020         * lib/uniname/uniname.c: Likewise.
46021         * lib/unistdio.h: Likewise.
46022         * lib/unistdio/u-asnprintf.h: Likewise.
46023         * lib/unistdio/u-asprintf.h: Likewise.
46024         * lib/unistdio/u-printf-args.c: Likewise.
46025         * lib/unistdio/u-printf-args.h: Likewise.
46026         * lib/unistdio/u-printf-parse.h: Likewise.
46027         * lib/unistdio/u-snprintf.h: Likewise.
46028         * lib/unistdio/u-sprintf.h: Likewise.
46029         * lib/unistdio/u-vasprintf.h: Likewise.
46030         * lib/unistdio/u-vsnprintf.h: Likewise.
46031         * lib/unistdio/u-vsprintf.h: Likewise.
46032         * lib/unistdio/u16-asnprintf.c: Likewise.
46033         * lib/unistdio/u16-asprintf.c: Likewise.
46034         * lib/unistdio/u16-printf-parse.c: Likewise.
46035         * lib/unistdio/u16-snprintf.c: Likewise.
46036         * lib/unistdio/u16-sprintf.c: Likewise.
46037         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
46038         * lib/unistdio/u16-u16-asprintf.c: Likewise.
46039         * lib/unistdio/u16-u16-snprintf.c: Likewise.
46040         * lib/unistdio/u16-u16-sprintf.c: Likewise.
46041         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
46042         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
46043         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
46044         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
46045         * lib/unistdio/u16-vasnprintf.c: Likewise.
46046         * lib/unistdio/u16-vasprintf.c: Likewise.
46047         * lib/unistdio/u16-vsnprintf.c: Likewise.
46048         * lib/unistdio/u16-vsprintf.c: Likewise.
46049         * lib/unistdio/u32-asnprintf.c: Likewise.
46050         * lib/unistdio/u32-asprintf.c: Likewise.
46051         * lib/unistdio/u32-printf-parse.c: Likewise.
46052         * lib/unistdio/u32-snprintf.c: Likewise.
46053         * lib/unistdio/u32-sprintf.c: Likewise.
46054         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
46055         * lib/unistdio/u32-u32-asprintf.c: Likewise.
46056         * lib/unistdio/u32-u32-snprintf.c: Likewise.
46057         * lib/unistdio/u32-u32-sprintf.c: Likewise.
46058         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
46059         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
46060         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
46061         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
46062         * lib/unistdio/u32-vasnprintf.c: Likewise.
46063         * lib/unistdio/u32-vasprintf.c: Likewise.
46064         * lib/unistdio/u32-vsnprintf.c: Likewise.
46065         * lib/unistdio/u32-vsprintf.c: Likewise.
46066         * lib/unistdio/u8-asnprintf.c: Likewise.
46067         * lib/unistdio/u8-asprintf.c: Likewise.
46068         * lib/unistdio/u8-printf-parse.c: Likewise.
46069         * lib/unistdio/u8-snprintf.c: Likewise.
46070         * lib/unistdio/u8-sprintf.c: Likewise.
46071         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
46072         * lib/unistdio/u8-u8-asprintf.c: Likewise.
46073         * lib/unistdio/u8-u8-snprintf.c: Likewise.
46074         * lib/unistdio/u8-u8-sprintf.c: Likewise.
46075         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
46076         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
46077         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
46078         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
46079         * lib/unistdio/u8-vasnprintf.c: Likewise.
46080         * lib/unistdio/u8-vasprintf.c: Likewise.
46081         * lib/unistdio/u8-vsnprintf.c: Likewise.
46082         * lib/unistdio/u8-vsprintf.c: Likewise.
46083         * lib/unistdio/ulc-asnprintf.c: Likewise.
46084         * lib/unistdio/ulc-asprintf.c: Likewise.
46085         * lib/unistdio/ulc-printf-parse.c: Likewise.
46086         * lib/unistdio/ulc-snprintf.c: Likewise.
46087         * lib/unistdio/ulc-sprintf.c: Likewise.
46088         * lib/unistdio/ulc-vasnprintf.c: Likewise.
46089         * lib/unistdio/ulc-vasprintf.c: Likewise.
46090         * lib/unistdio/ulc-vsnprintf.c: Likewise.
46091         * lib/unistdio/ulc-vsprintf.c: Likewise.
46092         * lib/unistr.h: Likewise.
46093         * lib/unistr/u-cpy-alloc.h: Likewise.
46094         * lib/unistr/u-cpy.h: Likewise.
46095         * lib/unistr/u-endswith.h: Likewise.
46096         * lib/unistr/u-move.h: Likewise.
46097         * lib/unistr/u-set.h: Likewise.
46098         * lib/unistr/u-startswith.h: Likewise.
46099         * lib/unistr/u-stpcpy.h: Likewise.
46100         * lib/unistr/u-stpncpy.h: Likewise.
46101         * lib/unistr/u-strcat.h: Likewise.
46102         * lib/unistr/u-strcpy.h: Likewise.
46103         * lib/unistr/u-strcspn.h: Likewise.
46104         * lib/unistr/u-strdup.h: Likewise.
46105         * lib/unistr/u-strlen.h: Likewise.
46106         * lib/unistr/u-strncat.h: Likewise.
46107         * lib/unistr/u-strncpy.h: Likewise.
46108         * lib/unistr/u-strnlen.h: Likewise.
46109         * lib/unistr/u-strpbrk.h: Likewise.
46110         * lib/unistr/u-strspn.h: Likewise.
46111         * lib/unistr/u-strstr.h: Likewise.
46112         * lib/unistr/u-strtok.h: Likewise.
46113         * lib/unistr/u16-check.c: Likewise.
46114         * lib/unistr/u16-chr.c: Likewise.
46115         * lib/unistr/u16-cmp.c: Likewise.
46116         * lib/unistr/u16-cpy-alloc.c: Likewise.
46117         * lib/unistr/u16-cpy.c: Likewise.
46118         * lib/unistr/u16-endswith.c: Likewise.
46119         * lib/unistr/u16-mblen.c: Likewise.
46120         * lib/unistr/u16-mbsnlen.c: Likewise.
46121         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46122         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46123         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46124         * lib/unistr/u16-mbtouc.c: Likewise.
46125         * lib/unistr/u16-mbtoucr.c: Likewise.
46126         * lib/unistr/u16-move.c: Likewise.
46127         * lib/unistr/u16-next.c: Likewise.
46128         * lib/unistr/u16-prev.c: Likewise.
46129         * lib/unistr/u16-set.c: Likewise.
46130         * lib/unistr/u16-startswith.c: Likewise.
46131         * lib/unistr/u16-stpcpy.c: Likewise.
46132         * lib/unistr/u16-stpncpy.c: Likewise.
46133         * lib/unistr/u16-strcat.c: Likewise.
46134         * lib/unistr/u16-strchr.c: Likewise.
46135         * lib/unistr/u16-strcmp.c: Likewise.
46136         * lib/unistr/u16-strcpy.c: Likewise.
46137         * lib/unistr/u16-strcspn.c: Likewise.
46138         * lib/unistr/u16-strdup.c: Likewise.
46139         * lib/unistr/u16-strlen.c: Likewise.
46140         * lib/unistr/u16-strmblen.c: Likewise.
46141         * lib/unistr/u16-strmbtouc.c: Likewise.
46142         * lib/unistr/u16-strncat.c: Likewise.
46143         * lib/unistr/u16-strncmp.c: Likewise.
46144         * lib/unistr/u16-strncpy.c: Likewise.
46145         * lib/unistr/u16-strnlen.c: Likewise.
46146         * lib/unistr/u16-strpbrk.c: Likewise.
46147         * lib/unistr/u16-strrchr.c: Likewise.
46148         * lib/unistr/u16-strspn.c: Likewise.
46149         * lib/unistr/u16-strstr.c: Likewise.
46150         * lib/unistr/u16-strtok.c: Likewise.
46151         * lib/unistr/u16-to-u32.c: Likewise.
46152         * lib/unistr/u16-to-u8.c: Likewise.
46153         * lib/unistr/u16-uctomb-aux.c: Likewise.
46154         * lib/unistr/u16-uctomb.c: Likewise.
46155         * lib/unistr/u32-check.c: Likewise.
46156         * lib/unistr/u32-chr.c: Likewise.
46157         * lib/unistr/u32-cmp.c: Likewise.
46158         * lib/unistr/u32-cpy-alloc.c: Likewise.
46159         * lib/unistr/u32-cpy.c: Likewise.
46160         * lib/unistr/u32-endswith.c: Likewise.
46161         * lib/unistr/u32-mblen.c: Likewise.
46162         * lib/unistr/u32-mbsnlen.c: Likewise.
46163         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46164         * lib/unistr/u32-mbtouc.c: Likewise.
46165         * lib/unistr/u32-mbtoucr.c: Likewise.
46166         * lib/unistr/u32-move.c: Likewise.
46167         * lib/unistr/u32-next.c: Likewise.
46168         * lib/unistr/u32-prev.c: Likewise.
46169         * lib/unistr/u32-set.c: Likewise.
46170         * lib/unistr/u32-startswith.c: Likewise.
46171         * lib/unistr/u32-stpcpy.c: Likewise.
46172         * lib/unistr/u32-stpncpy.c: Likewise.
46173         * lib/unistr/u32-strcat.c: Likewise.
46174         * lib/unistr/u32-strchr.c: Likewise.
46175         * lib/unistr/u32-strcmp.c: Likewise.
46176         * lib/unistr/u32-strcpy.c: Likewise.
46177         * lib/unistr/u32-strcspn.c: Likewise.
46178         * lib/unistr/u32-strdup.c: Likewise.
46179         * lib/unistr/u32-strlen.c: Likewise.
46180         * lib/unistr/u32-strmblen.c: Likewise.
46181         * lib/unistr/u32-strmbtouc.c: Likewise.
46182         * lib/unistr/u32-strncat.c: Likewise.
46183         * lib/unistr/u32-strncmp.c: Likewise.
46184         * lib/unistr/u32-strncpy.c: Likewise.
46185         * lib/unistr/u32-strnlen.c: Likewise.
46186         * lib/unistr/u32-strpbrk.c: Likewise.
46187         * lib/unistr/u32-strrchr.c: Likewise.
46188         * lib/unistr/u32-strspn.c: Likewise.
46189         * lib/unistr/u32-strstr.c: Likewise.
46190         * lib/unistr/u32-strtok.c: Likewise.
46191         * lib/unistr/u32-to-u16.c: Likewise.
46192         * lib/unistr/u32-to-u8.c: Likewise.
46193         * lib/unistr/u32-uctomb.c: Likewise.
46194         * lib/unistr/u8-check.c: Likewise.
46195         * lib/unistr/u8-chr.c: Likewise.
46196         * lib/unistr/u8-cmp.c: Likewise.
46197         * lib/unistr/u8-cpy-alloc.c: Likewise.
46198         * lib/unistr/u8-cpy.c: Likewise.
46199         * lib/unistr/u8-endswith.c: Likewise.
46200         * lib/unistr/u8-mblen.c: Likewise.
46201         * lib/unistr/u8-mbsnlen.c: Likewise.
46202         * lib/unistr/u8-mbtouc-aux.c: Likewise.
46203         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46204         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46205         * lib/unistr/u8-mbtouc.c: Likewise.
46206         * lib/unistr/u8-mbtoucr.c: Likewise.
46207         * lib/unistr/u8-move.c: Likewise.
46208         * lib/unistr/u8-next.c: Likewise.
46209         * lib/unistr/u8-prev.c: Likewise.
46210         * lib/unistr/u8-set.c: Likewise.
46211         * lib/unistr/u8-startswith.c: Likewise.
46212         * lib/unistr/u8-stpcpy.c: Likewise.
46213         * lib/unistr/u8-stpncpy.c: Likewise.
46214         * lib/unistr/u8-strcat.c: Likewise.
46215         * lib/unistr/u8-strchr.c: Likewise.
46216         * lib/unistr/u8-strcmp.c: Likewise.
46217         * lib/unistr/u8-strcpy.c: Likewise.
46218         * lib/unistr/u8-strcspn.c: Likewise.
46219         * lib/unistr/u8-strdup.c: Likewise.
46220         * lib/unistr/u8-strlen.c: Likewise.
46221         * lib/unistr/u8-strmblen.c: Likewise.
46222         * lib/unistr/u8-strmbtouc.c: Likewise.
46223         * lib/unistr/u8-strncat.c: Likewise.
46224         * lib/unistr/u8-strncmp.c: Likewise.
46225         * lib/unistr/u8-strncpy.c: Likewise.
46226         * lib/unistr/u8-strnlen.c: Likewise.
46227         * lib/unistr/u8-strpbrk.c: Likewise.
46228         * lib/unistr/u8-strrchr.c: Likewise.
46229         * lib/unistr/u8-strspn.c: Likewise.
46230         * lib/unistr/u8-strstr.c: Likewise.
46231         * lib/unistr/u8-strtok.c: Likewise.
46232         * lib/unistr/u8-to-u16.c: Likewise.
46233         * lib/unistr/u8-to-u32.c: Likewise.
46234         * lib/unistr/u8-uctomb-aux.c: Likewise.
46235         * lib/unistr/u8-uctomb.c: Likewise.
46236         * lib/unitypes.h: Likewise.
46237         * lib/uniwidth.h: Likewise.
46238         * lib/uniwidth/cjk.h: Likewise.
46239         * lib/uniwidth/u16-strwidth.c: Likewise.
46240         * lib/uniwidth/u16-width.c: Likewise.
46241         * lib/uniwidth/u32-strwidth.c: Likewise.
46242         * lib/uniwidth/u32-width.c: Likewise.
46243         * lib/uniwidth/u8-strwidth.c: Likewise.
46244         * lib/uniwidth/u8-width.c: Likewise.
46245         * lib/uniwidth/width.c: Likewise.
46246
46247 2007-10-07  Bruno Haible  <bruno@clisp.org>
46248
46249         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
46250         The file is still under LGPL (see modules/inttypes).
46251
46252 2007-10-06  Bruno Haible  <bruno@clisp.org>
46253
46254         * modules/trunc (Dependencies): Add 'extensions'.
46255         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
46256         Reported by Ben Pfaff <blp@gnu.org>.
46257
46258 2007-10-06  Bruno Haible  <bruno@clisp.org>
46259
46260         * modules/freopen-tests: New file.
46261         * tests/test-freopen.c: New file.
46262
46263         * modules/fopen-tests: New file.
46264         * tests/test-fopen.c: New file.
46265
46266         * modules/fopen: New file.
46267         * lib/fopen.c: New file.
46268         * m4/fopen.m4: New file.
46269         * modules/freopen: New file.
46270         * lib/freopen.c: New file.
46271         * m4/freopen.m4: New file.
46272         * lib/stdio.in.h (fopen, freopen): New declarations.
46273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
46274         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46275         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
46276         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46277         * doc/functions/fopen.texi: Mention the 'fopen' module.
46278         * doc/functions/freopen.texi: Mention the 'freopen' module.
46279
46280 2007-10-06  Bruno Haible  <bruno@clisp.org>
46281
46282         * modules/open-tests: New file.
46283         * tests/test-open.c: New file.
46284
46285         * modules/open: New file.
46286         * lib/open.c: New file.
46287         * m4/open.m4: New file.
46288         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
46289         lib/open.c does.
46290         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
46291         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
46292         macros.
46293         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
46294         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
46295         REPLACE_OPEN.
46296         * doc/functions/open.texi: Mention the 'open' module.
46297
46298 2007-10-04  Bruno Haible  <bruno@clisp.org>
46299
46300         * modules/ceill-tests: New file.
46301         * tests/test-ceill.c: New file.
46302
46303         * modules/ceill: New file.
46304         * lib/ceill.c: Replace entire file.
46305         * m4/ceill.m4: New file.
46306         * lib/math.in.h (ceill): Replace declaration.
46307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
46308         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
46309         * doc/functions/ceill.texi: Mention the 'ceill' module.
46310         * modules/mathl (Files): Remove lib/ceill.c.
46311         (Depends-on): Add ceill.
46312
46313 2007-10-04  Bruno Haible  <bruno@clisp.org>
46314
46315         * modules/ceilf-tests: New file.
46316         * tests/test-ceilf.c: New file.
46317
46318         * modules/ceilf: New file.
46319         * lib/ceil.c: New file.
46320         * lib/ceilf.c: New file.
46321         * m4/ceilf.m4: New file.
46322         * lib/math.in.h (ceilf): New declaration.
46323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
46324         HAVE_DECL_CEILF.
46325         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
46326         HAVE_DECL_CEILF.
46327         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
46328
46329 2007-10-04  Bruno Haible  <bruno@clisp.org>
46330
46331         * modules/floorl-tests: New file.
46332         * tests/test-floorl.c: New file.
46333
46334         * modules/floorl: New file.
46335         * lib/floorl.c: Replace entire file.
46336         * m4/floorl.m4: New file.
46337         * lib/math.in.h (floorl): Replace declaration.
46338         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
46339         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
46340         * doc/functions/floorl.texi: Mention the 'floorl' module.
46341         * modules/mathl (Files): Remove lib/floorl.c.
46342         (Depends-on): Add floorl.
46343
46344 2007-10-04  Bruno Haible  <bruno@clisp.org>
46345
46346         * modules/floorf-tests: New file.
46347         * tests/test-floorf.c: New file.
46348
46349         * modules/floorf: New file.
46350         * lib/floor.c: New file.
46351         * lib/floorf.c: New file.
46352         * m4/floorf.m4: New file.
46353         * lib/math.in.h (floorf): New declaration.
46354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
46355         HAVE_DECL_FLOORF.
46356         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
46357         HAVE_DECL_FLOORF.
46358         * doc/functions/floorf.texi: Mention the 'floorf' module.
46359
46360 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
46361             Bruno Haible  <bruno@clisp.org>
46362
46363         Advertise for the Git server instead of the CVS server.
46364         * doc/gnulib-intro.texi (Steady Development): Mention the Git
46365         repository instead of the CVS one.
46366         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
46367         about all VCS systems generically.
46368         * doc/gnulib.texi (Introduction): Capitalize `Git'.
46369
46370 2007-10-04  Bruno Haible  <bruno@clisp.org>
46371
46372         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
46373         means.
46374         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
46375
46376 2007-10-04  Bruno Haible  <bruno@clisp.org>
46377
46378         * modules/truncl-tests: New file.
46379         * tests/test-truncl.c: New file.
46380
46381         * modules/truncl: New file.
46382         * lib/truncl.c: New file.
46383         * m4/truncl.m4: New file.
46384         * lib/math.in.h (truncl): New declaration.
46385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
46386         HAVE_DECL_TRUNCL.
46387         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
46388         HAVE_DECL_TRUNCL.
46389         * doc/functions/truncl.texi: Mention the 'truncl' module.
46390
46391 2007-10-04  Bruno Haible  <bruno@clisp.org>
46392
46393         * modules/truncf-tests: New file.
46394         * tests/test-truncf.c: New file.
46395
46396         * modules/truncf: New file.
46397         * lib/trunc.c: Make paramerizable through USE_* macros.
46398         * lib/truncf.c: New file.
46399         * m4/truncf.m4: New file.
46400         * lib/math.in.h (truncf): New declaration.
46401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
46402         HAVE_DECL_TRUNCF.
46403         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
46404         HAVE_DECL_TRUNCF.
46405         * doc/functions/truncf.texi: Mention the 'truncf' module.
46406
46407 2007-10-03  Bruno Haible  <bruno@clisp.org>
46408
46409         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46410         augmentation also for tests modules.
46411         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
46412         * modules/atexit-tests (Makefile.am): Likewise.
46413         * modules/binary-io-tests (Makefile.am): Likewise.
46414         * modules/c-strcase-tests (Makefile.am): Likewise.
46415         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
46416         * modules/canonicalize-tests (Makefile.am): Likewise.
46417         * modules/closein-tests (Makefile.am): Likewise.
46418         * modules/fprintf-posix-tests (Makefile.am): Likewise.
46419         * modules/freadahead-tests (Makefile.am): Likewise.
46420         * modules/fseek-tests (Makefile.am): Likewise.
46421         * modules/fseeko-tests (Makefile.am): Likewise.
46422         * modules/ftell-tests (Makefile.am): Likewise.
46423         * modules/ftello-tests (Makefile.am): Likewise.
46424         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
46425         * modules/isnanl-tests (Makefile.am): Likewise.
46426         * modules/lseek-tests (Makefile.am): Likewise.
46427         * modules/mbscasecmp-tests (Makefile.am): Likewise.
46428         * modules/mbscasestr-tests (Makefile.am): Likewise.
46429         * modules/mbschr-tests (Makefile.am): Likewise.
46430         * modules/mbscspn-tests (Makefile.am): Likewise.
46431         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
46432         * modules/mbspbrk-tests (Makefile.am): Likewise.
46433         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
46434         * modules/mbsrchr-tests (Makefile.am): Likewise.
46435         * modules/mbsspn-tests (Makefile.am): Likewise.
46436         * modules/mbsstr-tests (Makefile.am): Likewise.
46437         * modules/printf-posix-tests (Makefile.am): Likewise.
46438         * modules/snprintf-posix-tests (Makefile.am): Likewise.
46439         * modules/sprintf-posix-tests (Makefile.am): Likewise.
46440         * modules/tsearch-tests (Makefile.am): Likewise.
46441         * modules/uniname/uniname-tests (Makefile.am): Likewise.
46442         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
46443         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
46444         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
46445         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
46446         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
46447         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
46448         * modules/vprintf-posix-tests (Makefile.am): Likewise.
46449         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
46450         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
46451         * modules/xstrtoimax-tests (Makefile.am): Likewise.
46452         * modules/xstrtol-tests (Makefile.am): Likewise.
46453         * modules/xstrtoumax-tests (Makefile.am): Likewise.
46454         * modules/yesno-tests (Makefile.am): Likewise.
46455
46456 2007-10-03  Bruno Haible  <bruno@clisp.org>
46457
46458         * modules/trunc-tests: New file.
46459         * tests/test-trunc.c: New file.
46460
46461         * modules/trunc: New file.
46462         * lib/trunc.c: New file.
46463         * m4/trunc.m4: New file.
46464         * lib/math.in.h (trunc): New declaration.
46465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
46466         HAVE_DECL_TRUNC.
46467         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
46468         HAVE_DECL_TRUNC.
46469         * doc/functions/trunc.texi: Mention the 'trunc' module.
46470
46471 2007-10-03  Bruno Haible  <bruno@clisp.org>
46472
46473         * tests/test-fpending.c: New file, mostly copied
46474         from coreutils/lib/t-fpending.c.
46475         * modules/fpending-tests: New file.
46476
46477 2007-10-03  Bruno Haible  <bruno@clisp.org>
46478
46479         Port the stdio extensions to QNX (untested).
46480         * lib/fseterr.c (fseterr): Add support for QNX.
46481         * lib/fbufmode.c (fbufmode): Likewise.
46482         * lib/freadable.c (freadable): Likewise.
46483         * lib/fwritable.c (fwritable): Likewise.
46484         * lib/freading.c (freading): Likewise.
46485         * lib/fwriting.c (fwriting): Likewise.
46486         * lib/freadahead.c (freadahed): Likewise.
46487         * lib/fpurge.c (fpurge): Likewise.
46488         * lib/fseeko.c (rpl_fseeko): Likewise.
46489
46490 2007-10-03  Bruno Haible  <bruno@clisp.org>
46491             Jim Meyering  <jim@meyering.net>
46492             Eric Blake  <ebb9@byu.net>
46493
46494         * doc/relocatable.texi: Use @command instead of @program.
46495
46496 2007-10-02  Jim Meyering  <jim@meyering.net>
46497
46498         Perform one more "_.h" -> ".in.h" substitution.
46499         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
46500         instead of unistd_.h here, too.
46501
46502 2007-10-01  Bruno Haible  <bruno@clisp.org>
46503
46504         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
46505         Needed for the alloca-opt module.
46506
46507 2007-09-30  Bruno Haible  <bruno@clisp.org>
46508
46509         * lib/alloca.in.h: Renamed from lib/alloca_.h.
46510         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
46511         alloca_.h.
46512         * lib/argz.in.h: Renamed from lib/argz_.h.
46513         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
46514         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
46515         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
46516         byteswap_.h.
46517         * lib/dirent.in.h: Renamed from lib/dirent_.h.
46518         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
46519         dirent_.h.
46520         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
46521         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
46522         fcntl_.h.
46523         * lib/float.in.h: Renamed from lib/float_.h.
46524         * modules/float (Files, Makefile.am): Use float.in.h instead of
46525         float_.h.
46526         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
46527         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
46528         fnmatch_.h.
46529         * lib/getopt.in.h: Renamed from lib/getopt_.h.
46530         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
46531         getopt_.h.
46532         * lib/glob.in.h: Renamed from lib/glob_.h.
46533         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
46534         * lib/iconv.in.h: Renamed from lib/iconv_.h.
46535         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
46536         iconv_.h.
46537         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
46538         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
46539         inttypes_.h.
46540         * lib/locale.in.h: Renamed from lib/locale_.h.
46541         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
46542         locale_.h.
46543         * lib/math.in.h: Renamed from lib/math_.h.
46544         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
46545         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
46546         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
46547         of netinet_in_.h. Add dependency.
46548         * lib/poll.in.h: Renamed from lib/poll_.h.
46549         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
46550         * lib/search.in.h: Renamed from lib/search_.h.
46551         * modules/search (Files, Makefile.am): Use search.in.h instead of
46552         search_.h.
46553         * lib/signal.in.h: Renamed from lib/signal_.h.
46554         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
46555         _signal.h.
46556         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
46557         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
46558         stdbool_.h.
46559         * lib/stdint.in.h: Renamed from lib/stdint_.h.
46560         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
46561         stdint_.h.
46562         * lib/stdio.in.h: Renamed from lib/stdio_.h.
46563         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
46564         stdio_.h.
46565         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
46566         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
46567         stdlib_.h.
46568         * lib/string.in.h: Renamed from lib/string_.h.
46569         * modules/string (Files, Makefile.am): Use string.in.h instead of
46570         string_.h.
46571         * doc/gnulib-tool.texi (Initial import): Update.
46572         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
46573         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
46574         of sys_select_.h. Add dependency.
46575         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
46576         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
46577         of sys_socket_.h.
46578         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
46579         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
46580         sys_stat_.h.
46581         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
46582         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
46583         sys_time_.h.
46584         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
46585         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
46586         sysexits_.h.
46587         * lib/time.in.h: Renamed from lib/time_.h.
46588         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
46589         * lib/unistd.in.h: Renamed from lib/unistd_.h.
46590         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
46591         unistd_.h.
46592         * lib/wchar.in.h: Renamed from lib/wchar_.h.
46593         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
46594         wchar_.h.
46595         * lib/wctype.in.h: Renamed from lib/wctype_.h.
46596         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
46597         wctype_.h.
46598         * build-aux/bootstrap (slurp): Update.
46599         * lib/.cppi-disable: Update.
46600
46601 2007-09-30  Bruno Haible  <bruno@clisp.org>
46602
46603         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
46604         Needed on BeOS.
46605
46606 2007-09-30  Bruno Haible  <bruno@clisp.org>
46607
46608         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
46609
46610 2007-09-29  Bruno Haible  <bruno@clisp.org>
46611
46612         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
46613
46614 2007-09-29  Bruno Haible  <bruno@clisp.org>
46615
46616         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
46617         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
46618         * build-aux/install-reloc: Compile also areadlink.c.
46619         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
46620
46621 2007-09-29  Bruno Haible  <bruno@clisp.org>
46622
46623         * gnulib-tool (func_emit_initmacro_done): Indentation.
46624
46625 2007-09-29  Bruno Haible  <bruno@clisp.org>
46626
46627         * README: Add CVS checkout update instructions.
46628         Info from Bob Proulx <bob@proulx.com>.
46629
46630 2007-09-28  Eric Blake  <ebb9@byu.net>
46631
46632         Provide move-if-change.
46633         * build-aux/move-if-change: New file, based on best practice
46634         rather than any canonical upstream location.
46635
46636 2007-09-28  Jim Meyering  <jim@meyering.net>
46637
46638         Fix canonicalize loop-detection corner case.
46639         Do not attempt to stat the symlink values stored via seen_triple.
46640         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
46641         on linux-2.6.18, (but not 2.6.22).
46642         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
46643         triple_compare.  The former compares dev,ino,filename, while the latter
46644         would actually stat dirname(filename) when dev and ino were equal.
46645         * lib/hash-triple.c: Install <string.h>.
46646         (STREQ): Define.
46647         (triple_compare_ino_str): New function.
46648         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
46649
46650 2007-09-28  Eric Blake  <ebb9@byu.net>
46651
46652         Enforce that AC_REPLACE_FUNCS files exist.
46653         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
46654         override check for typos.
46655
46656         Fix test-closein on Solaris 10.
46657         * tests/test-closein.c (main): Don't assume stdin can be inherited
46658         closed on all systems.
46659         * tests/test-closein.sh: Likewise.
46660         Reported by Piotr Tarnowski.
46661
46662 2007-09-28  Jim Meyering  <jim@meyering.net>
46663
46664         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
46665
46666 2007-09-27  Jim Meyering  <jim@meyering.net>
46667
46668         canonicalize: Avoid a false-positive cycle failure.
46669         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
46670         Sort.  Remove cycle-check.
46671         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
46672         not cycle-check.h.
46673         (seen_triple): New function.
46674         (canonicalize_filename_mode): Use it instead of cycle-check.
46675         * tests/test-canonicalize.c: Add a test for this bug.
46676         * tests/test-canonicalize.sh: Set up and run the test.
46677
46678         New module, file-set, from coreutils.
46679         * modules/file-set: Define it.
46680         * lib/file-set.c, lib/file-set.h: Implement.
46681
46682         New module, hash-triple, from coreutils.
46683         * modules/hash-triple: Define it.
46684         * lib/hash-triple.c, lib/hash-triple.h: Implement.
46685
46686 2007-09-25  Eric Blake  <ebb9@byu.net>
46687
46688         Fix strerror on Interix.
46689         * lib/string_.h (strerror): Declare replacement.
46690         * doc/functions/strerror.texi (strerror): Document the Interix
46691         shortcoming.
46692         * modules/string (Makefile.am): Support new hooks.
46693         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
46694         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
46695         gl_FUNC_STRERROR_SEPARATE.
46696         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
46697         * lib/strerror.c (rpl_strerror): Provide replacement.
46698         * modules/strerror (Depends-on): Add string.
46699         (configure.ac): Detect use of module.
46700         * tests/test-strerror.c: New file.
46701         * modules/strerror-tests: New test module.
46702         * modules/argp (Depends-on): Add strerror.
46703         * modules/error (Depends-on): Likewise.
46704         Reported by Martin Koeppe.
46705
46706 2007-09-24  Bruno Haible  <bruno@clisp.org>
46707
46708         * README: Update git instructions.
46709
46710 2007-09-24  Eric Blake  <ebb9@byu.net>
46711
46712         Revert fpending breakage from 2007-09-08.
46713         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
46714         __fpending.c.
46715
46716 2007-09-24  Jim Meyering  <jim@meyering.net>
46717
46718         filenamecat.c: Add a test.
46719         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
46720         showing how the function works when DIR is the empty string.
46721
46722 2007-09-21  Simon Josefsson  <simon@josefsson.org>
46723
46724         * tests/test-canonicalize.sh: Turn on executable bit.
46725
46726 2007-09-19  Eric Blake  <ebb9@byu.net>
46727
46728         * README: Update CVS instructions.
46729
46730 2007-09-18  Bruno Haible  <bruno@clisp.org>
46731
46732         * modules/areadlink: New file.
46733         * lib/areadlink.h (areadlink): New declaration.
46734         * lib/areadlink.c: New file, based on lib/xreadlink.c.
46735
46736 2007-09-17  Jim Meyering  <jim@meyering.net>
46737
46738         * lib/savewd.c (ESTALE) [!defined]: Define.
46739         Reported to be required on Interix by Martin Koeppe.
46740
46741 2007-09-17  Bruno Haible  <bruno@clisp.org>
46742
46743         * gnulib-tool (func_version): Use $version.
46744
46745 2007-09-16  Bruno Haible  <bruno@clisp.org>
46746
46747         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
46748         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
46749         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
46750         Reported by Greg Schafer <gschafer@zip.com.au>.
46751
46752 2007-09-15  Bruno Haible  <bruno@clisp.org>
46753
46754         * gnulib-tool (sed): Try a little harder to make bash understand the
46755         alias.
46756         Reported by Bruce Korb <bruce.korb@gmail.com>.
46757
46758 2007-09-13  Eric Blake  <ebb9@byu.net>
46759
46760         * ChangeLog: Remove conflict markers.
46761
46762 2007-09-13  Simon Josefsson  <simon@josefsson.org>
46763
46764         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
46765         Reported by Bruno Haible <bruno@clisp.org>.
46766
46767 2007-09-12  Bruno Haible  <bruno@clisp.org>
46768
46769         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
46770         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
46771         is not defined.
46772
46773 2007-09-12  Eric Blake  <ebb9@byu.net>
46774
46775         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
46776         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
46777         Autoconf definition.
46778         * modules/euidaccess (Depends-on): Add extensions, for
46779         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
46780         * modules/fnmatch (Depends-on): Likewise.
46781         * modules/getaddrinfo (Depends-on): Likewise.
46782         * modules/getdelim (Depends-on): Likewise.
46783         * modules/getline (Depends-on): Likewise.
46784         * modules/getsubopt (Depends-on): Likewise.
46785         * modules/gettext (Depends-on): Likewise.
46786         * modules/group-member (Depends-on): Likewise.
46787         * modules/mbchar (Depends-on): Likewise.
46788         * modules/memmem (Depends-on): Likewise.
46789         * modules/mempcpy (Depends-on): Likewise.
46790         * modules/memrchr (Depends-on): Likewise.
46791         * modules/pagealign_alloc (Depends-on): Likewise.
46792         * modules/readutmp (Depends-on): Likewise.
46793         * modules/stpcpy (Depends-on): Likewise.
46794         * modules/stpncpy (Depends-on): Likewise.
46795         * modules/strchrnul (Depends-on): Likewise.
46796         * modules/strndup (Depends-on): Likewise.
46797         * modules/strsep (Depends-on): Likewise.
46798         * modules/strverscmp (Depends-on): Likewise.
46799         * modules/vasprintf (Depends-on): Likewise.
46800         * modules/wcwidth (Depends-on): Likewise.
46801         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
46802         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
46803         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
46804         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
46805         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46806         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46807         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
46808         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46809         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
46810         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
46811         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46812         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46813         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46814         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
46815         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
46816         * m4/readutmp.m4 (gl_READUTMP): Likewise.
46817         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46818         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46819         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46820         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46821         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46822         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46823         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46824         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
46825         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
46826         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46827         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
46828         so that lock.m4 can be used in gettext without extensions module.
46829
46830 2007-09-11  Bruno Haible  <bruno@clisp.org>
46831
46832         * m4/isc-posix.m4: Remove file.
46833         Suggested by Eric Blake.
46834
46835 2007-09-11  Eric Blake  <ebb9@byu.net>
46836
46837         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
46838
46839 2007-09-10  Bruno Haible  <bruno@clisp.org>
46840
46841         * posix-modules: Fix typo in error message.
46842         Reported by Matt <mkraai@beckman.com>.
46843
46844 2007-09-09  Bruno Haible  <bruno@clisp.org>
46845
46846         * doc/functions/getdelim.texi: Update list of platforms lacking the
46847         function.
46848         * doc/functions/getline.texi: Likewise.
46849
46850 2007-09-09  Jim Meyering  <jim@meyering.net>
46851
46852         * lib/hash.c (hash_initialize): Detect calloc failure.
46853         Reported by Bruno Haible.
46854
46855 2007-09-09  Bruno Haible  <bruno@clisp.org>
46856
46857         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
46858         malloc or realloc fails.
46859
46860 2007-09-09  Bruno Haible  <bruno@clisp.org>
46861
46862         * modules/getcwd (Depends-on): Add malloc-posix.
46863         * modules/glob (Depends-on): Likewise.
46864         * modules/putenv (Depends-on): Likewise.
46865         * modules/strdup (Depends-on): Likewise.
46866         * modules/getdelim (Depends-on): Add realloc-posix.
46867         * modules/read-file (Depends-on): Likewise.
46868
46869 2007-09-09  Bruno Haible  <bruno@clisp.org>
46870
46871         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
46872         (gl_FUNC_MALLOC_POSIX): Require it.
46873         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
46874         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
46875         * modules/realloc (Files): Add m4/malloc.m4.
46876         * modules/calloc (Files): Likewise.
46877
46878 2007-09-09  Bruno Haible  <bruno@clisp.org>
46879
46880         * modules/malloc-posix: New file.
46881         * modules/malloc (Depends-on): Add malloc-posix.
46882         * lib/malloc.c: Include errno.h.
46883         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
46884         and a POSIX-compatible malloc into a single function. Set ENOMEM
46885         when returning NULL.
46886         * m4/malloc.m4: New file.
46887         * doc/functions/malloc.texi: Mention the malloc-posix module.
46888         * lib/stdlib_.h (malloc): New declaration.
46889         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46890         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
46891         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
46892         and HAVE_MALLOC_POSIX.
46893
46894 2007-09-09  Bruno Haible  <bruno@clisp.org>
46895
46896         * modules/realloc-posix: New file.
46897         * modules/realloc (Depends-on): Add realloc-posix.
46898         * lib/realloc.c: Include errno.h.
46899         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
46900         and a POSIX-compatible realloc into a single function. Set ENOMEM
46901         when returning NULL.
46902         * m4/realloc.m4: New file.
46903         * doc/functions/realloc.texi: Mention the realloc-posix module.
46904         * lib/stdlib_.h (realloc): New declaration.
46905         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46906         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
46907         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
46908         and HAVE_REALLOC_POSIX.
46909
46910 2007-09-09  Bruno Haible  <bruno@clisp.org>
46911
46912         * modules/calloc-posix: New file.
46913         * modules/calloc (Depends-on): Add calloc-posix.
46914         * lib/calloc.c: Include errno.h.
46915         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
46916         and a POSIX-compatible calloc into a single function. Set ENOMEM
46917         when returning NULL.
46918         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46919         * doc/functions/calloc.texi: Mention the calloc-posix module.
46920         * lib/stdlib_.h (calloc): New declaration.
46921         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46922         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
46923         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
46924         and HAVE_CALLOC_POSIX.
46925
46926 2007-09-09  Bruno Haible  <bruno@clisp.org>
46927
46928         Allow for modules to show an arbitrary notice.
46929         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
46930         * gnulib-tool: New option --extract-notice.
46931         (func_usage): Document it.
46932         (sed_extract_prog): Update.
46933         (func_get_notice): New function.
46934         (func_modules_notice): New function.
46935         (func_import, func_create_testdir): Invoke it.
46936         Suggested by Jim Meyering.
46937
46938 2007-09-09  Bruno Haible  <bruno@clisp.org>
46939
46940         * gnulib-tool: New options --verbose, --quiet.
46941         (func_usage): Document them.
46942         (verbose): New variable.
46943         (func_execute_command): New function.
46944         (func_import): Don't show the module list and the file list if
46945         $verbose < 0.
46946         (func_create_testdir): Likewise. Use func_execute_command.
46947         (func_create_megatestdir): Use func_execute_command.
46948
46949 2007-09-08  Bruno Haible  <bruno@clisp.org>
46950
46951         * gnulib-tool (func_import): Prefer rsync over wget when available,
46952         for fetching the PO files.
46953
46954 2007-09-08  Bruno Haible  <bruno@clisp.org>
46955
46956         * posix-modules: New file. Portions copied from gnulib-tool.
46957         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
46958
46959 2007-09-08  Jim Meyering  <jim@meyering.net>
46960
46961         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
46962         * lib/fpending.h: Rename from __fpending.h.
46963         * lib/fpending.c: Rename from __fpending.c.
46964         Include "fpending.h", not "__fpending.h".
46965         * lib/__fpending.h, lib/__fpending.c: Remove files.
46966         * modules/fpending (Files): Reflect new file names.
46967         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
46968
46969 2007-09-08  Bruno Haible  <bruno@clisp.org>
46970
46971         * m4/inttypes-h.m4: Remove stub file.
46972
46973 2007-09-07  Simon Josefsson  <simon@josefsson.org>
46974
46975         * doc/headers/stdint.texi: Discuss #include_next issue.
46976
46977 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46978
46979         * build-aux/bootstrap: Remove obsolete comment about wget --help.
46980
46981 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46982
46983         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
46984         in variable name.
46985
46986 2007-09-03  Jim Meyering  <jim@meyering.net>
46987
46988         New module: git-version-gen.
46989         * modules/git-version-gen: New file.
46990
46991         Import changes from coreutils for bootstrap script.
46992
46993         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
46994
46995         bootstrap: uses rsync to download the .po files
46996         * build-aux/bootstrap (po_download_command_format): New global.
46997         (download_po_files): Use rsync.
46998         (update_po_files): Don't remove .po files after download,
46999         so future rsync runs can take advantage of the copies.
47000
47001         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
47002
47003         Solve the unnecessary-.po-file-regeneration problem once and for all.
47004         * build-aux/bootstrap (download_po_files): New function, renamed from
47005         get_translations.  Now, downloads, but doesn't update LINGUAS.
47006         (update_po_files): New function.
47007
47008         bootstrap: Ignore more.
47009         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
47010         uniwidth to e.g., lib/.gitignore.
47011         (slurp): Handle the sys_stat_.h -> sys mapping, too.
47012
47013         * build-aux/bootstrap: New setting: vc_ignore.
47014         (insert_sorted_if_absent): Create $file if absent.
47015         Adapt to new, possibly empty, list: $vc_ignore.
47016
47017         bootstrap: generate more ignorable names
47018         * build-aux/bootstrap (slurp): When generating ignorable names,
47019         also map .sin to .sed, .gperf to .c, and .y to .c.
47020
47021 2007-09-03  Jim Meyering  <jim@meyering.net>
47022
47023         * build-aux/git-version-gen: New file, from coreutils.  For details, see
47024         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
47025
47026 2007-09-02  Bruno Haible  <bruno@clisp.org>
47027
47028         Fix mis-recognition of 'mcs' on QNX 6.
47029         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
47030         output contains the string "Mono".
47031         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
47032         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
47033
47034 2007-09-01  Bruno Haible  <bruno@clisp.org>
47035
47036         Fix collision between uniwidth/* and linebreak modules.
47037         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
47038         u32_width): Remove declarations.
47039         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
47040         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
47041         streq3, streq2, streq1, streq0): Remove functions.
47042         (STREQ): Remove macro.
47043         (is_cjk_encoding): Remove function.
47044         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
47045         (uc_width, u8_width, u16_width, u32_width): Remove functions.
47046         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
47047         * NEWS: Document the change.
47048
47049 2007-09-01  Bruno Haible  <bruno@clisp.org>
47050
47051         * lib/streq.h: Add double-inclusion guard.
47052
47053 2007-09-01  Karl Berry  <karl@gnu.org>
47054
47055         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
47056
47057 2007-08-28  Jim Meyering  <jim@meyering.net>
47058
47059         Rename mreadlink_with_size to areadlink_with_size.
47060         * NEWS: Document the change.
47061         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
47062         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
47063         * lib/mreadlink.h: Rename this to...
47064         * lib/areadlink.h: ...this.
47065         * modules/mreadlink-with-size: Rename this to...
47066         * modules/areadlink-with-size: ...this.
47067         * lib/canonicalize.c: Reflect the renaming.
47068         * modules/canonicalize: Likewise.
47069
47070 2007-08-26  Bruno Haible  <bruno@clisp.org>
47071
47072         * gnulib-tool (func_import): When deciding which files to remove,
47073         consider also dangling symbolic links.
47074         Reported by Eric Blake.
47075
47076 2007-08-26  Bruno Haible  <bruno@clisp.org>
47077
47078         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
47079
47080 2007-08-23  Simon Josefsson  <simon@josefsson.org>
47081
47082         * lib/readline.c: Don't include getline.h, the prototype is now
47083         found in stdio.h.
47084
47085 2007-08-23  Jim Meyering  <jim@meyering.net>
47086
47087         Getdelim touchup.
47088         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
47089         around the funlockfile call, since funlockfile never sets errno.
47090         Don't set errno upon failed realloc.
47091
47092 2007-08-22  Eric Blake  <ebb9@byu.net>
47093
47094         Getline touchups.
47095         * lib/getdelim.c (getdelim): Revert regression that required *n to
47096         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
47097         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
47098         getdelim, rather than whether implementation is missing.
47099         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
47100         * lib/stdio_.h (getline): Also declare if replacement is
47101         required.
47102         * doc/functions/getdelim.texi: New file.
47103         * doc/functions/getline.texi: Likewise.
47104         * doc/gnulib.texi (Function Substitutes): Add new files.
47105         Reported by Bruno Haible.
47106
47107 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
47108
47109         * users.txt: Add Guile.
47110
47111 2007-08-22  Eric Blake  <ebb9@byu.net>
47112
47113         * tests/test-getdelim.c (main): Use remove, not unlink.
47114         * tests/test-getline.c (main): Likewise.
47115
47116         Move getline and getdelim into stdio.h, per POSIX 200x.
47117         * modules/getline (Files): Remove getline.h.
47118         (Depends-on): Add stdio.
47119         (configure.ac): Add module indicator.
47120         * modules/getdelim (Files): Remove getdelim.h.
47121         (Depends-on): Add stdio.
47122         (configure.ac): Add module indicator.
47123         * modules/stdio (Makefile.am): Work with new indicators.
47124         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
47125         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
47126         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47127         * lib/getdelim.h: Delete.
47128         * lib/getline.h: Delete.
47129         * lib/stdio_.h (getdelim, getline): Declare.
47130         * modules/getdelim-tests: New module.
47131         * modules/getline-tests: Likewise.
47132         * tests/test-getdelim.c: New file.
47133         * tests/test-getline.c: Likewise.
47134         * NEWS: Document the change.
47135         * lib/getline.c: Update choice of header.
47136         * lib/csharpcomp.c: Likewise.
47137         * lib/getpass.c: Likewise.
47138         * lib/javacomp.c: Likewise.
47139         * lib/javaversion.c: Likewise.
47140         * lib/yesno.c: Likewise.
47141         * lib/getdelim.c: Likewise.
47142         (getdelim): Set errno on failure, and avoid memory leak.
47143
47144 2007-08-19  Bruno Haible  <bruno@clisp.org>
47145
47146         * modules/closein (Depends-on): Add freadahead.
47147         * lib/closein.c: Include freadahead.h.
47148         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
47149         is zero.
47150
47151 2007-08-19  Bruno Haible  <bruno@clisp.org>
47152
47153         * modules/freadahead-tests: New file.
47154         * tests/test-freadahead.sh: New file.
47155         * tests/test-freadahead.c: New file.
47156
47157         * modules/freadahead: New file.
47158         * lib/freadahead.h: New file.
47159         * lib/freadahead.c: New file.
47160         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
47161         fbufmode, fpurge, freadable, fwritable.
47162
47163 2007-08-19  Eric Blake  <ebb9@byu.net>
47164
47165         Test yesno in combination with closein.
47166         * lib/yesno.c (yesno): Document use of stdin.
47167         * modules/yesno-tests (Files): New module.
47168         * tests/test-yesno.c (main): New file.
47169         * tests/test-yesno.sh: Likewise.
47170
47171 2007-08-19  Bruno Haible  <bruno@clisp.org>
47172
47173         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
47174         * lib/fseeko.c (rpl_fseeko): Likewise.
47175         * lib/fseterr.c (fseterr): Likewise.
47176
47177 2007-08-19  Bruno Haible  <bruno@clisp.org>
47178
47179         * tests/test-lseek.c (main): Disable a test for BeOS.
47180         * doc/functions/lseek.texi: Document the BeOS bug.
47181
47182 2007-08-19  Bruno Haible  <bruno@clisp.org>
47183             Eric Blake  <ebb9@byu.net>
47184
47185         * lib/lseek.c: Include <sys/stat.h>.
47186         (rpl_lseek): Add workaround code also for Unix platforms.
47187         Needed for BeOS.
47188         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
47189         * doc/functions/lseek.texi: Document BeOS definiency.
47190
47191 2007-08-18  Bruno Haible  <bruno@clisp.org>
47192
47193         * modules/fstrcmp-tests: New file.
47194         * tests/test-fstrcmp.c: New file.
47195
47196 2007-08-18  Bruno Haible  <bruno@clisp.org>
47197
47198         * modules/fstrcmp: New file, from GNU gettext with modifications.
47199         * lib/fstrcmp.h: New file, from GNU gettext.
47200         * lib/fstrcmp.c: New file, from GNU gettext.
47201         * MODULES.html.sh (String handling): Add fstrcmp.
47202
47203 2007-08-18  Bruno Haible  <bruno@clisp.org>
47204
47205         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
47206         'bool'.
47207         (diag, compareseq): Remove const from the ctxt argument.
47208         (USE_HEURISTIC): Undefine at the end.
47209
47210 2007-08-18  Jim Meyering  <jim@meyering.net>
47211
47212         New file: lib/idcache.h
47213         * NEWS: Mention the addition.
47214         * modules/idcache (Files): Add lib/idcache.h
47215         * lib/idcache.c: Include "idcache.h".
47216         Don't include <sys/types.h>.
47217         Add a FIXME comment.
47218         Move file-scoped "static" declarations to the top.
47219         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
47220
47221 2007-08-17  Bruno Haible  <bruno@clisp.org>
47222         and Paul Eggert  <eggert@cs.ucla.edu>
47223
47224         * MODULES.html.sh: Add diffseq.
47225         * modules/diffseq: New file.
47226         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
47227         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
47228
47229 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47230
47231         Import changes from coreutils for bootstrap script.
47232
47233         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
47234
47235         * build-aux/bootstrap (slurp): Work even in environments where
47236         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
47237         current code does not slurp files whose names start with ".", and
47238         this looks like it might be a troublesome area.
47239
47240         2007-07-11  Jim Meyering  <jim@meyering.net>
47241
47242         If there's a GPL vN copyright comment, require that N == 3.
47243
47244         2007-07-08  Jim Meyering  <jim@meyering.net>
47245
47246         Run the coreutils-specific code only if tests/Makefile.am.in exists.
47247         * build-aux/bootstrap (mam_template): Move definition out of loop.
47248
47249         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
47250
47251         * build-aux/bootstrap (symlink_to_dir): Rename function from
47252         symlink_to_gnulib.  Add a directory parameter.  Update all
47253         callers.
47254         (cp_mark_as_generated): Also check for -- and link to -- files in
47255         gl/.
47256
47257         2007-07-08  Jim Meyering  <jim@meyering.net>
47258
47259         Adapt to deeper hierarchy in gnulib.
47260         * build-aux/bootstrap (symlink_to_dir): If the destination
47261         directory doesn't exist, create it. This is required at least for
47262         "lib/uniwidth/cjk.h".
47263
47264         2007-05-15  Jim Meyering  <jim@meyering.net>
47265
47266         * build-aux/bootstrap: Now that generated Makefile.am files
47267         are no longer under version control, they must be created at
47268         bootstrap time.
47269
47270 2007-08-14  Ben Pfaff  <blp@gnu.org>
47271
47272         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
47273
47274 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47275
47276         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
47277         given the changes below.
47278         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
47279         even on hosts that have padding bits beyond the supported 64.
47280
47281 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47282
47283         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
47284         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
47285         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
47286         depends on it.
47287         (xstrtol_error): Remove.
47288         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
47289         but with a different signature.
47290         (ATTRIBUTE_NORETURN, __attribute__): New macros.
47291         * lib/xstrtol-error.c: Include exitfail.h.
47292         (xstrtol_fatal): New function, with a different signature from the
47293         old xstrtol_error, so that the caller need not worry about passing
47294         in an exit status, or about storage management of the option argument.
47295         (xstrtol_error): Now a static function.  Redo signature to
47296         implement xstrtol_fatal.  Output the correct number of hyphens in
47297         front of the option so that the caller need not worry about
47298         storage management.
47299         (N_): New macro.
47300         (_): Remove; not used now.
47301         * modules/xstrtol: Depend on getopt.
47302         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
47303         of old STRTOL_FATAL_ERROR macro.
47304         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
47305         of test program.
47306         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
47307         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
47308
47309 2007-08-08  Eric Blake  <ebb9@byu.net>
47310
47311         * lib/xstrtol-error.c: Add missing include.
47312
47313         Move xstrtol messages into gnulib domain, when --pobase is used.
47314         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
47315         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
47316         * modules/xstrtol (Files): Distribute new file.
47317         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
47318         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
47319         * tests/test-xstrtol.c: ...into new file.
47320         * tests/test-xstrtoul.c: Also test xstrtoul.
47321         * tests/test-xstrtoimax.c: Also test xstrtoimax.
47322         * tests/test-xstrtoumax.c: Also test xstrtoumax.
47323         * tests/test-xstrtol.sh: Drive the tests.
47324         * tests/test-xstrtoimax.sh: Likewise.
47325         * tests/test-xstrtoumax.sh: Likewise.
47326         * modules/xstrtol-tests: New module.
47327         * modules/xstrtoimax-tests: Likewise.
47328         * modules/xstrtoumax-tests: Likewise.
47329
47330 2007-08-08  Jim Meyering  <jim@meyering.net>
47331
47332         New function: mfile_name_concat.
47333         * lib/filenamecat.c (mfile_name_concat): New function, just like
47334         file_name_concat, but return NULL upon failure rather than exiting
47335         with a diagnostic.
47336         * lib/filenamecat.h: Declare it.
47337
47338 2007-08-07  Bruno Haible  <bruno@clisp.org>
47339
47340         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
47341         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
47342         warning from gcc.
47343         Reported by Eric Blake.
47344
47345 2007-08-07  Simon Josefsson  <simon@josefsson.org>
47346
47347         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
47348         * modules/crypto/arcfour (License): Likewise.
47349         * modules/crypto/des-tests (License): Likewise.
47350         * modules/crypto/gc-arctwo-tests (License): Likewise.
47351         * modules/crypto/gc-des-tests (License): Likewise.
47352         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
47353         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
47354         * modules/crypto/gc-md2-tests (License): Likewise.
47355         * modules/crypto/gc-md4-tests (License): Likewise.
47356         * modules/crypto/gc-md5-tests (License): Likewise.
47357         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
47358         * modules/crypto/gc-rijndael-tests (License): Likewise.
47359         * modules/crypto/gc-sha1-tests (License): Likewise.
47360         * modules/crypto/gc-tests (License): Likewise.
47361         * modules/crypto/hmac-md5 (License): Likewise.
47362         * modules/crypto/hmac-sha1 (License): Likewise.
47363         * modules/crypto/md2-tests (License): Likewise.
47364         * modules/crypto/md4-tests (License): Likewise.
47365         * modules/crypto/md5 (License): Likewise.
47366         * modules/crypto/rijndael (License): Likewise.
47367         * modules/crypto/sha1 (License): Likewise.
47368         * modules/memxor (License): Likewise.
47369
47370 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
47371         and Bruno Haible  <bruno@clisp.org>
47372
47373         * NEWS: Describe interface changes to human, xstrtol.
47374         * lib/human.h: Include <xstrtol.h>.
47375         (human_options): Return enum strtol_error, not int.  Remove
47376         bool arg; take int * instead.
47377         * lib/human.c: Don't include "gettext.h".
47378         (_): Remove; no longer used.
47379         Don't include <xstrtol.h>, since human.h does it.
47380         (human_options): Adjust to abovementioned interface changes.
47381         Do not report error to stderr; that's now the caller's
47382         responsibility.
47383         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
47384         interface change.
47385         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
47386         Str, Argument_type_string.  All uses changed.  Put " argument"
47387         in diagnostics to make them clearer.  Change wording of suffix
47388         message for clarity.
47389         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
47390         Argument_type_string.
47391         (STRTOL_FATAL_WARN): Remove; no longer used.
47392         * modules/human (Depends-on): Remove gettext-h.
47393
47394 2007-08-06  Simon Josefsson  <simon@josefsson.org>
47395
47396         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
47397
47398 2007-07-31  Bruno Haible  <bruno@clisp.org>
47399
47400         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
47401         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
47402         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
47403
47404 2007-07-31  Bruno Haible  <bruno@clisp.org>
47405
47406         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
47407         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
47408
47409 2007-07-30  Bruno Haible  <bruno@clisp.org>
47410
47411         * modules/base64 (License): Use the synonymous term "LGPLv2+".
47412         * modules/c-ctype (License): Likewise.
47413         * modules/c-strcase (License): Likewise.
47414         * modules/check-version (License): Likewise.
47415         * modules/iconv (License): Likewise.
47416         * modules/iconv_open (License): Likewise.
47417         * modules/read-file (License): Likewise.
47418         * modules/striconv (License): Likewise.
47419         * modules/strverscmp (License): Likewise.
47420         * modules/vasprintf (License): Likewise.
47421         * modules/crypto/des (License): Likewise.
47422         * modules/crypto/gc (License): Likewise.
47423         * modules/crypto/gc-arcfour (License): Likewise.
47424         * modules/crypto/gc-arctwo (License): Likewise.
47425         * modules/crypto/gc-des (License): Likewise.
47426         * modules/crypto/gc-hmac-md5 (License): Likewise.
47427         * modules/crypto/gc-hmac-sha1 (License): Likewise.
47428         * modules/crypto/gc-md2 (License): Likewise.
47429         * modules/crypto/gc-md4 (License): Likewise.
47430         * modules/crypto/gc-md5 (License): Likewise.
47431         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
47432         * modules/crypto/gc-random (License): Likewise.
47433         * modules/crypto/gc-rijndael (License): Likewise.
47434         * modules/crypto/gc-sha1 (License): Likewise.
47435         * modules/crypto/md2 (License): Likewise.
47436         * modules/crypto/md4 (License): Likewise.
47437
47438 2007-07-30  Jim Meyering  <jim@meyering.net>
47439
47440         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
47441         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
47442         it has valid stat data.  This bug would cause du not to count the
47443         sizes of inaccessible directories.
47444         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
47445         in <http://bugzilla.redhat.com/250077>.
47446
47447 2007-07-25  Peter O'Gorman  <peter@pogma.com>
47448             Bruno Haible  <bruno@clisp.org>
47449
47450         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
47451         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
47452         #include_next, gives a diagnostic about it, but reports no error in
47453         the exit code.
47454         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47455
47456 2007-07-24  Ben Pfaff  <blp@gnu.org>
47457
47458         Improve name: "count-one-bits" is better than "popcount".
47459         * MODULES.html.sh: Update name.
47460         * lib/popcount.h: Renamed lib/count-one-bits.h.
47461         (popcount): Renamed count_one_bits.
47462         (popcountl): Renamed count_one_bits_l.
47463         (popcountll): Renamed count_one_bits_ll.
47464         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
47465         * modules/popcount: Renamed module/count-one-bits.
47466         * modules/popcount-tests: Renamed module/count-one-bits-tests.
47467         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
47468
47469 2007-07-23  Ben Pfaff  <blp@gnu.org>
47470
47471         * lib/popcount.h (popcount32): Reduce size of constants, to allow
47472         better code generation, and add U to large constants to avoid
47473         warnings, in non-GCC case.
47474         Suggested by Bruno Haible.
47475
47476 2007-07-23  Ben Pfaff  <blp@gnu.org>
47477
47478         * lib/popcount.h: Use verify_true instead of if...abort.
47479         * modules/popcount: Depend on verify module.
47480         Suggested by Jim Meyering.
47481
47482 2007-07-23  Bruno Haible  <bruno@clisp.org>
47483
47484         * gnulib-tool (func_import): Create a .cvsignore file also when the
47485         directory is not yet in CVS but the toplevel directory is. When
47486         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
47487         Reported by Karl Berry.
47488
47489 2007-07-22  Ben Pfaff  <blp@gnu.org>
47490
47491         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
47492         case.
47493         Suggested by Eric Blake.
47494
47495 2007-07-22  Ben Pfaff  <blp@gnu.org>
47496
47497         New module: popcount.
47498         * MODULES.html.sh: Add popcount.
47499         * modules/popcount: New file.
47500         * modules/popcount-tests: New file.
47501         * tests/test-popcount.c: New file.
47502         * lib/popcount.h: New file.
47503         * m4/popcount.m4: New file.
47504
47505 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47506
47507         * build-aux/announce-gen: Update to GPLv3.
47508
47509         * build-aux/config.guess: Update from config.
47510
47511 2007-07-21  Bruno Haible  <bruno@clisp.org>
47512
47513         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
47514         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
47515
47516 2007-07-20  Jim Meyering  <jim@meyering.net>
47517
47518         * check-module: Diagnose a self-dependency.
47519
47520 2007-07-19  Bruno Haible  <bruno@clisp.org>
47521
47522         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
47523         empty.
47524         Reported by Eric Blake.
47525
47526 2007-07-18  Bruno Haible  <bruno@clisp.org>
47527
47528         * gnulib-tool: New options --po-base, --po-domain.
47529         (func_usage): Document them.
47530         (pobase, po_domain): New variables.
47531         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
47532         DEFAULT_TEXT_DOMAIN.
47533         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
47534         (func_import): Consider pobase and po_domain. Create a po/ directory.
47535         (func_create_testdir): Set pobase and po_domain to empty.
47536         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
47537         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
47538
47539 2007-07-18  Bruno Haible  <bruno@clisp.org>
47540
47541         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47542         EXTRA_DIST augmentation for files in build-aux/.
47543
47544 2007-07-16  Bruno Haible  <bruno@clisp.org>
47545
47546         * modules/lseek (License): Use the synonymous term "LGPLv2+".
47547         * modules/getdelim (License): Likewise.
47548
47549 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47550
47551         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
47552         * modules/d-type (License): Likewise.
47553         * modules/extensions (License): Likewise.
47554         * modules/fnmatch (License): Likewise.
47555         * modules/fseeko (License): Likewise.
47556         * modules/getaddrinfo (License): Likewise.
47557         * modules/getline (License): Likewise.
47558         * modules/getlogin_r (License): Likewise.
47559         * modules/getpass (License): Likewise.
47560         * modules/gettimeofday (License): Likewise.
47561         * modules/glob (License): Likewise.
47562         * modules/inet_ntop (License): Likewise.
47563         * modules/malloc (License): Likewise.
47564         * modules/malloca (License): Likewise.
47565         * modules/memmem (License): Likewise.
47566         * modules/mempcpy (License): Likewise.
47567         * modules/memset (License): Likewise.
47568         * modules/minmax (License): Likewise.
47569         * modules/mktime (License): Likewise.
47570         * modules/netinet_in (License): Likewise.
47571         * modules/pathmax (License): Likewise.
47572         * modules/poll (License): Likewise.
47573         * modules/regex (License): Likewise.
47574         * modules/snprintf (License): Likewise.
47575         * modules/stdbool (License): Likewise.
47576         * modules/stdint (License): Likewise.
47577         * modules/stdio (License): Likewise.
47578         * modules/strcase (License): Likewise.
47579         * modules/strcasestr (License): Likewise.
47580         * modules/strdup (License): Likewise.
47581         * modules/string (License): Likewise.
47582         * modules/strndup (License): Likewise.
47583         * modules/strnlen (License): Likewise.
47584         * modules/strpbrk (License): Likewise.
47585         * modules/strptime (License): Likewise.
47586         * modules/strsep (License): Likewise.
47587         * modules/sys_select (License): Likewise.
47588         * modules/sys_socket (License): Likewise.
47589         * modules/sys_stat (License): Likewise.
47590         * modules/sys_time (License): Likewise.
47591         * modules/time (License): Likewise.
47592         * modules/time_r (License): Likewise.
47593         * modules/timegm (License): Likewise.
47594         * modules/unistd (License): Likewise.
47595         * modules/vsnprintf (License): Likewise.
47596         * modules/wctype (License): Likewise.
47597
47598 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47599
47600         * modules/argz (License): LGPLv2+.
47601
47602 2007-07-15  Karl Berry  <karl@gnu.org>
47603
47604         * doc/gnulib.texi: revise node structure per new fdl.texi.
47605
47606 2007-07-14  Bruno Haible  <bruno@clisp.org>
47607
47608         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
47609         the output file.
47610         * lib/uniname/uninames.h: Regenerated.
47611
47612 2007-07-14  Karl Berry  <karl@gnu.org>
47613
47614         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
47615         omitting sectioning and index commands.
47616
47617 2007-07-13  Bruno Haible  <bruno@clisp.org>
47618
47619         New gnulib-tool option --more-symlinks.
47620         * gnulib-tool (func_usage): Document --more-symlinks.
47621         (do_copyrights): New variable.
47622         Recognize option --more-symlinks.
47623         (func_import): Don't add a copyright notice transform to
47624         sed_transform_lib_file if do_copyrights is empty.
47625
47626 2007-07-13  Bruno Haible  <bruno@clisp.org>
47627
47628         * lib/vasnprintf.c (decimal_point_char): Define also if
47629         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
47630         && !NEED_PRINTF_DIRECTIVE_A.
47631         Reported by Clemens Koller <clemens.koller@anagramm.de> via
47632         Gary V. Vaughan <gary@gnu.org>.
47633
47634 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
47635
47636         * lib/inttypes_.h: Undo previous change, since it was fixed
47637         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
47638
47639 2007-07-13  Bruno Haible  <bruno@clisp.org>
47640
47641         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
47642         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
47643
47644 2007-07-13  Jim Meyering  <jim@meyering.net>
47645
47646         df: Don't fail for Tru64's "file-on-file mount".
47647         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
47648         so we fall through and use statfs instead.  Details here:
47649         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
47650         Reported by Albert Chin.
47651
47652 2007-07-13  Bruno Haible  <bruno@clisp.org>
47653
47654         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
47655         * modules/configmake (License): Likewise.
47656         * modules/gettext (License): Likewise.
47657         * modules/gettext-h (License): Likewise.
47658         * modules/include_next (License): Likewise.
47659         * modules/link-warning (License): Likewise.
47660         * modules/localcharset (License): Likewise.
47661         * modules/localename (License): Likewise.
47662         * modules/lock (License): Likewise.
47663         * modules/relocatable-lib-lgpl (License): Likewise.
47664         * modules/size_max (License): Likewise.
47665         * modules/vasnprintf (License): Likewise.
47666         * modules/wchar (License): Likewise.
47667         * modules/xsize (License): Likewise.
47668
47669 2007-07-13  Bruno Haible  <bruno@clisp.org>
47670
47671         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
47672         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
47673
47674 2007-07-12  Bruno Haible  <bruno@clisp.org>
47675
47676         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
47677         in the modules files.
47678
47679 2007-07-11  Karl Berry  <karl@gnu.org>
47680
47681         * MODULES.html.sh (func_module): use
47682          sed -e '\|^'"${includefile}"'$|d'
47683          instead of /.../d, to avoid errors on $includefile's containing /.
47684
47685 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47686
47687         * gnulib-tool (func_import): Avoid duplication of --avoid
47688         statements
47689         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
47690         names to `_' in variable names.
47691
47692 2007-07-10  Eric Blake  <ebb9@byu.net>
47693
47694         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
47695         * NEWS: Document this change.
47696
47697 2007-07-08  Bruno Haible  <bruno@clisp.org>
47698
47699         Update to Unicode 5.0.
47700         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
47701         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
47702         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
47703         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
47704         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
47705         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
47706         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
47707         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
47708         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
47709         U+10A3F, U+1D242..U+1D244.
47710         (nonspacing_table_ind): Update.
47711         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
47712         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
47713
47714 2007-07-08  Bruno Haible  <bruno@clisp.org>
47715
47716         Update to Unicode 5.0.
47717         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
47718         code transform. Extend the name index field of unicode_name_to_code and
47719         unicode_code_to_name from 16 to 24 bits.
47720         * lib/uniname/uniname.c (unicode_character_name,
47721         unicode_name_character): Add the range 0x12xxx to the code transform.
47722         * lib/uniname/uninames.h: Regenerated.
47723         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
47724
47725 2007-07-07  Bruno Haible  <bruno@clisp.org>
47726
47727         * modules/wcwidth-tests: New file.
47728         * tests/test-wcwidth.c: New file.
47729
47730         Work around MacOS X wcwidth() bug.
47731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
47732         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
47733         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
47734         original wcwidth in non-UTF-8 locales.
47735         * modules/wcwidth (Depends-on): Add localcharset, streq,
47736         uniwidth/width.
47737         * doc/functions/wcwidth.texi: Update.
47738
47739 2007-07-07  Bruno Haible  <bruno@clisp.org>
47740
47741         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
47742         (wcwidth): New declaration.
47743         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
47744         macros.
47745         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
47746         here. Prepare for creating <wchar.h> unconditionally.
47747         * modules/wchar (Depends-on): Add link-warning.
47748         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
47749         REPLACE_WCWIDTH, and GL_LINK_WARNING.
47750         * lib/wcwidth.h: Remove file.
47751         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
47752         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
47753         * modules/wcwidth (Files): Remove lib/wcwidth.h.
47754         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
47755         (Include): Replace wcwidth.h with <wchar.h>.
47756         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
47757         * lib/mbchar.h: Don't include wcwidth.h.
47758         * lib/mbswidth.c: Likewise.
47759         * NEWS: Mention the change.
47760
47761 2007-07-07  Bruno Haible  <bruno@clisp.org>
47762
47763         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
47764         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
47765         definition with an external declaration.
47766         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
47767         defined as a function. Remove AC_C_INLINE requirement.
47768         * modules/wcwidth (Files): Add lib/wcwidth.c.
47769         (Makefile.am): Remove redundant statement.
47770
47771 2007-07-07  Bruno Haible  <bruno@clisp.org>
47772
47773         * MODULES.html.sh (Unicode string functions): Add the new modules.
47774
47775         * tests/uniwidth/test-u32-strwidth.c: New file.
47776         * modules/uniwidth/u32-strwidth-tests: New file.
47777
47778         * lib/uniwidth/u32-strwidth.c: New file.
47779         * modules/uniwidth/u32-strwidth: New file.
47780
47781         * tests/uniwidth/test-u16-strwidth.c: New file.
47782         * modules/uniwidth/u16-strwidth-tests: New file.
47783
47784         * lib/uniwidth/u16-strwidth.c: New file.
47785         * modules/uniwidth/u16-strwidth: New file.
47786
47787         * tests/uniwidth/test-u8-strwidth.c: New file.
47788         * modules/uniwidth/u8-strwidth-tests: New file.
47789
47790         * lib/uniwidth/u8-strwidth.c: New file.
47791         * modules/uniwidth/u8-strwidth: New file.
47792
47793         * tests/uniwidth/test-u32-width.c: New file.
47794         * modules/uniwidth/u32-width-tests: New file.
47795
47796         * lib/uniwidth/u32-width.c: New file.
47797         * modules/uniwidth/u32-width: New file.
47798
47799         * tests/uniwidth/test-u16-width.c: New file.
47800         * modules/uniwidth/u16-width-tests: New file.
47801
47802         * lib/uniwidth/u16-width.c: New file.
47803         * modules/uniwidth/u16-width: New file.
47804
47805         * tests/uniwidth/test-u8-width.c: New file.
47806         * modules/uniwidth/u8-width-tests: New file.
47807
47808         * lib/uniwidth/u8-width.c: New file.
47809         * modules/uniwidth/u8-width: New file.
47810
47811         * tests/uniwidth/test-uc_width.c: New file.
47812         * modules/uniwidth/width-tests: New file.
47813
47814         * lib/uniwidth/width.c: New file, from GNU libiconv.
47815         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
47816         * modules/uniwidth/width: New file.
47817
47818         * lib/uniwidth.h: New file, from GNU libiconv.
47819         * modules/uniwidth/base: New file.
47820
47821 2007-07-07  Bruno Haible  <bruno@clisp.org>
47822
47823         * lib/uniname.h: New file, from GNU gettext.
47824         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
47825         * lib/uniname/uninames.h: New file, from GNU gettext.
47826         * lib/uniname/uniname.c: New file, from GNU gettext.
47827         * tests/uniname/test-uninames.sh: New file.
47828         * tests/uniname/test-uninames.c: New file, from GNU gettext.
47829         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
47830         * modules/uniname/base: New file.
47831         * modules/uniname/uniname: New file.
47832         * modules/uniname/uniname-tests: New file.
47833         * MODULES.html.sh (Unicode string functions): Add the new modules.
47834
47835 2007-07-06  Bruno Haible  <bruno@clisp.org>
47836
47837         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
47838
47839 2007-07-06  Bruno Haible  <bruno@clisp.org>
47840
47841         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
47842         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
47843         includes <cygwin/sys_time.h> which includes <sys/select.h> which
47844         include <sys/time.h>.
47845         Reported by Eric Blake.
47846
47847 2007-07-06  Eric Blake  <ebb9@byu.net>
47848
47849         Fix testing canonicalize on cygwin.
47850         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47851         Revert patch from 2007-06-19.
47852         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
47853         canonicalize module is also in use.
47854         * tests/test-canonicalize.c: New file.
47855         * tests/test-canonicalize.sh: Likewise.
47856         * modules/canonicalize-tests: Likewise.
47857
47858 2007-07-06  Jim Meyering  <jim@meyering.net>
47859
47860         * lib/getugroups.c (getugroups): Detect getgrent failure.
47861         Adjust comment to reflect reality: this function may return -1.
47862
47863 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47864
47865         * build-aux/bootstrap (TP_URL,get_translations): Update to use
47866         the new TP address.
47867         (usage): Fix typo
47868         (gnulib_mk): New variable.
47869
47870 2007-07-05  Jim Meyering  <jim@meyering.net>
47871
47872         Don't let endgrent clobber errno, no matter how improbable.
47873         * lib/getugroups.c (getugroups): Save and restore errno around
47874         endgrent call.
47875
47876         Close the group DB even when failing with 2^31 or more members.
47877         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
47878
47879 2007-07-04  Jim Meyering  <jim@meyering.net>
47880
47881         * lib/getugroups.h: New file.
47882         * lib/getugroups.c: Include "getugroups.h".
47883         Remove uses of "register" keyword.
47884         Move local variable, "cp", down into scope where used.
47885         Give "username" parameter the "const" attribute.
47886         * modules/getugroups (Files): Add lib/getugroups.h
47887
47888 2007-07-04  Karl Berry  <karl@gnu.org>
47889
47890         * MODULES.html.sh (func_all_modules): Complete rename of
47891         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
47892
47893 2007-07-02  Bruno Haible  <bruno@clisp.org>
47894
47895         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
47896         mode, when inttypes.h comes from gnulib.
47897         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47898
47899 2007-07-02  Simon Josefsson  <simon@josefsson.org>
47900
47901         * NEWS: Mention lgpl module name change.
47902
47903         * modules/lgpl-2.1: Renamed from lgpl.
47904
47905         * NEWS: Mention gpl module name change.
47906
47907         * modules/gpl-3.0: New file, based on gpl-2.0.
47908
47909         * modules/gpl-2.0: Renamed from gpl.
47910
47911         * modules/gpl: Fix filename, doc/gpl.texi is now found at
47912         doc/gpl-2.0.texi.
47913
47914 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47915
47916         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
47917         #define __STDC_LIMIT_MACROS temporarily while including
47918         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47919         Problem reported by Joel E. Denny in
47920         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47921
47922 2007-07-01  Bruno Haible  <bruno@clisp.org>
47923
47924         * lib/unistdio.h: New file.
47925         * lib/unistdio/u-asnprintf.h: New file.
47926         * lib/unistdio/u-asprintf.h: New file.
47927         * lib/unistdio/u-printf-args.c: New file.
47928         * lib/unistdio/u-printf-args.h: New file.
47929         * lib/unistdio/u-printf-parse.h: New file.
47930         * lib/unistdio/u-snprintf.h: New file.
47931         * lib/unistdio/u-sprintf.h: New file.
47932         * lib/unistdio/u-vasprintf.h: New file.
47933         * lib/unistdio/u-vsnprintf.h: New file.
47934         * lib/unistdio/u-vsprintf.h: New file.
47935         * lib/unistdio/ulc-asnprintf.c: New file.
47936         * lib/unistdio/ulc-asprintf.c: New file.
47937         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
47938         * lib/unistdio/ulc-printf-parse.c: New file.
47939         * lib/unistdio/ulc-snprintf.c: New file.
47940         * lib/unistdio/ulc-sprintf.c: New file.
47941         * lib/unistdio/ulc-vasnprintf.c: New file.
47942         * lib/unistdio/ulc-vasprintf.c: New file.
47943         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
47944         * lib/unistdio/ulc-vsnprintf.c: New file.
47945         * lib/unistdio/ulc-vsprintf.c: New file.
47946         * lib/unistdio/u8-asnprintf.c: New file.
47947         * lib/unistdio/u8-asprintf.c: New file.
47948         * lib/unistdio/u8-printf-parse.c: New file.
47949         * lib/unistdio/u8-snprintf.c: New file.
47950         * lib/unistdio/u8-sprintf.c: New file.
47951         * lib/unistdio/u8-vasnprintf.c: New file.
47952         * lib/unistdio/u8-vasprintf.c: New file.
47953         * lib/unistdio/u8-vsnprintf.c: New file.
47954         * lib/unistdio/u8-vsprintf.c: New file.
47955         * lib/unistdio/u8-u8-asnprintf.c: New file.
47956         * lib/unistdio/u8-u8-asprintf.c: New file.
47957         * lib/unistdio/u8-u8-snprintf.c: New file.
47958         * lib/unistdio/u8-u8-sprintf.c: New file.
47959         * lib/unistdio/u8-u8-vasnprintf.c: New file.
47960         * lib/unistdio/u8-u8-vasprintf.c: New file.
47961         * lib/unistdio/u8-u8-vsnprintf.c: New file.
47962         * lib/unistdio/u8-u8-vsprintf.c: New file.
47963         * lib/unistdio/u16-asnprintf.c: New file.
47964         * lib/unistdio/u16-asprintf.c: New file.
47965         * lib/unistdio/u16-printf-parse.c: New file.
47966         * lib/unistdio/u16-snprintf.c: New file.
47967         * lib/unistdio/u16-sprintf.c: New file.
47968         * lib/unistdio/u16-vasnprintf.c: New file.
47969         * lib/unistdio/u16-vasprintf.c: New file.
47970         * lib/unistdio/u16-vsnprintf.c: New file.
47971         * lib/unistdio/u16-vsprintf.c: New file.
47972         * lib/unistdio/u16-u16-asnprintf.c: New file.
47973         * lib/unistdio/u16-u16-asprintf.c: New file.
47974         * lib/unistdio/u16-u16-snprintf.c: New file.
47975         * lib/unistdio/u16-u16-sprintf.c: New file.
47976         * lib/unistdio/u16-u16-vasnprintf.c: New file.
47977         * lib/unistdio/u16-u16-vasprintf.c: New file.
47978         * lib/unistdio/u16-u16-vsnprintf.c: New file.
47979         * lib/unistdio/u16-u16-vsprintf.c: New file.
47980         * lib/unistdio/u32-asnprintf.c: New file.
47981         * lib/unistdio/u32-asprintf.c: New file.
47982         * lib/unistdio/u32-printf-parse.c: New file.
47983         * lib/unistdio/u32-snprintf.c: New file.
47984         * lib/unistdio/u32-sprintf.c: New file.
47985         * lib/unistdio/u32-vasnprintf.c: New file.
47986         * lib/unistdio/u32-vasprintf.c: New file.
47987         * lib/unistdio/u32-vsnprintf.c: New file.
47988         * lib/unistdio/u32-vsprintf.c: New file.
47989         * lib/unistdio/u32-u32-asnprintf.c: New file.
47990         * lib/unistdio/u32-u32-asprintf.c: New file.
47991         * lib/unistdio/u32-u32-snprintf.c: New file.
47992         * lib/unistdio/u32-u32-sprintf.c: New file.
47993         * lib/unistdio/u32-u32-vasnprintf.c: New file.
47994         * lib/unistdio/u32-u32-vasprintf.c: New file.
47995         * lib/unistdio/u32-u32-vsnprintf.c: New file.
47996         * lib/unistdio/u32-u32-vsprintf.c: New file.
47997         * tests/unistdio/test-ulc-asnprintf1.c: New file.
47998         * tests/unistdio/test-ulc-asnprintf1.h: New file.
47999         * tests/unistdio/test-ulc-printf1.h: New file.
48000         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
48001         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
48002         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
48003         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
48004         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
48005         * tests/unistdio/test-ulc-vasprintf1.c: New file.
48006         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
48007         * tests/unistdio/test-ulc-vsprintf1.c: New file.
48008         * tests/unistdio/test-u8-asnprintf1.c: New file.
48009         * tests/unistdio/test-u8-asnprintf1.h: New file.
48010         * tests/unistdio/test-u8-printf1.h: New file.
48011         * tests/unistdio/test-u8-vasnprintf1.c: New file.
48012         * tests/unistdio/test-u8-vasnprintf2.c: New file.
48013         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
48014         * tests/unistdio/test-u8-vasnprintf3.c: New file.
48015         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
48016         * tests/unistdio/test-u8-vasprintf1.c: New file.
48017         * tests/unistdio/test-u8-vsnprintf1.c: New file.
48018         * tests/unistdio/test-u8-vsprintf1.c: New file.
48019         * tests/unistdio/test-u16-asnprintf1.c: New file.
48020         * tests/unistdio/test-u16-asnprintf1.h: New file.
48021         * tests/unistdio/test-u16-printf1.h: New file.
48022         * tests/unistdio/test-u16-vasnprintf1.c: New file.
48023         * tests/unistdio/test-u16-vasnprintf2.c: New file.
48024         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
48025         * tests/unistdio/test-u16-vasnprintf3.c: New file.
48026         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
48027         * tests/unistdio/test-u16-vasprintf1.c: New file.
48028         * tests/unistdio/test-u16-vsnprintf1.c: New file.
48029         * tests/unistdio/test-u16-vsprintf1.c: New file.
48030         * tests/unistdio/test-u32-asnprintf1.c: New file.
48031         * tests/unistdio/test-u32-asnprintf1.h: New file.
48032         * tests/unistdio/test-u32-printf1.h: New file.
48033         * tests/unistdio/test-u32-vasnprintf1.c: New file.
48034         * tests/unistdio/test-u32-vasnprintf2.c: New file.
48035         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
48036         * tests/unistdio/test-u32-vasnprintf3.c: New file.
48037         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
48038         * tests/unistdio/test-u32-vasprintf1.c: New file.
48039         * tests/unistdio/test-u32-vsnprintf1.c: New file.
48040         * tests/unistdio/test-u32-vsprintf1.c: New file.
48041         * modules/unistdio/base: New file.
48042         * modules/unistdio/u-printf-args: New file.
48043         * modules/unistdio/ulc-asnprintf: New file.
48044         * modules/unistdio/ulc-asprintf: New file.
48045         * modules/unistdio/ulc-fprintf: New file.
48046         * modules/unistdio/ulc-printf-parse: New file.
48047         * modules/unistdio/ulc-snprintf: New file.
48048         * modules/unistdio/ulc-sprintf: New file.
48049         * modules/unistdio/ulc-vasnprintf: New file.
48050         * modules/unistdio/ulc-vasprintf: New file.
48051         * modules/unistdio/ulc-vfprintf: New file.
48052         * modules/unistdio/ulc-vsnprintf: New file.
48053         * modules/unistdio/ulc-vsprintf: New file.
48054         * modules/unistdio/u8-asnprintf: New file.
48055         * modules/unistdio/u8-asprintf: New file.
48056         * modules/unistdio/u8-printf-parse: New file.
48057         * modules/unistdio/u8-snprintf: New file.
48058         * modules/unistdio/u8-sprintf: New file.
48059         * modules/unistdio/u8-vasnprintf: New file.
48060         * modules/unistdio/u8-vasprintf: New file.
48061         * modules/unistdio/u8-vsnprintf: New file.
48062         * modules/unistdio/u8-vsprintf: New file.
48063         * modules/unistdio/u8-u8-asnprintf: New file.
48064         * modules/unistdio/u8-u8-asprintf: New file.
48065         * modules/unistdio/u8-u8-snprintf: New file.
48066         * modules/unistdio/u8-u8-sprintf: New file.
48067         * modules/unistdio/u8-u8-vasnprintf: New file.
48068         * modules/unistdio/u8-u8-vasprintf: New file.
48069         * modules/unistdio/u8-u8-vsnprintf: New file.
48070         * modules/unistdio/u8-u8-vsprintf: New file.
48071         * modules/unistdio/u16-asnprintf: New file.
48072         * modules/unistdio/u16-asprintf: New file.
48073         * modules/unistdio/u16-printf-parse: New file.
48074         * modules/unistdio/u16-snprintf: New file.
48075         * modules/unistdio/u16-sprintf: New file.
48076         * modules/unistdio/u16-vasnprintf: New file.
48077         * modules/unistdio/u16-vasprintf: New file.
48078         * modules/unistdio/u16-vsnprintf: New file.
48079         * modules/unistdio/u16-vsprintf: New file.
48080         * modules/unistdio/u16-u16-asnprintf: New file.
48081         * modules/unistdio/u16-u16-asprintf: New file.
48082         * modules/unistdio/u16-u16-snprintf: New file.
48083         * modules/unistdio/u16-u16-sprintf: New file.
48084         * modules/unistdio/u16-u16-vasnprintf: New file.
48085         * modules/unistdio/u16-u16-vasprintf: New file.
48086         * modules/unistdio/u16-u16-vsnprintf: New file.
48087         * modules/unistdio/u16-u16-vsprintf: New file.
48088         * modules/unistdio/u32-asnprintf: New file.
48089         * modules/unistdio/u32-asprintf: New file.
48090         * modules/unistdio/u32-printf-parse: New file.
48091         * modules/unistdio/u32-snprintf: New file.
48092         * modules/unistdio/u32-sprintf: New file.
48093         * modules/unistdio/u32-vasnprintf: New file.
48094         * modules/unistdio/u32-vasprintf: New file.
48095         * modules/unistdio/u32-vsnprintf: New file.
48096         * modules/unistdio/u32-vsprintf: New file.
48097         * modules/unistdio/u32-u32-asnprintf: New file.
48098         * modules/unistdio/u32-u32-asprintf: New file.
48099         * modules/unistdio/u32-u32-snprintf: New file.
48100         * modules/unistdio/u32-u32-sprintf: New file.
48101         * modules/unistdio/u32-u32-vasnprintf: New file.
48102         * modules/unistdio/u32-u32-vasprintf: New file.
48103         * modules/unistdio/u32-u32-vsnprintf: New file.
48104         * modules/unistdio/u32-u32-vsprintf: New file.
48105         * modules/unistdio/ulc-asnprintf-tests: New file.
48106         * modules/unistdio/ulc-vasnprintf-tests: New file.
48107         * modules/unistdio/ulc-vasprintf-tests: New file.
48108         * modules/unistdio/ulc-vsnprintf-tests: New file.
48109         * modules/unistdio/ulc-vsprintf-tests: New file.
48110         * modules/unistdio/u8-asnprintf-tests: New file.
48111         * modules/unistdio/u8-vasnprintf-tests: New file.
48112         * modules/unistdio/u8-vasprintf-tests: New file.
48113         * modules/unistdio/u8-vsnprintf-tests: New file.
48114         * modules/unistdio/u8-vsprintf-tests: New file.
48115         * modules/unistdio/u16-asnprintf-tests: New file.
48116         * modules/unistdio/u16-vasnprintf-tests: New file.
48117         * modules/unistdio/u16-vasprintf-tests: New file.
48118         * modules/unistdio/u16-vsnprintf-tests: New file.
48119         * modules/unistdio/u16-vsprintf-tests: New file.
48120         * modules/unistdio/u32-asnprintf-tests: New file.
48121         * modules/unistdio/u32-vasnprintf-tests: New file.
48122         * modules/unistdio/u32-vasprintf-tests: New file.
48123         * modules/unistdio/u32-vsnprintf-tests: New file.
48124         * modules/unistdio/u32-vsprintf-tests: New file.
48125         * MODULES.html.sh (Unicode string functions): Add the new modules.
48126
48127 2007-07-01  Bruno Haible  <bruno@clisp.org>
48128
48129         * lib/sprintf.c (sprintf): Limit the available length estimation,
48130         to avoid address wraparound.
48131         * lib/vsprintf.c (vsprintf): Likewise.
48132         * modules/sprintf-posix (Dependencies): Add stdint.
48133         * modules/vsprintf-posix (Dependencies): Likewise.
48134
48135 2007-07-01  Bruno Haible  <bruno@clisp.org>
48136
48137         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
48138         Windows PATH as well. Conservative double-quoting. Comments.
48139
48140 2007-07-01  Bruno Haible  <bruno@clisp.org>
48141             Eric Blake  <ebb9@byu.net>
48142             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48143
48144         * gnulib-tool (self_abspathname): Fix algorithm to cope with
48145         empty components in $PATH, denoting '.'.
48146
48147 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48148
48149         * gnulib-tool: Fix indentation.
48150         (func_create_megatestdir): Likewise.
48151         Report by Bruno Haible.
48152
48153 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48154
48155         Sync from Automake.
48156         * build-aux/gnupload: Fix shell portability issues with for loops.
48157         Report by Karl Berry.
48158
48159 2007-06-29  Simon Josefsson  <simon@josefsson.org>
48160
48161         * build-aux/maint.mk (POURL): Use translationproject.org.
48162
48163 2007-06-27  Simon Josefsson  <simon@josefsson.org>
48164             Bruno Haible  <bruno@clisp.org>
48165
48166         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
48167         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
48168         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
48169         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
48170         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
48171
48172 2007-06-27  Bruno Haible  <bruno@clisp.org>
48173
48174         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
48175         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
48176
48177 2007-06-26  Karl Berry  <karl@gnu.org>
48178
48179         * MODULES.html.sh: remove xreadlink-with-size.
48180
48181 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48182
48183         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
48184         method that I hope also handles the double-include problem noted
48185         by Bruno Haible in
48186         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
48187
48188 2007-06-23  Bruno Haible  <bruno@clisp.org>
48189
48190         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48191         Don't let the 'mostlyclean' target fail if the last subdirectory could
48192         not be removed.
48193         Reported by Karl Berry.
48194
48195 2007-06-23  Bruno Haible  <bruno@clisp.org>
48196
48197         * gnulib-tool (echo): Add a speedier workaround for ksh.
48198         * tests/test-echo.sh: Likewise.
48199
48200 2007-06-23  Bruno Haible  <bruno@clisp.org>
48201
48202         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
48203         * tests/test-echo.sh: Likewise.
48204
48205 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48206
48207         * gnulib-tool (IFS): Initialize early, so we don't set it to
48208         empty later.
48209         (self_abspathname): Rewrite algorithm to set it, reindent.
48210         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
48211         (func_create_megatestdir): Merge some sed scripts.
48212
48213 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48214
48215         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
48216         exposed by Sun Studio 11 cc on Solaris 8.
48217
48218 2007-06-22  Bruno Haible  <bruno@clisp.org>
48219
48220         * gnulib-tool (echo): Ensure the echo primitive does not interpret
48221         backslashes.
48222         * tests/test-echo.sh: New file.
48223
48224 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48225
48226         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
48227         simplify `sed_replace_build_aux' scripts, they are portable but
48228         echoing them with `echo' is not.
48229         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
48230
48231 2007-06-21  Karl Berry  <karl@gnu.org>
48232
48233         * config/srclist.txt: guess we can't handle the licenses via
48234         srclist at the moment.
48235
48236 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
48237
48238         * MODULES.html.sh: Add include_next.
48239         * modules/include_next: New file.
48240
48241 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48242
48243         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
48244         INCLUDE_NEXT.
48245         (gl_CHECK_NEXT_HEADERS): New macro.
48246         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
48247         the obsolescent gl_ABSOLUTE_HEADER.
48248         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
48249         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
48250         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
48251         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48252         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
48253         * m4/math_h.m4 (gl_MATH_H): Likewise.
48254         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48255         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
48256         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48257         * m4/stdint.m4 (gl_STDINT_H): Likewise.
48258         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
48259         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
48260         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
48261         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48262         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48263         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48264         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
48265         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
48266         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48267         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48268         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48269         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48270         * m4/inttypes.m4 (gl_INTTYPES_H): Define
48271         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
48272         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
48273         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
48274         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
48275         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
48276         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
48277         * lib/float_.h: Likewise.
48278         * lib/inttypes_.h: Likewise.
48279         * lib/math_.h: Likewise.
48280         * lib/search_.h: Likewise.
48281         * lib/signal_.h: Likewise.
48282         * lib/stdint_.h: Likewise.
48283         * lib/stdio_.h: Likewise.
48284         * lib/stdlib_.h: Likewise.
48285         * lib/string_.h: Likewise.
48286         * lib/sys_stat_.h: Likewise.
48287         * lib/sys_time_.h: Likewise.
48288         * lib/time_.h: Likewise.
48289         * lib/unistd_.h: Likewise.
48290         * lib/wchar_.h: Likewise.
48291         * lib/wctype_.h: Likewise.
48292         * lib/dirent_.h: Likewise.
48293         * lib/iconv_.h: Likewise.
48294         * lib/locale_.h: Likewise.
48295         * lib/netinet_in_.h: Likewise.
48296         * lib/sys_select_.h: Likewise.
48297         * lib/sys_socket_.h: Likewise.
48298         * lib/sysexits_.h: Likewise.
48299         * modules/fcntl (Depends-on): Depend on include_next, not
48300         absolute_header.
48301         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
48302         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
48303         * modules/fchdir: Likewise.
48304         * modules/float: Likewise.
48305         * modules/iconv_open: Likewise.
48306         * modules/inttypes: Likewise.
48307         * modules/locale: Likewise.
48308         * modules/math: Likewise.
48309         * modules/netinet_in: Likewise.
48310         * modules/search: Likewise.
48311         * modules/signal: Likewise.
48312         * modules/stdint: Likewise.
48313         * modules/stdio: Likewise.
48314         * modules/stdlib: Likewise.
48315         * modules/string: Likewise.
48316         * modules/sys_select: Likewise.
48317         * modules/sys_socket: Likewise.
48318         * modules/sys_stat: Likewise.
48319         * modules/sys_time: Likewise.
48320         * modules/sysexits: Likewise.
48321         * modules/time: Likewise.
48322         * modules/unistd: Likewise.
48323         * modules/wchar: Likewise.
48324         * modules/wctype: Likewise.
48325         * modules/sys_stat: Change maintainer to "all".
48326         * modules/unistd: Likewise.
48327
48328 2007-06-20  Karl Berry  <karl@gnu.org>
48329
48330         * config/srclist.txt: track www changes in license files.
48331
48332 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
48333
48334         * build-aux/bootstrap: Remove stray dot.
48335         Make sure build_aux settings are honored when linking
48336         gnulib_extra_files.
48337
48338 2007-06-19  Eric Blake  <ebb9@byu.net>
48339
48340         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48341         Allow compilation on cygwin.
48342
48343 2007-06-19  Jim Meyering  <jim@meyering.net>
48344
48345         xreadlink-with-size: Remove module.  No longer used.
48346         Ex-callers now use xreadlink or mreadlink-with-size.
48347         * modules/xreadlink-with-size: Remove module.
48348         * lib/xreadlink-with-size.c: Remove file.
48349         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
48350         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
48351         just before the function definition *is* accurate.
48352
48353         Eliminate one way canonicalize_filename_mode could exit.
48354         * lib/canonicalize.c (canonicalize_filename_mode):
48355         Use mreadlink_with_size, not xreadlink_with_size.
48356
48357 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
48358
48359         Detect porting problems to FreeBSD/arm, which has time_t wider than
48360         long int.  Original problem reported for GNU diff by Xin Li in
48361         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
48362         * modules/getdate (Depends-on): Add intprops, verify.
48363         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
48364         is an integer type no wider than long int.
48365
48366 2007-06-18  Jim Meyering  <jim@meyering.net>
48367
48368         New module: mreadlink-with-size.
48369         * MODULES.html.sh: Add mreadlink-with-size.
48370         * modules/mreadlink-with-size: New module
48371         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
48372         not xreadlink-with-size.
48373         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
48374
48375 2007-06-16  Bruno Haible  <bruno@clisp.org>
48376
48377         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
48378         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
48379         Reported by Gary V. Vaughan <gary@gnu.org>.
48380
48381 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
48382
48383         Revamp lchown so that it lives in unistd.h where it belongs.
48384         * lib/lchown.h: Remove.
48385         * lib/dirchownmod.c: Don't include lib/lchown.h.
48386         * lib/fchownat.c: Likewise.
48387         * lib/openat.c: Likewise.
48388         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
48389         does not follow symlinks.
48390         (EOPNOTSUPP): Define if not defined.
48391         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
48392         is defined to 0.
48393         (lchown): New decl.
48394         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
48395         Do not check for lchown decl.
48396         Set REPLACE_LCHOWN.
48397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
48398         REPLACE_LCHOWN.
48399         * modules/chown: Make it clear it follows symlinks.
48400         * modules/lchown: Make it clear it doesn't follow symlinks.
48401         (Files): Remove lib/lchown.h
48402         (Depends-on): Add unistd.
48403         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
48404         (Include): Include <unistd.h>, not "lchown.h".
48405         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
48406         REPLACE_LCHOWN.
48407
48408 2007-06-15  Jim Meyering  <jim@meyering.net>
48409
48410         Change license (GPL to LGPL) of fsusage and dependents.
48411         * modules/fsusage (License): Change to LGPL.
48412         * modules/full-read (License): Likewise.
48413         * modules/full-write (License): Likewise.
48414         * modules/safe-read (License): Likewise.
48415         * modules/safe-write (License): Likewise.
48416
48417 2007-06-14  Ben Pfaff  <blp@gnu.org>
48418
48419         Missing part of allocsa -> malloca transition.
48420         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
48421         gl_MALLOCA.
48422
48423 2007-06-12  Bruno Haible  <bruno@clisp.org>
48424
48425         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
48426         to ia64, x86_64, i386.
48427         Reported by Eric Blake.
48428
48429 2007-06-12  Bruno Haible  <bruno@clisp.org>
48430
48431         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
48432         cross-compiling to x86_64.
48433
48434 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
48435
48436         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
48437         glitch reported by Ralf Wildenhues in
48438         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
48439
48440         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
48441         Vin Shelton.
48442
48443 2007-06-11  Bruno Haible  <bruno@clisp.org>
48444
48445         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
48446         replacement string.
48447         Reported by Eric Blake.
48448
48449 2007-06-10  Bruno Haible  <bruno@clisp.org>
48450
48451         Prepare vasnprintf code for use with Unicode strings.
48452         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
48453         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
48454         TYPE_U32_STRING.
48455         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
48456         a_u32_string variants.
48457         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48458         * lib/printf-args.c: Don't include config.h and the specification
48459         header if PRINTF_FETCHARGS is already defined.
48460         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48461         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
48462         TYPE_U16_STRING, TYPE_U32_STRING.
48463         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
48464         u16_directive, u16_directives, u32_directive, u32_directives): New
48465         types.
48466         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
48467         New declarations.
48468         * lib/printf-parse.c: Don't include config.h and the specification
48469         header if PRINTF_PARSE is already defined. Eliminate the set of
48470         parameters for WIDE_CHAR_VERSION; the user of this file must provide
48471         them now. Include c-ctype.h.
48472         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
48473         directive and CHAR_T_ONLY_ASCII.
48474         * lib/vasnprintf.c: Don't include config.h and the specification header
48475         if VASNPRINTF is already defined.
48476         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
48477         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
48478         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
48479         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
48480         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
48481         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
48482         code accordingly.
48483         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
48484         pad_ourselves also in this case, with the 'c' and 's' directives, and
48485         with a different notion of "width".
48486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
48487
48488 2007-06-10  Bruno Haible  <bruno@clisp.org>
48489
48490         * modules/unistr/u32-mbsnlen: New file.
48491         * lib/unistr/u32-mbsnlen.c: New file.
48492
48493         * modules/unistr/u16-mbsnlen: New file.
48494         * lib/unistr/u16-mbsnlen.c: New file.
48495
48496         * modules/unistr/u8-mbsnlen: New file.
48497         * lib/unistr/u8-mbsnlen.c: New file.
48498
48499         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
48500         declarations.
48501
48502 2007-06-10  Bruno Haible  <bruno@clisp.org>
48503
48504         * lib/string_.h (mbsnlen): New declaration.
48505         * lib/mbsnlen.c: New file.
48506         * m4/mbsnlen.m4: New file.
48507         * modules/mbsnlen: New file.
48508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
48509         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
48510         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
48511
48512 2007-06-10  Bruno Haible  <bruno@clisp.org>
48513
48514         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
48515
48516 2007-06-10  Bruno Haible  <bruno@clisp.org>
48517
48518         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
48519         * lib/mbuiter.h: Likewise.
48520
48521 2007-06-10  Bruno Haible  <bruno@clisp.org>
48522
48523         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
48524         declaration.
48525
48526 2007-06-10  Karl Berry  <karl@gnu.org>
48527
48528         * config/srclist.txt: remove gettext entries, Bruno prefers
48529         to update individually.
48530
48531 2007-06-10  Bruno Haible  <bruno@clisp.org>
48532
48533         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
48534         'maxlen'. Ensure only length + width bytes are allocated, not
48535         length + 1 + width.
48536
48537 2007-06-09  Bruno Haible  <bruno@clisp.org>
48538
48539         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
48540         (CHAR_T): Remove macro.
48541         (VASNPRINTF): Update.
48542
48543 2007-06-09  Bruno Haible  <bruno@clisp.org>
48544
48545         * MODULES.html.sh (Unicode string functions): Add the new modules.
48546
48547         * modules/uniconv/u32-conv-to-enc: New file.
48548         * lib/uniconv/u32-conv-to-enc.c: New file.
48549         * modules/uniconv/u32-conv-to-enc-tests: New file.
48550         * tests/uniconv/test-u32-conv-to-enc.c: New file.
48551
48552         * modules/uniconv/u16-conv-to-enc: New file.
48553         * lib/uniconv/u16-conv-to-enc.c: New file.
48554         * lib/uniconv/u-conv-to-enc.h: New file.
48555         * modules/uniconv/u16-conv-to-enc-tests: New file.
48556         * tests/uniconv/test-u16-conv-to-enc.c: New file.
48557
48558         * modules/uniconv/u8-conv-to-enc: New file.
48559         * lib/uniconv/u8-conv-to-enc.c: New file.
48560         * modules/uniconv/u8-conv-to-enc-tests: New file.
48561         * tests/uniconv/test-u8-conv-to-enc.c: New file.
48562
48563         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48564         u32_conv_to_encoding): New declarations.
48565
48566 2007-06-09  Bruno Haible  <bruno@clisp.org>
48567
48568         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
48569
48570 2007-06-09  Bruno Haible  <bruno@clisp.org>
48571
48572         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
48573         * modules/malloca: Renamed from modules/allocsa, updated.
48574         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
48575         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
48576         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
48577         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
48578         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
48579         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
48580         * modules/xmalloca: Renamed from modules/xallocsa, updated.
48581         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
48582         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
48583         * modules/c-strcasestr (Depends-on): Update.
48584         * lib/c-strcasestr.c: Update.
48585         * modules/c-strstr (Depends-on): Update.
48586         * lib/c-strstr.c: Update.
48587         * modules/canonicalize-lgpl (Depends-on): Update.
48588         * lib/canonicalize-lgpl.c: Update.
48589         * modules/clean-temp (Depends-on): Update.
48590         * lib/clean-temp.c: Update.
48591         * modules/csharpcomp (Depends-on): Update.
48592         * lib/csharpcomp.c: Update.
48593         * modules/csharpexec (Depends-on): Update.
48594         * lib/csharpexec.c: Update.
48595         * modules/javacomp (Depends-on): Update.
48596         * lib/javacomp.c: Update.
48597         * modules/javaexec (Depends-on): Update.
48598         * lib/javaexec.c: Update.
48599         * modules/mbscasestr (Depends-on): Update.
48600         * lib/mbscasestr.c: Update.
48601         * modules/mbsstr (Depends-on): Update.
48602         * lib/mbsstr.c: Update.
48603         * modules/setenv (Depends-on): Update.
48604         * lib/setenv.c: Update.
48605         * modules/strcasestr (Depends-on): Update.
48606         * lib/strcasestr.c: Update.
48607         * modules/striconveha (Depends-on): Update.
48608         * lib/striconveha.c: Update.
48609         * modules/relocatable-prog-wrapper (Files): Update.
48610         * lib/relocwrapper.c: Update.
48611         * build-aux/install-reloc: Update.
48612         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
48613
48614 2007-06-08  Bruno Haible  <bruno@clisp.org>
48615
48616         Port to uClibc.
48617         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
48618         * lib/fpurge.c (fpurge): Likewise.
48619         * lib/freading.c (freading): Likewise.
48620         * lib/fseeko.c (rpl_fseeko): Likewise.
48621         * lib/fseterr.c (fseterr): Likewise.
48622         * lib/fwriting.c (fwriting): Likewise.
48623         * tests/test-fflush.c (main): Avoid a failure on uClibc.
48624
48625 2007-06-08  Bruno Haible  <bruno@clisp.org>
48626
48627         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
48628         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
48629         * modules/gettext (Files): Add m4/intlmacosx.m4.
48630
48631 2007-06-07  Bruno Haible  <bruno@clisp.org>
48632
48633         * modules/localename-tests: New file.
48634         * tests/test-localename.c: New file.
48635
48636         New module 'localename'.
48637         * lib/localename.h: New file.
48638         * lib/localename.c: New file, from GNU gettext.
48639         * m4/localename.m4: New file.
48640         * modules/localename: New file.
48641
48642 2007-06-07  Bruno Haible  <bruno@clisp.org>
48643
48644         Work around the lack of <wchar.h> on some builds of uClibc.
48645         * doc/headers/wchar.texi: Update.
48646         * lib/wchar_.h: Include <wchar.h> only if it exists.
48647         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
48648         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
48649         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
48650         doesn't exist.
48651         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
48652         * modules/mbfile (Depends-on): Add wchar.
48653         * modules/mbiter (Depends-on): Likewise.
48654         * modules/mbuiter (Depends-on): Likewise.
48655         Reported by Simon Josefsson.
48656
48657 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
48658
48659         Work around problem reported by Steven M. Schweda in
48660         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
48661         Tru64 5.1B with the Compaq compiler environment installed declares
48662         an 'isblank' function but does not define it in the C library.
48663         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
48664         * lib/regex_internal.h (isblank): Likewise.
48665         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
48666         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48667
48668 2007-06-05  Bruno Haible  <bruno@clisp.org>
48669
48670         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
48671         ia64.
48672         * modules/printf-safe: New file.
48673         * modules/fprintf-posix (Depends-on): Add printf-safe.
48674         * modules/printf-posix (Depends-on): Likewise.
48675         * modules/snprintf-posix (Depends-on): Likewise.
48676         * modules/sprintf-posix (Depends-on): Likewise.
48677         * modules/vasnprintf-posix (Depends-on): Likewise.
48678         * modules/vasprintf-posix (Depends-on): Likewise.
48679         * modules/vfprintf-posix (Depends-on): Likewise.
48680         * modules/vprintf-posix (Depends-on): Likewise.
48681         * modules/vsnprintf-posix (Depends-on): Likewise.
48682         * modules/vsprintf-posix (Depends-on): Likewise.
48683         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
48684         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
48685         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
48686         "no" on i386, x86_64, ia64.
48687         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
48688         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48689         on i386, x86_64, ia64.
48690         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
48691         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48692         on i386, x86_64, ia64.
48693         * tests/test-vasnprintf-posix.c: Include float.h.
48694         (LDBL80_WORDS): New macro.
48695         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48696         on i386, x86_64, ia64.
48697         * tests/test-vasprintf-posix.c: Include float.h.
48698         (LDBL80_WORDS): New macro.
48699         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48700         on i386, x86_64, ia64.
48701         * tests/test-snprintf-posix.c: Include float.h.
48702         * tests/test-sprintf-posix.c: Likewise.
48703         * tests/test-vsnprintf-posix.c: Likewise.
48704         * tests/test-vsprintf-posix.c: Likewise.
48705
48706 2007-06-05  Bruno Haible  <bruno@clisp.org>
48707
48708         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
48709         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
48710         non-IEEE numbers on i386, x86_64, ia64.
48711         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
48712         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
48713         * tests/test-isnanl.h: Include float.h.
48714         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
48715
48716 2007-06-05  Bruno Haible  <bruno@clisp.org>
48717
48718         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
48719         also the %a / %A. Handle the %a / %A code before this extra handling.
48720
48721 2007-06-05  Bruno Haible  <bruno@clisp.org>
48722
48723         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
48724         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
48725
48726 2007-06-05  Bruno Haible  <bruno@clisp.org>
48727
48728         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
48729         typo in variable name.
48730
48731 2007-06-05  Eric Blake  <ebb9@byu.net>
48732
48733         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
48734         Reported by Simon Josefsson.
48735
48736 2007-06-04  Bruno Haible  <bruno@clisp.org>
48737
48738         Avoid test failures on some PowerPC platforms.
48739         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
48740         Define differently for PowerPC.
48741         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
48742         Reported by Gary V. Vaughan <gary@gnu.org>.
48743
48744 2007-06-02  Bruno Haible  <bruno@clisp.org>
48745
48746         Fix test-stdint failure on FreeBSD/ia64.
48747         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
48748         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
48749         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
48750         * doc/headers/stdint.texi: Update.
48751
48752 2007-06-01  Bruno Haible  <bruno@clisp.org>
48753
48754         * tests/test-binary-io.c (main): Pass a third argument to open().
48755         Reported by Gary V. Vaughan <gary@gnu.org>.
48756
48757 2007-06-01  Bruno Haible  <bruno@clisp.org>
48758
48759         * doc/functions/frexpl.texi: Update for mingw.
48760
48761 2007-06-01  Bruno Haible  <bruno@clisp.org>
48762
48763         * tests/test-lseek.c (main): Disable test of errno for invalid third
48764         argument.
48765         * doc/functions/lseek.texi: Update.
48766         Reported by Gary V. Vaughan <gary@gnu.org>.
48767
48768 2007-05-28  Bruno Haible  <bruno@clisp.org>
48769
48770         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
48771
48772 2007-05-31  Eric Blake  <ebb9@byu.net>
48773
48774         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
48775         cross compiling.
48776
48777 2007-05-30  Eric Blake  <ebb9@byu.net>
48778         and Bruno Haible  <bruno@clisp.org>
48779
48780         Work around mingw test failures exposed by m4-1.4.9b.
48781         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
48782         * tests/test-unistd.c: Disable uid_t and git_t tests for the
48783         moment.
48784
48785 2007-05-30  Bruno Haible  <bruno@clisp.org>
48786
48787         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
48788         assuming that they are closed. Needed on HP-UX 11.
48789
48790 2007-05-29  Bruno Haible  <bruno@clisp.org>
48791
48792         Fix a problem with #include_next.
48793         * lib/dirent_.h: Split the double-inclusion guard.
48794         * lib/fcntl_.h: Likewise.
48795         * lib/float_.h: Likewise.
48796         * lib/iconv_.h: Likewise.
48797         * lib/inttypes_.h: Likewise.
48798         * lib/locale_.h: Likewise.
48799         * lib/math_.h: Likewise.
48800         * lib/netinet_in_.h: Likewise.
48801         * lib/search_.h: Likewise.
48802         * lib/signal_.h: Likewise.
48803         * lib/stdint_.h: Likewise.
48804         * lib/stdio_.h: Likewise.
48805         * lib/stdlib_.h: Likewise.
48806         * lib/string_.h: Likewise.
48807         * lib/sys_select_.h: Likewise.
48808         * lib/sys_socket_.h: Likewise.
48809         * lib/sys_stat_.h: Likewise.
48810         * lib/sys_time_.h: Likewise.
48811         * lib/sysexits_.h: Likewise.
48812         * lib/time_.h: Likewise.
48813         * lib/unistd_.h: Likewise.
48814         * lib/wchar_.h: Likewise.
48815         * lib/wctype_.h: Likewise.
48816
48817 2007-05-29  Bruno Haible  <bruno@clisp.org>
48818
48819         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
48820         for the moment.
48821
48822 2007-05-29  Bruno Haible  <bruno@clisp.org>
48823
48824         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
48825         invocation.
48826         Reported by Eric Blake.
48827
48828 2007-05-29  Bruno Haible  <bruno@clisp.org>
48829
48830         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
48831         compiling case.
48832
48833 2007-05-29  Eric Blake  <ebb9@byu.net>
48834             Bruno Haible  <bruno@clisp.org>
48835
48836         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
48837         cross compiles.
48838
48839 2007-05-28  Eric Blake  <ebb9@byu.net>
48840
48841         * modules/closein-tests (test_closein_LDADD): Support test on
48842         cygwin with libtool.
48843
48844 2007-05-28  Bruno Haible  <bruno@clisp.org>
48845
48846         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
48847         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48848         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48849         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48850         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48851         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48852         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48853         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48854         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48855
48856 2007-05-28  Eric Blake  <ebb9@byu.net>
48857
48858         Unconditionally include <config.h> in unit tests.
48859         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
48860         * tests/test-allocsa.c, tests/test-arcfour.c,
48861         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
48862         tests/test-array_list.c, tests/test-array_oset.c,
48863         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
48864         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
48865         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
48866         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
48867         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
48868         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
48869         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
48870         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
48871         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
48872         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
48873         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
48874         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
48875         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
48876         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
48877         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
48878         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
48879         test-md5.c, test-memmem.c, test-printf-posix.c,
48880         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
48881         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
48882         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
48883         test-strcasestr.c, test-striconv.c, test-striconveh.c,
48884         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
48885         test-vasnprintf-posix2.c, test-vasnprintf.c,
48886         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
48887         test-vfprintf-posix.c, test-vprintf-posix.c,
48888         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
48889         test-xvasprintf.c: Likewise.
48890
48891 2007-05-28  Bruno Haible  <bruno@clisp.org>
48892
48893         * gnulib-tool (func_import): Remember the --with-tests command-line
48894         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
48895         Reported by Eric Blake.
48896
48897 2007-05-28  Bruno Haible  <bruno@clisp.org>
48898
48899         * modules/ftell-tests: New file.
48900         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
48901         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
48902
48903         * lib/ftell.c: New file.
48904         * modules/ftell: New file.
48905         * m4/ftell.m4: New file.
48906         * doc/functions/ftell.texi: Update.
48907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
48908         REPLACE_FTELL.
48909         * lib/stdio_.h (rpl_ftell): New declaration.
48910         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
48911         REPLACE_FTELL.
48912
48913 2007-05-28  Eric Blake  <ebb9@byu.net>
48914
48915         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
48916
48917 2007-05-28  Bruno Haible  <bruno@clisp.org>
48918
48919         * modules/fseek-tests: New file.
48920         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48921         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48922
48923         * lib/fseek.c: New file.
48924         * modules/fseek: New file.
48925         * m4/fseek.m4: New file.
48926         * doc/functions/fseek.texi: Update.
48927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
48928         REPLACE_FSEEK.
48929         * lib/stdio_.h (rpl_fseek): New declaration.
48930         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
48931         REPLACE_FSEEK.
48932
48933 2007-05-28  Bruno Haible  <bruno@clisp.org>
48934
48935         * lib/stdio_.h (fflush): More comments.
48936
48937 2007-05-28  Bruno Haible  <bruno@clisp.org>
48938
48939         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
48940         runtime test.
48941
48942 2007-05-28  Eric Blake  <ebb9@byu.net>
48943
48944         Improve lseek module.
48945         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
48946         * lib/unistd_.h (lseek): Scale back link warning message.
48947         * tests/test-lseek.c: Beef up test.
48948         * tests/test-lseek.sh: Exercise more facets of lseek.
48949         Reported by Bruno Haible.
48950
48951 2007-05-28  Bruno Haible  <bruno@clisp.org>
48952
48953         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
48954         to define.
48955
48956 2007-05-27  Bruno Haible  <bruno@clisp.org>
48957
48958         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
48959
48960 2007-05-27  Bruno Haible  <bruno@clisp.org>
48961
48962         * modules/openmp: New file.
48963         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
48964         Noah Misch.
48965
48966 2007-05-26  Bruno Haible  <bruno@clisp.org>
48967
48968         * modules/chdir-long (Depends-on): Add fchdir.
48969         * modules/chdir-safer (Depends-on): Likewise.
48970         * modules/fts (Depends-on): Likewise.
48971         * modules/fts-lgpl (Depends-on): Likewise.
48972         * modules/openat (Depends-on): Likewise.
48973         * modules/savewd (Depends-on): Likewise.
48974
48975 2007-05-24  Eric Blake  <ebb9@byu.net>
48976
48977         Fix lseek on mingw.
48978         * modules/lseek: New module.
48979         * m4/lseek.m4: New file.
48980         * lib/lseek.c: New file.
48981         * modules/lseek-tests: New file.
48982         * tests/test-lseek.c: New file.
48983         * tests/test-lseek.sh: New file.
48984         * MODULES.html.sh: Document lseek module.
48985         * modules/fflush (Depends-on): Add lseek, fseeko.
48986         * modules/fseeko (Depends-on): Likewise.
48987         * modules/ftello (Depends-on): Likewise.
48988         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
48989         broken.
48990         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
48991         broken.
48992         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
48993         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
48994         * lib/ftello.c (rpl_ftello): Likewise.
48995         * tests/test-fseeko.c (main): Test this.
48996         * tests/test-fseeko.sh: Likewise.
48997         * tests/test-ftello.c (main): Likewise.
48998         * tests/test-ftello.sh: Likewise.
48999         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
49000         implies replacing fseek.
49001         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
49002         HAVE_FTELLO.
49003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
49004         * modules/unistd (Makefile.am): Likewise.
49005         * lib/unistd_.h (lseek): Declare a replacement.
49006         * doc/functions/lseek.texi (lseek): Document this fix.
49007         * doc/functions/fseek.texi (fseek): Likewise.
49008         * doc/functions/ftell.texi (ftell): Likewise.
49009
49010 2007-05-24  Bruno Haible  <bruno@clisp.org>
49011
49012         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
49013         in the printed representation of a NaN.
49014         * tests/test-vasprintf-posix.c (test_function): Likewise.
49015         * tests/test-snprintf-posix.h (test_function): Likewise.
49016         * tests/test-sprintf-posix.h (test_function): Likewise.
49017         Reported by Eric Blake.
49018
49019 2007-05-23  Eric Blake  <ebb9@byu.net>
49020
49021         Fix fseeko/ftello on cygwin 1.5.24.
49022         * doc/functions/fseeko.texi (fseeko): Document the fix.
49023         * doc/functions/ftello.texi (ftello): Document the fix.
49024         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
49025         * doc/functions/stdout.text (stdout): New file.
49026         * doc/functions/stderr.text (stderr): New file.
49027         * doc/gnulib.texi (Function Substitutes): Use new files.
49028         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
49029         prior to 1.7.0.
49030         * tests/test-ftello.c (main): Likewise for ftello.
49031         * tests/test-fseeko.sh: New file.
49032         * tests/test-ftello.sh: New file.
49033         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
49034         with seekable stdin.
49035         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
49036         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
49037         (gl_REPLACE_FSEEKO): New macro.
49038         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
49039         * modules/fseeko (Files): Distribute fseeko.c.
49040         * modules/ftello (Files): Distribute ftello.c.
49041         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
49042         mode.
49043         * lib/ftello.c (rpl_ftello): New file.
49044         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
49045         fseeko, ftello.
49046         (gl_STDIN_LARGE_OFFSET): New macro.
49047         * modules/stdio (Makefile.am): Perform the replacement.
49048         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
49049
49050 2007-05-23  Bruno Haible  <bruno@clisp.org>
49051
49052         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
49053         GNULIB_POSIXCHECK is defined.
49054
49055 2007-05-21  Bruno Haible  <bruno@clisp.org>
49056
49057         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
49058         Check also the output for NaN arguments. When cross-compiling, guess
49059         no on IRIX.
49060         * lib/vasnprintf.c: Update comments.
49061         * tests/test-vasnprintf-posix.c (strisnan): New function.
49062         (test_function): Use it.
49063         * tests/test-vasprintf-posix.c (strisnan): New function.
49064         (test_function): Use it.
49065         * tests/test-snprintf-posix.h (strisnan): New function.
49066         (test_function): Use it.
49067         * tests/test-sprintf-posix.h (strisnan): New function.
49068         (test_function): Use it.
49069         Reported by Eric Blake.
49070
49071 2007-05-20  Bruno Haible  <bruno@clisp.org>
49072
49073         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
49074         numbers that fails on BeOS.
49075         * doc/functions/frexpl.texi: Update.
49076
49077 2007-05-20  Jim Meyering  <jim@meyering.net>
49078
49079         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
49080         forced upon us by glibc-2.6.
49081
49082 2007-05-20  Bruno Haible  <bruno@clisp.org>
49083
49084         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
49085         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
49086         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
49087         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
49088         NEED_PRINTF_INFINITE.
49089         (is_infinitel): New function.
49090         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
49091         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
49092         gl_PREREQ_VASNPRINTF_INFINITE.
49093         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
49094         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49095         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
49096         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
49097         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
49098         gl_PREREQ_VASNPRINTF_INFINITE.
49099         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49100         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49101         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49102         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49103         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49104         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49105         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49106         * doc/functions/fprintf.texi: Update.
49107         * doc/functions/printf.texi: Update.
49108         * doc/functions/snprintf.texi: Update.
49109         * doc/functions/sprintf.texi: Update.
49110         * doc/functions/vfprintf.texi: Update.
49111         * doc/functions/vprintf.texi: Update.
49112         * doc/functions/vsnprintf.texi: Update.
49113         * doc/functions/vsprintf.texi: Update.
49114
49115 2007-05-20  Bruno Haible  <bruno@clisp.org>
49116
49117         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
49118         was not found in libc.
49119         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49120
49121 2007-05-20  Bruno Haible  <bruno@clisp.org>
49122
49123         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49124         printed as "-nan" instead of "nan".
49125         * tests/test-vasprintf-posix.c (test_function): Likewise.
49126         * tests/test-snprintf-posix.h (test_function): Likewise.
49127         * tests/test-sprintf-posix.h (test_function): Likewise.
49128         Needed for HP-UX 11.
49129
49130 2007-05-20  Jim Meyering  <jim@meyering.net>
49131
49132         Fix buggy test for the fchownat-deref bug.
49133         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
49134         symlink required for the run-test.  Without it, this test would
49135         always declare that fchownat doesn't work, and client code would
49136         unnecessarily use the replacement function with fixed libc.
49137         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
49138         Reported by Greg Schafer.
49139
49140 2007-05-19  Bruno Haible  <bruno@clisp.org>
49141
49142         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
49143         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
49144         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
49145         Needed for IRIX 6.5 and Solaris 2.5.1.
49146
49147 2007-05-19  Bruno Haible  <bruno@clisp.org>
49148
49149         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
49150         (test_function): Skip tests involving -0.0 on platforms where
49151         -0.0 = 0.0.
49152         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
49153         (test_function): Skip tests involving -0.0 on platforms where
49154         -0.0 = 0.0.
49155         * tests/test-snprintf-posix.h (have_minus_zero): New function.
49156         (test_function): Skip tests involving -0.0 on platforms where
49157         -0.0 = 0.0.
49158         * tests/test-sprintf-posix.h (have_minus_zero): New function.
49159         (test_function): Skip tests involving -0.0 on platforms where
49160         -0.0 = 0.0.
49161         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
49162         tests.
49163         * tests/test-printf-posix.h (test_function): Likewise.
49164         * tests/test-printf-posix.output: Remove all -0.0 related results.
49165         Needed for IRIX 6.5.
49166
49167 2007-05-19  Bruno Haible  <bruno@clisp.org>
49168
49169         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49170         printed as "nan0x7fffffff" instead of "nan".
49171         * tests/test-vasprintf-posix.c (test_function): Likewise.
49172         * tests/test-snprintf-posix.h (test_function): Likewise.
49173         * tests/test-sprintf-posix.h (test_function): Likewise.
49174         * tests/test-fprintf-posix.h (NaN): Remove macro.
49175         (test_function): Remove all NaN related tests.
49176         * tests/test-printf-posix.h (NaN): Remove macro.
49177         (test_function): Remove all NaN related tests.
49178         * tests/test-printf-posix.output: Remove all NaN related results.
49179         Needed for IRIX 6.5.
49180
49181 2007-05-19  Bruno Haible  <bruno@clisp.org>
49182
49183         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
49184         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49185
49186 2007-05-19  Bruno Haible  <bruno@clisp.org>
49187
49188         * lib/float_.h: New file.
49189         * m4/float_h.m4: New file.
49190         * modules/float: New file.
49191         * modules/isnanl (Dependencies): Add float.
49192         * modules/isnanl-nolibm (Dependencies): Likewise.
49193         * modules/mathl (Dependencies): Likewise.
49194         * modules/printf-frexpl (Dependencies): Likewise.
49195         * modules/signbit (Dependencies): Likewise.
49196         * modules/vasnprintf (Dependencies): Likewise.
49197         * doc/headers/float.texi: Update.
49198
49199 2007-05-19  Jim Meyering  <jim@meyering.net>
49200
49201         * lib/utimens.c (gl_futimens): Rename from futimens,
49202         now that glibc-2.6 declares futimens.
49203         * lib/utimens.h: Likewise.
49204
49205 2007-05-19  Bruno Haible  <bruno@clisp.org>
49206
49207         Avoid test failures on mingw.
49208         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
49209         * tests/test-printf-posix.sh: Likewise.
49210         * tests/test-vfprintf-posix.sh: Likewise.
49211         * tests/test-vprintf-posix.sh: Likewise.
49212
49213 2007-05-19  Bruno Haible  <bruno@clisp.org>
49214
49215         Fix *printf result for NaN, Inf, -0.0 on mingw.
49216         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
49217         * lib/vasnprintf.c: Include math.h and isnan.h.
49218         (is_infinite_or_zero): New function.
49219         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
49220         values in the %f, %F, %e, %E, %g, %G directives.
49221         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
49222         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49223         gl_PRINTF_INFINITE and test its result. Invoke
49224         gl_PREREQ_VASNPRINTF_INFINITE.
49225         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49226         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49227         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49228         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49229         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49230         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49231         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49232         * doc/functions/fprintf.texi: Update.
49233         * doc/functions/printf.texi: Update.
49234         * doc/functions/snprintf.texi: Update.
49235         * doc/functions/sprintf.texi: Update.
49236         * doc/functions/vfprintf.texi: Update.
49237         * doc/functions/vprintf.texi: Update.
49238         * doc/functions/vsnprintf.texi: Update.
49239         * doc/functions/vsprintf.texi: Update.
49240
49241 2007-05-19  Bruno Haible  <bruno@clisp.org>
49242
49243         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
49244         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
49245         Instead of multiplying with 10^k, set extra_zeroes to k.
49246         (scale10_round_long_double): Remove function.
49247
49248 2007-05-18  Bruno Haible  <bruno@clisp.org>
49249
49250         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
49251         introduced on 2007-05-06.
49252
49253 2007-05-18  Bruno Haible  <bruno@clisp.org>
49254
49255         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
49256         %g directives.
49257         * tests/test-vasprintf-posix.c (test_function): Likewise.
49258         * tests/test-snprintf-posix.h (test_function): Likewise.
49259         * tests/test-sprintf-posix.h (test_function): Likewise.
49260
49261 2007-05-18  Bruno Haible  <bruno@clisp.org>
49262
49263         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
49264         (strmatch): New function.
49265         (test_function): Test the %f directive on numbers of various exponents.
49266         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
49267         (strmatch): New function.
49268         (test_function): Test the %f directive on numbers of various exponents.
49269         * tests/test-snprintf-posix.h (strmatch): New function.
49270         (test_function): Test the %f directive on numbers of various exponents.
49271         * tests/test-sprintf-posix.h (strmatch): New function.
49272         (test_function): Test the %f directive on numbers of various exponents.
49273         * tests/test-snprintf-posix.c (SIZEOF): New macro.
49274         * tests/test-sprintf-posix.c (SIZEOF): New macro.
49275         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
49276         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
49277
49278 2007-05-18  Bruno Haible  <bruno@clisp.org>
49279
49280         Add support for 'long double' number output.
49281         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
49282         * lib/vasnprintf.c: Include math.h and float+.h.
49283         (mp_limb_t): New type.
49284         (GMP_LIMB_BITS): New macro.
49285         (mp_twolimb_t): New type.
49286         (GMP_TWOLIMB_BITS): New macro.
49287         (mpn_t): New type.
49288         (multiply, divide, convert_to_decimal, decode_long_double,
49289         scale10_round_long_double, scale10_round_decimal_long_double,
49290         floorlog10l): New functions.
49291         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
49292         for the %f, %F, %e, %E, %g, %G directives.
49293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
49294         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49295         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
49296         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
49297         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49298         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49299         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49300         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49301         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49302         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49304         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
49305         * modules/snprintf-posix (Depends-on): Likewise.
49306         * modules/sprintf-posix (Depends-on): Likewise.
49307         * modules/vasnprintf-posix (Depends-on): Likewise.
49308         * modules/vasprintf-posix (Depends-on): Likewise.
49309         * modules/vfprintf-posix (Depends-on): Likewise.
49310         * modules/vsnprintf-posix (Depends-on): Likewise.
49311         * modules/vsprintf-posix (Depends-on): Likewise.
49312         * modules/vasnprintf (Files): Add lib/float+.h.
49313         * doc/functions/fprintf.texi: Update.
49314         * doc/functions/printf.texi: Update.
49315         * doc/functions/snprintf.texi: Update.
49316         * doc/functions/sprintf.texi: Update.
49317         * doc/functions/vfprintf.texi: Update.
49318         * doc/functions/vprintf.texi: Update.
49319         * doc/functions/vsnprintf.texi: Update.
49320         * doc/functions/vsprintf.texi: Update.
49321
49322 2007-05-18  Bruno Haible  <bruno@clisp.org>
49323
49324         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
49325
49326 2007-05-18  Bruno Haible  <bruno@clisp.org>
49327
49328         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
49329         for printing 64-bit integers. Needed for mingw.
49330
49331 2007-05-18  Bruno Haible  <bruno@clisp.org>
49332
49333         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49334         gl_FUNC_FREXPL_WORKS.
49335         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
49336
49337 2007-05-18  Bruno Haible  <bruno@clisp.org>
49338
49339         * modules/frexpl-nolibm-tests: New file.
49340
49341         * modules/frexpl-nolibm: New file.
49342         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
49343
49344 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
49345
49346         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
49347         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49348         GCC 4.2, which otherwise issues a lot of warnings.
49349         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
49350         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
49351         Likewise.
49352         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
49353         * modules/iconv_open (iconv.h): Likewise.
49354         * modules/locale (locale.h): Likewise.
49355         * modules/netinet_in (netinet/in.h): Likewise.
49356         * modules/sys_select (sys_select.h): Likewise.
49357         * modules/sys_socket (sys/socket.h): Likewise.
49358         * modules/sys_stat (sys/stat.h): Likewise.
49359         * modules/sysexits (sysexits.h): Likewise.
49360         * modules/unistd (unistd.h): Likewise.
49361
49362 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49363
49364         * modules/closein-tests (Makefile.am): Distribute
49365         `test-closein.sh'.
49366
49367 2007-05-17  Bruno Haible  <bruno@clisp.org>
49368
49369         * tests/test-printf-posix.output: Renamed from
49370         tests/test-fprintf-posix.out.
49371         * modules/fprintf-posix-tests: Update.
49372         * modules/printf-posix-tests: Update.
49373         * modules/vfprintf-posix-tests: Update.
49374         * modules/vprintf-posix-tests: Update.
49375         * tests/test-fprintf-posix.sh: Update.
49376         * tests/test-printf-posix.sh: Update.
49377         * tests/test-vfprintf-posix.sh: Update.
49378         * tests/test-vprintf-posix.sh: Update.
49379         Reported by Ralf Wildenhues.
49380
49381 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49382
49383         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
49384         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49385         GCC 4.2, which otherwise issues a lot of warnings.
49386         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
49387         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
49388         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
49389         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
49390         it should no longer be needed.
49391         * lib/string_.h: Likewise.
49392         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
49393         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
49394         * modules/inttypes (inttypes.h): Likewise.
49395         * modules/math (math.h): Likewise.
49396         * modules/search (search.h): Likewise.
49397         * modules/signal (signal.h): Likewise.
49398         * modules/stdint (stdint.h): Likewise.
49399         * modules/stdio (stdio.h): Likewise.
49400         * modules/stdlib (stdlib.h): Likewise.
49401         * modules/string (string.h): Likewise.
49402         * modules/sys_time (sys/time.h): Likewise.
49403         * modules/time (time.h): Likewise.
49404         * modules/wchar (wchar.h): Likewise.
49405         * modules/wctype (wtype.h): Likewise.
49406
49407 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49408
49409         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
49410
49411 2007-05-13  Bruno Haible  <bruno@clisp.org>
49412
49413         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
49414         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49415         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
49416         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49417         (gl_PREREQ_STRTOK_R): Don't require it here.
49418
49419 2007-05-13  Bruno Haible  <bruno@clisp.org>
49420
49421         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
49422         when used in C++ mode.
49423
49424 2007-05-12  Bruno Haible  <bruno@clisp.org>
49425
49426         * lib/linebuffer.h: Tweak doc.
49427         * lib/linebuffer.c: Likewise.
49428
49429 2007-05-12  James Youngman  <jay@gnu.org>
49430
49431         * lib/linebuffer.c (readlinebuffer_delim): New function,
49432         like readlinebuffer, but use a caller-specified delimiter.
49433         (readlinebuffer): Just call readlinebuffer_delim with '\n'
49434         as the delimiter.
49435         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
49436
49437 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49438
49439         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
49440         * modules/openat (Files): Remove openat-die.c.
49441         (Depends-on): Add openat-die.
49442         * modules/openat-die: New module.
49443
49444 2007-05-06  Bruno Haible  <bruno@clisp.org>
49445
49446         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
49447         Update with info about Cygwin.
49448         * doc/functions/fprintf.texi: Update.
49449         * doc/functions/printf.texi: Update.
49450         * doc/functions/snprintf.texi: Update.
49451         * doc/functions/sprintf.texi: Update.
49452         * doc/functions/vfprintf.texi: Update.
49453         * doc/functions/vprintf.texi: Update.
49454         * doc/functions/vsnprintf.texi: Update.
49455         * doc/functions/vsprintf.texi: Update.
49456         Reported by Eric Blake.
49457
49458 2007-05-06  Bruno Haible  <bruno@clisp.org>
49459
49460         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
49461         padding ourselves for the floating-point directives.
49462         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
49463         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
49464         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49465         gl_PRINTF_FLAG_ZERO and test its result. Invoke
49466         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
49467         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49468         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49469         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49470         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49471         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49472         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49473         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49474         * tests/test-snprintf-posix.h (test_function): Also check the width
49475         and some flags in the %f directive.
49476         * tests/test-sprintf-posix.h (test_function): Likewise.
49477         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49478         * tests/test-vasprintf-posix.c (test_function): Likewise.
49479         * doc/functions/fprintf.texi: Update.
49480         * doc/functions/printf.texi: Update.
49481         * doc/functions/snprintf.texi: Update.
49482         * doc/functions/sprintf.texi: Update.
49483         * doc/functions/vfprintf.texi: Update.
49484         * doc/functions/vprintf.texi: Update.
49485         * doc/functions/vsnprintf.texi: Update.
49486         * doc/functions/vsprintf.texi: Update.
49487
49488 2007-05-06  Bruno Haible  <bruno@clisp.org>
49489
49490         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
49491         pass the ' flag character to sprintf or snprintf.
49492         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
49493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
49494         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49495         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
49496         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
49497         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49498         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49499         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49500         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49501         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49502         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49503         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49504         * tests/test-snprintf-posix.h (test_function): Also check the grouping
49505         flag.
49506         * tests/test-sprintf-posix.h (test_function): Likewise.
49507         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49508         * tests/test-vasprintf-posix.c (test_function): Likewise.
49509         * doc/functions/fprintf.texi: Update.
49510         * doc/functions/printf.texi: Update.
49511         * doc/functions/snprintf.texi: Update.
49512         * doc/functions/sprintf.texi: Update.
49513         * doc/functions/vfprintf.texi: Update.
49514         * doc/functions/vprintf.texi: Update.
49515         * doc/functions/vsnprintf.texi: Update.
49516         * doc/functions/vsprintf.texi: Update.
49517
49518 2007-05-01  Bruno Haible  <bruno@clisp.org>
49519
49520         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
49521
49522 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
49523
49524         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
49525         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
49526
49527 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49528
49529         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
49530         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
49531         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
49532
49533 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
49534
49535         * lib/argp-help.c (struct hol_entry): New member `ord'.
49536         (HOL_ENTRY_PTRCMP): Use ord for comparison
49537         (hol_sort): Initialize ord.
49538
49539 2007-05-01  Bruno Haible  <bruno@clisp.org>
49540
49541         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
49542         Reported by Eric Blake.
49543         * doc/gnulib.texi (Function Substitutes): Update.
49544
49545 2007-05-01  Bruno Haible  <bruno@clisp.org>
49546
49547         * doc/functions.texi: Remove file, now redundant through
49548         doc/functions/*.texi.
49549
49550 2007-05-01  Bruno Haible  <bruno@clisp.org>
49551
49552         * modules/argp (Depends-on): Add sleep.
49553
49554 2007-05-01  Bruno Haible  <bruno@clisp.org>
49555
49556         * modules/sleep-tests: New file.
49557         * tests/test-sleep.c: New file.
49558
49559         * modules/sleep: New file.
49560         * lib/sleep.c: New file.
49561         * m4/sleep.m4: New file.
49562         * lib/unistd_.h (sleep): New declaration.
49563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
49564         HAVE_SLEEP.
49565         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
49566         * doc/functions/sleep.texi: Document the sleep module.
49567
49568 2007-05-01  Bruno Haible  <bruno@clisp.org>
49569
49570         * lib/sigprocmask.h: Remove file.
49571         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
49572         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
49573         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
49574         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
49575         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
49576         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
49577         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
49578         HAVE_SIGSET_T as a shell variable.
49579         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
49580         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
49581         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
49582         (Depends-on): Add signal. Remove verify.
49583         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
49584         (Include): Mention <signal.h> instead of sigprocmask.h.
49585         * NEWS: Mention the change.
49586         * lib/fatal-signal.c: Don't include sigprocmask.h.
49587
49588 2007-05-01  Bruno Haible  <bruno@clisp.org>
49589
49590         * modules/signal: New file.
49591         * lib/signal_.h: New file.
49592         * m4/signal_h.m4: New file.
49593
49594 2007-05-01  Bruno Haible  <bruno@clisp.org>
49595
49596         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
49597         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
49598         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
49599         HAVE_WCTYPE_CTMP_BUG into wctype.h.
49600
49601 2007-05-01  Bruno Haible  <bruno@clisp.org>
49602
49603         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
49604         configure time.
49605         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
49606         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
49607         * modules/sys_stat (Makefile.am): Substitute their values into
49608         sys/stat.h.
49609
49610 2007-05-01  Bruno Haible  <bruno@clisp.org>
49611
49612         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
49613         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
49614         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
49615
49616 2007-05-01  Bruno Haible  <bruno@clisp.org>
49617
49618         * doc/header/assert.texi: Undo last change: don't mention the gnulib
49619         'assert' module here.
49620
49621 2007-05-01  Bruno Haible  <bruno@clisp.org>
49622
49623         * doc/functions/*.texi: New files.
49624         * doc/functions/google-ranking.txt: New file.
49625         * doc/gnulib.texi (Function Substitutes): New chapter.
49626         (ctime, inet_ntoa): Remove sections.
49627         * doc/ctime.texi: Remove file.
49628         * doc/inet_ntoa.texi: Remove file.
49629         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
49630         dependencies.
49631         (%.info): New rule, specifying a --reference-limit.
49632
49633 2007-05-01  Bruno Haible  <bruno@clisp.org>
49634
49635         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
49636
49637 2007-05-01  Bruno Haible  <bruno@clisp.org>
49638
49639         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
49640         the portability of 'mkdir' to mingw systems.
49641
49642 2007-05-01  Bruno Haible  <bruno@clisp.org>
49643
49644         * doc/headers/google-ranking.txt: New file.
49645
49646 2007-04-30  Eric Blake  <ebb9@byu.net>
49647
49648         Prefer fseeko to fseek.
49649         * modules/getpass (Depends-on): Add fseeko.
49650         * lib/getpass.c (getpass): Use fseeko, not fseek.
49651
49652 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
49653
49654         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
49655         assumes the sorting is stable, while most qsort implementations
49656         are not.  Use argument addresses to ensure they never compare as
49657         equal.
49658
49659         * tests/test-argp-2.sh (usage-indent test): Fix output
49660         (func_compare): Restore diff options
49661         * tests/test-argp.c: Restore #include "progname.h"
49662
49663 2007-04-29  Bruno Haible  <bruno@clisp.org>
49664
49665         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
49666         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49667         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
49668         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49669         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
49670         (configure.ac): Define CHECK_SNPRINTF_POSIX.
49671         (TESTS, check_PROGRAMS): Add test-snprintf.
49672         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
49673         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
49674         (TESTS, check_PROGRAMS): Add test-vsnprintf.
49675         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
49676         assertions that fail on HP-UX, OSF/1, or IRIX.
49677         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
49678
49679 2007-04-29  Bruno Haible  <bruno@clisp.org>
49680
49681         * MODULES.html.sh (posix_functions): Remove 'contents'.
49682
49683 2007-04-29  Karl Berry  <karl@gnu.org>
49684
49685         * config/srclist.txt (gendocs_template_min): new entry.
49686
49687 2007-04-29  Bruno Haible  <bruno@clisp.org>
49688
49689         Work around fpurge bug on BSD systems.
49690         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
49691         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
49692         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
49693         fpurge to rpl_fpurge if the system already has this function.
49694         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
49695         the case where the system already has this function. Correct invariants
49696         on BSD systems.
49697         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
49698         BSD systems.
49699
49700 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49701
49702         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
49703         proposed by Sven Verdoolaege.
49704
49705         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
49706         options.
49707         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
49708         (usage and help tests): Update
49709
49710 2007-04-29  Bruno Haible  <bruno@clisp.org>
49711
49712         * tests/test-fflush.c (main): Use a file of size 17, not 10.
49713         Print more information in case of failure. Disable a test on BeOS.
49714
49715 2007-04-29  Bruno Haible  <bruno@clisp.org>
49716
49717         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
49718         This helps debugging on systems on which no gdb is available.
49719
49720 2007-04-29  Bruno Haible  <bruno@clisp.org>
49721
49722         * lib/freading.h: Improve comments.
49723         * lib/fwriting.h: Likewise.
49724         * tests/test-freading.c (main): Don't check freading immediately after
49725         repositioning. Needed for glibc.
49726
49727 2007-04-29  Bruno Haible  <bruno@clisp.org>
49728
49729         * lib/freading.c (freading): Trivial simplification.
49730
49731 2007-04-28  Bruno Haible  <bruno@clisp.org>
49732
49733         * tests/test-fwriting.c (main): Also test the interaction between
49734         fflush and fwriting.
49735         * modules/fwriting-tests (Depends-on): Add fflush.
49736
49737         * tests/test-freading.c (main): Also test the interaction between
49738         fflush and freading.
49739         * modules/freading-tests (Depends-on): Add fflush.
49740
49741 2007-04-28  Bruno Haible  <bruno@clisp.org>
49742
49743         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
49744         fseeko and ftello.
49745         Suggested by Eric Blake.
49746
49747 2007-04-28  Jim Meyering  <jim@meyering.net>
49748
49749         Avoid false-negative in gl_STDINT_H's C99 conformance test.
49750         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
49751         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
49752
49753 2007-04-27  Eric Blake  <ebb9@byu.net>
49754
49755         * doc/headers/assert.texi (assert.h): Document assert module use.
49756
49757 2007-04-27  Bruno Haible  <bruno@clisp.org>
49758
49759         * doc/headers/*.texi: New files.
49760         * doc/gnulib.texi (Header File Substitutes): New chapter.
49761         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
49762         dependencies.
49763         (standards.info ,standards.html, standards.dvi): Update dependencies.
49764         (mostlyclean, clean): New targets.
49765
49766 2007-04-27  Bruno Haible  <bruno@clisp.org>
49767
49768         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
49769         * modules/sysexits (Files, Makefile.am): Update.
49770
49771         * lib/sys_socket_.h: Renamed from lib/socket_.h.
49772         * modules/sys_socket (Files, Makefile.am): Update.
49773
49774         * lib/sys_stat_.h: Renamed from lib/stat_.h.
49775         * modules/sys_stat (Files, Makefile.am): Update.
49776
49777 2007-04-27  Eric Blake  <ebb9@byu.net>
49778
49779         * lib/freading.h: Improve comments.
49780         * lib/fwriting.h: Likewise.
49781         * lib/fflush.c: Likewise.
49782
49783         Fix closein for mingw.
49784         * modules/closein-tests: Add tests for closein.
49785         * tests/test-closein.c: New file.
49786         * tests/test-closein.sh: Likewise.
49787         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
49788         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
49789
49790 2007-04-27  Bruno Haible  <bruno@clisp.org>
49791
49792         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
49793         version is < 6.
49794         * lib/math_.h [__DECC]: Likewise.
49795         * lib/stdio_.h [__DECC]: Likewise.
49796         * lib/stdlib_.h [__DECC]: Likewise.
49797         * lib/string_.h [__DECC]: Likewise.
49798         * lib/time_.h [__DECC]: Likewise.
49799         * lib/wchar_.h [__DECC]: Likewise.
49800         * lib/wctype_.h [__DECC]: Likewise.
49801
49802 2007-04-27  Bruno Haible  <bruno@clisp.org>
49803
49804         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
49805
49806 2007-04-27  Bruno Haible  <bruno@clisp.org>
49807
49808         * lib/fflush.c: Add comments.
49809         * modules/fpurge-tests (Depends-on): Add fflush.
49810         * modules/freadable-tests (Depends-on): Likewise.
49811         * modules/fwritable-tests (Depends-on): Likewise.
49812
49813 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
49814
49815         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
49816         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
49817         Report by Bruno Haible <bruno@clisp.org>.
49818
49819 2007-04-26  Eric Blake  <ebb9@byu.net>
49820
49821         Fix fflush on mingw.
49822         * modules/fflush (Depends-on): Add freading.
49823         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
49824         but unread data.
49825
49826 2007-04-26  Eric Blake  <ebb9@byu.net>
49827         and Bruno Haible  <bruno@clisp.org>
49828
49829         Implement freading and fwriting.
49830         * lib/freading.c: New file.
49831         * lib/freading.h: Likewise.
49832         * m4/freading.m4: Likewise.
49833         * modules/freading: Likewise.
49834         * modules/freading-tests: Likewise.
49835         * tests/test-freading.c: Likewise.
49836         * lib/fwriting.c: New file.
49837         * lib/fwriting.h: Likewise.
49838         * m4/fwriting.m4: Likewise.
49839         * modules/fwriting: Likewise.
49840         * modules/fwriting-tests: Likewise.
49841         * tests/test-fwriting.c: Likewise.
49842         * MODULES.html.sh (File stream based Input/Output): Mention them.
49843
49844 2007-04-26  Bruno Haible  <bruno@clisp.org>
49845
49846         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
49847         'long' when we assume it.
49848         Suggested by Eric Blake.
49849
49850 2007-04-26  Bruno Haible  <bruno@clisp.org>
49851
49852         Ensure fseeko, ftello are declared on glibc systems.
49853         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
49854         * modules/fseeko (configure.ac-early): Likewise.
49855         * modules/ftello (configure.ac-early): Likewise.
49856         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
49857         AC_FUNC_FSEEKO for this.
49858         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
49859         (gl_CHECK_FSEEKO): Remove macro.
49860
49861 2007-04-26  Bruno Haible  <bruno@clisp.org>
49862
49863         * tests/test-fflush.c (main): Also check the ftell result after
49864         fflush and fseek/fseeko.
49865         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
49866         file descriptor position cache in the stream.
49867         * lib/fseeko.c (rpl_fseeko): Likewise.
49868
49869 2007-04-26  Bruno Haible  <bruno@clisp.org>
49870
49871         * modules/fflush-tests (Depends-on): Add fseeko.
49872
49873 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
49874             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49875
49876         * lib/argz_.h: ensure error_t definition is obtained in same
49877         mechanism system argz.h would have.
49878         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
49879         argz facilities are known bad.  Err on the side of caution if
49880         cross-compiling.
49881
49882 2007-04-25  Eric Blake  <ebb9@byu.net>
49883
49884         * lib/fpurge.c (includes): Use stdlib.h for free.
49885         * tests/test-fflush.c (main): Also test fflush-fseeko.
49886
49887 2007-04-25  Bruno Haible  <bruno@clisp.org>
49888
49889         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
49890         * lib/fseeko.c: New file.
49891         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
49892         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
49893         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
49894         gl_FUNC_FSEEKO.
49895         (gl_FUNC_FSEEKO): Invoke it.
49896         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
49897         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49898         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
49899
49900 2007-04-25  Bruno Haible  <bruno@clisp.org>
49901
49902         * modules/fflush (Depends-on): Add ftello.
49903
49904 2007-04-25  Bruno Haible  <bruno@clisp.org>
49905
49906         * modules/ftello-tests: New file.
49907         * tests/test-ftello.c: New file.
49908
49909         * modules/ftello: New file.
49910         * m4/ftello.m4: New file.
49911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
49912         HAVE_FTELLO.
49913         * lib/stdio_.h (ftello): New declaration.
49914         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
49915         HAVE_FTELLO.
49916
49917 2007-04-25  Bruno Haible  <bruno@clisp.org>
49918
49919         * modules/fseeko-tests: New file.
49920         * tests/test-fseeko.c: New file.
49921
49922         * modules/fseeko: New file.
49923         * m4/fseeko.m4: New file.
49924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
49925         HAVE_FSEEKO.
49926         * lib/stdio_.h (fseeko): New declaration.
49927         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
49928         HAVE_FSEEKO.
49929
49930 2007-04-25  Bruno Haible  <bruno@clisp.org>
49931
49932         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
49933
49934 2007-04-25  Bruno Haible  <bruno@clisp.org>
49935
49936         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
49937         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
49938         * tests/test-unistd.c: Likewise.
49939         * tests/test-fcntl.c: Likewise.
49940
49941 2007-04-23  Eric Blake  <ebb9@byu.net>
49942
49943         * lib/fflush.c: Fix missing include.
49944         Reported by Bruno Haible.
49945
49946 2007-04-23  Bruno Haible  <bruno@clisp.org>
49947
49948         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
49949         Reported by Eric Blake.
49950
49951 2007-04-23  Bruno Haible  <bruno@clisp.org>
49952
49953         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
49954
49955 2007-04-23  Bruno Haible  <bruno@clisp.org>
49956
49957         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
49958
49959 2007-04-23  Bruno Haible  <bruno@clisp.org>
49960
49961         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
49962         Needed on HP-UX 11.
49963
49964 2007-04-16  Eric Blake  <ebb9@byu.net>
49965
49966         Make fflush rely on fpurge.
49967         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
49968         open coding all variants.
49969         * modules/fflush (Depends-on): Add fpurge and unistd.
49970         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
49971         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
49972
49973         Fix --with-tests compilation on cygwin.
49974         * modules/argmatch-tests (Makefile.am): List gnulib library first
49975         in LDADD.
49976         * modules/argp-tests (Makefile.am): Likewise.
49977         * modules/array-list-tests (Makefile.am): Likewise.
49978         * modules/array-oset-tests (Makefile.am): Likewise.
49979         * modules/avltree-list-tests (Makefile.am): Likewise.
49980         * modules/avltree-oset-tests (Makefile.am): Likewise.
49981         * modules/avltreehash-list-tests (Makefile.am): Likewise.
49982         * modules/carray-list-tests (Makefile.am): Likewise.
49983         * modules/dirname-tests (Makefile.am): Likewise.
49984         * modules/frexp-tests (Makefile.am): Likewise.
49985         * modules/isnanl-tests (Makefile.am): Likewise.
49986         * modules/linked-list-tests (Makefile.am): Likewise.
49987         * modules/linkedhash-list-tests (Makefile.am): Likewise.
49988         * modules/lock-tests (Makefile.am): Likewise.
49989         * modules/rbtree-list-tests (Makefile.am): Likewise.
49990         * modules/rbtree-oset-tests (Makefile.am): Likewise.
49991         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
49992         * modules/tls-tests (Makefile.am): Likewise.
49993         * modules/tsearch-tests (Makefile.am): Likewise.
49994         * modules/xvasprintf-tests (Makefile.am): Likewise.
49995
49996         Fix fpurge for cygwin.
49997         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
49998         value.
49999         * modules/fpurge-tests (Depends-on): Clean up trash.
50000
50001 2007-04-16  Simon Josefsson  <simon@josefsson.org>
50002
50003         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
50004
50005         * m4/autobuild.m4: Re-indent.
50006
50007 2007-04-13  Bruno Haible  <bruno@clisp.org>
50008
50009         * modules/fpurge-tests: New file.
50010         * tests/test-fpurge.c: New file.
50011
50012         * modules/fpurge: New file.
50013         * lib/fpurge.h: New file.
50014         * lib/fpurge.c: New file.
50015         * m4/fpurge.m4: New file.
50016
50017 2007-04-13  Bruno Haible  <bruno@clisp.org>
50018
50019         * modules/fbufmode-tests: New file.
50020         * tests/test-fbufmode.c: New file.
50021
50022         * modules/fbufmode: New file.
50023         * lib/fbufmode.h: New file.
50024         * lib/fbufmode.c: New file.
50025         * m4/fbufmode.m4: New file.
50026
50027 2007-04-13  Bruno Haible  <bruno@clisp.org>
50028
50029         * modules/fwritable-tests: New file.
50030         * tests/test-fwritable.c: New file.
50031
50032         * modules/fwritable: New file.
50033         * lib/fwritable.h: New file.
50034         * lib/fwritable.c: New file.
50035         * m4/fwritable.m4: New file.
50036
50037 2007-04-13  Bruno Haible  <bruno@clisp.org>
50038
50039         * modules/freadable-tests: New file.
50040         * tests/test-freadable.c: New file.
50041
50042         * modules/freadable: New file.
50043         * lib/freadable.h: New file.
50044         * lib/freadable.c: New file.
50045         * m4/freadable.m4: New file.
50046
50047 2007-04-13  Bruno Haible  <bruno@clisp.org>
50048
50049         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
50050         MOSTLYCLEANFILES.
50051
50052 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50053
50054         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
50055         gzip bootstrap.conf to avoid dragging in i18n machinery.
50056         (gnulib_tool_option): Use it.
50057
50058 2007-04-13  Bruno Haible  <bruno@clisp.org>
50059
50060         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
50061         %F directives.
50062         * tests/test-vasprintf-posix.c (test_function): Likewise.
50063         * tests/test-snprintf-posix.h (test_function): Likewise.
50064         * tests/test-sprintf-posix.h (test_function): Likewise.
50065         * tests/test-fprintf-posix.h (test_function): Likewise.
50066         * tests/test-printf-posix.h (test_function): Likewise.
50067         * tests/test-fprintf-posix.out: Likewise.
50068
50069 2007-04-13  Bruno Haible  <bruno@clisp.org>
50070
50071         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
50072         * modules/tls-tests (configure.ac): Likewise.
50073         Reported by Arto C. Nirkko <anirkko@insel.ch>.
50074
50075 2007-04-13  Bruno Haible  <bruno@clisp.org>
50076
50077         * lib/tls.c (glthread_tls_get): Fix return type.
50078         Patch by Arto C. Nirkko <anirkko@insel.ch>.
50079
50080 2007-04-12  Eric Blake  <ebb9@byu.net>
50081
50082         * modules/gettime (Depends-on): Remove gettime.
50083         Reported by Dmitry V. Levin.
50084
50085 2007-04-12  Bruno Haible  <bruno@clisp.org>
50086
50087         * modules/fflush (Include): Mention <stdio.h>.
50088         * modules/strtoimax (Include): Mention <inttypes.h>.
50089         * modules/strtoumax (Include): Likewise.
50090
50091 2007-04-12  Eric Blake  <ebb9@byu.net>
50092
50093         * .cvsignore: New file.
50094         * .gitignore: Likewise.
50095
50096 2007-04-12  Bruno Haible  <bruno@clisp.org>
50097
50098         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
50099         not before, since $(LDADD) often contains libgnu.a.
50100         * modules/striconv-tests (test_striconv_LDADD): Likewise.
50101         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
50102         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
50103         Needed on Cygwin.
50104
50105 2007-04-12  Eric Blake  <ebb9@byu.net>
50106
50107         Work around glibc's failure to flush stdin on fclose.
50108         * lib/closein.c (close_stdin): Flush stdin before closing.
50109
50110         Work around glibc's failure to reset seekable stdin on exit.
50111         * modules/closein: New module.
50112         * lib/closein.c: New file.
50113         * lib/closein.h: Likewise.
50114         * m4/closein.m4: Likewise.
50115         * MODULES.html.sh (File stream based Input/Output): Document it.
50116
50117 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50118
50119         * gnulib-tool: Rename generated 'autobuild' script to
50120         'do-autobuild' in --create-megatestdir output.
50121
50122         * doc/gnulib.texi (Build robot for gnulib): Fix.
50123
50124 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50125
50126         * modules/sysexits (Depends-on): Add absolute-header.
50127
50128 2007-04-12  Eric Blake  <ebb9@byu.net>
50129
50130         No need to preserve errno on success.
50131         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
50132         Reported by Bruno Haible.
50133
50134 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50135
50136         * MODULES.html.sh (Support for maintaining and releasing
50137         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
50138
50139 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50140
50141         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
50142
50143 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50144
50145         * modules/autobuild: New module.
50146
50147         * m4/autobuild.m4: New file.
50148
50149 2007-04-11  Bruno Haible  <bruno@clisp.org>
50150
50151         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
50152         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
50153         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
50154         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
50155         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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/snprintf-posix.m4 (gl_FUNC_SNPRINTF_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         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
50162         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50163         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50164         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
50165         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50166         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50167         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
50168         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50169         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50170         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
50171         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50172         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50173         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
50174         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50175         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50176         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
50177         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50178         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50179         Reported by Eric Blake.
50180
50181 2007-04-11  Bruno Haible  <bruno@clisp.org>
50182
50183         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
50184
50185 2007-04-10  Bruno Haible  <bruno@clisp.org>
50186
50187         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
50188         for NaN and Infinity. Needed on FreeBSD 6.1.
50189         * tests/test-vasnprintf-posix.c (test_function): Undo last change
50190         regarding results for "%010a" of Infinity and NaN.
50191         * tests/test-vasprintf-posix.c (test_function): Likewise.
50192         * tests/test-snprintf-posix.h (test_function): Likewise.
50193         * tests/test-sprintf-posix.h (test_function): Likewise.
50194         * tests/test-fprintf-posix.h (test_function): Likewise.
50195         * tests/test-printf-posix.h (test_function): Likewise.
50196         * tests/test-fprintf-posix.out: Likewise.
50197
50198 2007-04-10  Bruno Haible  <bruno@clisp.org>
50199
50200         * modules/locale-tests: New file.
50201         * tests/test-locale.c: New file.
50202
50203         * modules/locale: New file.
50204         * lib/locale_.h: New file.
50205         * m4/locale_h.m4: New file.
50206
50207 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
50208             Bruno Haible  <bruno@clisp.org>
50209
50210         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
50211         be determined, test for availability of the copysignf, copysign,
50212         copysignl functions.
50213         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
50214         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
50215         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
50216
50217 2007-04-09  Eric Blake  <ebb9@byu.net>
50218
50219         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
50220         * modules/stdio (Makefile.am): Support fflush.
50221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50222         * modules/fflush: New file.
50223         * lib/fflush.c: Likewise.
50224         * m4/fflush.m4: Likewise.
50225         * modules/fflush-tests: New test.
50226         * tests/test-fflush.c: Likewise.
50227         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
50228
50229 2007-04-06  Bruno Haible  <bruno@clisp.org>
50230
50231         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
50232         (VASNPRINTF): Use signbit for faster determination whether to print a
50233         minus sign.
50234         * modules/vasnprintf (Files): Remove lib/float+.h.
50235         * modules/fprintf-posix (Depends-on): Add signbit.
50236         * modules/snprintf-posix (Depends-on): Likewise.
50237         * modules/sprintf-posix (Depends-on): Likewise.
50238         * modules/vasnprintf-posix (Depends-on): Likewise.
50239         * modules/vasprintf-posix (Depends-on): Likewise.
50240         * modules/vfprintf-posix (Depends-on): Likewise.
50241         * modules/vsnprintf-posix (Depends-on): Likewise.
50242         * modules/vsprintf-posix (Depends-on): Likewise.
50243
50244 2007-04-06  Bruno Haible  <bruno@clisp.org>
50245
50246         * tests/test-frexp.c (main): Test also the sign bit of zero results.
50247         * tests/test-frexpl.c (main): Likewise.
50248         * tests/test-ldexpl.c (main): Likewise.
50249         * modules/frexp-tests (Depends-on): Add signbit.
50250         * modules/frexpl-tests (Depdends-on): Likewise.
50251         * modules/ldexpl-tests (Depdends-on): Likewise.
50252
50253 2007-04-06  Bruno Haible  <bruno@clisp.org>
50254
50255         * modules/signbit-tests: New file.
50256         * tests/test-signbit.c: New file.
50257
50258         * modules/signbit: New file.
50259         * lib/signbitf.c: New file.
50260         * lib/signbitd.c: New file.
50261         * lib/signbitl.c: New file.
50262         * m4/signbit.m4: New file.
50263         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
50264         (signbit): New macro.
50265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
50266         REPLACE_SIGNBIT.
50267         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
50268         REPLACE_FREXPL into math.h.
50269
50270 2007-04-06  Bruno Haible  <bruno@clisp.org>
50271
50272         * modules/isnanf-nolibm-tests: New file.
50273         * tests/test-isnanf.c: New file.
50274
50275         * modules/isnanf-nolibm: New file.
50276         * lib/isnanf.h: New file.
50277         * lib/isnanf.c: New file.
50278         * lib/isnan.c: Consider the USE_FLOAT macro.
50279         * m4/isnanf.m4: New file.
50280
50281 2007-04-06  Bruno Haible  <bruno@clisp.org>
50282
50283         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
50284         (Link): New section.
50285
50286         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
50287
50288 2007-04-06  Bruno Haible  <bruno@clisp.org>
50289
50290         Assume the 'long double' type.
50291         * m4/longdouble.m4: Remove file.
50292         * config/srclist.txt: Don't mention longdouble.m4.
50293         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
50294         * lib/float+.h: Likewise.
50295         * lib/frexp.c: Likewise.
50296         * lib/printf-args.h: Likewise.
50297         * lib/printf-args.c: Likewise.
50298         * lib/printf-frexp.c: Likewise.
50299         * lib/printf-parse.c: Likewise.
50300         * lib/vasnprintf.c: Likewise.
50301         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
50302         * m4/intl.m4: Likewise.
50303         * m4/isnanl.m4: Likewise.
50304         * m4/printf.m4: Likewise.
50305         * m4/printf-frexpl.m4: Likewise.
50306         * m4/vasnprintf.m4: Likewise.
50307         * modules/allocsa (Files): Remove m4/longdouble.m4.
50308         * modules/gettext (Files): Likewise.
50309         * modules/relocatable-prog-wrapper (Files): Likewise.
50310         * modules/vasnprintf (Files): Likewise.
50311         * modules/isnanl (Files): Likewise.
50312         (Include): Simplify.
50313         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
50314         (Include): Simplify.
50315         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
50316         (Include): Simplify.
50317         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
50318         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50319         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
50320         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50321         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50322         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50323         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
50324         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50325         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50326         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50327         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
50328         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50329         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
50330         * tests/test-isnanl.c: Likewise.
50331         * tests/test-snprintf-posix.h: Likewise.
50332         * tests/test-sprintf-posix.h: Likewise.
50333         * tests/test-vasnprintf-posix.c: Likewise.
50334         * tests/test-vasnprintf-posix2.c: Likewise.
50335         * tests/test-vasprintf-posix.c: Likewise.
50336
50337 2007-04-06  Bruno Haible  <bruno@clisp.org>
50338
50339         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
50340         * lib/math_.h [__DECC]: Include the overridden include file through
50341         #include_next, outside the double-inclusion guard.
50342         * lib/stdio_.h [__DECC]: Likewise.
50343         * lib/stdlib_.h [__DECC]: Likewise.
50344         * lib/string_.h [__DECC]: Likewise.
50345         * lib/time_.h [__DECC]: Likewise.
50346         * lib/wchar_.h [__DECC]: Likewise.
50347         * lib/wctype_.h [__DECC]: Likewise.
50348         * lib/inttypes_.h [__DECC]: Likewise.
50349         Reported by Albert Chin <china@thewrittenword.com> in
50350         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
50351
50352 2007-04-04  Eric Blake  <ebb9@byu.net>
50353
50354         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
50355         1.5.x.
50356
50357 2007-04-04  Bruno Haible  <bruno@clisp.org>
50358
50359         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
50360         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
50361
50362 2007-04-04  Bruno Haible  <bruno@clisp.org>
50363
50364         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
50365         results for "%010a" of Infinity and NaN.
50366         * tests/test-vasprintf-posix.c (test_function): Likewise.
50367         * tests/test-snprintf-posix.h (test_function): Likewise.
50368         * tests/test-sprintf-posix.h (test_function): Likewise.
50369         * tests/test-fprintf-posix.h (test_function): Remove these tests.
50370         * tests/test-printf-posix.h (test_function): Likewise.
50371         * tests/test-fprintf-posix.out: Update.
50372         Needed for FreeBSD 6.1.
50373
50374 2007-04-04  Bruno Haible  <bruno@clisp.org>
50375
50376         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
50377         directly used by the gnulib modules nor by gnulib-tool.
50378
50379 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50380
50381         * DEPENDENCIES: Give overall description of version dependency
50382         desirability.  Use more-typical names for apps.
50383         Add shell, coreutils, diffutils, grep, tar, gzip.
50384
50385 2007-04-04  Simon Josefsson  <simon@josefsson.org>
50386
50387         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
50388
50389 2007-04-04  Karl Berry  <karl@gnu.org>
50390
50391         * MODULES.html.sh (func_module): missing '.
50392
50393 2007-04-03  Bruno Haible  <bruno@clisp.org>
50394
50395         * modules/argmatch-tests (Makefile.am): New variable
50396         test_argmatch_LDADD.
50397         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
50398         * modules/array-list-tests (Makefile.am): New variable
50399         test_array_list_LDADD.
50400         * modules/array-oset-tests (Makefile.am): New variable
50401         test_array_oset_LDADD.
50402         * modules/avltree-list-tests (Makefile.am): New variable
50403         test_avltree_list_LDADD.
50404         * modules/avltree-oset-tests (Makefile.am): New variable
50405         test_avltree_oset_LDADD.
50406         * modules/avltreehash-list-tests (Makefile.am): New variable
50407         test_avltreehash_list_LDADD.
50408         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
50409         test_canonicalize_lgpl_LDADD.
50410         * modules/carray-list-tests (Makefile.am): New variable
50411         test_carray_list_LDADD.
50412         * modules/dirname-tests (Makefile.am): New variable
50413         test_dirname_LDADD.
50414         * modules/linked-list-tests (Makefile.am): New variable
50415         test_linked_list_LDADD.
50416         * modules/linkedhash-list-tests (Makefile.am): New variable
50417         test_linkedhash_list_LDADD.
50418         * modules/rbtree-list-tests (Makefile.am): New variable
50419         test_rbtree_list_LDADD.
50420         * modules/rbtree-oset-tests (Makefile.am): New variable
50421         test_rbtree_oset_LDADD.
50422         * modules/rbtreehash-list-tests (Makefile.am): New variable
50423         test_rbtreehash_list_LDADD.
50424         * modules/xvasprintf-tests (Makefile.am): New variable
50425         test_xvasprintf_LDADD.
50426         Reported by Eric Blake.
50427
50428 2007-04-03  Eric Blake  <ebb9@byu.net>
50429
50430         * DEPENDENCIES: Weaken m4 requirements.
50431
50432 2007-04-03  Bruno Haible  <bruno@clisp.org>
50433
50434         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
50435         * modules/isnanl-tests (configure.ac): Likewise.
50436
50437 2007-04-03  Ben Pfaff  <blp@gnu.org>
50438
50439         * modules/iconv_open: Add $(srcdir)/ to source directory
50440         references in Makefile fragments that call gperf, to fix VPATH
50441         builds.
50442
50443 2007-04-03  Bruno Haible  <bruno@clisp.org>
50444
50445         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
50446         * lib/ldexpl.c: Undo last change.
50447
50448 2007-04-03  Bruno Haible  <bruno@clisp.org>
50449
50450         * modules/printf-frexpl (Depends-on): Undo last change.
50451         (Files): Add m4/ldexpl.m4.
50452
50453 2007-04-03  Bruno Haible  <bruno@clisp.org>
50454
50455         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
50456         * modules/isnanl (Link): New section.
50457
50458         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
50459         * modules/frexp (Link): New section.
50460
50461         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
50462         * modules/frexpl (Link): New section.
50463
50464         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
50465         * modules/ldexpl (Link): New section.
50466
50467 2007-04-03  Bruno Haible  <bruno@clisp.org>
50468
50469         * modules/TEMPLATE-EXTENDED: New file.
50470         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
50471
50472 2007-04-03  Bruno Haible  <bruno@clisp.org>
50473
50474         * DEPENDENCIES: New file.
50475         Suggested by Simon Josefsson.
50476
50477 2007-04-03  Bruno Haible  <bruno@clisp.org>
50478
50479         * doc/gnulib.texi: Escape @.
50480
50481 2007-04-03  James Youngman  <jay@gnu.org>
50482         and Paul Eggert  <eggert@cs.ucla.edu>
50483
50484         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
50485         birthtime on all systems that have birthtime, not just those which
50486         use st_birthtimensec rather than st_birthtim.  Putting zero in
50487         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
50488         that the birth time is not available for files on an NFS mount.
50489
50490 2007-04-03  Simon Josefsson  <simon@josefsson.org>
50491
50492         * modules/memxor: Move back from crypto/, suggested by Bruno.
50493         * modules/crypto/hmac-sha1: Fix memxor dependency.
50494
50495         * modules/crypto/gc: Moved from ../.
50496
50497 2007-04-02  Eric Blake  <ebb9@byu.net>
50498
50499         * lib/ldexpl.c (includes): Avoid libm.
50500
50501         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
50502
50503 2007-04-02  Bruno Haible  <bruno@clisp.org>
50504
50505         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
50506         on IRIX.
50507
50508 2007-04-02  Bruno Haible  <bruno@clisp.org>
50509
50510         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
50511         x86 or x86_64 platforms running MacOS X.
50512         Reported by Ryan Schmidt <@ryandesign.com>.
50513
50514 2007-04-02  Bruno Haible  <bruno@clisp.org>
50515
50516         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
50517         i386.
50518
50519 2007-04-01  Simon Josefsson  <simon@josefsson.org>
50520
50521         * modules/crypto/arcfour: Moved from ../.
50522         * modules/crypto/arcfour-tests: Moved from ../.
50523         * modules/crypto/arctwo: Moved from ../.
50524         * modules/crypto/arctwo-tests: Moved from ../.
50525         * modules/crypto/des: Moved from ../.
50526         * modules/crypto/des-tests: Moved from ../.
50527         * modules/crypto/gc-arcfour: Moved from ../.
50528         * modules/crypto/gc-arcfour-tests: Moved from ../.
50529         * modules/crypto/gc-arctwo: Moved from ../.
50530         * modules/crypto/gc-arctwo-tests: Moved from ../.
50531         * modules/crypto/gc-des: Moved from ../.
50532         * modules/crypto/gc-des-tests: Moved from ../.
50533         * modules/crypto/gc-hmac-md5: Moved from ../.
50534         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
50535         * modules/crypto/gc-hmac-sha1: Moved from ../.
50536         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
50537         * modules/crypto/gc-md2: Moved from ../.
50538         * modules/crypto/gc-md2-tests: Moved from ../.
50539         * modules/crypto/gc-md4: Moved from ../.
50540         * modules/crypto/gc-md4-tests: Moved from ../.
50541         * modules/crypto/gc-md5: Moved from ../.
50542         * modules/crypto/gc-md5-tests: Moved from ../.
50543         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
50544         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
50545         * modules/crypto/gc-random: Moved from ../.
50546         * modules/crypto/gc-rijndael: Moved from ../.
50547         * modules/crypto/gc-rijndael-tests: Moved from ../.
50548         * modules/crypto/gc-sha1: Moved from ../.
50549         * modules/crypto/gc-sha1-tests: Moved from ../.
50550         * modules/crypto/gc-tests: Moved from ../.
50551         * modules/crypto/hmac-md5: Moved from ../.
50552         * modules/crypto/hmac-md5-tests: Moved from ../.
50553         * modules/crypto/hmac-sha1: Moved from ../.
50554         * modules/crypto/hmac-sha1-tests: Moved from ../.
50555         * modules/crypto/md2: Moved from ../.
50556         * modules/crypto/md2-tests: Moved from ../.
50557         * modules/crypto/md4: Moved from ../.
50558         * modules/crypto/md4-tests: Moved from ../.
50559         * modules/crypto/md5: Moved from ../.
50560         * modules/crypto/md5-tests: Moved from ../.
50561         * modules/crypto/memxor: Moved from ../.
50562         * modules/crypto/rijndael: Moved from ../.
50563         * modules/crypto/rijndael-tests: Moved from ../.
50564         * modules/crypto/sha1: Moved from ../.
50565
50566 2007-03-30  James Youngman  <jay@gnu.org>
50567
50568         * tests/test-stat-time.c (prepare_test): use chmod() rather than
50569         rename() to change the ctime of a file (because ctime is unaffected
50570         by rename on jfs2 on AIX 5.1).
50571         (main): Start by doing cleanup, in case a previous run failed leaving
50572         test files behind.
50573
50574 2007-03-31  Bruno Haible  <bruno@clisp.org>
50575
50576         Support old proprietary implementations of iconv.
50577         * modules/iconv_open: New file.
50578         * lib/iconv_.h: New file.
50579         * m4/iconv_h.m4: New file.
50580         * lib/iconv_open.c: New file.
50581         * lib/iconv_open-aix.gperf: New file.
50582         * lib/iconv_open-hpux.gperf: New file.
50583         * lib/iconv_open-irix.gperf: New file.
50584         * lib/iconv_open-osf.gperf: New file.
50585         * m4/iconv_open.m4: New file.
50586         * modules/linebreak (Depends-on): Add iconv_open.
50587         * modules/striconv (Depends-on): Likewise.
50588         * modules/striconveh (Depends-on): Likewise.
50589         * modules/unicodeio (Depends-on): Likewise.
50590         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
50591         (iconv_t)(-1).
50592         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
50593         conversion if cd is (iconv_t)(-1).
50594         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
50595         is not possible.
50596
50597 2007-03-31  Bruno Haible  <bruno@clisp.org>
50598
50599         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50600         work on Solaris either. Protect also second use of "autodetect_jp".
50601
50602 2007-03-31  Bruno Haible  <bruno@clisp.org>
50603
50604         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
50605         the function is not present.
50606
50607 2007-03-31  Bruno Haible  <bruno@clisp.org>
50608
50609         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
50610         the function is not present.
50611
50612 2007-03-31  Bruno Haible  <bruno@clisp.org>
50613
50614         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
50615         a bug in HP-UX iconv_open().
50616
50617 2007-03-31  Bruno Haible  <bruno@clisp.org>
50618
50619         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
50620         (Mathematics <math.h>): New section, add fpieee.
50621         (Input/output <stdio.h>): Add fseterr.
50622         (Mathematics <math.h>): New section, add printf-frexp.
50623         (Container data structures): Add sublist.
50624         (Core language properties): Add fpucw, inline.
50625         (Functions for greatest-width integer types <inttypes.h>): Add
50626         imaxabs, imaxdiv, inttypes.
50627         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
50628         isnanl-nolibm, ldexp.
50629         (Mathematics <math.h>): New section, add printf-frexpl.
50630         (Support for systems lacking POSIX:2001): Add fprintf-posix,
50631         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
50632         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
50633         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
50634         (Unicode string functions): Add unistr/u*-mbtoucr.
50635         (Java): Add javacomp-script, javaexec-script.
50636         (C#): Add csharpcomp-script, csharpexec-script.
50637         (Support for building libraries and executables): Add havelib,
50638         relocatable-*.
50639         (Support for maintaining and releasing projects): Renamed from
50640         'Support for maintaining and release projects'. Add announce-gen.
50641
50642 2007-03-31  Bruno Haible  <bruno@clisp.org>
50643
50644         * README: Talk primarily about git.
50645         (git and CVS): Renamed from CVS.
50646         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
50647         gnulib is available through git.
50648         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
50649
50650 2007-03-30  Bruno Haible  <bruno@clisp.org>
50651
50652         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
50653         * lib/poll_.h: Likewise.
50654         * lib/stat_.h: Likewise.
50655         * lib/sys_time_.h: Likewise.
50656         * lib/sysexit_.h: Likewise.
50657         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
50658         * lib/stdbool_.h: Likewise.
50659         * lib/byteswap_.h: Add double-inclusion guard.
50660
50661 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
50662
50663         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
50664
50665 2007-03-30  Karl Berry  <karl@gnu.org>
50666
50667         * config/srclist-update: double space after USA in the license
50668         substitution, since that's how it's usually (?) written.
50669
50670 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50671
50672         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
50673         reported by Bruno Haible.
50674
50675 2007-03-29  Bruno Haible  <bruno@clisp.org>
50676
50677         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
50678         a bug in AIX iconv().
50679
50680 2007-03-29  Bruno Haible  <bruno@clisp.org>
50681
50682         * modules/ldexpl-tests: New file.
50683         * tests/test-ldexpl.c: New file.
50684
50685 2007-03-29  Bruno Haible  <bruno@clisp.org>
50686
50687         * lib/ldexpl.c: Include fpucw.h.
50688         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
50689         multiplication.
50690         * modules/ldexpl (Depends-on): Add fpucw.
50691
50692 2007-03-29  Bruno Haible  <bruno@clisp.org>
50693
50694         * modules/ldexpl: New file.
50695         * m4/ldexpl.m4: New file.
50696         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
50697         set.
50698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
50699         REPLACE_LDEXPL.
50700         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
50701         REPLACE_LDEXPL.
50702         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50703         gl_FUNC_LDEXPL_WORKS.
50704         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
50705         * modules/mathl (Files): Remove lib/ldexpl.c.
50706         (Depends-on): Add ldexpl.
50707
50708 2007-03-29  Bruno Haible  <bruno@clisp.org>
50709
50710         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
50711
50712 2007-03-29  Bruno Haible  <bruno@clisp.org>
50713
50714         * tests/test-striconveh.c (main): Don't assume that a direct conversion
50715         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
50716         and possibly also HP-UX.
50717         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50718         work on AIX, IRIX, HP-UX, OSF/1.
50719         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
50720         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
50721         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
50722         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
50723         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
50724         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
50725
50726 2007-03-29  Bruno Haible  <bruno@clisp.org>
50727
50728         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
50729
50730 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50731
50732         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
50733         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
50734
50735 2007-03-29  Eric Blake  <ebb9@byu.net>
50736
50737         * lib/acl-internal.h: Remove redundant include.
50738         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
50739         Cygwin when a file is locked.
50740
50741 2007-03-29  Bruno Haible  <bruno@clisp.org>
50742
50743         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
50744         file.
50745         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
50746
50747 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50748
50749         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
50750         try to remove a parent directory if the child couldn't be removed
50751         (except for the first rmdir, which could fail because the child
50752         doesn't exist).  Problem reported by Jeff Blaine in
50753         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
50754
50755 2007-03-28  Bruno Haible  <bruno@clisp.org>
50756
50757         * lib/striconveh.c (utf8conv_carefully): New function.
50758         (mem_cd_iconveh_internal): Invoke it.
50759
50760 2007-03-28  Bruno Haible  <bruno@clisp.org>
50761
50762         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
50763         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
50764         input.
50765         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
50766         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
50767         unistr/u8-uctomb.
50768
50769 2007-03-28  Bruno Haible  <bruno@clisp.org>
50770
50771         * modules/unistr/u8-mbtoucr: New file.
50772         * lib/unistr/u8-mbtoucr.c: New file.
50773         * modules/unistr/u16-mbtoucr: New file.
50774         * lib/unistr/u16-mbtoucr.c: New file.
50775         * modules/unistr/u16-mbtoucr: New file.
50776         * lib/unistr/u16-mbtoucr.c: New file.
50777         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
50778
50779 2007-03-27  Simon Josefsson  <simon@josefsson.org>
50780             Bruno Haible  <bruno@clisp.org>
50781
50782         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
50783         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
50784         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
50785
50786         * m4/stdio_h.m4: Add stubs for vasprintf too.
50787
50788         * modules/stdio: Support vasprintf in sed command.
50789
50790         * modules/vasprintf: Depend on stdio for prototypes.  Remove
50791         vasprintf.h.  Add stdio module indicator.
50792
50793         * lib/stdio_.h: Declare asprintf and vasprintf, based on
50794         vasprintf.h.
50795
50796         * lib/vasprintf.h: File removed.
50797
50798         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
50799         * lib/vasprintf.c: Ditto.
50800         * lib/xvasprintf.c: Ditto.
50801         * tests/test-vasprintf-posix.c: Ditto.
50802         * tests/test-vasprintf.c: Ditto.
50803
50804 2007-03-27  Bruno Haible  <bruno@clisp.org>
50805
50806         Make vasnprintf multithread-safe.
50807         * lib/vasnprintf.c (decimal_point_char): New function.
50808         (VASNPRINTF): Use it.
50809         Suggested by Simon Josefsson.
50810
50811 2007-03-27  Eric Blake  <ebb9@byu.net>
50812
50813         Support sub-second birthtime on cygwin.
50814         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
50815         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
50816         (get_stat_birthtime): Also work with st_birthtim.
50817
50818 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
50819
50820         * lib/stat-time.h (USE_BIRTHTIME): Remove.
50821         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
50822         (get_stat_birthtime_ns): Do not try to use "spare" fields.
50823         (get_stat_birthtime_ns): Simplify compile-time tests.
50824         (get_stat_birthtime): Change the API to look like
50825         get_stat_mtime etc., except return a negative tv_nsec on error.
50826         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
50827         Don't check for "spare" fields.
50828         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
50829         or for struct stat.st_birthtime, as these tests aren't used.
50830         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
50831
50832 2007-03-27  Bruno Haible  <bruno@clisp.org>
50833
50834         * lib/stat-time.h: Include <sys/stat.h>.
50835
50836 2007-03-27  James Youngman  <jay@gnu.org>
50837
50838         * lib/stat-time.h (get_stat_birthtime): New function for
50839           retrieving st_birthtime as provided by UFS2 (hence *BSD).
50840         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
50841           and its variants.
50842         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
50843         * modules/stat-time-test: New file.
50844         * tests/test-stat-time.c: New test, devised by Bruno Haible.
50845
50846 2007-03-26  Bruno Haible  <bruno@clisp.org>
50847
50848         Better support of signalling NaNs.
50849         * lib/atanl.c: Include isnanl.h.
50850         (atanl): Perform test for NaN at the beginning of the function and
50851         through a call to isnanl.
50852         * lib/cosl.c: Include isnanl.h.
50853         (cosl): Perform test for NaN at the beginning of the function and
50854         through a call to isnanl.
50855         * lib/ldexpl.c: Include isnanl.h.
50856         (ldexpl): Perform test for NaN through a call to isnanl.
50857         * lib/logl.c: Include isnanl.h.
50858         (logl): Perform test for NaN at the beginning of the function and
50859         through a call to isnanl.
50860         * lib/sinl.c: Include isnanl.h.
50861         (sinl): Perform test for NaN at the beginning of the function and
50862         through a call to isnanl.
50863         * lib/sqrtl.c: Include isnanl.h.
50864         (sqrtl): Perform test for NaN at the beginning of the function and
50865         through a call to isnanl.
50866         * lib/tanl.c: Include isnanl.h.
50867         (tanl): Perform test for NaN at the beginning of the function and
50868         through a call to isnanl.
50869         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
50870         * modules/mathl (Depends-on): Add isnanl.
50871
50872 2007-03-26  Eric Blake  <ebb9@byu.net>
50873
50874         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
50875         regression in logic sense of previous patch.
50876
50877 2007-03-26  Bruno Haible  <bruno@clisp.org>
50878
50879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
50880         unportable shell command "if ! ...".
50881         Reported by Ralf Wildenhues.
50882
50883 2007-03-25  Bruno Haible  <bruno@clisp.org>
50884
50885         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
50886         <sysexits.h> file, and only add EX_CONFIG.
50887         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
50888         absolute file name and whether it is sufficient. Substitute also
50889         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
50890         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
50891         ABSOLUTE_SYSEXITS_H into sysexits.h.
50892
50893 2007-03-25  Bruno Haible  <bruno@clisp.org>
50894
50895         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
50896         hints is NULL.
50897
50898 2007-03-25  Bruno Haible  <bruno@clisp.org>
50899
50900         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
50901         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
50902
50903 2007-03-25  Bruno Haible  <bruno@clisp.org>
50904
50905         * lib/vasnprintf.c: Include langinfo.h.
50906         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
50907         multithread-safe.
50908         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
50909         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
50910         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50911         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50912         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50913         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50914         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50915         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
50916         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50917         Reported by Simon Josefsson.
50918
50919 2007-03-25  Bruno Haible  <bruno@clisp.org>
50920
50921         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50922         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
50923         * modules/vasnprintf (Depends-on): Add stdint.
50924
50925 2007-03-25  Bruno Haible  <bruno@clisp.org>
50926
50927         * modules/fpieee: New file.
50928         * m4/fpieee.m4: New file.
50929         * modules/isnan-nolibm (Depends-on): Add fpieee.
50930         * modules/isnanl-nolibm (Depends-on): Add fpieee.
50931         * modules/isnanl (Depends-on): Add fpieee.
50932
50933 2007-03-25  Bruno Haible  <bruno@clisp.org>
50934
50935         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
50936
50937 2007-03-25  Bruno Haible  <bruno@clisp.org>
50938
50939         Avoid test failures on IRIX 6.5.
50940         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
50941         (main): Use it.
50942         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
50943         macros.
50944         (main): Use them.
50945
50946 2007-03-25  Bruno Haible  <bruno@clisp.org>
50947
50948         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
50949         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
50950         exists but doesn't work.
50951         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
50952         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
50953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
50954         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
50955         math.h.
50956
50957 2007-03-25  Bruno Haible  <bruno@clisp.org>
50958
50959         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
50960         returns inf. Needed on IRIX 6.5.
50961
50962 2007-03-25  Bruno Haible  <bruno@clisp.org>
50963
50964         * tests/test-frexpl.c: Include isnanl-nolibm.h.
50965         (main): Use isnanl instead of x != x idiom.
50966         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
50967
50968         * tests/test-frexp.c: Include isnan.h.
50969         (main): Use isnan instead of x != x idiom.
50970         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
50971
50972 2007-03-25  Bruno Haible  <bruno@clisp.org>
50973
50974         * tests/test-frexp.c (NaN): New function/macro.
50975         (main): Use it instead of 0.0 / 0.0.
50976         * tests/test-isnan.c (NaN): New function/macro.
50977         (main): Use it instead of 0.0 / 0.0.
50978         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
50979         (test_function): Use it instead of 0.0 / 0.0.
50980         * tests/test-vasprintf-posix.c (NaN): New function/macro.
50981         (test_function): Use it instead of 0.0 / 0.0.
50982         * tests/test-snprintf-posix.h (NaN): New function/macro.
50983         (test_function): Use it instead of 0.0 / 0.0.
50984         * tests/test-sprintf-posix.h (NaN): New function/macro.
50985         (test_function): Use it instead of 0.0 / 0.0.
50986         * tests/test-fprintf-posix.h (NaN): New function/macro.
50987         (test_function): Use it instead of 0.0 / 0.0.
50988         * tests/test-printf-posix.h (NaN): New function/macro.
50989         (test_function): Use it instead of 0.0 / 0.0.
50990
50991         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
50992
50993 2007-03-25  Bruno Haible  <bruno@clisp.org>
50994
50995         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
50996
50997 2007-03-25  Bruno Haible  <bruno@clisp.org>
50998
50999         * lib/regexec.c (merge_state_with_log): Make static.
51000
51001 2007-03-25  Bruno Haible  <bruno@clisp.org>
51002
51003         * lib/trigl.c (kernel_rem_pio2): Make static.
51004
51005 2007-03-25  Bruno Haible  <bruno@clisp.org>
51006
51007         * lib/sincosl.c (sincosl_table): Make static.
51008
51009 2007-03-25  Bruno Haible  <bruno@clisp.org>
51010
51011         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
51012         if the compiler does not support C99.
51013
51014 2007-03-25  Bruno Haible  <bruno@clisp.org>
51015
51016         * modules/time (Makefile.am): Ensure all rule action lines start with a
51017         tab.
51018
51019 2007-03-24  Bruno Haible  <bruno@clisp.org>
51020
51021         * modules/tsearch-tests: New file.
51022         * tests/test-tsearch.sh: New file.
51023         * tests/test-tsearch.c: New file, mostly copied from glibc.
51024
51025         * modules/search-tests: New file.
51026         * tests/test-search.c: New file.
51027
51028         * modules/search: New file.
51029         * lib/search_.h: New file, incorporating lib/tsearch.h.
51030         * m4/search_h.m4: New file.
51031         * lib/tsearch.h: Remove file.
51032         * lib/tsearch.c: Include search.h instead of tsearch.h.
51033         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
51034         HAVE_TSEARCH.
51035         * modules/tsearch (Files): Remove lib/tsearch.h.
51036         (Depends-on): Add search.
51037         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
51038         (Include): Change tsearch.h into search.h.
51039
51040 2007-03-24  Bruno Haible  <bruno@clisp.org>
51041
51042         * modules/fpucw: New file.
51043         * lib/fpucw.h: New file.
51044         * lib/frexp.c: Include fpucw.h.
51045         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51046         (FUNC): Use them.
51047         * lib/printf-frexp.c: Include fpucw.h.
51048         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51049         (FUNC): Use them.
51050         * lib/vasnprintf.c: Include fpucw.h.
51051         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
51052         'long double' calculations.
51053         * tests/test-frexpl.c: Include fpucw.h.
51054         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51055         * tests/test-printf-frexpl.c: Include fpucw.h.
51056         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51057         * modules/frexpl (Depends-on): Add fpucw.
51058         * modules/printf-frexpl (Depends-on): Likewise.
51059         * modules/fprintf-posix (Depends-on): Likewise.
51060         * modules/snprintf-posix (Depends-on): Likewise.
51061         * modules/sprintf-posix (Depends-on): Likewise.
51062         * modules/vasnprintf-posix (Depends-on): Likewise.
51063         * modules/vasprintf-posix (Depends-on): Likewise.
51064         * modules/vfprintf-posix (Depends-on): Likewise.
51065         * modules/vsnprintf-posix (Depends-on): Likewise.
51066         * modules/vsprintf-posix (Depends-on): Likewise.
51067         * modules/frexpl-tests (Depends-on): Likewise.
51068         * modules/printf-frexpl-tests (Depends-on): Likewise.
51069
51070 2007-03-24  Bruno Haible  <bruno@clisp.org>
51071
51072         * lib/float+.h: New file.
51073         * lib/isnan.c: Include float+.h.
51074         (SIZE): New macro.
51075         (FUNC): Compare only SIZE bytes of the value.
51076         * lib/vasnprintf.c: Include float+.h.
51077         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
51078         SIZEOF_LDBL or SIZEOF_DBL bytes.
51079         * modules/isnan-nolibm (Files): Add lib/float+.h.
51080         * modules/isnanl-nolibm (Files): Add lib/float+.h.
51081         * modules/isnanl (Files): Add lib/float+.h.
51082         * modules/vasnprintf (Files): Add lib/float+.h.
51083
51084 2007-03-24  Bruno Haible  <bruno@clisp.org>
51085
51086         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
51087         include isnanl-nolibm.h.
51088
51089 2007-03-24  Bruno Haible  <bruno@clisp.org>
51090
51091         * tests/test-read-file.c (main): Don't produce spurious output for
51092         expected situations. Make the test fail if it encountered unexpected
51093         results.
51094
51095 2007-03-24  Bruno Haible  <bruno@clisp.org>
51096
51097         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
51098         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
51099
51100 2007-03-24  Bruno Haible  <bruno@clisp.org>
51101
51102         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
51103
51104 2007-03-24  Bruno Haible  <bruno@clisp.org>
51105
51106         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
51107         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
51108
51109         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
51110         * modules/utf8-ucs4: Turn into a symbolic link to module
51111         unistr/u8-mbtouc.
51112
51113         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
51114         utf8-ucs4-unsafe.
51115         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
51116         unistr/u8-mbtouc-unsafe.
51117
51118         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
51119         * modules/utf16-ucs4: Turn into a symbolic link to module
51120         unistr/u16-mbtouc.
51121
51122         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
51123         utf16-ucs4-unsafe.
51124         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
51125         unistr/u16-mbtouc-unsafe.
51126
51127         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
51128         * modules/ucs4-utf8: Turn into a symbolic link to module
51129         unistr/u8-ubtomb.
51130
51131         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
51132         * modules/ucs4-utf16: Turn into a symbolic link to module
51133         unistr/u16-ubtomb.
51134
51135 2007-03-24  Bruno Haible  <bruno@clisp.org>
51136
51137         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
51138         Enable the function only if HAVE_INLINE.
51139         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
51140         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51141         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
51142         Enable the function only if HAVE_INLINE.
51143         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
51144         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51145         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
51146         Enable the function only if HAVE_INLINE.
51147         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
51148         Enable the function only if HAVE_INLINE.
51149         * modules/utf8-ucs4: Update.
51150         * modules/utf8-ucs4-unsafe: Update.
51151         * modules/utf16-ucs4: Update.
51152         * modules/utf16-ucs4-unsafe: Update.
51153         * modules/ucs4-utf8: Update.
51154         * modules/ucs4-utf16: Update.
51155
51156 2007-03-24  Bruno Haible  <bruno@clisp.org>
51157
51158         * lib/utf8-ucs4.h: Remove file.
51159         * lib/utf8-ucs4-unsafe.h: Remove file.
51160         * lib/utf16-ucs4.h: Remove file.
51161         * lib/utf16-ucs4-unsafe.h: Remove file.
51162         * lib/ucs4-utf8.h: Remove file.
51163         * lib/ucs4-utf16.h: Remove file.
51164         * lib/unistr.h: Include their previous contents.
51165         * m4/utf-ucs4.m4: Remove file.
51166         * m4/ucs4-utf.m4: Remove file.
51167         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
51168         (Depends-on): Add unistr/base.
51169         (configure.ac): Remove gl_UTF_UCS4.
51170         (Makefile.am): Update.
51171         (Include): Change to unistr.h.
51172         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
51173         (Depends-on): Add unistr/base.
51174         (configure.ac): Remove gl_UTF_UCS4.
51175         (Makefile.am): Update.
51176         (Include): Change to unistr.h.
51177         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
51178         (Depends-on): Add unistr/base.
51179         (configure.ac): Remove gl_UTF_UCS4.
51180         (Makefile.am): Update.
51181         (Include): Change to unistr.h.
51182         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
51183         (Depends-on): Add unistr/base.
51184         (configure.ac): Remove gl_UTF_UCS4.
51185         (Makefile.am): Update.
51186         (Include): Change to unistr.h.
51187         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
51188         (Depends-on): Add unistr/base.
51189         (configure.ac): Remove gl_UCS4_UTF.
51190         (Makefile.am): Update.
51191         (Include): Change to unistr.h.
51192         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
51193         (Depends-on): Add unistr/base.
51194         (configure.ac): Remove gl_UCS4_UTF.
51195         (Makefile.am): Update.
51196         (Include): Change to unistr.h.
51197         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
51198         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
51199         utf8-ucs4-unsafe.h.
51200         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
51201         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
51202         utf16-ucs4-unsafe.h.
51203         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
51204         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
51205         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
51206         * lib/unistr/u8-strchr.c: Likewise.
51207         * lib/unistr/u8-strrchr.c: Likewise.
51208         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
51209         * lib/unistr/u16-strchr.c: Likewise.
51210         * lib/unistr/u16-strrchr.c: Likewise.
51211         * lib/striconveh.c: Update.
51212         * lib/linebreak.c: Update.
51213
51214 2007-03-24  Bruno Haible  <bruno@clisp.org>
51215
51216         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
51217         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
51218
51219 2007-03-22  Bruno Haible  <bruno@clisp.org>
51220
51221         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
51222
51223 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51224
51225         * MODULES.html.sh (File system functions): New module write-any-file.
51226         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
51227         * m4/write-any-file.m4: New files.
51228
51229 2007-03-23  Eric Blake  <ebb9@byu.net>
51230
51231         * gnulib-tool: Rearrange space-tab sequences, since some editors
51232         like to eat them.
51233
51234 2007-03-23  Eric Blake  <ebb9@byu.net>
51235
51236         * lib/version-etc.c (version_etc_va): Update license wording to
51237         be more concise.  Recommended by Richard Stallman.
51238
51239 2007-03-22  Bruno Haible  <bruno@clisp.org>
51240
51241         * lib/poll.c (MSG_PEEK): New fallback definition.
51242
51243 2007-03-22  Bruno Haible  <bruno@clisp.org>
51244
51245         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
51246         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
51247         (main): Update.
51248         Fixes a compilation error on BeOS.
51249
51250 2007-03-22  Bruno Haible  <bruno@clisp.org>
51251
51252         * modules/frexpl-tests: New file.
51253         * tests/test-frexpl.c: New file.
51254
51255         * modules/frexpl: New file.
51256         * m4/frexpl.m4: New file.
51257         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
51258         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
51259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
51260         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
51261         (Depends-on): Add frexpl. Remove isnanl-nolibm.
51262         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
51263
51264 2007-03-22  Bruno Haible  <bruno@clisp.org>
51265
51266         * lib/frexpl.c: Share code with lib/frexp.c.
51267         * modules/mathl (Files): Add lib/frexp.c.
51268         (Depends-on): Add isnanl-nolibm.
51269
51270 2007-03-22  Bruno Haible  <bruno@clisp.org>
51271
51272         * modules/printf-frexp (Files): Add m4/frexp.m4.
51273         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
51274         only if the found frexp function actually works.
51275
51276 2007-03-22  Bruno Haible  <bruno@clisp.org>
51277
51278         * lib/frexp.c: Remove older implementation that uses divisions.
51279
51280 2007-03-21  Bruno Haible  <bruno@clisp.org>
51281
51282         * modules/frexp-tests: New file.
51283         * tests/test-frexp.c: New file.
51284
51285         * modules/frexp: New file.
51286         * lib/frexp.c: New file.
51287         * m4/frexp.m4: New file.
51288         * lib/math_.h (frexp): New declaration.
51289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
51290         REPLACE_FREXP.
51291         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
51292
51293 2007-03-21  Bruno Haible  <bruno@clisp.org>
51294
51295         * modules/isnanl-tests: New file.
51296         * tests/test-isnanl.c: New file.
51297
51298         * modules/isnanl: New file.
51299         * lib/isnanl.h: New file.
51300         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
51301         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
51302         gl_FUNC_ISNANL_WORKS.
51303         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
51304         New macros.
51305
51306 2007-03-21  Bruno Haible  <bruno@clisp.org>
51307
51308         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
51309         lib/isnanl.h.
51310         (Include): Update.
51311         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
51312         * lib/vasnprintf.c: Update.
51313         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
51314         tests/test-isnanl.h, remove tests/test-isnanl.c.
51315         (Makefile.am): Update.
51316         * tests/test-isnanl-nolibm.c: New file.
51317         * tests/test-isnanl.h: New file.
51318         * tests/test-isnanl.c: Remove file.
51319
51320 2007-03-21  Jim Meyering  <jim@meyering.net>
51321
51322         When trying to open ".", treat ESTALE like EACCES.
51323         * lib/savewd.c (savewd_save): Resort to forking not just upon
51324         failure with EACCES, but also when errno is ESTALE.
51325
51326 2007-03-20  Bruno Haible  <bruno@clisp.org>
51327
51328         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
51329         Needed on AIX 5.1. Reported by Matthew Woehlke.
51330
51331 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51332
51333         Suggestions by Bruno Haible:
51334         * lib/acl-internal.h: Include "gettext.h" rather than rolling
51335         our own.
51336         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
51337         * modules/acl (Depends-on): Add gettext.
51338
51339 2007-03-19  Bruno Haible  <bruno@clisp.org>
51340
51341         * modules/iconvme: Remove file.
51342         * lib/iconvme.h: Remove file.
51343         * lib/iconvme.c: Remove file.
51344         * m4/iconvme.m4: Remove file.
51345
51346 2007-03-19  Bruno Haible  <bruno@clisp.org>
51347
51348         * doc/relocatable-maint.texi: Break long shell script line.
51349         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51350
51351 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51352
51353         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
51354         handle file_has_acl.
51355         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
51356         * lib/acl.c: Move header inclusions and related macro defns into
51357         lib/acl-internal.h.
51358         (S_ISLNK): Remove defn, since that's now done for us.
51359         (file_has_acl): Move to lib/file-has-acl.c.
51360         Call acl_trivial if available.  This is the crucial part of the fix.
51361         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
51362         shared within the library.  Rewrite a bit, partly to make it compatible
51363         with the GNU coding style.
51364         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
51365         Remove unnecessary double-quotes.
51366         Don't test for acl_to_text; the build will catch that.
51367         Replace acl_entries if it doesn't exist and it is needed.
51368         Check for -lsec and acl_trivial (as used on Solaris 10).
51369         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
51370         lib/file-has-acl.c.
51371         (Depends-on): Add sys_stat, for S_ISLNK.
51372
51373 2007-03-19  Ben Pfaff  <blp@gnu.org>
51374
51375         * doc/gnulib.texi: Fix typos.
51376         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51377
51378 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51379
51380         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
51381         If size is zero here, buf must be zero.
51382
51383 2007-03-19  Simon Josefsson  <simon@josefsson.org>
51384
51385         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
51386         <bruno@clisp.org>.
51387
51388 2007-03-18  Bruno Haible  <bruno@clisp.org>
51389
51390         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
51391         Suggested by Eric Blake.
51392
51393 2007-03-18  Ben Pfaff  <blp@gnu.org>
51394
51395         * doc/relocatable.texi: Recommend using as prefix a directory
51396         that does not exist and will never be created.  Based on
51397         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
51398         and others.
51399
51400 2007-03-17  Bruno Haible  <bruno@clisp.org>
51401
51402         * lib/fchownat.c: Include lchown.h.
51403
51404 2007-03-17  Bruno Haible  <bruno@clisp.org>
51405
51406         Fix endless loop when the given allocated size was > INT_MAX.
51407         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
51408         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
51409         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
51410         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
51411         * lib/sprintf.c (sprintf): Likewise.
51412
51413 2007-03-17  Bruno Haible  <bruno@clisp.org>
51414
51415         * tests/test-argp-2.sh (func_compare): Output a context diff.
51416
51417 2007-03-17  Bruno Haible  <bruno@clisp.org>
51418
51419         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
51420         locale's decimal-point character.
51421
51422 2007-03-17  Bruno Haible  <bruno@clisp.org>
51423
51424         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
51425         before comparing it. Needed because on some platforms (e.g. x86) a
51426         'long double' occupies less bytes than sizeof (long double).
51427
51428 2007-03-17  Bruno Haible  <bruno@clisp.org>
51429
51430         * tests/test-crc.c (main): Make printf statements 64-bit clean.
51431         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
51432         * tests/test-getaddrinfo.c (simple): Likewise.
51433         * tests/test-read-file.c (main): Likewise.
51434
51435 2007-03-17  Bruno Haible  <bruno@clisp.org>
51436
51437         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
51438
51439 2007-03-17  Bruno Haible  <bruno@clisp.org>
51440
51441         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
51442         unused variable.
51443
51444 2007-03-17  Bruno Haible  <bruno@clisp.org>
51445
51446         * tests/test-c-strcasecmp.c: Include c-strcase.h.
51447         * tests/test-c-strncasecmp.c: Likewise.
51448
51449 2007-03-17  Bruno Haible  <bruno@clisp.org>
51450
51451         * modules/stdlib (Depends-on): Add unistd.
51452         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
51453         Needed for MacOS X 10.3.
51454
51455 2007-03-17  Bruno Haible  <bruno@clisp.org>
51456
51457         * lib/unistr/u-strdup.h: Include <stdlib.h>.
51458
51459 2007-03-17  Bruno Haible  <bruno@clisp.org>
51460
51461         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
51462
51463 2007-03-17  Bruno Haible  <bruno@clisp.org>
51464
51465         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
51466         to reflect files copied from gnulib (with or without modifications).
51467         Suggested by Jim Meyering.
51468
51469 2007-03-17  Eric Blake  <ebb9@byu.net>
51470
51471         * NEWS: Document stdlib change from 2007-02-18.
51472
51473 2007-03-17  Jim Meyering  <jim@meyering.net>
51474
51475         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
51476         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
51477         someone uses a name containing shell meta-characters.
51478         Reported by Alfred M. Szmidt.
51479
51480         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
51481
51482 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51483
51484         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
51485         and copy gettext configuration files only if configure.ac contains
51486         a use of AM_GNU_GETTEXT_VERSION.
51487
51488 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51489
51490         * build-aux/bootstrap (gnulib_name): New variable.
51491         (gnulib_tool_options): Use it.
51492
51493 2007-03-13  Simon Josefsson  <simon@josefsson.org>
51494
51495         * tests/test-des.c: Use new namespace.
51496
51497 2007-03-15  Bruno Haible  <bruno@clisp.org>
51498
51499         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
51500         Reported by James Youngman <jay@gnu.org>.
51501
51502 2007-03-15  Bruno Haible  <bruno@clisp.org>
51503
51504         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
51505         declared prototype. Needed with cc on OSF/1 5.1.
51506
51507 2007-03-15  Bruno Haible  <bruno@clisp.org>
51508
51509         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
51510         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
51511         (struct gl_list_implementation): Add dispose_fn argument to the
51512         'create_empty', 'create' methods.
51513         (struct gl_list_impl_base): Add field 'dispose_fn'.
51514         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
51515         argument.
51516         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
51517         dispose_fn argument.
51518         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
51519         dispose_fn on the dropped values.
51520         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
51521         dispose_fn argument.
51522         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
51523         dropped values.
51524         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
51525         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51526         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
51527         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51528         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
51529         argument.
51530         (gl_tree_list_free): Call dispose_fn on the dropped values.
51531         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
51532         the dropped values.
51533         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51534         Add dispose_fn argument.
51535         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
51536         Call dispose_fn on the dropped values.
51537         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
51538         Add dispose_fn argument.
51539         (gl_sublist_create): Initialize the 'dispose_fn' field.
51540         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
51541         * tests/test-array_list.c (main): Update.
51542         * tests/test-carray_list.c (main): Update.
51543         * tests/test-avltree_list.c (main): Update.
51544         * tests/test-rbtree_list.c (main): Update.
51545         * tests/test-avltreehash_list.c (main): Update.
51546         * tests/test-rbtreehash_list.c (main): Update.
51547         * tests/test-linked_list.c (main): Update.
51548         * tests/test-linkedhash_list.c (main): Update.
51549         * tests/test-array_oset.c (main): Update.
51550
51551 2007-03-15  Bruno Haible  <bruno@clisp.org>
51552
51553         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
51554         (gl_oset_create_empty): Add dispose_fn argument.
51555         (struct gl_oset_implementation): Add dispose_fn argument to
51556         'create_empty' method.
51557         (struct gl_oset_impl_base): Add dispose_fn field.
51558         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
51559         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
51560         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
51561         values.
51562         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
51563         (gl_tree_oset_free): Call dispose_fn on the dropped values.
51564         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51565         dropped value.
51566         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51567         dropped value.
51568         * tests/test-array_oset.c (main): Update.
51569         * tests/test-avltree_oset.c (main): Update.
51570         * tests/test-rbtree_oset.c (main): Update.
51571         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
51572
51573 2007-03-13  Bruno Haible  <bruno@clisp.org>
51574
51575         * tests/test-stdbool.c (i): Update after last patch.
51576
51577 2007-03-12  Bruno Haible  <bruno@clisp.org>
51578
51579         * lib/quotearg.c: Include <wctype.h> early, before the definition of
51580         the iswprint macro. Needed on Solaris 2.5.1.
51581
51582 2007-03-12  Bruno Haible  <bruno@clisp.org>
51583
51584         * tests/test-printf-frexp.c (main): Declare x as volatile.
51585
51586 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51587
51588         * doc/gnulib.texi (Build robot for gnulib): New section.
51589
51590 2007-03-12  Jim Meyering  <jim@meyering.net>
51591
51592         * build-aux/bootstrap: New file.
51593         * build-aux/bootstrap.conf: New file, from coreutils.
51594
51595 2007-03-11  Bruno Haible  <bruno@clisp.org>
51596
51597         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
51598
51599 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51600
51601         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
51602         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
51603         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
51604
51605 2007-03-11  Bruno Haible  <bruno@clisp.org>
51606
51607         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
51608         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
51609
51610 2007-03-11  Bruno Haible  <bruno@clisp.org>
51611
51612         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
51613         formula. Needed for SunPRO C 5.0.
51614
51615 2007-03-11  Bruno Haible  <bruno@clisp.org>
51616
51617         * modules/long-options (Depends-on): Add getopt.
51618
51619 2007-03-11  Bruno Haible  <bruno@clisp.org>
51620
51621         * modules/modechange (Depends-on): Add stdbool.
51622
51623 2007-03-11  Bruno Haible  <bruno@clisp.org>
51624
51625         * modules/i-ring (Depends-on): Add stdbool.
51626
51627 2007-03-11  Bruno Haible  <bruno@clisp.org>
51628
51629         * modules/gc-des (Depends-on): Add stdbool.
51630
51631 2007-03-11  Bruno Haible  <bruno@clisp.org>
51632
51633         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
51634
51635 2007-03-11  Bruno Haible  <bruno@clisp.org>
51636
51637         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
51638
51639 2007-03-11  Bruno Haible  <bruno@clisp.org>
51640
51641         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
51642
51643 2007-03-11  Bruno Haible  <bruno@clisp.org>
51644
51645         * lib/vasnprintf.c (sprintf): Undefine.
51646
51647 2007-03-11  Bruno Haible  <bruno@clisp.org>
51648
51649         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
51650         initializers in SunPRO C and Compaq C compilers.
51651
51652 2007-03-11  Bruno Haible  <bruno@clisp.org>
51653
51654         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
51655         decrementing code ANSI C compliant.
51656
51657 2007-03-11  Bruno Haible  <bruno@clisp.org>
51658
51659         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
51660         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
51661
51662 2007-03-11  Bruno Haible  <bruno@clisp.org>
51663
51664         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
51665         <stdbool.h> substitute doesn't pass.
51666
51667 2007-03-11  Bruno Haible  <bruno@clisp.org>
51668
51669         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
51670
51671 2007-03-11  Bruno Haible  <bruno@clisp.org>
51672
51673         * gnulib-tool (func_create_megatestdir): Create also an autobuild
51674         script, for submission to autobuild.josefsson.org.
51675
51676 2007-03-10  Bruno Haible  <bruno@clisp.org>
51677
51678         * modules/canonicalize-lgpl-tests: New file.
51679         * tests/test-canonicalize-lgpl.sh: New file.
51680         * tests/test-canonicalize-lgpl.c: New file.
51681
51682         * modules/c-strcase-tests: New file.
51683         * tests/test-c-strcase.sh: New file.
51684         * tests/test-c-strcasecmp.c: New file.
51685         * tests/test-c-strncasecmp.c: New file.
51686
51687         * modules/atexit-tests: New file.
51688         * tests/test-atexit.sh: New file.
51689         * tests/test-atexit.c: New file.
51690
51691 2007-03-10  Bruno Haible  <bruno@clisp.org>
51692
51693         * tests/test-binary-io.sh: Use temporary filenames that are not so
51694         likely to clash with those of other tests (in a parallel make).
51695         * tests/test-binary-io.c: Likewise.
51696
51697 2007-03-10  Bruno Haible  <bruno@clisp.org>
51698
51699         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
51700         fallback; use #error instead.
51701         Suggested by Simon Josefsson.
51702
51703 2007-03-10  Bruno Haible  <bruno@clisp.org>
51704
51705         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
51706         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
51707         first and the last.
51708
51709 2007-03-10  Bruno Haible  <bruno@clisp.org>
51710
51711         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
51712
51713 2007-03-10  Bruno Haible  <bruno@clisp.org>
51714
51715         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
51716         "make distcheck".
51717         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
51718         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
51719         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
51720
51721 2007-03-10  Bruno Haible  <bruno@clisp.org>
51722
51723         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
51724         variable.
51725         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
51726         variable.
51727
51728 2007-03-09  Eric Blake  <ebb9@byu.net>
51729         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
51730
51731         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
51732         types are not being provided by gnulib.
51733         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
51734         types are supported.
51735
51736 2007-03-10  Bruno Haible  <bruno@clisp.org>
51737
51738         * lib/stdio_.h (__attribute__): New macro.
51739         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
51740         vsprintf): Specify __attribute__ __format__ for GCC.
51741         Suggested by Eric Blake.
51742
51743 2007-03-09  Bruno Haible  <bruno@clisp.org>
51744
51745         * modules/printf-posix-tests: New file.
51746         * tests/test-printf-posix.sh: New file.
51747         * tests/test-printf-posix.c: New file.
51748
51749         * modules/printf-posix: New file.
51750         * lib/printf.c: New file.
51751         * m4/printf-posix-rpl.m4: New file.
51752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
51753         REPLACE_PRINTF.
51754         * lib/stdio_.h (printf): New declaration.
51755         (format, __format__, ____printf____, ____scanf____, ____strftime____,
51756         ____strfmon____): New macros.
51757         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
51758         REPLACE_PRINTF.
51759
51760 2007-03-09  Bruno Haible  <bruno@clisp.org>
51761
51762         * tests/test-vasnprintf-posix2.sh: New file.
51763         * tests/test-vasnprintf-posix2.c: New file.
51764         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
51765         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51766         (Makefile.am): Activate test-vasnprintf-posix2.sh.
51767
51768         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
51769         a locale dependent decimal point, rather than always '.'.
51770
51771 2007-03-09  Eric Blake  <ebb9@byu.net>
51772
51773         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
51774         spite of platforms like Tandem/NSK that define it to -1.
51775
51776 2007-03-08  Bruno Haible  <bruno@clisp.org>
51777
51778         * modules/vprintf-posix-tests: New file.
51779         * tests/test-vprintf-posix.sh: New file.
51780         * tests/test-vprintf-posix.c: New file.
51781         * tests/test-printf-posix.h: New file.
51782
51783         * modules/vprintf-posix: New file.
51784         * lib/vprintf.c: New file.
51785         * m4/vprintf-posix.m4: New file.
51786         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
51787         REPLACE_VPRINTF.
51788         * lib/stdio_.h (vprintf): New declaration.
51789         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
51790         REPLACE_VPRINTF.
51791
51792 2007-03-08  Bruno Haible  <bruno@clisp.org>
51793
51794         * modules/fprintf-posix-tests: New file.
51795         * tests/test-fprintf-posix.sh: New file.
51796         * tests/test-fprintf-posix.c: New file.
51797
51798         * modules/fprintf-posix: New file.
51799         * lib/fprintf.c: New file.
51800         * m4/fprintf-posix.m4: New file.
51801         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
51802         REPLACE_FPRINTF.
51803         * lib/stdio_.h (fprintf): New declaration.
51804         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
51805         REPLACE_FPRINTF.
51806
51807 2007-03-08  Bruno Haible  <bruno@clisp.org>
51808
51809         * modules/vfprintf-posix-tests: New file.
51810         * tests/test-vfprintf-posix.sh: New file.
51811         * tests/test-vfprintf-posix.c: New file.
51812         * tests/test-fprintf-posix.h: New file.
51813         * tests/test-fprintf-posix.out: New file.
51814
51815         * modules/vfprintf-posix: New file.
51816         * lib/vfprintf.c: New file.
51817         * m4/vfprintf-posix.m4: New file.
51818         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
51819         REPLACE_VFPRINTF.
51820         * lib/stdio_.h (vfprintf): New declaration.
51821         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
51822         REPLACE_VFPRINTF.
51823
51824 2007-03-08  Bruno Haible  <bruno@clisp.org>
51825
51826         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
51827
51828 2007-03-08  Bruno Haible  <bruno@clisp.org>
51829
51830         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
51831         instead of 'expr' invocations.
51832         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51833         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51834         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51835         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51836         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51837         Suggested by Paul Eggert.
51838
51839 2007-03-08  Bruno Haible  <bruno@clisp.org>
51840
51841         * modules/fseterr-tests: New file.
51842         * tests/test-fseterr.c: New file.
51843
51844         * modules/fseterr: New file.
51845         * lib/fseterr.h: New file.
51846         * lib/fseterr.c: New file.
51847
51848 2007-03-08  Bruno Haible  <bruno@clisp.org>
51849
51850         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
51851         * lib/getopt_.h: Likewise.
51852         * lib/mbswidth.h: Likewise.
51853         * lib/setenv.h: Likewise.
51854         * lib/vasnprintf.h: Likewise.
51855         * lib/vasprintf.h: Likewise.
51856         * lib/verror.h: Likewise.
51857         * lib/xsetenv.h: Likewise.
51858         * lib/xvasprintf.h: Likewise.
51859
51860 2007-03-08  Jim Meyering  <jim@meyering.net>
51861
51862         * users.txt: Add parted.
51863
51864         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
51865
51866 2007-03-07  Bruno Haible  <bruno@clisp.org>
51867
51868         * m4/printf.m4: Make the shell script snippets copy&pastable.
51869
51870 2007-03-02  Bruno Haible  <bruno@clisp.org>
51871
51872         * lib/netinet_in_.h: New file.
51873         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
51874         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
51875         * modules/netinet_in (Files): Add lib/netinet_in_.h.
51876         (Depends-on): Add absolute-header.
51877         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
51878         into netinet/in.h.
51879
51880 2007-03-03  Bruno Haible  <bruno@clisp.org>
51881
51882         * lib/sys_select_.h: New file.
51883         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
51884         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
51885         * modules/sys_select (Files): Add lib/sys_select_.h.
51886         (Depends-on): Add absolute-header.
51887         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
51888         into sys/select.h.
51889
51890 2007-03-02  Bruno Haible  <bruno@clisp.org>
51891
51892         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
51893         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
51894         values.
51895         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
51896         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
51897         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
51898         * modules/sys_socket (Depends-on): Add absolute-header.
51899         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
51900         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
51901         (Include): Remove requirement of inclusion of <sys/types.h>.
51902
51903 2007-03-02  Bruno Haible  <bruno@clisp.org>
51904
51905         * lib/byteswap_.h (bswap_32): Fix formula.
51906
51907 2007-03-06  Bruno Haible  <bruno@clisp.org>
51908
51909         * modules/sprintf-posix-tests: New file.
51910         * tests/test-sprintf-posix.c: New file.
51911
51912         * modules/sprintf-posix: New file.
51913         * lib/sprintf.c: New file.
51914         * m4/sprintf-posix.m4: New file.
51915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
51916         REPLACE_SPRINTF.
51917         * lib/stdio_.h (sprintf): New declaration.
51918         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51919         REPLACE_SPRINTF.
51920
51921 2007-03-06  Bruno Haible  <bruno@clisp.org>
51922
51923         * modules/vsprintf-posix-tests: New file.
51924         * tests/test-vsprintf-posix.c: New file.
51925         * tests/test-sprintf-posix.h: New file.
51926
51927         * modules/vsprintf-posix: New file.
51928         * lib/vsprintf.c: New file.
51929         * m4/vsprintf-posix.m4: New file.
51930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
51931         REPLACE_VSPRINTF.
51932         * lib/stdio_.h (vsprintf): New declaration.
51933         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
51934         REPLACE_VSPRINTF.
51935
51936 2007-03-06  Bruno Haible  <bruno@clisp.org>
51937
51938         * modules/vsnprintf (Depend-on): Remove minmax.
51939
51940 2007-03-06  Bruno Haible  <bruno@clisp.org>
51941
51942         * modules/snprintf-posix-tests: New file.
51943         * tests/test-snprintf-posix.c: New file.
51944
51945         * modules/snprintf-posix: New file.
51946         * m4/snprintf-posix.m4: New file.
51947         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
51948         gl_FUNC_SNPRINTF.
51949         (gl_FUNC_SNPRINTF): Invoke it.
51950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
51951         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
51952         is set.
51953         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
51954
51955 2007-03-06  Bruno Haible  <bruno@clisp.org>
51956
51957         * modules/vsnprintf-posix-tests: New file.
51958         * tests/test-vsnprintf-posix.c: New file.
51959         * tests/test-snprintf-posix.h: New file.
51960
51961         * modules/vsnprintf-posix: New file.
51962         * m4/vsnprintf-posix.m4: New file.
51963         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
51964         gl_FUNC_VSNPRINTF.
51965         (gl_FUNC_VSNPRINTF): Invoke it.
51966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
51967         * lib/stdio_.h (vsnprintf): Define as a replacement if
51968         REPLACE_VSNPRINTF is set.
51969         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
51970
51971 2007-03-06  Bruno Haible  <bruno@clisp.org>
51972
51973         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
51974         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
51975
51976 2007-03-06  Bruno Haible  <bruno@clisp.org>
51977
51978         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
51979         (asinl): Declare also if HAVE_DECL_ASINL is set.
51980         (atanl): Declare also if HAVE_DECL_ATANL is set.
51981         (ceill): Declare also if HAVE_DECL_CEILL is set.
51982         (cosl): Declare also if HAVE_DECL_COSL is set.
51983         (expl): Declare also if HAVE_DECL_EXPL is set.
51984         (floorl): Declare also if HAVE_DECL_FLOORL is set.
51985         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
51986         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
51987         (logl): Declare also if HAVE_DECL_LOGL is set.
51988         (sinl): Declare also if HAVE_DECL_SINL is set.
51989         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
51990         (tanl): Declare also if HAVE_DECL_TANL is set.
51991         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
51992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
51993         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
51994         declaration of frexpl, ldexpl.
51995         * modules/printf-frexpl (Depends-on): Add math.
51996         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
51997
51998 2007-03-05  Bruno Haible  <bruno@clisp.org>
51999
52000         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
52001         frexpl and ldexpl are declared.
52002         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
52003
52004 2007-03-05  Bruno Haible  <bruno@clisp.org>
52005
52006         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
52007         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
52008
52009 2007-03-05  Bruno Haible  <bruno@clisp.org>
52010
52011         * lib/stdio_.h: Include <stddef.h>.
52012
52013 2007-03-05  Bruno Haible  <bruno@clisp.org>
52014
52015         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
52016
52017 2007-03-05  Bruno Haible  <bruno@clisp.org>
52018
52019         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
52020         NetBSD 4, from Ralf Wildenhues.
52021
52022 2007-03-04  Bruno Haible  <bruno@clisp.org>
52023
52024         * lib/vasprintf.h: Update #if logic for the case when the functions
52025         exist but are overridden.
52026
52027 2007-03-04  Bruno Haible  <bruno@clisp.org>
52028
52029         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
52030         implementations: glibc-2.4 and MacOS X 10.3.
52031         * tests/test-vasnprintf-posix.c (test_function): Test also the case
52032         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
52033         * tests/test-vasprintf-posix.c (test_function): Likewise.
52034
52035 2007-03-04  Bruno Haible  <bruno@clisp.org>
52036
52037         * modules/vasprintf-posix-tests: New file.
52038         * tests/test-vasprintf-posix.c: New file.
52039
52040         * modules/vasprintf-posix: New file.
52041         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
52042         defined.
52043         * m4/vasprintf-posix.m4: New file.
52044         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
52045         gl_FUNC_VASPRINTF.
52046         (gl_FUNC_VASPRINTF): Invoke it.
52047         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
52048         here.
52049         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
52050
52051 2007-03-04  Bruno Haible  <bruno@clisp.org>
52052
52053         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
52054         REPLACE_GETTIMEOFDAY.
52055         * modules/sys_time (Makefile.am): Likewise.
52056         * m4/sys_time_h.m4: Likewise.
52057         * m4/gettimeofday.m4: Likewise.
52058
52059 2007-03-04  Bruno Haible  <bruno@clisp.org>
52060
52061         * modules/vasnprintf-posix-tests: New file.
52062         * tests/test-vasnprintf-posix.c: New file.
52063
52064         * modules/vasnprintf-posix: New file.
52065         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
52066         printf-frexpl.h.
52067         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
52068         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
52069         REPLACE_VASNPRINTF is defined.
52070         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
52071         gl_FUNC_VASNPRINTF.
52072         (gl_FUNC_VASNPRINTF): Invoke it.
52073         * m4/vasnprintf-posix.m4: New file.
52074         * m4/printf.m4: New file.
52075
52076 2007-03-04  Bruno Haible  <bruno@clisp.org>
52077
52078         Compile progreloc.c only if --enable-relocatable is specified.
52079         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
52080         if --enable-relocatable was specified.
52081         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
52082         lib_SOURCES.
52083
52084 2007-03-04  Jim Meyering  <jim@meyering.net>
52085
52086         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
52087         Use it consistently, rather than enumerating errno constants.
52088
52089 2007-03-04  Bruno Haible  <bruno@clisp.org>
52090
52091         * modules/xvasprintf-tests: New file.
52092         * tests/test-xvasprintf.c: New file.
52093
52094         * modules/vasprintf-tests: New file.
52095         * tests/test-vasprintf.c: New file.
52096
52097         * modules/vasnprintf-tests: New file.
52098         * tests/test-vasnprintf.c: New file.
52099
52100         * modules/vsnprintf-tests: New file.
52101         * tests/test-vsnprintf.c: New file.
52102
52103         * modules/snprintf-tests: New file.
52104         * tests/test-snprintf.c: New file.
52105
52106 2007-03-04  Bruno Haible  <bruno@clisp.org>
52107
52108         Compile relocatable.c only if --enable-relocatable is specified.
52109         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
52110         gl_RELOCATABLE_LIBRARY.
52111         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
52112         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
52113         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
52114         gl_RELOCATABLE_LIBRARY.
52115         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
52116         (Makefile.am): Remove lib_SOURCES.
52117         * modules/relocatable-lib-lgpl (configure.ac): Invoke
52118         gl_RELOCATABLE_LIBRARY.
52119         (Makefile.am): Remove lib_SOURCES.
52120         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
52121         always.
52122         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52123         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
52124
52125 2007-03-04  Bruno Haible  <bruno@clisp.org>
52126
52127         * modules/argmatch-tests: New file.
52128         * tests/test-argmatch.c: New file.
52129
52130         * tests/test-allocsa.c (main): Halve the number of loop runs.
52131
52132         * modules/alloca-opt-tests: New file.
52133         * tests/test-alloca-opt.c: New file.
52134
52135 2007-03-04  Jim Meyering  <jim@meyering.net>
52136
52137         Work around difference between Linux ACLs and Solaris 10 ZFS.
52138         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
52139         for EINVAL.
52140
52141 2007-03-03  Bruno Haible  <bruno@clisp.org>
52142
52143         * modules/relocatable-prog (Depends-on): Add back progreloc's
52144         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
52145
52146 2007-03-03  Bruno Haible  <bruno@clisp.org>
52147
52148         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
52149         * modules/relocatable-lib: New file.
52150
52151 2007-03-03  Bruno Haible  <bruno@clisp.org>
52152
52153         * modules/relocatable-prog: Renamed from modules/relocatable.
52154         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
52155
52156 2007-03-03  Bruno Haible  <bruno@clisp.org>
52157
52158         * modules/relocatable-script (Files): Add doc/relocatable.texi,
52159         m4/relocatable-lib.m4.
52160         (Depends-on): Remove 'relocatable'.
52161         (configure.ac): Add gl_RELOCATABLE_NOP.
52162
52163 2007-03-03  Bruno Haible  <bruno@clisp.org>
52164
52165         * modules/relocatable-prog-wrapper: New file.
52166         * modules/relocatable (Depends-on): Add it. Remove all other
52167         dependencies except progname.
52168         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
52169
52170         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
52171         (gl_FUNC_STRERROR): Nop.
52172         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
52173
52174         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
52175         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
52176
52177         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
52178         (gl_FUNC_READLINK): Update.
52179
52180         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
52181
52182 2007-03-03  Bruno Haible  <bruno@clisp.org>
52183
52184         * lib/xreadlink.c: Include <unistd.h> unconditionally.
52185         * modules/xreadlink (Depends-on): Add unistd.
52186         * modules/xreadlink-with-size (Depends-on): Likewise.
52187
52188 2007-03-03  Bruno Haible  <bruno@clisp.org>
52189
52190         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
52191         extracted from gt_FUNC_SETENV.
52192         (gt_FUNC_SETENV): Remove macro.
52193         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
52194         remove gt_FUNC_SETENV.
52195
52196 2007-03-03  Bruno Haible  <bruno@clisp.org>
52197
52198         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
52199         ENABLE_RELOCATABLE here.
52200         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
52201
52202 2007-03-03  Bruno Haible  <bruno@clisp.org>
52203
52204         * modules/rbtreehash-list-tests (Depends-on): Add progname.
52205         * tests/test-rbtreehash_list.c: Include progname.h.
52206         (main): Call set_program_name.
52207
52208         * modules/rbtree-oset-tests (Depends-on): Add progname.
52209         * tests/test-rbtree_oset.c: Include progname.h.
52210         (main): Call set_program_name.
52211
52212         * modules/rbtree-list-tests (Depends-on): Add progname.
52213         * tests/test-rbtree_list.c: Include progname.h.
52214         (main): Call set_program_name.
52215
52216         * modules/linked-list-tests (Depends-on): Add progname.
52217         * tests/test-linked_list.c: Include progname.h.
52218         (main): Call set_program_name.
52219
52220 2007-03-03  Bruno Haible  <bruno@clisp.org>
52221
52222         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
52223         All uses of __restrict changed to _Restrict_.
52224         * lib/glob_.h (__restrict): Remove macro.
52225
52226 2007-03-02  Bruno Haible  <bruno@clisp.org>
52227
52228         * modules/gettext (configure.ac): Require gettext infrastructure
52229         from version 0.16.1.
52230
52231 2007-03-02  Bruno Haible  <bruno@clisp.org>
52232
52233         * modules/linkedhash-list-tests (Depends-on): Add progname.
52234         * tests/test-linkedhash_list.c: Include progname.h.
52235         (main): Call set_program_name.
52236
52237         * modules/carray-list-tests (Depends-on): Add progname.
52238         * tests/test-carray_list.c: Include progname.h.
52239         (main): Call set_program_name.
52240
52241         * modules/avltreehash-list-tests (Depends-on): Add progname.
52242         * tests/test-avltreehash_list.c: Include progname.h.
52243         (main): Call set_program_name.
52244
52245         * modules/avltree-oset-tests (Depends-on): Add progname.
52246         * tests/test-avltree_oset.c: Include progname.h.
52247         (main): Call set_program_name.
52248
52249         * modules/avltree-list-tests (Depends-on): Add progname.
52250         * tests/test-avltree_list.c: Include progname.h.
52251         (main): Call set_program_name.
52252
52253         * modules/array-oset-tests (Depends-on): Add progname.
52254         * tests/test-array_oset.c: Include progname.h.
52255         (main): Call set_program_name.
52256
52257         * modules/array-list-tests (Depends-on): Add progname.
52258         * tests/test-array_list.c: Include progname.h.
52259         (main): Call set_program_name.
52260
52261         * modules/argp-tests (Depends-on): Add progname.
52262         * tests/test-argp.c: Include argp.h first. Include progname.h.
52263         (main): Call set_program_name.
52264
52265 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
52266
52267         * doc/gnulib-tool.texi (Initial import): Reword description of
52268         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
52269         limited effect even if defined after the first system include.
52270
52271 2007-03-01  Bruno Haible  <bruno@clisp.org>
52272
52273         * build-aux/config.libpath: Update to libtool-1.5.22.
52274         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52275
52276 2007-03-01  Bruno Haible  <bruno@clisp.org>
52277
52278         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
52279         foo_CFLAGS.
52280         Reported by Ralf Wildenhues.
52281
52282 2007-03-01  Bruno Haible  <bruno@clisp.org>
52283
52284         * build-aux/install-reloc: Remove object files left over by some
52285         compilers.
52286         Reported by Ralf Wildenhues.
52287
52288 2007-03-01  Bruno Haible  <bruno@clisp.org>
52289
52290         * build-aux/install-reloc: Break long lines.
52291
52292 2007-03-01  Bruno Haible  <bruno@clisp.org>
52293
52294         * doc/relocatable.texi: Document that it may not work on OpenBSD.
52295         Reported by Ralf Wildenhues.
52296
52297 2007-03-01  Bruno Haible  <bruno@clisp.org>
52298
52299         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
52300         include ordering constraints.
52301
52302 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52303
52304         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
52305         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
52306         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
52307         as another example.
52308         * lib/time_.h: Fix misspelling.
52309         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52310         Require gl_HEADER_TIME_H_DEFAULTS.
52311         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
52312         * m4/time_r.m4 (gl_TIME_R): Likewise.
52313         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
52314
52315 2007-03-01  Bruno Haible  <bruno@clisp.org>
52316
52317         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
52318         * m4/utimens.m4 (gl_UTIMENS): Likewise.
52319
52320 2007-03-01  Jim Meyering  <jim@meyering.net>
52321
52322         * modules/xreadlink (Maintainer): Add my name.
52323         * modules/xreadlink-with-size (Depends-on): Alphabetize.
52324
52325 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
52326             Bruno Haible  <bruno@clisp.org>
52327
52328         * build-aux/install-reloc: Compile also c-ctype.c.
52329         * build-aux/relocatable.sh.in: New file.
52330         * doc/relocatable.texi: New file.
52331         * doc/relocatable-maint.texi: New file.
52332         * doc/gnulib.texi: Include relocatable-maint.texi.
52333         * lib/progreloc.c: Include unistd.h unconditionally.
52334         * lib/relocwrapper.c: Include unistd.h unconditionally.
52335         Include c-ctype.h.
52336         (add_dotbin): Use c_tolower.
52337         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
52338         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
52339         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
52340         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
52341         to m4/relocatable-lib.m4.
52342         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
52343         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
52344         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
52345         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
52346         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
52347         * modules/relocatable: New file.
52348         * modules/relocatable-lib: New file.
52349         * modules/relocatable-script: New file.
52350
52351 2007-02-28  Bruno Haible  <bruno@clisp.org>
52352
52353         Import --enable-relocatable infrastructure.
52354         * build-aux/config.libpath: New file, from GNU gettext.
52355         * build-aux/install-reloc: New file, from GNU gettext.
52356         * build-aux/reloc-ldflags: New file, from GNU gettext.
52357         * lib/relocatable.h: New file, from GNU gettext.
52358         * lib/relocatable.c: New file, from GNU gettext.
52359         * lib/relocwrapper.c: New file, from GNU gettext.
52360         * m4/relocatable.m4: New file, from GNU gettext.
52361
52362 2007-02-28  Bruno Haible  <bruno@clisp.org>
52363
52364         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
52365
52366         * modules/xreadlink: New file, from GNU gettext with modifications.
52367         * lib/xreadlink.c: New file, from GNU gettext.
52368         * lib/xreadlink.h: Add comments.
52369         (xreadlink): New declaration.
52370
52371         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
52372         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
52373         lib/xreadlink-with-size.c.
52374         (configure.ac): Remove gl_XREADLINK invocation.
52375         (Makefile.am): Augment lib_SOURCES.
52376         * m4/xreadlink.m4: Remove file.
52377         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
52378         (xreadlink_with_size): Renamed from xreadink.
52379         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
52380         * modules/canonicalize (Depends-on): Replace xreadlink with
52381         xreadlink-with-size.
52382         * lib/canonicalize.c (canonicalize_filename_mode): Update.
52383
52384 2007-02-25  Jim Meyering  <jim@meyering.net>
52385
52386         * build-aux/announce-gen: When complaining about excess arguments,
52387         list them.
52388
52389 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52390
52391         * README: Document signed integer overflow situation more
52392         accurately.
52393
52394 2007-02-25  Bruno Haible  <bruno@clisp.org>
52395
52396         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
52397         'a' or 'A' conversion.
52398
52399 2007-02-25  Bruno Haible  <bruno@clisp.org>
52400
52401         * modules/filename: Renamed from modules/pathname.
52402         (Files): Replace lib/pathname.h with lib/filename.h. Replace
52403         lib/concatpath.c with lib/concat-filename.c.
52404         (Makefile.am): Update.
52405         (Include): Replace pathname.h with filename.h.
52406         * lib/filename.h: Renamed from lib/pathname.h.
52407         (concatenated_filename): Renamed from concatenated_pathname.
52408         * lib/concat-filename.c: Renamed from lib/concatpath.c.
52409         (concatenated_filename): Renamed from concatenated_pathname.
52410         * lib/findprog.c: Include filename.h instead of pathname.h.
52411         (find_in_path): Update.
52412         * lib/javacomp.c: Include filename.h instead of pathname.h.
52413         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52414         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52415         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52416         is_oldgcj_14_13_usable, is_javac_usable): Update.
52417         * lib/javaexec.c: Include filename.h instead of pathname.h.
52418         (execute_java_class): Update.
52419         * modules/findprog: Update.
52420         * modules/javacomp: Update.
52421         * modules/javaexec: Update.
52422         * MODULES.html.sh (File system functions): Add 'filename', remove
52423         'pathname'.
52424
52425 2007-02-25  Bruno Haible  <bruno@clisp.org>
52426
52427         * modules/printf-frexpl-tests: New file.
52428         * tests/test-printf-frexpl.c: New file.
52429
52430         * modules/printf-frexpl: New file.
52431         * lib/printf-frexpl.h: New file.
52432         * lib/printf-frexpl.c: New file.
52433         * m4/printf-frexpl.m4: New file.
52434
52435 2007-02-25  Bruno Haible  <bruno@clisp.org>
52436
52437         * modules/printf-frexp-tests: New file.
52438         * tests/test-printf-frexp.c: New file.
52439
52440         * modules/printf-frexp: New file.
52441         * lib/printf-frexp.h: New file.
52442         * lib/printf-frexp.c: New file.
52443         * m4/printf-frexp.m4: New file.
52444
52445 2007-02-25  Bruno Haible  <bruno@clisp.org>
52446
52447         Assume automake >= 1.10 for the tests.
52448         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
52449         * modules/arctwo-tests: Likewise.
52450         * modules/argp-tests: Likewise.
52451         * modules/avltree-list-tests: Likewise.
52452         * modules/avltree-oset-tests: Likewise.
52453         * modules/avltreehash-list-tests: Likewise.
52454         * modules/carray-list-tests: Likewise.
52455         * modules/crc-tests: Likewise.
52456         * modules/des-tests: Likewise.
52457         * modules/gc-arcfour-tests: Likewise.
52458         * modules/gc-arctwo-tests: Likewise.
52459         * modules/gc-des-tests: Likewise.
52460         * modules/gc-hmac-md5-tests: Likewise.
52461         * modules/gc-hmac-sha1-tests: Likewise.
52462         * modules/gc-md2-tests: Likewise.
52463         * modules/gc-md4-tests: Likewise.
52464         * modules/gc-md5-tests: Likewise.
52465         * modules/gc-pbkdf2-sha1-tests: Likewise.
52466         * modules/gc-rijndael-tests: Likewise.
52467         * modules/gc-sha1-tests: Likewise.
52468         * modules/gc-tests: Likewise.
52469         * modules/getaddrinfo-tests: Likewise.
52470         * modules/hmac-md5-tests: Likewise.
52471         * modules/hmac-sha1-tests: Likewise.
52472         * modules/linked-list-tests: Likewise.
52473         * modules/linkedhash-list-tests: Likewise.
52474         * modules/lock-tests: Likewise.
52475         * modules/md2-tests: Likewise.
52476         * modules/md4-tests: Likewise.
52477         * modules/md5-tests: Likewise.
52478         * modules/rbtree-list-tests: Likewise.
52479         * modules/rbtree-oset-tests: Likewise.
52480         * modules/rbtreehash-list-tests: Likewise.
52481         * modules/read-file-tests: Likewise.
52482         * modules/rijndael-tests: Likewise.
52483         * modules/stdint-tests: Likewise.
52484         * modules/tls-tests: Likewise.
52485
52486 2007-02-24  Bruno Haible  <bruno@clisp.org>
52487
52488         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
52489         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
52490         function; instead check whether isnan with a double argument links.
52491         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
52492         function; instead check whether isnan with a 'long double' argument
52493         links.
52494         Reported by Eric Blake <ebb9@byu.net>.
52495
52496 2007-02-24  Bruno Haible  <bruno@clisp.org>
52497
52498         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
52499         defined.
52500         * lib/isnanl.c: Remove all code. Just include isnan.c.
52501         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
52502
52503 2007-02-25  Jim Meyering  <jim@meyering.net>
52504
52505         Avoid conflicting types for 'unsetenv' on FreeBSD.
52506         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
52507         conflicting with FreeBSD's (5.0 and 6.1) function declaration
52508         in stdlib.h.
52509
52510 2007-02-24  Bruno Haible  <bruno@clisp.org>
52511
52512         * modules/isnanl-nolibm-tests: New file.
52513         * tests/test-isnanl.c: New file.
52514
52515         * modules/isnanl-nolibm: New file.
52516         * lib/isnanl.h: New file.
52517         * lib/isnanl.c: New file.
52518         * m4/isnanl.m4: New file.
52519
52520 2007-02-24  Bruno Haible  <bruno@clisp.org>
52521
52522         * modules/isnan-nolibm-tests: New file.
52523         * tests/test-isnan.c: New file.
52524
52525         * modules/isnan-nolibm: New file.
52526         * lib/isnan.h: New file.
52527         * lib/isnan.c: New file.
52528         * m4/isnan.m4: New file.
52529
52530 2007-02-24  Bruno Haible  <bruno@clisp.org>
52531
52532         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
52533         assume that an exponent fits in 20 bits.
52534
52535 2007-02-24  Jim Meyering  <jim@meyering.net>
52536
52537         * m4/regex.m4: Update the description of the configure-time option,
52538         --without-included-regex, to state accurately what the defaults are,
52539         and perhaps to give people an idea why using this option is risky.
52540
52541 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52542
52543         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
52544         loops on small arguments.  This attempts to avoid the problem
52545         Bruno Haible reported for AIX 4.3.2 in
52546         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
52547
52548 2007-02-23  Bruno Haible  <bruno@clisp.org>
52549
52550         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
52551         Needed for help2man.
52552
52553 2007-02-23  Karl Berry  <karl@gnu.org>
52554
52555         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
52556         exists, foo.h should be cvs-ignored, not committed.
52557
52558 2007-02-23  Eric Blake  <ebb9@byu.net>
52559
52560         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
52561         * lib/stat-time.h (includes): Likewise.
52562         * lib/utimecmp.c (includes): Likewise.
52563         * lib/utimens.h (includes): Likewise.
52564         * lib/getdate.y (includes): Also include "timespec.h" for use
52565         internal to the module.
52566         * modules/utimens (Depends-on): Revert yesterday's patch.
52567         * modules/nanosleep (Depends-on): Add missing dependency.
52568
52569 2007-02-22  Bruno Haible  <bruno@clisp.org>
52570
52571         * lib/glob.c: Don't include getlogin_r.h.
52572
52573 2007-02-22  Jim Meyering  <jim@meyering.net>
52574
52575         * modules/utimens (Depends-on): Add timespec, required for
52576         utimens.h's inclusion of timespec.h.
52577
52578 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
52579
52580         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
52581         long unreadable paths in GNU/Linux.  Problem reported by Andreas
52582         Schwab in
52583         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
52584         I'll try to think of a better way to fix the Solaris problem.
52585
52586         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
52587         like glibc; on Solaris 10, it fails with errno == EINVAL.
52588         POSIX says the behavior is unspecified if the first argument is NULL,
52589         so play it safe and never pass NULL to the system getcwd.
52590
52591 2007-02-21  Jim Meyering  <jim@meyering.net>
52592
52593         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
52594         of gettimeofday.  It would conflict with the one now always
52595         provided via sys_time_.h.  Reported by Matthew Woehlke, as
52596         an IRIX 6.5 build failure.
52597
52598 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52599
52600         Minor fixups to port to Solaris 10 with Sun C 5.8.
52601         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
52602         * modules/getcwd (Depends-on): Add dirfd.
52603         * lib/putenv.c (putenv): #undef it.
52604         (rpl_putenv): New decl.
52605         (malloc, free): Include <stdlib.h> rather than prototyping separately.
52606
52607 2007-02-20  Bruno Haible  <bruno@clisp.org>
52608
52609         * modules/stdio-tests: New file.
52610         * tests/test-stdio.c: New file.
52611
52612         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
52613         (Depends-on): Add stdio.
52614         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52615         (Include): Use <stdio.h> instead of vsnprintf.h.
52616         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52617         HAVE_DECL_VSNPRINTF.
52618         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
52619
52620         * modules/snprintf (Files): Remove lib/snprintf.h.
52621         (Depends-on): Add stdio.
52622         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52623         (Include): Use <stdio.h> instead of snprintf.h.
52624         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52625         HAVE_DECL_SNPRINTF.
52626         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
52627         * lib/getaddrinfo.c: Likewise.
52628
52629         * modules/stdio: New file.
52630         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
52631         * lib/snprintf.h: Remove file.
52632         * lib/vsnprintf.h: Remove file.
52633         * lib/.cppi-disable: Remove snprintf.h.
52634         * m4/stdio_h.m4: New file.
52635         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
52636
52637 2007-02-20  Jim Meyering  <jim@meyering.net>
52638
52639         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
52640         used by e.g., mingw.  From Bruno Haible.
52641
52642 2007-02-19  Bruno Haible  <bruno@clisp.org>
52643
52644         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
52645         warnings.
52646         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52647
52648 2007-02-19  Bruno Haible  <bruno@clisp.org>
52649
52650         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
52651         from mingw users.
52652
52653 2007-02-19  Bruno Haible  <bruno@clisp.org>
52654
52655         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
52656         warnings.
52657         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
52658
52659 2007-02-19  Jim Meyering  <jim@meyering.net>
52660
52661         Don't use FD after a successful "fdopendir (fd)".
52662         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
52663         Reset it by calling dirfd on the just-obtained DIR*.
52664
52665         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
52666         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
52667
52668 2007-02-18  Bruno Haible  <bruno@clisp.org>
52669
52670         * lib/readlink.c: Include <unistd.h>.
52671         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
52672         HAVE_READLINK.
52673         * modules/readlink (Depends-on): Add unistd.
52674         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52675         (Include): Add <unistd.h>.
52676
52677         * lib/getlogin_r.h: Remove file.
52678         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
52679         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
52680         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
52681         HAVE_DECL_GETLOGIN_R.
52682         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
52683         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52684         (Include): Use <unistd.h> instead of getlogin_r.h.
52685
52686         * lib/getcwd.h: Remove file.
52687         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
52688         * lib/xgetcwd.c: Likewise.
52689         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
52690         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
52691         * modules/getcwd (Files): Remove lib/getcwd.h.
52692         (Depends-on): Add unistd.
52693         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52694         (Include): Use <unistd.h> instad of getcwd.h.
52695
52696         * lib/ftruncate.c: Include <unistd.h> first.
52697         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
52698         Set HAVE_FTRUNCATE.
52699         * modules/ftruncate (Depends-on): Add unistd.
52700         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52701
52702         * lib/fchdir.c: Include <unistd.h> first.
52703         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
52704         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
52705         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
52706         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52707         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
52708
52709         * lib/dup2.c: Include <unistd.h> first.
52710         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
52711         HAVE_DUP2.
52712         * modules/dup2 (Depends-on): Add unistd.
52713         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52714
52715         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
52716         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
52717         REPLACE_CHOWN. Don't define chown as a macro here.
52718         * modules/chown (Depends-on): Add unistd.
52719         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52720
52721         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
52722         Add definition for GL_LINK_WARNING.
52723         (chown, dup2): New declarations.
52724         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
52725         link warning.
52726         (ftruncate): New declaration.
52727         (getcwd): New declaration, taken from old getcwd.h.
52728         (getlogin_r): New declaration, taken from old getlogin_r.h.
52729         (readlink): New declaration.
52730         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
52731         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
52732         (gl_PREREQ_UNISTD): Remove macro.
52733         (gl_UNISTD_MODULE_INDICATOR): New macro.
52734         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
52735         many new variables. Don't set UNISTD_H.
52736         * modules/unistd (Description): Change.
52737         (Depends-on): Add link-warning.
52738         (configure.ac): Update.
52739         (Makefile.am): Create unistd.h always. Substitute many new variables
52740         into it.
52741
52742 2007-02-18  Bruno Haible  <bruno@clisp.org>
52743
52744         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
52745         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
52746         HAVE_GETSUBOPT.
52747         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
52748         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
52749         * lib/getsubopt.h: Remove file.
52750         * modules/getsubopt (Files): Remove lib/getsubopt.h.
52751         (Depends-on): Add stdlib.
52752         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52753         (Includes): Use <stdlib.h> instead of getsubopt.h.
52754         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
52755         Set HAVE_GETSUBOPT.
52756         * lib/getsubopt.c: Don't include getsubopt.h.
52757
52758 2007-02-18  Bruno Haible  <bruno@clisp.org>
52759
52760         * modules/fchdir (Depends-on): Add dup2.
52761
52762 2007-02-18  Bruno Haible  <bruno@clisp.org>
52763
52764         * lib/stdlib_.h: Handle glibc's special invocation convention
52765         specially.
52766
52767 2007-02-18  Bruno Haible  <bruno@clisp.org>
52768
52769         * modules/stdlib-tests: New file.
52770         * tests/test-stdlib.c: New file.
52771
52772         * modules/mkstemp (Files): Remove lib/mkstemp.h.
52773         (Depends-on): Add stdlib.
52774         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52775         (Includes): Use <stdlib.h> instead of mkstemp.h.
52776         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52777         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
52778         * lib/mkstemp.c: Don't include mkstemp.h.
52779         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
52780         * lib/stdlib--.h: Don't include mkstemp.h.
52781
52782         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
52783         (Depends-on): Add stdlib.
52784         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52785         (Includes): Use <stdlib.h> instead of mkdtemp.h.
52786         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52787         HAVE_MKDTEMP.
52788         * lib/mkdtemp.c: Don't include mkdtemp.h.
52789         * lib/clean-temp.c: Don't include mkdtemp.h.
52790
52791         * modules/exit (Files): Remove lib/exit.h.
52792         (Depends-on): Add stdlib.
52793         (Makefile.am): Remove lib_SOURCES.
52794         (Include): Use <stdlib.h> instead of exit.h.
52795         * lib/argmatch.c: Don't include exit.h.
52796         * lib/execute.c: Likewise.
52797         * lib/pagealign_alloc.c: Likewise.
52798         * lib/pipe.c: Likewise.
52799         * lib/wait-process.c: Likewise.
52800         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
52801         * lib/exitfail.c: Likewise.
52802         * lib/savewd.c: Likewise.
52803         * lib/xsetenv.c: Likewise.
52804
52805         * modules/stdlib: New file.
52806         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
52807         and extra comments about mkstemp().
52808         * lib/exit.h: Remove file.
52809         * lib/mkdtemp.h: Remove file.
52810         * lib/mkstemp.h: Remove file.
52811         * m4/stdlib_h.m4: New file.
52812         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
52813
52814 2007-02-18  Bruno Haible  <bruno@clisp.org>
52815
52816         * modules/math-tests: New file.
52817         * tests/test-math.c: New file.
52818
52819         * modules/math: New file.
52820         * modules/mathl (Files): Remove lib/mathl.h.
52821         (Depends-on): Add math.
52822         (Makefile.am): Don't mention mathl.h.
52823         (Include): Use <math.h> instead of mathl.h.
52824         * lib/math_.h: New file.
52825         * lib/mathl.h: Remove file.
52826         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
52827         mathl.h.
52828         * lib/asinl.c: Likewise.
52829         * lib/atanl.c: Likewise.
52830         * lib/ceill.c: Likewise.
52831         * lib/cosl.c: Likewise.
52832         * lib/expl.c: Likewise.
52833         * lib/floorl.c: Likewise.
52834         * lib/frexpl.c: Likewise.
52835         * lib/ldexpl.c: Likewise.
52836         * lib/logl.c: Likewise.
52837         * lib/sincosl.c: Likewise.
52838         * lib/sinl.c: Likewise.
52839         * lib/sqrtl.c: Likewise.
52840         * lib/tanl.c: Likewise.
52841         * lib/trigl.c: Likewise.
52842         * m4/math_h.m4: New file.
52843         * MODULES.html.sh (Mathematics): Add math.
52844
52845 2007-02-17  Bruno Haible  <bruno@clisp.org>
52846
52847         * modules/wctype-tests: New file.
52848         * tests/test-wctype.c: New file.
52849
52850         * modules/wchar-tests: New file.
52851         * tests/test-wchar.c: New file.
52852
52853         * modules/unistd-tests: New file.
52854         * tests/test-unistd.c: New file.
52855
52856         * modules/time-tests: New file.
52857         * tests/test-time.c: New file.
52858
52859         * modules/sysexits-tests: New file.
52860         * tests/test-sysexits.c: New file.
52861
52862         * modules/sys_time-tests: New file.
52863         * tests/test-sys_time.c: New file.
52864
52865         * modules/sys_stat-tests: New file.
52866         * tests/test-sys_stat.c: New file.
52867
52868         * modules/sys_socket-tests: New file.
52869         * tests/test-sys_socket.c: New file.
52870
52871         * modules/sys_select-tests: New file.
52872         * tests/test-sys_select.c: New file.
52873
52874         * modules/string-tests: New file.
52875         * tests/test-string.c: New file.
52876
52877         * modules/stdbool-tests: New file.
52878         * tests/test-stdbool.c: New file.
52879
52880         * modules/netinet_in-tests: New file.
52881         * tests/test-netinet_in.c: New file.
52882
52883         * modules/inttypes-tests: New file.
52884         * tests/test-inttypes.c: New file.
52885
52886         * modules/fcntl-tests: New file.
52887         * tests/test-fcntl.c: New file.
52888
52889         * modules/byteswap-tests: New file.
52890         * tests/test-byteswap.c: New file.
52891
52892         * modules/arpa_inet-tests: New file.
52893         * tests/test-arpa_inet.c: New file.
52894
52895 2007-02-17  Bruno Haible  <bruno@clisp.org>
52896
52897         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
52898         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
52899         if the corresponding module is not enabled. Emit link warnings if
52900         the function is used nevertheless.
52901         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
52902         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
52903         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
52904         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
52905         * modules/inttypes (Depends-on): Add link-warning.
52906         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52907         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
52908         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
52909         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
52910         * modules/imaxdiv (configure.ac): Likewise.
52911         * modules/strtoimax (configure.ac): Likewise.
52912         * modules/strtoumax (configure.ac): Likewise.
52913
52914 2007-02-17  Bruno Haible  <bruno@clisp.org>
52915
52916         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
52917         gl_STRING_MODULE_INDICATOR_DEFAULTS.
52918         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52919         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52920
52921 2007-02-17  Bruno Haible  <bruno@clisp.org>
52922
52923         * modules/link-warning: New file.
52924         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
52925         * lib/string_.h (GL_LINK_WARNING): Remove definition.
52926         * modules/string (Depends-on): Add link-warning.
52927         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52928         string.h.
52929         * MODULES.html.sh (Support for building libraries and executables): Add
52930         link-warning.
52931
52932 2007-02-17  Bruno Haible  <bruno@clisp.org>
52933
52934         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
52935         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
52936         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
52937         long lines.
52938
52939 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
52940             Bruno Haible  <bruno@clisp.org>
52941
52942         * modules/tmpfile: New file.
52943         * lib/tmpfile.c: New file.
52944         * m4/tmpfile.m4: New file.
52945         * MODULES.html.sh (func_all_modules): New section "Input/output".
52946
52947 2007-02-15  Bruno Haible  <bruno@clisp.org>
52948
52949         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
52950         (supports_delete_on_close): New function.
52951         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
52952
52953 2007-02-14  Bruno Haible  <bruno@clisp.org>
52954
52955         * modules/mbspcasecmp-tests: New file.
52956         * tests/test-mbspcasecmp.sh: New file.
52957         * tests/test-mbspcasecmp.c: New file.
52958
52959         New module mbspcasecmp.
52960         * modules/mbspcasecmp: New file.
52961         * lib/mbspcasecmp.c: New file.
52962         * lib/string_.h (strncasecmp): Change warning message.
52963         (mbspcasecmp): New declaration.
52964         * m4/mbspcasecmp.m4: New file.
52965         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52966         GNULIB_MBSPCASECMP.
52967         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
52968         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
52969
52970 2007-02-14  Bruno Haible  <bruno@clisp.org>
52971
52972         * modules/mbsncasecmp-tests: New file.
52973         * tests/test-mbsncasecmp.sh: New file.
52974         * tests/test-mbsncasecmp.c: New file.
52975
52976         New module mbsncasecmp.
52977         * modules/mbsncasecmp: New file.
52978         * lib/mbsncasecmp.c: New file.
52979         * lib/string_.h (mbsncasecmp): New declaration.
52980         * m4/mbsncasecmp.m4: New file.
52981         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52982         GNULIB_MBSNCASECMP.
52983         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
52984         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
52985
52986 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52987
52988         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
52989         Verify that it doesn't overlap with our flags.
52990         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
52991         do not have the desired effect in multibyte locales; instead, use
52992         mbscasecmp.
52993         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
52994         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
52995         we don't require GNU fnmatch ourselves (if our users require it, they
52996         should do so explicitly).
52997
52998         Fix regex code so it doesn't rely on strcasecmp.
52999         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
53000         Otherwise, include gnulib's langinfo.h.
53001         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
53002         undesirable behavior in non-C locales.  Instead, rely on localecharset.
53003         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
53004         * modules/regex (FILES): Remove m4/codeset.m4.
53005         (Depends-on): Add localcharset.  Remove strcase.
53006
53007 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53008
53009         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
53010         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
53011
53012 2007-02-13  Bruno Haible  <bruno@clisp.org>
53013
53014         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
53015         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53016
53017 2007-02-12  Bruno Haible  <bruno@clisp.org>
53018
53019         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53020         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
53021         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
53022         time warning rather than a link error.
53023
53024 2007-02-12  Bruno Haible  <bruno@clisp.org>
53025
53026         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
53027         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53028         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53029
53030 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53031
53032         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
53033         args, not 2.
53034
53035 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53036
53037         New module 'time', so that apps can include <time.h> as per
53038         POSIX and GNU instead of separate include files like time_r.h
53039         and timegm.h.  This implementation tries out a simpler approach
53040         for replacing decls in standard include files (as compared to
53041         the string module), somewhat as an experiment.
53042
53043         * config/srclist.txt: Comment out mktime.c for now.
53044         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
53045         since it doesn't apply any more.  Use generic wording instead.
53046         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
53047         'time'.
53048         * lib/time_.h, m4/time_h.m4, modules/time: New files.
53049         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
53050         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
53051         Don't include <sys/types.h>; no longer needed since we assume C89.
53052         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
53053         * lib/strftime.c: Likewise.
53054         * lib/time_r.c: Likewise.
53055         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
53056         * lib/nanosleep.c: Include <time.h> first, to check interface.
53057         * lib/strptime.c: Likewise.
53058         * lib/time_r.c: Likewise.
53059         * lib/timegm.c: Likewise.
53060         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
53061         needed.
53062         * lib/timegm.c: Don't include timegm.h; no longer needed.
53063         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
53064         time.h now handles any problems in that area.
53065         (struct timespec, nanosleep): Remove; time.h now arranges for these.
53066         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
53067         that time.h defines struct timespec.
53068         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
53069         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
53070         handles that.
53071         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
53072         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
53073         needed.  Set REPLACE_LOCALTIME.
53074         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
53075         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
53076         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
53077         nanosleep; time_h.m4 now does that.  Don't require
53078         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
53079         module handles this now.
53080         * modules/getdate (Depends-on): Remove timespec.  Add time.
53081         * modules/nanosleep (Depends-on): Likewise.
53082         * modules/stat-time (Depends-on): Likewise.
53083         * modules/nanosleep (Include): Include time.h, not timespec.h.
53084         * modules/strptime (Files): Remove lib/strptime.h.
53085         (Depends-on): Add extensions, time.
53086         (Include): Include time.h, not strptime.h.
53087         * modules/time_r (Files): Remove lib/time_r.h.
53088         (Depends-on): Add time.
53089         (Include): Include time.h, not time_r.h.
53090         * modules/timegm: Likewise.
53091         * modules/timespec (Description): Now does timespec-related decls
53092         of our own, instead of struct timespec itself.
53093         (Depends-on): Add time; remove extensions.
53094         (Maintainer): Add self.
53095         * modules/utimecmp (Depends-on): Add time; remove timespec.
53096         * modules/utimens (Depends-on): Likewise.
53097         * modules/xnanosleep (Depends-on): Likewise.
53098
53099 2007-02-11  Bruno Haible  <bruno@clisp.org>
53100
53101         * lib/c-strstr.c: Include allocsa.h.
53102         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53103         * lib/c-strcasestr.c: Include allocsa.h.
53104         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53105         * lib/strcasestr.c: Include allocsa.h.
53106         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53107         * lib/mbsstr.c: Include allocsa.h.
53108         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53109         allocsa/freesa instead of malloc/free.
53110         * lib/mbscasestr.c: Include allocsa.h.
53111         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53112         allocsa/freesa instead of malloc/free.
53113         * modules/c-strstr (Depends-on): Add allocsa.
53114         * modules/c-strcasestr (Depends-on): Likewise.
53115         * modules/strcasestr (Depends-on): Likewise.
53116         * modules/mbsstr (Depends-on): Likewise.
53117         * modules/mbscasestr (Depends-on): Likewise.
53118
53119 2007-02-11  Bruno Haible  <bruno@clisp.org>
53120
53121         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
53122
53123         * modules/mbsspn-tests: New file.
53124         * tests/test-mbsspn.sh: New file.
53125         * tests/test-mbsspn.c: New file.
53126
53127 2007-02-11  Bruno Haible  <bruno@clisp.org>
53128
53129         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
53130
53131         * modules/mbspbrk-tests: New file.
53132         * tests/test-mbspbrk.sh: New file.
53133         * tests/test-mbspbrk.c: New file.
53134
53135 2007-02-11  Bruno Haible  <bruno@clisp.org>
53136
53137         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
53138         unneeded cast.
53139
53140         * modules/mbscspn-tests: New file.
53141         * tests/test-mbscspn.sh: New file.
53142         * tests/test-mbscspn.c: New file.
53143
53144 2007-02-11  Bruno Haible  <bruno@clisp.org>
53145
53146         * modules/mbscasecmp-tests: New file.
53147         * tests/test-mbscasecmp.sh: New file.
53148         * tests/test-mbscasecmp.c: New file.
53149
53150 2007-02-11  Bruno Haible  <bruno@clisp.org>
53151
53152         Ensure O(n) worst-case complexity of mbscasestr.
53153         * lib/mbscasestr.c: Include stdbool.h.
53154         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53155         functions.
53156         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
53157         the bookkeeping indicates that it's worth it.
53158         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
53159
53160         * modules/mbscasestr-tests: New file.
53161         * tests/test-mbscasestr1.c: New file.
53162         * tests/test-mbscasestr2.sh: New file.
53163         * tests/test-mbscasestr2.c: New file.
53164         * tests/test-mbscasestr3.sh: New file.
53165         * tests/test-mbscasestr3.c: New file.
53166         * tests/test-mbscasestr4.sh: New file.
53167         * tests/test-mbscasestr4.c: New file.
53168         * m4/locale-tr.m4: New file.
53169
53170 2007-02-11  Bruno Haible  <bruno@clisp.org>
53171
53172         Ensure O(n) worst-case complexity of mbsstr.
53173         * lib/mbsstr.c: Include stdbool.h.
53174         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53175         functions.
53176         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
53177         bookkeeping indicates that it's worth it.
53178         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
53179
53180         * modules/mbsstr-tests: New file.
53181         * tests/test-mbsstr1.c: New file.
53182         * tests/test-mbsstr2.sh: New file.
53183         * tests/test-mbsstr2.c: New file.
53184         * tests/test-mbsstr3.sh: New file.
53185         * tests/test-mbsstr3.c: New file.
53186         * m4/locale-fr.m4: New file.
53187
53188 2007-02-11  Bruno Haible  <bruno@clisp.org>
53189
53190         * lib/mbsrchr.c (mbsrchr): Fix bug.
53191
53192         * modules/mbsrchr-tests: New file.
53193         * tests/test-mbsrchr.sh: New file.
53194         * tests/test-mbsrchr.c: New file.
53195
53196 2007-02-11  Bruno Haible  <bruno@clisp.org>
53197
53198         * lib/mbschr.c (mbschr): Fix bug.
53199
53200         * modules/mbschr-tests: New file.
53201         * tests/test-mbschr.sh: New file.
53202         * tests/test-mbschr.c: New file.
53203         * m4/locale-zh.m4: New file.
53204
53205 2007-02-11  Bruno Haible  <bruno@clisp.org>
53206
53207         Support for copying multibyte string iterators.
53208         * lib/mbiter.h: Include <string.h>.
53209         (mbiter_multi_copy): New function.
53210         (mbi_copy): New macro.
53211         * lib/mbuiter.h: Include <string.h>.
53212         (mbuiter_multi_copy): New function.
53213         (mbui_copy): New macro.
53214
53215 2007-02-11  Bruno Haible  <bruno@clisp.org>
53216
53217         New module mbslen.
53218         * modules/mbslen: New file.
53219         * lib/mbslen.c: New file.
53220         * lib/string_.h (mbslen): New declaration.
53221         * m4/mbslen.m4: New file.
53222         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53223         GNULIB_MBSLEN.
53224         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
53225         * MODULES.html.sh (Internationalization functions): Add mbslen.
53226
53227 2007-02-11  Bruno Haible  <bruno@clisp.org>
53228
53229         Ensure O(n) worst-case complexity of strcasestr substitute.
53230         * lib/strcasestr.c: Include stdbool.h.
53231         (knuth_morris_pratt): New function.
53232         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53233         bookkeeping indicates that it's worth it.
53234         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
53235
53236         * modules/strcasestr-tests: New file.
53237         * tests/test-strcasestr.c: New file.
53238
53239 2007-02-11  Bruno Haible  <bruno@clisp.org>
53240
53241         Ensure O(n) worst-case complexity of c_strcasestr.
53242         * lib/c-strcasestr.c: Include stdbool.h, string.h.
53243         (knuth_morris_pratt): New function.
53244         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
53245         the bookkeeping indicates that it's worth it.
53246         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
53247
53248         * modules/c-strcasestr-tests: New file.
53249         * tests/test-c-strcasestr.c: New file.
53250
53251 2007-02-11  Bruno Haible  <bruno@clisp.org>
53252
53253         Ensure O(n) worst-case complexity of c_strstr.
53254         * lib/c-strstr.c: Include stdbool.h, string.h.
53255         (knuth_morris_pratt): New function.
53256         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53257         bookkeeping indicates that it's worth it.
53258         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
53259
53260         * lib/c-strstr.c: Complete rewrite for maintainability.
53261
53262         * modules/c-strstr-tests: New file.
53263         * tests/test-c-strstr.c: New file.
53264
53265 2007-02-11  Bruno Haible  <bruno@clisp.org>
53266
53267         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
53268         5.2.1 and earlier, whereby \055 was treated just like the range
53269         delimiter '-'.
53270         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53271
53272 2007-02-08  Bruno Haible  <bruno@clisp.org>
53273
53274         * modules/regex (Depends-on): Add stdbool.
53275         Reported by Dalibor Topic <robilad@kaffe.org>.
53276
53277 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53278
53279         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
53280         Prefer returning from main to exiting from it.
53281         Remove unnecessary parens after sizeof.
53282
53283 2007-02-05  Bruno Haible  <bruno@clisp.org>
53284
53285         New module mbssep.
53286         * modules/mbssep: New file.
53287         * lib/mbssep.c: New file.
53288         * lib/string_.h (strsep): Add a conditional link warning.
53289         (mbssep): New declaration.
53290         * m4/mbssep.m4: New file.
53291         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53292         GNULIB_MBSSEP.
53293         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
53294         * MODULES.html.sh (Internationalization functions): Add mbssep.
53295
53296 2007-02-05  Bruno Haible  <bruno@clisp.org>
53297
53298         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
53299         Optimize search in case of 1 delimiter.
53300
53301 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53302
53303         * lib/acl.h: Include sys/types.h before sys/acl.h.
53304
53305 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53306
53307         Merge upstream fix for glibc bugzilla #3957:
53308
53309         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
53310
53311         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
53312         bit for RE_HAT_LISTS_NOT_NEWLINE.
53313         (build_charclass_op): Remove bogus comment.
53314
53315 2007-02-05  Simon Josefsson  <simon@josefsson.org>
53316
53317         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
53318
53319 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53320
53321         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
53322         * lib/memmem.c [!defined _LIBC]: Include config.h.
53323
53324 2007-02-04  Bruno Haible  <bruno@clisp.org>
53325
53326         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
53327         warning message.
53328
53329 2007-02-04  Bruno Haible  <bruno@clisp.org>
53330
53331         New module mbstok_r.
53332         * modules/mbstok_r: New file.
53333         * lib/mbstok_r.c: New file.
53334         * lib/string_.h (strtok_r): Change argument names to match the
53335         comments. Add a conditional link warning.
53336         (mbstok_r): New declaration.
53337         * m4/mbstok_r.m4: New file.
53338         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53339         GNULIB_MBSTOK_R.
53340         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
53341         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
53342
53343 2007-02-04  Bruno Haible  <bruno@clisp.org>
53344
53345         New module mbsspn.
53346         * modules/mbsspn: New file.
53347         * lib/mbsspn.c: New file.
53348         * lib/string_.h (strspn): Add a conditional link warning.
53349         (mbsspn): New declaration.
53350         * m4/mbsspn.m4: New file.
53351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53352         GNULIB_MBSSPN.
53353         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
53354         * MODULES.html.sh (Internationalization functions): Add mbsspn.
53355
53356 2007-02-04  Bruno Haible  <bruno@clisp.org>
53357
53358         New module mbspbrk.
53359         * modules/mbspbrk: New file.
53360         * lib/mbspbrk.c: New file.
53361         * lib/string_.h (strpbrk): Add a conditional link warning.
53362         (mbspbrk): New declaration.
53363         * m4/mbspbrk.m4: New file.
53364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53365         GNULIB_MBSPBRK.
53366         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
53367         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
53368
53369 2007-02-04  Bruno Haible  <bruno@clisp.org>
53370
53371         New module mbscspn.
53372         * modules/mbscspn: New file.
53373         * lib/mbscspn.c: New file.
53374         * lib/string_.h (strcspn): Add a conditional link warning.
53375         (mbscspn): New declaration.
53376         * m4/mbscspn.m4: New file.
53377         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53378         GNULIB_MBSCSPN.
53379         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
53380         * MODULES.html.sh (Internationalization functions): Add mbscspn.
53381
53382 2007-02-04  Bruno Haible  <bruno@clisp.org>
53383
53384         New module mbscasestr, reduced goal of strcasestr.
53385         * modules/mbscasestr: New file.
53386         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
53387         (mbscasestr): Renamed from strcasestr.
53388         * lib/strcasestr.c: Don't include mbuiter.h.
53389         (strcasestr): Remove support for multibyte locales.
53390         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
53391         Change the conditional link warning.
53392         (mbscasestr): New declaration.
53393         * m4/mbscasestr.m4: New file.
53394         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
53395         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
53396         REPLACE_STRCASESTR.
53397         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
53398         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53399         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53400         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
53401         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
53402         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53403         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
53404         (Depends-on): Remove mbuiter.
53405         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
53406
53407 2007-02-04  Bruno Haible  <bruno@clisp.org>
53408
53409         Simplify handling of strncasecmp.
53410         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
53411         the conditional link warning.
53412         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53413         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
53414         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
53415         * modules/strcase (configure.ac): Don't invoke
53416         gl_STRING_MODULE_INDICATOR.
53417         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
53418
53419 2007-02-04  Bruno Haible  <bruno@clisp.org>
53420
53421         New module mbscasecmp, reduced goal of strcasecmp.
53422         * modules/mbscasecmp: New file.
53423         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
53424         (mbscasecmp): Renamed from strcasecmp.
53425         * lib/strcasecmp.c: Don't include mbuiter.h.
53426         (strcasecmp): Remove support for multibyte locales.
53427         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
53428         Change the conditional link warning.
53429         (mbscasecmp): New declaration.
53430         * m4/mbscasecmp.m4: New file.
53431         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
53432         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
53433         REPLACE_STRCASECMP.
53434         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
53435         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53436         GNULIB_MBSCASECMP.
53437         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
53438         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
53439         * modules/strcase (Files): Remove m4/mbrtowc.m4.
53440         (Depends-on): Remove mbuiter.
53441         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
53442
53443 2007-02-04  Bruno Haible  <bruno@clisp.org>
53444
53445         New module mbsstr. Remove module strstr.
53446         * modules/mbsstr: New file.
53447         * modules/strstr: Remove file.
53448         * lib/mbsstr.c: Renamed from lib/strstr.c.
53449         (mbsstr): Renamed from strstr.
53450         * lib/string_.h (strstr): Remove declaration. Change the conditional
53451         link warning.
53452         (mbsstr): New declaration.
53453         * m4/mbsstr.m4: New file.
53454         * m4/strstr.m4: Remove file.
53455         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53456         REPLACE_STRSTR.
53457         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
53458         Don't initialize GNULIB_STRSTR.
53459         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
53460         substitute GNULIB_STRSTR and REPLACE_STRSTR.
53461         * MODULES.html.sh (Internationalization functions): Add mbsstr.
53462         (Support for systems lacking ANSI C 89): Remove strstr.
53463
53464 2007-02-04  Bruno Haible  <bruno@clisp.org>
53465
53466         New module mbsrchr.
53467         * modules/mbsrchr: New file.
53468         * lib/mbsrchr.c: New file.
53469         * lib/string_.h (strrchr): Add a conditional link warning.
53470         (mbsrchr): New declaration.
53471         * m4/mbsrchr.m4: New file.
53472         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53473         GNULIB_MBSRCHR.
53474         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
53475         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
53476
53477 2007-02-04  Bruno Haible  <bruno@clisp.org>
53478
53479         New module mbschr.
53480         * modules/mbschr: New file.
53481         * lib/mbschr.c: New file.
53482         * lib/string_.h (strchr): Add a conditional link warning.
53483         (mbschr): New declaration.
53484         * m4/mbschr.m4: New file.
53485         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53486         GNULIB_MBSCHR.
53487         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
53488         * MODULES.html.sh (Internationalization functions): Add mbschr.
53489
53490 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53491
53492         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
53493
53494         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
53495
53496 2007-02-04  Bruno Haible  <bruno@clisp.org>
53497
53498         New module description section 'configure.ac-early'.
53499         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
53500         (func_get_autoconf_early_snippet): New function.
53501         (func_import, func_create_testdir): Use it. Remove special cases for
53502         modules 'extensions' and 'lock'.
53503         * modules/extensions (configure.ac-early): Require
53504         gl_USE_SYSTEM_EXTENSIONS.
53505         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
53506
53507 2007-02-04  Bruno Haible  <bruno@clisp.org>
53508
53509         Make use of gcj-4.3's -fsource and -ftarget option.
53510         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
53511         and if so try the options -fsource and -ftarget.
53512         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
53513         source_version, ftarget_option, target_version arguments.
53514         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
53515         (is_envjavac_oldgcj_14_14_usable): Renamed from
53516         is_envjavac_gcj_14_14_usable.
53517         (is_envjavac_oldgcj_14_13_usable): Renamed from
53518         is_envjavac_gcj_14_13_usable.
53519         (is_gcj_present): Update.
53520         (is_gcj_43, is_gcj43_usable): New functions.
53521         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
53522         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
53523         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
53524         try the options -fsource and -ftarget.
53525
53526 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53527
53528         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
53529         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
53530         larger value.
53531
53532 2007-02-03  Jim Meyering  <jim@meyering.net>
53533
53534         Give tools a better chance to allocate space for very large buffers.
53535         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
53536
53537         Make pwd and readlink work also when run with an unreadable parent dir
53538         on systems with openat support.
53539         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
53540         provided getcwd function, even when we have openat support.
53541         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
53542
53543 2007-02-02  Bruno Haible  <bruno@clisp.org>
53544
53545         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53546         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
53547         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
53548         portability problems if one of these functions is only used on specific
53549         platforms.
53550         Reported by Paul Eggert.
53551
53552 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
53553
53554         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
53555         is causing more trouble than it's curing.
53556         * lib/regex_internal.h (__mempcpy): Remove.
53557         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
53558         (and make the code a tad smaller to boot).
53559         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
53560
53561 2007-02-02  Jim Meyering  <jim@meyering.net>
53562
53563         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
53564         section, not in the Makefile.am: one.
53565
53566 2007-02-02  Eric Blake  <ebb9@byu.net>
53567
53568         * lib/strchrnul.c: Always include config.h first.
53569
53570         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
53571         gnulib strstr is not necessary here.
53572
53573 2007-02-02  Simon Josefsson  <simon@josefsson.org>
53574
53575         * m4/socklen.m4: Fix typo.
53576
53577 2007-02-02  Eric Blake  <ebb9@byu.net>
53578
53579         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
53580         * modules/netinet_in (Makefile.am): Likewise.
53581
53582 2007-02-01  Bruno Haible  <bruno@clisp.org>
53583
53584         * lib/string_.h (GL_LINK_WARNING): New macro.
53585         (strcasecmp, strstr, strcasestr): If provided by the system,
53586         conditionally define as a macro that leads to a warning instead of to
53587         an error.
53588         (strncasecmp): Conditionally define as a macro that leads to a warning.
53589
53590 2007-02-01  Karl Berry  <karl@gnu.org>
53591
53592         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
53593
53594 2007-02-01  Bruno Haible  <bruno@clisp.org>
53595
53596         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
53597         renamings.
53598
53599 2007-02-01  Eric Blake  <ebb9@byu.net>
53600
53601         * modules/regex (Depends-on): Revert dependence on mempcpy.
53602         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
53603         module's definition of mempcpy.
53604         Reported by Paul Eggert.
53605
53606 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53607
53608         * lib/string_.h: If the gnulib module XYZ is not present, undefine
53609         the symbol XYZ before redefining it.  This fixes a problem with
53610         programs that don't use XYZ, when compiled on systems that define
53611         XYZ to something else.
53612
53613 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
53614
53615         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
53616         occurs when "mkdir -m foo" creates a setgid directory that is (1)
53617         writeable to group or other and (2) is intended to have a special
53618         mode bit that is set or cleared.  In such a case, the directory
53619         should be neither group- nor other-writeable until the special
53620         mode bits are right.
53621
53622 2007-01-31  Eric Blake  <ebb9@byu.net>
53623
53624         * modules/mountlist (Depends-on): Add strstr.
53625
53626         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
53627         bug.
53628         * modules/string (Makefile.am): Remove redundant replacement.
53629         * modules/regex (Depends-on): Add mempcpy.
53630
53631 2007-01-31  Bruno Haible  <bruno@clisp.org>
53632
53633         New module description field 'Link'.
53634         * gnulib-tool (func_usage): Document --extract-link-directive.
53635         (sed_extract_prog): Recognize 'Link' directive.
53636         (func_get_link_directive): New function.
53637         (func_import): Show summary of link directives.
53638         Handle --extract-link-directive option.
53639         * modules/acl (Link): New section.
53640         * modules/clock-time (Link): New section.
53641         * modules/euidaccess (Link): New section.
53642         * modules/gettext (Link): New section.
53643         * modules/iconv (Link): New section.
53644         * modules/lock (Link): New section.
53645         * modules/nanosleep (Link): New section.
53646         * modules/readline (Link): New section.
53647
53648 2007-01-27  Bruno Haible  <bruno@clisp.org>
53649
53650         Enforce the use of gnulib modules for unportable <string.h> functions.
53651         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
53652         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
53653         (gl_HEADER_STRING_H_BODY): Require it.
53654         * lib/string_.h: If the gnulib module XYZ is not present, redefine
53655         the symbol XYZ to one that gives a link error.
53656         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
53657         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
53658         * modules/mempcpy (configure.ac): Likewise.
53659         * modules/memrchr (configure.ac): Likewise.
53660         * modules/stpcpy (configure.ac): Likewise.
53661         * modules/stpncpy (configure.ac): Likewise.
53662         * modules/strcase (configure.ac): Likewise.
53663         * modules/strcasestr (configure.ac): Likewise.
53664         * modules/strchrnul (configure.ac): Likewise.
53665         * modules/strdup (configure.ac): Likewise.
53666         * modules/strndup (configure.ac): Likewise.
53667         * modules/strnlen (configure.ac): Likewise.
53668         * modules/strpbrk (configure.ac): Likewise.
53669         * modules/strsep (configure.ac): Likewise.
53670         * modules/strstr (configure.ac): Likewise.
53671         * modules/strtok_r (configure.ac): Likewise.
53672
53673 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
53674
53675         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
53676
53677 2007-01-30  Jim Meyering  <jim@meyering.net>
53678
53679         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
53680
53681 2007-01-29  Bruno Haible  <bruno@clisp.org>
53682
53683         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
53684         * lib/execute.c: Likewise.
53685         * lib/pipe.c: Likewise.
53686         * lib/printf-args.h: Likewise.
53687         * lib/printf-args.c: Likewise.
53688         * lib/printf-parse.c: Likewise.
53689         * lib/vasnprintf.c: Likewise.
53690
53691 2007-01-29  Eric Blake  <ebb9@byu.net>
53692
53693         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
53694         declaration.
53695
53696 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
53697
53698         * lib/strptime.h (strptime): Use 'restrict' for args where
53699         POSIX requires this.
53700         * lib/strptime.c (strptime): Likewise.
53701         Change license notice from LGPL to GPL, since gnulib-tool will
53702         change this as needed.
53703         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
53704         defined.
53705         Include "strptime.h" first, to check interface.
53706         Do not #undef _LIBC and _NL_CURRENT.
53707         Do not include <stdlib.h>; no longer needed.
53708         Include "time_r.h" and declare ptime_locale_status
53709         only if _LIBC is not defined.
53710         (__P): Remove unused macro.
53711         (match_string): Bring back glibc version, but use it only if _LIBC
53712         is defined.
53713         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
53714         Remove unnecessary assertion and abort() call.
53715         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
53716         * m4/strptime.m4: Fix serial number comment.
53717         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
53718         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
53719         (Depends-on): Add time_r.
53720
53721 2007-01-29  Bruno Haible  <bruno@clisp.org>
53722
53723         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53724         strptime.
53725         * modules/strptime (Depends-on): Add stdbool.
53726         * lib/strptime.h: Include <time.h> always. Add comments.
53727
53728 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53729
53730         * modules/strptime: New file.
53731         * lib/strptime.h: New file.
53732         * lib/strptime.c: New file.
53733         * m4/strptime.m4: New file.
53734
53735 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53736
53737         * MODULES.html.sh: New module mpsort.
53738         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
53739
53740         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
53741         a circularity problem with HP-UX ia64 reported by Bob Proulx in
53742         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
53743         All uses changed.
53744         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
53745         All uses changed.
53746         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
53747         to _Restrict_.
53748         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
53749         the parameter matches the prototype.
53750
53751 2007-01-28  Jim Meyering  <jim@meyering.net>
53752
53753         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
53754         sys/time.h here, reverting that part of the previous patch:
53755         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
53756
53757 2007-01-28  Bruno Haible  <bruno@clisp.org>
53758
53759         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
53760         value of $(SYS_TIME_H).
53761         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
53762         remove it conditionally, too. [added by Jim Meyering]
53763         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
53764         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53765         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
53766         GETTIMEOFDAY_REPLACEMENT to 1.
53767
53768 2007-01-28  Bruno Haible  <bruno@clisp.org>
53769
53770         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
53771         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
53772         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
53773         Set UNISTD_H instead of UNISTD_H2.
53774         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
53775
53776 2007-01-28  Bruno Haible  <bruno@clisp.org>
53777
53778         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
53779         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
53780
53781 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53782
53783         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
53784         (func_create_testdir): Ensure C locale for `grep' and `tr'
53785         character ranges.
53786         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
53787         ACLOCAL_AMFLAGS parsing state machine.
53788
53789 2007-01-27  Bruno Haible  <bruno@clisp.org>
53790
53791         * modules/unistr/base: Update.
53792
53793 2007-01-27  Bruno Haible  <bruno@clisp.org>
53794
53795         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
53796         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
53797         * modules/unistr/u32-mbtouc-unsafe: Renamed from
53798         modules/unistr/u32-mbtouc.
53799         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
53800         * lib/unistr.h: Update.
53801         * lib/linebreak.c: Update.
53802         * modules/unistr/u32-mbtouc: Renamed from
53803         modules/unistr/u32-mbtouc-safe.
53804         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
53805         * lib/unistr.h: Update.
53806         * lib/unistr/u32-to-u8.c: Update.
53807         * lib/unistr/u32-to-u16.c: Update.
53808
53809 2007-01-27  Bruno Haible  <bruno@clisp.org>
53810
53811         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
53812         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
53813         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
53814         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
53815         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
53816         * modules/unistr/u16-mbtouc-unsafe: Renamed from
53817         modules/unistr/u16-mbtouc.
53818         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
53819         * lib/unistr.h: Update.
53820         * lib/linebreak.c: Update.
53821         * modules/linebreak: Update.
53822         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
53823         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
53824         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
53825         * modules/unistr/u16-mbtouc: Renamed from
53826         modules/unistr/u16-mbtouc-safe.
53827         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
53828         * lib/unistr.h: Update.
53829         * lib/unistr/u16-to-u8.c: Update.
53830         * modules/unistr/u16-to-u8: Update.
53831         * lib/unistr/u16-to-u32.c: Update.
53832         * modules/unistr/u16-to-u32: Update.
53833
53834 2007-01-27  Bruno Haible  <bruno@clisp.org>
53835
53836         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
53837         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
53838         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
53839         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
53840         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
53841         * modules/unistr/u8-mbtouc-unsafe: Renamed from
53842         modules/unistr/u8-mbtouc.
53843         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
53844         * lib/unistr.h: Update.
53845         * lib/striconveh.c: Update.
53846         * modules/striconveh: Update.
53847         * lib/linebreak.c: Update.
53848         * modules/linebreak: Update.
53849         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
53850         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
53851         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
53852         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
53853         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
53854         * lib/unistr.h: Update.
53855         * lib/striconveh.c: Update.
53856         * modules/striconveh: Update.
53857         * lib/unistr/u8-to-u16.c: Update.
53858         * modules/unistr/u8-to-u16: Update.
53859         * lib/unistr/u8-to-u32.c: Update.
53860         * modules/unistr/u8-to-u32: Update.
53861
53862 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53863
53864         Sync from Libtool.
53865         * lib/argz.c: Do not include strings.h nor memory.h, include
53866         string.h unconditionally.  Patch by Simon Josefsson.
53867
53868 2007-01-27  Bruno Haible  <bruno@clisp.org>
53869
53870         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
53871         from gl_HEADER_STRING_H_BODY.
53872         (gl_HEADER_STRING_H_BODY): Require it.
53873         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
53874         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53875         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53876         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53877         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53878         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
53879         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53880         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53881         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
53882         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53883         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53884         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
53885         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53886         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53887         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53888
53889 2007-01-27  Bruno Haible  <bruno@clisp.org>
53890
53891         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
53892         check_PROGRAMS into noinst_PROGRAMS.
53893         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
53894         check_PROGRAMS in this case.
53895         (func_import): Set for_test to false.
53896         (func_create_testdir): Set for_test to true.
53897
53898 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53899             Bruno Haible  <bruno@clisp.org>
53900
53901         * modules/strcasestr (Files): Remove lib/strcasestr.h.
53902         (Depends-on): Add string.
53903         (Includes): Use <string.h> instead of strcasestr.h.
53904         * modules/string (Makefile.am): Also substitute the value of
53905         REPLACE_STRCASESTR.
53906         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
53907         assume strcasestr is declared in <string.h> not <strings.h>. Also
53908         set REPLACE_STRCASESTR.
53909         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
53910         REPLACE_STRCASESTR.
53911         * lib/strcasestr.h: Remove file.
53912         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
53913         * lib/string_.h (strcasestr): New declaration.
53914
53915 2007-01-27  Bruno Haible  <bruno@clisp.org>
53916
53917         * lib/string_.h: Use 'extern'.
53918
53919 2007-01-27  Jim Meyering  <jim@meyering.net>
53920
53921         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53922         of set-but-not-used local, "q".
53923
53924         * lib/mempcpy.c: Include <config.h> before <string.h>.
53925         This fixes a compilation error on HP-UX, due to the system's
53926         "restrict"-using mempcpy prototype.
53927
53928 2007-01-26  Bruno Haible  <bruno@clisp.org>
53929
53930         Small optimization.
53931         * lib/javacomp.c: Include c-strstr.h.
53932          (is_envjavac_gcj): Use c_strstr instead of strstr.
53933         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
53934
53935 2007-01-26  Bruno Haible  <bruno@clisp.org>
53936
53937         * MODULES.html.sh (Unicode string functions): Add the new modules.
53938
53939         * modules/uniconv/u32-strconv-to-locale: New file.
53940         * lib/uniconv/u32-strconv-to-locale.c: New file.
53941
53942         * modules/uniconv/u16-strconv-to-locale: New file.
53943         * lib/uniconv/u16-strconv-to-locale.c: New file.
53944
53945         * modules/uniconv/u8-strconv-to-locale: New file.
53946         * lib/uniconv/u8-strconv-to-locale.c: New file.
53947
53948         * modules/uniconv/u32-strconv-from-locale: New file.
53949         * lib/uniconv/u32-strconv-from-locale.c: New file.
53950
53951         * modules/uniconv/u16-strconv-from-locale: New file.
53952         * lib/uniconv/u16-strconv-from-locale.c: New file.
53953
53954         * modules/uniconv/u8-strconv-from-locale: New file.
53955         * lib/uniconv/u8-strconv-from-locale.c: New file.
53956
53957         * modules/uniconv/u32-strconv-to-enc: New file.
53958         * lib/uniconv/u32-strconv-to-enc.c: New file.
53959         * modules/uniconv/u32-strconv-to-enc-tests: New file.
53960         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
53961
53962         * modules/uniconv/u16-strconv-to-enc: New file.
53963         * lib/uniconv/u16-strconv-to-enc.c: New file.
53964         * lib/uniconv/u-strconv-to-enc.h: New file.
53965         * modules/uniconv/u16-strconv-to-enc-tests: New file.
53966         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
53967
53968         * modules/uniconv/u8-strconv-to-enc: New file.
53969         * lib/uniconv/u8-strconv-to-enc.c: New file.
53970         * modules/uniconv/u8-strconv-to-enc-tests: New file.
53971         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
53972
53973         * modules/uniconv/u32-strconv-from-enc: New file.
53974         * lib/uniconv/u32-strconv-from-enc.c: New file.
53975         * modules/uniconv/u32-strconv-from-enc-tests: New file.
53976         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
53977
53978         * modules/uniconv/u16-strconv-from-enc: New file.
53979         * lib/uniconv/u16-strconv-from-enc.c: New file.
53980         * modules/uniconv/u16-strconv-from-enc-tests: New file.
53981         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
53982
53983         * modules/uniconv/u8-strconv-from-enc: New file.
53984         * lib/uniconv/u8-strconv-from-enc.c: New file.
53985         * lib/uniconv/u-strconv-from-enc.h: New file.
53986         * modules/uniconv/u8-strconv-from-enc-tests: New file.
53987         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
53988
53989         * modules/uniconv/u32-conv-from-enc: New file.
53990         * lib/uniconv/u32-conv-from-enc.c: New file.
53991         * modules/uniconv/u32-conv-from-enc-tests: New file.
53992         * tests/uniconv/test-u32-conv-from-enc.c: New file.
53993
53994         * modules/uniconv/u16-conv-from-enc: New file.
53995         * lib/uniconv/u16-conv-from-enc.c: New file.
53996         * lib/uniconv/u-conv-from-enc.h: New file.
53997         * modules/uniconv/u16-conv-from-enc-tests: New file.
53998         * tests/uniconv/test-u16-conv-from-enc.c: New file.
53999
54000         * modules/uniconv/u8-conv-from-enc: New file.
54001         * lib/uniconv/u8-conv-from-enc.c: New file.
54002         * modules/uniconv/u8-conv-from-enc-tests: New file.
54003         * tests/uniconv/test-u8-conv-from-enc.c: New file.
54004
54005         * modules/uniconv/base: New file.
54006         * lib/uniconv.h: New file.
54007
54008 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54009
54010         * doc/gnulib-tool.texi (Initial import): Update to match current
54011         behavior with strdup module.
54012         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
54013         * lib/memmem.h: Remove; all uses removed.  This is now done
54014         by <string.h>.
54015         * lib/mempcpy.h: Likewise.
54016         * lib/memrchr.h: Likewise.
54017         * lib/stpcpy.h: Likewise.
54018         * lib/stpncpy.h: Likewise.
54019         * lib/strcase.h: Likewise.
54020         * lib/strchrnul.h: Likewise.
54021         * lib/strdup.h: Likewise.
54022         * lib/strndup.h: Likewise.
54023         * lib/strnlen.h: Likewise.
54024         * lib/strpbrk.h: Likewise.
54025         * lib/strsep.h: Likewise.
54026         * lib/strstr.h: Likewise.
54027         * lib/strtok_r.h: Likewise.
54028         * lib/string_.h: New file.
54029         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
54030         Rely on <string.h> instead.
54031         * lib/canon-host.c: Likewise.
54032         * lib/chdir-long.c: Likewise.
54033         * lib/concatpath.c: Likewise.
54034         * lib/exclude.c: Likewise.
54035         * lib/fchdir.c: Likewise.
54036         * lib/getaddrinfo.c: Likewise.
54037         * lib/getcwd.c: Likewise.
54038         * lib/getsubopt.c: Likewise.
54039         * lib/glob.c: Likewise.
54040         * lib/hard-locale.c: Likewise.
54041         * lib/iconvme.c: Likewise.
54042         * lib/javacomp.c: Likewise.
54043         * lib/mempcpy.c: Likewise.
54044         * lib/memrchr.c: Likewise.
54045         * lib/regex_internal.h: Likewise.
54046         * lib/stpncpy.c: Likewise.
54047         * lib/strcasecmp.c: Likewise.
54048         * lib/strchrnul.c: Likewise.
54049         * lib/strdup.c: Likewise.
54050         * lib/striconv.c: Likewise.
54051         * lib/striconveh.c: Likewise.
54052         * lib/striconveha.c: Likewise.
54053         * lib/strncasecmp.c: Likewise.
54054         * lib/strndup.c: Likewise.
54055         * lib/strnlen.c: Likewise.
54056         * lib/strsep.c: Likewise.
54057         * lib/strstr.c: Likewise.
54058         * lib/strtok_r.c: Likewise.
54059         * lib/userspec.c: Likewise.
54060         * lib/w32spawn.h: Likewise.
54061         * lib/xstrndup.c: Likewise.
54062         * lib/mountlist.c (strstr): Remove decl.
54063         * m4/string_h.m4: New file.
54064         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
54065         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
54066         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
54067         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
54068         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
54069         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
54070         Set REPLACE_STRCASECMP if necessary.
54071         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
54072         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
54073         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
54074         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
54075         HAVE_DECL_STRDUP if necessary.
54076         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
54077         since gl_FUNC_STRNDUP does that now.
54078         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
54079         Check for decl here...
54080         (gl_PREREQ_STRNLEN): ... not here.
54081         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
54082         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
54083         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
54084         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
54085         necessary.
54086         * modules/string: New file.
54087         * modules/memmem (Files): Remove special-purpose include file.
54088         (Depends-on): Add string.
54089         (Include): Include <string.h>, not the removed file.
54090         * modules/mempcpy: Likewise.
54091         * modules/memrchr: Likewise.
54092         * modules/stpcpy: Likewise.
54093         * modules/stpncpy: Likewise.
54094         * modules/strcase: Likewise.
54095         * modules/strchrnul: Likewise.
54096         * modules/strdup: Likewise.
54097         * modules/strndup: Likewise.
54098         * modules/strnlen: Likewise.
54099         * modules/strpbrk: Likewise.
54100         * modules/strsep: Likewise.
54101         * modules/strstr: Likewise.
54102         * modules/strtok_r: Likewise.
54103         * tests/test-dirname.c: Don't include "strdup.h", since
54104         <string.h> now suffices.
54105         * tests/test-memmem.c: Don't include "memmem.h", since
54106         <string.h> now suffices.
54107
54108 2007-01-25  Bruno Haible  <bruno@clisp.org>
54109
54110         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
54111         *resultp is 0.
54112
54113         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
54114         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
54115         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
54116         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
54117
54118         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
54119         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
54120         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
54121         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
54122         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
54123         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
54124
54125 2007-01-24  Bruno Haible  <bruno@clisp.org>
54126
54127         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
54128         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
54129         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
54130         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
54131         gl_FUNC_FTS_CORE.
54132         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
54133         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
54134         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54135         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
54136         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
54137         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
54138         gl_FUNC_FCHOWNAT.
54139         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
54140         gl_FUNC_STRFTIME.
54141         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
54142         Reported by Ralf Wildenhues.
54143
54144 2007-01-24  Bruno Haible  <bruno@clisp.org>
54145
54146         Drop AC_REQUIRE calls that are redundant with the module dependencies.
54147         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
54148         gl_GETADDRINFO.
54149         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
54150         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
54151         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
54152
54153 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
54154
54155         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
54156         Don't use 'exit'; just return from 'main'.
54157         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
54158
54159         * lib/fnmatch_.h: Readjust white space and comments to match
54160         glibc, to avoid spurious diffs.
54161
54162 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54163
54164         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
54165         2004-12-01 change by Jakub Jelinek, since this code won't compile
54166         if !LIBC.  Problem reported by Bob Proulx.
54167
54168 2007-01-23  Bruno Haible  <bruno@clisp.org>
54169
54170         * lib/striconveh.c: Include c-strcaseeq.h.
54171         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
54172         * modules/striconveh (Depends-on): Add c-strcaseeq.
54173
54174 2007-01-23  Bruno Haible  <bruno@clisp.org>
54175
54176         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
54177
54178         * modules/c-strcaseeq: New file.
54179         * lib/c-strcaseeq.h: New file.
54180
54181         * modules/streq: New file.
54182         * lib/streq.h: New file.
54183
54184 2007-01-23  Bruno Haible  <bruno@clisp.org>
54185
54186         * modules/striconveha-tests: New file.
54187         * tests/test-striconveha.c: New file.
54188
54189         * lib/striconveha.h: Include <stdbool.h>.
54190         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
54191         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
54192         (mem_iconveha_notranslit): Renamed from mem_iconveha.
54193         (mem_iconveha): New function.
54194         (str_iconveha_notranslit): Renamed from str_iconveha.
54195         (str_iconveha): New function.
54196         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
54197         c-strcase.
54198
54199 2007-01-23  Bruno Haible  <bruno@clisp.org>
54200
54201         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
54202         encodings without forgiving before trying any encoding with handler.
54203         (str_iconveha): Try all encodings without forgiving before trying any
54204         encoding with handler.
54205
54206 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54207
54208         Import the following changes from libc.
54209
54210         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54211
54212         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
54213
54214         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54215
54216         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
54217         normal_bracket label.
54218
54219         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
54220
54221         [BZ #361]
54222         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
54223         to normal_bracket after fetching the next character.
54224
54225 2007-01-22  Bruno Haible  <bruno@clisp.org>
54226
54227         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
54228         argument.
54229         * lib/striconveh.c (iconv_carefully_1): New function.
54230         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
54231         argument.
54232         (str_cd_iconveh): Update.
54233         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
54234         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
54235         * tests/test-striconveh.c (MAGIC): New macro.
54236         (new_offsets): New function.
54237         (main): Test call with and without offsets.
54238
54239 2007-01-22  Bruno Haible  <bruno@clisp.org>
54240
54241         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
54242         * modules/sys_select (Makefile.am): Likewise.
54243         * modules/sys_socket (Makefile.am): Likewise.
54244         * modules/sys_time (Makefile.am): Likewise.
54245
54246 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54247
54248         * modules/gettimeofday (License): Change from GPL to LGPL, since
54249         gettimeofday is a library function.
54250
54251 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54252
54253         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
54254
54255 2007-01-21  Bruno Haible  <bruno@clisp.org>
54256
54257         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
54258
54259 2007-01-21  Bruno Haible  <bruno@clisp.org>
54260
54261         * modules/striconveha: New file.
54262         * lib/striconveha.h: New file.
54263         * lib/striconveha.c: New file.
54264         * MODULES.html.sh (Internationalization functions): Add striconveha.
54265         * lib/striconv.c (str_iconv): Optimize the case of an empty input
54266         string.
54267         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
54268
54269 2007-01-21  Bruno Haible  <bruno@clisp.org>
54270
54271         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
54272         * lib/striconveh.c (str_iconveh): Likewise.
54273
54274 2007-01-21  Bruno Haible  <bruno@clisp.org>
54275
54276         * lib/striconveh.h (mem_iconveh): New declaration.
54277         * lib/striconveh.c (mem_iconveh): New function.
54278         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
54279
54280 2007-01-21  Bruno Haible  <bruno@clisp.org>
54281
54282         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
54283
54284         * lib/striconveh.h (mem_cd_iconveh): Change specification.
54285         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
54286         original result buffer.
54287         (str_cd_iconveh): Update.
54288         * tests/test-striconveh.c (main): Update.
54289
54290         * lib/striconv.h (mem_cd_iconv): Change specification.
54291         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
54292         result buffer.
54293         (str_cd_iconv): Update.
54294         * tests/test-striconv.c (main): Update.
54295
54296 2007-01-21  Bruno Haible  <bruno@clisp.org>
54297
54298         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
54299
54300 2007-01-20  Jim Meyering  <jim@meyering.net>
54301
54302         * lib/userspec.c (parse_with_separator): If a user or group string
54303         starts with "+", skip the corresponding name-to-ID look-up, since
54304         such a look-up must fail: user and group names may not include "+".
54305
54306 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54307
54308         * lib/poll.c: Include sys/time.h and time.h unconditionally,
54309         since we now assume the sys_time module.
54310         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
54311         check for sys/time.h; no longer needed.
54312         * modules/poll (Depends-on): Depend on sys_time.
54313
54314 2007-01-18  Bruno Haible  <bruno@clisp.org>
54315
54316         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
54317         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54318
54319         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
54320         gettimeofday.
54321
54322         * tests/test-gettimeofday.c: Include <time.h>.
54323         (dummy): Remove variable.
54324
54325         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
54326         gl_HEADER_SYS_TIME_H.
54327         (gl_HEADER_SYS_TIME_H): New macro.
54328
54329         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
54330         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54331         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54332         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
54333         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54334         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
54335         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
54336         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54337         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
54338         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
54339         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54340
54341         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
54342         last change; it caused a compilation error when cross-compiling to
54343         Cygwin.
54344
54345 2007-01-18  Jim Meyering  <jim@meyering.net>
54346
54347         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
54348         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
54349         than the race-prone "test -d sys || mkdir sys".
54350         (configure.ac): Use AC_PROG_MKDIR_P.
54351         * modules/sys_select: Likewise.
54352         * modules/sys_socket: Likewise.
54353         * modules/sys_time: Likewise.
54354
54355 2007-01-18  Eric Blake  <ebb9@byu.net>
54356
54357         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
54358         replace gettimeofday.
54359         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
54360         name, to avoid infinite recursion.
54361
54362 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
54363
54364         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
54365         module sys_time.
54366         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
54367         assume timespec.h defines struct timeval.
54368         * lib/settime.c: Likewise.
54369         * lib/utimens.c: Likewise.
54370         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
54371         since we now assume the gettimeofday module.
54372         * lib/tempname.c (__gen_tempname): Likewise.
54373         * lib/gettimeofday.h: Remove.
54374         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
54375         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
54376         Include <time.h>, for 'time()'.
54377         (localtime_buffer_addr): Also use this workaround if
54378         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
54379         to simplify the uses.  All uses changed.
54380         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
54381         that #undef is inside {}, and 'const' follows type name consistently.
54382         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
54383         (gettimeofday): Do not use the maximum possible value for
54384         tv->tv_usec, since that might break usages other than ls.c.
54385         Instead, we'll leave ls.c alone.  This undoes today's patch
54386         by Bruno.  Add a compile-time warning for 1s-clock resolution;
54387         we've never observed the problem but might as well keep the
54388         canary.
54389         * lib/nanosleep.c: Include timespec.h first, for interface check.
54390         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
54391         now assume the sys_time module.
54392         * lib/tempname.c: Likewise.
54393         * lib/timespec.h: Likewise.
54394         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
54395         needed.
54396         * lib/strftime.c: Likewise.
54397         * lib/timespec.h: Likewise.
54398         * lib/posixtm.c: Include posixtm.h first, for interface check.
54399         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
54400         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
54401         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
54402         * lib/sys_time_.h: New file.
54403         * lib/timespec.h (struct timespec): Use long int, not long.
54404         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54405         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
54406         Remove obsolescent call to AC_HEADER_TIME.
54407         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54408         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54409         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54410         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
54411         Likewise.
54412         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
54413         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
54414         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
54415         into the sys_time module.  Check for gettimeofday just once.
54416         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
54417         for gettimeofday signature to just check the signature.  Merely
54418         compile it, since linking doesn't test signature.  Improve test for
54419         whether gettimeofday.o is actually needed.
54420         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
54421         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
54422         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
54423         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54424         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
54425         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
54426         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
54427         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
54428         than worrying about sys/time.h.
54429         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54430         Don't bother worrying about TIME_WITH_SYS_TIME.
54431         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
54432         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
54433         * m4/sys_time_h.m4: New file.
54434         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
54435         Don't include sys/time.h.  Return from main rather than exiting.
54436         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
54437         all uses changed.
54438         * modules/gethrxtime (Depends-on): Add sys_time.
54439         * modules/gettime (Depends-on): Likewise.
54440         * modules/gettimeofday (Depends-on): Likewise.
54441         * modules/nanosleep (Depends-on): Likewise.
54442         * modules/settime (Depends-on): Likewise.
54443         * modules/tempname (Depends-on): Likewise.
54444         * modules/utimens (Depends-on): Likewise.
54445         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
54446         (Include): Change back to <sys/time.h>.
54447         (Maintainer): Add self.
54448         * modules/sys_time: New file.
54449         * modules/tempname (Depends-on): Add gettimeofday.
54450         * tests/test-gettimeofday.c: Include <sys/time.h>
54451         rather than gettimeofday.h.
54452
54453 2007-01-17  Bruno Haible  <bruno@clisp.org>
54454
54455         * gnulib-tool (func_get_license): Revert last patch. Instead, let
54456         the license default to GPL.
54457         (func_create_testdir): Don't complain if a module is LGPL and its
54458         tests module depends on GPLed modules.
54459
54460 2007-01-17  Bruno Haible  <bruno@clisp.org>
54461
54462         * lib/gettimeofday.c (gettimeofday): Add code for the case
54463         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
54464         maximum possible value for tv->tv_usec, rather than the minimum one.
54465
54466 2005-10-08  Martin Lambers  <marlam@marlam.de>
54467 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54468 2007-01-16  Bruno Haible  <bruno@clisp.org>
54469
54470         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
54471         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
54472         gl_FUNC_GETTIMEOFDAY.
54473         (Include): Add gettimeofday.h.
54474         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
54475         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
54476         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
54477         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
54478         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
54479         * lib/gettimeofday.h: New file.
54480         * lib/gettimeofday.c: Include <sys/timeb.h>.
54481         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
54482         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54483         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
54484         fall back on time().
54485
54486         * tests/test-gettimeofday.c: New file.
54487         * modules/gettimeofday-tests: New file.
54488
54489 2007-01-16  Eric Blake  <ebb9@byu.net>
54490
54491         * modules/fnmatch (Depends-on): Depend on wchar.
54492         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
54493         * m4/fnmatch.m4: Likewise.
54494         * modules/mbchar (Makefile.am): Assume <wchar.h>.
54495         * m4/mbchar.m4: Likewise.
54496         * modules/mbswidth (Depends-on): Depend on wchar.
54497         * lib/mbswidth.c: Assume <wchar.h>.
54498         * m4/mbswidth.m4: Likewise.
54499         * modules/quotearg (Depends-on): Depend on wchar.
54500         * lib/quotearg.c: Assume <wchar.h>.
54501         * m4/quotearg.m4: Likewise.
54502         * modules/regex (Depends-on): Depend on wchar.
54503         * lib/regex_internal.h: Assume <wchar.h>.
54504         * m4/regex.m4: Likewise.
54505         * modules/stdint (Depends-on): Depend on wchar.
54506         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
54507         * m4/stdint.m4: Likewise.
54508         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
54509         * modules/strftime (Depends-on): Depend on wchar.
54510         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
54511         * modules/strtol (Depends-on): Depend on wchar.
54512         * lib/strtol.c: Assume <wchar.h>.
54513         * modules/wcwidth (Depends-on): Depend on wchar.
54514         * lib/wcwidth.h: Assume <wchar.h>.
54515         * m4/wcwidth.m4: Likewise.
54516
54517 2007-01-16  Bruno Haible  <bruno@clisp.org>
54518
54519         * modules/csharpexec-script: New, created from...
54520         * modules/csharpexec: ... this.
54521
54522 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54523
54524         * modules/javaexec-script: New, created from...
54525         * modules/javaexec: ... this.
54526
54527 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54528
54529         * modules/poll (Dependencies): Add sys_select.
54530
54531 2007-01-15  Jim Meyering  <jim@meyering.net>
54532
54533         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
54534         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
54535         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
54536         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
54537
54538 2007-01-15  Bruno Haible  <bruno@clisp.org>
54539
54540         * modules/striconveh: New file.
54541         * lib/striconveh.h: New file.
54542         * lib/striconveh.c: New file.
54543         * MODULES.html.sh (Internationalization functions): Add striconveh.
54544
54545         * modules/striconveh-tests: New file.
54546         * tests/test-striconveh.c: New file.
54547
54548 2007-01-15  Bruno Haible  <bruno@clisp.org>
54549
54550         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
54551         not from GNU libiconv or GNU libc.
54552
54553 2007-01-15  Bruno Haible  <bruno@clisp.org>
54554
54555         * doc/gnulib-intro.texi (Copyright): Explain the different license
54556         terms for module descriptions, autoconf macros, tests, documentation.
54557
54558 2007-01-14  Bruno Haible  <bruno@clisp.org>
54559
54560         * modules/striconv-tests: New file.
54561         * tests/test-striconv.c: New file.
54562
54563 2007-01-14  Bruno Haible  <bruno@clisp.org>
54564
54565         * modules/iconv-tests: New file.
54566         * tests/test-iconv.c: New file.
54567
54568 2007-01-14  Bruno Haible  <bruno@clisp.org>
54569
54570         * gnulib-tool (func_get_license): For test modules, use the license of
54571         the main module.
54572
54573 2007-01-14  Bruno Haible  <bruno@clisp.org>
54574
54575         * modules/iconv (Include): Clarify that <iconv.h> can only be included
54576         if iconv is found to exist.
54577
54578 2007-01-14  Bruno Haible  <bruno@clisp.org>
54579
54580         * modules/c-ctype-tests: New file.
54581         * tests/test-c-ctype.c: New file.
54582
54583 2007-01-14  Bruno Haible  <bruno@clisp.org>
54584
54585         * modules/binary-io-tests: New file.
54586         * tests/test-binary-io.sh: New file.
54587         * tests/test-binary-io.c: New file.
54588
54589 2007-01-14  Bruno Haible  <bruno@clisp.org>
54590
54591         * modules/array-oset-tests: New file.
54592         * tests/test-array_oset.c: New file.
54593
54594 2007-01-14  Bruno Haible  <bruno@clisp.org>
54595
54596         * modules/array-list-tests: New file.
54597         * tests/test-array_list.c: New file.
54598
54599 2007-01-14  Bruno Haible  <bruno@clisp.org>
54600
54601         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
54602         and make.
54603         Reported by Simon Josefsson in
54604         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
54605
54606 2007-01-14  Bruno Haible  <bruno@clisp.org>
54607
54608         * modules/allocsa-tests: New file.
54609         * tests/test-allocsa.c: New file.
54610
54611 2007-01-14  Bruno Haible  <bruno@clisp.org>
54612
54613         * modules/fchdir (Depends-on): Add absolute-header.
54614         * modules/unistd (Depends-on): Likewise.
54615
54616 2006-12-30  Bruno Haible  <bruno@clisp.org>
54617
54618         * modules/fchdir: New file.
54619         * modules/unistd (Files): Add lib/unistd_.h.
54620         (Makefile.am): Generate unistd.h from unistd_.h.
54621         * lib/fchdir.c: New file.
54622         * lib/dirent_.h: New file.
54623         * lib/unistd_.h: New file.
54624         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
54625         * m4/fchdir.m4: New file.
54626         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
54627         (gl_HEADER_UNISTD): Invoke it.
54628         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
54629         function.
54630         * lib/backupfile.c (opendir, closedir): Undefine.
54631         * lib/chown.c (open, close): Undefine.
54632         * lib/clean-temp.c (open, close): Undefine.
54633         * lib/copy-file.c (open, close): Undefine.
54634         * lib/execute.c (open, close): Undefine.
54635         * lib/fsusage.c (open, close): Undefine.
54636         * lib/gc-gnulib.c (open, close): Undefine.
54637         * lib/getcwd.c (opendir, closedir): Undefine.
54638         * lib/glob.c (opendir, closedir): Undefine.
54639         * lib/javacomp.c (open, close): Undefine.
54640         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
54641         * lib/openat-proc.c (open, close): Undefine.
54642         * lib/pagealign_alloc.c (open, close): Undefine.
54643         * lib/pipe.c (open, close): Undefine.
54644         * lib/progreloc.c (open, close): Undefine.
54645         * lib/savedir.c (opendir, closedir): Undefine.
54646         * lib/utime.c (open, close): Undefine.
54647         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
54648
54649 2007-01-10  Bruno Haible  <bruno@clisp.org>
54650
54651         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
54652
54653 2007-01-12  Eric Blake  <ebb9@byu.net>
54654
54655         Provide a robust <wchar.h>.  Further simplifications are now
54656         possible in other modules, but not included here.
54657         * modules/wchar: New module.
54658         * m4/wchar.m4: New file.
54659         * lib/wchar_.h: Likewise.
54660         * modules/mbchar (Depends-on): Depend on wchar, as the first use
54661         of the new module.
54662         * MODULES.html.sh (Extended multibyte and wide character utilities):
54663         New section.
54664
54665 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
54666
54667         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
54668         to a reasonable default for memory allocation.
54669         (xreadlink): Don't allocate a huge buffer, to work around a buggy
54670         file system that reports garbage st_size values for symlinks.
54671         Problem reported by Liyang Hu.
54672
54673 2007-01-11  Simon Josefsson  <simon@josefsson.org>
54674
54675         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
54676         Emacs .#* auto-save files).
54677
54678 2007-01-11  Bruno Haible  <bruno@clisp.org>
54679
54680         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
54681         directory.
54682
54683 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54684
54685         Use @...@ consistently in lib/wctype_.h.
54686         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
54687         on it being set to 1 or 0.
54688         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
54689         go back to AC_SUBSTing it.
54690         * modules/wctype (Makefile.am): Undo previous change.
54691
54692 2007-01-10  Eric Blake  <ebb9@byu.net>
54693
54694         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
54695         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
54696         * modules/wctype (Makefile.am): Likewise.
54697         Reported by Chris McGuire.
54698
54699 2007-01-10  Jim Meyering  <jim@meyering.net>
54700
54701         fts.c: a small readability/maintainability improvement
54702         * lib/fts.c (fts_read): Make this code slightly more readable and
54703         maintainable by hoisting the "sp->fts_cur = p" assignments to
54704         immediately follow the statements that set P.  Derived from
54705         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
54706
54707 2007-01-10  Eric Blake  <ebb9@byu.net>
54708
54709         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
54710         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
54711         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54712         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
54713         Reported by Chris McGuire.
54714
54715 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54716
54717         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
54718         in sed script.
54719
54720 2007-01-09  Bruno Haible  <bruno@clisp.org>
54721
54722         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
54723         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
54724         variables.
54725         (func_module): Use them.
54726
54727 2007-01-09  Bruno Haible  <bruno@clisp.org>
54728
54729         * modules/unistr/base: New file.
54730         * lib/unistr.h: New file.
54731
54732         * modules/unistr/u8-to-u16: New file.
54733         * lib/unistr/u8-to-u16.c: New file.
54734
54735         * modules/unistr/u8-to-u32: New file.
54736         * lib/unistr/u8-to-u32.c: New file.
54737
54738         * modules/unistr/u16-to-u8: New file.
54739         * lib/unistr/u16-to-u8.c: New file.
54740
54741         * modules/unistr/u16-to-u32: New file.
54742         * lib/unistr/u16-to-u32.c: New file.
54743
54744         * modules/unistr/u32-to-u8: New file.
54745         * lib/unistr/u32-to-u8.c: New file.
54746
54747         * modules/unistr/u32-to-u16: New file.
54748         * lib/unistr/u32-to-u16.c: New file.
54749
54750         * modules/unistr/u8-check: New file.
54751         * modules/unistr/u16-check: New file.
54752         * modules/unistr/u32-check: New file.
54753         * lib/unistr/u8-check.c: New file.
54754         * lib/unistr/u16-check.c: New file.
54755         * lib/unistr/u32-check.c: New file.
54756
54757         * modules/unistr/u8-chr: New file.
54758         * modules/unistr/u16-chr: New file.
54759         * modules/unistr/u32-chr: New file.
54760         * lib/unistr/u8-chr.c: New file.
54761         * lib/unistr/u16-chr.c: New file.
54762         * lib/unistr/u32-chr.c: New file.
54763
54764         * modules/unistr/u8-cmp: New file.
54765         * modules/unistr/u16-cmp: New file.
54766         * modules/unistr/u32-cmp: New file.
54767         * lib/unistr/u8-cmp.c: New file.
54768         * lib/unistr/u16-cmp.c: New file.
54769         * lib/unistr/u32-cmp.c: New file.
54770
54771         * modules/unistr/u8-cpy: New file.
54772         * modules/unistr/u16-cpy: New file.
54773         * modules/unistr/u32-cpy: New file.
54774         * lib/unistr/u8-cpy.c: New file.
54775         * lib/unistr/u16-cpy.c: New file.
54776         * lib/unistr/u32-cpy.c: New file.
54777         * lib/unistr/u-cpy.h: New file.
54778
54779         * modules/unistr/u8-cpy-alloc: New file.
54780         * modules/unistr/u16-cpy-alloc: New file.
54781         * modules/unistr/u32-cpy-alloc: New file.
54782         * lib/unistr/u8-cpy-alloc.c: New file.
54783         * lib/unistr/u16-cpy-alloc.c: New file.
54784         * lib/unistr/u32-cpy-alloc.c: New file.
54785         * lib/unistr/u-cpy-alloc.h: New file.
54786
54787         * modules/unistr/u8-endswith: New file.
54788         * modules/unistr/u16-endswith: New file.
54789         * modules/unistr/u32-endswith: New file.
54790         * lib/unistr/u8-endswith.c: New file.
54791         * lib/unistr/u16-endswith.c: New file.
54792         * lib/unistr/u32-endswith.c: New file.
54793         * lib/unistr/u-endswith.h: New file.
54794
54795         * modules/unistr/u8-mblen: New file.
54796         * modules/unistr/u16-mblen: New file.
54797         * modules/unistr/u32-mblen: New file.
54798         * lib/unistr/u8-mblen.c: New file.
54799         * lib/unistr/u16-mblen.c: New file.
54800         * lib/unistr/u32-mblen.c: New file.
54801
54802         * modules/unistr/u8-mbtouc: New file.
54803         * modules/unistr/u16-mbtouc: New file.
54804         * modules/unistr/u32-mbtouc: New file.
54805         * lib/unistr/u8-mbtouc.c: New file.
54806         * lib/unistr/u16-mbtouc.c: New file.
54807         * lib/unistr/u32-mbtouc.c: New file.
54808
54809         * modules/unistr/u8-mbtouc-safe: New file.
54810         * modules/unistr/u16-mbtouc-safe: New file.
54811         * modules/unistr/u32-mbtouc-safe: New file.
54812         * lib/unistr/u8-mbtouc-safe.c: New file.
54813         * lib/unistr/u16-mbtouc-safe.c: New file.
54814         * lib/unistr/u32-mbtouc-safe.c: New file.
54815
54816         * modules/unistr/u8-move: New file.
54817         * modules/unistr/u16-move: New file.
54818         * modules/unistr/u32-move: New file.
54819         * lib/unistr/u8-move.c: New file.
54820         * lib/unistr/u16-move.c: New file.
54821         * lib/unistr/u32-move.c: New file.
54822         * lib/unistr/u-move.h: New file.
54823
54824         * modules/unistr/u8-next: New file.
54825         * modules/unistr/u16-next: New file.
54826         * modules/unistr/u32-next: New file.
54827         * lib/unistr/u8-next.c: New file.
54828         * lib/unistr/u16-next.c: New file.
54829         * lib/unistr/u32-next.c: New file.
54830
54831         * modules/unistr/u8-prev: New file.
54832         * modules/unistr/u16-prev: New file.
54833         * modules/unistr/u32-prev: New file.
54834         * lib/unistr/u8-prev.c: New file.
54835         * lib/unistr/u16-prev.c: New file.
54836         * lib/unistr/u32-prev.c: New file.
54837
54838         * modules/unistr/u8-set: New file.
54839         * modules/unistr/u16-set: New file.
54840         * modules/unistr/u32-set: New file.
54841         * lib/unistr/u8-set.c: New file.
54842         * lib/unistr/u16-set.c: New file.
54843         * lib/unistr/u32-set.c: New file.
54844         * lib/unistr/u-set.h: New file.
54845
54846         * modules/unistr/u8-startswith: New file.
54847         * modules/unistr/u16-startswith: New file.
54848         * modules/unistr/u32-startswith: New file.
54849         * lib/unistr/u8-startswith.c: New file.
54850         * lib/unistr/u16-startswith.c: New file.
54851         * lib/unistr/u32-startswith.c: New file.
54852         * lib/unistr/u-startswith.h: New file.
54853
54854         * modules/unistr/u8-stpcpy: New file.
54855         * modules/unistr/u16-stpcpy: New file.
54856         * modules/unistr/u32-stpcpy: New file.
54857         * lib/unistr/u8-stpcpy.c: New file.
54858         * lib/unistr/u16-stpcpy.c: New file.
54859         * lib/unistr/u32-stpcpy.c: New file.
54860         * lib/unistr/u-stpcpy.h: New file.
54861
54862         * modules/unistr/u8-stpncpy: New file.
54863         * modules/unistr/u16-stpncpy: New file.
54864         * modules/unistr/u32-stpncpy: New file.
54865         * lib/unistr/u8-stpncpy.c: New file.
54866         * lib/unistr/u16-stpncpy.c: New file.
54867         * lib/unistr/u32-stpncpy.c: New file.
54868         * lib/unistr/u-stpncpy.h: New file.
54869
54870         * modules/unistr/u8-strcat: New file.
54871         * modules/unistr/u16-strcat: New file.
54872         * modules/unistr/u32-strcat: New file.
54873         * lib/unistr/u8-strcat.c: New file.
54874         * lib/unistr/u16-strcat.c: New file.
54875         * lib/unistr/u32-strcat.c: New file.
54876         * lib/unistr/u-strcat.h: New file.
54877
54878         * modules/unistr/u8-strchr: New file.
54879         * modules/unistr/u16-strchr: New file.
54880         * modules/unistr/u32-strchr: New file.
54881         * lib/unistr/u8-strchr.c: New file.
54882         * lib/unistr/u16-strchr.c: New file.
54883         * lib/unistr/u32-strchr.c: New file.
54884
54885         * modules/unistr/u8-strcmp: New file.
54886         * modules/unistr/u16-strcmp: New file.
54887         * modules/unistr/u32-strcmp: New file.
54888         * lib/unistr/u8-strcmp.c: New file.
54889         * lib/unistr/u16-strcmp.c: New file.
54890         * lib/unistr/u32-strcmp.c: New file.
54891
54892         * modules/unistr/u8-strcpy: New file.
54893         * modules/unistr/u16-strcpy: New file.
54894         * modules/unistr/u32-strcpy: New file.
54895         * lib/unistr/u8-strcpy.c: New file.
54896         * lib/unistr/u16-strcpy.c: New file.
54897         * lib/unistr/u32-strcpy.c: New file.
54898         * lib/unistr/u-strcpy.h: New file.
54899
54900         * modules/unistr/u8-strcspn: New file.
54901         * modules/unistr/u16-strcspn: New file.
54902         * modules/unistr/u32-strcspn: New file.
54903         * lib/unistr/u8-strcspn.c: New file.
54904         * lib/unistr/u16-strcspn.c: New file.
54905         * lib/unistr/u32-strcspn.c: New file.
54906         * lib/unistr/u-strcspn.h: New file.
54907
54908         * modules/unistr/u8-strdup: New file.
54909         * modules/unistr/u16-strdup: New file.
54910         * modules/unistr/u32-strdup: New file.
54911         * lib/unistr/u8-strdup.c: New file.
54912         * lib/unistr/u16-strdup.c: New file.
54913         * lib/unistr/u32-strdup.c: New file.
54914         * lib/unistr/u-strdup.h: New file.
54915
54916         * modules/unistr/u8-strlen: New file.
54917         * modules/unistr/u16-strlen: New file.
54918         * modules/unistr/u32-strlen: New file.
54919         * lib/unistr/u8-strlen.c: New file.
54920         * lib/unistr/u16-strlen.c: New file.
54921         * lib/unistr/u32-strlen.c: New file.
54922         * lib/unistr/u-strlen.h: New file.
54923
54924         * modules/unistr/u8-strmblen: New file.
54925         * modules/unistr/u16-strmblen: New file.
54926         * modules/unistr/u32-strmblen: New file.
54927         * lib/unistr/u8-strmblen.c: New file.
54928         * lib/unistr/u16-strmblen.c: New file.
54929         * lib/unistr/u32-strmblen.c: New file.
54930
54931         * modules/unistr/u8-strmbtouc: New file.
54932         * modules/unistr/u16-strmbtouc: New file.
54933         * modules/unistr/u32-strmbtouc: New file.
54934         * lib/unistr/u8-strmbtouc.c: New file.
54935         * lib/unistr/u16-strmbtouc.c: New file.
54936         * lib/unistr/u32-strmbtouc.c: New file.
54937
54938         * modules/unistr/u8-strncat: New file.
54939         * modules/unistr/u16-strncat: New file.
54940         * modules/unistr/u32-strncat: New file.
54941         * lib/unistr/u8-strncat.c: New file.
54942         * lib/unistr/u16-strncat.c: New file.
54943         * lib/unistr/u32-strncat.c: New file.
54944         * lib/unistr/u-strncat.h: New file.
54945
54946         * modules/unistr/u8-strncmp: New file.
54947         * modules/unistr/u16-strncmp: New file.
54948         * modules/unistr/u32-strncmp: New file.
54949         * lib/unistr/u8-strncmp.c: New file.
54950         * lib/unistr/u16-strncmp.c: New file.
54951         * lib/unistr/u32-strncmp.c: New file.
54952
54953         * modules/unistr/u8-strncpy: New file.
54954         * modules/unistr/u16-strncpy: New file.
54955         * modules/unistr/u32-strncpy: New file.
54956         * lib/unistr/u8-strncpy.c: New file.
54957         * lib/unistr/u16-strncpy.c: New file.
54958         * lib/unistr/u32-strncpy.c: New file.
54959         * lib/unistr/u-strncpy.h: New file.
54960
54961         * modules/unistr/u8-strnlen: New file.
54962         * modules/unistr/u16-strnlen: New file.
54963         * modules/unistr/u32-strnlen: New file.
54964         * lib/unistr/u8-strnlen.c: New file.
54965         * lib/unistr/u16-strnlen.c: New file.
54966         * lib/unistr/u32-strnlen.c: New file.
54967         * lib/unistr/u-strnlen.h: New file.
54968
54969         * modules/unistr/u8-strpbrk: New file.
54970         * modules/unistr/u16-strpbrk: New file.
54971         * modules/unistr/u32-strpbrk: New file.
54972         * lib/unistr/u8-strpbrk.c: New file.
54973         * lib/unistr/u16-strpbrk.c: New file.
54974         * lib/unistr/u32-strpbrk.c: New file.
54975         * lib/unistr/u-strpbrk.h: New file.
54976
54977         * modules/unistr/u8-strrchr: New file.
54978         * modules/unistr/u16-strrchr: New file.
54979         * modules/unistr/u32-strrchr: New file.
54980         * lib/unistr/u8-strrchr.c: New file.
54981         * lib/unistr/u16-strrchr.c: New file.
54982         * lib/unistr/u32-strrchr.c: New file.
54983
54984         * modules/unistr/u8-strspn: New file.
54985         * modules/unistr/u16-strspn: New file.
54986         * modules/unistr/u32-strspn: New file.
54987         * lib/unistr/u8-strspn.c: New file.
54988         * lib/unistr/u16-strspn.c: New file.
54989         * lib/unistr/u32-strspn.c: New file.
54990         * lib/unistr/u-strspn.h: New file.
54991
54992         * modules/unistr/u8-strstr: New file.
54993         * modules/unistr/u16-strstr: New file.
54994         * modules/unistr/u32-strstr: New file.
54995         * lib/unistr/u8-strstr.c: New file.
54996         * lib/unistr/u16-strstr.c: New file.
54997         * lib/unistr/u32-strstr.c: New file.
54998         * lib/unistr/u-strstr.h: New file.
54999
55000         * modules/unistr/u8-strtok: New file.
55001         * modules/unistr/u16-strtok: New file.
55002         * modules/unistr/u32-strtok: New file.
55003         * lib/unistr/u8-strtok.c: New file.
55004         * lib/unistr/u16-strtok.c: New file.
55005         * lib/unistr/u32-strtok.c: New file.
55006         * lib/unistr/u-strtok.h: New file.
55007
55008         * modules/unistr/u8-uctomb: New file.
55009         * modules/unistr/u16-uctomb: New file.
55010         * modules/unistr/u32-uctomb: New file.
55011         * lib/unistr/u8-uctomb.c: New file.
55012         * lib/unistr/u16-uctomb.c: New file.
55013         * lib/unistr/u32-uctomb.c: New file.
55014
55015         * MODULES.html.sh (Unicode string functions): Add the new modules.
55016
55017 2007-01-08  Bruno Haible  <bruno@clisp.org>
55018
55019         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
55020         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
55021         subdirectories.
55022
55023 2007-01-08  Karl Berry  <karl@gnu.org>
55024
55025         * doc/error.texi: mention that main() fns must set program_name
55026         when progname is used.
55027
55028 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
55029
55030         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
55031         WCTYPE_H is empty, for the benefit of builds from non-distclean
55032         directories.  Problem reported by Eric Blake in
55033         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
55034
55035 2007-01-08  Bruno Haible  <bruno@clisp.org>
55036
55037         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
55038         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
55039         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
55040         PROVIDE_CANONICALIZE_FILENAME_MODE.
55041         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
55042
55043 2007-01-08  Bruno Haible  <bruno@clisp.org>
55044
55045         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
55046         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
55047         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
55048         * lib/fts.c: Likewise.
55049         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
55050
55051 2006-12-25  Bruno Haible  <bruno@clisp.org>
55052
55053         * modules/utf8-ucs4-safe: New file.
55054         * lib/utf8-ucs4-safe.h: New file.
55055         * lib/unistr/utf8-ucs4-safe.c: New file.
55056
55057         * modules/utf16-ucs4-safe: New file.
55058         * lib/utf16-ucs4-safe.h: New file.
55059         * lib/unistr/utf16-ucs4-safe.c: New file.
55060
55061         * MODULES.html.sh (Unicode string functions): Add the new modules.
55062
55063 2007-01-08  Bruno Haible  <bruno@clisp.org>
55064
55065         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
55066         (Depends-on): Add unitypes.
55067         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55068         (u8_mbtouc_aux): Move out to separate file.
55069         (u8_mbtouc): Use ucs4_t, uint8_t types.
55070         * lib/unistr/utf8-ucs4.c: New file.
55071
55072         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
55073         (Depends-on): Add unitypes.
55074         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55075         (u16_mbtouc_aux): Move out to separate file.
55076         (u16_mbtouc): Use ucs4_t, uint16_t types.
55077         * lib/unistr/utf16-ucs4.c: New file.
55078
55079         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
55080         (Depends-on): Add unitypes.
55081         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
55082         (u8_uctomb_aux): Move out to separate file.
55083         (u8_uctomb): Use ucs4_t, uint8_t types.
55084         * lib/unistr/ucs4-utf8.c: New file.
55085
55086         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
55087         (Depends-on): Add unitypes.
55088         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
55089         (u16_uctomb_aux): Move out to separate file.
55090         (u16_uctomb): Use ucs4_t, uint16_t types.
55091         * lib/unistr/ucs4-utf16.c: New file.
55092
55093 2006-12-25  Bruno Haible  <bruno@clisp.org>
55094
55095         * modules/unitypes: New file.
55096         * lib/unitypes.h: New file.
55097         * MODULES.html.sh (func_all_modules): New section "Unicode string
55098         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
55099         this section. Add unitypes.
55100
55101 2007-01-08  Bruno Haible  <bruno@clisp.org>
55102
55103         Avoid variable names that conflict with those from libtool.
55104         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
55105         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
55106         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
55107         library_names_spec to acl_library_names_spec, hardcode_* to
55108         acl_hardcode_*.
55109         Reported by Ralf Wildenhues.
55110
55111 2007-01-08  Bruno Haible  <bruno@clisp.org>
55112
55113         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
55114         definition.
55115         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
55116         definition.
55117         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
55118         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
55119         definition.
55120         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
55121         definition.
55122         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
55123         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
55124         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
55125         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
55126         definition.
55127         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
55128         definition.
55129         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
55130         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
55131         GC_USE_<algorithm>.
55132         * lib/gc-libgcrypt.c: Likewise.
55133         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
55134         * modules/gc-arctwo (configure.ac): Likewise.
55135         * modules/gc-des (configure.ac): Likewise.
55136         * modules/gc-hmac-md5 (configure.ac): Likewise.
55137         * modules/gc-hmac-sha1 (configure.ac): Likewise.
55138         * modules/gc-md2 (configure.ac): Likewise.
55139         * modules/gc-md4 (configure.ac): Likewise.
55140         * modules/gc-md5 (configure.ac): Likewise.
55141         * modules/gc-random (configure.ac): Likewise.
55142         * modules/gc-rijndael (configure.ac): Likewise.
55143         * modules/gc-sha1 (configure.ac): Likewise.
55144
55145 2007-01-08  Bruno Haible  <bruno@clisp.org>
55146
55147         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
55148         macro definition.
55149         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
55150         definition.
55151         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
55152         definition.
55153         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
55154         * modules/fcntl-safer (configure.ac): Likewise.
55155         * modules/fopen-safer (configure.ac): Likewise.
55156         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
55157         GNULIB_FWRITEERROR macro definition.
55158
55159 2007-01-08  Bruno Haible  <bruno@clisp.org>
55160
55161         * m4/gnulib-common.m4: New file.
55162         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
55163         (func_get_filelist): Add m4/gnulib-common.m4.
55164
55165 2007-01-08  Bruno Haible  <bruno@clisp.org>
55166
55167         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
55168         command.
55169
55170 2007-01-08  Jim Meyering  <jim@meyering.net>
55171
55172         Use a more robust test for a "can't happen" condition.
55173         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
55174         narrowed the st_size value.  Presuming the "can't happen" condition
55175         is true, that narrowing could conceivably convert an invalid st_size
55176         value into a valid one.  Instead, use a change based on Matthew
55177         Woehlke's original patch.
55178
55179         Slight readability improvement: use an assert-like macro
55180         in place of literal "abort ()" uses.
55181         * lib/fts.c (fts_assert): Define.
55182         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
55183         Use this macro instead of a bare 'abort'.
55184
55185 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
55186
55187         Don't worry about using IRIX 5.3's wctype.h broken definitions;
55188         simply work around them.
55189         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
55190         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
55191         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
55192         declaring.
55193         Don't bother to define as macros, since the standard doesn't require it.
55194         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
55195         longer worry about IRIX 5.3.
55196         (HAVE_WCTYPE_CTMP_BUG): Remove.
55197
55198 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55199
55200         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
55201         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
55202         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55203         Problems reported by Georg Schwarz for IRIX 5.3.
55204
55205         * gnulib-tool (autoconf_minversion): Take the maximum version number
55206         found, not the minimum.  Problem reported by James Youngman.
55207
55208 2007-01-03  Karl Berry  <karl@gnu.org>
55209
55210         * doc/error.texi: new file, explaining interaction with progname.
55211         * doc/gnulib.texi: include it.  Update copyright.
55212
55213 2007-01-03  Simon Josefsson  <simon@josefsson.org>
55214
55215         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
55216         AC_CANONICAL_HOST, to improve autobuild outputs.
55217
55218 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
55219             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55220
55221         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
55222         sockets, server sockets, and other file descriptors.  Count errors
55223         to compute the return value.  Reorder the code a bit to be easier
55224         to follow.  Don't set event bits that were not requested (except
55225         POLLERR and POLLHUP).
55226
55227 2007-01-01  Bruno Haible  <bruno@clisp.org>
55228
55229         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
55230
55231 2007-01-03  Jim Meyering  <jim@meyering.net>
55232
55233         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
55234
55235 2007-01-02  Bruno Haible  <bruno@clisp.org>
55236
55237         * modules/settime (Include): Require timespec.h.
55238         * modules/nanosleep (Include): Likewise.
55239
55240 2007-01-01  Bruno Haible  <bruno@clisp.org>
55241
55242         * gnulib-tool (func_emit_copyright_notice): Bump year.
55243         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
55244
55245 2007-01-01  Bruno Haible  <bruno@clisp.org>
55246
55247         Improve support for OpenBSD.
55248         * build-aux/config.rpath (libname_spec): Export.
55249         (library_names_spec): New variable. Export.
55250         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
55251         library_names_spec from the config.rpath output. Locate shared library
55252         through the name pattern in library_names_spec.
55253
55254 2007-01-01  Eric Blake  <ebb9@byu.net>
55255
55256         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
55257
55258 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
55259
55260         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
55261         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
55262         assume the C locale, and avoid an "eval" that could cause trouble.
55263         Problem with SORT reported by Bob Proulx.
55264
55265         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
55266         Define.  Trivial patch from Henning Nielsen Lund, originally
55267         sent to bug-grep@gnu.org today.
55268
55269 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55270
55271         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
55272         struct stat.  Problem reported by Henning Nielsen Lund.
55273         * lib/acl.c: Include acl.h first, to check interface.  Don't
55274         bother to include sys/types.h and sys/stat.h again.
55275
55276 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
55277
55278         Import the following change from libc; problem reported by
55279         Sven Verdoolaege.
55280
55281         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
55282
55283         [BZ #1373]
55284         * lib/argp.h: Remove __NTH for __argp_usage inline function.
55285
55286 2006-12-28  Jim Meyering  <jim@meyering.net>
55287
55288         * build-aux/announce-gen: Do not assume that the package
55289         builds any of tar.gz, tar.bz2, and .xdelta files.
55290         Suggestion from Simon Josefsson.
55291
55292 2006-12-28  Simon Josefsson  <simon@josefsson.org>
55293
55294         * modules/announce-gen: New file.
55295
55296 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
55297
55298         * lib/mbchar.h: Just include <wctype.h>; the wctype module
55299         handles its gotchas now.
55300         * lib/mbswidth.c: Likewise.
55301         * lib/wcwidth.h: Likewise.
55302         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
55303         and iswcntrl; the wctype module does this stuff now.
55304         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55305         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55306         * modules/mbchar (Depends-on): Add wctype.
55307         * modules/mbswidth (Depends-on): Likewise.
55308         * modules/wcwidth (Depends-on): Likewise.
55309
55310 2006-12-27  Eric Blake  <ebb9@byu.net>
55311
55312         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
55313         module uses more than what <wctype.h> is required to provide.
55314
55315 2006-12-26  Eric Blake  <ebb9@byu.net>
55316
55317         * gnulib-tool (sed_extract_prog): Avoid space-tab.
55318
55319 2006-12-26  Eric Blake  <ebb9@byu.net>
55320
55321         * modules/absolute-header: New module.
55322         * modules/fcntl (Depends-on): Depend on it.
55323         * modules/inttypes (Depends-on): Likewise.
55324         * modules/stdint (Depends-on): Likewise.
55325         * modules/sys_stat (Depends-on): Likewise.
55326         * modules/wctype (Depends-on): Likewise.
55327         * MODULES.html.sh (Support for building libraries and
55328         executables): Document it.
55329
55330 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55331
55332         * gnulib-tool (SED): Remove, undoing previous change.
55333         The problem was that it broke coreutils on Solaris, because
55334         "sed --posix" leaked into a makefile.
55335         (sed): New alias, if 'alias' and GNU sed.
55336
55337 2006-12-24  Jim Meyering  <jim@meyering.net>
55338
55339         Work around an fchownat bug in glibc-2.4:
55340         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
55341         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
55342         in spite of the -P option.
55343         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
55344         New macros.
55345         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
55346         * modules/openat (Files): Add lib/fchownat.c.
55347         * lib/openat.c (fchownat): Don't define here.  Move to...
55348         * lib/fchownat.c: ...this new file.
55349
55350 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
55351
55352         Fix bug reported by Bruno Haible in
55353         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
55354         where quotearg.c didn't compile on Mac OS X 10.2 because it
55355         lacks <wchar.h> and wint_t.
55356         * lib/wctype_.h (__wctype_wint_t): New type.
55357         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
55358         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
55359         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
55360         Arg is now of type __wctype_wint_t, not wint_t.
55361         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
55362         substitute HAVE_WINT_T.
55363         * modules/wctype (Files): Add m4/wint_t.m4.
55364         (wctype.h): Substitute HAVE_WINT_T.
55365
55366 2006-12-23  Bruno Haible  <bruno@clisp.org>
55367
55368         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
55369
55370 2006-12-23  Bruno Haible  <bruno@clisp.org>
55371
55372         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
55373         S_ISLNK.
55374         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
55375         mingw.
55376
55377 2006-12-22  Bruno Haible  <bruno@clisp.org>
55378
55379         * lib/copy-file.c: Include acl.h.
55380         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
55381         Close the file descriptors only after being done with copy_acl.
55382         * modules/copy-file (Depends-on): Add acl.
55383
55384 2006-12-22  Bruno Haible  <bruno@clisp.org>
55385
55386         * gnulib-tool (SED): New variable.
55387         Use $SED instead of sed everywhere.
55388
55389 2006-12-22  Bruno Haible  <bruno@clisp.org>
55390
55391         * modules/no-c++: New file.
55392         * m4/no-c++.m4: New file.
55393         * MODULES.html.sh (Support for building libraries and executables):
55394         Add no-c++.
55395
55396 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
55397
55398         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55399         Include <limits.h>, and use its INT_MAX to rewrite the
55400         j loop so that it does not overflow 'int'.  Problem reported by
55401         Ralf Wildenhues in
55402         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
55403         Play it safe by shifting left by 1 rather than multiplying by 2,
55404         as GCC is less likely to optimize this away when the value
55405         is signed (when it assumes overflow leads to undefined behavior).
55406         Also, don't assume time_t uses two's complement.
55407
55408 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
55409
55410         * MODULES.html.sh: New module wctype.
55411         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
55412         * lib/fnmatch.c: Don't bother to include <wchar.h> before
55413         <wctype.h>, since the new wctype module should fix this.
55414         * lib/quotearg.c: Include <wctype.h> unconditionally, since
55415         the wctype module should arrange for it.
55416         * lib/regex_internal.h: Likewise.
55417         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
55418         since the wctype module should handle this now.
55419         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
55420         * modules/fnmatch (Depends-on): Add wctype.
55421         * modules/quotearg (Depends-on): Likewise.
55422         * modules/regex (Depends-on): Likewise.
55423
55424 2006-12-19  Bruno Haible  <bruno@clisp.org>
55425
55426         * lib/strdup.h [C++]: Wrap definitions in extern "C".
55427         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
55428
55429 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55430
55431         * modules/savewd (Depends-on): Fix dependency on fcntl.
55432
55433 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55434
55435         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
55436         conforms to C99, rather than relying on the user's environment
55437         setting of STDINT_H.
55438
55439 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55440         and Eric Blake  <ebb9@byu.net>
55441
55442         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
55443         This is more consistent with the other defines here.
55444         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
55445         Port to z/OS.  Problem reported by Paul Gilmartin.
55446         Change local vars to use gl_ prefix rather than ac_.
55447         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
55448         with other defines.
55449         * modules/double-slash-root: New module.
55450         * modules/dirname (Files): Remove m4/double-slash-root.m4.
55451         (Depends-on): Add double-slash-root.
55452         * MODULES.html.sh (File system functions): Mention new module.
55453
55454 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
55455
55456         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
55457         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
55458         This is for the benefit of gzip, which doesn't do i18n.
55459
55460 2006-12-12  Jim Meyering  <jim@meyering.net>
55461
55462         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
55463         Reported by Andreas Schwab <schwab@suse.de>.
55464
55465 2006-12-12  Bruno Haible  <bruno@clisp.org>
55466
55467         Merge these changes.
55468         2006-09-05  Bruno Haible  <bruno@clisp.org>
55469         * lib/iconvme.c (iconv_string): No need to save and restore errno when
55470         iconv_alloc succeeded.
55471         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
55472         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
55473         test for " && dest " at the end - dest is always != NULL there. Call
55474         iconv with 4xNULL arguments initially, to reset the state. Call iconv
55475         with 2xNULL arguments, also to flush the state storage. Handle the
55476         IRIX iconv behaviour. Realloc the final result, to throw away unused
55477         memory.
55478
55479 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
55480
55481         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
55482         and fchmodat unconditionally, since glibc 2.4 has them.
55483         Problem reported by Arkadiusz Miskiewicz.
55484
55485 2006-12-10  Bruno Haible  <bruno@clisp.org>
55486
55487         * gnulib-tool (func_import): Show the include files only for those
55488         modules that are copied and specified.
55489         Reported by Karl Berry.
55490
55491 2006-12-08  Jim Meyering  <jim@meyering.net>
55492
55493         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
55494         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
55495
55496         * build-aux/announce-gen: Add two new options, both optional:
55497         --bootstrap-tools=TOOL_LIST
55498               a comma-separated list of tools, e.g.,
55499               autoconf,automake,bison,gnulib
55500         --gnulib-snapshot-date=DATE
55501               if gnulib is in the bootstrap tool list,
55502               then report this as the snapshot date.
55503               If not specified, use the current date/time.
55504               If you specify a date here, be sure it's UTC.
55505
55506 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55507
55508         * tests/test-argp-2.sh: Fix test to match actual output.
55509         (func_compare): Fix sed script to be portable.
55510
55511 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
55512
55513         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
55514         workaround for this case.  It is not autoconfigured now; offhand
55515         it's hard to see how to autoconfigure it.
55516
55517 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55518
55519         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
55520         a directory that is about to be chowned.  Such a directory's
55521         initial file permissions should permit the owner only and this
55522         should not be changed until after the chown, since the group and
55523         other bits would be incorrect if they granted permission before
55524         the chown.
55525
55526         Fix porting problem for iswctype reported by Georg Schwarz in:
55527         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
55528         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
55529         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
55530         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
55531         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55532
55533 2006-12-03  Jim Meyering  <jim@meyering.net>
55534
55535         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
55536         p->fts_statp may not yet be defined.
55537         (fts_read): Instead, set it in the caller, once p->fts_statp is
55538         sure to be defined, and corresponds to a top-level directory.
55539         This bug made du -x fail.  Here's the coreutils test case:
55540         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
55541         Reported by Mike Frysinger.
55542
55543 2006-12-01  Jim Meyering  <jim@meyering.net>
55544
55545         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
55546         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
55547         Reported by Simon Josefsson.
55548
55549 2006-11-30  Jim Meyering  <jim@meyering.net>
55550
55551         * m4/warning.m4: Use the all-permissive copyright notice
55552         recommended by RMS (rather than LGPL).
55553         * m4/vararrays.m4: Likewise.
55554         * m4/flexmember.m4: Likewise.
55555
55556 2006-11-29  Bruno Haible  <bruno@clisp.org>
55557
55558         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55559         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
55560         using +=.
55561         Reported by Simon Josefsson <simon@josefsson.org>.
55562
55563 2006-11-28  James Youngman <jay@gnu.org>
55564
55565         * README: Advise users that they might find the bug-gnulib@gnu.org
55566         and autotools-announce@gnu.org mailing lists useful.
55567
55568 2006-11-28  Bruno Haible  <bruno@clisp.org>
55569
55570         * m4/ptrdiff_max.m4: Remove file.
55571
55572 2006-11-21  Bruno Haible  <bruno@clisp.org>
55573
55574         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
55575         _AC_COMPUTE_INT.
55576         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55577         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
55578         _AC_COMPUTE_INT.
55579         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55580         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
55581         _AC_COMPUTE_INT.
55582         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55583
55584 2006-11-28  Jim Meyering  <jim@meyering.net>
55585
55586         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
55587         warning from "gcc -Wshadow" about shadowing the builtin.
55588
55589 2006-11-27  Bruno Haible  <bruno@clisp.org>
55590
55591         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
55592         _AC_COMPUTE_INT.
55593         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55594
55595 2006-11-27  Bruno Haible  <bruno@clisp.org>
55596             Paul Eggert  <eggert@cs.ucla.edu>
55597
55598         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
55599
55600 2006-11-26  Bruno Haible  <bruno@clisp.org>
55601
55602         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55603         noinst_LTLIBRARIES.
55604
55605 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
55606             Bruno Haible  <bruno@clisp.org>
55607
55608         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
55609         if compiling with "gcc -ansi".
55610
55611 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
55612
55613         Fix some incompatibilities with gcc -ansi -pedantic.
55614         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
55615         if compiling pedantically with GCC, unless it's C99 or later.
55616         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
55617         it mishandles gcc -ansi -pedantic as well.
55618         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
55619         if gcc -pedantic.
55620         * lib/regexec.c (check_node_accept_bytes): Don't use auto
55621         initializers for struct if -pedantic, unless it's C99 or later.
55622
55623 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
55624
55625         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
55626         Don't close an fd more than once. Identical atimes indicate
55627         success, not failure.
55628
55629 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
55630
55631         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
55632
55633 2006-11-23  Jim Meyering  <jim@meyering.net>
55634
55635         * build-aux/announce-gen: New file.  From coreutils.
55636
55637 2006-11-22  Jim Meyering  <jim@meyering.net>
55638
55639         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
55640         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
55641         (fts_read): Use a temporary to narrow the overused st_size member
55642         before using it in a switch statement.  Reported by Matthew Woehlke.
55643
55644         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
55645         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
55646
55647 2006-11-20  Bruno Haible  <bruno@clisp.org>
55648
55649         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
55650         changequote instead of pairs of brackets.
55651         Reported by Andreas Schwab <schwab@suse.de>.
55652
55653 2006-11-21  Jim Meyering  <jim@meyering.net>
55654
55655         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
55656         so as to remain compatible with older compilers.
55657         Patch from Michael Deutschmann.
55658
55659 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55660
55661         * MODULES.html.sh (File system functions): Add openat.
55662
55663         * lib/openat.h (rpl_fstatat): New macro, if
55664         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
55665         (fstatat): Define to rpl_fstatat under the same conditions,
55666         unless COMPILING_FSTATAT.
55667         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
55668         seems to have the bug.
55669         * lib/fstatat.c: New file.
55670         * modules/openat (Files): Add it.
55671
55672 2006-11-20  Bruno Haible  <bruno@clisp.org>
55673
55674         * Makefile: New file.
55675
55676 2006-11-20  Jim Meyering  <jim@meyering.net>
55677
55678         The beginnings of syntax-related checks for gnulib.
55679         * lib/Makefile: New file.
55680         * lib/t-idcache: New script.  Ensure that the two halves of
55681         idcache.c stay in sync.
55682
55683         * lib/idcache.c: Adjust comments in user- and group- portions to
55684         be more accurate, and to be consistent with one another.
55685
55686 2006-11-20  Jim Meyering  <jim@meyering.net>
55687
55688         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
55689         continue using the flexible array member (thus, this module performs
55690         half as many malloc calls), with the addition that...
55691         (getgroup, getuser): Consistently record a non-match via an empty
55692         "name" string, and map an empty string match to a NULL return value.
55693         * modules/idcache (Depends-on): Re-add flexmember.
55694
55695         * lib/idcache.c (getuser): Remove all uses of the register keyword.
55696         (getuidbyname, getgroup, getgidbyname): Likewise.
55697
55698         Use cleaner syntax: NULL rather than 0.
55699         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
55700
55701 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55702
55703         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
55704         It mishandled the case where the group was missing.
55705         Problem reported by Greg Schafer.
55706         * modules/idcache: Likewise.
55707
55708 2006-11-18  Jim Meyering  <jim@meyering.net>
55709
55710         * check-module (%exempt_header): Add exception for some
55711         conditionally-included headers.
55712
55713         * modules/i-ring (Depends-on): Add verify.
55714         (License): Change to LGPL.
55715
55716 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55717
55718         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
55719         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
55720         and inttostr.h.  Use snprintf rather than uinttostr, so that
55721         LGPLed code doesn't depend on GPLed.
55722
55723 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55724
55725         * modules/inline (License): Change from GPL to LGPL.
55726
55727 2006-11-17  Jim Meyering  <jim@meyering.net>
55728
55729         * modules/d-type (License): Switch to LGPL.
55730
55731 2006-11-15  Bruno Haible  <bruno@clisp.org>
55732
55733         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
55734
55735 2006-11-15  Eric Blake  <ebb9@byu.net>
55736
55737         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
55738         the module dependency.
55739
55740 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55741             Bruno Haible  <bruno@clisp.org>
55742
55743         * gnulib-tool (func_create_testdir): Add license consistency check.
55744
55745 2006-11-15  Eric Blake  <ebb9@byu.net>
55746
55747         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
55748         random "(cached)" in configure output.
55749
55750 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55751
55752         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
55753         test for conforming inttypes.h is both announced and cached.
55754
55755         * MODULES.html.sh (seen_modules, seen_files): New variables.
55756         (func_module): Rewrite to use a few less gnulib-tool and sed
55757         invocations.  Avoid a couple of quadratic algorithms for ...
55758         (missed_modules, missed_files): ... these, with ...
55759         (func_append, func_tmpdir): ... these new functions, from
55760         gnulib-tool.  Analogously, install traps for cleanup.
55761
55762         * tests/test-gc.c (main): Remove unused variables.
55763         * tests/test-read-file.c: Include stdlib.h, for 'free'.
55764
55765 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
55766
55767         * modules/inttostr (License): Change to LGPL.
55768
55769 2006-11-14  Eric Blake  <ebb9@byu.net>
55770
55771         * modules/tempname (License): Change to LGPL.
55772
55773 2006-11-14  Eric Blake  <ebb9@byu.net>
55774
55775         * doc/functions.texi (Function Portability): *printf functions on
55776         Cygwin now understand all POSIX size specifiers.
55777
55778 2006-11-14  Bruno Haible  <bruno@clisp.org>
55779
55780         * modules/c-ctype (License): Change to LGPL.
55781
55782 2006-11-12  Bruno Haible  <bruno@clisp.org>
55783
55784         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55785         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
55786         for GNOME libraries, for which the include files are installed in
55787         subdirectories of $prefix/include.
55788
55789 2006-11-12  Bruno Haible  <bruno@clisp.org>
55790
55791         * m4/lib-link.m4: Require at least autoconf-2.54.
55792         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
55793         name to underscores for the --with option.
55794
55795 2006-11-13  Bruno Haible  <bruno@clisp.org>
55796
55797         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
55798         the tests directory.
55799         Reported by Ralf Wildenhues.
55800
55801 2006-11-13  Bruno Haible  <bruno@clisp.org>
55802
55803         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
55804         (func_emit_initmacro_end): Undo the override here.
55805         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
55806         Works around the famous automake error in coreutils.
55807
55808 2006-11-13  Eric Blake  <ebb9@byu.net>
55809
55810         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
55811         element, not its node.
55812
55813 2006-11-12  Bruno Haible  <bruno@clisp.org>
55814
55815         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
55816         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
55817
55818 2006-11-12  Bruno Haible  <bruno@clisp.org>
55819
55820         * gnulib-tool: New option --local-symlink.
55821         (func_usage): Document it.
55822         (lsymbolic): New variable.
55823         (func_import, func_create_testdir): If --symlink was not specified,
55824         test whether --local-symlink was specified and the file comes from
55825         the local_gnulib_dir.
55826
55827 2006-11-12  Bruno Haible  <bruno@clisp.org>
55828
55829         * gnulib-tool (func_ln): New function.
55830         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
55831
55832 2006-11-12  Bruno Haible  <bruno@clisp.org>
55833
55834         Finish support for source files in subdirectories.
55835         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
55836         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
55837         AUTOMAKE_OPTIONS.
55838         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
55839
55840 2006-11-12  Bruno Haible  <bruno@clisp.org>
55841
55842         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55843         EXTRA_lib_SOURCES augmentation.
55844         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
55845
55846 2006-11-12  Jim Meyering  <jim@meyering.net>
55847
55848         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
55849         file descriptors.  This also averts a failure on systems with
55850         native openat support when a traversed directory lacks "x" access.
55851         * lib/fts_.h: Include "i-ring.h"
55852         (struct FTS) [fts_fd_ring]: New member.
55853         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
55854         (FCHDIR): Add parentheses.
55855         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
55856         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
55857         When descending, rather than simply closing the previous
55858         fts_cwd_fd value, push that file descriptor onto the ring.
55859         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
55860         (fts_open): Initialize the new fd_ring member.
55861         (fts_close): Clear the ring.
55862         (fts_safe_changedir): When possible, use our new fd_ring to skip
55863         the diropen and fstat and dev/ino comparison that would normally
55864         accompany a virtual `chdir ("..")'.
55865
55866         * modules/fts (Depends-on): Add i-ring.
55867         * modules/i-ring: New module.
55868         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
55869         * m4/i-ring.m4: New file.
55870
55871 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55872
55873         * gnulib-tool (func_create_testdir): Fix replacement of
55874         `build-aux' in configure.ac.  Run autotools in gltests
55875         subdirectory.
55876         (func_create_testdir, func_create_megatestdir, test): There is
55877         no need for '--force' in most autotool invocations in a new
55878         tree.  Actually fail the whole test if any of the tools, or the
55879         configure or make stages fail.
55880
55881         Sync from Automake.
55882         * build-aux/gnupload: Revert last change.  Add pointer to upload
55883         instructions of the GNU Maintenance Instructions.
55884         Suggestion by Karl Berry.
55885
55886 2006-11-10  Jim Meyering  <jim@meyering.net>
55887
55888         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
55889
55890 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55891
55892         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
55893         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
55894         (bind_textdomain_codeset) [! ENABLE_NLS]:
55895         Evaluate all the arguments.  That way, callers get compatible behavior
55896         if the arguments have side effects.  Also, it avoids some GCC
55897         diagnostics in some cases; Joel E. Denny reported problems when Bison
55898         was configured with --enable-gcc-warnigs.
55899
55900 2006-11-10  Jim Meyering  <jim@meyering.net>
55901
55902         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
55903         relevant options in CFLAGS (like -O, -fno-inline) are taken into
55904         account.
55905
55906 2006-11-10  Jim Meyering  <jim@meyering.net>
55907
55908         * modules/inline: New file/module.
55909         * modules/xalloc (Files): Remove m4/inline.m4.
55910         (Depends-on): Add inline, instead.
55911         * modules/oset: Likewise.
55912         * modules/list: Likewise.
55913
55914 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55915
55916         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
55917         Problem reported by Matthew Woehlke.
55918
55919 2006-11-09  Bruno Haible  <bruno@clisp.org>
55920
55921         * lib/tempname.c (gen_tempname): Remove variant that invokes
55922         __gen_tempname.
55923         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
55924         __gen_tempname.
55925
55926 2006-11-08  Bruno Haible  <bruno@clisp.org>
55927
55928         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
55929         to 'yes' instead of 'cross-compiling'.
55930
55931 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
55932
55933         * lib/quotearg.h (quotearg_free): New decl.
55934         * lib/quotearg.c (quotearg_free): New function.
55935         (slot0, nslots, slotvec0, slotvec):
55936         Now file-scope so that quotearg_free can get at them.
55937
55938 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55939
55940         Sync from Automake.
55941         * build-aux/gnupload: Add missing 'gnu' to example URL.
55942         Report by Karl Berry.
55943
55944 2006-11-08  Bruno Haible  <bruno@clisp.org>
55945
55946         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
55947         Suggested by Paul Eggert.
55948
55949 2006-11-08  Jim Meyering  <jim@meyering.net>
55950
55951         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
55952         It's already included if !_LIBC.
55953         (fts_safe_changedir): Add a comment.
55954
55955 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55956
55957         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
55958         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
55959         Matthew Woehlke.
55960
55961         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
55962         definitions up, to avoid colliding with change below.
55963         (static_inline) [HAVE_INLINE]: New macro.
55964         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
55965         Provide extern decls when !HAVE_INLINE.  Do not define unless
55966         static_inline is defined, either by us or by xmalloc.c.  Use
55967         static_inline rather than static inline.
55968         (XCALLOC): Optimize sizeof(T) = 1 case.
55969         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
55970
55971 2006-11-07  Bruno Haible  <bruno@clisp.org>
55972
55973         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
55974         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
55975         AC_C_INLINE.
55976         * modules/xalloc (Files): Add m4/inline.m4.
55977
55978 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55979
55980         * README: Fix typo.
55981         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
55982         (Miscellanous Notes): ...from this.
55983
55984 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55985
55986         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
55987         Mention that offsetof should be used instead of sizeof.
55988         From Bruno Haible.
55989
55990 2006-11-07  Bruno Haible  <bruno@clisp.org>
55991
55992         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
55993
55994 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55995
55996         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55997         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
55998         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55999         (gl_tree_add_before, gl_tree_add_after):
56000         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
56001         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
56002         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56003         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
56004         (gl_linked_add_after, gl_linked_add_at): Likewise.
56005         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
56006         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56007         (gl_tree_add_before, gl_tree_add_after): Likewise.
56008         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
56009         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
56010         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
56011
56012 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56013
56014         * lib/gl_oset.h: Use C comment style, not C++ comment style.
56015
56016 2006-11-06  Bruno Haible  <bruno@clisp.org>
56017
56018         * m4/inline.m4: New file.
56019         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
56020         * modules/list (Files): Add m4/inline.m4.
56021         * modules/oset (Files): Likewise.
56022
56023 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56024
56025         * lib/idcache.c: Include <stddef.h>, for offsetof.
56026         (struct userid.name): Change from char * to a flexible array member.
56027         All uses changed.
56028         * modules/idcache (Depends-on): Add flexmember.
56029
56030         * MODULES.html.sh (Core language properties): New module flexmember.
56031         * modules/flexmember, m4/flexmember.m4: New files.
56032
56033         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
56034         inline functions that are identical with the old xnmalloc_inline,
56035         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
56036         that we can avoid some unnecessary integer multiplications and
56037         divisions in the common case where the element size is known at
56038         compile time.
56039         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
56040         needed.
56041         (xnboundedmalloc): Remove.
56042         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
56043         arguments, for consistency with rest of this header.
56044         (xcharalloc): Rewrite using XNMALLOC.
56045         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
56046         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
56047         versions have been moved to lib/xalloc.h and renamed to be the
56048         non-*_inline versions.
56049         (xmalloc, xrealloc): Implement without reference to the xnmalloc
56050         and xnrealloc functions, since those functions are now inline and
56051         now call us.
56052         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
56053         renaming described above.
56054         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
56055         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
56056         captures the dependency in AC_C_INLINE.
56057
56058         New module canonicalize-lgpl, proposed by Charles Wilson in
56059         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
56060         with a few small changes afterwards.
56061         * MODULES.html.sh (File system functions): New module
56062         canonicalize-lgpl.
56063         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
56064         and canonicalize_file_name.
56065         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
56066         * modules/canonicalize-lgpl: New files.
56067
56068 2006-11-05  Bruno Haible  <bruno@clisp.org>
56069
56070         * gnulib-tool (func_import, func_create_testdir): Create directories
56071         also for files in subdirectories of lib/.
56072
56073 2006-11-05  Bruno Haible  <bruno@clisp.org>
56074
56075         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
56076         ANSI C compliant.
56077
56078 2006-11-03  Bruno Haible  <bruno@clisp.org>
56079
56080         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56081         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
56082         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
56083         (xnboundedmalloc): New inline function.
56084         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
56085         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
56086         xmalloc.
56087         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
56088         xmalloc.
56089         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
56090         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
56091         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
56092         xmalloc.
56093         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56094         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
56095         xmalloc.
56096         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
56097         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56098         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
56099         xmalloc.
56100         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56101         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
56102         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56103         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
56104         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
56105         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
56106         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
56107
56108 2006-11-03  Bruno Haible  <bruno@clisp.org>
56109
56110         * lib/c-ctype.h [C++]: Define functions without name mangling.
56111         * lib/fwriteerror.h [C++]: Likewise.
56112         * lib/gcd.h [C++]: Likewise.
56113         * lib/linebreak.h [C++]: Likewise.
56114
56115 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
56116
56117         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
56118         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
56119         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
56120         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56121         Check for functions and headers just once.
56122         Check for declaration of canonicalize_file_name.
56123         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
56124
56125 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56126
56127         * gnulib-tool (func_import): Fix typo in actioncmd.
56128
56129 2006-11-02  Bruno Haible  <bruno@clisp.org>
56130
56131         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
56132         newline sequence in the Makefile.am snippet as a space, like "make"
56133         does.
56134         Reported by Roger Persson <perrog@gmail.com>.
56135
56136 2006-11-01  Bruno Haible  <bruno@clisp.org>
56137
56138         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
56139         already declared in <string.h>.
56140         * lib/strcase.h (strncasecmp): Don't declare it if yes.
56141
56142 2006-11-01  Bruno Haible  <bruno@clisp.org>
56143
56144         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
56145         * lib/strcase.h: Include <string.h>.
56146         (strcasecmp): Define to rpl_strcasecmp here.
56147
56148 2006-11-01  Bruno Haible  <bruno@clisp.org>
56149
56150         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
56151
56152 2006-11-01  Eric Blake  <ebb9@byu.net>
56153
56154         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
56155
56156         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
56157
56158 2006-10-29  Bruno Haible  <bruno@clisp.org>
56159
56160         Make it compile in C++ mode.
56161         * lib/full-write.c (full_rw): Add a cast.
56162
56163 2006-11-01  Bruno Haible  <bruno@clisp.org>
56164
56165         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
56166         be POSIX compliant.
56167         Reported by Roger Persson <perrog@gmail.com>.
56168
56169 2006-11-01  Eric Blake  <ebb9@byu.net>
56170
56171         * lib/getopt_.h: Fix comments.
56172
56173 2006-10-31  Eric Blake  <ebb9@byu.net>
56174
56175         * modules/tmpdir (Depends-on): Add sys_stat.
56176         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
56177         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
56178         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
56179         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
56180         tempname.
56181
56182 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
56183
56184         Avoid some C++ diagnostics reported by Bruno Haible.
56185         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
56186         xmalloc.
56187         (quotearg_alloc): Use xcharalloc rather than xmalloc.
56188         (struct slotvec): Move to top level.
56189         (quotearg_n_options): Rewrite to avoid xmalloc.
56190         * lib/xalloc.h (xcharalloc): New function.
56191         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
56192         [defined __cplusplus]: Add function template that provides result
56193         type propagation.  This part of the change is from Bruno Haible.
56194
56195 2006-10-29  Bruno Haible  <bruno@clisp.org>
56196
56197         Make it compile in C++ mode.
56198         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
56199         * lib/strnlen1.c (strnlen1): Cast memchr result.
56200         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
56201         * lib/clean-temp.c (string_equals, string_hash): Add casts.
56202         (create_temp_dir): Rename local variable 'template'.
56203         (compile_csharp_using_sscli): Add cast.
56204         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
56205         * lib/findprog.c (find_in_path): Likewise.
56206         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
56207         * lib/wait-process.c (register_slave_subprocess): Likewise.
56208
56209 2006-10-22  Bruno Haible  <bruno@clisp.org>
56210
56211         * modules/tsearch: New file.
56212         * lib/tsearch.h: New file.
56213         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
56214         * m4/tsearch.m4: New file.
56215         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
56216
56217 2006-10-29  Eric Blake  <ebb9@byu.net>
56218
56219         * lib/arcfour.c: Assume config.h.
56220         * lib/arctwo.c: Likewise.
56221         * lib/base64.c: Likewise.
56222         * lib/check-version.c: Likewise.
56223         * lib/crc.c: Likewise.
56224         * lib/des.c: Likewise.
56225         * lib/gc-gnulib.c: Likewise.
56226         * lib/gc-libgcrypt.c: Likewise.
56227         * lib/gc-pbkdf2-sha1.c: Likewise.
56228         * lib/getaddrinfo.c: Likewise.
56229         * lib/getdelim.c: Likewise.
56230         * lib/getline.c: Likewise.
56231         * lib/hmac-md5.c: Likewise.
56232         * lib/hmac-sha1.c: Likewise.
56233         * lib/iconvme.c: Likewise.
56234         * lib/md2.c: Likewise.
56235         * lib/md4.c: Likewise.
56236         * lib/memxor.c: Likewise.
56237         * lib/read-file.c: Likewise.
56238         * lib/readline.c: Likewise.
56239         * lib/rijndael-alg-fst.c: Likewise.
56240         * lib/rijndael-api-fst.c: Likewise.
56241         * lib/xgetdomainname.c: Likewise.
56242
56243 2006-10-28  Eric Blake  <ebb9@byu.net>
56244
56245         * lib/xstrndup.c: Assume config.h.
56246
56247 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56248
56249         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
56250         stat-macros.h is now for our own macros, whereas stat_h is for
56251         macros in the <sys/stat.h> name space.
56252         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
56253         (STAT_MACROS_H): Remove.
56254         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
56255         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
56256         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
56257         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
56258         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
56259         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
56260         Move these macros to ...
56261         * lib/stat_.h: here.  Don't include stat-macros.h.
56262         * lib/canonicalize.c: Don't include stat-macros.h.
56263         * lib/chown.c: Likewise.
56264         * lib/euidaccess.c: Likewise.
56265         * lib/file-type.c: Likewise.
56266         * lib/filemode.c: Likewise.
56267         * lib/glob.c: Likewise.
56268         * lib/isapipe.c: Likewise.
56269         * lib/lchown.c: Likewise.
56270         * lib/lstat.c: Likewise.
56271         * lib/mkdir-p.c: Likewise.
56272         * lib/rmdir.c: Likewise.
56273         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
56274         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
56275         unless mkdir isn't declared, to speed up 'configure'.
56276         Always create sys/stat.h, since it's unlikely any real sys/stat.h
56277         would define all the S_* symbols.
56278         * modules/canonicalize (Depends-on):
56279         Depend on sys_stat, not stat-macros.
56280         * modules/chown: Likewise.
56281         * modules/euidaccess: Likewise.
56282         * modules/filemode: Likewise.
56283         * modules/file-type: Likewise.
56284         * modules/glob: Likewise.
56285         * modules/isapipe: Likewise.
56286         * modules/lchown: Likewise.
56287         * modules/lstat: Likewise.
56288         * modules/mkancesdirs: Likewise.
56289         * modules/rmdir: Likewise.
56290         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
56291         * modules/modechange: Likewise.
56292         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
56293         (configure.ac): Remove gl_STAT_MACROS.
56294         * modules/sys_stat (Depends-on): Remove stat-macros.
56295
56296 2006-10-27  Bruno Haible  <bruno@clisp.org>
56297
56298         * m4/signed.m4: Remove file.
56299         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
56300         invocation.
56301         * modules/vasnprintf (Files): Remove m4/signed.m4.
56302
56303 2006-10-27  Bruno Haible  <bruno@clisp.org>
56304
56305         Update to GNU gettext 0.16.
56306         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
56307         m4/inttypes-h.m4, m4/signed.m4.
56308         * m4/gettext.m4: Update to GNU gettext 0.16.
56309         * m4/intl.m4: New file, from GNU gettext.
56310         * m4/intldir.m4: New file, from GNU gettext.
56311         * config/srclist.txt: Update
56312
56313 2006-10-27  Eric Blake  <ebb9@byu.net>
56314
56315         * MODULES.html.sh: Document tempname.
56316         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
56317         dependencies.
56318         (Files): Move lib/tempname.c...
56319         * modules/tempname: ...to this new module.
56320         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
56321         (gl_PREREQ_TEMPNAME): Move...
56322         * m4/tempname.m4: ...to this new file.
56323         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
56324         * modules/sys_stat (Depends-on): Add stat-macros.
56325         * lib/stat_.h (includes): Pick up stat macros.
56326         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
56327         if stat macros are broken.
56328         * lib/tempname.c (includes): No need to include "stat-macros.h".
56329         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
56330         (direxists, __path_search) [!_LIBC]: Don't compile these in
56331         gnulib; the tmpdir module covers that.
56332         * lib/tempname.h: New file.
56333
56334 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
56335
56336         * COPYING: Explain how gnulib-tool converts licence headers.
56337         Almost all wording by Eric Blake.
56338
56339 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
56340
56341         * lib/mbchar.h (is_basic_table): Make read-only.
56342         * lib/mbchar.c (is_basic_table): Likewise.
56343         Reported by John Darrington.
56344
56345 2006-10-25  Bruno Haible  <bruno@clisp.org>
56346
56347         * lib/progname.h (set_program_name): Undefine before defining.
56348
56349 2006-10-25  Bruno Haible  <bruno@clisp.org>
56350
56351         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
56352         false for non-gcc C++ compilers.
56353         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56354
56355 2006-10-24  Bruno Haible  <bruno@clisp.org>
56356
56357         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
56358         iconv implementations like Irix iconv.
56359
56360 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56361
56362         * modules/vararrays: New file.
56363         * m4/vararrays.m4: New file, taken from diffutils.
56364         * MODULES.html.sh: New module vararrays.
56365
56366 2006-10-24  Karl Berry  <karl@gnu.org>
56367
56368         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
56369         Don't call GNU Unix.
56370
56371 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56372
56373         * users.txt: Add Libtool.
56374
56375         Sync from Libtool:
56376
56377         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56378
56379         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
56380         to gnulib's policy of including config.h unconditionally.
56381
56382 2006-10-24  Bruno Haible  <bruno@clisp.org>
56383
56384         * modules/wcwidth (Files): Add m4/wint_t.m4.
56385         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
56386         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
56387
56388 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56389
56390         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
56391         to pacify GCC with some -W flags enabled.  Problem reported by
56392         Bruno Haible.
56393
56394 2006-10-24  Jim Meyering  <jim@meyering.net>
56395
56396         * MODULES.html.sh: Remove uinttostr.  It's not a module.
56397         Reported by Karl Berry.
56398
56399 2006-10-23  Bruno Haible  <bruno@clisp.org>
56400
56401         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
56402
56403 2006-10-24  Bruno Haible  <bruno@clisp.org>
56404
56405         * lib/gl_list.h: Use C comment style, not C++ comment style.
56406
56407 2006-10-23  Eric Blake  <ebb9@byu.net>
56408
56409         * lib/getaddrinfo.c (includes): Add missing include.
56410
56411 2006-10-23  Bruno Haible  <bruno@clisp.org>
56412             Paul Eggert  <eggert@cs.ucla.edu>
56413
56414         Ability to rename obstack_free.
56415         * lib/obstack.h (__obstack_free): New macro. Declare instead of
56416         obstack_free.
56417         (obstack_free): Invoke the __obstack_free macro.
56418         * lib/obstack.c (obstack_free): Use __obstack_free macro.
56419
56420 2006-10-23  Bruno Haible  <bruno@clisp.org>
56421             Paul Eggert  <eggert@cs.ucla.edu>
56422
56423         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
56424         __argc, __argv from the declaration. (They are defined as macros on
56425         mingw.)
56426
56427 2006-10-22  Bruno Haible  <bruno@clisp.org>
56428
56429         * doc/gnulib-intro.texi: New file.
56430         * doc/gnulib.texi: Include it.
56431
56432 2006-10-21  Bruno Haible  <bruno@clisp.org>
56433
56434         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
56435         "Introduction", "Miscellanous Notes", "Particular Modules".
56436
56437 2006-10-21  Bruno Haible  <bruno@clisp.org>
56438
56439         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56440         Change mostlyclean-local rule to avoid sh syntax error from bash
56441         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
56442
56443 2006-10-23  Jim Meyering  <jim@meyering.net>
56444
56445         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
56446         in place of snprintf.
56447
56448         * modules/inttostr (Files): Add lib/uinttostr.c.
56449         * lib/uinttostr.c (inttostr): New file/function.
56450         * lib/inttostr.h (uinttostr): Declare.
56451         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
56452         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
56453         Add uinttostr.
56454         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
56455
56456 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56457
56458         * lib/canonicalize.c (ELOOP): Define if not already defined.
56459         Problem reported by Bruno Haible in
56460         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
56461
56462 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56463
56464         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
56465         Problem reported by Perry Smith and Ville Laurikari.
56466
56467         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
56468         uses.
56469
56470 2006-10-19  Bruno Haible  <bruno@clisp.org>
56471
56472         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
56473         for mingw.
56474
56475 2006-10-19  Bruno Haible  <bruno@clisp.org>
56476
56477         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
56478         Needed for mingw.
56479
56480 2006-10-19  Bruno Haible  <bruno@clisp.org>
56481
56482         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
56483
56484 2006-10-19  Bruno Haible  <bruno@clisp.org>
56485
56486         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
56487         it.
56488
56489 2006-10-19  Bruno Haible  <bruno@clisp.org>
56490
56491         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
56492         invocation.
56493
56494 2006-10-19  Bruno Haible  <bruno@clisp.org>
56495
56496         * gnulib-tool (func_create_testdir): Don't include ftruncate and
56497         mountlist by default.
56498
56499 2006-10-16  Bruno Haible  <bruno@clisp.org>
56500
56501         * lib/c-strstr.c: Include c-strstr.h.
56502
56503 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56504
56505         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
56506         in a slash.
56507
56508 2006-10-18  Bruno Haible  <bruno@clisp.org>
56509
56510         * lib/lock.h [C++]: Wrap definitions in extern "C".
56511
56512 2006-10-18  Bruno Haible  <bruno@clisp.org>
56513
56514         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
56515         gl_LIBOBJS list.
56516
56517 2006-10-18  Bruno Haible  <bruno@clisp.org>
56518
56519         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
56520
56521 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
56522
56523         * lib/xstrtol.h: Include gettext.h.
56524         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
56525         Problem reported by Eric Blake.
56526         * modules/xstrtol (Depends-on): Add gettext-h.
56527
56528 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
56529
56530         * lib/strftime.c (advance): New macro.
56531         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
56532         incomplete type, so you can't add 0 to it.  Problem and patch
56533         reported by Eelco Dolstra for dietlibc.
56534
56535 2006-10-18  Jim Meyering  <jim@meyering.net>
56536
56537         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
56538         type for a local, and rename it: s/up/user_proc/.
56539
56540 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56541
56542         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
56543         READ_UTMP_USER_PROCESS.
56544         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
56545
56546 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56547
56548         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
56549         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
56550
56551 2006-10-17  Eric Blake  <ebb9@byu.net>
56552
56553         * lib/sigprocmask.c (sigprocmask): Fix typo.
56554
56555         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
56556
56557         * modules/clean-temp (Makefile.am): Don't add to make output...
56558         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
56559         config.h.
56560
56561 2006-10-17  Bruno Haible  <bruno@clisp.org>
56562
56563         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
56564         differently if DEFAULT_TEXT_DOMAIN is set.
56565
56566 2006-10-16  Bruno Haible  <bruno@clisp.org>
56567
56568         * lib/clean-temp.c: Include fwriteerror.h.
56569
56570 2006-10-16  Bruno Haible  <bruno@clisp.org>
56571
56572         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
56573
56574 2006-10-16  Bruno Haible  <bruno@clisp.org>
56575
56576         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
56577         * lib/sigprocmask.h: Include <sys/types.h>.
56578         (sigset_t): Use the system's definition if present.
56579
56580 2006-10-17  Eric Blake  <ebb9@byu.net>
56581
56582         * lib/xvasprintf.c (includes): Assume config.h.
56583         * lib/xasprintf.c (includes): Likewise.
56584
56585 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56586
56587         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
56588         at least as wide as intmax_t.
56589
56590 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
56591
56592         (Imported from Automake.)
56593         * build-aux/gnupload: Update to version 1.1 of directive file.
56594
56595 2006-10-16  Eric Blake  <ebb9@byu.net>
56596
56597         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
56598         match Automake 1.10a.
56599
56600 2006-10-14  Bruno Haible  <bruno@clisp.org>
56601
56602         * modules/sigprocmask: New file.
56603         * lib/sigprocmask.h: New file.
56604         * lib/sigprocmask.c: New file.
56605         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
56606         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
56607         request sigprocmask.o.
56608         (gl_PREREQ_SIGPROCMASK): New macro.
56609         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
56610         (Depends-on): Add sigprocmask.
56611         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
56612         gt_SIGNALBLOCKING. Test for 'raise' only once.
56613         * lib/fatal-signal.c: Include sigprocmask.h.
56614         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
56615         unblock_fatal_signals): Define always.
56616         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56617         sigprocmask.
56618
56619 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56620
56621         Sync from Automake.
56622         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
56623         which incorrectly sets the mode of an existing destination
56624         directory.  In some cases the unpatched install-sh could do the
56625         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
56626         system.  We hope this is rare in practice, but it's clearly worth
56627         fixing.  Problem reported by Alex Unleashed in
56628         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
56629         Also, don't bother to check for -m bugs unless we're using -m;
56630         suggested by Stepan Kasal.
56631
56632 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56633
56634         Sync from Automake.
56635         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
56636         `-c' flag, so they appear at the same position as in %FASTDEP%
56637         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
56638         which ignores unknown options only after the first non-option.
56639         Bug report against M4 by Nelson H. F. Beebe.
56640
56641 2006-10-13  Jim Meyering  <jim@meyering.net>
56642
56643         Fix a bug in yesterday's change.
56644         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
56645         p->fts_statp->st_dev would be used uninitialized.
56646         Ensures that we always call fts_stat on the very first entry.
56647         Miklos Szeredi reported that find -xdev stopped working.
56648
56649 2006-10-12  Bruno Haible  <bruno@clisp.org>
56650
56651         * gnulib-tool (func_get_automake_snippet): Append an automatically
56652         computed EXTRA_DIST augmentation.
56653         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
56654         * modules/alloca-opt (Makefile.am): Likewise.
56655         * modules/allocsa (Makefile.am): Likewise.
56656         * modules/arcfour (Makefile.am): Likewise.
56657         * modules/arctwo (Makefile.am): Likewise.
56658         * modules/argmatch (Makefile.am): Likewise.
56659         * modules/argz (Makefile.am): Likewise.
56660         * modules/atexit (Makefile.am): Likewise.
56661         * modules/backupfile (Makefile.am): Likewise.
56662         * modules/byteswap (Makefile.am): Likewise.
56663         * modules/c-strtod (Makefile.am): Likewise.
56664         * modules/c-strtold (Makefile.am): Likewise.
56665         * modules/calloc (Makefile.am): Likewise.
56666         * modules/canon-host (Makefile.am): Likewise.
56667         * modules/canonicalize (Makefile.am): Likewise.
56668         * modules/chdir-long (Makefile.am): Likewise.
56669         * modules/chdir-safer (Makefile.am): Likewise.
56670         * modules/check-version (Makefile.am): Likewise.
56671         * modules/chown (Makefile.am): Likewise.
56672         * modules/cloexec (Makefile.am): Likewise.
56673         * modules/close-stream (Makefile.am): Likewise.
56674         * modules/closeout (Makefile.am): Likewise.
56675         * modules/crc (Makefile.am): Likewise.
56676         * modules/csharpexec (Makefile.am): Likewise.
56677         * modules/cycle-check (Makefile.am): Likewise.
56678         * modules/des (Makefile.am): Likewise.
56679         * modules/dev-ino (Makefile.am): Likewise.
56680         * modules/dirfd (Makefile.am): Likewise.
56681         * modules/dirname (Makefile.am): Likewise.
56682         * modules/dup2 (Makefile.am): Likewise.
56683         * modules/eealloc (Makefile.am): Likewise.
56684         * modules/error (Makefile.am): Likewise.
56685         * modules/euidaccess (Makefile.am): Likewise.
56686         * modules/exclude (Makefile.am): Likewise.
56687         * modules/exitfail (Makefile.am): Likewise.
56688         * modules/fcntl-safer (Makefile.am): Likewise.
56689         * modules/fcntl (Makefile.am): Likewise.
56690         * modules/file-type (Makefile.am): Likewise.
56691         * modules/fileblocks (Makefile.am): Likewise.
56692         * modules/filemode (Makefile.am): Likewise.
56693         * modules/filenamecat (Makefile.am): Likewise.
56694         * modules/fnmatch (Makefile.am): Likewise.
56695         * modules/fopen-safer (Makefile.am): Likewise.
56696         * modules/fpending (Makefile.am): Likewise.
56697         * modules/fprintftime (Makefile.am): Likewise.
56698         * modules/free (Makefile.am): Likewise.
56699         * modules/fsusage (Makefile.am): Likewise.
56700         * modules/ftruncate (Makefile.am): Likewise.
56701         * modules/fts (Makefile.am): Likewise.
56702         * modules/gc-arcfour (Makefile.am): Likewise.
56703         * modules/gc-des (Makefile.am): Likewise.
56704         * modules/gc-hmac-md5 (Makefile.am): Likewise.
56705         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
56706         * modules/gc-md4 (Makefile.am): Likewise.
56707         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56708         * modules/gc-sha1 (Makefile.am): Likewise.
56709         * modules/gc (Makefile.am): Likewise.
56710         * modules/getaddrinfo (Makefile.am): Likewise.
56711         * modules/getcwd (Makefile.am): Likewise.
56712         * modules/getdelim (Makefile.am): Likewise.
56713         * modules/getdomainname (Makefile.am): Likewise.
56714         * modules/getgroups (Makefile.am): Likewise.
56715         * modules/gethostname (Makefile.am): Likewise.
56716         * modules/gethrxtime (Makefile.am): Likewise.
56717         * modules/getline (Makefile.am): Likewise.
56718         * modules/getloadavg (Makefile.am): Likewise.
56719         * modules/getlogin_r (Makefile.am): Likewise.
56720         * modules/getndelim2 (Makefile.am): Likewise.
56721         * modules/getopt (Makefile.am): Likewise.
56722         * modules/getpagesize (Makefile.am): Likewise.
56723         * modules/getpass-gnu (Makefile.am): Likewise.
56724         * modules/getpass (Makefile.am): Likewise.
56725         * modules/getsubopt (Makefile.am): Likewise.
56726         * modules/gettime (Makefile.am): Likewise.
56727         * modules/gettimeofday (Makefile.am): Likewise.
56728         * modules/getugroups (Makefile.am): Likewise.
56729         * modules/getusershell (Makefile.am): Likewise.
56730         * modules/glob (Makefile.am): Likewise.
56731         * modules/group-member (Makefile.am): Likewise.
56732         * modules/hard-locale (Makefile.am): Likewise.
56733         * modules/hash (Makefile.am): Likewise.
56734         * modules/hmac-md5 (Makefile.am): Likewise.
56735         * modules/hmac-sha1 (Makefile.am): Likewise.
56736         * modules/human (Makefile.am): Likewise.
56737         * modules/idcache (Makefile.am): Likewise.
56738         * modules/imaxabs (Makefile.am): Likewise.
56739         * modules/imaxdiv (Makefile.am): Likewise.
56740         * modules/inet_ntop (Makefile.am): Likewise.
56741         * modules/inet_pton (Makefile.am): Likewise.
56742         * modules/intprops (Makefile.am): Likewise.
56743         * modules/inttostr (Makefile.am): Likewise.
56744         * modules/inttypes (Makefile.am): Likewise.
56745         * modules/isapipe (Makefile.am): Likewise.
56746         * modules/javaversion (Makefile.am): Likewise.
56747         * modules/lchmod (Makefile.am): Likewise.
56748         * modules/lchown (Makefile.am): Likewise.
56749         * modules/localcharset (Makefile.am): Likewise.
56750         * modules/long-options (Makefile.am): Likewise.
56751         * modules/lstat (Makefile.am): Likewise.
56752         * modules/malloc (Makefile.am): Likewise.
56753         * modules/mathl (Makefile.am): Likewise.
56754         * modules/mbchar (Makefile.am): Likewise.
56755         * modules/md2 (Makefile.am): Likewise.
56756         * modules/md4 (Makefile.am): Likewise.
56757         * modules/md5 (Makefile.am): Likewise.
56758         * modules/memcasecmp (Makefile.am): Likewise.
56759         * modules/memchr (Makefile.am): Likewise.
56760         * modules/memcmp (Makefile.am): Likewise.
56761         * modules/memcoll (Makefile.am): Likewise.
56762         * modules/memcpy (Makefile.am): Likewise.
56763         * modules/memmem (Makefile.am): Likewise.
56764         * modules/memmove (Makefile.am): Likewise.
56765         * modules/mempcpy (Makefile.am): Likewise.
56766         * modules/memrchr (Makefile.am): Likewise.
56767         * modules/memset (Makefile.am): Likewise.
56768         * modules/memxor (Makefile.am): Likewise.
56769         * modules/mkancesdirs (Makefile.am): Likewise.
56770         * modules/mkdir-p (Makefile.am): Likewise.
56771         * modules/mkdir (Makefile.am): Likewise.
56772         * modules/mkdtemp (Makefile.am): Likewise.
56773         * modules/mkstemp (Makefile.am): Likewise.
56774         * modules/mktime (Makefile.am): Likewise.
56775         * modules/modechange (Makefile.am): Likewise.
56776         * modules/mountlist (Makefile.am): Likewise.
56777         * modules/nanosleep (Makefile.am): Likewise.
56778         * modules/obstack (Makefile.am): Likewise.
56779         * modules/openat (Makefile.am): Likewise.
56780         * modules/pagealign_alloc (Makefile.am): Likewise.
56781         * modules/pathmax (Makefile.am): Likewise.
56782         * modules/physmem (Makefile.am): Likewise.
56783         * modules/poll (Makefile.am): Likewise.
56784         * modules/posixtm (Makefile.am): Likewise.
56785         * modules/posixver (Makefile.am): Likewise.
56786         * modules/putenv (Makefile.am): Likewise.
56787         * modules/quote (Makefile.am): Likewise.
56788         * modules/quotearg (Makefile.am): Likewise.
56789         * modules/raise (Makefile.am): Likewise.
56790         * modules/read-file (Makefile.am): Likewise.
56791         * modules/readline (Makefile.am): Likewise.
56792         * modules/readlink (Makefile.am): Likewise.
56793         * modules/readtokens (Makefile.am): Likewise.
56794         * modules/readutmp (Makefile.am): Likewise.
56795         * modules/realloc (Makefile.am): Likewise.
56796         * modules/regex (Makefile.am): Likewise.
56797         * modules/rename-dest-slash (Makefile.am): Likewise.
56798         * modules/rename (Makefile.am): Likewise.
56799         * modules/rijndael (Makefile.am): Likewise.
56800         * modules/rmdir (Makefile.am): Likewise.
56801         * modules/rpmatch (Makefile.am): Likewise.
56802         * modules/safe-read (Makefile.am): Likewise.
56803         * modules/safe-write (Makefile.am): Likewise.
56804         * modules/same-inode (Makefile.am): Likewise.
56805         * modules/same (Makefile.am): Likewise.
56806         * modules/save-cwd (Makefile.am): Likewise.
56807         * modules/savedir (Makefile.am): Likewise.
56808         * modules/setenv (Makefile.am): Likewise.
56809         * modules/settime (Makefile.am): Likewise.
56810         * modules/sha1 (Makefile.am): Likewise.
56811         * modules/sig2str (Makefile.am): Likewise.
56812         * modules/snprintf (Makefile.am): Likewise.
56813         * modules/stat-macros (Makefile.am): Likewise.
56814         * modules/stat-time (Makefile.am): Likewise.
56815         * modules/stdbool (Makefile.am): Likewise.
56816         * modules/stdint (Makefile.am): Likewise.
56817         * modules/stdlib-safer (Makefile.am): Likewise.
56818         * modules/stpcpy (Makefile.am): Likewise.
56819         * modules/stpncpy (Makefile.am): Likewise.
56820         * modules/strcase (Makefile.am): Likewise.
56821         * modules/strcasestr (Makefile.am): Likewise.
56822         * modules/strchrnul (Makefile.am): Likewise.
56823         * modules/strcspn (Makefile.am): Likewise.
56824         * modules/strdup (Makefile.am): Likewise.
56825         * modules/strerror (Makefile.am): Likewise.
56826         * modules/strftime (Makefile.am): Likewise.
56827         * modules/strndup (Makefile.am): Likewise.
56828         * modules/strnlen (Makefile.am): Likewise.
56829         * modules/strpbrk (Makefile.am): Likewise.
56830         * modules/strsep (Makefile.am): Likewise.
56831         * modules/strstr (Makefile.am): Likewise.
56832         * modules/strtod (Makefile.am): Likewise.
56833         * modules/strtoimax (Makefile.am): Likewise.
56834         * modules/strtok_r (Makefile.am): Likewise.
56835         * modules/strtol (Makefile.am): Likewise.
56836         * modules/strtoll (Makefile.am): Likewise.
56837         * modules/strtoul (Makefile.am): Likewise.
56838         * modules/strtoull (Makefile.am): Likewise.
56839         * modules/strtoumax (Makefile.am): Likewise.
56840         * modules/strverscmp (Makefile.am): Likewise.
56841         * modules/sys_socket (Makefile.am): Likewise.
56842         * modules/sys_stat (Makefile.am): Likewise.
56843         * modules/sysexits (Makefile.am): Likewise.
56844         * modules/time_r (Makefile.am): Likewise.
56845         * modules/timegm (Makefile.am): Likewise.
56846         * modules/timespec (Makefile.am): Likewise.
56847         * modules/tmpfile-safer (Makefile.am): Likewise.
56848         * modules/trim (Makefile.am): Likewise.
56849         * modules/unistd-safer (Makefile.am): Likewise.
56850         * modules/unlinkdir (Makefile.am): Likewise.
56851         * modules/unlocked-io (Makefile.am): Likewise.
56852         * modules/userspec (Makefile.am): Likewise.
56853         * modules/utime (Makefile.am): Likewise.
56854         * modules/utimecmp (Makefile.am): Likewise.
56855         * modules/utimens (Makefile.am): Likewise.
56856         * modules/vasnprintf (Makefile.am): Likewise.
56857         * modules/vasprintf (Makefile.am): Likewise.
56858         * modules/vsnprintf (Makefile.am): Likewise.
56859         * modules/xalloc (Makefile.am): Likewise.
56860         * modules/xgetcwd (Makefile.am): Likewise.
56861         * modules/xnanosleep (Makefile.am): Likewise.
56862         * modules/xreadlink (Makefile.am): Likewise.
56863         * modules/xstrtod (Makefile.am): Likewise.
56864         * modules/xstrtol (Makefile.am): Likewise.
56865         * modules/xstrtold (Makefile.am): Likewise.
56866         * modules/yesno (Makefile.am): Likewise.
56867         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
56868
56869 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56870
56871         * modules/error (Makefile.am): Distribute files through
56872         EXTRA_DIST, not lib_SOURCES.
56873
56874 2006-10-12  Eric Blake  <ebb9@byu.net>
56875
56876         * modules/error (Makefile.am): Distribute files in /lib.
56877         * modules/obstack (Makefile.am): Likewise.
56878
56879 2006-10-12  Bruno Haible  <bruno@clisp.org>
56880
56881         * modules/acl (Makefile.am): Distribute all files in lib/ through
56882         EXTRA_DIST.
56883         * modules/arcfour (Makefile.am): Likewise.
56884         * modules/arctwo (Makefile.am): Likewise.
56885         * modules/argmatch (Makefile.am): Likewise.
56886         * modules/argz (Makefile.am): Likewise.
56887         * modules/atexit (Makefile.am): Likewise.
56888         * modules/backupfile (Makefile.am): Likewise.
56889         * modules/c-strtod (Makefile.am): Likewise.
56890         * modules/c-strtold (Makefile.am): Likewise.
56891         * modules/calloc (Makefile.am): Likewise.
56892         * modules/canon-host (Makefile.am): Likewise.
56893         * modules/canonicalize (Makefile.am): Likewise.
56894         * modules/chdir-long (Makefile.am): Likewise.
56895         * modules/chdir-safer (Makefile.am): Likewise.
56896         * modules/check-version (Makefile.am): Likewise.
56897         * modules/chown (Makefile.am): Likewise.
56898         * modules/cloexec (Makefile.am): Likewise.
56899         * modules/close-stream (Makefile.am): Likewise.
56900         * modules/closeout (Makefile.am): Likewise.
56901         * modules/crc (Makefile.am): Likewise.
56902         * modules/cycle-check (Makefile.am): Likewise.
56903         * modules/des (Makefile.am): Likewise.
56904         * modules/dirfd (Makefile.am): Likewise.
56905         * modules/dirname (Makefile.am): Likewise.
56906         * modules/dup2 (Makefile.am): Likewise.
56907         * modules/euidaccess (Makefile.am): Likewise.
56908         * modules/exclude (Makefile.am): Likewise.
56909         * modules/exitfail (Makefile.am): Likewise.
56910         * modules/fcntl-safer (Makefile.am): Likewise.
56911         * modules/file-type (Makefile.am): Likewise.
56912         * modules/fileblocks (Makefile.am): Likewise.
56913         * modules/filemode (Makefile.am): Likewise.
56914         * modules/filenamecat (Makefile.am): Likewise.
56915         * modules/fnmatch (Makefile.am): Likewise.
56916         * modules/fopen-safer (Makefile.am): Likewise.
56917         * modules/fpending (Makefile.am): Likewise.
56918         * modules/fprintftime (Makefile.am): Likewise.
56919         * modules/free (Makefile.am): Likewise.
56920         * modules/fsusage (Makefile.am): Likewise.
56921         * modules/ftruncate (Makefile.am): Likewise.
56922         * modules/fts (Makefile.am): Likewise.
56923         * modules/gc (Makefile.am): Likewise.
56924         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56925         * modules/getaddrinfo (Makefile.am): Likewise.
56926         * modules/getcwd (Makefile.am): Likewise.
56927         * modules/getdelim (Makefile.am): Likewise.
56928         * modules/getdomainname (Makefile.am): Likewise.
56929         * modules/getgroups (Makefile.am): Likewise.
56930         * modules/gethostname (Makefile.am): Likewise.
56931         * modules/gethrxtime (Makefile.am): Likewise.
56932         * modules/getline (Makefile.am): Likewise.
56933         * modules/getloadavg (Makefile.am): Likewise.
56934         * modules/getlogin_r (Makefile.am): Likewise.
56935         * modules/getopt (Makefile.am): Likewise.
56936         * modules/getpass (Makefile.am): Likewise.
56937         * modules/getpass-gnu (Makefile.am): Likewise.
56938         * modules/getsubopt (Makefile.am): Likewise.
56939         * modules/gettime (Makefile.am): Likewise.
56940         * modules/gettimeofday (Makefile.am): Likewise.
56941         * modules/getugroups (Makefile.am): Likewise.
56942         * modules/getusershell (Makefile.am): Likewise.
56943         * modules/glob (Makefile.am): Likewise.
56944         * modules/group-member (Makefile.am): Likewise.
56945         * modules/hard-locale (Makefile.am): Likewise.
56946         * modules/hash (Makefile.am): Likewise.
56947         * modules/hmac-md5 (Makefile.am): Likewise.
56948         * modules/hmac-sha1 (Makefile.am): Likewise.
56949         * modules/human (Makefile.am): Likewise.
56950         * modules/idcache (Makefile.am): Likewise.
56951         * modules/imaxabs (Makefile.am): Likewise.
56952         * modules/imaxdiv (Makefile.am): Likewise.
56953         * modules/inet_ntop (Makefile.am): Likewise.
56954         * modules/inet_pton (Makefile.am): Likewise.
56955         * modules/inttostr (Makefile.am): Likewise.
56956         * modules/isapipe (Makefile.am): Likewise.
56957         * modules/lchown (Makefile.am): Likewise.
56958         * modules/long-options (Makefile.am): Likewise.
56959         * modules/lstat (Makefile.am): Likewise.
56960         * modules/malloc (Makefile.am): Likewise.
56961         * modules/mathl (Makefile.am): Likewise.
56962         * modules/mbchar (Makefile.am): Likewise.
56963         * modules/md2 (Makefile.am): Likewise.
56964         * modules/md4 (Makefile.am): Likewise.
56965         * modules/md5 (Makefile.am): Likewise.
56966         * modules/memcasecmp (Makefile.am): Likewise.
56967         * modules/memchr (Makefile.am): Likewise.
56968         * modules/memcmp (Makefile.am): Likewise.
56969         * modules/memcoll (Makefile.am): Likewise.
56970         * modules/memcpy (Makefile.am): Likewise.
56971         * modules/memmem (Makefile.am): Likewise.
56972         * modules/memmove (Makefile.am): Likewise.
56973         * modules/mempcpy (Makefile.am): Likewise.
56974         * modules/memrchr (Makefile.am): Likewise.
56975         * modules/memset (Makefile.am): Likewise.
56976         * modules/memxor (Makefile.am): Likewise.
56977         * modules/mkancesdirs (Makefile.am): Likewise.
56978         * modules/mkdir (Makefile.am): Likewise.
56979         * modules/mkdir-p (Makefile.am): Likewise.
56980         * modules/mkdtemp (Makefile.am): Likewise.
56981         * modules/mkstemp (Makefile.am): Likewise.
56982         * modules/mktime (Makefile.am): Likewise.
56983         * modules/modechange (Makefile.am): Likewise.
56984         * modules/mountlist (Makefile.am): Likewise.
56985         * modules/nanosleep (Makefile.am): Likewise.
56986         * modules/openat (Makefile.am): Likewise.
56987         * modules/pagealign_alloc (Makefile.am): Likewise.
56988         * modules/physmem (Makefile.am): Likewise.
56989         * modules/poll (Makefile.am): Likewise.
56990         * modules/posixtm (Makefile.am): Likewise.
56991         * modules/posixver (Makefile.am): Likewise.
56992         * modules/putenv (Makefile.am): Likewise.
56993         * modules/quote (Makefile.am): Likewise.
56994         * modules/quotearg (Makefile.am): Likewise.
56995         * modules/raise (Makefile.am): Likewise.
56996         * modules/read-file (Makefile.am): Likewise.
56997         * modules/readline (Makefile.am): Likewise.
56998         * modules/readlink (Makefile.am): Likewise.
56999         * modules/readtokens (Makefile.am): Likewise.
57000         * modules/readutmp (Makefile.am): Likewise.
57001         * modules/realloc (Makefile.am): Likewise.
57002         * modules/regex (Makefile.am): Likewise.
57003         * modules/rename (Makefile.am): Likewise.
57004         * modules/rename-dest-slash (Makefile.am): Likewise.
57005         * modules/rijndael (Makefile.am): Likewise.
57006         * modules/rmdir (Makefile.am): Likewise.
57007         * modules/rpmatch (Makefile.am): Likewise.
57008         * modules/safe-read (Makefile.am): Likewise.
57009         * modules/safe-write (Makefile.am): Likewise.
57010         * modules/same (Makefile.am): Likewise.
57011         * modules/save-cwd (Makefile.am): Likewise.
57012         * modules/savedir (Makefile.am): Likewise.
57013         * modules/setenv (Makefile.am): Likewise.
57014         * modules/settime (Makefile.am): Likewise.
57015         * modules/sha1 (Makefile.am): Likewise.
57016         * modules/sig2str (Makefile.am): Likewise.
57017         * modules/snprintf (Makefile.am): Likewise.
57018         * modules/stdlib-safer (Makefile.am): Likewise.
57019         * modules/stpcpy (Makefile.am): Likewise.
57020         * modules/stpncpy (Makefile.am): Likewise.
57021         * modules/strcase (Makefile.am): Likewise.
57022         * modules/strcasestr (Makefile.am): Likewise.
57023         * modules/strchrnul (Makefile.am): Likewise.
57024         * modules/strcspn (Makefile.am): Likewise.
57025         * modules/strdup (Makefile.am): Likewise.
57026         * modules/strerror (Makefile.am): Likewise.
57027         * modules/strftime (Makefile.am): Likewise.
57028         * modules/strndup (Makefile.am): Likewise.
57029         * modules/strnlen (Makefile.am): Likewise.
57030         * modules/strpbrk (Makefile.am): Likewise.
57031         * modules/strsep (Makefile.am): Likewise.
57032         * modules/strstr (Makefile.am): Likewise.
57033         * modules/strtod (Makefile.am): Likewise.
57034         * modules/strtoimax (Makefile.am): Likewise.
57035         * modules/strtok_r (Makefile.am): Likewise.
57036         * modules/strtol (Makefile.am): Likewise.
57037         * modules/strtoll (Makefile.am): Likewise.
57038         * modules/strtoul (Makefile.am): Likewise.
57039         * modules/strtoull (Makefile.am): Likewise.
57040         * modules/strtoumax (Makefile.am): Likewise.
57041         * modules/strverscmp (Makefile.am): Likewise.
57042         * modules/time_r (Makefile.am): Likewise.
57043         * modules/timegm (Makefile.am): Likewise.
57044         * modules/tmpfile-safer (Makefile.am): Likewise.
57045         * modules/unistd-safer (Makefile.am): Likewise.
57046         * modules/unlinkdir (Makefile.am): Likewise.
57047         * modules/userspec (Makefile.am): Likewise.
57048         * modules/utime (Makefile.am): Likewise.
57049         * modules/utimecmp (Makefile.am): Likewise.
57050         * modules/utimens (Makefile.am): Likewise.
57051         * modules/vasnprintf (Makefile.am): Likewise.
57052         * modules/vasprintf (Makefile.am): Likewise.
57053         * modules/vsnprintf (Makefile.am): Likewise.
57054         * modules/xalloc (Makefile.am): Likewise.
57055         * modules/xgetcwd (Makefile.am): Likewise.
57056         * modules/xnanosleep (Makefile.am): Likewise.
57057         * modules/xreadlink (Makefile.am): Likewise.
57058         * modules/xstrtod (Makefile.am): Likewise.
57059         * modules/xstrtol (Makefile.am): Likewise.
57060         * modules/xstrtold (Makefile.am): Likewise.
57061         * modules/yesno (Makefile.am): Likewise.
57062
57063 2006-10-12  Jim Meyering  <jim@meyering.net>
57064
57065         * m4/getloadavg.m4: Revert the change below.
57066
57067         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
57068         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
57069         fail with a symlink, which is what coreutils' ./bootstrap now
57070         creates by default.
57071
57072 2006-10-12  Bruno Haible  <bruno@clisp.org>
57073
57074         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
57075         mingw.
57076         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
57077         MSVC and mingw explicitly.
57078
57079 2006-10-11  Simon Josefsson  <jas@extundo.com>
57080             Bruno Haible  <bruno@clisp.org>
57081
57082         Add support for multiple gnulib-tool invocations in the scope of a
57083         single configure.ac file.
57084         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
57085         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
57086         with the same contents as the _LIBADD variable.
57087         (func_emit_initmacro_start, func_emit_initmacro_end,
57088         func_emit_initmacro_done): New functions.
57089         (func_import, func_create_testdir): Invoke them. Allow the identifiers
57090         gl_LIBOBJS and gl_LTLIBOBJS.
57091
57092 2006-10-11  Bruno Haible  <bruno@clisp.org>
57093
57094         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
57095         (func_create_testdir): Don't create po/Makefile.am, don't invoke
57096         autoreconf. Instead, invoke autopoint explicitly but move back the
57097         *.m4 files from gnulib.
57098
57099 2006-10-11  Bruno Haible  <bruno@clisp.org>
57100
57101         * gnulib-tool (func_usage): Make module names after --create-testdir
57102         optional.
57103         (func_create_testdir): If no module was specified, use nearly all
57104         modules.
57105
57106 2006-10-12  Jim Meyering  <jim@meyering.net>
57107
57108         Big performance improvement for fts-based tools that use FTS_NOSTAT.
57109         Avoid spurious inode-mismatch problems on non-POSIX file systems.
57110         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
57111         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
57112         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
57113         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
57114         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
57115         (fts_set_stat_required): New function.
57116         (fts_open): Defer the calls to fts_stat, if possible or requested.
57117         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
57118         into fts_stat itself.
57119         (fts_read): Perform any required (deferred) fts_stat call.
57120         (fts_build): Likewise, for the directory we're about to open and read.
57121         In the readdir loop, carefully decide whether each entry will require
57122         an eventual call to fts_stat, using dirent.d_type info if available.
57123         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
57124         a command line argument into this function.  Update all callers.
57125         Map a return value of FTS_DOT to FTS_D for a command line argument.
57126         * modules/fts (Depends-on): Add d-type.  Alphabetize.
57127         Thanks to Miklos Szeredi for his tenacity and for the initial
57128         bug report about "find" failing on a FUSE-based file system.
57129
57130         * lib/fts.c (fts_open): Use consistent indentation.
57131
57132 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57133
57134         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
57135         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
57136         reported by Jim Meyering.  All uses of cache variables renamed
57137         to match Autoconf's.
57138         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
57139         the other one.
57140
57141         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
57142         Fix misspelling in diagnostic.
57143
57144 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57145
57146         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
57147         defined.  Problem reported by Matthew Woehlke.
57148
57149         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
57150         Add support for Tandem NonStop R series.
57151         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
57152         Use new macro.
57153
57154         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
57155         (has_trailing_slash): Omit size arg; all callers changed.
57156         Omit 'inline', since it doesn't help performance and we'd
57157         need to configure it.
57158         Don't count //, ///, etc. as having a trailing slash.
57159         As a side effect, this removes a C99ism reported by Matthew Woehlke.
57160         (rpl_rename_dest_slash): On failure, use rename's errno rather
57161         than (in some cases) an incorrect or junk errno.
57162         Simplify code by removing need to compute length; this does
57163         cause it to make two passes instead of one over the file name,
57164         but it's worth it.
57165
57166         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
57167         change, since Autoconf's version may no longer be appropriate now
57168         that we are using CVS Autoconf's version.  Add support for Tandem.
57169
57170 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57171             Bruno Haible  <bruno@clisp.org>
57172
57173         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
57174         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
57175         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
57176         gl_AC_TYPE_LONG_LONG.
57177
57178         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
57179         instead of HAVE_LONG_LONG.
57180         * lib/printf-args.c (printf_fetchargs): Likewise.
57181         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57182         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57183         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
57184         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
57185         gl_AC_TYPE_LONG_LONG.
57186
57187 2006-10-11  Bruno Haible  <bruno@clisp.org>
57188
57189         * m4/longlong.m4: Add comments.
57190         * m4/ulonglong.m4: Likewise.
57191
57192 2006-10-10  Bruno Haible  <bruno@clisp.org>
57193
57194         Make it possible to #define stpcpy, strdup to aliases.
57195         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
57196         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
57197
57198 2006-10-10  Bruno Haible  <bruno@clisp.org>
57199
57200         Make it possible to #define gcd to an alias.
57201         * lib/gcd.c: Include config.h.
57202
57203 2006-10-10  Bruno Haible  <bruno@clisp.org>
57204
57205         Make it possible to #define c_isascii to an alias.
57206         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
57207         defined. Undefine the macros before defining them, to avoid gcc
57208         warnings.
57209         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
57210         define NO_C_CTYPE_MACROS early.
57211
57212 2006-10-10  Bruno Haible  <bruno@clisp.org>
57213
57214         Make it possible to #define set_program_name to an alias.
57215         * lib/progname.c: Don't undefine set_program_name; instead, undefine
57216         ENABLE_RELOCATABLE early.
57217
57218 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57219
57220         Port to Tandem NSK OSS, which has 64-bit signed int but at most
57221         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
57222         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
57223         More generally, don't assume that 64-bit signed int is available
57224         if unsigned int is, and vice versa.
57225         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
57226         unsigned symbols, not on their signed counterparts.
57227         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
57228         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
57229         (UINT64_C, UINTMAX_C):
57230         Likewise.
57231         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
57232         unsigned counterparts.
57233         (Have_long_long, Unsigned): New macros.
57234         (Int): Renamed from INT.
57235         (strtoimax): Use the new macros.
57236         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
57237         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
57238         * modules/inttypes (inttypes.h): Substitute
57239         HAVE_UNSIGNED_LONG_LONG_INT.
57240         * modules/stdint (stdint.h): Likewise.
57241         (Files): Add m4/ulonglong.m4.
57242
57243 2006-10-10  Bruno Haible  <bruno@clisp.org>
57244
57245         Fix a gcc -Wshadow warning.
57246         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
57247         to 'bucket'.
57248         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
57249         gl_linked_indexof_from_to): Likewise.
57250         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
57251         Likewise.
57252         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
57253         Likewise.
57254         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
57255         Reported by Eric Blake.
57256
57257 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
57258
57259         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
57260         for NetBSD.  Problem reported by Bruno Haible.
57261
57262 2006-10-09  Jim Meyering  <jim@meyering.net>
57263
57264         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
57265         Patch from Bruno Haible.
57266
57267 2006-10-09  Jim Meyering  <jim@meyering.net>
57268
57269         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
57270         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
57271         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
57272
57273 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57274
57275         Don't include <config.h> twice; this doesn't work in some cases,
57276         e.g., when config.h has "#define intmax_t long long int" and
57277         we include <config.h>, <inttypes.h>, <config.h> in that order.
57278         Problem reported by Matthew Woehlke in:
57279         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
57280         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
57281         * lib/fts-cycle.c: Don't include config.h.
57282         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
57283         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
57284         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
57285         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
57286         inttypes.h.
57287         * lib/xstrtoumax.c: Likewise.
57288         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
57289         __strtol and the like, so that this module is more like its siblings.
57290         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
57291         Remove; no longer needed now that we assume gnulib inttypes.h.
57292
57293 2006-10-08  Bruno Haible  <bruno@clisp.org>
57294
57295         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
57296         option.
57297
57298 2006-10-07  Jim Meyering  <jim@meyering.net>
57299
57300         * modules/inttypes (inttypes.h): Revert what seems to have been
57301         an inadvertent part of today's change: use "|", not "/" in the
57302         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
57303
57304 2006-10-07  Bruno Haible  <bruno@clisp.org>
57305
57306         * modules/sublist: New file.
57307
57308 2006-10-07  Bruno Haible  <bruno@clisp.org>
57309
57310         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
57311         * modules/argz (argz.h): Likewise.
57312         * modules/arpa_inet (arpa/inet.h): Likewise.
57313         * modules/byteswap (byteswap.h): Likewise.
57314         * modules/configmake (configmake.h): Likewise.
57315         * modules/fcntl (fcntl.h): Likewise.
57316         * modules/fnmatch (fnmatch.h): Likewise.
57317         * modules/getopt (getopt.h): Likewise.
57318         * modules/glob (glob.h): Likewise.
57319         * modules/inttypes (inttypes.h): Likewise.
57320         * modules/netinet_in (netinet/in.h): Likewise.
57321         * modules/poll (poll.h): Likewise.
57322         * modules/stdbool (stdbool.h): Likewise.
57323         * modules/stdint (stdint.h): Likewise.
57324         * modules/sys_select (sys/select.h): Likewise.
57325         * modules/sys_socket (sys/socket.h): Likewise.
57326         * modules/sys_stat (sys/stat.h): Likewise.
57327         * modules/sysexits (sysexits.h): Likewise.
57328         * modules/unistd (unistd.h): Likewise.
57329         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57330         Add a "DO NOT EDIT" comment to the generated file.
57331         (func_import): Likewise for gnulib-comp.m4.
57332
57333 2006-10-07  Bruno Haible  <bruno@clisp.org>
57334
57335         * lib/gl_sublist.h: New file.
57336         * lib/gl_sublist.c: New file.
57337
57338 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57339
57340         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
57341         name (relative to the original working directory) and the file
57342         name component (relative to the temporary working directory).  All
57343         callers changed.
57344         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
57345         * lib/mkdir-p.c (make_dir_parents): Likewise.
57346         * lib/mkdir-p.h (make_dir_parents): Likewise.
57347
57348 2006-10-06  Eric Blake  <ebb9@byu.net>
57349
57350         Define several macros for use by the clean-temp module.
57351         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
57352         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
57353         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
57354
57355         * lib/clean-temp.h (close_stream_temp): New declaration.
57356         * lib/clean-temp.c (includes): Pull in headers according to what
57357         other modules are in use.
57358         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
57359
57360 2006-10-06  Bruno Haible  <bruno@clisp.org>
57361
57362         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
57363         instead of fopen, fwriteerror.
57364
57365 2006-10-06  Bruno Haible  <bruno@clisp.org>
57366
57367         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
57368         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
57369         int.
57370         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
57371         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
57372         Return an error indicator.
57373         Suggested by Eric Blake.
57374
57375 2006-10-06  Bruno Haible  <bruno@clisp.org>
57376
57377         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
57378         Reported by Eric Blake.
57379
57380 2006-10-06  Bruno Haible  <bruno@clisp.org>
57381
57382         * modules/closeout (Description): Mention stderr too.
57383
57384 2006-10-06  Bruno Haible  <bruno@clisp.org>
57385         and Paul Eggert  <eggert@cs.ucla.edu>
57386
57387         * lib/closeout.c (close_stdout): Also close stderr.
57388         * lib/closeout.h: Update comment.
57389
57390 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57391
57392         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
57393         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
57394         * lib/dirchownmod.c: Include lchown.h.
57395         * lib/lchown.c: Don't include files that lchown.h now includes.
57396         Don't declare chown, since lchown.h now does that.
57397         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
57398         (lchown): Define to rpl_chown if lchown is declared but
57399         does not exist.  Declare using a prototype if lchown is not
57400         declared.  Add a copyright notice.
57401         * lib/mkstemp.h: Include <unistd.h>.
57402         * lib/openat.c: Include lchown.h.
57403
57404         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
57405         we now test for that separately.
57406         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
57407         rather than O_NOFOLLOW, when testing whether it's possible to
57408         avoid a race condition reliably.
57409         * lib/savewd.c (savewd_chdir): Likewise.
57410
57411         Remove macros that are no longer needed now that stdint.h is
57412         reliable.
57413         * lib/fsusage.c (UINTMAX_MAX): Remove.
57414         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
57415         * lib/utimecmp.c (SIZE_MAX): Remove.
57416
57417         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
57418
57419         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
57420         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
57421         O_NOATIME works.
57422
57423 2006-10-05  Bruno Haible  <bruno@clisp.org>
57424
57425         * lib/gl_list.h (gl_sortedlist_search_from_to,
57426         gl_sortedlist_indexof_from_to): New declarations.
57427         (gl_list_implementation): New fields sortedlist_search_from_to,
57428         sortedlist_indexof_from_to.
57429         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
57430         inline functions.
57431         * lib/gl_list.c (gl_sortedlist_search_from_to,
57432         gl_sortedlist_indexof_from_to): New functions.
57433         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
57434         function.
57435         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
57436         (gl_array_sortedlist_search_from_to): New function.
57437         (gl_array_list_implementation): Update.
57438         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
57439         function.
57440         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
57441         (gl_carray_sortedlist_search_from_to): New function.
57442         (gl_carray_list_implementation): Update.
57443         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
57444         gl_linked_sortedlist_indexof_from_to): New functions.
57445         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57446         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57447         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
57448         gl_tree_sortedlist_indexof_from_to): New functions.
57449         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57450         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57451         Update.
57452         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57453         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
57454         Update.
57455
57456 2006-10-05  Bruno Haible  <bruno@clisp.org>
57457
57458         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
57459         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
57460         (struct gl_list_implementation): Add fields search_from_to,
57461         indexof_from_to. Remove fields search, indexof.
57462         (gl_list_search): Use the search_from_to method.
57463         (gl_list_search_from, gl_list_search_from_to): New functions.
57464         (gl_list_indexof): Use the indexof_from_to method.
57465         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57466         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
57467         (gl_list_search_from, gl_list_search_from_to): New functions.
57468         (gl_list_indexof): Use the indexof_from_to method.
57469         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57470         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
57471         gl_array_indexof. Add start_index, end_index arguments.
57472         (gl_array_search_from_to): Renamed from gl_array_search. Add
57473         start_index, end_index arguments.
57474         (gl_array_remove, gl_array_list_implementation): Update.
57475         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
57476         gl_carray_indexof. Add start_index, end_index arguments.
57477         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
57478         start_index, end_index arguments.
57479         (gl_carray_remove, gl_carray_list_implementation): Update.
57480         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
57481         gl_linked_search. Add start_index, end_index arguments.
57482         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
57483         start_index, end_index arguments.
57484         (gl_linked_remove): Update.
57485         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57486         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57487         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
57488         field to 'size_t'.
57489         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
57490         gl_tree_search. Add start_index, end_index arguments.
57491         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57492         start_index, end_index arguments.
57493         (gl_tree_remove): Update.
57494         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57495         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57496         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
57497         function.
57498         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
57499         gl_tree_search. Add start_index, end_index arguments.
57500         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57501         start_index, end_index arguments.
57502         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57503         Update.
57504         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57505
57506 2006-10-05  Bruno Haible  <bruno@clisp.org>
57507
57508         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
57509
57510         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
57511         fwriteerror_temp): New declarations.
57512         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
57513         (descriptors): New variable.
57514         (cleanup): First, close the descriptors.
57515         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
57516         fclose_temp, fwriteerror_temp): New functions.
57517
57518 2006-10-04  Jim Meyering  <jim@meyering.net>
57519
57520         * lib/fts.c (fts_open): Tiny comment change.
57521
57522 2006-10-04  Bruno Haible  <bruno@clisp.org>
57523
57524         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
57525         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
57526         gl_LOCK_BODY.
57527         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
57528         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
57529         gl_LOCK_EARLY_BODY.
57530         (gl_LOCK): Require gl_LOCK_BODY.
57531
57532 2006-10-04  Bruno Haible  <bruno@clisp.org>
57533
57534         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
57535         (gl_oset_search_atleast): New declaration.
57536         (struct gl_oset_implementation): Add field 'search_atleast'.
57537         (gl_oset_search_atleast): New inline function.
57538         * lib/gl_oset.c (gl_oset_search_atleast): New function.
57539         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
57540         (gl_array_oset_implementation): Update.
57541         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
57542         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
57543         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
57544
57545 2006-10-04  Bruno Haible  <bruno@clisp.org>
57546
57547         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
57548
57549 2006-10-03  Bruno Haible  <bruno@clisp.org>
57550
57551         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
57552         from gl_avltreehash_list_implementation.
57553
57554 2006-10-03  Bruno Haible  <bruno@clisp.org>
57555
57556         * lib/gl_oset.c (gl_oset_add): Fix return type.
57557
57558 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
57559
57560         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
57561
57562 2006-10-02  Eric Blake  <ebb9@byu.net>
57563
57564         * modules/strnlen (Depends-on): Add extensions.
57565
57566 2006-10-02  Eric Blake  <ebb9@byu.net>
57567
57568         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
57569         definition in 2.60+.
57570
57571 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57572
57573         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
57574         checks.
57575
57576 2006-10-02  Bruno Haible  <bruno@clisp.org>
57577
57578         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
57579         to the AUTOMAKE_OPTIONS.
57580         Reported by Jim Meyering.
57581
57582 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57583
57584         Work around bug in Solaris 10 /proc file system:
57585         /proc/self/fd/NNN/.. isn't the parent directory of
57586         the directory whose file descriptor is NNN.  This needs to
57587         be worked around at run time, not compile time, since a
57588         program might be built on Solaris 8, where things work, and
57589         run on Solaris 10.
57590         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
57591         to use the following interface instead:
57592         (OPENAT_BUFFER_SIZE): New macro.
57593         (openat_proc_name): New function.
57594         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
57595         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
57596         Likewise.
57597         * lib/openat-proc.c: New file.
57598         * modules/openat (Files): Add lib/openat-proc.c.
57599         (Depends-on): Add same-inode, stdbool.
57600         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
57601
57602 2006-09-29  Bruno Haible  <bruno@clisp.org>
57603
57604         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
57605         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
57606         argument. Set stdout_closed before testing for ferror, not after.
57607         (fwriteerror, fwriteerror_no_ebadf): New functions.
57608
57609 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57610
57611         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
57612
57613 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
57614
57615         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
57616         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
57617
57618 2006-09-28  Jim Meyering  <jim@meyering.net>
57619
57620         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
57621         Include <unistd.h>.
57622
57623 2006-09-28  Bruno Haible  <bruno@clisp.org>
57624
57625         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
57626         * modules/linkedhash-list (Depends-on): Likewise.
57627         * modules/rbtreehash-list (Depends-on): Likewise.
57628
57629 2006-09-28  Bruno Haible  <bruno@clisp.org>
57630
57631         * lib/strndup.h: Simplify the redefinition of strndup.
57632         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
57633         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
57634
57635 2006-09-28  Bruno Haible  <bruno@clisp.org>
57636
57637         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
57638         * lib/gl_linkedhash_list.c: Likewise.
57639         * lib/gl_rbtreehash_list.c: Likewise.
57640
57641 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57642
57643         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
57644         getaddrinfo.
57645
57646         * lib/__fpending.h: Don't include <stdio_ext.h> unless
57647         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
57648         it causes <stdio_ext.h> to cause a compile-time error.
57649         Problem reported by Nelson H. F. Beebe.
57650         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
57651         of HAVE_DECL___PENDING.
57652
57653         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
57654         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
57655         declaration.
57656
57657 2006-09-27  Jim Meyering  <jim@meyering.net>
57658
57659         This file could end up with a definition for a function
57660         named __strndup, rather than rpl_strndup on a system with
57661         incomplete weak_alias support.
57662         * lib/strndup.c (strndup): Rename from __strndup.
57663         Remove #defines that used to map __strndup to strndup.
57664         Don't use K&R prototypes.
57665         Remove LIBC-related code, since this file is not sync'd with glibc.
57666         * lib/strndup.h: Revamp, accordingly.
57667         * m4/strndup.m4: Modernize.
57668
57669 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57670
57671         * modules/savewd (Depends-on): Add 'raise'.
57672         * lib/savewd.c: Include <signal.h>, for 'raise'.
57673
57674 2006-09-26  Jim Meyering  <jim@meyering.net>
57675
57676         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
57677         when we detect Darwin 8.7.0's acl_get_file bug.
57678         Rearrange to perform the new (below) run-test while $LIBS
57679         contains any acl-related library.  Set USE_ACL at the end.
57680         (gl_ACL_GET_FILE): New function.
57681
57682 2006-09-26  Eric Blake  <ebb9@byu.net>
57683
57684         * lib/verror.c: Include <config.h> unconditionally.
57685
57686 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
57687
57688         * modules/clock-time (Maintainer): Add self.
57689         * modules/getlogin_r (Depends-on): Add extensions.
57690
57691 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57692
57693         * modules/clock-time: New module.
57694         * modules/nanosleep (Depends-on): Add clock-time.
57695         * modules/gethrxtime (Depends-on): Likewise.
57696         * modules/gettime (Depends-on): Likewise.
57697         * modules/settime (Depends-on): Likewise.
57698
57699         * modules/fts-lgpl: Depend on openat.
57700         * modules/mkancesdirs: Depend on savewd.
57701         * modules/mkdir-p: Likewise.
57702
57703 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57704
57705         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
57706
57707         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
57708         `gl_have_arbitrary_file_name_length_limit' to
57709         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
57710         actually works between configure runs.
57711
57712 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57713             Bruno Haible  <bruno@clisp.org>
57714
57715         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
57716
57717 2006-09-25  Jim Meyering  <jim@meyering.net>
57718
57719         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
57720         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
57721
57722 2006-09-25  Eric Blake  <ebb9@byu.net>
57723
57724         * gnulib-tool (func_import, func_create_testdir): Fix typos in
57725         exec's in 2006-09-18 patch when shuffling fds.
57726
57727 2006-09-25  Bruno Haible  <bruno@clisp.org>
57728
57729         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
57730         Reported by Jim Meyering.
57731
57732 2006-09-24  Jim Meyering  <jim@meyering.net>
57733
57734         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
57735         compare a pointer against a literal "0".  That caused failures with
57736         at least HP-UX's hpcc.
57737
57738 2006-09-22  Simon Josefsson  <jas@extundo.com>
57739
57740         * modules/gc-sha1:
57741         * modules/gc-md4:
57742         * modules/gc-hmac-sha1:
57743         * modules/gc-hmac-md5:
57744         * modules/gc-des:
57745         * modules/gc-arcfour: Distribute more files.
57746
57747 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57748
57749         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
57750         (gl_linked_iterator_from_to): Initialize struct completely.
57751         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
57752         (gl_tree_iterator_from_to): Likewise
57753         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
57754         * lib/gl_array_list.c [lint] (gl_array_iterator)
57755         (gl_array_iterator_from_to): Likewise.
57756         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
57757         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
57758         (gl_carray_iterator_from_to): Likewise.
57759
57760         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
57761         * lib/md4.c (md4_process_block): Remove unused variable.
57762         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
57763         parentheses for clarity.
57764
57765 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57766
57767         * modules/bison-i18n (Depends-on): Add gettext.
57768
57769 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57770
57771         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
57772         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
57773         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
57774         also add missing comma that caused broken test.
57775         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
57776         stdlib.h, for `abort'.
57777         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
57778         variables.
57779         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
57780         include unistd.h if present, for `rmdir'.
57781         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
57782         variables.
57783         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
57784         in the process include standard headers for prototypes.
57785         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
57786         gets declared on GNU/Linux.
57787         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
57788         unistd.h, for `rmdir'.
57789         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
57790
57791         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
57792         always true.
57793         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
57794
57795         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
57796
57797 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57798
57799         * gnulib-tool (func_version): Create output all at once.  This
57800         may help avoid triggering unnecessary SIGPIPEs, and at any
57801         rate it doesn't hurt.
57802
57803 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57804             Bruno Haible  <bruno@clisp.org>
57805
57806         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
57807         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57808         * m4/signed.m4 (bh_C_SIGNED): Likewise.
57809
57810         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
57811         (gl_FUNC_VASPRINTF): Invoke it.
57812
57813 2006-09-22  Bruno Haible  <bruno@clisp.org>
57814
57815         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
57816         getloadavg.c as first argument.
57817
57818 2006-09-22  Bruno Haible  <bruno@clisp.org>
57819
57820         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
57821         at the beginning of the gl_INIT macro.
57822         * modules/getloadavg (configure.ac): Pass $gl_source_base to
57823         gl_GETLOADAVG.
57824
57825 2006-09-22  Bruno Haible  <bruno@clisp.org>
57826
57827         * gnulib-tool (func_create_megatestdir): Don't include the config-h
57828         module.
57829         Suggested by Ralf Wildenhues.
57830
57831 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57832
57833         Import this patch from libc:
57834
57835         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
57836
57837         * lib/regex_internal.c (re_string_reconstruct): Handle
57838         offset < pstr->valid_raw_len && pstr->offsets_needed case.
57839         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
57840         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
57841         re_string_context_at.
57842
57843         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
57844         now requires it.
57845         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
57846         gl_REGEX now does it for us.
57847         (gl_REGEX): Add test taken from
57848         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
57849
57850         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
57851         Check that large offsets work.  Modernize Autoconf usages.
57852         Prefer "yes" to mean a good thing rather than a bad.
57853         Don't put "#define mkstemp" in config.h, as this might interfere
57854         with standard system headers that "#define mkstemp mkstemp64".
57855
57856         * modules/mkstemp (Depends-on): Add extensions, so that
57857         mkstemp is visible on some platforms.
57858         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
57859         (Include): Change to "mkstemp.h" from <stdlib.h>.
57860         (Files): Add mkstemp.h.
57861
57862         * lib/mkstemp.h: New file, since some standard headers
57863         #define mkstemp.
57864         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
57865         Include "mkstemp.h".
57866         Make the _LIBC code resemble glibc original more,
57867         e.g., use K&R style.
57868         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
57869         (mkstemp): Remove, since mkstemp.h does this for us.
57870         * lib/stdlib--.h: Include mkstemp.h.
57871
57872         Import this patch from libc:
57873
57874         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57875
57876         * lib/tempname.c (__gen_tempname): Change attempts_min
57877         into a macro.  Use preprocessor to decide how to initialize
57878         attempts [Coverity CID 67].
57879
57880 2006-09-20  Bruno Haible  <bruno@clisp.org>
57881
57882         * lib/mkdtemp.c: Import from libc.
57883         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57884                 * sysdeps/posix/tempname.c (__gen_tempname): Change
57885                 attempts_min into a macro.  Use preprocessor to decide how to
57886                 initialize attempts [Coverity CID 67].
57887         2001-11-27  Paul Eggert  <eggert@twinsun.com>
57888                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
57889                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
57890
57891 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57892
57893         * gnulib-tool (func_exit): New function, to allow to pass the
57894         exit status portably through the trap.  Use everywhere.
57895         (--help, --version): Signal a write error.
57896         (trap): catch SIGPIPE, for write errors.
57897         Exit at the end of the trap, with the correct exit status.
57898
57899 2006-09-19  Karl Berry  <karl@gnu.org>
57900
57901         * doc/gnulib.texi: note about the license texinfo files.
57902
57903 2006-09-19  Eric Blake  <ebb9@byu.net>
57904
57905         * gnulib-tool: Avoid space-tab.
57906
57907 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57908
57909         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
57910         that prevented coreutils 6.1 from building.  Problem reported
57911         by Petter Reinholdtsen.
57912
57913 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57914
57915         * gnulib-tool (avoidlist): Fix typo that broke options like
57916         --avoid=lock that are used by coreutils bootstrap.
57917
57918 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57919
57920         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57921         more systematically.
57922
57923 2006-09-18  Jim Meyering  <jim@meyering.net>
57924
57925         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
57926
57927 2006-09-18  Bruno Haible  <bruno@clisp.org>
57928
57929         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
57930
57931 2006-09-18  Bruno Haible  <bruno@clisp.org>
57932
57933         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
57934         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
57935         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
57936         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
57937         * m4/gettext.m4: Require autoconf >= 2.52.
57938         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
57939         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
57940         of gl_cv_header_inttypes_h.
57941
57942 2006-09-18  Bruno Haible  <bruno@clisp.org>
57943
57944         * lib/javaversion.c: Include configmake.h.
57945
57946 2006-09-18  Bruno Haible  <bruno@clisp.org>
57947
57948         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
57949         avoid that the while loops be executed in a subshell.
57950
57951 2006-09-18  Bruno Haible  <bruno@clisp.org>
57952
57953         * MODULES.html.sh (func_module): Break long lines.
57954         Suggested by Bruce Korb <bkorb@gnu.org>.
57955
57956 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57957
57958         Speed up by a factor of 1.12.
57959         * gnulib-tool (nl): New variable.
57960         (func_import): Rewrite include directive extraction to only read each
57961         directive once.
57962
57963 2006-09-17  Bruno Haible  <bruno@clisp.org>
57964
57965         * modules/javaversion (Makefile.am): Remove DEFS setting.
57966         (Depends-on): Add configmake, for PKGDATADIR definition.
57967
57968 2006-09-17  Bruno Haible  <bruno@clisp.org>
57969
57970         * gnulib-tool (func_create_testdir): Rewrite all files at once.
57971
57972 2006-09-17  Bruno Haible  <bruno@clisp.org>
57973
57974         * gnulib-tool (func_append): New function, stolen from libtool.m4.
57975         (func_modules_transitive_closure, func_modules_add_dummy,
57976         func_modules_to_filelist, func_import, func_create_testdir,
57977         func_create_megatestdir, ...): Use it wherever possible.
57978         Suggested by Ralf Wildenhues.
57979
57980 2006-09-16  Karl Berry  <karl@gnu.org>
57981
57982         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
57983         to avoid sectioning errors.
57984         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
57985         [ifinfo]: blank line after @center-ed titles.
57986         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
57987         Spell FSF address consistently with others.
57988         (These changes approved by rms.)
57989
57990 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57991
57992         Speed up by a factor of 1.61.
57993         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
57994         already checked module names again.
57995
57996 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57997
57998         Speed up by a factor of 1.13.
57999         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
58000         for new_files, and the input to func_add_or_update.
58001
58002 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58003
58004         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
58005         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
58006
58007 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58008
58009         * modules/mkancesdirs (Depends-on): Add fcntl.
58010         * modules/savewd: New file.
58011         * MODULES.html.sh (File system functions): Add savewd.
58012
58013         * modules/configmake (Makefile.am): Add support for the
58014         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
58015
58016 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58017
58018         * m4/savewd.m4: New file.
58019
58020 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58021
58022         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
58023         (dirchownmod): New arg FD.  All callers changed.
58024         Use FD rather than opening the directory ourself, as opening is
58025         now the caller's responsibility.
58026         * lib/dirchownmod.h: Likewise.
58027         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
58028         hosts that require <sys/types.h> before <sys/stat.h>.  Include
58029         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
58030         (test_dir): Remove.
58031         (mkancesdirs): Return length of prefix of FILE that has already
58032         been made, or -2 if there is a child doing the work.  Redo
58033         algorithm so that it is O(N) rather than O(N**2).  Optimize away
58034         ".", and treat ".." specially since it might stray back into
58035         already-created areas.  Use a subprocess if necessary.  New arg
58036         WD; all users changed.  MAKE_DIR function should now return 1
58037         if it creates a directory that is not readable.  Return -2 if
58038         a child process is spun off.
58039         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
58040         Adjust signature to match code.
58041         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
58042         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
58043         all users changed.
58044         * lib/savewd.c, lib/savewd.h: New files.
58045
58046 2006-09-15  Jim Meyering  <jim@meyering.net>
58047
58048         * modules/rename-dest-slash: New module.
58049         * MODULES.html.sh (posix_compat): Add it here.
58050
58051         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
58052
58053 2006-09-15  Jim Meyering  <jim@meyering.net>
58054
58055         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
58056         file.
58057
58058         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
58059
58060 2006-09-15  Jim Meyering  <jim@meyering.net>
58061
58062         * lib/rename-dest-slash.c (has_trailing_slash): Use
58063         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
58064         (rpl_rename_dest_slash): Perform the cheaper trailing slash
58065         test before testing whether SRC is a directory.
58066         Suggestions from Bruno Haible.
58067
58068         Avoid a warning about an unused variable.
58069         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
58070         into the #ifdef block where it's used.
58071
58072         * lib/rename-dest-slash.c: New file.
58073
58074 2006-09-14  Bruno Haible  <bruno@clisp.org>
58075
58076         * lib/allocsa.c: Include <config.h> unconditionally.
58077         * lib/asnprintf.c: Likewise.
58078         * lib/asprintf.c: Likewise.
58079         * lib/c-strcasecmp.c: Likewise.
58080         * lib/c-strcasestr.c: Likewise.
58081         * lib/c-strncasecmp.c: Likewise.
58082         * lib/c-strstr.c: Likewise.
58083         * lib/classpath.c: Likewise.
58084         * lib/clean-temp.c: Likewise.
58085         * lib/concatpath.c: Likewise.
58086         * lib/copy-file.c: Likewise.
58087         * lib/csharpcomp.c: Likewise.
58088         * lib/csharpexec.c: Likewise.
58089         * lib/execute.c: Likewise.
58090         * lib/fatal-signal.c: Likewise.
58091         * lib/findprog.c: Likewise.
58092         * lib/fwriteerror.c: Likewise.
58093         * lib/gl_array_list.c: Likewise.
58094         * lib/gl_array_oset.c: Likewise.
58095         * lib/gl_avltree_list.c: Likewise.
58096         * lib/gl_avltree_oset.c: Likewise.
58097         * lib/gl_avltreehash_list.c: Likewise.
58098         * lib/gl_carray_list.c: Likewise.
58099         * lib/gl_linked_list.c: Likewise.
58100         * lib/gl_linkedhash_list.c: Likewise.
58101         * lib/gl_list.c: Likewise.
58102         * lib/gl_oset.c: Likewise.
58103         * lib/gl_rbtree_list.c: Likewise.
58104         * lib/gl_rbtree_oset.c: Likewise.
58105         * lib/gl_rbtreehash_list.c: Likewise.
58106         * lib/imaxabs.c: Likewise.
58107         * lib/imaxdiv.c: Likewise.
58108         * lib/javacomp.c: Likewise.
58109         * lib/javaexec.c: Likewise.
58110         * lib/javaversion.c: Likewise.
58111         * lib/linebreak.c: Likewise.
58112         * lib/localcharset.c: Likewise.
58113         * lib/lock.c: Likewise.
58114         * lib/mbchar.c: Likewise.
58115         * lib/mbswidth.c: Likewise.
58116         * lib/mkdtemp.c: Likewise.
58117         * lib/pipe.c: Likewise.
58118         * lib/printf-args.c: Likewise.
58119         * lib/printf-parse.c: Likewise.
58120         * lib/progname.c: Likewise.
58121         * lib/progreloc.c: Likewise.
58122         * lib/readlink.c: Likewise.
58123         * lib/sh-quote.c: Likewise.
58124         * lib/stpcpy.c: Likewise.
58125         * lib/stpncpy.c: Likewise.
58126         * lib/strcasecmp.c: Likewise.
58127         * lib/strcasestr.c: Likewise.
58128         * lib/strcspn.c: Likewise.
58129         * lib/striconv.c: Likewise.
58130         * lib/strncasecmp.c: Likewise.
58131         * lib/strnlen1.c: Likewise.
58132         * lib/strstr.c: Likewise.
58133         * lib/strtok_r.c: Likewise.
58134         * lib/tls.c: Likewise.
58135         * lib/tmpdir.c: Likewise.
58136         * lib/unicodeio.c: Likewise.
58137         * lib/unsetenv.c: Likewise.
58138         * lib/vasnprintf.c: Likewise.
58139         * lib/vasprintf.c: Likewise.
58140         * lib/wait-process.c: Likewise.
58141         * lib/xallocsa.c: Likewise.
58142         * lib/xsetenv.c: Likewise.
58143         * lib/xstriconv.c: Likewise.
58144
58145 2006-09-13  Simon Josefsson  <jas@extundo.com>
58146
58147         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
58148         that internally, suggested by Ralf Wildenhues
58149         <Ralf.Wildenhues@gmx.de>.
58150
58151 2006-09-13  Simon Josefsson  <jas@extundo.com>
58152
58153         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
58154         @LIBOBJS@.
58155         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58156
58157 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58158
58159         * lib/_fpending.c: Include <config.h> unconditionally, since we no
58160         longer worry about uses that don't define HAVE_CONFIG_H.
58161         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
58162         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
58163         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
58164         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
58165         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
58166         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
58167         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
58168         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
58169         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
58170         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
58171         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
58172         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
58173         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
58174         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
58175         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
58176         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
58177         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
58178         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
58179         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
58180         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
58181         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
58182         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
58183         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
58184         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
58185         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
58186         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
58187         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
58188         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
58189         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
58190         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
58191         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
58192         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
58193         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
58194         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
58195         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
58196         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
58197         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
58198         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
58199         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
58200         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
58201         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
58202         Likewise.
58203
58204 2006-09-13  Eric Blake  <ebb9@byu.net>
58205
58206         * lib/getopt.c: Fix typo in last commit.
58207
58208 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58209
58210         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
58211         dgettext.
58212
58213 2006-09-12  Jim Meyering  <jim@meyering.net>
58214
58215         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
58216         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
58217         Reported by Nelson H. F. Beebe.
58218
58219 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58220
58221         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
58222         program_invocation_name and program_invocation_short_name are
58223         initialized.
58224         * lib/argp-namefrob.h: Move declarations of program_invocation_name
58225         and program_invocation_short_name to argp.h, so they are visible
58226         to user programs.
58227         * lib/argp.h: Likewise
58228
58229 2006-09-10  Bruno Haible  <bruno@clisp.org>
58230
58231         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58232         m4/inttypes_h.m4, m4/uintmax_t.m4.
58233
58234 2006-09-10  Bruno Haible  <bruno@clisp.org>
58235
58236         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
58237         gl_AC_TYPE_UINTMAX_T.
58238
58239 2006-09-10  Bruno Haible  <bruno@clisp.org>
58240
58241         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
58242
58243 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58244
58245         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
58246         convention.  Text proposed by Bruno Haible.
58247         (struct argp_option): Document the use of N_() wrappers.
58248
58249         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
58250         '\v', and translate the two parts separately, instead of feeding
58251         the whole string to gettext.  This allows to exclude
58252         '\v' from the strings visible to the translator by writing doc
58253         strings as N_("..") "\v" N_("..").
58254
58255 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
58256
58257         * config/srclist.txt: Undo latest change; the bug was fixed.
58258
58259 2006-09-09  Bruno Haible  <bruno@clisp.org>
58260
58261         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
58262         assignments if building a library without libtool.
58263         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
58264         in func_emit_lib_Makefile_am.
58265         (func_import): When building a static library libfoo.a, arrange to
58266         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
58267         (func_create_testdir): Likewise.
58268         * modules/gc (configure.ac, Makefile.am): If building statically,
58269         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
58270         * modules/iconvme (configure.ac, Makefile.am): Likewise.
58271         * modules/striconv (configure.ac, Makefile.am): Likewise.
58272         Based on a suggestion by Ralf Wildenhues.
58273
58274 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58275
58276         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58277         Check for unistd.h too, since Autoconf doesn't assume POSIX.
58278         Also:
58279
58280         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58281         Add year_2050_test to catch glibc bug 2821
58282         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58283
58284         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58285         Prefer #ifdef to #if.
58286
58287         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
58288         Return from 'main' instead of calling 'exit'.
58289
58290 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58291
58292         * lib/mktime.c (guess_time_tm): Fix bug where mktime
58293         returned the maximum time_t value rather than (time_t) -1.
58294         Problem originally reported by William Bardwell
58295         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58296
58297         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58298         Moved to here ...
58299         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58300         ... from here.
58301
58302 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58303
58304         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
58305         2821 is fixed.
58306
58307 2006-09-08  Jim Meyering  <jim@meyering.net>
58308
58309         Don't make generated files read-only.  That would bother too many
58310         people.  However, do retain the ability to work when targets are
58311         read-only: remove the destination and temporary files before writing
58312         them (when generated via sed or echo), or by using the -f option for
58313         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
58314         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58315         * modules/byteswap, modules/configmake, modules/fcntl:
58316         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58317         * modules/localcharset, modules/netinet_in, modules/poll:
58318         * modules/stdbool, modules/stdint, modules/sys_select:
58319         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58320
58321 2006-09-08  Jim Meyering  <jim@meyering.net>
58322
58323         Avoid new build failure on FreeBSD 6.0.
58324         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
58325         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
58326         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
58327
58328 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58329
58330         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
58331
58332 2006-09-07  Jim Meyering  <jim@meyering.net>
58333
58334         Fix global typo in last change: use chmod u-w, not chmod u-x.
58335         Spotted by Paul Eggert and Bruce Korb.
58336         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58337         * modules/byteswap, modules/configmake, modules/fcntl:
58338         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58339         * modules/localcharset, modules/netinet_in, modules/poll:
58340         * modules/stdbool, modules/stdint, modules/sys_select:
58341         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58342
58343 2006-09-06  Jim Meyering  <jim@meyering.net>
58344
58345         Make generated files be read-only.
58346         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
58347         Ensure that each generated file is now read-only.
58348         * modules/argz: Likewise.
58349         * modules/arpa_inet: Likewise.
58350         * modules/byteswap: Likewise.
58351         * modules/configmake: Likewise.
58352         * modules/fcntl: Likewise.
58353         * modules/fnmatch: Likewise.
58354         * modules/getopt: Likewise.
58355         * modules/glob: Likewise.
58356         * modules/inttypes: Likewise.
58357         * modules/netinet_in: Likewise.
58358         * modules/poll: Likewise.
58359         * modules/stdbool: Likewise.
58360         * modules/stdint: Likewise.
58361         * modules/sys_select: Likewise.
58362         * modules/sys_socket: Likewise.
58363         * modules/sys_stat: Likewise.
58364         * modules/sysexits: Likewise.
58365         * modules/localcharset: Same as above, but continue using temporary
58366         file named "t-$@" (why different?) rather than the "$@-t" used
58367         everywhere else.
58368
58369         * modules/sysexits (Makefile.am): Replace literal occurrences
58370         of "sysexit.h" more readable, and more consistent, "$@".
58371
58372 2006-09-06  Bruno Haible  <bruno@clisp.org>
58373
58374         * modules/striconv: New file.
58375         * modules/xstriconv: New file.
58376         * MODULES.html.sh (Internationalization functions): Add striconv,
58377         xstriconv.
58378
58379 2006-09-06  Bruno Haible  <bruno@clisp.org>
58380
58381         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
58382         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
58383         not using libtool correctly.
58384
58385 2006-09-06  Bruno Haible  <bruno@clisp.org>
58386
58387         * lib/striconv.h: New file.
58388         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
58389         iconvstring.c.
58390         * lib/xstriconv.h: New file.
58391         * lib/xstriconv.c: New file.
58392
58393 2006-09-06  Bruno Haible  <bruno@clisp.org>
58394
58395         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58396         lib_..._LDFLAGS.
58397
58398 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58399
58400         * lib/argz_.h: Sync from Libtool.
58401
58402         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
58403                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58404
58405         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
58406
58407 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58408
58409         * modules/trim: New file.
58410
58411 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58412
58413         * lib/trim.h: New file.
58414         * lib/trim.c: New file.
58415
58416 2006-09-05  Bruno Haible  <bruno@clisp.org>
58417
58418         * MODULES.html.sh (String handling): Add trim.
58419
58420 2006-09-04  Karl Berry  <karl@gnu.org>
58421
58422         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
58423         until next release.
58424
58425 2006-09-03  Bruno Haible  <bruno@clisp.org>
58426
58427         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
58428         correctly.
58429
58430 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58431
58432         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
58433         not gl_GETLOADAVG.  Omit unneeded semicolons.
58434         Problems reported by Ralf Wildenhues in
58435         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58436         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
58437         at the end, which is the usual gnulib style.
58438
58439         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
58440         of doing all the work ourselves.
58441         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
58442         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
58443
58444 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58445
58446         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
58447         Problem reported by Ralf Wildenhues in
58448         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58449
58450         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
58451         HAVE_STRUCT_STATFS_F_FSTYPENAME.
58452
58453 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58454
58455         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
58456         yesterday's patch by changing test -n to test -z.
58457
58458 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58459
58460         * modules/getloadavg (Files): Add m4/getloadavg.m4.
58461         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
58462         the former is now obsolescent.
58463
58464         * modules/chdir-long (Depends-on): Add fcntl.
58465
58466 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58467
58468         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
58469         obsolescent, and programs should use gnulib instead.
58470         * m4/getloadavg.m4: New file, with contents taken from Autoconf
58471         but with prefixes changed.
58472
58473 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58474
58475         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
58476         or stdbool.h, because they might not exist while configuring.
58477
58478         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
58479         Don't include unistd.h or limits.h; not needed, since chdir-long.h
58480         does that for us.
58481         (O_DIRECTORY): Remove.
58482
58483 2006-08-31  Eric Blake  <ebb9@byu.net>
58484
58485         * gnulib-tool: Don't let emacs change spaces to TAB.
58486
58487 2006-08-31  Bruno Haible  <bruno@clisp.org>
58488
58489         * gnulib-tool: When calling func_import more than once, do it in a
58490         subshell.
58491         Reported by Eric Blake <ebb9@byu.net>.
58492
58493 2006-08-31  Bruno Haible  <bruno@clisp.org>
58494
58495         * gnulib-tool (nl): Remove variable.
58496         (sed_transform_lib_file): Use more robust test for config-h module.
58497         (func_import): Fix typo in 2006-08-25 patch.
58498
58499 2006-08-31  Bruno Haible  <bruno@clisp.org>
58500
58501         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
58502         specified, augment Makefile.am variables instead of assigning them.
58503
58504 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58505
58506         Work around a bug in both the Linux and SunOS 64-bit kernels:
58507         nanosleep mishandles sleeps for longer than 2**31 seconds.
58508         Problem reported by Frank v Waveren in
58509         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58510         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
58511         Check for nanosleep bug.
58512         (LIB_NANOSLEEP): Append clock_gettime library if needed.
58513
58514 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58515
58516         Work around a bug in both the Linux and SunOS 64-bit kernels:
58517         nanosleep mishandles sleeps for longer than 2**31 seconds.
58518         Problem reported by Frank v Waveren in
58519         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58520         * lib/nanosleep.c (BILLION): New constant.
58521         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
58522         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
58523         implementation.
58524
58525 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58526
58527         * modules/nanosleep (Depends-on): Add gettime.
58528
58529 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58530         and Simon Josefsson  <jas@extundo.com>
58531         and Oskar Liljeblad  <oskar@osk.mine.nu>
58532
58533         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
58534         * gnulib-tool (func_import): New license type 'unmodifiable license
58535         text'.
58536         * modules/fdl: Use it.  Longer description.
58537         * module/gpl, module/lgpl: New files.
58538
58539 2006-08-30  Jim Meyering  <jim@meyering.net>
58540
58541         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
58542         shadowing the parameter.
58543
58544 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58545
58546         Sync from Libtool:
58547
58548         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58549
58550         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
58551         sharing with gnulib.  Report by Eric Blake.
58552
58553 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58554
58555         * modules/isapipe: New file.
58556         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
58557
58558 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58559
58560         * modules/configmake (Makefile.am): Add a comment, and omit
58561         the CONFIGMAKE_ prefix from generated macro names.  Suggested
58562         by Bruno Haible.
58563
58564 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58565
58566         * m4/isapipe.m4: New file.
58567
58568 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58569
58570         * lib/isapipe.c, lib/isapipe.h: New files.
58571
58572 2006-08-29  Jim Meyering  <jim@meyering.net>
58573
58574         * modules/configmake (Makefile.am): Make configmake.h depend on
58575         Makefile.  Otherwise, a stale configmake.h could hang around.
58576
58577 2006-08-29  Eric Blake  <ebb9@byu.net>
58578
58579         * lib/error.c (error_at_line, print_errno_message): Match libc, after
58580         resolution of upstream bug 3044.
58581
58582 2006-08-29  Bruno Haible  <bruno@clisp.org>
58583
58584         * modules/localcharset (Depends-on): Add configmake.
58585         (Makefile.am): Remove setting of LIBDIR through DEFS.
58586
58587 2006-08-29  Bruno Haible  <bruno@clisp.org>
58588
58589         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
58590         defined.
58591
58592 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58593
58594         * modules/fcntl: New file.
58595         * modules/chdir-safer (Depends-on): Add fcntl.
58596         * modules/fts: Likewise.
58597         * modules/mkdir-p: Likewise.
58598
58599         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
58600         This undoes the most recent change, since we're now addressing the
58601         problem in a different way.
58602
58603         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
58604         into output, since the output might be called Makefile.am even
58605         if $makefile_name is something different.
58606         (func_import): Use $makefile_am rather than
58607         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
58608         empty.
58609
58610         * modules/inttypes (Files): Add m4/inttypes-h.m4.
58611
58612 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58613
58614         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
58615         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
58616         recent change to stdint.m4, since we're now addressing the problem in a
58617         different way.
58618
58619 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58620
58621         * m4/fcntl_h.m4: New file.
58622
58623 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58624
58625         * lib/fcntl_.h: New file.
58626         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
58627         the fcntl module.
58628         * lib/dirchownmod.c: Likewise.
58629         * lib/fts.c: Likewise.
58630
58631         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
58632         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
58633         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
58634         just before including <inttypes.h>, to avoid circular inclusion.
58635
58636 2006-08-28  Jim Meyering  <jim@meyering.net>
58637
58638         * doc/visibility.texi: Actually read and correct the grammar of the
58639         sentence affected by yesterday's change.
58640
58641 2006-08-28  Eric Blake  <ebb9@byu.net>
58642
58643         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
58644         needs wrapper.
58645
58646 2006-08-28  Eric Blake  <ebb9@byu.net>
58647
58648         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
58649
58650 2006-08-28  Eric Blake  <ebb9@byu.net>
58651
58652         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
58653
58654 2006-08-28  Bruno Haible  <bruno@clisp.org>
58655
58656         * modules/c-strstr: New file, from GNU gettext.
58657         * MODULES.html.sh (String handling): Add c-strstr.
58658
58659 2006-08-28  Bruno Haible  <bruno@clisp.org>
58660
58661         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
58662         macros.
58663         Reported by Eric Blake.
58664
58665 2006-08-28  Bruno Haible  <bruno@clisp.org>
58666
58667         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
58668         (VASNPRINTF): Return a string of length > INT_MAX without failing.
58669         * lib/vasprintf.c: Include errno.h, limits.h.
58670         (EOVERFLOW): New fallback definition.
58671         (vasprintf): Test here whether the string length is > INT_MAX.
58672         * lib/vsnprintf.c: Include errno.h, limits.h.
58673         (EOVERFLOW): New fallback definition.
58674         (vsnprintf): Fix bug when generated string was too long for the buffer.
58675         Test here whether the string length is > INT_MAX.
58676
58677 2006-08-28  Bruno Haible  <bruno@clisp.org>
58678
58679         * lib/inttypes_.h (SCNX*): Remove definitions.
58680         Reported by Eric Blake.
58681
58682 2006-08-28  Bruno Haible  <bruno@clisp.org>
58683
58684         * lib/c-strstr.h: New file, from GNU gettext.
58685         * lib/c-strstr.c: New file, from GNU gettext.
58686
58687 2006-08-28  Bruno Haible  <bruno@clisp.org>
58688
58689         * gnulib-tool: Reorder some statements.
58690
58691 2006-08-28  Bruno Haible  <bruno@clisp.org>
58692
58693         * gnulib-tool: New option --makefile-name.
58694         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
58695         $makefile_name.
58696         (func_import): Write $makefile_name to the cache file, and read it from
58697         there unless explicitly specified. Use $makefile_name as file name
58698         instead of Makefile.am. Adjust the recommendations accordingly.
58699
58700 2006-08-28  Bruno Haible  <bruno@clisp.org>
58701
58702         * gnulib-tool (func_verify_module): Check against misapplying patch.
58703
58704 2006-08-28  Bruno Haible  <bruno@clisp.org>
58705
58706         * gnulib-tool (func_relativize, func_relconcat): New functions.
58707         Give an error if --local-dir is given with --update.
58708         Remove trailing slashes from $local_gnulib_dir.
58709         (func_import): Store the relativized $local_gnulib_dir in
58710         gnulib-cache.m4, and read it from there if not specified explicitly.
58711
58712 2006-08-28  Bruno Haible  <bruno@clisp.org>
58713
58714         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
58715         is the current directory. Respect also $local_gnulib_dir.
58716
58717 2006-08-28  Bruno Haible  <bruno@clisp.org>
58718             Simon Josefsson  <jas@extundo.com>
58719
58720         BeOS portability.
58721         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
58722
58723 2006-08-27  Jim Meyering  <jim@meyering.net>
58724
58725         * doc/visibility.texi: Remove duplicate word: "pointer".
58726
58727 2006-08-26  Bruno Haible  <bruno@clisp.org>
58728
58729         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
58730         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
58731         (Makefile.am): Create inttypes.h from inttypes_.h.
58732         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
58733
58734         * modules/imaxabs: New file.
58735
58736         * modules/imaxdiv: New file.
58737
58738 2006-08-26  Bruno Haible  <bruno@clisp.org>
58739
58740         * m4/inttypes.m4: New file.
58741         * m4/_inttypes_h.m4: Remove file.
58742         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
58743         PRI_MACROS_BROKEN.
58744         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
58745
58746         * m4/imaxabs.m4: New file.
58747
58748         * m4/imaxdiv.m4: New file.
58749
58750 2006-08-26  Bruno Haible  <bruno@clisp.org>
58751
58752         * lib/inttypes_.h: New file.
58753         * lib/inttypes.h: Remove file.
58754         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
58755
58756         * lib/imaxabs.c: New file.
58757
58758         * lib/imaxdiv.c: New file.
58759
58760 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58761
58762         New config-h module, so that "make" output needn't be cluttered
58763         by -DHAVE_CONFIG_H.
58764         * MODULES.html.sh (Support for building libraries and executables):
58765         Add config-h.
58766         * modules/config-h: New file.
58767         * gnulib-tool (nl, sed_transform_lib_file): New vars.
58768         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
58769         the config-h module is used.
58770
58771         New configmake module, so that "make" output needn't be cluttered
58772         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
58773         * MODULES.html.sh (Support for building libraries and executables):
58774         Add configmake.
58775         * modules/configmake: New file.
58776
58777 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58778
58779         * m4/config-h.m4: New file.
58780
58781 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58782
58783         * config/srclist.txt: Add elisp-comp.
58784
58785 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58786
58787         * MODULES.html.sh (Support for building libraries and executables):
58788         Add elisp-comp.
58789         * build-aux/elisp-comp: New file.
58790         * modules/elisp-comp: New file.
58791
58792 2006-08-24  Bruno Haible  <bruno@clisp.org>
58793
58794         * gnulib-tool (func_create_testdir): Use non-default values of
58795         sourcebase and m4base.
58796
58797 2006-08-24  Bruno Haible  <bruno@clisp.org>
58798
58799         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
58800         HTML structure.
58801
58802 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58803
58804         * modules/openat (Depends-on): Add lchown.
58805
58806 2006-08-23  Bruno Haible  <bruno@clisp.org>
58807
58808         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
58809         of gl_LOCK_EARLY instead of gl_LOCK.
58810
58811 2006-08-23  Bruno Haible  <bruno@clisp.org>
58812
58813         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
58814         on OSF/1 to no.
58815         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
58816
58817 2006-08-23  Bruno Haible  <bruno@clisp.org>
58818
58819         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
58820         as unusable.
58821
58822         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
58823         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
58824         (gl_LOCK): New macro.
58825
58826 2006-08-22  Simon Josefsson  <jas@extundo.com>
58827
58828         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
58829         to md5 module.
58830
58831 2006-08-22  Simon Josefsson  <jas@extundo.com>
58832
58833         * MODULES.html.sh: Add "Support for maintaining and release
58834         projects".
58835
58836         * build-aux/gnupload: New file, from coreutils.
58837
58838 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58839
58840         Avoid the need for AC_LIBSOURCES in m4 macros.
58841         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
58842         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
58843         * modules/check-version (EXTRA_DIST): Add check-version.h.
58844         * modules/crc (EXTRA_DIST): Add crc.h.
58845         * modules/des (EXTRA_DIST): Add des.h.
58846         * modules/gc (EXTRA_DIST): Add gc.h.
58847         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
58848         * modules/getline (EXTRA_DIST): Add getline.h.
58849         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
58850         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
58851         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
58852         * modules/md2 (EXTRA_DIST): Add md2.h.
58853         * modules/md4 (EXTRA_DIST): Add md4.h.
58854         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
58855         * modules/read-file (EXTRA_DIST): Add read-file.h.
58856         * modules/readline (EXTRA_DIST): Add readline.h.
58857         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
58858         rijndael-api-fst.h.
58859
58860 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58861
58862         * m4/rijndael.m4 (gl_ARCFOUR):
58863         * m4/arctwo.m4 (gl_ARCTWO):
58864         * m4/check-version.m4 (gl_CHECK_VERSION):
58865         * m4/crc.m4 (gl_CRC):
58866         * m4/des.m4 (gl_DES):
58867         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
58868         * m4/gc.m4 (gl_GC):
58869         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
58870         * m4/getline.m4 (gl_FUNC_GETLINE):
58871         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
58872         * m4/hmac-md5.m4 (gl_HMAC_MD5):
58873         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
58874         * m4/md2.m4 (gl_MD2):
58875         * m4/md4.m4 (gl_MD4):
58876         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
58877         * m4/read-file.m4 (gl_FUNC_READ_FILE):
58878         * m4/readline.m4 (gl_FUNC_READLINE):
58879         * m4/rijndael.m4 (gl_RIJNDAEL):
58880         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58881         to get the necessary .h files and whatnot.
58882
58883 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58884
58885         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
58886         gnulib rather than the other way around.
58887         * config/srclistvars.sh (COREUTILS): Remove.
58888
58889 2006-08-22  Jim Meyering  <jim@meyering.net>
58890
58891         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
58892
58893         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
58894
58895 2006-08-22  Eric Blake  <ebb9@byu.net>
58896
58897         * modules/regexprops-generic: New file.
58898         * MODULES.html.sh (Support for building documentation): List it.
58899
58900 2006-08-22  Eric Blake  <ebb9@byu.net>
58901
58902         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
58903         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
58904         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
58905         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
58906
58907 2006-08-22  Bruno Haible  <bruno@clisp.org>
58908
58909         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
58910         and lib_LTLIBRARIES like the other lib_* variables.
58911
58912 2006-08-22  Bruno Haible  <bruno@clisp.org>
58913
58914         * build-aux/x-to-1.in: New file, from GNU gettext.
58915
58916 2006-08-22  Bruno Haible  <bruno@clisp.org>
58917
58918         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58919         <utmpx.h> exists.
58920
58921 2006-08-22  Bruno Haible  <bruno@clisp.org>
58922
58923         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
58924         <utmpx.h> exists.
58925
58926 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58927
58928         BeOS portability.
58929         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
58930         exist.
58931         Problem reported by Bruno Haible.
58932
58933 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58934
58935         Avoid the need for AC_LIBSOURCES in m4 macros.
58936         * modules/acl (EXTRA_DIST): Add acl.h.
58937         * modules/argmatch (Files): Add m4/argmatch.m4.
58938         (configure.ac): Add gl_ARGMATCH.
58939         (EXTRA_DIST): Renamed from lib_SOURCES, for
58940         consistency with the other modules.  Remove argmatch.c.
58941         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
58942         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
58943         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
58944         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
58945         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
58946         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
58947         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
58948         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
58949         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
58950         * modules/closeout (EXTRA_DIST): Add closeout.h.
58951         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
58952         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
58953         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
58954         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
58955         dirname.h; remove basename.c and stripslash.c.
58956         * modules/exclude (EXTRA_DIST): Add exclude.h.
58957         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
58958         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
58959         * modules/file-type (EXTRA_DIST): Add file-type.h.
58960         * modules/filemode (EXTRA_DIST): Add filemode.h.
58961         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
58962         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58963         * modules/fpending (EXTRA_DIST): Add __fpending.h.
58964         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
58965         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
58966         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
58967         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
58968         * modules/getdate (EXTRA_DIST): Add getdate.c.
58969         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
58970         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
58971         * modules/getpass (EXTRA_DIST): Add getpass.h.
58972         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
58973         * modules/group-member (EXTRA_DIST): Add group-member.h.
58974         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
58975         * modules/hash (EXTRA_DIST): Add hash.h.
58976         * modules/human (EXTRA_DIST): Add human.h.
58977         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
58978         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
58979         * modules/lchown (EXTRA_DIST): Add lchown.h.
58980         * modules/long-options (EXTRA_DIST): Add long-options.h.
58981         * modules/lstat (EXTRA_DIST): Add lstat.h.
58982         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
58983         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
58984         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
58985         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
58986         * modules/memxor (EXTRA_DIST): Add memxor.h.
58987         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
58988         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
58989         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
58990         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
58991         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
58992         * modules/physmem (EXTRA_DIST): Add physmem.h.
58993         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
58994         * modules/posixver (EXTRA_DIST): Add posixver.h.
58995         * modules/quote (EXTRA_DIST): Add quote.h.
58996         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
58997         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
58998         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
58999         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
59000         regex_internal.h regexec.c.
59001         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
59002         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
59003         * modules/same (EXTRA_DIST): Add same.h.
59004         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
59005         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
59006         * modules/savedir (EXTRA_DIST): Add savedir.h.
59007         * modules/sha1 (EXTRA_DIST): Add sha1.h.
59008         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
59009         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
59010         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
59011         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
59012         * modules/strdup (EXTRA_DIST): Add strdup.h.
59013         * modules/strftime (EXTRA_DIST): Add strftime.h.
59014         * modules/strndup (EXTRA_DIST): Add strndup.h.
59015         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
59016         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
59017         * modules/time_r (EXTRA_DIST): Add time_r.h.
59018         * modules/timespec (EXTRA_DIST): Add timespec.h.
59019         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59020         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
59021         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
59022         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
59023         * modules/userspec (EXTRA_DIST): Add userspec.h.
59024         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
59025         * modules/utimens (EXTRA_DIST): Add utimens.h.
59026         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
59027         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
59028         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
59029         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
59030         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
59031         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
59032         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
59033         * modules/yesno (EXTRA_DIST): Add yesno.h.
59034
59035 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59036
59037         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
59038
59039         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
59040         * m4/dev-ino.m4, same-inode.m4: Remove.
59041
59042         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
59043         * m4/acl.m4 (AC_FUNC_ACL):
59044         * m4/backupfile.m4 (gl_BACKUPFILE):
59045         * m4/c-strtod.m4 (gl_C99_STRTOLD):
59046         * m4/canon-host.m4 (gl_CANON_HOST):
59047         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59048         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
59049         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
59050         * m4/cloexec.m4 (gl_CLOEXEC):
59051         * m4/close-stream.m4 (gl_CLOSE_STREAM):
59052         * m4/closeout.m4 (gl_CLOSEOUT):
59053         * m4/dirfd.m4 (gl_FUNC_DIRFD):
59054         * m4/dirname.m4 (gl_DIRNAME):
59055         * m4/exclude.m4 (gl_EXCLUDE):
59056         * m4/exitfail.m4 (gl_EXITFAIL):
59057         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
59058         * m4/file-type.m4 (gl_FILE_TYPE):
59059         * m4/filemode.m4 (gl_FILEMODE):
59060         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
59061         * m4/fpending.m4 (gl_FUNC_FPENDING):
59062         * m4/fprintftime.m4 (gl_FPRINTFTIME):
59063         * m4/fts.m4 (gl_FUNC_FTS):
59064         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
59065         * m4/getdate.m4 (gl_GETDATE):
59066         * m4/gethrxtime.m4 (gl_GETHRXTIME):
59067         * m4/getpagesize.m4 (gl_GETPAGESIZE):
59068         * m4/getpass.m4 (gl_FUNC_GETPASS):
59069         * m4/gettime.m4 (gl_GETTIME):
59070         * m4/getugroups.m4 (gl_GETUGROUPS):
59071         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
59072         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
59073         * m4/hard-locale.m4 (gl_HARD_LOCALE):
59074         * m4/hash.m4 (gl_HASH):
59075         * m4/idcache.m4 (gl_IDCACHE):
59076         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
59077         * m4/lchown.m4 (gl_FUNC_LCHOWN):
59078         * m4/long-options.m4 (gl_LONG_OPTIONS):
59079         * m4/lstat.m4 (gl_FUNC_LSTAT):
59080         * m4/md5.m4 (gl_MD5):
59081         * m4/memcasecmp.m4 (gl_MEMCASECMP):
59082         * m4/memcoll.m4 (gl_MEMCOLL):
59083         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
59084         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
59085         * m4/memxor.m4 (gl_MEMXOR):
59086         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
59087         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
59088         * m4/modechange.m4 (gl_MODECHANGE):
59089         * m4/mountlist.m4 (gl_MOUNTLIST):
59090         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59091         * m4/openat.m4 (gl_FUNC_OPENAT):
59092         * m4/pathmax.m4 (gl_PATHMAX):
59093         * m4/physmem.m4 (gl_PHYSMEM):
59094         * m4/posixtm.m4 (gl_POSIXTM):
59095         * m4/posixver.m4 (gl_POSIXVER):
59096         * m4/quote.m4 (gl_QUOTE):
59097         * m4/quotearg.m4 (gl_QUOTEARG):
59098         * m4/readtokens.m4 (gl_READTOKENS):
59099         * m4/readutmp.m4 (gl_READUTMP):
59100         * m4/regex.m4 (gl_REGEX):
59101         * m4/safe-read.m4 (gl_SAFE_READ):
59102         * m4/safe-write.m4 (gl_SAFE_WRITE):
59103         * m4/same.m4 (gl_SAME):
59104         * m4/save-cwd.m4 (gl_SAVE_CWD):
59105         * m4/savedir.m4 (gl_SAVEDIR):
59106         * m4/settime.m4 (gl_SETTIME):
59107         * m4/sha1.m4 (gl_SHA1):
59108         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
59109         * m4/stat-macros.m4 (gl_STAT_MACROS):
59110         * m4/stat-time.m4 (gl_STAT_TIME):
59111         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
59112         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
59113         * m4/strdup.m4 (gl_FUNC_STRDUP):
59114         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
59115         * m4/strndup.m4 (gl_FUNC_STRNDUP):
59116         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
59117         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
59118         * m4/time_r.m4 (gl_TIME_R):
59119         * m4/timespec.m4 (gl_TIMESPEC):
59120         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
59121         * m4/unlinkdir.m4 (gl_UNLINKDIR):
59122         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
59123         * m4/userspec.m4 (gl_USERSPEC):
59124         * m4/utimecmp.m4 (gl_UTIMECMP):
59125         * m4/utimens.m4 (gl_UTIMENS):
59126         * m4/xalloc.m4 (gl_XALLOC):
59127         * m4/xgetcwd.m4 (gl_XGETCWD):
59128         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
59129         * m4/xreadlink.m4 (gl_XREADLINK):
59130         * m4/xstrtod.m4 (gl_XSTRTOD):
59131         * m4/yesno.m4 (gl_YESNO):
59132         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59133         to get the necessary .h files and whatnot.
59134
59135 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
59136             Bruno Haible  <bruno@clisp.org>
59137
59138         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
59139         /bin/sh understanding of '!' conditional negation.
59140
59141 2006-08-21  Jim Meyering  <jim@meyering.net>
59142
59143         * modules/openat (Depends-on): Really alphabetize.
59144
59145         * modules/acl (Depends-on): Add error and quote.
59146
59147         * check-module (find_included_lib_files): Add at-func.c to the
59148         ok-to-include-more-than-once white list.
59149
59150         * modules/openat (Depends-on): Add lstat.  Alphabetize.
59151
59152 2006-08-21  Bruno Haible  <bruno@clisp.org>
59153
59154         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59155         Emit a pkgdata_DATA variable only if some snippets add contents to it.
59156         Reported by Martin Lambers <marlam@marlam.de>.
59157
59158 2006-08-21  Bruno Haible  <bruno@clisp.org>
59159
59160         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
59161         specify an installation location, don't emit a noinst_LIBRARIES or
59162         noinst_LTLIBRARIES assignment.
59163
59164 2006-08-21  Bruno Haible  <bruno@clisp.org>
59165
59166         BeOS portability.
59167         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
59168         BeOS has mbrtowc() but no <wctype.h>.
59169
59170 2006-08-21  Bruno Haible  <bruno@clisp.org>
59171
59172         BeOS portability.
59173         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
59174         exist.
59175
59176 2006-08-21  Bruno Haible  <bruno@clisp.org>
59177
59178         BeOS portability.
59179         * lib/mbchar.h: Include <wctype.h> only if it exists.
59180
59181 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59182
59183         Remove files that are no longer needed by their respective modules.
59184         * m4/obstack.m4: Remove.
59185         * m4/strerror_r.m4: Remove.
59186         * m4/uint32_t.m4: Remove.
59187         * m4/uintptr_t.m4: Remove.
59188         * m4/ullong_max.m4: Remove.
59189         * m4/xstrtoimax.m4: Remove.
59190         * m4/xstrtoumax.m4: Remove.
59191
59192         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
59193         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
59194         dependencies now capture this.
59195
59196         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
59197         Do not use AC_LIBSOURCES, since gnulib modules now do this.
59198         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
59199         * m4/human.m4 (gl_HUMAN): Likewise.
59200         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
59201         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
59202
59203         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
59204
59205         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
59206         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
59207         stdint.
59208         * m4/human.m4 (gl_HUMAN): Likewise.
59209         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
59210         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
59211         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59212         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59213         * m4/xstrtol (gl_XSTRTOL): Likewise.
59214
59215         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
59216         AC_TYPE_LONG_LONG_INT.
59217         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59218         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
59219         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
59220         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59221
59222         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
59223         on stdbool.
59224
59225         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
59226         (gl_PREREQ_XSTRTOUL): Remove.
59227
59228         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
59229
59230         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
59231         mode.
59232
59233 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59234
59235         Add and change modules to make it easier for coreutils to use
59236         gnulib-tool.
59237         * modules/backupfile (Files): Remove m4/d-ino.m4.
59238         (Depends-on): Add d-ino.
59239         * modules/cycle-check (Depends-on): Add stdint.
59240         (lib_SOURCES): Add cycle-check.h.
59241         * modules/d-ino: New module.
59242         * modules/d-type: New module.
59243         * modules/error (Files): Remove m4/strerror_r.m4.
59244         * modules/filemode (Files): Add m4/st_dm_mode.m4.
59245         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59246         m4/inttypes_h.m4, m4/uintmax_t.m4.
59247         (Depends-on): Add stdint.
59248         (lib_SOURCES): Add fsusage.h.
59249         * modules/getcwd (Files): Remove d-ino.m4.
59250         (Depends-on): Add d-ino.
59251         * modules/getndelim2 (Depends-on): Add stdint.
59252         * modules/glob (Files): Remove m4/d-type.m4.
59253         (Depends-on): Add d-type.
59254         * modules/host-os: New module.
59255         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
59256         m4/inttypes_h.m4, m4/uintmax_t.m4.
59257         * Depends-on: Add stdint.
59258         (lib_SOURCES): Add human.h.
59259         * modules/inttostr (Files): Remove m4/intmax_t.m4,
59260         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
59261         m4/uintmax_t.m4, m4/ulonglong.m4.
59262         (Depends-on): Add stdint.
59263         (EXTRA_DIST): Add inttostr.h.
59264         * modules/lchmod: New module.
59265         * modules/link-follow: New module.
59266         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
59267         (Depends-on): Add lchmod.
59268         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
59269         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
59270         (Depends-on): Add stdint.
59271         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
59272         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
59273         (Depends-on): Add stdint.
59274         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
59275         * modules/perl: New module.
59276         * modules/regex (Depends-on): Add stdint.
59277         * modules/rmdir-errno: New module.
59278         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59279         m4/intmax_t.m4.
59280         (Depends-on): Add stdint.
59281         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59282         m4/uintmax_t.m4.
59283         (Depends-on): Add stdint.
59284         * modules/unlink-busy: New module.
59285         * modules/utimecmp (Depends-on): Add stdint.
59286         * modules/uptime: New module.
59287         * modules/winsz-ioctl: New module.
59288         * modules/winsz-termios: New module.
59289         * modules/xnanosleep (Depends-on): Add nanosleep.
59290         * modules/ullong_max: Remove.
59291         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
59292         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
59293         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
59294         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
59295         (Depends-on): Add inttypes.
59296         (lib_SOURCES): Add xstrtol.h.
59297         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
59298         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
59299         * MODULES.html.sh: Move 'assert' into the assert section.
59300         Move 'dummy' into the linking section.
59301         Remove ullong_max.
59302         Add section for compatibility checks for POSIX:2001 functions,
59303         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
59304         winsz-ioctl, and winsz-termios into it.
59305         Add lchmod.
59306         Add top-level Misc section and put host-os, perl, and uptime
59307         into it.
59308
59309 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59310
59311         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
59312         now assume the stdint module.  Do not include inttypes.h.
59313         * lib/fsusage.h: Likewise.
59314         * lib/getndelim2.c: Likewise.
59315         * lib/human.h: Likewise.
59316         * lib/inttostr.h: Likewise.
59317         * lib/obstack.c: Likewise.
59318         * lib/regex_internal.h: Likewise.
59319         * lib/tempname.c: Likewise.
59320         * lib/utimecmp.c: Likewise.
59321         * lib/xstrtol.h: Likewise.
59322
59323         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
59324
59325         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
59326         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
59327         * lib/xtime.h: Likewise.
59328
59329 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59330
59331         * modules/openat (Files): Add lib/fchmodat.c.
59332         Fixes problem reported by Jay Youngman.
59333
59334 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59335
59336         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
59337         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
59338
59339 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
59340             Bruno Haible  <bruno@clisp.org>
59341
59342         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
59343         and is a script that invokes bison. Tighten the code. Add comments.
59344
59345 2006-08-18  Jim Meyering  <jim@meyering.net>
59346
59347         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
59348         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
59349         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
59350         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
59351
59352 2006-08-18  Bruno Haible  <bruno@clisp.org>
59353
59354         * modules/bison-i18n: New file.
59355         * MODULES.html.sh (Internationalization functions): Add it.
59356
59357 2006-08-18  Bruno Haible  <bruno@clisp.org>
59358
59359         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
59360         sys/statvfs.h. When getmntinfo was found, check its declaration and
59361         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
59362
59363 2006-08-18  Bruno Haible  <bruno@clisp.org>
59364
59365         * m4/bison-i18n.m4: New file, from bison.
59366
59367 2006-08-18  Bruno Haible  <bruno@clisp.org>
59368
59369         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
59370         (ME_DUMMY): Treat "kernfs" as a dummy.
59371         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
59372
59373 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59374
59375         Update from coreutils.
59376
59377         2006-08-15  Jim Meyering  <jim@meyering.net>
59378
59379         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
59380
59381         2006-01-17  Jim Meyering  <jim@meyering.net>
59382
59383         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
59384
59385         2006-01-11  Jim Meyering  <jim@meyering.net>
59386
59387         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
59388         Check for the lchmod function.
59389
59390 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59391
59392         Update from coreutils.
59393
59394         * lib/__fpending.h: Add copyright notice.
59395         * lib/fprintftime.h: Likewise.
59396         * lib/savedir.c: Use (C) in copyright notice.
59397         * lib/savedir.h: Likewise.
59398
59399         2006-08-15  Jim Meyering  <jim@meyering.net>
59400
59401         * lib/at-func.c: New file, with the logic of all emulated at-functions.
59402         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
59403         in support of the EXPECTED_ERRNO macro.
59404         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
59405         definitions.  Instead, define the appropriate symbols and include
59406         "at-func.c".
59407         * lib/mkdirat.c (mkdirat): Likewise.
59408         * lib/fchmodat.c (fchmodat): Likewise.
59409         (ENOSYS): Remove definition.
59410         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
59411         it.  Don't include "unistd--.h" -- it wasn't ever used.
59412
59413         2006-01-17  Jim Meyering  <jim@meyering.net>
59414
59415         Rewrite fts.c not to change the current working directory,
59416         by using openat, fstatat, fdopendir, etc..
59417
59418         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
59419         (HAVE_OPENAT_SUPPORT): Define.
59420         [_LIBC] (fchdir): Don't undef or define; no longer used.
59421         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
59422         Now, this `function' always succeeds, and consumes its file descriptor
59423         parameter -- so callers must not close such FDs.  Update callers.
59424         (diropen_fd, opendirat, cwd_advance_fd): New functions.
59425         (diropen): Add parameter, SP.  Adjust all callers.
59426         Implement using diropen_fd, rather than open.
59427         (fts_open): Initialize new member, fts_cwd_fd.
59428         Remove fts_rft-setting code.
59429         (fts_close): Close fts_cwd_fd, if necessary.
59430         (__opendir2): Define in terms of opendir or opendirat,
59431         depending on whether the FST_NOCHDIR flag is set.
59432         (fts_build): Since fts_safe_changedir consumes its FD, and since
59433         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
59434         and close the dup'd file descriptor upon failure.
59435         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
59436         (fts_safe_changedir): Tweak semantics to reflect that this function
59437         now calls cwd_advance_fd and hence consumes its FD argument.
59438         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
59439         [struct FTS] (fts_rft): Remove now-unused member.
59440         [struct FTS] (fts_cycle.state): Improve comment.
59441
59442         * lib/openat.c (openat_needs_fchdir): New function.
59443         * lib/openat.h (openat_needs_fchdir): Declare it.
59444
59445 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59446
59447         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
59448         Problem and fix reported by Pádraig Brady in
59449         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
59450
59451 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59452
59453         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
59454
59455 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59456
59457         * lib/memcoll.c (memcoll): Optimize for the common case where the
59458         arguments are bytewise equal.
59459
59460 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59461
59462         * doc/regexprops-generic.texi: Add a copyright notice.
59463
59464 2006-08-15  Bruno Haible  <bruno@clisp.org>
59465
59466         * modules/tmpdir (License): Change to LGPL.
59467
59468 2006-08-15  Bruno Haible  <bruno@clisp.org>
59469
59470         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
59471         module.
59472
59473 2006-08-14  Simon Josefsson  <jas@extundo.com>
59474
59475         * config/srclist.txt: Add gnupload.
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         * tests/test-lock.c: Likewise.
59482         * tests/test-stdint.c: Likewise.
59483         * tests/test-tls.c: Likewise.
59484
59485         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
59486         prelude-manager.  User shorter URLs for GNU projects, without '?'.
59487         Add copyright notice.
59488
59489         * check-module: Add copyright notice.  Output a copyright
59490         notice if "--version" is specified.
59491         * modules/COPYING: New file.
59492         * tests/test-getaddrinfo.c: Add copyright notice.
59493         * tests/test-verify.c: Likewise.
59494
59495 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59496
59497         Change copyright notice from LGPL 2 to GPL 2, since that's the
59498         standard form used in the gnulib repository.
59499         * lib/lock.c: LGPL -> GPL.
59500         * lib/lock.h: Likewise.
59501         * lib/strnlen1.c: Likewise.
59502         * lib/strnlen1.h: Likewise.
59503         * lib/tls.c: Likewise.
59504         * lib/tls.h: Likewise.
59505         * lib/tmpdir.c: Likewise.
59506
59507         * lib/TODO: Remove; this belongs only in coreutils.
59508
59509 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59510
59511         Add copyright notices to long-enough files that lack them, since
59512         otherwise the files aren't clearly free.  Use the same notice that
59513         getdate.texi already uses.
59514         * doc/alloca-opt.texi: Add copyright notice.
59515         * doc/alloca.texi: Likewise.
59516         * doc/ctime.texi: Likewise.
59517         * doc/functions.texi: Likewise.
59518         * doc/gcd.texi: Likewise.
59519         * doc/gnulib-tool.texi: Likewise.
59520         * doc/inet_ntoa.texi: Likewise.
59521         * doc/visibility.texi: Likewise.
59522
59523         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
59524         * doc/quote.texi: Add copyright notice.
59525
59526         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
59527         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
59528         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
59529         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
59530         is now obsolete, and give a pointer to the Sun list.
59531         Add copyright notice.
59532
59533 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59534
59535         * config/srclistvars.sh: Add copyright notice.
59536
59537 2006-08-14  Eric Blake  <ebb9@byu.net>
59538
59539         Import the following change from libc:
59540
59541         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
59542
59543         Upstream bug 2997.
59544         * lib/misc/error.c: Add space between program name and message if file
59545         name is missing.
59546
59547 2006-08-12  Karl Berry  <karl@gnu.org>
59548
59549         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
59550         remove, these originate in gnulib now.
59551
59552 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59553
59554         * doc/Makefile (standards.info standards.html standards.dvi):
59555         Also depend on make-stds.texi.
59556
59557 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59558
59559         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
59560         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
59561
59562         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
59563         in wchar_t.  Problem reported by Eric Blake.
59564
59565         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
59566         LEN is smaller than SIZE.  Suggested by Bruno Haible.
59567         Also, help the compiler to keep LEN in a register.
59568
59569 2006-08-11  Eric Blake  <ebb9@byu.net>
59570
59571         * users.txt: Sort.  Add tar.
59572
59573 2006-08-11  Bruno Haible  <bruno@clisp.org>
59574
59575         * users.txt: New file.
59576
59577 2006-08-11  Bruno Haible  <bruno@clisp.org>
59578
59579         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
59580         before <wchar.h>. Needed for OSF/1 and BSD/OS.
59581
59582 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59583
59584         * modules/snprintf (Depends-on): Remove minmax.
59585         (Maintainer): Add self and Bruno.
59586
59587 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59588
59589         * lib/.cppi-disable: Add snprintf.h, socket_.h.
59590         * lib/snprintf.c: Include <errno.h> and <limits.h>.
59591         (EOVERFLOW): Define if the system does not.
59592         Do not include "minmax.h"; it wasn't used.
59593         (snprintf): Don't assume size_t promotes to an unsigned type.
59594         Fix bug when generated string was too long for the buffer: the
59595         buffer's contents are supposed to be the initial prefix of the
59596         output.  Don't assume vasnprintf returns EOVERFLOW if the size
59597         exceeds INT_MAX; do the check ourselves.
59598
59599         Import the following changes from libc:
59600
59601         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
59602
59603         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
59604         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
59605         set wc to the byte which couldn't be converted.
59606         (re_string_reconstruct): Don't clear valid_raw_len before calling
59607         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
59608         tip_context using re_string_context_at.
59609
59610         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
59611
59612         * lib/posix/regex.h: g++ still cannot handled [restrict].
59613
59614         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
59615
59616         * lib/posix/regex.h: Remove special handling for VMS.
59617
59618 2006-08-10  Jim Meyering  <jim@meyering.net>
59619
59620         * modules/same-inode: New module.
59621         * modules/dev-ino: New module.
59622         * modules/cycle-check: Depend on these modules, rather than simply
59623         including their .h files.
59624         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
59625         required via m4/cycle-check.m4.
59626         * modules/same: Depend on new same-inode module, rather than
59627         including same-inode.h.
59628         * modules/chdir-safer: New file.
59629
59630         * modules/chown (Depends-on): Add stat-macros.
59631
59632 2006-08-10  Jim Meyering  <jim@meyering.net>
59633
59634         * m4/cycle-check.m4: New file.
59635         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
59636         * m4/dev-ino.m4, m4/same-inode.m4: New files.
59637
59638 2006-08-10  Eric Blake  <ebb9@byu.net>
59639
59640         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
59641         in from original proposal.
59642
59643 2006-08-10  Eric Blake  <ebb9@byu.net>
59644         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59645
59646         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
59647         namespace.
59648
59649 2006-08-10  Bruno Haible  <bruno@clisp.org>
59650
59651         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
59652         as well.
59653
59654 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59655
59656         Sync from coreutils.
59657
59658         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
59659
59660         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
59661         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
59662
59663 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59664
59665         * modules/restrict: Remove; no longer needed now that we assume
59666         Autoconf 2.59 or later.
59667         * MODULES.html.sh: Remove 'restrict'.
59668         * modules/argp (Depends-on): Remove 'restrict'.
59669         * modules/base64 (Depends-on): Likewise.
59670         * modules/gc (Depends-on): Likewise.
59671         * modules/getaddrinfo (Depends-on): Likewise.
59672         * modules/glob (Depends-on): Likewise.
59673         * modules/inet_ntop (Depends-on): Likewise.
59674         * modules/inet_pton (Depends-on): Likewise.
59675         * modules/memxor (Depends-on): Likewise.
59676         * modules/regex (Depends-on): Likewise.
59677         * modules/strtok_r (Depends-on): Likewise.
59678         * modules/time_r (Depends-on): Likewise.
59679
59680 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59681
59682         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
59683         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
59684         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59685         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
59686         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
59687         * m4/memxor.m4 (gl_MEMXOR): Likewise.
59688         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
59689         gl_C_RESTRICT replaced by AC_C_RESTRICT.
59690
59691         Merge from coreutils.
59692         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
59693         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
59694         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59695         * m4/time_r.m4 (gl_TIME_R): Likewise.
59696
59697 2006-08-09  Karl Berry  <karl@gnu.org>
59698
59699         * config/srclist.txt: no more gettext-tools, per Bruno.
59700
59701 2006-08-08  Eric Blake  <ebb9@byu.net>
59702
59703         * modules/verror: New module.
59704         * MODULES.html.sh: Document it.
59705
59706 2006-08-08  Eric Blake  <ebb9@byu.net>
59707
59708         * lib/verror.h, lib/verror.c: New files.
59709
59710 2006-08-08  Eric Blake  <ebb9@byu.net>
59711
59712         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
59713         verror_at_line output complies with GNU Coding Standards even when
59714         file is NULL.
59715
59716 2006-08-07  Bruno Haible  <bruno@clisp.org>
59717
59718         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
59719         versions of AIX.
59720         Reported by Ralf Wildenhues.
59721
59722 2006-08-07  Bruno Haible  <bruno@clisp.org>
59723
59724         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
59725         in an AC_DEFUN. Needed so that the autoconf snippets can use
59726         AC_REQUIRE.
59727
59728 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59729
59730         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59731         Initialize pkgdata_DATA.
59732         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
59733         overriding it.
59734
59735 2006-08-06  Eric Blake  <ebb9@byu.net>
59736
59737         * lib/error.h: Fold in some upstream changes from glibc.
59738         * lib/error.c: Likewise.
59739
59740 2006-08-04  Bruno Haible  <bruno@clisp.org>
59741
59742         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59743         Make the mostlyclean-local rule depend on mostlyclean-generic.
59744         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
59745
59746 2006-07-31  Bruno Haible  <bruno@clisp.org>
59747
59748         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
59749         <stdlib.h>, <string.h>.
59750
59751 2006-07-30  Bruno Haible  <bruno@clisp.org>
59752
59753         * modules/readlink (License): Change to LGPL.
59754
59755 2006-07-30  Bruno Haible  <bruno@clisp.org>
59756
59757         * modules/javaversion (Makefile.am): Distribute javaversion.java and
59758         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
59759         set PKGDATADIR to point to it.
59760
59761 2006-07-30  Bruno Haible  <bruno@clisp.org>
59762
59763         * modules/csharpexec (configure.ac): Comment out macro invocation.
59764         * modules/javaexec (configure.ac): Likewise.
59765         * modules/javacomp-script (configure.ac): Likewise.
59766
59767         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
59768
59769 2006-07-30  Bruno Haible  <bruno@clisp.org>
59770
59771         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
59772         linked-list.
59773
59774 2006-07-30  Bruno Haible  <bruno@clisp.org>
59775
59776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
59777
59778 2006-07-30  Bruno Haible  <bruno@clisp.org>
59779
59780         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59781         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
59782         get removed.
59783
59784 2006-07-29  Bruno Haible  <bruno@clisp.org>
59785
59786         Make it possible for gnulib-tool to work with locally modified or
59787         augmented gnulib repositories.
59788         * gnulib-tool (func_usage): Document --local-dir option.
59789         (local_gnulib_dir): New variable.
59790         Handle --local-dir option.
59791         (func_lookup_file): New function.
59792         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
59793         (func_get_description, func_get_filelist, func_get_description,
59794         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
59795         func_get_automake_snippet, func_get_include_directive,
59796         func_get_license, func_get_maintainer): Use func_lookup_file.
59797         (func_import, func_create_testdir): Use func_lookup_file.
59798
59799 2006-07-29  Bruno Haible  <bruno@clisp.org>
59800
59801         * modules/setenv (Depends-on): Add unistd.
59802
59803 2006-07-29  Bruno Haible  <bruno@clisp.org>
59804
59805         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
59806
59807 2006-07-29  Bruno Haible  <bruno@clisp.org>
59808
59809         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
59810
59811 2006-07-29  Bruno Haible  <bruno@clisp.org>
59812
59813         * gnulib-tool (import, update): If there is no Makefile.am, look at
59814         aclocal.m4, instead of bailing out.
59815
59816 2006-07-29  Bruno Haible  <bruno@clisp.org>
59817
59818         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
59819         Categorize the options by when they are useful.
59820
59821 2006-07-29  Bruno Haible  <bruno@clisp.org>
59822
59823         * gnulib-tool (func_usage): Document option --no-libtool.
59824         Handle option --no-libtool.
59825         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
59826         for changed semantics of $libtool variable.
59827         (func_import): Likewise. If libtool is not used, show this through
59828         an option --no-libtool.
59829         (func_create_testdir): Update.
59830
59831 2006-07-29  Bruno Haible  <bruno@clisp.org>
59832
59833         * gnulib-tool (func_import): Extend error message about missing
59834         --doc-base.
59835
59836 2006-07-29  Bruno Haible  <bruno@clisp.org>
59837
59838         * gnulib-tool (func_import): Don't create the $docbase directory if
59839         there is no file to store there.
59840
59841 2006-07-29  Bruno Haible  <bruno@clisp.org>
59842
59843         * gnulib-tool (autoconf_minversion): If a --dir option is given and
59844         relevant, look for configure.ac there, not in the current directory.
59845         Also use a simple search for AC_PREREQ, not "autoconf --trace".
59846
59847 2006-07-29  Bruno Haible  <bruno@clisp.org>
59848
59849         * gnulib-tool (SORT): New variable.
59850         (func_usage): Undocument --assume-autoconf option.
59851         Remove --assume-autoconf option handling.
59852         (autoconf_minversion): Determine from the contents of configure.ac.
59853         (func_import): Remove autoconf_minversion handling.
59854         Suggested by Eric Blake.
59855
59856 2006-07-29  Bruno Haible  <bruno@clisp.org>
59857
59858         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
59859
59860 2006-07-29  Bruno Haible  <bruno@clisp.org>
59861
59862         * config/srclist.txt (*setenv.[ch]): Remove rules.
59863
59864 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59865
59866         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
59867
59868 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59869
59870         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
59871         arpa/inet.h.
59872
59873 2006-07-28  Simon Josefsson  <jas@extundo.com>
59874
59875         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
59876         * modules/inet_pton (Depends-on): Likewise.
59877
59878 2006-07-28  Simon Josefsson  <jas@extundo.com>
59879
59880         * m4/netinet_in_h.m4: New file.
59881
59882 2006-07-28  Simon Josefsson  <jas@extundo.com>
59883
59884         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
59885         #include's.
59886
59887 2006-07-28  Simon Josefsson  <jas@extundo.com>
59888
59889         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
59890         #include's.
59891
59892 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
59893
59894         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
59895         setgid on directories only if they set these bits.
59896         * lib/modechange.h: Remove obsolete comment about masks.
59897
59898 2006-07-28  Eric Blake  <ebb9@byu.net>
59899
59900         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
59901         macro expansion.
59902
59903 2006-07-28  Bruno Haible  <bruno@clisp.org>
59904
59905         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
59906
59907 2006-07-28  Bruno Haible  <bruno@clisp.org>
59908
59909         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
59910
59911 2006-07-28  Bruno Haible  <bruno@clisp.org>
59912
59913         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59914         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59915         Define fallbacks.
59916         Avoids link error on FreeBSD 4.x.
59917         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59918
59919         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59920         encoding.
59921         * lib/mbswidth.c (iswcntrl): Likewise.
59922
59923 2006-07-27  Bruno Haible  <bruno@clisp.org>
59924
59925         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
59926         test.
59927
59928 2006-07-27  Bruno Haible  <bruno@clisp.org>
59929
59930         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
59931         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
59932         defined.
59933
59934 2006-07-26  Eric Blake  <ebb9@byu.net>
59935
59936         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
59937
59938 2006-07-26  Eric Blake  <ebb9@byu.net>
59939
59940         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
59941         like mingw that lack mkstemp.
59942         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
59943         avoid compilation warning on mingw.
59944
59945 2006-07-26  Bruno Haible  <bruno@clisp.org>
59946
59947         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
59948         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
59949         INT_FAST*_MIN, INTPTR_MIN.
59950
59951 2006-07-25  Bruno Haible  <bruno@clisp.org>
59952
59953         * modules/version-etc (Depends-on): Add stdarg.
59954
59955 2006-07-25  Bruno Haible  <bruno@clisp.org>
59956
59957         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
59958         complex commands.
59959
59960 2006-07-25  Bruno Haible  <bruno@clisp.org>
59961
59962         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
59963         defined in <stdarg.h> or config.h.
59964
59965 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59966
59967         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
59968         (gl_STDIO_SAFER): Remove.
59969
59970 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59971
59972         * MODULES.html.sh (File stream based Input/Output):
59973         Add fopen-safer, tmpfile-safer; remove stdio-safer.
59974         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
59975         * modules/fopen-safer, modules/tmpfile-safer: New files.
59976         * modules/stdio-safer: Remove.
59977
59978 2006-07-24  Bruno Haible  <bruno@clisp.org>
59979
59980         * modules/tmpdir: New file.
59981         * MODULES.html.sh (File system functions): Add it.
59982
59983 2006-07-24  Bruno Haible  <bruno@clisp.org>
59984
59985         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
59986         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
59987
59988 2006-07-24  Bruno Haible  <bruno@clisp.org>
59989
59990         * modules/clean-temp: New file.
59991
59992 2006-07-24  Bruno Haible  <bruno@clisp.org>
59993
59994         * m4/tmpdir.m4: New file, from GNU gettext.
59995
59996 2006-07-24  Bruno Haible  <bruno@clisp.org>
59997
59998         * lib/tmpdir.h: New file, from GNU gettext.
59999         * lib/tmpdir.c: New file, from GNU gettext.
60000
60001 2006-07-24  Bruno Haible  <bruno@clisp.org>
60002
60003         * lib/clean-temp.h: New file, from GNU gettext.
60004         * lib/clean-temp.c: New file, from GNU gettext.
60005
60006 2006-07-23  Eric Blake  <ebb9@byu.net>
60007
60008         * modules/stdio-safer (Files): Add tmpfile-safer.c.
60009         (Depends-on): Add binary-io.
60010
60011 2006-07-23  Eric Blake  <ebb9@byu.net>
60012
60013         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
60014
60015 2006-07-23  Eric Blake  <ebb9@byu.net>
60016
60017         * lib/tmpfile-safer.c: New file.
60018         * lib/stdio-safer.h (fopen_safer): Add prototype.
60019         * lib/stdio--.h (tmpfile): Make safer.
60020
60021 2006-07-23  Bruno Haible  <bruno@clisp.org>
60022
60023         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
60024         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
60025         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
60026         gl_linked_remove_at): Use it.
60027
60028 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60029         and Simon Josefsson <jas@extundo.com>
60030
60031         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
60032
60033         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
60034
60035 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60036
60037         * modules/close-stream: New file.
60038         * modules/closeout (Description): Make it clear that it exits
60039         with a diagnostic on error.
60040         (Depends-on): Add close-stream.  Remove fpending, stdbool.
60041         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
60042
60043 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60044
60045         * m4/close-stream.m4: New file.
60046
60047 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60048
60049         * lib/close-stream.c, lib/close-stream.h: New files.
60050
60051 2006-07-22  Bruno Haible  <bruno@clisp.org>
60052
60053         Merge from GNU gettext 0.15.
60054
60055         2006-05-01  Bruno Haible  <bruno@clisp.org>
60056
60057                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
60058
60059         2006-07-22  Bruno Haible  <bruno@clisp.org>
60060
60061                 * modules/javaversion: New file.
60062                 * MODULES.html.sh (Java): Add javaversion.
60063
60064         2006-03-12  Bruno Haible  <bruno@clisp.org>
60065
60066                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
60067
60068         2005-12-04  Bruno Haible  <bruno@clisp.org>
60069
60070                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
60071                 (untested).
60072
60073         2006-06-21  Bruno Haible  <bruno@clisp.org>
60074
60075                 Avoid warnings from recent versions of mcs.
60076                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
60077                 -o, -L, -r any more. Use options documented since mcs-1.0
60078                 instead. Similarly for -g.
60079
60080         2005-12-04  Bruno Haible  <bruno@clisp.org>
60081
60082                 * build-aux/csharpcomp.sh.in: Suffix for resources is
60083                 .resources, not .resource.
60084
60085         2005-07-09  Bruno Haible  <bruno@clisp.org>
60086
60087                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
60088                 add a .dll suffix.
60089                 Reported by Mark Junker <mjscod@gmx.de>.
60090
60091         2006-07-22  Bruno Haible  <bruno@clisp.org>
60092
60093                 * modules/gettext: Upgrade to gettext-0.15.
60094                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
60095                 m4/visibility.m4.
60096                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
60097
60098 2006-07-22  Bruno Haible  <bruno@clisp.org>
60099
60100         Merge from GNU gettext 0.15.
60101
60102         2006-03-25  Bruno Haible  <bruno@clisp.org>
60103
60104                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
60105
60106         2006-07-21  Bruno Haible  <bruno@clisp.org>
60107
60108                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
60109                 "1.1".
60110
60111         2006-05-09  Bruno Haible  <bruno@clisp.org>
60112
60113                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
60114                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
60115                 for the conftestver execution.
60116
60117         2006-05-01  Bruno Haible  <bruno@clisp.org>
60118
60119                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
60120                 optional target-version argument. Verify that the compiler
60121                 groks source of the specified source-version, or add -source
60122                 option as necessary. Verify that the compiler produces
60123                 bytecode in the specified target-version, or add -target and
60124                 -source options as necessary. Make the result of the test
60125                 available as variable CONF_JAVAC. Also log error output in
60126                 config.log.
60127
60128         2006-03-11  Bruno Haible  <bruno@clisp.org>
60129
60130                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
60131
60132         2006-05-09  Bruno Haible  <bruno@clisp.org>
60133
60134                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
60135                 CLASSPATH_SEPARATOR to a semicolon.
60136
60137         2006-03-12  Bruno Haible  <bruno@clisp.org>
60138
60139                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
60140                 available as variable CONF_JAVA, for subsequent autoconf
60141                 tests. Also log error output in config.log.
60142
60143         2006-07-19  Bruno Haible  <bruno@clisp.org>
60144
60145                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
60146                 that getline works on glibc2 systems. Needed to avoid trouble
60147                 in relocatable.c.
60148                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
60149
60150         2005-12-04  Bruno Haible  <bruno@clisp.org>
60151
60152                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
60153                 launcher (untested).
60154
60155         2005-12-04  Bruno Haible  <bruno@clisp.org>
60156
60157                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
60158
60159         2006-07-22  Bruno Haible  <bruno@clisp.org>
60160
60161                 * gettext.m4: Update from GNU gettext-0.15.
60162                 * nls.m4: Likewise.
60163                 * po.m4: Likewise.
60164                 * inttypes-pri.m4: Likewise.
60165                 * inttypes-h.m4: Renamed from inttypes.m4.
60166                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
60167
60168 2006-07-22  Bruno Haible  <bruno@clisp.org>
60169
60170         Merge from GNU gettext 0.15.
60171
60172         2005-07-05  Bruno Haible  <bruno@clisp.org>
60173
60174                 * printf-args.c (printf_fetchargs): Work around broken
60175                 definition of wint_t on mingw.
60176
60177         2005-02-12  Bruno Haible  <bruno@clisp.org>
60178
60179                 * xallocsa.h: Add extern "C" for C++.
60180
60181         2006-05-17  Bruno Haible  <bruno@clisp.org>
60182
60183                 Cygwin portability.
60184                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
60185
60186         2006-04-30  Bruno Haible  <bruno@clisp.org>
60187
60188                 * progreloc.c: Include <mach-o/dyld.h> if available.
60189                 (find_executable): Use _NSGetExecutablePath when possible.
60190
60191         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60192
60193                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
60194                 function.
60195
60196         2005-12-29  Bruno Haible  <bruno@clisp.org>
60197
60198                 * progreloc.c (set_program_name_and_installdir): Fix
60199                 compilation error.
60200
60201         2005-12-04  Bruno Haible  <bruno@clisp.org>
60202
60203                 Cygwin portability.
60204                 * progreloc.c: Include <windows.h> also on Cygwin.
60205                 (find_executable): Add support for Cygwin.
60206                 (set_program_name_and_installdir): Handle also platforms with
60207                 nonempty EXEEXT.
60208
60209         2006-07-11  Bruno Haible  <bruno@clisp.org>
60210
60211                 * javacomp.c: Fix a comment.
60212                 Reported by Jim Meyering.
60213
60214         2006-04-30  Bruno Haible  <bruno@clisp.org>
60215
60216                 * javacomp.h (compile_java_class): Add source_version,
60217                 target_version arguments.
60218                 * javacomp.c: Rewritten to choose only a compiler that
60219                 respects the specified source_version and target_version.
60220
60221         2006-06-27  Bruno Haible  <bruno@clisp.org>
60222
60223                 Assume correct S_ISDIR macro.
60224                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
60225
60226         2006-07-22  Bruno Haible  <bruno@clisp.org>
60227
60228                 * javaversion.h: New file, from GNU gettext.
60229                 * javaversion.c: New file, from GNU gettext.
60230                 * javaversion.java: New file, from GNU gettext.
60231                 * javaversion.class: New file, from GNU gettext.
60232
60233         2006-05-17  Bruno Haible  <bruno@clisp.org>
60234
60235                 Cygwin portability.
60236                 * javaexec.c (execute_java_class): Test for jview program
60237                 also on Cygwin.
60238
60239         2006-04-09  Bruno Haible  <bruno@clisp.org>
60240
60241                 * fatal-signal.c: Don't include string.h.
60242                 (at_fatal_signal): Use a copying loop instead of memcpy.
60243
60244         2005-12-04  Bruno Haible  <bruno@clisp.org>
60245
60246                 * csharpexec.c: Add support for 'clix' launcher (untested).
60247                 (execute_csharp_using_sscli): New function.
60248                 (execute_csharp_program): Call it.
60249
60250         2006-06-21  Bruno Haible  <bruno@clisp.org>
60251
60252                 Avoid warnings from recent versions of mcs.
60253                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
60254                 -o, -L, -r any more. Use options documented since mcs-1.0
60255                 instead. Similarly for -g.
60256
60257         2005-07-09  Bruno Haible  <bruno@clisp.org>
60258
60259                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
60260                 add a .dll suffix.
60261                 Reported by Mark Junker <mjscod@gmx.de>.
60262
60263         2006-06-17  Bruno Haible  <bruno@clisp.org>
60264
60265                 * config.charset: Update for NetBSD 3.0.
60266
60267         2006-05-17  Bruno Haible  <bruno@clisp.org>
60268
60269                 Cygwin portability.
60270                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
60271
60272         2006-05-16  Bruno Haible  <bruno@clisp.org>
60273
60274                 * localcharset.c [CYGWIN]: Include <windows.h>.
60275                 (get_charset_aliases): For Cygwin, return the same CPxxx
60276                 aliases list as under WIN32.
60277                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
60278                 the environment variables. Fall back to GetACP().
60279
60280         2006-04-05  Bruno Haible  <bruno@clisp.org>
60281
60282                 * config.charset: Update Juan Manuel Guerrero's address.
60283
60284         2005-02-12  Bruno Haible  <bruno@clisp.org>
60285
60286                 * allocsa.h: Add extern "C" for C++.
60287
60288         2005-02-10  Bruno Haible  <bruno@clisp.org>
60289
60290                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
60291                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
60292
60293         2006-07-22  Bruno Haible  <bruno@clisp.org>
60294
60295                 * gettext.h: Update to GNU gettext-0.15.
60296
60297 2006-07-22  Bruno Haible  <bruno@clisp.org>
60298
60299         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
60300         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
60301         lib-prefix.m4, longdouble.m4, ssize_t.m4.
60302
60303 2006-07-21  Eric Blake  <ebb9@byu.net>
60304
60305         * modules/stdlib-safer: New file.
60306         * MODULES.html.sh (File stream based Input/Output): Add
60307         stdlib-safer.
60308
60309 2006-07-21  Eric Blake  <ebb9@byu.net>
60310
60311         * lib/stdlib-safer.h: New file from coreutils, required by
60312         stdlib--.h.
60313
60314 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
60315
60316         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
60317
60318 2006-07-20  Bruno Haible  <bruno@clisp.org>
60319
60320         * gnulib-tool: Recognize new option --assume-autoconf.
60321         (autoconf_minversion): New variable.
60322         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
60323
60324 2006-07-20  Bruno Haible  <bruno@clisp.org>
60325
60326         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
60327
60328 2006-07-19  Derek R. Price  <derek@ximbiot.com>
60329
60330         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
60331         Reindent and repaginate.
60332
60333 2006-07-19  Derek Price  <derek@ximbiot.com>
60334
60335         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
60336         Correct grammar.
60337
60338 2006-07-17  Bruno Haible  <bruno@clisp.org>
60339
60340         * modules/list: New file.
60341         * modules/array-list: New file.
60342         * modules/carray-list, modules/carray-list-tests: New files.
60343         * modules/linked-list, modules/linked-list-tests: New files.
60344         * modules/avltree-list, modules/avltree-list-tests: New files.
60345         * modules/rbtree-list, modules/rbtree-list-tests: New files.
60346         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
60347         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
60348         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
60349         * modules/oset: New file.
60350         * modules/array-oset: New file.
60351         * modules/avltree-oset, modules/avltree-oset-tests: New files.
60352         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
60353         * tests/test-carray_list.c: New file.
60354         * tests/test-linked_list.c: New file.
60355         * tests/test-avltree_list.c: New file.
60356         * tests/test-rbtree_list.c: New file.
60357         * tests/test-linkedhash_list.c: New file.
60358         * tests/test-avltreehash_list.c: New file.
60359         * tests/test-rbtreehash_list.c: New file.
60360         * tests/test-avltree_oset.c: New file.
60361         * tests/test-rbtree_oset.c: New file.
60362         * MODULES.html.sh (Container data structures): New section.
60363
60364 2006-07-17  Bruno Haible  <bruno@clisp.org>
60365
60366         * m4/gl_list.m4: New file.
60367
60368 2006-07-17  Bruno Haible  <bruno@clisp.org>
60369
60370         * lib/gl_list.h: New file.
60371         * lib/gl_list.c: New file.
60372         * lib/gl_array_list.h: New file.
60373         * lib/gl_array_list.c: New file.
60374         * lib/gl_carray_list.h: New file.
60375         * lib/gl_carray_list.c: New file.
60376         * lib/gl_linked_list.h: New file.
60377         * lib/gl_linked_list.c: New file.
60378         * lib/gl_anylinked_list1.h: New file.
60379         * lib/gl_anylinked_list2.h: New file.
60380         * lib/gl_avltree_list.h: New file.
60381         * lib/gl_avltree_list.c: New file.
60382         * lib/gl_anyavltree_list1.h: New file.
60383         * lib/gl_anyavltree_list2.h: New file.
60384         * lib/gl_rbtree_list.h: New file.
60385         * lib/gl_rbtree_list.c: New file.
60386         * lib/gl_anyrbtree_list1.h: New file.
60387         * lib/gl_anyrbtree_list2.h: New file.
60388         * lib/gl_anytree_list1.h: New file.
60389         * lib/gl_anytree_list2.h: New file.
60390         * lib/gl_linkedhash_list.h: New file.
60391         * lib/gl_linkedhash_list.c: New file.
60392         * lib/gl_anyhash_list1.h: New file.
60393         * lib/gl_anyhash_list2.h: New file.
60394         * lib/gl_avltreehash_list.h: New file.
60395         * lib/gl_avltreehash_list.c: New file.
60396         * lib/gl_rbtreehash_list.h: New file.
60397         * lib/gl_rbtreehash_list.c: New file.
60398         * lib/gl_anytreehash_list1.h: New file.
60399         * lib/gl_anytreehash_list2.h: New file.
60400
60401         * lib/gl_oset.h: New file.
60402         * lib/gl_oset.c: New file.
60403         * lib/gl_array_oset.h: New file.
60404         * lib/gl_array_oset.c: New file.
60405         * lib/gl_avltree_oset.h: New file.
60406         * lib/gl_avltree_oset.c: New file.
60407         * lib/gl_rbtree_oset.h: New file.
60408         * lib/gl_rbtree_oset.c: New file.
60409         * lib/gl_anytree_oset.h: New file.
60410
60411 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60412
60413         * m4/mkancesdirs.m4: New file.
60414         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
60415         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
60416         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
60417         it.
60418
60419 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60420
60421         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
60422         * lib/mkancesdirs.h: New files.
60423         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
60424         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
60425         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
60426         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
60427         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
60428         callers changed.  Revamp internals significantly, by not
60429         attempting to create directories that are temporarily more
60430         permissive than the final results.  Do not attempt to use
60431         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
60432         This removes some race conditions, fixes some bugs, and simplifies
60433         things.  Use new dirchownmod function to do owner and mode changes.
60434         * lib/mkdir-p.h: Likewise.
60435         * lib/modechange.c (octal_to_mode): New function.
60436         (struct mode_change): New member mentioned.
60437         (make_node_op_equals): New arg mentioned.  All callers changed.
60438         (mode_compile): Keep track of which mode bits the user has explicitly
60439         mentioned.
60440         (mode_adjust): New arg DIR, so that we implement the X op correctly.
60441         New arg PMODE_BITS, to keep track of which mode bits the user
60442         mentioned; it treats S_ISUID and S_ISGID speciall.
60443         All callers changed.
60444         * lib/modechange.h: Likewise.
60445
60446 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60447
60448         * MODULES.html.sh: Add mkancestors.
60449         * modules/mkancesdirs: New module.
60450         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
60451         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
60452         The chdir-safer and afs files are now orphans; I'll remove them
60453         unless someone speaks up.
60454         Add lib/dirchownmod.c, lib/dirchownmod.h.
60455         (Depends-on): Remove alloca, chown, save-cwd, dirname.
60456         Add lchown, mkancesdirs.
60457         (Maintainer): Add self.
60458
60459 2006-07-15  Karl Berry  <karl@gnu.org>
60460
60461         * gnulib-tool: help message wording/arrangement.
60462
60463 2006-07-14  Simon Josefsson  <jas@extundo.com>
60464
60465         * doc/gnulib.texi (Libtool and Windows): New section.
60466
60467 2006-07-12  Simon Josefsson  <jas@extundo.com>
60468
60469         * modules/gendocs (License): Fix license, approved by Karl.
60470
60471 2006-07-12  Eric Blake  <ebb9@byu.net>
60472
60473         * MODULES.html.sh: Add gendocs.
60474
60475 2006-07-11  Eric Blake  <ebb9@byu.net>
60476
60477         * modules/fdl: New module, to install doc/fdl.texi.
60478         * MODULES.html.sh: Add new section for documentation modules.
60479         * gnulib-tool: Avoid space-tab.
60480         (--doc-base): New option, to manage files from doc.
60481
60482 2006-07-11  Eric Blake  <ebb9@byu.net>
60483
60484         * m4/absolute-header.m4: Fix comments to match recent change.
60485
60486 2006-07-11  Eric Blake  <ebb9@byu.net>
60487
60488         * gnulib-tool: List --doc-base before --tests-base.
60489
60490 2006-07-11  Derek R. Price  <derek@ximbiot.com>
60491
60492         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
60493
60494 2006-07-11  Bruno Haible  <bruno@clisp.org>
60495
60496         * README: Mention where to put documentation.
60497
60498 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60499
60500         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
60501
60502 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60503
60504         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
60505         to stdint.m4.
60506
60507 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60508
60509         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
60510         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
60511         "no/such/file/stdint.h" when there is no such file, so that
60512         the resulting C code can be parsed by dodgy compilers.
60513         Problems reported by Bob Proulx.
60514
60515 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60516
60517         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
60518         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60519         macros into the GNU _D_EXACT_NAMLEN.
60520         * lib/savedir.c:  Likewise.
60521         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
60522
60523 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60524         and Paul Eggert  <eggert@cs.ucla.edu>
60525
60526         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
60527         * m4/savedir.m4:
60528         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60529         macros into the GNU _D_EXACT_NAMLEN.
60530
60531 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60532
60533         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
60534         around the absolute name, to work around a problem with the HP-UX
60535         11.23 native C compiler, reported by Bob Proulx.
60536
60537 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60538
60539         * doc/maintain.texi, make-stds.texi: Sync from
60540         <http://savannah.gnu.org/projects/gnustandards>.
60541
60542 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60543
60544         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
60545
60546 2006-07-09  Jim Meyering  <jim@meyering.net>
60547
60548         * m4/glob.m4: Remove a doubled word in a comment.
60549
60550 2006-07-09  Jim Meyering  <jim@meyering.net>
60551
60552         * lib/argp-pv.c: Remove a doubled word in a comment.
60553         * lib/check-version.c (check_version): Likewise.
60554         * lib/javacomp.c (compile_java_class): Likewise.
60555
60556 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60557
60558         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
60559         for the benefit of people using Autoconf 2.60.  If you want to
60560         support older Autoconf versions you can copy m4/onceonly_2_57.m4
60561         (or m4/onceonly.m4, if pre-2.57) manually.
60562
60563 2006-07-08  Jim Meyering  <jim@meyering.net>
60564
60565         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
60566         comment.
60567         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
60568         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
60569         comment.
60570
60571 2006-07-08  Jim Meyering  <jim@meyering.net>
60572
60573         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
60574
60575 2006-07-07  Simon Josefsson  <jas@extundo.com>
60576
60577         * tests/test-crc.c: Change expected crc value, the test vector
60578         were probably computed using the old broken crc.c?
60579
60580 2006-07-06  Simon Josefsson  <jas@extundo.com>
60581
60582         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
60583         now the canonical place for the M4 file).
60584
60585         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
60586         from the sys_socket dependency now.
60587
60588         * modules/inet_pton (Files): Ditto.
60589
60590         * modules/inet_ntop (Files): Ditto.
60591
60592 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60593
60594         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
60595         not gl_PREREQ_GETUSERSHELL.
60596
60597 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60598
60599         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
60600         with only one argument, for Autoconf 2.60.
60601         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
60602         expand to nothing, so add a shell command to avoid syntax error.
60603         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60604
60605 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60606
60607         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
60608
60609 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60610
60611         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
60612         no longer needed.  Check for isblank decl.
60613         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
60614         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
60615         of existence.
60616
60617 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60618
60619         * lib/getloadavg.c: Use __VMS, not VMS.
60620         * lib/getopt.c: Likewise.
60621         * lib/getpagesize.h: Likewise.
60622         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
60623         and probably does not work.
60624
60625 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60626
60627         * lib/.cppi-disable: Add wcwidth.
60628         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
60629         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
60630         (ISGRAPH): Remove.  All uses changed to isgraph.
60631         (FOLD) [!defined _LIBC]: Remove special case.
60632         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
60633         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
60634         HAVE_ISBLANK.
60635         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
60636         case.
60637
60638 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60639
60640         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
60641         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
60642         brackets.  Other minor changes to suppress some compiler
60643         warnings.
60644
60645 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60646         and Paul Eggert  <eggert@cs.ucla.edu>
60647
60648         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
60649         of invoking obsolescent AC_HEADER_DIRENT macro.
60650         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
60651         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
60652         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60653         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
60654         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
60655         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60656         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
60657         * m4/readdir.m4: Remove; no longer needed.
60658
60659 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60660         and Paul Eggert  <eggert@cs.ucla.edu>
60661
60662         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
60663         Don't worry about this obsolete case any more.
60664         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
60665         directories.
60666         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
60667         worry about this obsolete case any more.
60668         * lib/fts.c: Likewise.
60669         * lib/getcwd.c: Likewise.
60670         * lib/glob.h: Likewise.
60671         * lib/savedir.c: Likewise.
60672
60673 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60674
60675         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
60676         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
60677         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
60678         needed.
60679         All uses removed.
60680         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60681         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60682         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
60683         needed.
60684         * m4/getdate.m4 (gl_GETDATE): Likewise.
60685         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60686         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60687         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60688         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60689         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60690         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60691         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
60692         needed.
60693
60694 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60695
60696         * lib/memcasecmp.c: Include <limits.h>.
60697         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
60698         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
60699         Don't assume isdigit succeeds only on '0' through '9'.
60700
60701 2006-07-05  Eric Blake  <ebb9@byu.net>
60702
60703         * modules/getaddrinfo (Depends-on): Add snprintf.
60704
60705 2006-07-05  Eric Blake  <ebb9@byu.net>
60706
60707         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
60708         to avoid 'header present but could not be compiled' on cygwin.
60709
60710 2006-07-05  Eric Blake  <ebb9@byu.net>
60711
60712         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
60713         missing from netdb.h.
60714         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
60715
60716 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60717
60718         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
60719         no longer needed.
60720         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
60721         * m4/getdate.m4 (gl_GETDATE): Likewise.
60722         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60723         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60724         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60725         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60726         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60727
60728 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60729
60730         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
60731         All uses of is_space replaced by isspace.
60732         * lib/exit.h: Don't talk about STDC_HEADERS.
60733         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
60734         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
60735         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
60736         replaced by isprint etc.
60737         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
60738         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60739         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
60740         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
60741         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
60742         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60743
60744 2006-07-05  Bruno Haible  <bruno@clisp.org>
60745
60746         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
60747         the function exists, before testing against AIX.
60748         Reported by Martin Lambers <marlam@marlam.de>.
60749
60750 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60751
60752         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
60753         From Mark D. Baushke.
60754
60755 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60756
60757         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
60758         to the absolute name, not just one, to bypass Sun C 5.8's
60759         "warning: #include of /usr/include/... may be non-portable".
60760
60761 2006-07-04  Eric Blake  <ebb9@byu.net>
60762
60763         * modules/dirname-tests: New test module.
60764         * tests/test-dirname.c: New file, replacing dirname.c
60765         TEST_DIRNAME section that was recently deleted.
60766
60767 2006-07-04  Bruno Haible  <bruno@clisp.org>
60768
60769         Assume ANSI C header files and <ctype.h> functions.
60770         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
60771         (mbsnwidth): Use isprint, iscntrl instead.
60772
60773 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60774
60775         Merge from coreutils.
60776         * MODULES.html.sh: Add xstrtold.
60777         * modules/xstrtold: New file.
60778         * modules/cycle-check (Files): Add lib/same-inode.h.
60779         * modules/dirname (Files): Add m4/double-slash-root.m4.
60780         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
60781         * modules/mkdir-p (Files): Add lib/same-inode.h.
60782         * modules/same (Files): Add lib/same-inode.h.
60783
60784 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60785
60786         * m4/absolute-header.m4: Renamed from full-header-path.m4.
60787         This is to keep the terminology clean; POSIX talks about
60788         "absolute pathnames", not "full pathnames", but the GNU
60789         Coding Standards say to use "path" for something else;
60790         so use "absolute" to keep both sides happy.
60791         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
60792         Set gl_absolute_header, not gl_full_header_path.
60793         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
60794         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
60795         All uses changed.
60796
60797         Merge from coreutils.
60798
60799         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60800
60801         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
60802         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
60803         want to require the building of c-strtod.o.
60804         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
60805         needs -lm directly.
60806         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
60807
60808         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60809
60810         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
60811         --as-needed option if available.  Problem reported by Albert Chin in
60812         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
60813         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
60814         cc merely issues a bunch of annoying warnings for --as-needed
60815         (this problem was reported by Bob Proulx).  Also, try linking with
60816         -lm to detect a bug in binutils 2.16 (this problem was reported
60817         by Ralf Wildenhues).
60818
60819         2006-06-18  Jim Meyering  <jim@meyering.net>
60820
60821         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
60822         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
60823         macro.
60824         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
60825         also check for glibc-2.4's abort-inducing bug.
60826
60827         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
60828         Low-probability clean-up should be to use rmdir to get rid of
60829         the just-created directory, not unlink.
60830
60831         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
60832         configure fail, and request a bug report to inform us about it.
60833         Add a comment that, barring reports to the contrary, in 2007 we'll
60834         assume ftruncate is universally available.
60835
60836         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60837
60838         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
60839
60840         2006-03-12  Jim Meyering  <jim@meyering.net>
60841
60842         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
60843         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
60844         * m4/same.m4 (gl_SAME): Likewise.
60845         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
60846
60847         2006-03-11  Eric Blake  <ebb9@byu.net>
60848
60849         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
60850         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
60851         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
60852         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
60853
60854 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60855
60856         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
60857         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
60858         reported by Mark D. Baushke, one in
60859         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
60860
60861         Merge from coreutils.
60862
60863         * lib/.cppi-disable: Add stdint_.h.
60864         * lib/.cvsignore: Add stdint.h.
60865
60866         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60867
60868         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
60869         both double and long double versions.
60870         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
60871         * lib/xstrtold.c: New file.
60872         * lib/xstrtod.h (xstrtold): New decl.
60873
60874         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60875
60876         * lib/filemode.c (setst): Remove.
60877         (strmode): Rewrite to avoid setst.  This makes the code shorter,
60878         (arguably) clearer, and the generated code is a bit smaller on my
60879         Debian GNU/Linux stable x86 host.
60880
60881         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60882
60883         * lib/filemode.c: Include "filemode.h" first, to test the interface.
60884         Assume that filemode.h includes sys/types.h and sys/stat.h.
60885         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
60886         (ftypelet): Reorder to put common cases first, for efficiency.
60887         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
60888         to do 'M'.
60889         (strmode): Renamed from mode_string, and now stores 12 bytes instead
60890         of 10, for compatibility with FreeBSD.  All callers changed.
60891         (filemodestring): Now stores 12 bytes instead of 10, and sets file
60892         types that can't be deduced solely from st_mode.  First arg is now a
60893         const pointer.
60894         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
60895         (strmode): Renamed from mode_string.
60896         (filemodestring): New decl.
60897         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
60898         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
60899         needed.
60900         (S_ISPORT, S_ISWHT): New macros, if not already defined.
60901
60902         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60903
60904         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
60905         fsusage.h now does that.  Include fsusage.h first, to test interface.
60906         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
60907         at most one method (the old code could have generated decls that
60908         didn't conform to C89, not that this was ever exercised).
60909         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
60910
60911         2006-03-19  Jim Meyering  <jim@meyering.net>
60912
60913         Work even in a chroot where d_ino values for entries in "/"
60914         don't match the stat.st_ino values for the same names.
60915         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
60916         number, iterate through all entries again, using lstat instead.
60917         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
60918         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60919
60920         * lib/getcwd.c (__getcwd): Clarify a comment.
60921         Use memcpy in place of a call to strcpy.
60922
60923         2006-03-12  Jim Meyering  <jim@meyering.net>
60924
60925         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
60926         matches that of the current directory (which we're about to chdir ".."
60927         out of), then save the dev-ino of the parent, instead.
60928
60929         * lib/same-inode.h (SAME_INODE): New file/macro.
60930         * lib/chdir-safer.c (SAME_INODE): Remove definition.
60931         Include "same-inode.h", instead.
60932         * lib/same.c: Likewise.
60933         * lib/cycle-check.h: Include "same-inode.h".
60934         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
60935         * lib/cycle-check.c (SAME_INODE): Remove definition.
60936         * lib/root-dev-ino.h: Include "same-inode.h".
60937
60938         2006-03-11  Eric Blake  <ebb9@byu.net>
60939
60940         * lib/same.c (same_name): s/base_name/last_component/
60941         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
60942         * lib/filenamecat.c (file_name_concat): Likewise.
60943
60944         2006-03-11  Eric Blake  <ebb9@byu.net>,
60945                     Paul Eggert  <eggert@cs.ucla.edu>
60946
60947         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
60948         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
60949         drive prefix.
60950         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
60951         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
60952         (last_component): New method.
60953         * lib/dirname.c (dir_len): Determine when drive letters need a
60954         subsequent slash.  Preserve // when it is special.
60955         (dir_name): Don't append dot when drive letter is absolute.
60956         [TEST_DIRNAME]: Move into a full-blown gnulib test.
60957         * lib/basename.c (base_name): New semantics - malloc the result.
60958         Preserve // when it is special.  Preserve relative files that look
60959         like drive letters.
60960         (base_len): Preserve // when it is special.
60961         (last_component): New method, similar to old base_name semantics.
60962         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
60963         base_name.  Strip redundant slashes from ///.
60964
60965 2006-07-03  Jim Meyering  <jim@meyering.net>
60966
60967         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
60968         macro is used before the first cycle_check call.
60969
60970 2006-07-03  Eric Blake  <ebb9@byu.net>
60971
60972         * modules/dirname (Depends-on): Add xstrndup.
60973
60974 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60975
60976         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
60977         test cases, so that config.log is a bit easier to follow.
60978
60979 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60980
60981         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
60982         both are 64 bits, since this seems to be the tradition, and this
60983         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
60984         we ever run into a host that prefers long long to long in this
60985         case, we'll need another configure-time test.  Problem reported by
60986         Jim Meyering.
60987
60988 2006-07-02  Eric Blake  <ebb9@byu.net>
60989
60990         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
60991
60992 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60993
60994         * modules/inttypes (Depends-on): No longer depends on stdint.
60995         * modules/stdint (Description): Say more about assumptions.
60996         Say that the fast types might differ.  Say macros are used.
60997         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
60998         (Makefile.am): Revise list of substituted symbols to match
60999         new stdint.m4.
61000         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
61001         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
61002         * tests/test-stdint.c (verify_same_types)
61003         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
61004         the code conforms to C99/C89.
61005         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
61006         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
61007
61008 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61009
61010         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
61011         but fix a bug, by requiring at least 64 bits.
61012         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61013         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
61014         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
61015         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61016
61017         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
61018         changes.  Make 2.59 a prerequisite.  Check and substitute for
61019         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
61020         inttypes.h.  Do not use special include files; just use the
61021         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
61022         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
61023         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
61024         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
61025         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
61026         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
61027         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
61028         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
61029         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
61030         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
61031         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
61032         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
61033         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
61034         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
61035         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
61036         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
61037         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
61038         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
61039         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
61040         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
61041         WINT_MAX.  Check for C99 conformance more strictly, by detecting
61042         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
61043         not check for things that C99 does not require, e.g., int8_t.  If
61044         a test isn't needed unless <stdint.h> isn't working, and is
61045         unlikely to be needed for any other reason, then don't do it
61046         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
61047         size_t, since we assume C89 freestanding at least.  Do not check
61048         for sig_atomic_t, wchar_t, or wint_t, since the code now does
61049         the right thing even if the types are not defined.  Instead use:
61050         (gl_STDINT_TYPE_PROPERTIES): New macro.
61051         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
61052         testing whether <sys/types.h> clashes, as Autoconf does this for
61053         us now.  All uses removed.
61054         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
61055         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
61056         (gl_CHECK_TYPE_SAME):
61057         Remove; no longer needed.
61058         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
61059         exists, since we'll return 0 anyway in that case.
61060         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
61061
61062 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61063
61064         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
61065         possible collision with system files.
61066         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
61067         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
61068         WCHAR_MIN and WCHAR_MAX in this case.
61069         (<stddef.h>): Do not include; no longer needed.
61070         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
61071         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
61072         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
61073         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
61074         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
61075         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
61076         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
61077         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
61078         !defined(__c99))]: Include in this case too, since it's harmless
61079         now.
61080         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
61081         dangerous to do so.
61082         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
61083         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
61084         (_STDINT_MIN, _STDINT_MAX): New macros.
61085         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
61086         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
61087         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
61088         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
61089         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
61090         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
61091         macros, not typedefs; this simplifies things quite a bit.
61092         Use long int for all types narrower than int64_t.
61093         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
61094         Define in terms of long long int or int64_t or long int,
61095         not int64_t or int32_t.  This saves some compile-time testing.
61096         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
61097         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
61098         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
61099         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
61100         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
61101         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
61102         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
61103         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
61104         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
61105         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
61106         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61107         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61108         undef any previous version and define our own version, for
61109         simplicity and consistency with the new macros for types.
61110         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61111         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61112         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
61113         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
61114         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
61115         @WINT_T_SUFFIX@ to keep things simple here.
61116         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
61117         Simplify by assuming typical 8/16/32/64 host, since we're
61118         already doing that elsewhere anyway.
61119         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
61120         and assume long long int is 64 bits if available.  This
61121         speeds up 'configure'.
61122
61123 2006-07-01  Eric Blake  <ebb9@byu.net>
61124
61125         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
61126         Reported by Andreas Buening.
61127
61128 2006-07-01  Eric Blake  <ebb9@byu.net>
61129
61130         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
61131
61132 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61133
61134         * lib/getaddrinfo.c: fixed typo
61135
61136 2006-06-29  Jim Meyering  <jim@meyering.net>
61137
61138         * modules/strftime (Maintainer): Add my name, since with the
61139         FPRINTFTIME changes strftime.c has forked from glibc.
61140
61141 2006-06-29  Eric Blake  <ebb9@byu.net>
61142
61143         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
61144
61145 2006-06-29  Eric Blake  <ebb9@byu.net>
61146
61147         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
61148
61149 2006-06-29  Eric Blake  <ebb9@byu.net>
61150
61151         * lib/stat_.h: New file.
61152
61153 2006-06-29  Eric Blake  <ebb9@byu.net>
61154
61155         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
61156         unused static function.
61157
61158 2006-06-29  Eric Blake  <ebb9@byu.net>
61159
61160         * doc/functions.texi (Function Portability): Document missing lstat
61161         on mingw.
61162
61163 2006-06-29  Eric Blake  <ebb9@byu.net>
61164
61165         * MODULES.html.sh: Add sys_stat.
61166         * modules/sys_stat: New module.
61167         * modules/mkstemp (Depends-on): Add sys_stat.
61168
61169 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61170
61171         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
61172
61173 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61174
61175         * m4/c-bs-a.m4: Removed.
61176
61177 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61178
61179         * lib/strftime.c: Assume strftime() exists.
61180
61181 2006-06-29  Derek Price  <derek@ximbiot.com>
61182
61183         * modules/c-bs-a: Removed - \a is C89.
61184         * MODULES.html.sh: Remove c-bs-a.
61185
61186 2006-06-29  Bruno Haible  <bruno@clisp.org>
61187
61188         * modules/wcwidth (License): Change to LGPL.
61189
61190 2006-06-28  Simon Josefsson  <jas@extundo.com>
61191
61192         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
61193         on _WIN32.
61194
61195         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
61196         getnameinfo.
61197
61198 2006-06-28  Simon Josefsson  <jas@extundo.com>
61199
61200         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
61201
61202 2006-06-28  Simon Josefsson  <jas@extundo.com>
61203
61204         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
61205         functions there.  It will succeed on Windows XP, but on Windows
61206         2000 and (presumably) earlier, it will fail, and use the internal
61207         re-implementation.
61208         (use_win32_p): New function.
61209         (getaddrinfo): Use strtoul on servname, to support numeric ports.
61210         Support AI_NUMERICSERV to disable getservbyname.
61211         (getnameinfo): New function, only supports
61212         NI_NUMERICHOST|NI_NUMERICSERV for now.
61213
61214         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
61215         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
61216         getnameinfo.
61217
61218 2006-06-28  Eric Blake  <ebb9@byu.net>
61219
61220         * modules/wcwidth: New file.
61221         * modules/mbchar (Depends-on): Add wcwidth.
61222         * modules/mbswidth (Depends-on): Add wcwidth.
61223         * MODULES.html.sh: Add wcwidth.
61224
61225 2006-06-28  Eric Blake  <ebb9@byu.net>
61226
61227         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
61228         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
61229
61230 2006-06-28  Eric Blake  <ebb9@byu.net>
61231
61232         * lib/xvasprintf.h: Fix comments.
61233
61234 2006-06-28  Eric Blake  <ebb9@byu.net>
61235
61236         * lib/mbchar.h (wcwidth): Include wcwidth.h.
61237         * lib/mbswidth.c (wcwidth): Move from here...
61238         * lib/wcwidth.h: ...to this new file.
61239
61240 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61241
61242         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
61243
61244         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
61245         it's obsolete.
61246         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
61247
61248 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61249
61250         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
61251         Autoconf 2.60 says this stuff was obsolete.
61252
61253 2006-06-28  Bruno Haible  <bruno@clisp.org>
61254
61255         * modules/wcwidth (Files): Add m4/wchar_t.m4.
61256
61257 2006-06-28  Bruno Haible  <bruno@clisp.org>
61258
61259         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
61260         gt_TYPE_WCHAR_T.
61261
61262 2006-06-28  Bruno Haible  <bruno@clisp.org>
61263
61264         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
61265         declaration for wcwidth.
61266         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
61267
61268 2006-06-28  Bruno Haible  <bruno@clisp.org>
61269
61270         * lib/mkdtemp.c [MINGW]: Include <io.h>.
61271         (mkdir): Define using _mkdir.
61272
61273 2006-06-28  Bruno Haible  <bruno@clisp.org>
61274
61275         * lib/getaddrinfo.h: Fix POSIX URL.
61276         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
61277         _WIN32.
61278         (use_win32_p): Make static.
61279         (getaddrinfo): Reject service name if it is empty or does not consist
61280         solely of decimal digits, or if its value is > 65535.
61281         (getnameinfo): Remove useless casts.
61282
61283 2006-06-27  Simon Josefsson  <jas@extundo.com>
61284
61285         * modules/sys_select: New file, suggested by Bruno Haible, Paul
61286         Eggert and Martin Lambers.
61287
61288 2006-06-27  Simon Josefsson  <jas@extundo.com>
61289
61290         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
61291         Eggert and Martin Lambers.
61292
61293 2006-06-27  Bruno Haible  <bruno@clisp.org>
61294
61295         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
61296         result to 0, not to empty.
61297         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
61298
61299 2006-06-27  Bruno Haible  <bruno@clisp.org>
61300
61301         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
61302
61303 2006-06-26  Simon Josefsson  <jas@extundo.com>
61304
61305         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
61306         present.
61307
61308 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
61309
61310         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
61311         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
61312         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
61313
61314 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
61315
61316         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
61317
61318 2006-06-26  Bruno Haible  <bruno@clisp.org>
61319
61320         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
61321
61322 2006-06-26  Bruno Haible  <bruno@clisp.org>
61323
61324         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
61325
61326 2006-06-26  Bruno Haible  <bruno@clisp.org>
61327
61328         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
61329         SGI C compiler in pre-C99 mode.
61330         Suggested by Mark D. Baushke and Larry Jones.
61331
61332 2006-06-26  Bruno Haible  <bruno@clisp.org>
61333
61334         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
61335         WCHAR_MAX.
61336         Reported by Mark D. Baushke and Larry Jones.
61337
61338 2006-06-26  Bruno Haible  <bruno@clisp.org>
61339
61340         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
61341         in pre-C99 mode.
61342         Suggested by Mark D. Baushke and Larry Jones.
61343
61344 2006-06-23  Simon Josefsson  <jas@extundo.com>
61345             Bruno Haible  <bruno@clisp.org>
61346
61347         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
61348         Emit mostlyclean-local rule.
61349         (func_emit_tests_Makefile_am): Likewise.
61350         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
61351
61352 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
61353
61354         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
61355
61356 2006-06-23  Bruno Haible  <bruno@clisp.org>
61357
61358         * tests/test-stdint.c: Update to match ISO C 99 Technical
61359         Corrigendum 1.
61360
61361 2006-06-23  Bruno Haible  <bruno@clisp.org>
61362
61363         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
61364
61365 2006-06-23  Bruno Haible  <bruno@clisp.org>
61366
61367         * lib/stdint_.h: Treat IRIX like OpenBSD.
61368
61369 2006-06-23  Bruno Haible  <bruno@clisp.org>
61370
61371         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
61372         ISO C 99 Technical Corrigendum 1.
61373
61374 2006-06-22  Simon Josefsson  <jas@extundo.com>
61375
61376         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
61377         MinGW.
61378
61379 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61380
61381         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
61382         needed.  Some compiler complained about some of them.  Problem reported
61383         by Larry Jones in
61384         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
61385
61386 2006-06-21  Simon Josefsson  <jas@extundo.com>
61387
61388         * tests/test-getaddrinfo.c: New file.
61389
61390         * modules/getaddrinfo-tests: New file.
61391
61392         * MODULES.html.sh: Add inet_pton.
61393
61394         * modules/inet_pton: New file.
61395
61396 2006-06-21  Simon Josefsson  <jas@extundo.com>
61397
61398         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
61399         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
61400         of using the (limited) gnulib implementation on Windows XP.
61401
61402         * m4/inet_pton.m4: New file.
61403
61404 2006-06-21  Simon Josefsson  <jas@extundo.com>
61405
61406         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
61407         variable.
61408
61409         * lib/socket_.h: Don't define WINVER.
61410
61411         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
61412         slightly modified to work in gnulib.
61413
61414 2006-06-21  Simon Josefsson  <jas@extundo.com>
61415
61416         * doc/gnulib.texi (Windows sockets): Add.
61417
61418 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61419
61420         * lib/read-file.c (fread_file): Start with buffer allocation of
61421         0 bytes rather than 1 byte; this simplifies the code.
61422         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
61423         code to free buffer and save/restore errno.
61424         (internal_read_file): Remove unused local.
61425
61426 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61427
61428         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
61429         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
61430         Problem reported by Denis Excoffier in
61431         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
61432
61433 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61434
61435         * modules/sys_socket, modules/socklen: Include sys/types since
61436         FreeBSD 4.x's sys/socket.h needs it.
61437
61438 2006-06-19  Simon Josefsson  <jas@extundo.com>
61439
61440         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
61441
61442 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61443
61444         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
61445
61446 2006-06-19  Bruno Haible  <bruno@clisp.org>
61447
61448         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
61449         and FULL_PATH_INTTYPES_H in angle brackets.
61450         Reported by Mark D. Baushke <mdb@gnu.org>.
61451
61452 2006-06-17  Eric Blake  <ebb9@byu.net>
61453
61454         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
61455         errno.
61456
61457 2006-06-17  Bruno Haible  <bruno@clisp.org>
61458
61459         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
61460         <sys/inttypes.h>.
61461
61462 2006-06-17  Bruno Haible  <bruno@clisp.org>
61463
61464         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
61465         whether errno is declared. Assume <errno.h> declares errno.
61466
61467 2006-06-17  Bruno Haible  <bruno@clisp.org>
61468
61469         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
61470
61471 2006-06-17  Bruno Haible  <bruno@clisp.org>
61472
61473         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
61474         problem on Solaris 2.5.1.
61475
61476 2006-06-16  Eric Blake  <ebb9@byu.net>
61477
61478         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
61479         * lib/unicodeio.c [!defined errno]: Likewise.
61480         * lib/strtol.c [!defined errno]: Likewise.
61481         * lib/strtod.c [!defined errno]: Likewise.
61482
61483 2006-06-15  Eric Blake  <ebb9@byu.net>
61484
61485         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
61486
61487 2006-06-15  Eric Blake  <ebb9@byu.net>
61488
61489         * config/srclist.txt (ssize_t.m4): Lose sync.
61490
61491 2006-06-15  Bruno Haible  <bruno@clisp.org>
61492
61493         * modules/stdint (Files): Include m4/full-header-path.m4,
61494         m4/size_max.m4, m4/wchar_t.m4.
61495         (Makefile.am): Many more substitutions.
61496         * modules/stdint-tests: New file.
61497         * tests/test-stdint.c: New file.
61498
61499 2006-06-15  Bruno Haible  <bruno@clisp.org>
61500
61501         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
61502         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
61503         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
61504         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
61505         gl_CHECK_TYPE_SAME): New macros.
61506
61507 2006-06-15  Bruno Haible  <bruno@clisp.org>
61508
61509         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
61510
61511 2006-06-15  Bruno Haible  <bruno@clisp.org>
61512
61513         * lib/stdint_.h: Rewritten to be fully auto-configured.
61514         Fixes bug on HP-UX/IA64.
61515
61516 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
61517
61518         * lib/getdate.y (__attribute__): Don't define if already defined.
61519         Problem reported by Larry Jones.
61520         * lib/utimens.c (__attribute__): Likewise.
61521
61522 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
61523
61524         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
61525         reported by Andreas Schwab.
61526
61527 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61528             Bruno Haible  <bruno@clisp.org>
61529
61530         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
61531         check for the declaration of strnlen and a run test that exposes the
61532         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
61533         rpl_strndup.
61534
61535 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61536             Bruno Haible  <bruno@clisp.org>
61537
61538         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
61539
61540 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61541
61542         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
61543         compile test, for Tru64 4.0D.
61544
61545 2006-05-28  Karl Berry  <karl@gnu.org>
61546
61547         * config/srclist.txt (printf-args.c): lose sync.
61548
61549 2006-05-26  Martin Lambers  <marlam@marlam.de>
61550
61551         * lib/getpass.c: Updates the test for the native W32 API, and adds
61552         missing includes, thus fixing compilation warnings.
61553
61554 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61555
61556         * lib/exclude.c (exclude_fnmatch): New function.
61557         (excluded_file_name): Call exclude_fnmatch.
61558         * lib/exclude.h (excluded_file_name): New prototype
61559
61560 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
61561
61562         * lib/tempname.c (small_open, large_open): New macros.
61563         (__open, __open64) [!_LIBC]: Remove.
61564         (__gen_tempname): Use small_open and large_open instead of __open
61565         and __open64.  This fixes a portability bug on HP-UX 11.11i
61566         reported by Simon Wing-Tang in
61567         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
61568
61569 2006-05-24  Bruno Haible  <bruno@clisp.org>
61570
61571         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
61572         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
61573         Reported by Thorsten Maerz <torte@netztorte.de> via
61574         Aaron Stone <aaron@serendipity.cx>.
61575
61576 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61577
61578         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
61579         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
61580         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
61581         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
61582         not really conditional on the cache.
61583         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
61584
61585 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61586
61587         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
61588         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
61589         (my_usleep): Don't mishandle maximum value.
61590
61591 2006-05-19  Jim Meyering  <jim@meyering.net>
61592
61593         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
61594
61595 2006-05-17  Bruno Haible  <bruno@clisp.org>
61596
61597         Cygwin portability.
61598         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
61599
61600 2006-05-17  Bruno Haible  <bruno@clisp.org>
61601
61602         * lib/stdint_.h: Fix recognition of Cygwin.
61603
61604 2006-05-15  Bruno Haible  <bruno@clisp.org>
61605
61606         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
61607         on libtool patch by Ralf Wildenhues.
61608
61609 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61610
61611         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
61612         test for C99 conformance; (bool) 0.5 is an integer constant
61613         expression, but (bool) -0.5 is not.  Problem reported by Fedor
61614         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
61615
61616 2006-05-11  Simon Josefsson  <jas@extundo.com>
61617
61618         * m4/xvasprintf.m4: Fix obvious typo.
61619
61620 2006-05-11  Jim Meyering  <jim@meyering.net>
61621
61622         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
61623         James Lemley.
61624
61625 2006-05-10  Simon Josefsson  <jas@extundo.com>
61626
61627         * lib/md4.c: Typo fix, update copyright years.
61628         (K1, K2): Don't use L because it turn computations into 64-bit on
61629         64-bit platforms.
61630
61631 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
61632
61633         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
61634         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
61635         unwanted sign propagation, e.g., on hosts with 64-bit int.
61636         There still are some problems with reeelly weird theoretical hosts
61637         (e.g., 33-bit int) but it's not worth worrying about now.
61638         * lib/sha1.c (rol): Likewise.
61639         (K1, K2, K3, K4): Remove unnecessary L suffix.
61640
61641 2006-05-10  Bruno Haible  <bruno@clisp.org>
61642
61643         * lib/des.c: Cast to avoid warnings.
61644
61645 2006-05-09  Bruno Haible  <bruno@clisp.org>
61646
61647         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
61648         (Depends-on): Depend also on xsize, stdarg.
61649         (configure.ac): Add gl_XVASPRINTF.
61650
61651 2006-05-09  Bruno Haible  <bruno@clisp.org>
61652
61653         * m4/xvasprintf.m4: New file.
61654
61655 2006-05-09  Bruno Haible  <bruno@clisp.org>
61656
61657         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
61658         (EOVERFLOW): Define fallback value.
61659         (xstrcat): New function.
61660         (xvasprintf): Recognize the special case of a string concatenation.
61661
61662 2006-05-08  Eric Blake  <ebb9@byu.net>
61663
61664         * gnulib-tool (func_version): Base copyright year on CVS date.
61665         (func_emit_copyright_notice): New function.
61666         (func_emit_lib_Makefile_am): Use it.
61667         (func_emit_tests_Makefile_am): Likewise.
61668         (func_import): Likewise.
61669
61670 2006-05-08  Bruno Haible  <bruno@clisp.org>
61671
61672         * modules/stdarg: New file.
61673         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
61674
61675 2006-05-08  Bruno Haible  <bruno@clisp.org>
61676
61677         * m4/stdarg.m4: New file, from GNU gettext.
61678
61679 2006-05-08  Bruno Haible  <bruno@clisp.org>
61680
61681         * config/srclist.txt (build-aux/config.rpath): different from latest
61682         release.
61683
61684 2006-05-08  Bruno Haible  <bruno@clisp.org>
61685
61686         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
61687
61688 2006-05-05  Jim Meyering  <jim@meyering.net>
61689
61690         * m4/warning.m4: New file, derived from bison's file by the same name.
61691
61692 2006-05-03  Bruno Haible  <bruno@clisp.org>
61693
61694         * lib/stdint_.h: Shorter URL.
61695         * lib/inttypes.h: Likewise.
61696
61697 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61698
61699         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
61700
61701 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61702
61703         * lib/verify.h: Document the internals better.  Most of this change
61704         was written by Bruno Haible.
61705
61706 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61707
61708         * doc/verify.texi: New file, partly based on a proposal by
61709         Bruno Haible.
61710
61711 2006-05-02  Bruno Haible  <bruno@clisp.org>
61712
61713         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
61714         test from here...
61715         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
61716
61717 2006-04-29  Bruno Haible  <bruno@clisp.org>
61718
61719         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
61720         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
61721
61722 2006-04-29  Bruno Haible  <bruno@clisp.org>
61723
61724         * gnulib-tool: Make --update option actually work.
61725
61726 2006-04-29  Bruno Haible  <bruno@clisp.org>
61727
61728         * doc/gcd.texi: New file.
61729         * doc/gnulib.texi: Include it.
61730
61731 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
61732
61733         * lib/getdate.y (get_date): When adding relative date, start with the
61734         initial time, not with the result of the first mktime call.
61735
61736 2006-04-25  Bruno Haible  <bruno@clisp.org>
61737
61738         * gnulib-tool (func_import): Output the include directives in three
61739         blocks, sorted separately.
61740         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61741
61742 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61743
61744         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
61745         to define main with arguments, for C++.  Reported by Eric Blake.
61746         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
61747         Prefer 'int main ()' to 'int main (void)', for C++.
61748         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61749         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
61750         for 'main', for C99 and C++.
61751
61752 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61753
61754         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
61755         Don't assume that exit status -1 is valid.
61756         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61757         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61758         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
61759         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
61760         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
61761         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
61762         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
61763         functions can be used without declaring them, or that you can
61764         exit with status -1.
61765         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
61766
61767 2006-04-24  Karl Berry  <karl@gnu.org>
61768
61769         * config/srclist.txt (longdouble.m4): sync lost.
61770
61771 2006-04-24  Eric Blake  <ebb9@byu.net>
61772
61773         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
61774
61775 2006-04-24  Bruno Haible  <bruno@clisp.org>
61776
61777         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
61778         poll() implementation in AIX.
61779         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61780
61781 2006-04-24  Bruno Haible  <bruno@clisp.org>
61782
61783         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
61784         assigned exactly once.
61785
61786 2006-04-23  Claudio Fontana  <claudio@gnu.org>
61787             Bruno Haible  <bruno@clisp.org>
61788
61789         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
61790         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
61791         for AM_CPPFLAGS.
61792
61793 2006-04-23  Bruno Haible  <bruno@clisp.org>
61794
61795         * modules/copy-file: Depend on unistd.
61796         * modules/execute: Likewise.
61797         * modules/fatal-signal: Likewise.
61798         * modules/findprog: Likewise.
61799         * modules/mkdtemp : Likewise.
61800         * modules/pipe: Likewise.
61801         * modules/wait-process: Likewise.
61802
61803 2006-04-23  Bruno Haible  <bruno@clisp.org>
61804
61805         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
61806         condition was already detected.
61807         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61808
61809 2006-04-23  Bruno Haible  <bruno@clisp.org>
61810
61811         * lib/copy-file.c: Include <unistd.h> unconditionally.
61812         * lib/execute.c: Likewise.
61813         * lib/fatal-signal.c: Likewise.
61814         * lib/findprog.c: Likewise.
61815         * lib/mkdtemp.c: Likewise.
61816         * lib/pipe.h: Likewise.
61817         * lib/pipe.c: Likewise.
61818         * lib/wait-process.h: Likewise.
61819
61820 2006-04-23  Bruno Haible  <bruno@clisp.org>
61821
61822         * gnulib-tool (func_usage): Fix --import description. Document
61823         --update.
61824         (func_import): Create temporary file in a temporary directory, if
61825         --dry-run is specified. Silence errors from 'grep' when there are no
61826         m4 files in $m4dir.
61827         (func_create_testdir): Silence errors from 'grep' when there are no
61828         m4 files in $m4dir.
61829         Reported by Karl Berry <karl@freefriends.org>.
61830
61831 2006-04-20  Bruno Haible  <bruno@clisp.org>
61832
61833         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
61834         one argument, so that the code will be portable to Autoconf 2.60.
61835         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
61836         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61837         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
61838
61839 2006-04-19  Derek Price  <derek@ximbiot.com>
61840             Eric Blake  <ebb9@byu.net>
61841
61842         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
61843         rather than "/full/path.h".  Update comment to match.  Shorten &
61844         generalize m4_translit call via AS_TR_CPP.
61845
61846 2006-04-19  Derek Price  <derek@ximbiot.com>
61847             Eric Blake  <ebb9@byu.net>
61848
61849         * lib/inttypes.h: Correct grammar in comment.
61850
61851 2006-04-18  Derek Price  <derek@ximbiot.com>
61852             Paul Eggert  <eggert@cs.ucla.edu>
61853
61854         * modules/inttypes: New file.
61855         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
61856
61857 2006-04-18  Derek Price  <derek@ximbiot.com>
61858             Paul Eggert  <eggert@cs.ucla.edu>
61859
61860         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
61861         New files.
61862
61863 2006-04-18  Derek Price  <derek@ximbiot.com>
61864             Paul Eggert  <eggert@cs.ucla.edu>
61865
61866         * lib/inttypes.h: New file.
61867         * lib/strtoimax.c: Assume <inttypes.h>.
61868
61869 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
61870
61871         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
61872         isn't mounted.  Problem reported by Kir Kolyshkin.
61873
61874 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61875
61876         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
61877         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
61878         Derek R. Price.
61879         * lib/regex.h (RE_DUP_MAX): Update comment to match current
61880         implementation.
61881
61882 2006-04-12  Eric Blake  <ebb9@byu.net>
61883
61884         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
61885         is now done automatically by the corresponding Autoconf macro.
61886
61887 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
61888
61889         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
61890         time_r.h.
61891
61892 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61893
61894         Merge regex changes from libc, removing some of our
61895         POSIX-conformance changes that were rejected and redoing them in a
61896         less-intrusive way.
61897
61898         * lib/regcomp.c (re_compile_internal, init_dfa):
61899         Length arg is now size_t, not Idx.  All uses changed.
61900         (peek_token): Forward decl now says internal_function.
61901         (__re_error_msgid, __re_error_msgid_idx):
61902         Now static rather than extern with attribute_hidden.
61903         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
61904         For some reason libc prefers K&R style defns for external functions.
61905         (regerror) [!defined _LIBC]: Likewise.
61906         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
61907         (seek_collating_symbol_entry, lookup_collation_sequence_value):
61908         (build_range_exp, build_collating_symbol):
61909         Use K&R-style defn.
61910         (re_compile_fastmap): Use '\0' to memset, not 0.
61911         (utf8_sb_map): Make the calculations more obvious.
61912         (init_dfa, parse_bracket_exp, build_charclass_op):
61913         Call calloc and cast result, as glibc does.
61914         (init_word_char, fetch_token, peek_token, peek_token_bracket):
61915         (build_range_exp, build_collating_symbol):
61916         Now internal functions.
61917
61918         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61919
61920         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61921         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61922         Don't depend on VMS; depend on __VMS instead, for POSIX
61923         namespace cleanness.
61924         (regoff_t): Define to ssize_t, not long int.
61925
61926         Remove the REG_ macros named below.  Instead, make the old names
61927         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
61928         __USE_GNU_REGEX.
61929         (REG_BACKSLASH_ESCAPE_IN_LISTS):
61930         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
61931         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
61932         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
61933         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
61934         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
61935         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
61936         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
61937         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
61938         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
61939         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
61940         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
61941         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
61942         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
61943         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
61944         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
61945         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
61946         (REG_NREGS):
61947         Remove.  All uses replaced by the old RE_* names.
61948         (RE_BACKSLASH_ESCAPE_IN_LISTS):
61949         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
61950         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
61951         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
61952         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
61953         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
61954         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
61955         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
61956         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
61957         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
61958         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
61959         Don't bother having these macros be independent of each others'
61960         values, since they no longer exist in the POSIX name space.
61961
61962         Rename the following member names back to their old names,
61963         unless !__USE_GNU_REGEX.  All uses changed back.
61964         (buffer): Renamed from re_buffer.
61965         (allocated): Renamed from re_allocated.
61966         (used): Renamed from re_used.
61967         (syntax): Renamed from re_syntax.
61968         (fastmap): Renamed from re_fastmap.
61969         (translate): Renamed from re_translate.
61970         (can_be_null): Renamed from re_can_be_null.
61971         (regs_allocated): Renamed from re_regs_allocated.
61972         (fastmap_accurate): Renamed from re_fastmap_accurate.
61973         (no_sub): Renamed from re_no_sub.
61974         (not_bol): Renamed from re_not_bol.
61975         (not_eol): Renamed from re_not_eol.
61976         (newline_anchor): Renamed from re_newline_anchor.
61977         (num_regs): Renamed from rm_num_regs.
61978         (start): Renamed from rm_start.
61979         (end): Renamed from rm_end.
61980
61981         (free_state): Move up a bit.
61982
61983         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
61984         #define to be empty.
61985         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
61986         when that is what is intended.
61987         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
61988         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
61989         (MAX): New macro.
61990         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
61991         All uses changed back to re_malloc, etc.  It's now the caller's
61992         responsibility to check for overflow; all callers changed.
61993         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
61994         (re_x2nrealloc): Remove.
61995         (free_state): Remove decl.
61996
61997         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
61998         (re_set_registers, re_exec):
61999         Use K&R-style defn.
62000
62001         2006-01-31  Roland McGrath  <roland@redhat.com>
62002
62003         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
62004         Reported by Mike Frysinger <vapier@gentoo.org>.
62005
62006         2006-01-15  Andreas Jaeger  <aj@suse.de>
62007
62008         [BZ #1950]
62009         * lib/regex_internal.c (re_string_reconstruct): Adjust for
62010         build_wcs_upper_buffer change.
62011         (build_wcs_upper_buffer): Change return type.
62012
62013         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
62014
62015         * lib/regex_internal.h: Include <stdint.h> if available.
62016
62017         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
62018
62019         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
62020
62021         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62022
62023         * lib/regcomp.c: Adjust for changed secondary hash function.
62024
62025         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
62026
62027         * lib/regex.h: Pretty printing.
62028         Clean up namespace a bit.
62029
62030         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
62031
62032         * lib/regexec.c (update_cur_sifted_state, check_arrival,
62033         check_arrival_add_next_nodes): Avoid using uninitialized variable.
62034
62035         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62036                     Ulrich Drepper  <drepper@redhat.com>
62037
62038         [BZ #1302]
62039         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
62040         changed.
62041         (bitset_word_t): Renamed from bitset_word.  All uses changed.
62042
62043         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
62044
62045         [BZ #281]
62046         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
62047         * lib/regcomp.c: Remove unnecessary uses of
62048         unsigned RE_TRANSLATE_TYPE.
62049         * lib/regex_internal.h: Likewise.
62050         * lib/regex_internal.c: Likewise.
62051         * lib/regexec.c: Likewise.
62052         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
62053
62054         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
62055
62056         * lib/regexec.c (find_recover_state): Remove unnecessary
62057         initialization.
62058         (transit_state_bkref): Make DFA a const pointer.
62059         (get_subexp): Likewise.
62060         (check_arrival): Likewise.
62061         (update_cur_sifted_state): Likewise.
62062         (re_search_internal): Likewise.
62063         (prune_impossible_nodes): Likewise.
62064         (acquire_init_state_context): Likewise.
62065         (proceed_next_node): Likewise.
62066         (set_regs): Likewise.
62067         (free_fail_stack_return): Likewise.
62068         (check_arrival_expand_ecl): Mark DFA parameter as const.
62069         (check_arrival_expand_ecl_sub): Likewise.
62070         (check_subexp_limits): Likewise.
62071         (sub_epsilon_src_nodes):  Likewise.
62072         (add_epsilon_src_nodes):  Likewise.
62073         (merge_state_array): Likewise.
62074         (update_regs): Likewise.
62075         (build_trtable): Likewise.
62076         (sift_states_backward): Mark MCTX parameter as const.
62077         (build_sifted_states): Likewise.
62078         (update_cur_sifted_state): Likewise.
62079         (sift_states_mkref): Likewise.
62080         (check_arrival_expand_ecl): Mark eclosure as const.
62081         (check_dst_limits_calc_pos_1): Likewise.
62082         * lib/regex_internal.h (re_match_context_t): Make dfa a const
62083         pointer.
62084
62085         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
62086
62087         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
62088         (transit_state_sb): Likewise.
62089         (transit_state_mb): Likewise.
62090         (sift_states_iter_mb): Likewise.
62091         (check_arrival_add_next_nodes): Likewise.
62092         (check_node_accept_bytes): Change first parameter to pointer-to-const.
62093         [_LIBC] (re_search_2_stub): Use mempcpy.
62094
62095         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
62096         mbrtowc for very simple UTF-8 case.
62097
62098         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
62099         a pointer-to-const.
62100         (re_acquire_state_context): Likewise.
62101         * lib/regex_internal.h: Adjust prototypes.
62102
62103         * lib/regex.c: Prevent using C++ compilers.
62104
62105         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
62106         (re_acquire_state_context): Likewise.
62107
62108 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62109
62110         * modules/regex (Depends-on): Add ssize_t.
62111
62112 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62113
62114         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
62115         translation table.
62116
62117 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62118
62119         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
62120
62121 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
62122             Bruno Haible  <bruno@clisp.org>
62123
62124         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
62125         <sys/types.h> and <inttypes.h>.
62126
62127 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62128
62129         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
62130         `__error_t_defined', so argp.h will not typedef the former.
62131
62132 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62133
62134         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
62135         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
62136         glibc names.  Even if glibc is changed to conform to POSIX, the
62137         traditional names will be available anyway, since regex depends on
62138         the extensions module.  Also, fix a longstanding typo in the
62139         implementation of Spencer ERE test #75 from grep 2.3.  Problems
62140         reported by Emanuele Giaquinta.  Also, change sense of cached
62141         variable, so that the message makes sense.
62142
62143 2006-03-24  Simon Josefsson  <jas@extundo.com>
62144
62145         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
62146         including some doc fixes.
62147         (base64_encode_alloc): Fix +1 bug on allocation failures.
62148
62149 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62150
62151         * lib/base64.c (base64_encode): Do not read past end of array with
62152         unsanitized input on systems with CHAR_BIT > 8.
62153
62154 2006-03-24  Eric Blake  <ebb9@byu.net>
62155
62156         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
62157
62158 2006-03-22  Karl Berry  <karl@gnu.org>
62159
62160         * config/srclist.txt (*setenv.[ch]): get from coreutils.
62161         * config/srclistvars.sh (COREUTILS): new var.
62162
62163 2006-03-17  Jim Meyering  <jim@meyering.net>
62164
62165         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
62166         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
62167
62168 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62169
62170         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
62171         no longer needs it.  Instead, check that regoff_t is as least
62172         as wide as ptrdiff_t.
62173
62174         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
62175         so that our regex.h stays compatible with the installed regex.
62176         This is helpful for installers who configure --without-included-regex.
62177         Problem reported by Emanuele Giaquinta.
62178
62179 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62180
62181         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
62182         Typedef to long int, not to off_, as POSIX will likely change
62183         in that direction.
62184
62185 2006-03-15  Eric Blake  <ebb9@byu.net>
62186
62187         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
62188
62189 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62190
62191         * lib/argp-help.c (validate_uparams): Fix typo
62192         * lib/argp-parse.c (argp_default_options): Consistently begin help
62193         messages with a lowercase letter.
62194
62195 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
62196
62197         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
62198         overrun buffers and shouldn't be used (much as gets shouldn't be
62199         used).
62200         * lib/time_r.c (asctime_r, ctime_r): Likewise.
62201
62202 2006-03-08  Simon Josefsson  <jas@extundo.com>
62203
62204         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
62205         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62206
62207 2006-03-08  Simon Josefsson  <jas@extundo.com>
62208
62209         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
62210         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62211
62212 2006-03-08  Simon Josefsson  <jas@extundo.com>
62213
62214         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
62215         signal that configure disabled the device.
62216
62217 2006-03-08  Simon Josefsson  <jas@extundo.com>
62218
62219         * build-aux/maint.mk: Fix refresh-po, to handle no translated
62220         languages.
62221
62222 2006-03-07  Simon Josefsson  <jas@extundo.com>
62223
62224         * modules/getopt (Depends-on): Add unistd.
62225
62226         * modules/unistd: New file.
62227
62228 2006-03-07  Simon Josefsson  <jas@extundo.com>
62229
62230         * modules/gc-random: New file.
62231
62232 2006-03-07  Simon Josefsson  <jas@extundo.com>
62233
62234         * m4/unistd_h.m4: New file.
62235
62236 2006-03-07  Simon Josefsson  <jas@extundo.com>
62237
62238         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
62239         test to be side-effect free by storing the result in the cache
62240         variable gl_cv_lib_readline, and moving the assignment of
62241         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
62242         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62243
62244 2006-03-07  Simon Josefsson  <jas@extundo.com>
62245
62246         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
62247         error on missing devices (the functions will return an error).
62248
62249         * m4/gc.m4: Move random stuff to gc-random.m4
62250
62251 2006-03-07  Simon Josefsson  <jas@extundo.com>
62252
62253         * lib/unistd_.h: New file.
62254
62255 2006-03-07  Simon Josefsson  <jas@extundo.com>
62256
62257         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
62258
62259 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62260
62261         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
62262         Problem reported by Juan Manuel Guerrero.
62263
62264 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62265
62266         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
62267         the unistd module.
62268         * lib/getlogin_r.c: Likewise.
62269         * lib/getlogin_r.h: Likewise.
62270         * lib/glob.c: Likewise.
62271         * lib/pagealign_alloc.c: Likewise.
62272         * lib/unistd_.h: Remove; no longer needed.
62273
62274 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62275
62276         * MODULES.html.sh (Support for systems lacking POSIX:2001):
62277         Add unistd.
62278         * modules/c-stack (Depends-on): Add unistd.
62279         * modules/getlogin_r: Likewise.
62280         * modules/glob: Likewise.
62281         * modules/pagealign_alloc: Likewise.
62282         * modules/unistd (Files): Remove lib/unistd_.h.
62283         (EXTRA_DIST): Remove.
62284         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
62285         need unistd_.h.
62286         (MOSTLYCLEANFILES): Remove unistd.h-t.
62287
62288 2006-03-03  Simon Josefsson  <jas@extundo.com>
62289
62290         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
62291
62292 2006-03-03  Simon Josefsson  <jas@extundo.com>
62293
62294         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
62295         libidn and bison.
62296
62297 2006-03-03  Simon Josefsson  <jas@extundo.com>
62298
62299         * build-aux/maint.mk: Add indent target.
62300
62301 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
62302
62303         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
62304         our replacement poll.h in any case, to avoid a differing
62305         declaration from a system header.  Seen on AIX.
62306
62307 2006-03-01  Simon Josefsson  <jas@extundo.com>
62308
62309         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
62310         <kasal@ucw.cz>.
62311
62312 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62313
62314         * modules/gettime (Depends-on): Add extensions module.
62315         * modules/nanosleep (Depends-on): Likewise.
62316         * modules/settime (Depends-on): Likewise.
62317
62318 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62319
62320         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
62321         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
62322         pedantically.
62323         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62324         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
62325
62326         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
62327         not "==".  Reported by Ralf Wildenhues.
62328
62329 2006-03-01  Karl Berry  <karl@gnu.org>
62330
62331         * doc/Copyright/request-*: new files, synced from gnuorg.
62332
62333 2006-03-01  Karl Berry  <karl@gnu.org>
62334
62335         * config/srclist.txt (Copyright/*): new entries.
62336
62337 2006-02-28  Simon Josefsson  <jas@extundo.com>
62338
62339         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
62340
62341 2006-02-27  Simon Josefsson  <jas@extundo.com>
62342
62343         * lib/base64.h: Indent #define's.  From Jim Meyering
62344         <jim@meyering.net>.
62345
62346 2006-02-27  Jim Meyering  <jim@meyering.net>
62347
62348         Revert the change of 2006-02-24, so these files can continue
62349         to be sync'd from gettext.
62350         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
62351         of `config.h'.
62352
62353 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62354
62355         * modules/intprops: New file.
62356         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62357         Add intprops.
62358         * modules/getloadavg (Files): Remove lib/intprops.h.
62359         (Depends-on): Add intprops.
62360         * modules/human: Likewise.
62361         * modules/inttostr: Likewise.
62362         * modules/openat: Likewise.
62363         * modules/sig2str: Likewise.
62364         * modules/userspec: Likewise.
62365         * modules/utimecmp: Likewise.
62366         * modules/xnanosleep: Likewise.
62367         * modules/xstrtol: Likewise.
62368
62369 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
62370
62371         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
62372         * modules/lock-tests (TESTS): Use $(EXEEXT).
62373         * modules/tls-tests: Likewise.
62374         * modules/argp-tests: Likewise.
62375         (check_PROGRAMS): New var, replacing...
62376         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
62377
62378 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62379
62380         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
62381         `config.h'.
62382
62383 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62384
62385         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
62386
62387 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62388
62389         Sync from coreutils.
62390         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
62391         gl_CHDIR_SAFER.
62392
62393 2006-02-22  Jim Meyering  <jim@meyering.net>
62394
62395         Sync from coreutils.
62396         * m4/chdir-safer.m4: New file.
62397
62398 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62399
62400         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
62401         AT_FDCWD exceeds INT_MAX.
62402         * lib/openat.h (AT_FDCWD): Likewise.
62403
62404 2006-02-17  Eric Blake  <address@hidden>
62405
62406         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
62407
62408 2006-02-16  Simon Josefsson  <jas@extundo.com>
62409
62410         * modules/getaddrinfo (Depends-on): Add sys_socket.
62411
62412 2006-02-15  Simon Josefsson  <jas@extundo.com>
62413
62414         * build-aux/maint.mk: Add dsyntax-check rule.
62415
62416 2006-02-15  Eric Blake  <ebb9@byu.net>
62417
62418         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
62419         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
62420         'present but cannot compile' warnings on cygwin.
62421         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
62422         use ws2tcpip.h if sys/socket.h works.
62423         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
62424         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
62425
62426 2006-02-14  Simon Josefsson  <jas@extundo.com>
62427
62428         * modules/maintainer-makefile (Files): Rename.
62429
62430         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
62431         and (the local) Makefile.cfg to maint-cfg.mk.
62432
62433         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
62434         to the latter.
62435
62436         * modules/maintainer-makefile: New module.
62437
62438         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
62439         severaly stripped to make it possible to build it up from scratch
62440         with reliable tests.
62441
62442         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
62443         fixes to permit overriding the default actions when configure and
62444         makefile are not available.
62445
62446 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62447
62448         Sync from coreutils.
62449         * modules/lstat (Depends-on): Don't depend on xalloc.
62450         (License): Change from GPL to LGPL, since this is now simply a
62451         replacement for a libc function.
62452
62453 2006-02-14  Jim Meyering  <jim@meyering.net>
62454
62455         Sync from coreutils.
62456
62457         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
62458         failure on deficient systems, and simplify gnulib lgpl dependencies.
62459         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
62460         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
62461
62462         * lib/xalloc-die.c: Remove unused definition of N_.
62463
62464 2006-02-14  Jim Meyering  <jim@meyering.net>
62465
62466         Sync from coreutils.
62467         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
62468         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
62469         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
62470         double-quote uses of that variable, to accommodate the rare case in
62471         which getmntent is available in none of the libraries checked.  This
62472         happens at least on FreeBSD 5.0.
62473
62474 2006-02-13  Simon Josefsson  <jas@extundo.com>
62475
62476         * gnulib-tool (Usage): Fix --import, from
62477         karl@freefriends.org (Karl Berry).
62478
62479 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62480
62481         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
62482
62483 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
62484
62485         * lib/argp-namefrob.h: Restore changes accidentally lost during the
62486         "autoupdate" on 2005-12-12.
62487
62488 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62489
62490         * modules/closeout (Depends-on): Remove atexit.
62491
62492 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62493
62494         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
62495         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
62496
62497 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62498
62499         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
62500         __EXTENSIONS__ if this causes compilation to fail.  Problem
62501         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
62502         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
62503
62504 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
62505
62506         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
62507         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
62508         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
62509         All uses changed.
62510
62511 2006-01-26  Simon Josefsson  <jas@extundo.com>
62512
62513         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
62514         prototype is visible on mingw32.
62515
62516         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
62517         for mingw32.
62518
62519         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
62520         mingw32).
62521
62522 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62523
62524         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
62525         attempt to open for write; this always fails, at least on POSIX
62526         hosts.  This reinstates the 2006-01-09 change, which was
62527         inadvertently removed.
62528
62529 2006-01-26  Bruno Haible  <bruno@clisp.org>
62530
62531         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
62532         Reported by Paul Eggert.
62533
62534 2006-01-26  Bruno Haible  <bruno@clisp.org>
62535             Paul Eggert  <eggert@cs.ucla.edu>
62536
62537         * lib/stdbool_.h (_Bool)
62538         [(! (defined __cplusplus || defined __BEOS__)
62539           && !defined __GNUC__
62540           && !(defined __HP_cc || defined __xlc__
62541                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
62542                || defined __sgi))]:
62543         #define to signed char in these cases too; this simplifies
62544         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
62545         etc., separately) and makes it more conservative.
62546
62547 2006-01-25  Simon Josefsson  <jas@extundo.com>
62548
62549         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
62550         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
62551         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
62552
62553 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62554
62555         * lib/argp-namefrob.h: Bugfix. Remove stray #
62556
62557 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62558
62559         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
62560         so that we test the test.
62561         Check for yet another HP-UX cc bug involving *bool |= bool.
62562
62563 2006-01-25  Karl Berry  <karl@gnu.org>
62564
62565         * config/srclist.txt (vasnprintf.c): sync lost.
62566
62567 2006-01-25  Jim Meyering  <jim@meyering.net>
62568
62569         Sync from the stable (b5) branch of coreutils:
62570
62571         * lib/fts.c (fts_children): Don't let close() clobber errno from
62572         failed fchdir().
62573
62574         * lib/fts.c (fts_stat): When following a symlink-to-directory,
62575         don't necessarily interpret stat-fails+lstat-succeeds as indicating
62576         a dangling symlink.  That can also happen at least for ELOOP.
62577         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
62578         FYI, this bug predates the inclusion of fts.c in coreutils.
62579
62580         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
62581         in their own block, so pre-c99 compilers don't object.
62582
62583         Avoid the double-free (first in fts_read, second in fts_close) that
62584         would occur when an `active' directory is made inaccessible (e.g.,
62585         via chmod a-x) during a traversal.
62586         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62587         before returning.  Reproduce this failure by
62588         mkdir -p a/b; cd a; chmod a-x . b
62589         Reported by Stavros Passas.
62590
62591 2006-01-25  Jim Meyering  <jim@meyering.net>
62592
62593         * lib/fileblocks.c: Remove more useless parentheses.
62594         * lib/readutmp.h: Likewise.
62595
62596 2006-01-25  Bruno Haible  <bruno@clisp.org>
62597
62598         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
62599         warnings.
62600         Reported by Paul Eggert.
62601
62602 2006-01-25  Bruno Haible  <bruno@clisp.org>
62603
62604         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
62605         rid of a trap command. For Solaris sh.
62606         Reported by Mark D. Baushke <mdb@gnu.org>.
62607
62608 2006-01-24  Simon Josefsson  <jas@extundo.com>
62609
62610         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
62611         Bruno.
62612
62613 2006-01-24  Karl Berry  <karl@gnu.org>
62614
62615         * config/srclist.txt (argp-namefrob.h): sync lost.
62616
62617 2006-01-24  Jim Meyering  <jim@meyering.net>
62618
62619         * modules/openat (Files): Add lib/intprops.h.
62620         From Mark D. Baushke.
62621
62622 2006-01-24  Jim Meyering  <jim@meyering.net>
62623
62624         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
62625         Reported by Mark D. Baushke.
62626
62627 2006-01-24  Jim Meyering  <jim@meyering.net>
62628
62629         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
62630
62631 2006-01-24  Bruno Haible  <bruno@clisp.org>
62632
62633         * modules/strnlen (Maintainer): Change from glibc to all.
62634
62635 2006-01-24  Bruno Haible  <bruno@clisp.org>
62636
62637         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
62638         Patch by Paul Eggert.
62639
62640 2006-01-24  Bruno Haible  <bruno@clisp.org>
62641
62642         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
62643         already has it.
62644         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
62645         2005-11-26.
62646
62647         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
62648         'signed char' to avoid problems with the built-in _Bool type.
62649         Reported by Paul Eggert on 2005-11-26.
62650
62651 2006-01-24  Bruno Haible  <bruno@clisp.org>
62652
62653         * gnulib-tool (func_import): Avoid constructing complicated sed
62654         expressions inside backquote.
62655         Report and solution by Mark D. Baushke <mdb@gnu.org>.
62656
62657 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
62658
62659         These changes imported from libc.
62660         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
62661         test and two separate function calls.
62662         * lib/strndup.c (__strndup): Add libc_hidden_def.
62663
62664 2006-01-23  Simon Josefsson  <jas@extundo.com>
62665
62666         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
62667         Remove the test_*_SOURCES variable: automake infers it by default.
62668         * modules/tls-tests: Likewise.
62669
62670 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62671
62672         Work around porting bugs reported by Dieter in
62673         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
62674         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
62675         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
62676         Include "getopt.h" first, to check interface.
62677         (getenv): Declare only if defined HAVE_DECL_GETENV &&
62678         !HAVE_DECL_GETENV.
62679         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
62680         (__strndup): Revert to K&R-style function dfns, the glibc style.
62681         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
62682         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
62683         Include strnlen.h first, to get prototype properly.
62684         (strnlen): Renamed from __strnlen.
62685         Remove weak alias.
62686
62687 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62688
62689         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
62690
62691 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62692
62693         * config/srclist.txt: Adjust to reflect glibc reorganization.
62694         This affects only comments.
62695
62696 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62697
62698          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
62699          Reported by Bruce Korb <bkorb@gnu.org>.
62700
62701 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62702
62703         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
62704         to pacify gcc -Wswitch-default.
62705
62706 2006-01-22  Bruno Haible  <bruno@clisp.org>
62707
62708         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
62709         temporary buffer for sprintf, take into account the precision also
62710         for 'd', 'i', 'u', 'o', 'x', 'X'.
62711
62712 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62713
62714         * modules/argp-tests: New module
62715         * tests/test-argp.c: New file
62716         * tests/test-argp-2.sh: New file
62717
62718 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62719
62720         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
62721         (__argp_base_name): Removed
62722         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
62723         typo.
62724         (__argp_base_name): Provide macro definition or extern declaration
62725         depending on the configuration
62726
62727 2006-01-20  Simon Josefsson  <jas@extundo.com>
62728
62729         * modules/inet_ntop (Depends-on): Depend on sys_socket.
62730
62731 2006-01-20  Simon Josefsson  <jas@extundo.com>
62732
62733         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
62734
62735 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62736
62737         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
62738         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
62739         Suggested by Bruno Haible.
62740
62741 2006-01-20  Karl Berry  <karl@gnu.org>
62742
62743         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
62744         until changes propagate, I guess.
62745
62746 2006-01-19  Simon Josefsson  <jas@extundo.com>
62747
62748         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
62749
62750 2006-01-19  Simon Josefsson  <jas@extundo.com>
62751
62752         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
62753
62754 2006-01-19  Simon Josefsson  <jas@extundo.com>
62755
62756         * gnulib-tool: Set check_PROGRAMS.
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: Use
62767         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
62768         test_*_SOURCES.
62769
62770 2006-01-18  Simon Josefsson  <jas@extundo.com>
62771
62772         * modules/socklen (Depends-on): Depend on sys_socket.
62773
62774 2006-01-18  Simon Josefsson  <jas@extundo.com>
62775
62776         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62777         modules/des-tests, modules/gc-arcfour-tests,
62778         modules/gc-arctwo-tests, modules/gc-des-tests,
62779         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62780         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62781         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62782         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62783         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62784         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
62785         $(EXEEXT) to automake TESTS variable, for mingw32.
62786
62787 2006-01-17  Simon Josefsson  <jas@extundo.com>
62788
62789         * modules/socklen (Include): Need sys/socket.h.
62790
62791 2006-01-17  Bruno Haible  <bruno@clisp.org>
62792
62793         * modules/ssize_t (Include): Add <sys/types.h>.
62794
62795 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
62796
62797         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
62798         it's not portable and it doesn't work with cross-compiles.
62799         Problem reported by Bruno Haible.  Fix missing-$ typo in
62800         'test "gl_cv_ignore_unused_libraries" ...' that prevented
62801         -zignore from being used with Sun's C compiler.
62802
62803 2006-01-12  Simon Josefsson  <jas@extundo.com>
62804
62805         * lib/base64.c: Fix warning, reported by Bruno Haible
62806         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
62807
62808 2006-01-12  Bruno Haible  <bruno@clisp.org>
62809
62810         * modules/ldd: New file.
62811         * build-aux/ldd.sh.in: New file.
62812         * MODULES.html.sh (Support for building libraries and executables): Add
62813         ldd.
62814
62815 2006-01-12  Bruno Haible  <bruno@clisp.org>
62816
62817         * m4/ldd.m4: New file.
62818
62819 2006-01-12  Bruno Haible  <bruno@clisp.org>
62820
62821         * gnulib-tool (func_import, func_create_testdir): Don't go into an
62822         endless loop while replacing $auxdir with build-aux.
62823
62824 2006-01-11  Simon Josefsson  <jas@extundo.com>
62825
62826         * lib/stdint_.h (SIZE_MAX): Add missing (.
62827
62828 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
62829
62830         Sync from coreutils.
62831         * lib/md5.c: Fix commentary typos.
62832         (alignof, UNALIGNED_P): No need for a GCC-specific version.
62833         * lib/md5.h (__attribute__): Remove; unused.
62834         * lib/sha1.c: Fix commentary to match md5 better.
62835         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
62836         so that we don't need to worry about alignment.  All uses changed.
62837         This merges the 2005-10-28 md5 change into sha1.
62838
62839 2006-01-11  Jim Meyering  <jim@meyering.net>
62840
62841         Sync from coreutils.
62842         * lib/md5.c (OP): Fix spacing.
62843
62844 2006-01-11  Bruno Haible  <bruno@clisp.org>
62845
62846         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62847         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
62848         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
62849
62850 2006-01-11  Bruno Haible  <bruno@clisp.org>
62851
62852         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62853         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
62854         the "early" section as well.
62855
62856 2006-01-11  Bruno Haible  <bruno@clisp.org>
62857
62858         Avoid "ar: no archive members specified" error on MacOS X.
62859         * gnulib-tool (func_modules_add_dummy): New function.
62860         (func_import, func_create_testdir): Invoke it.
62861
62862 2006-01-11  Bruno Haible  <bruno@clisp.org>
62863
62864         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
62865         with $auxdir in AC_CONFIG_FILES statements.
62866
62867 2006-01-11  Bruno Haible  <bruno@clisp.org>
62868
62869         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62870         Initialize also noinst_HEADERS to empty.
62871
62872 2006-01-11  Bruno Haible  <bruno@clisp.org>
62873
62874         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
62875         variables.
62876         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
62877         autoreconf.
62878
62879 2006-01-11  Bruno Haible  <bruno@clisp.org>
62880
62881         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
62882         overridable by the user.
62883         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62884
62885 2006-01-10  Simon Josefsson  <jas@extundo.com>
62886
62887         * modules/sys_socket: New file.
62888
62889 2006-01-10  Simon Josefsson  <jas@extundo.com>
62890
62891         * m4/sys_socket_h.m4: New file.
62892
62893 2006-01-10  Simon Josefsson  <jas@extundo.com>
62894
62895         * lib/socket_.h: New file.
62896
62897 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62898
62899         * modules/readutmp (Maintainer): Add myself.
62900
62901 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62902
62903         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
62904         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
62905         People who are still concerned with buggy memcmp implementations
62906         can invoke gl_FUNC_MEMCMP themselves.
62907
62908 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62909
62910         * lib/regex_internal.h (BITSET_WORD_BITS):
62911         Work around a bug in 64-bit PGC (before version 6.1-2), where the
62912         preprocessor mishandles large unsigned values as if they were signed.
62913         Problem reported by Claudio Fontana in
62914         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
62915
62916 2006-01-10  Jim Meyering  <jim@meyering.net>
62917
62918         Avoid the double-free (first in fts_read, second in fts_close) that
62919         would occur when an `active' directory is made inaccessible (e.g.,
62920         via chmod a-x) during a traversal.
62921         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62922         before returning.  Reproduce this failure by
62923         mkdir -p a/b; cd a; chmod a-x . b
62924         Reported by Stavros Passas.
62925
62926         Sync from coreutils.
62927         * lib/sha1.c: Tweak grammar in a comment.
62928
62929 2006-01-10  Jim Meyering  <jim@meyering.net>
62930
62931         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
62932         Patch by Joerg Sonnenberger.
62933
62934 2006-01-10  Bruno Haible  <bruno@clisp.org>
62935
62936         * modules/readutmp: Depend on module free.
62937         * modules/strtok_r: Depend on module restrict.
62938
62939 2006-01-10  Bruno Haible  <bruno@clisp.org>
62940
62941         * modules/gettext (configure.ac): Add an invocation of
62942         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
62943
62944 2006-01-10  Bruno Haible  <bruno@clisp.org>
62945
62946         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
62947         Reported by Werner Lemberg <wl@gnu.org>.
62948
62949 2006-01-10  Bruno Haible  <bruno@clisp.org>
62950
62951         * lib/localcharset.c: Update from GNU gettext.
62952
62953 2006-01-10  Bruno Haible  <bruno@clisp.org>
62954
62955         * lib/argp.h (__const): Remove macro. Use const instead.
62956         * lib/argp-fmtstream.h (__const): Likewise.
62957         * lib/glob_.h (__const): Remove macro.
62958         * lib/glob-libc.h: Use const instead of __const.
62959
62960 2006-01-10  Bruno Haible  <bruno@clisp.org>
62961
62962         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
62963         variable.
62964         Needed to avoid an automake error regarding the 'gettext' module.
62965
62966 2006-01-09  Simon Josefsson  <jas@extundo.com>
62967
62968         * modules/inet_ntop (Depends-on): Add restrict.
62969
62970 2006-01-09  Simon Josefsson  <jas@extundo.com>
62971
62972         * modules/gc-rijndael-tests (License): Put under LGPL.
62973
62974         * modules/gc-des-tests (License): Likewise.
62975
62976         * modules/gc-arcfour-tests (License): Likewise.
62977
62978         * modules/gc-arctwo-tests (License): Likewise.
62979
62980         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
62981
62982         * modules/gc-hmac-sha1-tests (Files): Likewise.
62983
62984         * modules/gc-hmac-md5-tests (License): Likewise.
62985
62986         * modules/gc-sha1-tests (License): Likewise.
62987
62988         * modules/gc-md5-tests (License): Likewise.
62989
62990         * modules/gc-md4-tests (License): Likewise.
62991
62992         * modules/gc-md2-tests (License): Likewise.
62993
62994         * modules/gc-tests (License): Likewise.
62995
62996         * modules/des-tests (License): Likewise.
62997
62998         * modules/md4-tests (License): Likewise.
62999
63000         * modules/md2-tests (License): Likewise.
63001
63002 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63003
63004         Sync from coreutils:
63005
63006         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
63007         * modules/lib-ignore: New file.
63008         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
63009         chdir-safer.m4, lchmod.m4.
63010         * modules/openat: Add mkdirat.c, openat-priv.h.
63011
63012 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63013
63014         Sync from coreutils.
63015         * m4/lib-ignore.m4: New file.
63016         * m4/lchmod.m4: New file.
63017
63018 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63019
63020         Sync from coreutils.
63021         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
63022         for write access: POSIX says that must fail.
63023         * lib/fts.c (diropen): Likewise.
63024         * lib/save-cwd.c (save_cwd): Likewise.
63025         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
63026         well, for minor improvements on hosts that lack O_DIRECTORY.
63027         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
63028         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
63029         Fall back on chown if open failed with EACCES.
63030
63031         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
63032         Report an error at compile-time if only a 1-second nominal clock
63033         resolution is found.
63034
63035         * lib/lchmod.h: New file.
63036         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
63037         (make_dir_parents): Use lchown rather than chown, and
63038         lchmod rather than chmod.
63039
63040         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
63041         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
63042         "proc" reported by n0dalus.
63043
63044         * lib/mountlist.c: Include <limits.h>.
63045         (dev_from_mount_options)
63046         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
63047         New function.  It no longer assumes "dev=" has the System V meaning
63048         on Linux (since it doesn't).  It also parses "dev=" more carefully.
63049         (read_file_system_list)
63050         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
63051         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
63052         dev= in that case.
63053
63054         * lib/posixtm.h (PDS_PRE_2000): New macro.
63055         * lib/posixtm.c (year): Arg is now syntax_bits rather than
63056         allow_century.  All usages changed.  Reject dates outside the range
63057         1969-1999 if PDS_PRE_2000 is used.
63058
63059 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63060
63061         Sync from coreutils.
63062         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
63063         (Time of day items): Mention the possibility of leap seconds.
63064         Problem reported by Dr. David Alan Gilbert.
63065
63066 2006-01-09  Jim Meyering  <jim@meyering.net>
63067
63068         Sync from coreutils.
63069
63070         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
63071
63072         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
63073
63074         * lib/modechange.c (mode_compile): Reject an invalid mode string
63075         that starts with an octal digit.  From Andreas Gruenbacher.
63076
63077         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
63078         and dup to open_safer and dup_safer, respectively.
63079         (openat_permissive): Fix typo in comment.
63080
63081         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
63082         "gettext.h"; either no longer needed or are guaranteed by openat.h.
63083         (_): Remove; no longer needed.
63084         (openat): Renamed from rpl_openat; no need for rpl_openat
63085         since openat.h renames openat for us.
63086         Replace most of the body with a call to openat_permissive,
63087         to avoid duplicate code.
63088         Port to (probably hypothetical) environments were mode_t is
63089         wider than int.
63090         (openat_permissive): Require mode arg, so that we can check
63091         types better.  Put it just after flags.  Change cwd failure
63092         indicator from pointer-to-bool to pointer-to-errno-value.
63093         All callers changed.
63094         Invoke openat_save_fail and/or openat_restore_fail if
63095         cwd_errno is null, so that openat can call us.
63096         (openat_permissive, fdopendir, fstatat, unlinkat):
63097         Simplify errno handling to avoid some duplicate code,
63098         as it's OK to set errno on success.
63099         * lib/openat.h: Revamp code so that function macros depend on
63100         __OPENAT_PREFIX only, not also on AT_FDCWD.
63101         (openat_ro): Remove.  Caller changed to use openat_permissive.
63102         (openat_permissive): Now a macro, if not a function.
63103         (openat_restore_fail, openat_save_fail): Now always functions,
63104         since mkdirat needs them even if __OPENAT_PREFIX is defined.
63105
63106         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
63107         and openat.c.
63108         * lib/mkdirat.c: Include openat-priv.h.
63109         Remove definitions of macros defined therein.
63110         * lib/openat.c: Likewise.
63111
63112         * lib/mkdirat.c (mkdirat): New file and function.
63113         * lib/openat.h (mkdirat): Declare.
63114
63115         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
63116
63117         * lib/openat.h (openat_permissive): Declare.
63118         (openat_ro): Define.
63119
63120         * lib/openat.c (EXPECTED_ERRNO): New macro.
63121         (openat_permissive): New function -- used in remove.c rewrite.
63122         (all functions): Set errno just before returning, only if there
63123         was an actual failure.
63124         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
63125
63126         Emulate openat-family functions using Linux's procfs, if possible.
63127         Idea and some code based on Ulrich Drepper's glibc changes.
63128
63129         * lib/openat.c: (BUILD_PROC_NAME): New macro.
63130         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
63131         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
63132         before falling back on save_cwd and restore_cwd.
63133         (fdopendir, fstatat, unlinkat): Likewise.
63134
63135         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
63136         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
63137
63138         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
63139         as second argument to va_arg.  Otherwise, some versions of gcc
63140         warn that `if this code is reached, the program will abort'.
63141
63142 2006-01-09  Jim Meyering  <jim@meyering.net>
63143
63144         Sync from coreutils.
63145         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
63146         Require openat-priv.h.
63147
63148 2006-01-09  Bruno Haible  <bruno@clisp.org>
63149
63150         * modules/strnlen (Include): Use strnlen.h.
63151
63152 2006-01-09  Bruno Haible  <bruno@clisp.org>
63153
63154         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
63155
63156 2006-01-09  Bruno Haible  <bruno@clisp.org>
63157
63158         * lib/sysexit_.h (EX_OK): New macro.
63159         Suggested by Martin Lambers <marlam@marlam.de>.
63160
63161 2006-01-09  Bruno Haible  <bruno@clisp.org>
63162
63163         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
63164         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
63165
63166 2006-01-09  Bruno Haible  <bruno@clisp.org>
63167
63168         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
63169         numbers.
63170
63171 2006-01-09  Bruno Haible  <bruno@clisp.org>
63172
63173         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
63174         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
63175         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
63176         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
63177
63178 2006-01-09  Bruno Haible  <bruno@clisp.org>
63179
63180         * build-aux/javacomp.sh.in: New file, moved from lib/.
63181         * modules/javacomp-script (Files): Update.
63182         (configure.ac): Add AC_CONFIG_FILES invocation.
63183         (EXTRA_DIST): Remove variable.
63184
63185         * build-aux/javaexec.sh.in: New file, moved from lib/.
63186         * modules/javaexec (Files): Update.
63187         (configure.ac): Add AC_CONFIG_FILES invocation.
63188         (EXTRA_DIST): Remove javaexec.sh.in.
63189
63190         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
63191         * modules/csharpcomp-script (Files): Update.
63192         (configure.ac): Add AC_CONFIG_FILES invocation.
63193         (EXTRA_DIST): Remove variable.
63194
63195         * build-aux/csharpexec.sh.in: New file, moved from lib/.
63196         * modules/csharpexec (Files): Update.
63197         (configure.ac): Add AC_CONFIG_FILES invocation.
63198         (EXTRA_DIST): Remove csharpexec.sh.in.
63199
63200 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63201
63202         Sync from coreutils.
63203
63204         Add POSIX ACL support
63205         * lib/acl.h (copy_acl, set_acl): Add declarations.
63206         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
63207         systems other than Linux.
63208         (chmod_or_fchmod): New function: use fchmod when possible,
63209         and chmod otherwise.
63210         (file_has_acl): Add a POSIX ACL implementation, with a
63211         Linux-specific subcase.
63212         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
63213         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
63214         acls are unsupported.
63215         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
63216         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
63217         are unsupported.
63218
63219 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63220
63221         Sync from coreutils.
63222         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
63223
63224 2006-01-07  Bruno Haible  <bruno@clisp.org>
63225
63226         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
63227         gl_EARLY.
63228
63229 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63230
63231         * lib/strftime.c (tzname): Don't declare if it is already #defined.
63232         Problem reported for Mingw by Mark Junker.
63233
63234 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63235
63236         * README: Gnulib normally doesn't generate a tarball.
63237
63238 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
63239
63240         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
63241         long int, not int, for nanosecond counts, so that people who are
63242         used to POSIX struct timespec won't be surprised.  Reported by Jim
63243         Meyering.
63244
63245 2005-12-28  Bruno Haible  <bruno@clisp.org>
63246
63247         * build-aux/config.rpath: Update from GNU gettext.
63248
63249 2005-12-16  Jim Meyering  <jim@meyering.net>
63250
63251         * modules/fprintftime: New module.
63252         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
63253
63254 2005-12-16  Jim Meyering  <jim@meyering.net>
63255
63256         * m4/fprintftime.m4: New file.
63257
63258 2005-12-16  Jim Meyering  <jim@meyering.net>
63259
63260         * lib/fprintftime.c, lib/fprintftime.h: New files.
63261
63262 2005-12-15  Simon Josefsson  <jas@extundo.com>
63263
63264         * modules/socklen (configure.ac): Fix M4 macro name, to align with
63265         new m4/socklen.m4.
63266
63267 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63268
63269         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
63270         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
63271
63272 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63273
63274         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
63275         * lib/argp-help.c (fill_in_uparams): Check if the constructed
63276         struct uparams is valid. Fall back to the default values if it is
63277         not.
63278
63279 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63280
63281         * modules/argp (Files): Add argp-pin.c
63282         (Depends-on): dirname
63283         (lib_SOURCES): Add argp-pin.c
63284
63285 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63286
63287         * m4/argp.m4:  Check if program_invocation_name and
63288         program_invocation_short_name are declared and define appropriate
63289         macros if they are not.
63290
63291 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63292
63293         * lib/argp-help.c (__argp_base_name): New function
63294         (__argp_short_program_name): Rewrite using __argp_base_name
63295         * lib/argp-namefrob.h: Define program_invocation_name and
63296         program_invocation_short_name if requested
63297         (__argp_base_name): Add prototype
63298         * lib/argp-parse.c (argp_def): Use gettext wrappers
63299         (argp_default_parser): Use __argp_base_name
63300         * lib/argp-pin.c: New file. Defines program_invocation_name and
63301         program_invocation_short_name on systems that lack them.
63302
63303 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63304
63305         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
63306         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63307         porting problem reported by Georg Schwarz in
63308         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63309
63310 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63311
63312         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
63313         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63314         porting problem reported by Georg Schwarz in
63315         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63316
63317 2005-12-05  Bruno Haible  <bruno@clisp.org>
63318
63319         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
63320         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
63321         Reported by Mark Junker <mjscod@gmx.de>.
63322
63323 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
63324
63325         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
63326         Use implementation from Albert Chin, with some
63327         comments/corrections by Stepan Kasal and myself.
63328
63329 2005-12-02  Bruno Haible  <bruno@clisp.org>
63330
63331         * gnulib-tool (func_import): Accept GPLed build tool modules when
63332         --lgpl is given.
63333         * modules/csharpcomp-script: New file.
63334         * modules/csharpcomp: Depend on it.
63335         * modules/javacomp-script: New file.
63336         * modules/javacomp: Depend on it.
63337         Suggested by Simon Josefsson.
63338
63339 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63340
63341         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
63342         statement, to work around an HP-UX 10.20 compiler bug reported by
63343         Peter O'Gorman.
63344
63345 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63346
63347         * modules/savedir (Depends-on): Add openat.
63348
63349 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63350
63351         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
63352         (uintmax_t) [defined uintmax_t]: Do not declare.
63353         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
63354         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
63355         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
63356         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
63357         sake of portability to weird hosts that C allows (though we don't
63358         know of any practical examples).
63359
63360         * lib/savedir.h (fdsavedir): New decl.
63361         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
63362         contains most of the former guts of savedir.
63363         (savedir): Use savedirstream.
63364         Include "openat.h".
63365
63366 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63367
63368         * modules/obstack (Files): Add m4/ulonglong.m4.
63369         Problem reported by Davide Angelocola.
63370
63371 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63372
63373         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
63374         coreutils no longer futzes with rounding modes.
63375
63376 2005-11-14  Jim Meyering  <jim@meyering.net>
63377
63378         * lib/mkstemp-safer.c: Include <config.h>, required for possible
63379         replacement of mkstemp.
63380
63381 2005-11-10  Simon Josefsson  <jas@extundo.com>
63382
63383         * lib/readline.c: Remove EOL.
63384
63385 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63386
63387         * modules/gethrxtime (Depends-on): Add gettime.
63388
63389 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63390
63391         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
63392         or gettimeofday; no longer needed.
63393
63394 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63395
63396         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
63397         time business.
63398         (gethrxtime) [! (HAVE_NANOUPTIME
63399         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
63400         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
63401         our own approximation.
63402
63403 2005-11-08  Eric Blake  <ebb9@byu.net>
63404
63405         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63406
63407 2005-11-08  Eric Blake  <ebb9@byu.net>
63408
63409         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63410
63411 2005-11-04  Bruno Haible  <bruno@clisp.org>
63412
63413         * gnulib-tool: Implement --update mode.
63414
63415 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63416
63417         Fix porting problem reported by Theodoros V. Kalamatianos.
63418         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
63419         Don't assume that futimes failing means we must fail.
63420
63421 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63422
63423         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
63424         variables to suggest the intended function of the PATH_MAX check.
63425
63426 2005-10-30  Kean Johnston  <jkj@sco.com>
63427
63428         Trivial changes to support SCO systems.
63429         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
63430         as PATH_MAX.
63431         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
63432         where __ptr is null when no I/O is pending.
63433
63434 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63435
63436         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
63437         leave errno alone.  Problem reported by Dmitry V. Levin.
63438
63439 2005-10-28  Simon Josefsson  <jas@extundo.com>
63440
63441         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
63442         Test more.
63443
63444         * tests/test-gc-md2.c, tests/test-md2.c: New files.
63445
63446         * modules/md2, modules/md2-tests: New files.
63447
63448 2005-10-28  Simon Josefsson  <jas@extundo.com>
63449
63450         * m4/inet_ntop.m4: More tests.
63451
63452         * m4/gc-md2.m4, md2.m4: New file.
63453
63454 2005-10-28  Simon Josefsson  <jas@extundo.com>
63455
63456         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
63457         "restrict" keywords, as per POSIX.  Protect the function
63458         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
63459         Don't use K&R prototypes.  Check the sprintf return values.
63460         Re-define EAFNOSUPPORT if not present.  Indent.
63461
63462         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
63463         suggested by Bruno Haible <bruno@clisp.org>.
63464
63465         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
63466
63467         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
63468
63469         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
63470         libgcrypt).
63471
63472         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
63473
63474         * lib/md2.h, lib/md2.c: New files.
63475
63476 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
63477
63478         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
63479         errno alone.  Problem reported by Frederic Jolliton.
63480
63481 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63482
63483         * modules/verify (License): Change from GPL to LGPL.  This is a
63484         tiny module and there are apparently near-equivalents that are
63485         under the BSD license.
63486
63487 2005-10-24  Simon Josefsson  <jas@extundo.com>
63488
63489         * modules/sha1: Relicense to LGPL.
63490
63491 2005-10-24  Simon Josefsson  <jas@extundo.com>
63492
63493         * lib/md4.h: Shrink buffer size, now that we changed the type.
63494
63495 2005-10-23  Simon Josefsson  <jas@extundo.com>
63496
63497         * gnulib-tool (func_import): Fix --tests-base.
63498
63499 2005-10-22  Simon Josefsson  <jas@extundo.com>
63500
63501         * modules/arcfour (Depends-on): Need stdint.
63502
63503 2005-10-22  Simon Josefsson  <jas@extundo.com>
63504
63505         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
63506         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
63507
63508 2005-10-22  Simon Josefsson  <jas@extundo.com>
63509
63510         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
63511         suggested by Bruno Haible <bruno@clisp.org>.
63512
63513 2005-10-22  Simon Josefsson  <jas@extundo.com>
63514
63515         * lib/crc.h: Include stddef.h, for size_t.
63516
63517 2005-10-22  Simon Josefsson  <jas@extundo.com>
63518
63519         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
63520         arcfour_context struct (simplify test vector testing in GNU
63521         Shishi).
63522
63523 2005-10-21  Simon Josefsson  <jas@extundo.com>
63524
63525         * modules/des, modules/des-tests: New files.
63526
63527         * modules/gc-des, modules/gc-des-tests: New files.
63528
63529         * tests/test-des.c, tests/test-gc-des.c: New file.
63530
63531 2005-10-21  Simon Josefsson  <jas@extundo.com>
63532
63533         * modules/arctwo, modules/arctwo-tests: New files.
63534
63535         * tests/test-arctwo.c: New file.
63536
63537         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
63538
63539         * tests/test-gc-arctwo.c: New file.
63540
63541 2005-10-21  Simon Josefsson  <jas@extundo.com>
63542
63543         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
63544         Bruno Haible <bruno@clisp.org>.
63545
63546         * m4/gc-des.m4: New file.
63547
63548 2005-10-21  Simon Josefsson  <jas@extundo.com>
63549
63550         * m4/arctwo.m4: New file.
63551
63552         * m4/gc-arctwo.m4: New file.
63553
63554 2005-10-21  Simon Josefsson  <jas@extundo.com>
63555
63556         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
63557         block.
63558
63559 2005-10-21  Simon Josefsson  <jas@extundo.com>
63560
63561         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
63562         <bruno@clisp.org>.
63563
63564         * lib/hmac-sha1.c (hmac_sha1): Likewise.
63565
63566         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
63567         Bruno Haible <bruno@clisp.org>.
63568
63569         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
63570         <bruno@clisp.org>.
63571
63572 2005-10-21  Simon Josefsson  <jas@extundo.com>
63573
63574         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
63575
63576 2005-10-21  Simon Josefsson  <jas@extundo.com>
63577
63578         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
63579
63580 2005-10-21  Simon Josefsson  <jas@extundo.com>
63581
63582         * lib/des.h, lib/des.c: New files.
63583
63584         * lib/gc-gnulib.c: Support DES.c
63585
63586 2005-10-21  Simon Josefsson  <jas@extundo.com>
63587
63588         * lib/arctwo.h, lib/arctwo.c: New files.
63589
63590         * lib/gc-gnulib.c: Support ARCTWO.
63591
63592 2005-10-21  Simon Josefsson  <jas@extundo.com>
63593
63594         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
63595         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63596
63597 2005-10-21  Simon Josefsson  <jas@extundo.com>
63598
63599         * gnulib-tool (func_import, func_create_testdir): Define automake
63600         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
63601         Makefile.am snippet),
63602         suggested by Bruno Haible <bruno@clisp.org>.
63603
63604         * modules/gc (Makefile.am): Use it.
63605
63606 2005-10-21  Bruno Haible  <bruno@clisp.org>
63607
63608         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
63609         patch.
63610
63611 2005-10-19  Simon Josefsson  <jas@extundo.com>
63612
63613         * tests/test-gc-rijndael.c: New file.
63614
63615         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
63616
63617 2005-10-19  Simon Josefsson  <jas@extundo.com>
63618
63619         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
63620         interface too.
63621
63622 2005-10-19  Simon Josefsson  <jas@extundo.com>
63623
63624         * tests/test-gc-arcfour.c: New file.
63625
63626         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
63627
63628 2005-10-19  Simon Josefsson  <jas@extundo.com>
63629
63630         * modules/gc-md4, modules/gc-md4-tests: New file.
63631
63632         * tests/test-gc-md4.c: New file.
63633
63634 2005-10-19  Simon Josefsson  <jas@extundo.com>
63635
63636         * m4/gc-md4.m4: New file.
63637
63638 2005-10-19  Simon Josefsson  <jas@extundo.com>
63639
63640         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
63641         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
63642         <kasal@ucw.cz>.
63643
63644 2005-10-19  Simon Josefsson  <jas@extundo.com>
63645
63646         * m4/gc-arcfour.m4: New file.
63647
63648         * m4/gc-rijndael.m4: New file.
63649
63650 2005-10-19  Simon Josefsson  <jas@extundo.com>
63651
63652         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
63653
63654 2005-10-19  Simon Josefsson  <jas@extundo.com>
63655
63656         * lib/gc-gnulib.c: Support ARCFOUR.
63657
63658 2005-10-19  Simon Josefsson  <jas@extundo.com>
63659
63660         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
63661         support.
63662
63663         * lib/gc.h: Add ECB enum type.
63664
63665         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
63666
63667 2005-10-18  Simon Josefsson  <jas@extundo.com>
63668
63669         * tests/test-md5.c: New file.
63670
63671         * modules/md5-tests: New file.
63672
63673 2005-10-18  Simon Josefsson  <jas@extundo.com>
63674
63675         * tests/test-md4.c: New file.
63676
63677         * modules/md4, modules/md4-tests: New files.
63678
63679 2005-10-18  Simon Josefsson  <jas@extundo.com>
63680
63681         * m4/md4.m4: New file.
63682
63683 2005-10-18  Simon Josefsson  <jas@extundo.com>
63684
63685         * lib/md4.h, lib/md4.c: New files, based on md5.?.
63686
63687 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
63688
63689         * gnulib-tool (func_create_testdir): Omit the second check whether
63690         BUILT_SOURCES in nonempty.
63691
63692 2005-10-17  Simon Josefsson  <jas@extundo.com>
63693
63694         * tests/test-rijndael.c: New file.
63695
63696 2005-10-17  Simon Josefsson  <jas@extundo.com>
63697
63698         * modules/sha1: Depend on stdint instead of md5.
63699
63700         * modules/md5: Depend on stdint, remove uint32_t.
63701
63702 2005-10-17  Simon Josefsson  <jas@extundo.com>
63703
63704         * modules/gc-sha1-tests: New file.
63705
63706         * tests/test-gc-sha1.c: New file.
63707
63708 2005-10-17  Simon Josefsson  <jas@extundo.com>
63709
63710         * m4/md5.m4: Remove call to uint32_t.m4.
63711
63712 2005-10-17  Simon Josefsson  <jas@extundo.com>
63713
63714         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
63715
63716         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
63717         md5.h.
63718
63719         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
63720
63721         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
63722
63723 2005-10-17  Simon Josefsson  <jas@extundo.com>
63724
63725         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
63726
63727 2005-10-17  Simon Josefsson  <jas@extundo.com>
63728
63729         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
63730
63731 2005-10-17  Simon Josefsson  <jas@extundo.com>
63732
63733         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
63734
63735         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
63736
63737 2005-10-17  Bruno Haible  <bruno@clisp.org>
63738
63739         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
63740         that it can also be used in a test.
63741
63742 2005-10-16  Bruno Haible  <bruno@clisp.org>
63743
63744         * gnulib-tool (func_emit_tests_Makefile_am): Also define
63745         TESTS_ENVIRONMENT, so that individual tests can augment it.
63746
63747         * gnulib-tool (func_create_testdir): Use an intermediate target for
63748         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
63749         macros, like $(ALLOCA_H), which cannot be passed through the command
63750         line.
63751
63752 2005-10-15  Simon Josefsson  <jas@extundo.com>
63753
63754         * modules/rijndael-tests: New file.
63755
63756         * modules/rijndael: New file.
63757
63758 2005-10-15  Simon Josefsson  <jas@extundo.com>
63759
63760         * m4/rijndael.m4: New file.
63761
63762 2005-10-15  Simon Josefsson  <jas@extundo.com>
63763
63764         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
63765
63766         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
63767
63768 2005-10-14  Simon Josefsson  <jas@extundo.com>
63769
63770         * tests/test-arcfour.c: New file.
63771
63772         * modules/arcfour, modules/arcfour-tests: New files.
63773
63774 2005-10-14  Simon Josefsson  <jas@extundo.com>
63775
63776         * m4/arcfour.m4: New file.
63777
63778 2005-10-14  Simon Josefsson  <jas@extundo.com>
63779
63780         * lib/arcfour.h, lib/arcfour.c: New files.
63781
63782 2005-10-14  Roland McGrath  <roland@redhat.com>
63783
63784         Import from libc.  [BZ #1331]
63785         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
63786         macro argument.
63787         Reported by Matej Vela <vela@debian.org>.
63788
63789 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63790
63791         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
63792         include <wchar.h>; no longer needed.
63793
63794 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63795
63796         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
63797
63798 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
63799         and  Ulrich Drepper  <drepper@redhat.com>
63800
63801         Import from libc.
63802         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
63803         instead of inline stream orientation test and two separate
63804         function calls.  Pay no attention to USE_IN_LIBIO.
63805
63806 2005-10-13  Simon Josefsson  <jas@extundo.com>
63807
63808         * modules/gc-hmac-md5-tests: New file.
63809
63810         * tests/test-gc-hmac-sha1.c: New file.
63811
63812         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
63813
63814         * modules/gc-hmac-md5-tests: New file.
63815
63816         * tests/test-gc-md5.c: New file.
63817
63818         * modules/gc-md5-tests: New file.
63819
63820 2005-10-13  Simon Josefsson  <jas@extundo.com>
63821
63822         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
63823         Move memory allocation outside of loop.
63824
63825 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63826
63827         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
63828         intermediate directory is in a read-only file system.  Problem
63829         reported by Eric Blake.
63830
63831 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
63832
63833         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
63834
63835 2005-10-12  Simon Josefsson  <jas@extundo.com>
63836
63837         * tests/test-hmac-sha1.c: New file.
63838
63839         * modules/hmac-sha1-tests: New file.
63840
63841         * modules/hmac-sha1: New file.
63842
63843 2005-10-12  Simon Josefsson  <jas@extundo.com>
63844
63845         * modules/gc-sha1: New file.
63846
63847 2005-10-12  Simon Josefsson  <jas@extundo.com>
63848
63849         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
63850
63851         * tests/test-gc-pbkdf2-sha1.c: New file.
63852
63853 2005-10-12  Simon Josefsson  <jas@extundo.com>
63854
63855         * modules/gc-md5, modules/gc-hmac-md5: New files.
63856
63857         * modules/gc (Files): Remove md5, memxor and hmac files.
63858
63859 2005-10-12  Simon Josefsson  <jas@extundo.com>
63860
63861         * m4/gc-pbkdf2-sha1.m4: New file.
63862
63863         * m4/gc-hmac-sha1.m4: New file.
63864
63865         * m4/gc-sha1: New file.
63866
63867         * m4/hmac-sha1.m4: New file.
63868
63869 2005-10-12  Simon Josefsson  <jas@extundo.com>
63870
63871         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
63872
63873         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
63874
63875 2005-10-12  Simon Josefsson  <jas@extundo.com>
63876
63877         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
63878         suggested by Bruno Haible <bruno@clisp.org>.
63879
63880 2005-10-12  Simon Josefsson  <jas@extundo.com>
63881
63882         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
63883
63884 2005-10-12  Simon Josefsson  <jas@extundo.com>
63885
63886         * lib/gc-pbkdf2-sha1.c: New file.
63887
63888         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
63889
63890 2005-10-12  Simon Josefsson  <jas@extundo.com>
63891
63892         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
63893
63894         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
63895
63896 2005-10-12  Simon Josefsson  <jas@extundo.com>
63897
63898         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
63899         GC_USE_HMAC_MD5, respectively.
63900
63901         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
63902         (gc_md5): Fix typo.
63903
63904         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
63905
63906         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
63907
63908         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
63909
63910 2005-10-12  Bruno Haible  <bruno@clisp.org>
63911
63912         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
63913         Reported by Stepan Kasal <kasal@ucw.cz>.
63914
63915 2005-10-11  Simon Josefsson  <jas@extundo.com>
63916
63917         * tests/test-crc.c: New file.
63918
63919         * modules/crc, modules/crc-tests: New files.
63920
63921 2005-10-11  Simon Josefsson  <jas@extundo.com>
63922
63923         * m4/crc.m4: New file.
63924
63925 2005-10-11  Simon Josefsson  <jas@extundo.com>
63926
63927         * lib/gc.h: Add gc_hash and gc_hash_buffer.
63928
63929         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
63930
63931         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
63932
63933 2005-10-11  Simon Josefsson  <jas@extundo.com>
63934
63935         * lib/crc.h, lib/crc.c: New files.
63936
63937         * lib/gc.h (gc_hash_buffer): Add doc.
63938
63939 2005-10-11  Bruno Haible  <bruno@clisp.org>
63940
63941         * modules/c-strcasestr: New file.
63942         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
63943
63944 2005-10-11  Bruno Haible  <bruno@clisp.org>
63945
63946         * modules/c-strcase: New file.
63947         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
63948
63949 2005-10-11  Bruno Haible  <bruno@clisp.org>
63950
63951         * lib/strcasecmp.c: Include limits.h.
63952         (strcasecmp): Avoid integer overflow on exotic platforms.
63953         * lib/strncasecmp.c: Include limits.h.
63954         (strncasecmp): Avoid integer overflow on exotic platforms.
63955         Reported by Paul Eggert.
63956
63957 2005-10-11  Bruno Haible  <bruno@clisp.org>
63958
63959         * lib/c-strcasestr.h: New file, from GNU gettext.
63960         * lib/c-strcasestr.c: New file, from GNU gettext.
63961
63962 2005-10-11  Bruno Haible  <bruno@clisp.org>
63963
63964         * lib/c-strcase.h: New file, from GNU gettext.
63965         * lib/c-strcasecmp.c: New file, from GNU gettext.
63966         * lib/c-strncasecmp.c: New file, from GNU gettext.
63967
63968 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63969
63970         * modules/mempcpy (License): GPL -> LGPL.
63971         * modules/strchrnul (License): Likewise.
63972         * modules/sysexits (License): Likewise.
63973
63974 2005-10-08  Simon Josefsson  <jas@extundo.com>
63975
63976         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
63977
63978 2005-10-07  Simon Josefsson  <jas@extundo.com>
63979
63980         * m4/memxor.m4: Remove gl_C_RESTRICT call.
63981
63982 2005-10-06  Simon Josefsson  <jas@extundo.com>
63983
63984         * tests/test-hmac-md5.c: New file.
63985
63986         * modules/hmac-md5-tests: New file.
63987
63988         * modules/hmac-md5: New file.
63989
63990 2005-10-06  Simon Josefsson  <jas@extundo.com>
63991
63992         * m4/hmac-md5.m4: New file.
63993
63994         * m4/memxor.m4: Require gl_C_RESTRICT.
63995
63996 2005-10-06  Simon Josefsson  <jas@extundo.com>
63997
63998         * lib/memxor.c (memxor): Avoid casts and warnings.
63999
64000 2005-10-06  Simon Josefsson  <jas@extundo.com>
64001
64002         * lib/hmac-md5.c: New file.
64003
64004         * lib/hmac.h: New file.
64005
64006 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64007
64008         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
64009         promotes to int, not unsigned int, to catch the AIX 5.3
64010         compiler bug.
64011
64012 2005-10-05  Simon Josefsson  <jas@extundo.com>
64013
64014         * modules/memxor: New file.
64015
64016         * modules/iconv (Files): Move config.rpath to havelib, it is used
64017         there.
64018
64019         * modules/havelib (Files): Add config.rpath.
64020
64021 2005-10-05  Simon Josefsson  <jas@extundo.com>
64022
64023         * m4/memxor.m4: New file.
64024
64025 2005-10-05  Simon Josefsson  <jas@extundo.com>
64026
64027         * lib/memxor.c (memxor): Fix compiler error.
64028
64029         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
64030         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
64031
64032         * lib/memxor.h, lib/memxor.c: New files.
64033
64034         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
64035         we assume all systems have it, suggested by Jim Meyering
64036         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
64037         any systems lack sys/socket.h; mingw32 is known to lack it, but we
64038         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
64039         same reasons.
64040
64041 2005-10-05  Simon Josefsson  <jas@extundo.com>
64042
64043         * config/srclist.txt: Add glibc bug 1423 for md5.h.
64044
64045 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64046
64047         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
64048         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
64049         needed, since the source code now assumes these .h files.
64050
64051 2005-10-05  Derek Price  <derek@ximbiot.com>
64052
64053         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
64054
64055 2005-10-05  Bruno Haible  <bruno@clisp.org>
64056
64057         * modules/stdint (License): Change to LGPL.
64058
64059 2005-10-04  Simon Josefsson  <jas@extundo.com>
64060
64061         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
64062         D. Baushke" <mdb@gnu.org>.
64063
64064 2005-10-04  Bruno Haible  <bruno@clisp.org>
64065
64066         * lib/verify.h (verify_true): Provide alternative definition for C++.
64067
64068 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64069
64070         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
64071         (SSIZE_MAX): New macro, if not already defined.
64072         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
64073         than 2 GiB.
64074
64075 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64076
64077         Sync from coreutils.
64078         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
64079         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
64080         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
64081         ULLONG_MAX doesn't work with 2.7.2.1.
64082
64083 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64084
64085         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
64086         From Ben Pfaff.
64087
64088         * modules/exclude (Depends-on): Depend on verify.
64089         * modules/strtoimax (Depends-on): Likewise.
64090         * modules/utimecmp (Depends-on): Likewise.
64091
64092 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64093
64094         * lib/exclude.c: Include verify.h.
64095         (verify): Remove.  All callers changed to use verify.h's version.
64096         * lib/strtoimax.c: Likewise.
64097         * lib/utimecmp.c: Likewis.e
64098
64099         Sync from coreutils.
64100         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
64101         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
64102         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
64103         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
64104         bother returning ENOSYS if settimeofday or stime fails; just let
64105         them return whatever errno they want to return.
64106         * lib/utimens.c: Include unistd.h, for dup2.
64107         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
64108         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
64109
64110 2005-10-02  Jim Meyering  <jim@meyering.net>
64111
64112         Sync from coreutils.
64113         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
64114         from glibc-2.2.5 that fails for read-only files.
64115
64116 2005-10-02  Jim Meyering  <jim@meyering.net>
64117
64118         Sync from coreutils.
64119         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
64120         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
64121         `#if HAVE_CONFIG_H'.
64122         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
64123         Remove AT_FDCWD test.
64124         Do not consume the fd unless successful.
64125         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
64126         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
64127         block, so that we don't even try to compile it if settimeofday is
64128         available.  This works around a compilation failure on OSF1 V5.1,
64129         due to stime requiring a `long int*' while tv_sec is `int'.
64130
64131 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
64132
64133         Sync from coreutils.
64134         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
64135         against `yes', rather than just testing for nonempty.
64136
64137 2005-10-01  Simon Josefsson  <jas@extundo.com>
64138
64139         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
64140         and Darwin.
64141
64142         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
64143         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
64144         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
64145         freeaddrinfo and gai_strerror are declared by the POSIX headers.
64146         Check if struct addrinfo is declared.
64147
64148 2005-10-01  Simon Josefsson  <jas@extundo.com>
64149
64150         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
64151         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
64152         AI_* and EAI_* definitions.  Protect function declarations.
64153
64154 2005-10-01  Jim Meyering  <jim@meyering.net>
64155
64156         Sync from coreutils.
64157
64158         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
64159         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
64160         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
64161         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64162         in the inet and nsl libraries.  Required on Solaris 5.7.
64163
64164 2005-10-01  Jim Meyering  <jim@meyering.net>
64165
64166         Sync from coreutils.
64167         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64168         in the inet and nsl libraries.  Required on Solaris 5.7.
64169
64170 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
64171
64172         * lib/getdelim.c (getdelim): Remove unused variables.
64173
64174 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64175
64176         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
64177         so that the code works even with ancient cpp.  Portability problem
64178         with GCC 2.7.2.1 reported by Thomas M.Ott.
64179
64180 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64181
64182         * modules/regex (Depends-on): Add strcase.
64183
64184         * modules/gethostname (Licence): Change from GPL to LGPL, since
64185         gethostname.c is a trivial implementation of a standard library
64186         function.
64187         * modules/poll (License): Change from GPL to LGPL, since it's
64188         derived from LGPL code.
64189
64190 2005-09-27  Jim Meyering  <jim@meyering.net>
64191
64192         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
64193         HAVE_CONFIG_H.
64194
64195         * lib/intprops.h (signed_type_or_expr__): Define.
64196         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
64197         for unsigned types.
64198
64199 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64200
64201         * lib/verify.h (verify_expr): Remove, replacing with:
64202         (verify_true): New macro that returns true instead of void.
64203         (verify_type__): Remove.
64204         (verify): Use verify_true rather than verify_type__.
64205
64206 2005-09-26  Bruno Haible  <bruno@clisp.org>
64207
64208         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
64209         is necessary.
64210         (lib_SOURCES): Remove mbchar.c.
64211         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
64212         (Files): Add m4/mbrtowc.m4.
64213         * modules/mbiter: Likewise.
64214         * modules/mbuiter: Likewise.
64215
64216 2005-09-26  Bruno Haible  <bruno@clisp.org>
64217
64218         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
64219         compile mbchar.c if they are not both present.
64220         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
64221         * m4/mbiter.m4 (gl_MBITER): Likewise.
64222         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
64223         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
64224         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
64225
64226 2005-09-25  Jim Meyering  <jim@meyering.net>
64227
64228         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
64229         also uses socklen_t.
64230
64231 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
64232
64233         * lib/utimens.c (ENOSYS): Define if not already defined.
64234         (futimens): Support having a null PATH if the file descriptor
64235         is nonnegative.
64236
64237         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
64238         Remove.
64239         (__attribute): Define to empty unless GCC 3.1 or later.
64240         This works around a core dump on OpenBSD 3.4, which has GCC
64241         2.95.3, which dumps core when given __attribute__(()).  It also
64242         simplifies other tests, since we really don't want to bother with
64243         worrying about which ancient version of GCC supported what.
64244         Original problem reported by Yoann Vandoorselaere, with part of
64245         the fix suggested by Derek Price.
64246
64247 2005-09-24  Jim Meyering  <jim@meyering.net>
64248
64249         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
64250         so we can once again use a positive bitfield width of 1 -- now we
64251         don't have to explain why we were using a bitfield width of 2.
64252
64253 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64254
64255         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
64256         and similarly for the other external symbols.  Problem reported
64257         by James Gallager.
64258
64259         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
64260         bug reported by Jim Meyering.
64261
64262         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
64263         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
64264         not needed, since socklen is a prerequisite module.
64265
64266 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64267
64268         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
64269         Problem reported by Eric Blake.
64270         (getaddrinfo): Initialize se so that it's not garbage.
64271         Redo internal storage allocation so that it doesn't make unportable
64272         assumptions about alignment.
64273         Fix a memory leak.
64274
64275         * lib/utimens.c (futimens): Use futimesat if available.
64276         Prefer it to futimes since it doesn't have the futimes bug.
64277
64278         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
64279         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
64280         Instead, declare a function that returns a pointer to an array,
64281         and use verify_type__ to declare the size of the array.
64282         Problem and germ of a solution reported by Bruno Haible.
64283         (verify_type__): Use 2, not 1, for bitfield size, to avoid
64284         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
64285
64286 2005-09-23  Jim Meyering  <jim@meyering.net>
64287
64288         Sync from coreutils.
64289         Correct build failure (socklen_t not defined) on at least
64290         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
64291         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
64292
64293 2005-09-23  Jim Meyering  <jim@meyering.net>
64294
64295         * modules/getaddrinfo (Depends-on): Add socklen.
64296
64297 2005-09-23  Bruno Haible  <bruno@clisp.org>
64298
64299         * tests/test-verify.c: New file.
64300
64301 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64302
64303         Sync from coreutils.
64304
64305         * modules/argmatch (Depends-on): Add verify.
64306         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
64307         unistd-safer.
64308         * modules/save-cwd (Depends-on): Likewise.
64309
64310         * modules/openat (Files): Add lib/openat-die.c.
64311         (Depends-on): Remove error, exitfail.
64312         Add dirname.
64313
64314         * modules/verify: New file.
64315         * MODULES.html.sh (Diagnostics <assert.h>): New section,
64316         with "verify" module.
64317
64318 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64319
64320         Sync from coreutils.
64321
64322         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
64323         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
64324         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
64325         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
64326         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
64327         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
64328         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
64329         Don't bother checking for string.h, stdlib.h, unistd.h.
64330         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
64331         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
64332         module's job.
64333         * m4/jm-macros.m4 (gl_MACROS): Likewise.
64334         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
64335
64336         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
64337         (gl_GETDATE): Use it.
64338
64339         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
64340
64341 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64342
64343         Sync from coreutils.
64344
64345         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
64346         stat-time.h.
64347         * lib/argmatch.h: Include verify.h
64348         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
64349         (ARGMATCH_ASSERT): Remove; unused.
64350         * lib/canonicalize.c: Assume STDC_HEADERS.
64351         * lib/exclude.c: Include "strcase.h".
64352         * lib/regex_internal.h [!defined _LIBC]: Likewise.
64353         * lib/getusershell.c: Include stdio--.h rather than stdio.h
64354         and stdio-safer.h.
64355         (getusershell): Call fopen, not fopen_safer.
64356         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
64357         Do not include unistd-safer.h.
64358         (save_cwd): Don't call fd_safer; no longer needed
64359         now that we include fcntl--.h.
64360
64361         * lib/getdate.y (relative_time): New type.
64362         (RELATIVE_TIME_0): New constant.
64363         (parser_control): Use relative_time instead of doing it ourselves.
64364         (%union): Add new relative_time rel member.
64365         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
64366         Now typeless.
64367         (relunit, relunit_snumber): Now of type rel.
64368         (zone, rel, relunit, get_date): Adjust to above changes.
64369
64370         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
64371         Do not include unistd-safer.h.
64372         (getloadavg): Don't call fd_safer; no longer needed
64373         now that we include fcntl--.h.
64374
64375         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
64376         (make_dir_parents): Treat ENOSYS like EEXIST.
64377
64378         Improve quality of diagnostics on restore_cwd failure.
64379         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
64380         (make_dir_parents): Last arg is now int * (for errno), not bool *.
64381         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
64382         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
64383         each time through the loop.  Do not diagnose restore_cwd failure;
64384         that is the caller's job (and perhaps the caller does not care).
64385
64386         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
64387         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
64388         If the file already exists but is not a directory, don't bother
64389         to try to make its parents.
64390         Close potential file descriptor leak if we can't chdir("/") (!).
64391         Don't always return true if chdir($PWD) fails; return true only
64392         if the requested action was done successfully (except for the
64393         chdir($PWD)).
64394         Don't log final directory unless we actually made it.
64395         Refactor to avoid duplicate code to fix up permissions.
64396         Don't attempt to fix up parent permissions if chdir($PWD) fails.
64397
64398         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
64399         to make it a bit faster and (I hope) clearer.
64400         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
64401         Fix bug in formats like %2N.
64402
64403         * lib/verify.h: New file.
64404
64405 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64406
64407         Sync from coreutils.
64408         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
64409
64410 2005-09-22  Jim Meyering  <jim@meyering.net>
64411
64412         Sync from coreutils.
64413
64414         * m4/lstat.m4 (gl_FUNC_LSTAT):
64415         Use AC_LIBSOURCES to require lstat.c and lstat.h.
64416         Remove obsolete comment.
64417         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
64418         * m4/xstrtod.m4: Likewise.
64419
64420         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
64421
64422 2005-09-22  Jim Meyering  <jim@meyering.net>
64423
64424         Sync from coreutils.
64425
64426         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
64427
64428         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
64429         the .tm_year member, since otherwise gcc-4.0 would now warn about
64430         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
64431
64432         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
64433         order to avoid an unsuppressible warning from gcc on 64-bit systems.
64434
64435         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
64436         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
64437         when run in a time zone for which daylight savings time is in effect
64438         for the starting date.
64439
64440         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
64441         stop us from restricting permissions of just-created absolute-named
64442         directories.
64443         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
64444         to restore initial working directory.
64445         * lib/mkdir-p.c (make_dir_parents): New parameter:
64446         different_working_dir, to tell caller if/when we change the working
64447         directory and are unable to return to the initial one.
64448         * lib/mkdir-p.h (make_dir_parents): Update prototype.
64449         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
64450         `return false'.  This fixes a bug introduced on 2004-07-30.
64451
64452         * lib/openat.c (fdopendir): Be sure to close the supplied
64453         file descriptor before returning.  This makes our replacement
64454         implementation a little closer to Solaris's, where fdopendir
64455         ties the file descriptor to the returned DIR* pointer.
64456         * lib/openat.c (unlinkat): New function.
64457         * lib/openat.h (unlinkat): Add prototype.
64458         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
64459         (openat_restore_fail): Rename from openat_restore_die.
64460         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
64461
64462         Provide an alternative to exiting immediately upon save_cwd or
64463         restore_cwd failure.  Now, an application can arrange e.g.,
64464         to perform a longjump in that case.
64465         * lib/openat.c: Include dirname.h.
64466         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
64467         (rpl_openat, fdopendir, fstatat): Call openat_save_die
64468         and openat_restore_die rather than calling error directly.
64469         Don't include "error.h" or "exitfail.h"; they're no longer needed.
64470
64471         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
64472         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
64473         define.
64474
64475         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
64476         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
64477                             int utc, int nanoseconds);
64478         Background:
64479         date should not have to allocate a megabyte of virtual memory to
64480         handle a format argument like +%1048575T.  When implemented with
64481         strftime, it must allocate such a buffer, use strftime to fill it
64482         in, print it, then free it.
64483         With fprintftime, it simply prints everything and exits.
64484         With no need for memory allocation, that's one fewer way to fail.
64485         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
64486         optional field width, not before, so we accept %9:z, not %:9z.
64487         (my_strftime): Be sure to use L_('x') for literals.
64488
64489         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
64490         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
64491         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
64492         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
64493         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
64494         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
64495         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
64496         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
64497         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
64498         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
64499         * lib/xgethostname.c, lib/xreadlink.c:
64500         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
64501
64502         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
64503         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
64504         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
64505         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64506         and don't include <sys/file.h>).
64507
64508 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
64509
64510         Sync from coreutils.
64511
64512         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
64513         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
64514         [!LDAV_DONE]: Avoid unused variable warning.
64515
64516 2005-09-21  Bruno Haible  <bruno@clisp.org>
64517
64518         * lib/unicodeio.h (unicode_to_mb): New declaration.
64519
64520 2005-09-20  Derek Price  <derek@ximbiot.com>
64521
64522         * lib/getaddrinfo.c: Don't include <netdb.h> included from
64523         getaddrinfo.h.
64524
64525 2005-09-20  Bruno Haible  <bruno@clisp.org>
64526
64527         * gnulib-tool: Remove trailing slashes from the values specified for
64528         --source-base, --m4-base, --tests-base, --aux-dir.
64529         Suggested by Simon Josefsson <jas@extundo.com>.
64530
64531 2005-09-20  Bruno Haible  <bruno@clisp.org>
64532
64533         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
64534         func_modules_to_filelist, func_import, func_create_testdir): Make all
64535         sorting results locale-independent, so that gnulib-cache.m4 doesn't
64536         change when gnulib-tool is invoked in a different locale.
64537
64538 2005-09-19  Simon Josefsson  <jas@extundo.com>
64539
64540         * m4/socklen.m4: Fix typo.
64541
64542 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64543
64544         Use a consistent style for including <config.h>.
64545         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
64546         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
64547         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
64548         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
64549         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
64550         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
64551         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
64552         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
64553         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
64554         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
64555         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
64556         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
64557         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
64558         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
64559         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
64560         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
64561         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
64562         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
64563         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
64564         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
64565         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
64566         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
64567         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
64568         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
64569         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
64570         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
64571         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
64572         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
64573         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
64574         lib/xstrtoumax.c, lib/yesno.c:
64575         Standardize inclusion of config.h.
64576         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
64577         lib/inttostr.h:  Removed inclusion of config.h from header files.
64578         * lib/inttostr.c:  Adjusted in-tree users.
64579         * lib/timespec.h: Remove superfluous warning to include config.h.
64580         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
64581         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
64582         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
64583         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
64584         config.h with HAVE_CONFIG_H.
64585
64586 2005-09-19  Jim Meyering  <jim@meyering.net>
64587
64588         * modules/pathmax (License): Change to LGPL.
64589
64590 2005-09-19  Derek Price  <derek@ximbiot.com>
64591
64592         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
64593
64594 2005-09-19  Bruno Haible  <bruno@clisp.org>
64595
64596         * gnulib-tool (import): Provide default for --tests-base.
64597
64598 2005-09-19  Bruno Haible  <bruno@clisp.org>
64599
64600         * doc/quote.texi: New file, extracted from gnulib.texi.
64601         * doc/ctime.texi: New file, extracted from gnulib.texi.
64602         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
64603         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
64604         * doc/gnulib.texi: Include them.
64605
64606 2005-09-18  Bruno Haible  <bruno@clisp.org>
64607
64608         Portability fix.
64609         * gnulib-tool (func_readlink): New function.
64610         (func_ln_if_changed): Use it.
64611
64612 2005-09-18  Bruno Haible  <bruno@clisp.org>
64613
64614         * gnulib-tool: Support --with-tests also with --import.
64615         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
64616         (func_import): Use variables $testsbase and $inctests. Emit a
64617         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
64618         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
64619         SUBDIRS += $testsdir.
64620         (func_create_testdir): Update.
64621
64622 2005-09-18  Bruno Haible  <bruno@clisp.org>
64623
64624         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
64625         instead of $dry_run.
64626         (func_cp_if_changed, func_mv_if_changed): Remove functions.
64627         (func_ln_if_changed): Don't handle dry-run here.
64628         (func_import): In dry-run mode, detect more precisely which actions
64629         would be performed, and don't use "...ing" verbs.
64630
64631 2005-09-18  Bruno Haible  <bruno@clisp.org>
64632
64633         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
64634         (func_import): Use join on two temporary files instead of three nested
64635         loops, in order to determine which files are new or old.
64636
64637 2005-09-18  Bruno Haible  <bruno@clisp.org>
64638
64639         * gnulib-tool (func_import): Comment out code that spits out the
64640         new files with --dry-run.
64641
64642 2005-09-18  Bruno Haible  <bruno@clisp.org>
64643
64644         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
64645
64646 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64647
64648         * lib/stat-time.h: New file.
64649         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
64650         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
64651         in a different way.
64652         (timespec_cmp): New function.
64653         * lib/utimecmp.c: Include stat-time.h.
64654         (SYSCALL_RESOLUTION): Depend on whether various struct stat
64655         members exist, not on the obsolescent ST_MTIM_NSEC.
64656         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
64657
64658 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64659
64660         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
64661
64662 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64663
64664         * MODULES.html.sh (File system functions): Add stat-time.
64665         * modules/stat-time: New file.
64666         * modules/timespec (Files): Remove m4/st_mtim.m4; this
64667         is now done in a different way, by the stat-time module.
64668         * modules/utimecmp (Depends-on): Add stat-time.
64669
64670 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64671
64672         * m4/st_mtim.m4: Remove.  Superseded by...
64673         * m4/stat-time.m4: New file.
64674         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
64675         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
64676
64677 2005-09-15  Derek Price  <derek@ximbiot.com>
64678
64679         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
64680
64681 2005-09-15  Derek Price  <derek@ximbiot.com>
64682
64683         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
64684         * lib/regex_internal.c: Ditto, using this...
64685         (__GNUC_PREREQ): ...new macro.
64686         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
64687         using...
64688         (__GNUC_PREREQ): ...this new macro.
64689
64690         * lib/strstr.h: Include string.h. Define strstr as a macro here.
64691
64692 2005-09-15  Derek Price  <derek@ximbiot.com>
64693             Paul Eggert  <eggert@cs.ucla.edu>
64694
64695         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
64696         changes, consolidating in...
64697         * lib/regex_internal.h: ...this file.
64698
64699 2005-09-13  Jim Meyering  <jim@meyering.net>
64700
64701         * lib/canon-host.c: Filter through gnu indent and reword comments
64702         slightly.
64703         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
64704
64705 2005-09-13  Derek Price  <derek@ximbiot.com>
64706
64707         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
64708         failure.
64709         Reported by Jim Meyering  <jim@meyering.net>.
64710
64711 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64712
64713         * lib/base64.c: Typo.
64714         (base64_encode): Put b64str in initialized data section.
64715
64716 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64717
64718         Merge glibc and coreutils changes into gnulib, plus a few
64719         extra fixes.
64720         * lib/md5.c: Use #error rather than a string.
64721         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
64722         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
64723         (__attribute__): Define to empty for non recent-GCC.
64724         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
64725         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
64726         Renamed from their non-__ counterparts, with new macros replacing
64727         them if not _LIBC.  Add __THROW attribute.
64728         (rol): Remove.
64729         (struct md5_ctx): Align buffer if using GCC.
64730         * lib/sha1.h (struct sha1_ctx): Likewise.
64731         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
64732         The old name was backwards.
64733         (NOTSWAP): Remove; not used.
64734         (rol): New macro, moved here from md5.h.
64735         (sha1_process_block): Remove a FIXME that doesn't make sense.
64736
64737 2005-09-12  Derek Price  <derek@ximbiot.com>
64738
64739         Return usable errors from canon-host.
64740         * lib/canon-host.h: New file.
64741         * lib/canon-host.c (canon_host): Wrap...
64742         (canon_host_r): ...this new function, which now relies exclusively on
64743         getaddrinfo.
64744         (ch_strerror): New function.
64745         (last_cherror): New global.
64746         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
64747         interface.
64748         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
64749         void *.
64750         (freeaddrinfo): Free ai->ai_canonname when set.
64751
64752 2005-09-12  Derek Price  <derek@ximbiot.com>
64753
64754         Make canon-host require getaddrinfo.
64755         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
64756         AC_LIBSOURCE canon-host.h.  Call...
64757         (gl_PREREQ_CANON_HOST): ...this new function, which requires
64758         gl_GETADDRINFO.
64759         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
64760
64761 2005-09-12  Derek Price  <derek@ximbiot.com>
64762
64763         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
64764         LGPL.
64765         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
64766
64767 2005-09-12  Derek Price  <derek@ximbiot.com>
64768
64769         * lib/gai_strerror.c: Include config.h when available.  Include
64770         getaddrinfo.h before other headers to test interface.
64771         Reported by Larry Jones <lawrence.jones@ugs.com>.
64772
64773 2005-09-12  Derek Price  <derek@ximbiot.com>
64774             Paul Eggert  <eggert@cs.ucla.edu>
64775
64776         * modules/glob (Files): Add glob-libc.h.
64777
64778 2005-09-12  Derek Price  <derek@ximbiot.com>
64779             Paul Eggert  <eggert@cs.ucla.edu>
64780
64781         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
64782         glob_.h, glob-libc.h.
64783         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
64784
64785 2005-09-12  Derek Price  <derek@ximbiot.com>
64786             Paul Eggert  <eggert@cs.ucla.edu>
64787
64788         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
64789         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
64790         protecting things that should be done only in gnulib contexts.
64791         * lib/glob_.h: New file, containing only the glob things needed for
64792         gnulib.
64793         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
64794         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
64795         (glob, globfree, glob_pattern_p): Now defined simply in terms of
64796         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
64797         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
64798         and to respect the namespace rules better.
64799
64800 2005-09-08  Simon Josefsson  <jas@extundo.com>
64801
64802         * modules/socklen: New file.
64803
64804 2005-09-08  Simon Josefsson  <jas@extundo.com>
64805
64806         * m4/socklen.m4: New file.
64807
64808 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64809
64810         * modules/utimens (Files): Add m4/utimbuf.m4, since
64811         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
64812         Reported by Sergey Poznyakoff.
64813
64814 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64815
64816         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
64817         definitions, since that's the preferred style in glibc.
64818         Fix a minor spacing issue, and update copyright notice to match
64819         glibc's.
64820
64821 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64822
64823         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
64824
64825 2005-09-06  Simon Josefsson  <jas@extundo.com>
64826
64827         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
64828         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
64829
64830 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64831
64832         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
64833         warning.
64834
64835 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64836
64837         * config/srclist.txt: Add glibc bug 1302.
64838
64839 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
64840
64841         Change bitset word type from unsigned int to unsigned long int,
64842         as this has better performance on typical 64-bit hosts.
64843         Port bitset code to hosts with unusual word sizes.
64844         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
64845         (build_collating_symbol):
64846         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
64847         argument is a bitset.  This is merely a style issue, but it makes
64848         it clearer that an entire array is expected.
64849         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
64850         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
64851         Port to the case where bitset_word is not the same as unsigned int.
64852         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64853         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
64854         Likewise.
64855         * lib/regexec.c (check_dst_limits_calc_pos_1,
64856         check_subexp_matching_top):
64857         (build_trtable, group_nodes_into_DFAstates):
64858         Likewise.
64859         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
64860         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
64861         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
64862         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
64863         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
64864         * lib/regcomp.c (optimize_subexps, lower_subexp):
64865         Work even if bitset_word has holes in its bitwise representation.
64866         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
64867         * lib/regexec.c (check_dst_limits_calc_pos_1,
64868         check_subexp_matching_top):
64869         Likewise.
64870         * lib/regex_internal.c (re_string_reconstruct):
64871         Don't assume UCHAR_MAX == 255.
64872         * lib/regex_internal.h (bitset_set_all): Likewise.
64873         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
64874         All uses changed.
64875         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
64876         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
64877         All uses changed.
64878         (BITSET_WORD_MAX): New macro.
64879         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
64880         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
64881         (bitset_empty, bitset_copy):
64882         Prefer sizeof (bitset) to multiplying it out ourselves.
64883         (bitset_not_merge): Remove; unused.
64884         (bitset_contain): Return bool, not unsigned int with one bit on.
64885         All callers changed.
64886         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
64887         alignment than re_node_set; do this by defining a new internal
64888         type struct dests_alloc and using it to allocate memory.
64889
64890 2005-09-05  Bruno Haible  <bruno@clisp.org>
64891
64892         * gnulib-tool (func_import): Fix comparison in handling of symbolic
64893         links.
64894
64895 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
64896
64897         * modules/size_max (Makefile.am): Add size_max.h
64898
64899 2005-09-04  Derek Price  <derek@ximbiot.com>
64900
64901         * gnulib-tool (func_import): Fix reversed $symbolic logic.
64902
64903 2005-09-03  Simon Josefsson  <jas@extundo.com>
64904
64905         * gnulib-tool: Fix typo.
64906
64907 2005-09-03  Simon Josefsson  <jas@extundo.com>
64908
64909         * config/srclist.txt: Add glibc bug 1293.
64910
64911 2005-09-03  Derek Price  <derek@ximbiot.com>
64912
64913         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
64914         From Larry Jones <lawrence.jones@ugs.com>.
64915
64916 2005-09-02  Simon Josefsson  <jas@extundo.com>
64917
64918         * modules/socklen: New file.
64919
64920 2005-09-02  Simon Josefsson  <jas@extundo.com>
64921
64922         * modules/havelib: New module.
64923
64924         * modules/gettext, modules/iconv, modules/lock, modules/readline:
64925         Use havelib.
64926
64927 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64928
64929         Check for arithmetic overflow when calculating sizes, to prevent
64930         some buffer-overflow issues.  These patches are conservative, in the
64931         sense that when I couldn't determine whether an overflow was possible,
64932         I inserted a run-time check.
64933         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
64934         macros.
64935         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
64936         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
64937         (re_xnrealloc, re_x2nrealloc): New inline functions.
64938         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
64939         parse_bracket_exp):
64940         (build_equiv_class, build_charclass): Check for arithmetic overflow
64941         in size expression calculations.
64942         * lib/regex_internal.c (re_string_realloc_buffers):
64943         (build_wcs_upper_buffer, re_node_set_add_intersect):
64944         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
64945         (re_dfa_add_node, register_state): Likewise.
64946         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
64947         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
64948         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
64949         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
64950
64951 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64952
64953         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64954         m4/ulonglong.m4.  Problem reported by Martin Lambers.
64955
64956 2005-09-02  Bruno Haible  <bruno@clisp.org>
64957
64958         Support for lib vs. lib64 distinction on biarch platforms.
64959         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
64960         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
64961         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
64962
64963 2005-09-02  Bruno Haible  <bruno@clisp.org>
64964
64965         * gnulib-tool (import): In the other first-use case, provide defaults
64966         as well.
64967
64968 2005-09-02  Bruno Haible  <bruno@clisp.org>
64969
64970         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
64971         patches not yet found in the latest gettext release.
64972
64973 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64974
64975         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
64976         to avoid a collision with bits/local_lim.h in glibc.
64977         All uses changed.  Problem reported by Dmitry V. Levin in
64978         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
64979
64980         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
64981         bugs in int versus size_t comparisons.
64982         (re_string_context_at): Fix bug where the code assumed that
64983         Idx is signed.
64984
64985         Use bool where appropriate.
64986         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
64987         All callers changed.
64988         (calc_eclosure_iter): Likewise, for ROOT arg.
64989         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
64990         (build_charclass_op): Likewise, for NON_MATCH arg.
64991         * lib/regex_internal.c (re_string_allocate, re_string_construct):
64992         (re_string_construct_common): Likewise, for ICASE arg.
64993         * lib/regexec.c (re_search_2_stub, re_search_stub):
64994         Likewise, for RET_LEN arg.
64995         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
64996         (set_regs): Likewise, for FL_BACKTRACK arg.
64997         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
64998         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
64999         (calc_eclosure_iter, parse_bracket_exp):
65000         Use bool for internal variables that are booleans.
65001         * lib/regexec.c (re_search_internal, check_matching,
65002         proceed_next_node):
65003         (set_regs, build_sifted_states, sift_states_bkref):
65004         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
65005         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65006         (find_collation_sequence_value):
65007         Likewise.
65008         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
65009         (re_node_set_compare):
65010         Return bool, not int. All callers changed.
65011         * lib/regexec.c (check_halt_node_context, check_dst_limits):
65012         (build_trtable, check_node_accept): Likewise.
65013         * lib/regex_internal.h: Include stdbool.h.
65014
65015         Fix bugs uncovered when converting to bool.
65016         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
65017         failure instead of charging ahead blindly.
65018         * lib/regex_internal.c (register_state): Likewise.
65019         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
65020         for freeing internal storage.
65021         (group_nodes_into_DFA_states): Use unsigned int, not int, for
65022         bitset pieces used as boolean, to avoid undefined behavior
65023         on hosts that do int overflow checking.
65024
65025 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65026
65027         * config/srclist.txt: Add glibc bugs 1285-1287.
65028
65029 2005-09-01  Jim Meyering  <jim@meyering.net>
65030
65031         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
65032         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
65033         Require gl_STAT_MACROS, too.
65034
65035 2005-09-01  Bruno Haible  <bruno@clisp.org>
65036
65037         * gnulib-tool (import): In the first-use case, provide defaults.
65038
65039 2005-09-01  Bruno Haible  <bruno@clisp.org>
65040
65041         * gnulib-tool (func_import): Remove the .tmp files.
65042
65043 2005-09-01  Bruno Haible  <bruno@clisp.org>
65044
65045         * gnulib-tool (func_import): Fix handling of symbolic links.
65046
65047 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65048
65049         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
65050         old glibc regex code mishandles strings longer than 2**31 bytes.
65051         This patch fixes this when the regex code is used in gnulib
65052         (i.e., outside glibc).
65053
65054         This patch should not affect the use of the regex code inside
65055         glibc.  No doubt this problem also needs to be handled for glibc
65056         as well, but the result will be an incompatible change to the
65057         glibc ABI, and the old ABI will have to be supported too.  That
65058         can be the the subject for another patch.
65059
65060         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
65061         governing whether the rest of this patch is active.  By default,
65062         the macro is disabled and the patch has no effect.
65063         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
65064         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
65065         (struct re_pattern_buffer, re_search, re_search_2, re_match):
65066         (re_match_2, re_set_registers): Use the new types.
65067         * lib/regex_internal.h (Idx, re_hashval_t): New types.
65068         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
65069         New macros.
65070         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
65071         (re_string_context_at, bin_tree_t, re_dfastate_t):
65072         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
65073         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
65074         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
65075         (re_string_char_size_at, re_string_wchar_at):
65076         (re_string_elem_size_at):
65077         Use the new types and macros to port to 64-bit hosts.
65078         Use unsigned types for internal values, so that the code
65079         mostly works even for arrays larger than SSIZE_MAX.
65080         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
65081         (search_duplicated_node, calc_eclosure_iter, fetch_number):
65082         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
65083         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
65084         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
65085         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
65086         (calc_inveclosure, parse_dup_op, build_range_exp):
65087         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
65088         (fetch_number, create_token_tree, mark_opt_subexp):
65089         Likewise.
65090         * lib/regex_internal.c (re_string_construct_common,
65091         create_ci_newstate):
65092         (create_cd_newstate, re_string_allocate, re_string_construct):
65093         (re_string_realloc_buffers, build_wcs_upper_buffer):
65094         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65095         (re_string_reconstruct, re_string_peek_byte_case):
65096         (re_string_fetch_byte_case, re_string_context_at):
65097         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65098         (re_node_set_init_copy, re_node_set_add_intersect):
65099         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65100         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65101         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65102         (re_acquire_state, re_acquire_state_context, register_state):
65103         Likewise.
65104         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
65105         search_cur_bkref_entry):
65106         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
65107         (re_search_internal, re_search_2_stub, re_search_stub)
65108         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
65109         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
65110         (update_cur_sifted_state, check_dst_limits):
65111         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65112         (check_subexp_limits, sift_states_bkref, merge_state_array):
65113         (check_subexp_matching_top, get_subexp, get_subexp_sub):
65114         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
65115         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65116         (expand_bkref_cache, check_node_accept_bytes):
65117         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
65118         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
65119         (acquire_init_state_context, check_halt_node_context):
65120         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
65121         (sift_states_backward, clean_state_log_if_needed):
65122         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
65123         (find_recover_state, transit_state_sb, transit_state_mb):
65124         (transit_state_bkref, build_trtable, match_ctx_clean):
65125         Likewise.
65126         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
65127         to work around an assumption that REG_MISSING is negative.
65128
65129         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
65130         (seek_collating_symbol_entry) [defined _LIBC]:
65131         (lookup_collation_sequence_value) [defined _LIBC]:
65132         (build_range_exp, build_collating_symbol) [defined _LIBC]:
65133         Use prototypes rather than old-style function definitions.
65134         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
65135         (transit_state_sb) [0]:
65136         (find_collation_sequence_value) [defined _LIBC]: Likewise.
65137
65138         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
65139         rm_eo.
65140
65141         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
65142         (optimize_subexps, lower_subexp):
65143         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
65144         since the signed shift might overflow.  Use 1u<<31 instead.
65145         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65146         Likewise.
65147         * lib/regexec.c (check_dst_limits_calc_pos_1,
65148         check_subexp_matching_top): Likewise.
65149
65150         * lib/regcomp.c (optimize_subexps, lower_subexp):
65151         Use CHAR_BIT rather than 8, for clarity.
65152         * lib/regexec.c (check_dst_limits_calc_pos_1):
65153         (check_subexp_matching_top): Likewise.
65154         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
65155         have to worry about portability issues when shifting it left.
65156         Remove no-longer-needed test for table_size > 0.
65157         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
65158         in a word, as the resulting behavior is undefined.
65159         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
65160         in one case, a <= should have been an <, and in another case the
65161         whole test was missing.
65162         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
65163         the standard name CHAR_BIT.
65164         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
65165         this is not true on one's complement and signed-magnitude hosts.
65166
65167         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
65168         next_last_offset.
65169         (struct re_dfa_t): Remove unused member states_alloc.
65170         * lib/regcomp.c (init_dfa): Don't initialize unused members.
65171
65172 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65173
65174         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
65175         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
65176         and large-file glibc and in 32-bit large-file Solaris.
65177
65178 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65179
65180         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
65181         lengths fit in regoff_t; this isn't true if regoff_t is the same
65182         width as size_t.
65183         * lib/regex.c (re_search_internal): 5th arg is LAST_START
65184         (= START + RANGE) instead of RANGE.  This avoids overflow
65185         problems when regoff_t is the same width as size_t.
65186         All callers changed.
65187         (re_search_2_stub): Check for overflow when adding the
65188         sizes of the two strings.
65189         (re_search_stub): Check for overflow when adding START
65190         to RANGE; if it occurs, substitute the extreme value.
65191
65192 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65193
65194         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
65195
65196 2005-08-31  Jim Meyering  <jim@meyering.net>
65197
65198         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
65199         a pointer-to-const.
65200         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
65201         (register_state): Likewise.
65202         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
65203         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65204         (group_nodes_into_DFAstates): Likewise.
65205
65206 2005-08-31  Jim Meyering  <jim@meyering.net>
65207
65208         * check-module: Add a FIXME comment.
65209
65210 2005-08-31  Eric Blake  <ebb9@byu.net>
65211
65212         * modules/unistd-safer (Files): Add unistd--.h.
65213         * modules/stdio-safer (Files): Add stdio--.h.
65214
65215 2005-08-31  Derek Price  <derek@ximbiot.com>
65216
65217         * lib/getdelim.c (getdelim): Return EOF on EOF.
65218         Reported by Larry Jones <lawrence.jones@ugs.com>.
65219
65220 2005-08-31  Bruno Haible  <bruno@clisp.org>
65221
65222         Avoid unnecessary diffs in the generated lib/Makefile.am.
65223         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
65224         the generated files.
65225         (func_import): Don't set cmd.
65226
65227 2005-08-31  Bruno Haible  <bruno@clisp.org>
65228
65229         * lib/strstr.c: Include <stddef.h>, for NULL.
65230         * lib/strcasestr.c: Likewise.
65231         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65232
65233 2005-08-31  Bruno Haible  <bruno@clisp.org>
65234
65235         * gnulib-tool: New option --macro-prefix.
65236         (func_import): Use macro_prefix.
65237         (import): Handle option --macro-prefix.
65238
65239 2005-08-31  Bruno Haible  <bruno@clisp.org>
65240
65241         * gnulib-tool (import): Rename most ac_* variables to cached_*.
65242         Also use new variables cached_lgpl, cached_libtool.
65243
65244 2005-08-31  Bruno Haible  <bruno@clisp.org>
65245
65246         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
65247         always instantiating them.
65248
65249 2005-08-31  Bruno Haible  <bruno@clisp.org>
65250
65251         * gnulib-tool (func_import): Read the previous cached settings
65252         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
65253         earlier added by gnulib but are now dropped. Warn when a gnulib file
65254         overwrites a non-gnulib file.
65255
65256 2005-08-31  Bruno Haible  <bruno@clisp.org>
65257
65258         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
65259         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
65260         projects that don't keep autogenerated files in CVS. Put into
65261         actioncmd only the specified modules, not the transitive closure.
65262
65263 2005-08-31  Bruno Haible  <bruno@clisp.org>
65264
65265         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
65266         Create directories that shall be filled.
65267         (import): Don't look for gl_* macros in configure.ac. Recurse across
65268         all directories containing a gnulib-cache.m4 files, if meaningful.
65269
65270 2005-08-31  Bruno Haible  <bruno@clisp.org>
65271
65272         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
65273         (import): Set seen_libtool when we see gl_LIBTOOL.
65274
65275 2005-08-31  Bruno Haible  <bruno@clisp.org>
65276
65277         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
65278         declaration macro definitions from generated gnulib.m4.
65279
65280 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
65281
65282         * lib/iconvme.h: Add prototype for iconv_alloc.
65283
65284 2005-08-29  Simon Josefsson  <jas@extundo.com>
65285
65286         * lib/iconvme.c: Fix errno.
65287
65288 2005-08-29  Bruno Haible  <bruno@clisp.org>
65289
65290         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
65291         that it works when the directory contains spaces.
65292
65293 2005-08-29  Bruno Haible  <bruno@clisp.org>
65294
65295         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
65296
65297 2005-08-29  Bruno Haible  <bruno@clisp.org>
65298
65299         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
65300         Emit more advice.
65301
65302 2005-08-29  Bruno Haible  <bruno@clisp.org>
65303         and Stepan Kasal  <kasal@ucw.cz>
65304
65305         * check-module: If more parameters are given, check each of them
65306         separately; add more exceptions, as noted by Jim Meyering.
65307         (check_module): New procedure.
65308         (%exempt_header): Now contains all exceptions.
65309
65310 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
65311
65312         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
65313
65314 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65315
65316         * lib/iconvme.c: Split iconv_string into iconv_alloc.
65317
65318 2005-08-28  Bruno Haible  <bruno@clisp.org>
65319
65320         * m4/gnulib-tool.m4: New file.
65321
65322 2005-08-27  Jim Meyering  <jim@meyering.net>
65323
65324         * modules/unistd-safer (Files): Add pipe-safer.c.
65325         * modules/fcntl-safer (Files): Add creat-safer.c.
65326
65327 2005-08-27  Jim Meyering  <jim@meyering.net>
65328
65329         * m4/stdlib-safer.m4: New file.  From coreutils.
65330         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
65331         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
65332         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
65333         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
65334         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
65335
65336 2005-08-27  Jim Meyering  <jim@meyering.net>
65337
65338         * lib/fopen-safer.c: Merge minor changes from coreutils.
65339         * lib/dup-safer.c: Likewise.
65340         * lib/fd-safer.c: Likewise.
65341
65342         Merge from coreutils.
65343         * lib/stdio--.h: New file.
65344         * lib/stdlib--.h: New file.
65345         * lib/mkstemp-safer.c: New file.
65346
65347         GNU tar needs these.
65348         * lib/pipe-safer.c: New file.
65349         * lib/creat-safer.c: New file.
65350         * lib/fcntl--.h (creat): Define to creat_safer.
65351         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
65352         * lib/unistd--.h (pipe): Define to pipe_safer.
65353         * lib/unistd-safer.h: Declare pipe_safer.
65354
65355 2005-08-26  Simon Josefsson  <jas@extundo.com>
65356
65357         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
65358         Haible <bruno@clisp.org>.
65359
65360 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
65361
65362         * lib/regex_internal.h: Remove all references to
65363         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
65364         or better.
65365         (bitset_not, bitset_merge, bitset_not_merge):
65366         (bitset_mask, re_string_allocate, re_string_construct):
65367         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
65368         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
65369         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
65370         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
65371         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65372         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65373         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
65374         (re_acquire_state_context):
65375         Remove unnecessary forward decls.
65376         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
65377         Put __attribute at function definition,
65378         now that the function decl has been removed.
65379         * lib/regex_internal.c (re_string_peek_byte_case):
65380         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
65381         Likewise.
65382
65383 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
65384
65385         * m4/regex.m4: Add AC_PREREQ(2.50).
65386         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
65387
65388 2005-08-25  Simon Josefsson  <jas@extundo.com>
65389
65390         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
65391         __fsetlocking.
65392
65393 2005-08-25  Simon Josefsson  <jas@extundo.com>
65394
65395         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
65396         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
65397         GLIBC specific code.
65398
65399 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65400
65401         Make regex safe for g++.  This fixes one real bug (an "err"
65402         that should have been "*err").  g++ problem reported by
65403         Sam Steingold.
65404         * lib/regex_internal.h (re_calloc): New macro, consistent with
65405         re_malloc etc.  All callers of calloc changed to use re_calloc.
65406         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
65407         not int.  All callers changed.
65408         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
65409         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
65410         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
65411         (find_recover_state): Change "err" to "*err"; this fixes what
65412         appears to be a real bug.
65413         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
65414         versus int.
65415
65416 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65417
65418         * modules/regex (Depends-on): Add malloc, since the code
65419         assumes that !malloc(0) means failure.
65420
65421 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65422
65423         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
65424
65425         alloca modernization/simplification for regex.
65426         * lib/regex.c: Remove portability cruft for alloca.  This no longer
65427         needs to be at the start of the file, and can be moved into
65428         regex_internal.h and simplified.
65429         * lib/regex_internal.h: Include <alloca.h>.
65430         (__libc_use_alloca) [!defined _LIBC]: New macro.
65431         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
65432         now works outside glibc.
65433
65434 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65435
65436         * config/srclist.txt: Add glibc bugs 1241, 1245.
65437
65438 2005-08-25  Jim Meyering  <jim@meyering.net>
65439
65440         * lib/open-safer.c: Include <config.h>.
65441         Otherwise, we'd lose LARGEFILE support in any file using
65442         e.g. "fcntl--.h"
65443
65444 2005-08-25  Bruno Haible  <bruno@clisp.org>
65445
65446         * m4/minmax.m4: Require autoconf 2.52.
65447         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
65448         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
65449         alternatives of translit over the alphabet.
65450         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
65451
65452 2005-08-24  Simon Josefsson  <jas@extundo.com>
65453
65454         * tests/test-getpass.c: New file.
65455
65456 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65457
65458         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
65459         for GNU regex features.
65460
65461 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65462
65463         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
65464         * lib/regex.h (regerror): Likewise.
65465
65466         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
65467         requires this.  (The code never needed it.)
65468
65469         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
65470         All uses of recently-renamed identifiers changed to use the new,
65471         POSIX-compliant names.  The code will build and run just fine
65472         without these changes, but it's better to eat our own dog food
65473         and use the standard-conforming names.
65474
65475         * lib/regex.h: Fix a multitude of POSIX name space violations.
65476         These changes have an effect only for programs that define
65477         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
65478         do not change anything for programs compiled in the normal way.
65479         Also, there is no effect on the ABI.
65480
65481         (_REGEX_SOURCE): New macro.
65482         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
65483         defined and _GNU_SOURCE is not; this fixes a name space violation.
65484
65485         Rename the following macros to obey POSIX requirements.
65486         The old names are still visible as macros if _REGEX_SOURCE is defined.
65487         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
65488         RE_BACKSLASH_ESCAPE_IN_LISTS.
65489         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
65490         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
65491         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
65492         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
65493         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
65494         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
65495         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
65496         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
65497         (REG_INTERVALS): renamed from RE_INTERVALS.
65498         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
65499         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
65500         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
65501         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
65502         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
65503         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
65504         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
65505         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
65506         RE_UNMATCHED_RIGHT_PAREN_ORD.
65507         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
65508         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
65509         (REG_DEBUG): renamed from RE_DEBUG.
65510         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
65511         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
65512         unusual, since we can't clash with the POSIX REG_ICASE.
65513         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
65514         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
65515         (REG_NO_SUB): renamed from RE_NO_SUB.
65516         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
65517         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
65518         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
65519         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
65520         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
65521         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
65522         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
65523         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
65524         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
65525         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
65526         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
65527         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
65528         RE_SYNTAX_POSIX_MINIMAL_BASIC.
65529         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
65530         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
65531         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
65532         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
65533         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
65534         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
65535         (REG_FIXED): Renamed from REGS_FIXED.
65536         (REG_NREGS): Renamed from RE_NREGS.
65537
65538         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
65539         of other REG_* macros, since POSIX says the user is allowed to
65540         #undef these macros selectively.
65541
65542         (reg_errcode_t): Update comment stating what other tables need
65543         to be consistent.
65544
65545         Rename the following enum values to obey POSIX requirements.
65546         The old names are still visible as macros.
65547         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
65548         is not defined, since GNU is supposed to be a superset of POSIX as
65549         much as possible, and since we want reg_errcode_t to be a signed
65550         type for implementation consistency.
65551         (_REG_NOERROR): Renamed from REG_NOERROR.
65552         (_REG_NOMATCH): Renamed from REG_NOMATCH.
65553         (_REG_BADPAT): Renamed from REG_BADPAT.
65554         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
65555         (_REG_ECTYPE): Renamed from REG_ECTYPE.
65556         (_REG_EESCAPE): Renamed from REG_EESCAPE.
65557         (_REG_ESUBREG): Renamed from REG_ESUBREG.
65558         (_REG_EBRACK): Renamed from REG_EBRACK.
65559         (_REG_EPAREN): Renamed from REG_EPAREN.
65560         (_REG_EBRACE): Renamed from REG_EBRACE.
65561         (_REG_BADBR): Renamed from REG_BADBR.
65562         (_REG_ERANGE): Renamed from REG_ERANGE.
65563         (_REG_ESPACE): Renamed from REG_ESPACE.
65564         (_REG_BADRPT): Renamed from REG_BADRPT.
65565         (_REG_EEND): Renamed from REG_EEND.
65566         (_REG_ESIZE): Renamed from REG_ESIZE.
65567         (_REG_ERPAREN): Renamed from REG_ERPAREN.
65568         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
65569         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
65570         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
65571         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
65572
65573         (_REG_RE_NAME, _REG_RM_NAME): New macros.
65574         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
65575         changed.  But support the old name if the new one is not defined
65576         and if _REGEX_SOURCE.
65577
65578         Change the following member names in struct re_pattern_buffer.
65579         The old names are still supported if !_REGEX_SOURCE.
65580         The new names are always supported, regardless of _REGEX_SOURCE.
65581         (re_buffer): Renamed from buffer.
65582         (re_allocated): Renamed from allocated.
65583         (re_used): Renamed from used.
65584         (re_syntax): Renamed from syntax.
65585         (re_fastmap): Renamed from fastmap.
65586         (re_translate): Renamed from translate.
65587         (re_can_be_null): Renamed from can_be_null.
65588         (re_regs_allocated): Renamed from regs_allocated.
65589         (re_fastmap_accurate): Renamed from fastmap_accurate.
65590         (re_no_sub): Renamed from no_sub.
65591         (re_not_bol): Renamed from not_bol.
65592         (re_not_eol): Renamed from not_eol.
65593         (re_newline_anchor): Renamed from newline_anchor.
65594
65595         Change the following member names in struct re_registers.
65596         The old names are still supported if !_REGEX_SOURCE.
65597         The new names are always supported, regardless of _REGEX_SOURCE.
65598         (rm_num_regs): Renamed from num_regs.
65599         (rm_start): Renamed from start.
65600         (rm_end): Renamed from end.
65601
65602         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
65603         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
65604         Prepend __ to parameter names.
65605
65606         Undo yesterday's changes.
65607
65608 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65609
65610         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
65611         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
65612         lib/regex.c.
65613
65614 2005-08-24  Jim Meyering  <jim@meyering.net>
65615
65616         Sync from coreutils.
65617         * m4/fcntl-safer.m4: New file.
65618
65619         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
65620         and object files for this module.
65621
65622 2005-08-24  Jim Meyering  <jim@meyering.net>
65623
65624         Sync from coreutils.
65625         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
65626
65627 2005-08-24  Jim Meyering  <jim@meyering.net>
65628
65629         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
65630         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
65631
65632 2005-08-24  Jim Meyering  <jim@meyering.net>
65633
65634         * modules/fcntl-safer: New module.
65635         * modules/fts (Depends-on): Add fcntl-safer.
65636         * MODULES.html.sh (File descriptor based Input/Output):
65637         Add fcntl-safer.
65638
65639 2005-08-24  Bruno Haible  <bruno@clisp.org>
65640
65641         Support for unit test modules.
65642         * modules/README: Mention tests modules.
65643         * modules/TEMPLATE-TESTS: New file.
65644         * gnulib-tool: New options --extract-tests-module, --with-tests and
65645         --tests-base (unused for the moment).
65646         (testsbase, inctests): New variables.
65647         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
65648         (func_verify_module): Exclude TEMPLATE-TESTS.
65649         (func_verify_nontests_module, func_verify_tests_module): New functions.
65650         (func_get_dependencies): Add implicit dependency for tests modules.
65651         (func_get_tests_module): New function.
65652         (func_modules_transitive_closure): When --with-tests was specified,
65653         include the unit tests as well, unless explicitly avoided.
65654         (func_emit_lib_Makefile_am): Ignore the tests modules here.
65655         (func_emit_tests_Makefile_am): New function.
65656         (func_create_testdir): When --with-tests was specified, emit a
65657         tests/ directory.
65658         * MODULES.html.sh (Future developments): Update.
65659
65660 2005-08-24  Bruno Haible  <bruno@clisp.org>
65661
65662         * modules/tls-tests: New file.
65663         * tests/test-tls.c: New file, from GNU gettext.
65664
65665 2005-08-24  Bruno Haible  <bruno@clisp.org>
65666
65667         * modules/lock-tests: New file.
65668         * tests/test-lock.c: New file, from GNU gettext.
65669
65670 2005-08-24  Bruno Haible  <bruno@clisp.org>
65671
65672         * lib/lock.h: Add multiple inclusion guard.
65673         * lib/tls.h: Add multiple inclusion guard.
65674
65675 2005-08-24  Bruno Haible  <bruno@clisp.org>
65676
65677         * gnulib-tool: Add support for the --aux-dir option to
65678         --create-testdir, --create-megatestdir, --test, --megatest.
65679         (func_create_testdir, func_create_megatestdir): Optionally emit a
65680         AC_CONFIG_AUX_DIR directive.
65681         (create-testdir, create-megatestdir, test, megatest): Provide a
65682         default value for $auxdir.
65683
65684 2005-08-24  Bruno Haible  <bruno@clisp.org>
65685
65686         * gnulib-tool (import): Use compound statement instead of subshell
65687         where possible.
65688
65689 2005-08-24  Bruno Haible  <bruno@clisp.org>
65690
65691         * gnulib-tool (import): Change --aux-dir default to "build-aux".
65692
65693 2005-08-24  Bruno Haible  <bruno@clisp.org>
65694
65695         * gnulib-tool (func_version): Update.
65696
65697 2005-08-24  Bruno Haible  <bruno@clisp.org>
65698
65699         * gnulib-tool (func_import, func_create_testdir,
65700         func_create_megatestdir): Quote all autoconf macro arguments.
65701
65702 2005-08-24  Bruno Haible  <bruno@clisp.org>
65703
65704         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
65705         option --force, because --force causes the aclocal.m4 of each
65706         subdirectory to be newer than the corresponding config.h.in.
65707
65708 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65709
65710         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
65711         All contents moved to gl_REGEX.
65712         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
65713         assume that it does.
65714
65715 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65716
65717         * lib/regex.h (REG_NOSYS)
65718         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
65719         Define, since POSIX requires it as of 2001.
65720         (_REG_ENOSYS)
65721         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
65722         New private symbol, used to keep the enum signed in all cases.
65723         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
65724         Youngman in
65725         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
65726
65727         * lib/regex_internal.c (re_string_skip_chars, register_state):
65728         (calc_state_hash):
65729         Remove forward decls; no longer needed now that we use prototypes.
65730         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
65731         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
65732         (clean_state_log_if_needed): Likewise.
65733
65734 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65735
65736         * config/srclist.txt: Add glibc bugs 1231-1233.
65737
65738 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65739
65740         Fix problems reported by Sam Steingold in
65741         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
65742         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
65743         assumed that reg_errcode_t is a signed type, which is not
65744         necessarily true if _XOPEN_SOURCE is not defined.
65745         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
65746         since some compilers warn about it otherwise.
65747
65748 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65749
65750         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
65751         (init_word_char, create_initial_state, duplicate_node_closure):
65752         (fetch_token, peek_token_bracket, build_range_exp):
65753         (build_collating_symbol): Remove forward decls; no longer needed
65754         now that we use prototypes.
65755
65756         * lib/regcomp.c:
65757         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
65758         (re_compile_fastmap_iter, regcomp, regerror, regfree):
65759         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
65760         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
65761         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
65762         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
65763         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
65764         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
65765         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
65766         (build_range_exp, build_collating_symbol, parse_bracket_exp):
65767         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
65768         (build_charclass, build_charclass_op, fetch_number, create_tree):
65769         (create_token_tree, mark_opt_subexp, duplicate_tree):
65770         Use prototypes rather than old-style definitions.
65771
65772         * lib/regex_internal.c:
65773         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
65774         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
65775         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65776         (re_string_reconstruct, re_string_peek_byte_case):
65777         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
65778         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65779         (re_node_set_init_copy, re_node_set_add_intersect):
65780         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65781         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65782         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65783         (re_acquire_state, re_acquire_state_context, register_state):
65784         (create_ci_newstate, create_cd_newstate, free_state):
65785         Likewise.
65786         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
65787         re_search_2):
65788         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
65789         (re_search_internal, prune_impossible_nodes):
65790         (acquire_init_state_context, check_matching, static):
65791         (check_halt_node_context, check_halt_state_context, proceed_next_node):
65792         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
65793         (update_regs, sift_states_backward, build_sifted_states):
65794         (clean_state_log_if_needed, merge_state_array):
65795         (update_cur_sifted_state, add_epsilon_src_nodes):
65796         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
65797         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
65798         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
65799         (find_recover_state, check_subexp_matching_top, transit_state_mb):
65800         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
65801         (check_arrival, check_arrival_add_next_nodes):
65802         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65803         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65804         (check_node_accept_bytes, check_node_accept, extend_buffers):
65805         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
65806         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
65807         (sift_ctx_init):
65808         Likewise.
65809
65810         * lib/regex_internal.h:
65811         (re_string_allocate, re_string_construct, re_string_reconstruct):
65812         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
65813         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
65814         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
65815         (re_string_context_at, re_string_peek_byte_case):
65816         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
65817         is defined, since we now use prototypes always.
65818
65819         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
65820         C89 or better.  All uses removed.
65821
65822 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65823
65824         * config/srclist.txt: Add glibc bugs 1220-1227.
65825
65826 2005-08-20  Jim Meyering  <jim@meyering.net>
65827
65828         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
65829         of unused local, dfa.
65830
65831 2005-08-20  Bruno Haible  <bruno@clisp.org>
65832
65833         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
65834
65835 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65836
65837         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
65838         (re_node_set_insert_last, re_dfa_add_node):
65839         Rename local variables to avoid GCC shadowing warnings.
65840
65841 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65842
65843         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
65844         [defined lint]: Suppress bogus uninitialized-variable warnings.
65845
65846         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
65847         and let the caller return REG_ESPACE if out of space.  This
65848         removes an uninitialied-variable warning with GCC 4.0.1, and also
65849         avoids taking the address of a local variable.  All callers
65850         changed.
65851
65852 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65853
65854         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
65855         $LIBCSRC/posix/regexec.c.
65856         Add glibc bug 1217 for regcomp.c.
65857
65858 2005-08-19  Jim Meyering  <jim@meyering.net>
65859
65860         * lib/regexec.c (proceed_next_node): Redo local variables to
65861         avoid GCC shadowing warnings.
65862
65863 2005-08-18  Bruno Haible  <bruno@clisp.org>
65864
65865         * lib/strstr.c (strstr): Fix return value in multibyte case.
65866         * lib/strcasestr.c (strcasestr): Likewise.
65867
65868 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65869
65870         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
65871
65872 2005-08-17  Jim Meyering  <jim@meyering.net>
65873
65874         Make the %s format (seconds since the epoch) work for a negative
65875         number and when used with a zero-padded field width, e.g. %015s.
65876
65877         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
65878         label so that it precedes the code to set `digits'.  Otherwise,
65879         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
65880         print `00-22'.  Now, it prints `-0022', as it should.
65881
65882 2005-08-17  Bruno Haible  <bruno@clisp.org>
65883
65884         * modules/strstr (Files): Add m4/mbrtowc.m4.
65885         (Depends-on): Add mbuiter.
65886
65887 2005-08-17  Bruno Haible  <bruno@clisp.org>
65888
65889         * modules/strcasestr: New file.
65890         * MODULES.html.sh (String handling, based on ANSI C 89): Add
65891         strcasestr.
65892
65893 2005-08-17  Bruno Haible  <bruno@clisp.org>
65894
65895         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
65896
65897 2005-08-17  Bruno Haible  <bruno@clisp.org>
65898
65899         * modules/mbuiter: New file.
65900         * MODULES.html.sh (Extended multibyte and wide character utilities):
65901         Add mbuiter.
65902
65903 2005-08-17  Bruno Haible  <bruno@clisp.org>
65904
65905         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
65906         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
65907
65908 2005-08-17  Bruno Haible  <bruno@clisp.org>
65909
65910         * m4/strcasestr.m4: New file.
65911
65912 2005-08-17  Bruno Haible  <bruno@clisp.org>
65913
65914         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
65915         * lib/strstr.c: Completely rewritten, with multibyte locale support.
65916
65917 2005-08-17  Bruno Haible  <bruno@clisp.org>
65918
65919         * lib/strcasestr.h: New file.
65920         * lib/strcasestr.c: New file.
65921
65922 2005-08-17  Bruno Haible  <bruno@clisp.org>
65923
65924         * lib/strcasecmp.c: Use mbuiter.h.
65925
65926 2005-08-17  Bruno Haible  <bruno@clisp.org>
65927
65928         * lib/mbuiter.h: New file.
65929
65930 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65931
65932         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
65933         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
65934         and gl_GETOPT are both invoked via different paths (as happens
65935         with GNU tar CVS because it uses both argp and getopt), the former
65936         wins.
65937
65938 2005-08-16  Bruno Haible  <bruno@clisp.org>
65939
65940         * modules/tls: New file.
65941         * MODULES.html.sh (Multithreading): Add tls.
65942
65943 2005-08-16  Bruno Haible  <bruno@clisp.org>
65944
65945         * modules/strnlen1: New file.
65946         * MODULES.html.sh (String handling): Add strnlen1.
65947
65948 2005-08-16  Bruno Haible  <bruno@clisp.org>
65949
65950         * modules/strcase (Files): Add m4/mbrtowc.m4.
65951         (Depends-on): Add strnlen1, mbchar.
65952
65953 2005-08-16  Bruno Haible  <bruno@clisp.org>
65954
65955         * modules/mbiter: New file.
65956         * MODULES.html.sh (Extended multibyte and wide character utilities):
65957         Add mbiter.
65958
65959 2005-08-16  Bruno Haible  <bruno@clisp.org>
65960
65961         * modules/mbfile: New file.
65962         * MODULES.html.sh (Extended multibyte and wide character utilities):
65963         Add mbfile.
65964
65965 2005-08-16  Bruno Haible  <bruno@clisp.org>
65966
65967         * modules/mbchar: New file.
65968         * MODULES.html.sh (Extended multibyte and wide character utilities):
65969         New section.
65970
65971 2005-08-16  Bruno Haible  <bruno@clisp.org>
65972
65973         * m4/tls.m4: New file, from GNU gettext.
65974
65975 2005-08-16  Bruno Haible  <bruno@clisp.org>
65976
65977         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
65978         always.
65979         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
65980
65981 2005-08-16  Bruno Haible  <bruno@clisp.org>
65982
65983         * m4/mbiter.m4: New file.
65984
65985 2005-08-16  Bruno Haible  <bruno@clisp.org>
65986
65987         * m4/mbfile.m4: New file.
65988
65989 2005-08-16  Bruno Haible  <bruno@clisp.org>
65990
65991         * m4/mbchar.m4: New file.
65992
65993 2005-08-16  Bruno Haible  <bruno@clisp.org>
65994
65995         * lib/tls.h: New file, from GNU gettext.
65996         * lib/tls.c: New file, from GNU gettext.
65997
65998 2005-08-16  Bruno Haible  <bruno@clisp.org>
65999
66000         * lib/strnlen1.h: New file.
66001         * lib/strnlen1.c: New file.
66002
66003 2005-08-16  Bruno Haible  <bruno@clisp.org>
66004
66005         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
66006         (mbi_init): Update.
66007         (mbi_avail, mbi_advance): Let the iteration end before the terminating
66008         NUL byte, not after it.
66009
66010 2005-08-16  Bruno Haible  <bruno@clisp.org>
66011
66012         * lib/strcase.h (strcasecmp): Add note in comments.
66013         * lib/strncasecmp.c: Use code from strcasecmp.c.
66014         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
66015         (strcasecmp): Work correctly in multibyte locales.
66016
66017 2005-08-16  Bruno Haible  <bruno@clisp.org>
66018
66019         * lib/mbiter.h: New file.
66020
66021 2005-08-16  Bruno Haible  <bruno@clisp.org>
66022
66023         * lib/mbfile.h: New file.
66024
66025 2005-08-16  Bruno Haible  <bruno@clisp.org>
66026
66027         * lib/mbchar.h: New file.
66028         * lib/mbchar.c: New file.
66029
66030 2005-08-16  Bruno Haible  <bruno@clisp.org>
66031
66032         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
66033         the valid ones. Makes the comparison operations transitive:
66034         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
66035         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
66036
66037 2005-08-15  Simon Josefsson  <jas@extundo.com>
66038
66039         * modules/ssize_t (License): Change to 'unlimited'.
66040
66041         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
66042
66043 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66044
66045         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
66046         Add comments for each pending glibc patch.
66047
66048 2005-08-15  Bruno Haible  <bruno@clisp.org>
66049
66050         * lib/regex.h (__restrict_arr): Don't define to __restrict if
66051         __cplusplus is defined.
66052
66053 2005-08-14  Jim Meyering  <jim@meyering.net>
66054
66055         Sync from coreutils.
66056
66057         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
66058         Use the hash-table-based cycle-detection code not just when
66059         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
66060         Reported by James Youngman in
66061         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
66062         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
66063         FTS_TIGHT_CYCLE_CHECK.
66064         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
66065         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
66066         once again.
66067         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
66068         * lib/fts.c (fd_safer): Remove decl.
66069         Include fcntl--.h rather than unistd-safer.h
66070         (fts_safe_changedir): Don't call fd_safer; no longer needed
66071         now that we include fcntl--.h.
66072
66073 2005-08-12  Simon Josefsson  <jas@extundo.com>
66074
66075         * modules/getndelim2: Use ssize_t module.
66076         * modules/getnline: Likewise.
66077         * modules/safe-read: Likewise.
66078         * modules/xreadlink: Likewise.
66079
66080         * modules/ssize_t: New file.
66081
66082 2005-08-12  Simon Josefsson  <jas@extundo.com>
66083
66084         * m4/readline.m4: Look for termcap, curses or ncurses if required.
66085
66086 2005-08-12  Simon Josefsson  <jas@extundo.com>
66087
66088         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66089         ssize_t.
66090
66091 2005-08-12  Simon Josefsson  <jas@extundo.com>
66092
66093         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
66094         readline, getdelim and check_version.
66095         (Support for systems lacking ISO C 99: Sizes of integer types):
66096         Add size_max.
66097
66098 2005-08-12  Bruno Haible  <bruno@clisp.org>
66099
66100         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
66101
66102 2005-08-11  Simon Josefsson  <jas@extundo.com>
66103
66104         * modules/readline: New file.
66105
66106         * modules/strnlen (Files): Add strnlen.h.
66107
66108 2005-08-11  Simon Josefsson  <jas@extundo.com>
66109
66110         * m4/readline.m4: New file.
66111
66112 2005-08-11  Simon Josefsson  <jas@extundo.com>
66113
66114         * lib/readline.h, readline.c: New file.
66115
66116 2005-08-11  Simon Josefsson  <jas@extundo.com>
66117
66118         * doc/gnulib.texi (Initial import, Finishing touches): Mention
66119         gl_AVOID.
66120
66121 2005-08-11  Bruno Haible  <bruno@clisp.org>
66122
66123         * lib/strnlen.h (strnlen): Change parameter name to match comment.
66124
66125 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
66126
66127         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
66128
66129 2005-08-10  Simon Josefsson  <jas@extundo.com>
66130
66131         * tests/test-iconvme.c: New file.
66132
66133 2005-08-10  Simon Josefsson  <jas@extundo.com>
66134
66135         * m4/strnlen.m4: New file.
66136
66137         * m4/strndup.m4: Don't check for strnlen declaration, done in
66138         strnlen.m4.
66139
66140 2005-08-10  Simon Josefsson  <jas@extundo.com>
66141
66142         * lib/strndup.c: Use strnlen.h.
66143
66144         * lib/strnlen.h: New file.
66145
66146 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66147
66148         * README: Typos.
66149
66150 2005-08-02  Simon Josefsson  <jas@extundo.com>
66151
66152         * modules/readline: New file.
66153
66154 2005-08-02  Simon Josefsson  <jas@extundo.com>
66155
66156         * modules/getdelim: New file.
66157
66158         * modules/getline: Rewrite, don't use getndelim2.
66159
66160 2005-08-02  Simon Josefsson  <jas@extundo.com>
66161
66162         * m4/getline.m4: Separate out getdelim stuff into separate module.
66163
66164         * m4/getdelim.m4: New file.
66165
66166 2005-08-02  Simon Josefsson  <jas@extundo.com>
66167
66168         * lib/getline.h, getline.c: Rewrite.
66169
66170         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
66171
66172 2005-07-31  Bruno Haible  <bruno@clisp.org>
66173
66174         * lib/lock.h (gl_lock_initializer): New macro.
66175         (gl_lock_define_initialized): Use it.
66176         (gl_rwlock_initializer): New macro.
66177         (gl_rwlock_define_initialized): Use it.
66178         (gl_recursive_lock_initializer): New macro.
66179         (gl_recursive_lock_define_initialized): Use it.
66180
66181 2005-07-30  Karl Berry  <karl@gnu.org>
66182
66183         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
66184         Report from Ben Pfaff, regarding getopt.
66185
66186 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
66187
66188         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
66189         normal way.
66190         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
66191         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
66192         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
66193         (gl_GETOPT): Use the new macros.  Most of the implementation
66194         is moved to the new macros.  This is for programs like Emacs
66195         that don't want all the functionality of gl_GETOPT.
66196
66197 2005-07-26  Bruno Haible  <bruno@clisp.org>
66198
66199         * m4/lock.m4: Update from GNU gettext.
66200
66201 2005-07-26  Bruno Haible  <bruno@clisp.org>
66202
66203         * lib/lock.h: Update from GNU gettext.
66204         * lib/lock.c: Update from GNU gettext.
66205
66206 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
66207
66208         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
66209         obsolescent AC_TRY_RUN.  Include the default includes files, for
66210         'exit'.
66211
66212 2005-07-24  Bruno Haible  <bruno@clisp.org>
66213
66214         * modules/visibility: New file.
66215         * MODULES.html.sh (Misc): Add visibility.
66216
66217 2005-07-24  Bruno Haible  <bruno@clisp.org>
66218
66219         * m4/visibility.m4: New file.
66220
66221 2005-07-24  Bruno Haible  <bruno@clisp.org>
66222
66223         * doc/visibility.texi: New file.
66224
66225 2005-07-22  Bruno Haible  <bruno@clisp.org>
66226
66227         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
66228         $(ALLOCA_H), redundant through BUILT_SOURCES.
66229         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
66230         redundant through BUILT_SOURCES.
66231         * modules/byteswap (Makefile.am): Remove explicit dependency on
66232         $(BYTESWAP_H), redundant through BUILT_SOURCES.
66233         * modules/fnmatch (Makefile.am): Remove explicit dependency on
66234         $(FNMATCH_H), redundant through BUILT_SOURCES.
66235         * modules/getopt (Makefile.am): Remove explicit dependency on
66236         $(GETOPT_H), redundant through BUILT_SOURCES.
66237         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
66238         redundant through BUILT_SOURCES.
66239         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
66240         redundant through BUILT_SOURCES.
66241         * modules/stdbool (Makefile.am): Remove explicit dependency on
66242         $(STDBOOL_H), redundant through BUILT_SOURCES.
66243         * modules/stdint (Makefile.am): Remove explicit dependency on
66244         $(STDINT_H), redundant through BUILT_SOURCES.
66245         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
66246         Remove explicit dependency on $(SYSEXITS_H).
66247         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
66248
66249 2005-07-18  Simon Josefsson  <jas@extundo.com>
66250
66251         * lib/check-version.c (check_version): Accept identical versions too.
66252
66253 2005-07-18  Bruno Haible  <bruno@clisp.org>
66254
66255         * modules/lock: New file.
66256         * MODULES.html.sh (Multithreading): New section.
66257
66258 2005-07-18  Bruno Haible  <bruno@clisp.org>
66259
66260         * m4/lock.m4: New file, from GNU gettext.
66261
66262 2005-07-18  Bruno Haible  <bruno@clisp.org>
66263
66264         * lib/lock.h: New file, from GNU gettext.
66265         * lib/lock.c: New file, from GNU gettext.
66266
66267 2005-07-18  Bruno Haible  <bruno@clisp.org>
66268
66269         * lib/lock.h (gl_once_t): New type.
66270         (gl_once_define, gl_once): New macros.
66271         * lib/lock.c (fresh_once): New variable.
66272         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
66273         functions.
66274
66275 2005-07-16  Simon Josefsson  <jas@extundo.com>
66276
66277         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
66278         workaround, suggested by Bruno.
66279
66280 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66281
66282         * modules/xalloc (Depends-on): Add xalloc-die.
66283         * modules/xvasprintf (Depends-on): Add xalloc-die.
66284
66285 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66286
66287         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
66288         with a minor change.
66289
66290 2005-07-15  Bruno Haible  <bruno@clisp.org>
66291
66292         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
66293         When using lib/poll.c, define poll as rpl_poll.
66294
66295 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
66296
66297         * modules/argp (Depends-on): Remove unlocked-io.
66298
66299 2005-07-14  Derek Price  <derek@ximbiot.com>
66300
66301         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
66302         for glob symlink bug.
66303
66304 2005-07-14  Bruno Haible  <bruno@clisp.org>
66305
66306         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
66307         Instead, test for *_unlocked function declarations directly.
66308
66309 2005-07-11  Simon Josefsson  <jas@extundo.com>
66310
66311         * modules/size_max: New file.
66312
66313         * modules/xsize: Depend on size_max module for size_max.m4.
66314
66315 2005-07-11  Simon Josefsson  <jas@extundo.com>
66316
66317         * lib/size_max.h: New file.
66318
66319 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
66320
66321         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
66322         copyright symbol and the year.
66323         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
66324         (version_etc_va): Use parameterized copyright notice.
66325         Reword to conform to the current GNU coding standards.
66326
66327 2005-07-11  Karl Berry  <karl@gnu.org>
66328
66329         * doc/gnulib.texi (Quoting): new node.
66330         (Initial import): more info, from Patrice.
66331
66332 2005-07-11  Bruno Haible  <bruno@clisp.org>
66333
66334         * gnulib-tool (func_usage): Document option --avoid.
66335         (Command line options): Handle --avoid.
66336         (func_acceptable): New function.
66337         (func_modules_transitive_closure): Use it.
66338
66339 2005-07-11  Bruno Haible  <bruno@clisp.org>
66340
66341         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
66342         Reported by Jim Meyering.
66343
66344 2005-07-10  Bruno Haible  <bruno@clisp.org>
66345
66346         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
66347         Needed when size_t is smaller than 'unsigned int'.
66348         Reported by Paul Eggert.
66349
66350 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66351
66352         * modules/argp (Depends-on): Add unlocked-io
66353
66354 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66355
66356         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
66357         block of defines.
66358
66359 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66360
66361         * config/srclist.txt: Comment out regcomp.c, since we have a porting
66362         fix now.
66363
66364 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
66365         and Paul Eggert  <eggert@cs.ucla.edu>
66366
66367         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
66368         in wint_t, not wchar_t.  Remove now-unnecessary cast.
66369
66370 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66371
66372         * modules/regex (Files): Add lib/regex_internal.c,
66373         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
66374         (Depends-on): Add extensions.
66375         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
66376
66377 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66378
66379         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
66380         pathconf.
66381         * m4/same.m4 (gl_SAME): Likewise.
66382         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
66383
66384         * m4/regex.m4: Adjust to new libc regex implementation.
66385         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
66386         all the .c and .h parts of (the new) regex.
66387         Quote the m4 stuff better.
66388         Check for RE_ICASE bug of old gnulib.
66389         Check for REG_STARTEND of recent libc.
66390         Rename local variables from jm_* to gl_*.
66391         Quote operand of "test -f".
66392         Say "recent enough" version of libc, not "version 2".
66393         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
66394         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
66395         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
66396         Remove check for btowc, isascii.
66397         Require AM_LANGINFO_CODESET.
66398
66399 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66400
66401         * lib/regex.c, regex.h: Sync from libc.
66402         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
66403         * lib/regexec.c:
66404         New files, synced from libc, except that regex_internal.h
66405         currently has a small porting fix.
66406
66407 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66408
66409         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
66410         regex_internal.c, regexec.c.
66411         Add regex_internal.h too, but as a comment, since the libc version
66412         is currently broken in gnulib mode.
66413
66414 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66415
66416         Support programs like Emacs that use gnulib but not gettext.
66417         * MODULES.html.sh (Internationalization functions): Add gettext-h.
66418         * modules/gettext-h: New file.
66419         * modules/gettext (Files): Remove lib/gettext.h.
66420         (Depends-on): Add gettext-h.
66421         (Makefile.am): Remove lib_SOURCES.
66422         * modules/argmatch, modules/c-stack, modules/closeout:
66423         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
66424         * modules/execute, modules/file-type, modules/getaddrinfo:
66425         * modules/getopt, modules/human, modules/javacomp:
66426         * modules/javaexec, modules/mkdir-p, modules/obstack:
66427         * modules/openat, modules/pagealign_alloc, modules/pipe:
66428         * modules/quotearg, modules/regex, modules/rpmatch:
66429         * modules/unicodeio, modules/userspec, modules/version-etc:
66430         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
66431         * modules/xsetenv:
66432         Depend on gettext-h, not gettext.
66433
66434 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66435
66436         * gnulib-tool (func_import): Add support for 'public domain' license.
66437         * modules/alloca, modules/atexit, modules/memmove:
66438         Now public domain, not GPL.
66439         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
66440         * modules/realloc, modules/strerror, modules/strtod:
66441         Now LGPL, not GPL.
66442
66443 2005-07-05  Bruno Haible  <bruno@clisp.org>
66444
66445         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
66446         autoconf CVS. Needed for mingw.
66447
66448 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66449
66450         Remove the dependency of the strftime module on the tzset module.
66451         * modules/strftime (Depends-on): Remove dependency on tzset.
66452
66453 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66454
66455         Remove the dependency of the strftime module on the tzset module.
66456         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
66457         gl_FUNC_TZSET_CLOBBER.
66458
66459 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66460
66461         Remove the dependency of the strftime module on the tzset module.
66462         * lib/strftime.c (my_strftime)
66463         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
66464         Copy the input structure, to work around some of the bug with
66465         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
66466         Solaris releases, you should also use the tzset module, but we won't
66467         require it as a dependency any more since we don't want LGPLed code
66468         to depend on GPLed code.
66469
66470 2005-07-02  Jim Meyering  <jim@meyering.net>
66471
66472         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
66473         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
66474         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
66475         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
66476
66477 2005-07-02  Jim Meyering  <jim@meyering.net>
66478
66479         * lib/backupfile.c (backup_args): Change a `0' to NULL.
66480
66481 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66482
66483         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
66484         declares only 'struct timespec;' (!).
66485
66486 2005-07-01  Jim Meyering  <jim@meyering.net>
66487
66488         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
66489         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
66490         * lib/save-cwd.c, tempname.c:
66491         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66492         and don't include <sys/file.h>).
66493
66494 2005-06-29  Jim Meyering  <jim@meyering.net>
66495
66496         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
66497         type name.  Use the variable name instead.
66498         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
66499         Likewise.
66500
66501 2005-06-28  Simon Josefsson  <jas@extundo.com>
66502
66503         * modules/check-version (Files): Add check-version.m4.
66504
66505 2005-06-28  Simon Josefsson  <jas@extundo.com>
66506
66507         * m4/check-version.m4: New file, suggested by Jim Meyering
66508         <jim@meyering.net>.
66509
66510 2005-06-28  Simon Josefsson  <jas@extundo.com>
66511
66512         * lib/check-version.h, lib/check-version.c: New files.
66513
66514 2005-06-28  Simon Josefsson  <jas@extundo.com>
66515
66516         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
66517         collision with global variable.  Better indentation.  Don't
66518         increment buffer pointer beyond buffer end.  Based on comments
66519         from Paul Eggert <eggert@cs.ucla.edu>.
66520
66521         * lib/base64.h: Indent.
66522
66523 2005-06-28  Simon Josefsson  <jas@extundo.com>
66524
66525         * doc/gnulib.texi (Library version handling): New section.
66526
66527 2005-06-28  Jim Meyering  <jim@meyering.net>
66528
66529         * check-module (find_included_lib_files): Hard-code another
66530         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
66531         but modules/fts-lgpl (correctly) does not list those files.
66532
66533         * modules/canonicalize (Files): Add lib/pathmax.h.
66534
66535 2005-06-25  Simon Josefsson  <jas@extundo.com>
66536
66537         * modules/check-version: New file.
66538
66539 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
66540
66541         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
66542         initializer of struct addrinfo, as an indication that we don't
66543         care how many members the structure has.
66544
66545 2005-06-24  Derek Price  <derek@ximbiot.com>
66546         and Bruno Haible  <bruno@clisp.org>
66547
66548         Remove stat module & update lstat.
66549         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
66550         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66551         * m4/stat.m4: Remove this file.
66552
66553 2005-06-24  Derek Price  <derek@ximbiot.com>
66554         and Bruno Haible  <bruno@clisp.org>
66555
66556         Remove stat module & update lstat.
66557         * lib/stat.c: Remove this file...
66558         (slash_aware_lstat): ...moving this content and its support...
66559         * lib/lstat.c (rpl_lstat): ...into here.
66560         * lib/lstat.h: New file.
66561
66562 2005-06-24  Derek Price  <derek@ximbiot.com>
66563         and Bruno Haible  <bruno@clisp.org>
66564
66565         Remove stat module & update lstat.
66566         * config/srclist.txt (libc sources): Remove stat.
66567
66568 2005-06-24  Derek Price  <derek@ximbiot.com>
66569         and Bruno Haible  <bruno@clisp.org>
66570
66571         Remove stat module & update lstat.
66572         * MODULES.html.sh (stat): Remove.
66573         * MODULES.html: Regenerated.
66574         * modules/lstat (Description): Correct function name.
66575         (Files): Add "lstat.h".
66576         (Depends-on): Remove stat, add xalloc, stat-macros.
66577         * modules/stat: Remove this file.
66578         (Include): Add "lstat.h", remove <sys/stat.h>.
66579
66580 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66581
66582         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
66583         (ranged_convert): Don't save conversion in a temporary struct.
66584         This causes a warning with GCC 4.0.0, and anyway in the typical
66585         case it's not worth the extra 100 bytes or so of code.
66586         (ranged_convert, __mktime_internal): When calling a function via a
66587         pointer P, use P () rather than (*P) (), as we now assume C89 or
66588         better.
66589
66590 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66591
66592         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
66593         "who -r" failed to give output.  Problem reported by Tim Waugh.
66594
66595         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
66596         (xcalloc): Use it to avoid needless tests.
66597         Problem reported by Jim Meyering.
66598
66599 2005-06-20  Derek Price  <derek@ximbiot.com>
66600
66601         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
66602         unnecessary for Autoconfs > 2.59c.
66603
66604 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66605
66606         * lib/argp.h (__option_is_short): Check upper limit of
66607         __key. Isprint() requires its argument to have the value
66608         of an unsigned char or EOF.
66609
66610 2005-06-16  Jim Meyering  <jim@meyering.net>
66611
66612         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
66613         when either N or S is zero.
66614
66615 2005-06-16  Derek Price  <derek@ximbiot.com>
66616
66617         * m4/bison.m4: Declare YACC & YFLAGS precious.
66618
66619 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
66620
66621         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
66622         multibyte string or pattern, fall back on unibyte matching.
66623         Problem reported by James Youngman.
66624
66625 2005-06-08  Bruno Haible  <bruno@clisp.org>
66626
66627         * modules/csharpcomp: New file.
66628         * MODULES.html.sh (C#): Add csharpcomp.
66629
66630 2005-06-08  Bruno Haible  <bruno@clisp.org>
66631
66632         * m4/csharpcomp.m4: New file, from GNU gettext.
66633
66634 2005-06-08  Bruno Haible  <bruno@clisp.org>
66635
66636         * lib/csharpcomp.h: New file, from GNU gettext.
66637         * lib/csharpcomp.c: New file, from GNU gettext.
66638         * lib/csharpcomp.sh.in: New file, from GNU gettext.
66639
66640 2005-06-08  Bruno Haible  <bruno@clisp.org>
66641
66642         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
66643         warning on mingw.
66644
66645 2005-06-07  Derek Price  <derek@ximbiot.com>
66646
66647         Sync from CVS.
66648         * lib/glob_.h: Indent nested #ifdef.
66649
66650 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66651
66652         Sync from coreutils.
66653         Use "file name" when talking about file names, instead of "filename"
66654         or "path", as per the GNU coding standards.
66655         * lib/mkdir-p.c: Renamed from makepath.c.
66656         (make_dir_parents): Renamed from make_path.  All callers changed.
66657         * lib/mkdir-p.h: Likewise.  All includers changed.
66658         * lib/filenamecat.c: Renamed from path-concat.c.
66659         (file_name_concat): Renamed from path_concat.  All callers changed.
66660         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
66661         * lib/filenamecat.h: Likewise.  All includers changed.
66662         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
66663         in comments or local variable names.
66664         * lib/basename.c: Likewise.
66665         * lib/canonicalize.c, canonicalize.h: Likewise.
66666         * lib/dirname.c, dirname.h: Likewise.
66667         * lib/euidaccess.c: Likewise.
66668         * lib/exclude.c: Likewise
66669         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
66670         * lib/fsusage.c, fsuage.h: Likewise.
66671         * lib/fts.c, fts_.h: Likewise.
66672         * lib/getcwd.c: Likewise.
66673         * lib/getloadavg.c: Likewise.
66674         * lib/mkstemp.c: Likewise.
66675         * lib/mountlist.c, mountlist.h: Likewise.
66676         * lib/openat.c, openat.h: Likewise.
66677         * lib/readlink-stub.c: Likewise.
66678         * lib/readutmp.c, readutmp.h: Likewise.
66679         * lib/rename.c: Likewise.
66680         * lib/rmdir.c: Likewise.
66681         * lib/same.c: Likewise.
66682         * lib/savedir.c: Likewise.
66683         * lib/stripslash.c: Likewise.
66684         * lib/tempname.c: Likewise.
66685         * lib/xreadlink.c: Likewise.
66686         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
66687         All uses changed.
66688         * lib/exclude.h: Likewise.
66689
66690         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
66691         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66692         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
66693         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66694         * lib/pathmax.h: Include <limits.h> unconditionally, since other
66695         files have been getting away with it for years (MORE/BSD 4.3
66696         is extinct now).
66697         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
66698         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66699
66700         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
66701         Define to 256, not 255, as per modern POSIX.
66702
66703 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66704
66705         Sync from coreutils.
66706         Use "file name" when talking about file names, instead of "filename"
66707         or "path", as per the GNU coding standards.
66708         * MODULES.html.sh: mkdir-p renamed from makepath.
66709         filenamecat renamed from path-concat.
66710         * modules/filenamecat: Renamed from modules/path-concat.
66711         (Files): filenamecat.h and filenamecat.c renamed from
66712         path-concat.h and path-concat.c.
66713         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
66714         (Include): filenamecat.h, not path-concat.h.
66715         * modules/mkdir-p: Renamed from modules/makepath.
66716         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
66717         makepath.c.
66718         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
66719         (Include): mkdir-p.h, not makepath.h.
66720
66721 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66722
66723         Sync from coreutils.
66724         * m4/mkdir-p.m4: Renamed from makepath.m4.
66725         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
66726         Rename files from makepath.c to mkdir-p.c, and from
66727         makepath.h to mkdir-p.h.
66728         * m4/filenamecat.m4: Renamed from path-concat.m4.
66729         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
66730         Rename files from path-concat.c to filenamecat.c,
66731         and from path-concat.h to filenamecat.h.
66732         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
66733         "file name" in local variables or comments.
66734         * m4/rename.m4: Likewise.
66735
66736 2005-06-01  Bruno Haible  <bruno@clisp.org>
66737
66738         * modules/csharpexec: New file.
66739         * MODULES.html.sh (C#): New section.
66740
66741 2005-06-01  Bruno Haible  <bruno@clisp.org>
66742
66743         * m4/csharp.m4: New file, from GNU gettext.
66744         * m4/csharpexec.m4: New file, from GNU gettext.
66745
66746 2005-06-01  Bruno Haible  <bruno@clisp.org>
66747
66748         * lib/csharpexec.h: New file, from GNU gettext.
66749         * lib/csharpexec.c: New file, from GNU gettext.
66750         * lib/csharpexec.sh.in: New file, from GNU gettext.
66751
66752 2005-05-31  Derek Price  <derek@ximbiot.com>
66753             Paul Eggert  <eggert@cs.ucla.edu>
66754
66755         Sync from cvs.
66756         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66757
66758 2005-05-31  Derek Price  <derek@ximbiot.com>
66759             Paul Eggert  <eggert@cs.ucla.edu>
66760
66761         Sync from cvs.
66762         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66763
66764 2005-05-29  Derek Price  <derek@ximbiot.com>
66765
66766         * config/srclist.txt (glob_.h, glob.c): Add these files.
66767
66768 2005-05-29  Derek Price  <derek@ximbiot.com>
66769
66770         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
66771         * modules/glob: New file.
66772         * modules/getlogin_r: Add link to POSIX spec in description.
66773
66774 2005-05-29  Derek Price  <derek@ximbiot.com>
66775             Paul Eggert  <eggert@cs.ucla.edu>
66776
66777         * m4/glob.m4: New file.
66778
66779 2005-05-29  Derek Price  <derek@ximbiot.com>
66780             Paul Eggert  <eggert@cs.ucla.edu>
66781
66782         * lib/glob_.h, lib/glob.c: New files.
66783
66784 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66785
66786         * modules/fts (Files): Remove m4/inttypes-pri.m4.
66787         * modules/fts-lgpl (Depends-on): Remove gettext.
66788
66789 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66790
66791         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
66792         and don't require gt_INTTYPES_PRI.
66793
66794 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66795
66796         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
66797
66798         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
66799         the configuration hassle isn't worth it.
66800         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
66801         (LONGEST_MODIFIER, PRIuMAX): Remove.
66802
66803 2005-05-27  Bruno Haible  <bruno@clisp.org>
66804
66805         * lib/getlogin_r.h: Remove second include of <stddef.h>.
66806
66807 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
66808
66809         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
66810         _POSIX_PTHREAD_SEMANTICS for Solaris.
66811
66812 2005-05-25  Derek Price  <derek@ximbiot.com>
66813
66814         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
66815
66816 2005-05-25  Derek Price  <derek@ximbiot.com>
66817             Paul Eggert  <eggert@cs.ucla.edu>
66818
66819         * modules/getlogin_r, m4/getlogin_r.m4: New files.
66820         * lib/getlogin_r.c, getlogin_r.h: New files.
66821
66822 2005-05-25  Bruno Haible  <bruno@clisp.org>
66823             Derek Price  <derek@ximbiot.com>
66824
66825         * lib/getlogin_r.h: Simplify API documentation.
66826
66827 2005-05-23  Derek Price  <derek@ximbiot.com>
66828
66829         * modules/minmax (Files): Add m4/minmax.m4.
66830         (configure.ac): Add gl_MINMAX.
66831
66832 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66833
66834         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
66835         so that unistd-safer.h (GPL'ed code) need not be included.
66836
66837 2005-05-22  Bruno Haible  <bruno@clisp.org>
66838
66839         * m4/minmax.m4: New file.
66840         Based on a patch by Derek Price <derek@ximbiot.com>.
66841
66842 2005-05-22  Bruno Haible  <bruno@clisp.org>
66843
66844         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
66845         (INT64_MIN): Fix definition.
66846         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
66847
66848         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
66849         NEED_SIGNED_INT_TYPES.
66850
66851         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
66852         HAVE_SYSTEM_INTTYPES.
66853
66854 2005-05-22  Bruno Haible  <bruno@clisp.org>
66855
66856         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
66857         Also include <sys/param.h> if it defines MIN, MAX.
66858         Based on a patch by Derek Price <derek@ximbiot.com>.
66859
66860 2005-05-21  Jim Meyering  <jim@meyering.net>
66861
66862         * modules/fts (Files): Add m4/inttypes-pri.m4.
66863         (Depends-on): Add lstat and remove gettext.  Alphabetize.
66864
66865 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66866
66867         New fts module.
66868         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
66869         (setup_dir, free_dir): New functions.
66870         (enter_dir, leave_dir): Define trivial
66871         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
66872         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
66873         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
66874         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
66875         Move to fts-cycle.c.
66876         (fts_open): Use setup_dir.
66877         (fts_close): Use free_dir.
66878         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
66879         This adds a label and some gotos, but the alternatives were messier.
66880         Check for memory allocation failure when entering a dir.
66881         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
66882         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
66883         (FTS): New member fts_cycle, that is a union that contains the
66884         old active_dir_ht and cycle_state.  All uses changed to mention
66885         fts_cycle.ht and fts_cycle.state.
66886         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
66887         fts.c, with the following changes:
66888         (setup_dir, free_dir): New functions.
66889         (enter_dir): Now returns bool.  Return true if successful, false
66890         if memory exhausted.  All callers changed.
66891         Do not bother partly cleaning up on
66892         memory allocation failure; that is free_dir's job.
66893         However, free ad if hash_insert fails, to avoid memory leak.
66894         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
66895         fts->fts_options to see which union member to use.
66896
66897 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66898
66899         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
66900         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
66901
66902 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66903
66904         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
66905
66906 2005-05-20  Jim Meyering  <jim@meyering.net>
66907
66908         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
66909         Now a macro, to pacify GCC.
66910
66911 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66912
66913         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
66914         of -1.
66915
66916 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66917
66918         * lib/chown.c (rpl_chown): Return -1 on failure.
66919
66920 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66921
66922         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
66923         Don't check for stddef.h.
66924         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
66925         don't use its results.
66926         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
66927         since we include them unconditionally.  Don't require
66928         AM_STDBOOL_H, since stdbool is a prerequisite.
66929         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
66930         since we assume C89 or better.
66931         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
66932         as we don't use their results.
66933         Don't check for fchdir, memmove, memset, strrchr, as we use
66934         them unconditionally.
66935         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
66936         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
66937
66938 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66939
66940         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
66941         Include <stddef.h> unconditionally, since we assume C89 now.
66942         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
66943         * lib/fts.c: Include fts_.h first, to check interface.
66944         Do not include intprops.h; no longer needed.
66945         Include cycle-check.h and hash.h, since fts_.h no longer does.
66946         Remove unnecessary casts of closedir to void.
66947         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
66948         decide whether to decrement nlinks.
66949         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
66950         (FTS): Use struct hash_table * instead of Hash_table, so that
66951         we no longer need to include hash.h here.
66952
66953 2005-05-18  Jim Meyering  <jim@meyering.net>
66954
66955         * modules/dirfd (License): Change to LGPL.  Most of the code
66956         is already in the public domain.
66957
66958 2005-05-18  Jim Meyering  <jim@meyering.net>
66959
66960         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
66961         Reported by Yoann Vandoorselaere.
66962
66963 2005-05-17  Jim Meyering  <jim@meyering.net>
66964
66965         * m4/fts.m4: New file, from coreutils.
66966
66967 2005-05-17  Jim Meyering  <jim@meyering.net>
66968
66969         * lib/fts.c, lib/fts_.h: New files, from coreutils.
66970
66971 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66972
66973         Sync from coreutils.
66974         * m4/unlinkdir.m4: New file.
66975
66976 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66977
66978         Sync from coreutils.
66979         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
66980         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
66981         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
66982         White space changes only.
66983         * lib/makepath.c (make_path): Port to hosts where leading "//" is
66984         special.
66985         * lib/yesno.c: Include getline.h, not ctype.h.
66986         (yesno): Don't remove leading white space; POSIX doesn't allow it.
66987         Use getline to remove arbitrary restriction on response length.
66988
66989 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66990
66991         * config/srclist-update: Spell out "Street" in FSF postal
66992         mail address; this is the style the FSF seems to prefer.
66993
66994         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
66995         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
66996         this updates FSF postal mail address.
66997
66998         Sync from coreutils.
66999         * modules/unlinkdir: New file.
67000         * modules/yesno (Depends-on): Add getline.
67001         * MODULES.html.sh (File system functions): Add unlinkdir.
67002
67003 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67004
67005         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
67006         lib/strsep.h:
67007         Change the initial comment to refer to GPL, not LGPL.
67008         gnulib-tool will change it to LGPL as needed.
67009
67010         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
67011         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
67012         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
67013         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
67014         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
67015         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
67016         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
67017         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
67018         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
67019         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
67020         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
67021         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
67022         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
67023         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
67024         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
67025         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
67026         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
67027         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
67028         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
67029         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
67030         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
67031         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
67032         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
67033         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
67034         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
67035         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
67036         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
67037         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
67038         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
67039         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
67040         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
67041         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
67042         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
67043         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
67044         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
67045         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
67046         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
67047         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
67048         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
67049         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
67050         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
67051         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
67052         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
67053         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
67054         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
67055         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
67056         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
67057         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
67058         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
67059         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
67060         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67061         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
67062         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
67063         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
67064         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
67065         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
67066         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
67067         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
67068         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
67069         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
67070         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
67071         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
67072         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
67073         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
67074         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
67075         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
67076         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
67077         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
67078         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
67079         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
67080         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
67081         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
67082         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
67083         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
67084         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
67085         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
67086         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
67087         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
67088         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
67089         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
67090         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
67091         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
67092         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
67093         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
67094         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
67095         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
67096         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
67097         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
67098         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
67099         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
67100         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
67101         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
67102         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
67103         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
67104         lib/yesno.c, lib/yesno.h:
67105         Update FSF postal mail address.
67106
67107 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67108
67109         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
67110         tests/test-memmem.c, tests/test-stpncpy.c:
67111         Update FSF postal mail address.
67112
67113 2005-05-13  Bruno Haible  <bruno@clisp.org>
67114
67115         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
67116         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
67117         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
67118         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
67119         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
67120         Add support for 64-bit integers in the MSVC compiler.
67121
67122 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67123
67124         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
67125
67126 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
67127
67128         * gnulib-tool (func_import): Sort and uniquify recommended includes.
67129
67130 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
67131
67132         * doc/getdate.texi (General date syntax): Don't say that date
67133         date --iso-8601=ns generates acceptable dates; it doesn't yet.
67134         Problem reported by Nic Ferrier.
67135
67136 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67137
67138         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
67139         specified in ai_socktype. Fix invalid ai_protocol
67140         check. ai_protocol is usually set to 0 or depending on
67141         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
67142         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
67143         ai_socktype / ai_protocol in the returned addrinfo structure.
67144
67145 2005-05-10  Simon Josefsson  <jas@extundo.com>
67146
67147         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
67148         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67149
67150 2005-05-10  Karl Berry  <karl@gnu.org>
67151
67152         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
67153         (from http://www.gnu.org/licenses).
67154         * doc/COPYING.LIB: also rename to COPYING.LESSER.
67155         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
67156         fdl.texi suffices.
67157
67158 2005-05-10  Karl Berry  <karl@gnu.org>
67159
67160         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
67161         (COPYING.DOC): remove.
67162
67163         * config/srclist-update: new FSF address.
67164
67165 2005-05-10  Derek Price  <derek@ximbiot.com>
67166
67167         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
67168         possible.
67169
67170 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67171             Bruno Haible  <bruno@clisp.org>
67172
67173         * modules/inet_ntop: New file.
67174         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67175         inet_ntop.
67176
67177 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67178             Bruno Haible  <bruno@clisp.org>
67179
67180         * m4/inet_ntop.m4: New file.
67181
67182 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67183             Bruno Haible  <bruno@clisp.org>
67184
67185         * lib/inet_ntop.h: New file.
67186         * lib/inet_ntop.c: New file, from glibc with modifications.
67187
67188 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
67189
67190         * modules/time_r (License): Change to LGPL.
67191         * modules/extensions (License): Change to LGPL.  Actually,
67192         the license is more permissive than that, but currently gnulib-tool
67193         doesn't know how to handle more-permissive licenses.
67194
67195         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
67196         Problem reported by Dave Love.
67197
67198 2005-05-08  Jim Meyering  <jim@meyering.net>
67199
67200         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
67201         blank.
67202
67203 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67204
67205         * modules/argmatch (Depends-on): Add stdbool.
67206         * modules/backupfile (Depends-on): Likewise.
67207         * modules/chdir-long (Depends-on): Likewise.
67208         * modules/closeout (Depends-on): Likewise.
67209         * modules/cycle-check (Depends-on): Likewise.
67210         * modules/dirname (Depends-on): Likewise.
67211         * modules/fnmatch (Depends-on): Likewise.
67212         * modules/fsusage (Depends-on): Likewise.
67213         * modules/fwriteerror (Depends-on): Likewise.
67214         * modules/getcwd (Depends-on): Likewise.
67215         * modules/getloadavg (Depends-on): Likewise.
67216         * modules/hard-locale (Depends-on): Likewise.
67217         * modules/makepath (Depends-on): Likewise.
67218         * modules/mountlist (Depends-on): Likewise.
67219         * modules/nanosleep (Depends-on): Likewise.
67220         * modules/posixtm (Depends-on): Likewise.
67221         * modules/quotearg (Depends-on): Likewise.
67222         * modules/readtokens (Depends-on): Likewise.
67223         * modules/readtokens0 (Depends-on): Likewise.
67224         * modules/readutmp (Depends-on): Likewise.
67225         * modules/save-cwd (Depends-on): Likewise.
67226         * modules/strftime (Depends-on): Likewise.
67227         * modules/userspec (Depends-on): Likewise.
67228         * modules/utimecmp (Depends-on): Likewise.
67229         * modules/xgetcwd (Depends-on): Likewise.
67230         * modules/xnanosleep (Depends-on): Likewise.
67231         * modules/xstrtod (Depends-on): Likewise.
67232         * modules/yesno (Depends-on): Likewise.
67233
67234 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67235
67236         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
67237         needless checks.
67238
67239 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67240
67241         Merge from coreutils.  Among other things,
67242         add bulletproofing for cases where stdin, stdout, or stderr are closed.
67243         * lib/fd-safer.c: New file.
67244         * lib/fcntl-safer.h, open-safer.c: Remove.
67245         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
67246         * lib/dup-safer.c: Include unistd-safer.h first.
67247         Don't include errno.h.
67248         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
67249         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
67250         * lib/file-type.c: Rely on file-type.h change.
67251         * lib/getloadavg.c: Include unistd-safer.h.
67252         (getloadavg): Use safer open.
67253         * lib/getusershell.c: Include "stdio-safer.h".
67254         (getusershell): Use safer fopen.
67255         * lib/long-options.c (long_options): Use NULL rather than 0.
67256         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
67257         'free'.
67258         * lib/modechange.c: Likewise.
67259         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
67260         (MODE_DONE): New constant.
67261         (struct mode_change): Remove 'next' member.
67262         (make_node_op_equals): New function; like the old one of the
67263         same name, except it allocates an array.
67264         (mode_compile, mode_create_from_ref): Use it.
67265         (mode_compile): Allocate result as an array, not a linked list.
67266         Parse octal string ourself, so that we catch mistakes like "+0".
67267         (mode_adjust): Arg is an array, not a linked list.
67268         * lib/modechange.c: Include stat-macros.h, xalloc.h.
67269         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
67270         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
67271         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
67272         Remove.  This is now stat-macros.h's job.
67273         (talloc): Remove.  All callers replaced by xalloc, so that
67274         our invokers don't have to worry about reporting memory failures.
67275         (make_node_op_equals): Remove.
67276         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67277         New constants.
67278         (struct mode_change): Moved here from modechange.h.
67279         (mode_append_entry): Remove.
67280         (mode_compile): Remove MASKED_OPS arg, since it encouraged
67281         apps to have incorrect behavior.  Use simpler algorithm for head
67282         and tail.  Don't futz with umask; that's now the job of mode_adjust.
67283         Detect more invalid usages rather than having somewhat-random behavior.
67284         Don't insert an "a=" action, as that leads to incorrect behavior.
67285         (mode_compile, mode_create_from_ref): Return NULL on error instead
67286         of an enum, since now there's only one way to have an error.  All
67287         callers changed.
67288         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
67289         at the correct time.  Simplify calculation of "+u" and its ilk.
67290         Don't mishandle "+X".
67291         (mode_free): Remove "register" and localize decls.
67292         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67293         (struct mode_change): Move to modechange.c; callers don't
67294         need to see this stuff.
67295         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
67296         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
67297         (mode_change, mode_adjust): Reflect the new signatures noted above.
67298         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
67299         that might redefine system include files.
67300         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
67301         (my_usleep): Use NULL rather than (void *) 0.
67302         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
67303         Use siginterrupt to specify that system calls should be interrupted.
67304         (rpl_nanosleep): Move initialization of suspended closer to call of
67305         my_usleep.
67306         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
67307         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
67308         (desirable_utmp_entry): New function.
67309         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
67310         using x2nrealloc, to simplify logic.
67311         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
67312         size calculation.  Do not assume utmp file is a regular file.
67313         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
67314         (READ_UTMP_CHECK_PIDS): New constant.
67315         * lib/save-cwd.c: Include unistd-safer.h.
67316         (save_cwd): Use fd_safer.
67317         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
67318         [!_LIBC] Include "stat-macros.h" instead.
67319         * lib/unistd-safer.h (fd_safer): New decl.
67320
67321 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67322
67323         * modules/getloadavg (Depends-on): Add unistd-safer.
67324         * modules/getusershell (Depends-on): Add stdio-safer.
67325         * modules/lstat (Depends-on): Remove xalloc.
67326         * modules/mkstemp (Depends-on): Add stat-macros.
67327         * modules/modechange (Depends-on): Remove xstrtol.
67328         Add stat-macros, xalloc.
67329         * modules/save-cwd (Depends-on): Add unistd-safer.
67330         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
67331         * modules/unistd-safer (Files): Add lib/fd-safer.c
67332         (Makefile.am): Remove lib_SOURCES.
67333
67334         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
67335         Remove fcntl-safer; unistd-safer supersedes it.
67336
67337 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67338
67339         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
67340         AC_HEADER_STAT.
67341         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
67342         (gl_PREREQ_CHOWN): Remove.
67343         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
67344         it.  Don't require AC_HEADER_STAT.
67345         (gl_PREREQ_LSTAT): Remove.
67346         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
67347         Don't require AC_HEADER_STAT.
67348         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
67349         (gl_PREREQ_RMDIR): Remove.
67350         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
67351         mention stat-macros.h or AC_HEADER_STAT, since we'll make
67352         the stat-macros module a prerequisite.
67353         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
67354         * m4/filemode.m4 (gl_FILEMODE): Likewise.
67355         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
67356         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
67357         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
67358         variable names.
67359         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
67360         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
67361         variable prefixes.
67362         * m4/fcntl-safer.m4: Remove.
67363         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
67364         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
67365         Invoke gl_PREREQ_FD_SAFER.
67366         (gl_PREREQ_FD_SAFER): New macro.
67367         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
67368         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
67369         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
67370         Remove duplicate call to AC_LIBOBJ(readutmp).
67371         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
67372
67373         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
67374         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
67375
67376 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67377
67378         * MODULES.html.sh (Misc): Add byteswap.
67379
67380 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67381
67382         * modules/getcwd (Depends-on): Add extensions.
67383         * modules/openat (Depends-on): Likewise.
67384
67385 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67386
67387         * modules/byteswap: New file.
67388
67389 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67390
67391         * m4/byteswap.m4: New file.
67392
67393 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67394
67395         * lib/byteswap_.h: New file.
67396
67397 2005-04-25  Karl Berry  <karl@gnu.org>
67398
67399         * m4/gettext.m4: Update from GNU gettext 0.14.4.
67400
67401 2005-04-25  Albert Chin  <china@thewrittenword.com>
67402
67403         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
67404         Toolkit C bug.
67405
67406 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
67407
67408         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
67409         (func_ln_if_changed): Remove forcibly for no error message
67410         in case file does not exist.
67411
67412 2005-04-19  Simon Josefsson  <jas@extundo.com>
67413
67414         * gnulib-tool (Options): Make --symlink mean --symbolic.
67415
67416 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
67417
67418         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
67419
67420 2005-04-16  Simon Josefsson  <jas@extundo.com>
67421
67422         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
67423
67424 2005-04-15  Simon Josefsson  <jas@extundo.com>
67425
67426         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
67427
67428 2005-04-15  Simon Josefsson  <jas@extundo.com>
67429
67430         * gnulib-tool: Rename --symlink to --symbolic.
67431
67432 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
67433
67434         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
67435         symbolic links to files instead of copying/moving.  Add --aux-dir,
67436         specifying directory relative --dir where auxiliary build tools
67437         are placed.
67438
67439 2005-04-14  Bruno Haible  <bruno@clisp.org>
67440
67441         * modules/allocsa (License): Change to LGPL.
67442         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67443
67444 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67445
67446         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
67447         that "UTC +1 second" continues to work.  Problem reported
67448         by Dmitry V. Levin.
67449         (relunit_snumber): New rule.
67450         (relunit): Use it.
67451
67452 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67453
67454         * lib/getdate.y (universal_time_zone_table): New constant.
67455         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
67456         universal_time_zone_table.
67457         (lookup_zone): Prefer universal_time_zone_table to
67458         local_time_zone_table, so that "GMT" time stamps are allowed in
67459         London during the summer.  Problem reported by Ian Abbott.
67460
67461 2005-04-12  Jim Meyering  <jim@meyering.net>
67462
67463         * lib/human.c (humblock): Set *options even when returning due to
67464         xstrtoumax conversion failure.  Thanks to a used-uninitialized
67465         warning from gcc-4.
67466
67467 2005-04-09  Jim Meyering  <jim@meyering.net>
67468
67469         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
67470         -Wuninitialized: initialize tm0.tm_year.
67471
67472 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67473
67474         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
67475         count, since there's no maximum.  All uses changed.
67476         Add member dsts_seen.
67477         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
67478         not being INT_MAX.
67479         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
67480         Use pc_rels_seen to decide whther a date is absolute.
67481
67482         * lib/getdate.y (number): Don't overwrite year.
67483         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
67484         check.
67485
67486 2005-04-02  Simon Josefsson  <jas@extundo.com>
67487
67488         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
67489         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
67490
67491 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
67492
67493         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
67494         where no absolute path name can be longer than PATH_MAX.
67495
67496 2005-03-27  Jim Meyering  <jim@meyering.net>
67497
67498         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
67499
67500 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
67501
67502         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
67503         "one's complement" -> "ones' complement" in comment, as per Knuth.
67504         "value of type" -> "type or expression" in comment.
67505         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
67506
67507 2005-03-26  Jim Meyering  <jim@meyering.net>
67508
67509         Comment nits.
67510         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
67511         Correct typos: s/or/of/.
67512
67513 2005-03-26  Jim Meyering  <jim@meyering.net>
67514
67515         * modules/check-include-files: Move to ../ and rename to...
67516         * check-module: ...this.
67517
67518 2005-03-25  Jim Meyering  <jim@meyering.net>
67519
67520         * modules/xvasprintf (Files): Add xalloc.h.
67521
67522 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67523
67524         * modules/gettext (Files): config/config.rpath ->
67525         build-aux/config.rpath
67526         * modules/iconv (Files): Likewise.
67527         Problem reported by Oskar Liljeblad.
67528
67529 2005-03-23  Jim Meyering  <jim@meyering.net>
67530
67531         * modules/check-include-files: New script to check for
67532         missing dependencies, multiple includes, etc.
67533
67534         * modules/c-strtold (Depends-on): Add xalloc.
67535         * modules/c-strtod (Depends-on): Add xalloc.
67536         * modules/hash (Depends-on): Add xalloc.
67537         (Files): Remove lib/xalloc.h.
67538
67539         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
67540         * modules/userspec (Files): Add lib/inttostr.h.
67541
67542 2005-03-23  Jim Meyering  <jim@meyering.net>
67543
67544         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
67545
67546 2005-03-22  Jim Meyering  <jim@meyering.net>
67547
67548         * modules/stat-macros: New module.
67549         * modules/canonicalize, modules/euidaccess, modules/file-type,
67550         * modules/filemode, modules/lchown, modules/makepath,
67551         * modules/rmdir, modules/stat: Depend on new stat-macros module
67552         rather than listing lib/stat-macros.h manually.
67553         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
67554
67555 2005-03-22  Jim Meyering  <jim@meyering.net>
67556
67557         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
67558
67559 2005-03-22  Bruno Haible  <bruno@clisp.org>
67560
67561         * config/srclist.txt: Replace target directory 'config' with
67562         'build-aux'.
67563         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
67564         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
67565         ../build-aux/.
67566
67567 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
67568
67569         * modules/chdir-long (Depends-on): Add mempcpy.
67570
67571         * modules/acl, modules/backupfile, modules/c-strtod,
67572         modules/c-strtold, modules/canon-host, modules/canonicalize,
67573         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
67574         modules/exclude, modules/exitfail, modules/file-type,
67575         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
67576         modules/getdate, modules/getline, modules/getpagesize,
67577         modules/getpass, modules/getugroups, modules/group-member,
67578         modules/hard-locale, modules/hash, modules/human, modules/idcache,
67579         modules/inttostr, modules/long-options, modules/makepath,
67580         modules/md5, modules/memcasecmp, modules/memcoll,
67581         modules/modechange, modules/mountlist, modules/path-concat,
67582         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
67583         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
67584         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
67585         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
67586         modules/strftime, modules/strndup, modules/strverscmp,
67587         modules/timespec, modules/unlocked-io, modules/userspec,
67588         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
67589         modules/yesno:
67590         Remove lib_SOURCES line from Makefile.am section, as this is now
67591         done automatically by the corresponding Autoconf macro.
67592
67593 2005-03-21  Jim Meyering  <jim@meyering.net>
67594
67595         Changes imported from coreutils.
67596
67597         * lib/cycle-check.c: Don't include xalloc.h.
67598
67599         * lib/path-concat.c: Don't include assert.h.
67600         (path_concat): Remove assertion that would have triggered
67601         for ABASE starting with more than one slash.
67602         Reported by Andreas Schwab.
67603
67604         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
67605         properly when ABASE is an absolute file name.
67606         Correct the description of this function.
67607         Include <assert.h>.
67608         Add an assertion and a test driver.
67609         This fixes a bug introduced on 2004-07-02.
67610         Andreas Schwab reported the resulting failure of cp --parents:
67611         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
67612
67613 2005-03-21  Jim Meyering  <jim@meyering.net>
67614
67615         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
67616         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
67617
67618 2005-03-21  Jim Meyering  <jim@meyering.net>
67619         and  Paul Eggert  <eggert@cs.ucla.edu>
67620
67621         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
67622         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
67623         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
67624         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
67625         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
67626         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
67627         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
67628         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
67629         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
67630         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
67631         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
67632         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
67633         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
67634         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
67635         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
67636         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
67637         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
67638         for these modules.
67639
67640 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
67641
67642         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
67643         (which shouldn't happen), generate nothing instead of returning 0
67644         immediately, so that nstrftime (NULL, ...) doesn't return 0.
67645
67646 2005-03-16  Bruno Haible  <bruno@clisp.org>
67647
67648         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
67649         HAVE_LONGLONG_64BIT.
67650
67651 2005-03-16  Bruno Haible  <bruno@clisp.org>
67652
67653         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
67654         HAVE_LONGLONG_64BIT.
67655
67656 2005-03-16  Bruno Haible  <bruno@clisp.org>
67657
67658         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
67659         HAVE_LONGLONG_64BIT.
67660
67661 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67662
67663         * lib/strftime.c (my_strftime): Prepend space to format so that we can
67664         reliably distinguish strftime failure from empty output on POSIX
67665         hosts.
67666
67667 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67668
67669         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
67670         (iconv_string): Don't guess a size-zero buffer, as that might cause
67671         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
67672         result would be 'too large', where 'too large' is (heuristically)
67673         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
67674         overflow concerns.  This will prevent some unwanted malloc failures
67675         when the inputs are very large.
67676
67677 2005-03-15  Karl Berry  <karl@gnu.org>
67678
67679         * config/srclist.txt (config.rpath): from gettext.
67680         * config/config.rpath: update.
67681
67682 2005-03-15  Bruno Haible  <bruno@clisp.org>
67683
67684         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
67685         to 'negate'.
67686
67687         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
67688         variable.
67689
67690         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
67691         results.
67692
67693 2005-03-14  Simon Josefsson  <jas@extundo.com>
67694
67695         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
67696         <fx@gnu.org>.
67697
67698 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
67699
67700         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
67701         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
67702         intprops.h.
67703         * lib/strtol.c: Likewise.
67704
67705 2005-03-14  Jim Meyering  <jim@meyering.net>
67706
67707         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
67708         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
67709         to be nonzero so that we (and caller) can detect the difference
67710         between a valid zero-length expansion and an error return, even
67711         when the underlying strftime fails before writing anything into
67712         that location.
67713
67714 2005-03-14  Bruno Haible  <bruno@clisp.org>
67715
67716         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
67717         Update from GNU gettext 0.14.3.
67718
67719 2005-03-10  Jim Meyering  <jim@meyering.net>
67720
67721         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
67722
67723 2005-03-10  Jim Meyering  <jim@meyering.net>
67724
67725         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
67726         so that this module works on systems without fchdir.
67727
67728 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67729
67730         Factor int-properties macros into a single file, except for
67731         glibc-related files.
67732         * lib/intprops.h: New file.
67733         * lib/getloadavg.c: Include it instead of limits.h.
67734         (INT_STRLEN_BOUND): Remove.
67735         * lib/human.c: Include intprops.h.
67736         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
67737         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
67738         302/1000.
67739         * lib/inttostr.h: Include intprops.h instead of limits.h.
67740         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
67741         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
67742         for consistency with intprops.h.
67743         (time_t_is_integer, twos_complement_arithmetic): Use them.
67744         * lib/sig2str.h: Include <signal.h>, intprops.h.
67745         (INT_STRLEN_BOUND): Remove.
67746         * lib/strftime.c (TYPE_SIGNED): Remove.
67747         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
67748         * lib/strtol.c: Adjust comments to match intprops.h.
67749         * lib/userspec.c: Include intprops.h.
67750         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
67751         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
67752         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
67753         instead of rolling our own expressions.
67754         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
67755
67756         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
67757         instead of int.
67758         (my_strftime): Do not mishandle years close to INT_MAX, by doing
67759         the right thing even if adding 1900 would overflow.  Similarly
67760         for tm_mon + 1 and tm_yday + 1.
67761         Make %Y always equivalent to %C%y, and similarly for %G and %g.
67762         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
67763         (DO_SIGNED_NUMBER): New macro.
67764         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
67765
67766 2005-03-07  Bruno Haible  <bruno@clisp.org>
67767
67768         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
67769
67770 2005-03-07  Bruno Haible  <bruno@clisp.org>
67771
67772         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
67773
67774 2005-03-04  Derek R. Price  <derek@ximbiot.com>
67775
67776         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
67777         (func_import): Only replace files via --import when they have actually
67778         changed.
67779
67780 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67781
67782         * m4/mmap-anon.m4: New file.
67783         * m4/pagealign_alloc.m4: New file.
67784
67785 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67786             Bruno Haible  <bruno@clisp.org>
67787
67788         * modules/pagealign_alloc: New file.
67789         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
67790
67791 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67792             Bruno Haible  <bruno@clisp.org>
67793
67794         * lib/pagealign_alloc.h: New file.
67795         * lib/pagealign_alloc.c: New file.
67796
67797 2005-03-03  Bruno Haible  <bruno@clisp.org>
67798
67799         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
67800         Use an all-permissive copyright notice, recommended by RMS.
67801
67802 2005-03-02  Bruno Haible  <bruno@clisp.org>
67803
67804         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
67805         of AIX, the replacement has to be done only after <string.h> is
67806         included, therefore not in config.h. stpncpy.h does the replacement,
67807         and stpncpy.c uses it.
67808
67809 2005-03-02  Bruno Haible  <bruno@clisp.org>
67810
67811         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
67812         stpncpy.c uses it.
67813
67814 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67815
67816         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
67817         The workaround isn't strictly needed for POSIX conformance, and
67818         it's too much of a pain to configure and maintain.  We'll ask
67819         people to fix their kernels instead.
67820         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
67821         (NANOSLEEP_BUG_WORKAROUND): Remove.
67822         (xnanosleep): Remove the workaround.
67823
67824 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67825
67826         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
67827         Reported by Derek Price.
67828         (Include): Add "timespec.h".
67829
67830         * modules/xnanosleep (Depends-on): Remove gethrxtime.
67831
67832 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67833
67834         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
67835         to detect nanosleep bug.
67836
67837 2005-03-01  Bruno Haible  <bruno@clisp.org>
67838
67839         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
67840
67841 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67842
67843         * modules/gethrxtime: New file.
67844         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
67845         (Depends-on): Add gethrxtime.
67846         (configure.ac): Add gl_XNANOSLEEP.
67847         (Makefile.am): Remove lib_SOURCES line.
67848
67849 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67850
67851         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
67852         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
67853
67854 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67855
67856         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
67857         * lib/timespec.h (gettime): Return void, since it always
67858         succeeds now.  All uses changed.
67859         * lib/gettime.c (gettime): Likewise.
67860         [HAVE_NANOTIME]: Prefer nanotime.
67861         Assume gettimeofday succeeds, as POSIX requires.
67862         Assime time () succeeds, since other code already does.
67863         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
67864         (timespec_subtract): Remove.
67865         (NANOSLEEP_BUG_WORKAROUND): New constant.
67866         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
67867         things considerably.  Use it only on GNU/Linux hosts, since the
67868         workaround shouldn't be needed elsewhere.
67869
67870 2005-02-24  Bruno Haible  <bruno@clisp.org>
67871
67872         * modules/gettext (Files): Add m4/glibc2.m4.
67873
67874 2005-02-24  Bruno Haible  <bruno@clisp.org>
67875
67876         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
67877         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
67878         * m4/progtest.m4:
67879         Update from GNU gettext 0.14.2.
67880         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
67881
67882 2005-02-24  Bruno Haible  <bruno@clisp.org>
67883
67884         * lib/localcharset.c: Update from GNU gettext 0.14.2.
67885         * lib/config.charset: Update from GNU gettext 0.14.2.
67886
67887 2005-02-24  Bruno Haible  <bruno@clisp.org>
67888
67889         * lib/gettext.h: Update from GNU gettext 0.14.2.
67890
67891 2005-02-23  Simon Josefsson  <jas@extundo.com>
67892
67893         * m4/iconvme.m4: New file.
67894
67895 2005-02-23  Jim Meyering  <jim@meyering.net>
67896
67897         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
67898         change.
67899         Thanks to Bruno Haible for catching it.
67900
67901 2005-02-22  Simon Josefsson  <jas@extundo.com>
67902
67903         * modules/iconvme: New file.
67904
67905         * MODULES.html.sh: Add iconvme.
67906
67907 2005-02-22  Simon Josefsson  <jas@extundo.com>
67908
67909         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
67910
67911 2005-02-22  Simon Josefsson  <jas@extundo.com>
67912
67913         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
67914
67915 2005-02-22  Jim Meyering  <jim@meyering.net>
67916
67917         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
67918         s/ifndef/ifdef/.
67919
67920 2005-02-20  Neil Conway  <neilc@samurai.com>
67921
67922         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
67923         returned by OSX/Darwin if the specified buffer is not large
67924         enough for the hostname.
67925
67926 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67927
67928         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
67929         pass it to _help, otherwise the latter coredumps trying to
67930         dereference state.root_argp.
67931
67932 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67933
67934         * modules/chdir-long (Depends-on): Add memrchr.
67935         * modules/memrchr (Files): Add lib/memrchr.h.
67936         (Include): "memrchr.h".
67937
67938 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67939
67940         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
67941
67942 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67943
67944         * lib/memrchr.h: New file.
67945         * lib/chdir-long.c: Include it.
67946         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
67947         Don't bother including stddef.h.
67948
67949 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67950
67951         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
67952         inclusion.
67953         Include <sys/types.h>, for dev_t.
67954         (ME_DUMMY, ME_REMOTE): Move from here....
67955         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
67956         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
67957         Dmitry V. Levin.
67958         Include mountlist.h first, to test the interface.
67959
67960 2005-01-29  Bruno Haible  <bruno@clisp.org>
67961
67962         * lib/progname.c (program_name): Initialize.
67963         Needed when linking statically on MacOS X.
67964
67965 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67966
67967         Sync from coreutils.
67968         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
67969         (Depends-on): Add c-strtod.
67970         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
67971
67972 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67973
67974         Sync from coreutils.
67975         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
67976
67977         Remove files that are specific to coreutils.
67978         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
67979
67980 2005-01-28  Bruno Haible  <bruno@clisp.org>
67981
67982         * modules/javacomp: New file.
67983         * MODULES.html.sh (Java): Add javacomp.
67984
67985 2005-01-28  Bruno Haible  <bruno@clisp.org>
67986
67987         * m4/javacomp.m4: New file, from GNU gettext.
67988
67989 2005-01-28  Bruno Haible  <bruno@clisp.org>
67990
67991         * lib/javacomp.sh.in: New file, from GNU gettext.
67992         * lib/javacomp.h: New file, from GNU gettext.
67993         * lib/javacomp.c: New file, from GNU gettext.
67994
67995 2005-01-26  Simon Josefsson  <jas@extundo.com>
67996
67997         * lib/gai_strerror.c: Use GPL in header.
67998
67999 2005-01-26  Bruno Haible  <bruno@clisp.org>
68000
68001         * modules/javaexec: New file.
68002         * MODULES.html.sh (Java): Add javaexec.
68003
68004 2005-01-26  Bruno Haible  <bruno@clisp.org>
68005
68006         * m4/javaexec.m4: New file, from GNU gettext.
68007
68008 2005-01-26  Bruno Haible  <bruno@clisp.org>
68009
68010         * lib/javaexec.sh.in: New file, from GNU gettext.
68011         * lib/javaexec.h: New file, from GNU gettext.
68012         * lib/javaexec.c: New file, from GNU gettext.
68013
68014 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68015
68016         * modules/lchown (Depends-on): Remove lchown.h
68017
68018 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68019
68020         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
68021         must be defined if the header file was not found, in order
68022         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
68023
68024 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68025
68026         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
68027         initializers for struct pentry_state.
68028         (__argp_error): Check return value of __asprintf
68029         (__argp_failure): Translate error message
68030
68031         * lib/argp-parse.c: Removed braces around the expansion of N_()
68032
68033 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68034
68035         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
68036         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
68037         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
68038         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
68039         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
68040         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
68041         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
68042         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
68043         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
68044         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
68045         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
68046         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
68047         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
68048         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
68049         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
68050         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
68051         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
68052         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
68053         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
68054         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
68055         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
68056         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
68057         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
68058         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
68059         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
68060         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
68061         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
68062         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
68063         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
68064         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
68065         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
68066         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
68067         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
68068         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
68069         xstrtol.m4, xstrtoumax.m4, yesno.m4:
68070         Use an all-permissive copyright notice, recommended by RMS.
68071
68072 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
68073
68074         * modules/chdir-long (Depends-on): Remove mempcpy.
68075
68076 2005-01-21  Jim Meyering  <jim@meyering.net>
68077
68078         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
68079         same value as for Solaris 9.
68080
68081         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
68082         component length.  This included changing the parameter to be
68083         of type `char *' rather than `char const *'.
68084         * lib/chdir-long.h (chdir_long): Update prototype.
68085
68086         * lib/openat.c (fdopendir, fstatat): New functions.
68087         * lib/openat.h: Include headers required for use of DIR and struct
68088         stat.
68089         [AT_SYMLINK_NOFOLLOW]: Define.
68090         (fdopendir, fstatat): Add prototypes.
68091
68092 2005-01-21  Bruno Haible  <bruno@clisp.org>
68093
68094         * modules/classpath: New file.
68095         * MODULES.html.sh (Java): Add classpath.
68096
68097 2005-01-21  Bruno Haible  <bruno@clisp.org>
68098
68099         * lib/classpath.h: New file, from GNU gettext.
68100         * lib/classpath.c: New file, from GNU gettext.
68101
68102 2005-01-20  Simon Josefsson  <jas@extundo.com>
68103
68104         * modules/version-etc-fsf: New file.
68105
68106 2005-01-20  Simon Josefsson  <jas@extundo.com>
68107
68108         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
68109         * lib/version-etc.c: Remove version_etc_copyright.
68110         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
68111         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
68112
68113 2005-01-20  Simon Josefsson  <jas@extundo.com>
68114
68115         * lib/base64.h (isbase64): Add.
68116
68117         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
68118         using a unsigned prototype, don't inline.
68119         (base64_decode): Use it.
68120
68121 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68122
68123         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
68124         it.
68125
68126 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68127
68128         * lib/save-cwd.c (save_cwd): Remove code to support the case
68129         where fchdir is missing or flaky.
68130
68131 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68132
68133         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
68134
68135 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68136
68137         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
68138         AC_LIBSOURCES now does this.
68139         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
68140         with new ullong_max module.
68141
68142 2005-01-19  Bruno Haible  <bruno@clisp.org>
68143
68144         * modules/sh-quote: New file.
68145         * MODULES.html.sh (Executing programs): Add sh-quote.
68146
68147 2005-01-19  Bruno Haible  <bruno@clisp.org>
68148
68149         * lib/sh-quote.h: New file, from GNU gettext.
68150         * lib/sh-quote.c: New file, from GNU gettext.
68151
68152 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68153
68154         Merge from coreutils.
68155         * m4/ullong_max.m4: New file.
68156         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
68157         (gl_MACROS): Assume localeconv exists.
68158
68159 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68160
68161         Merge changes from coreutils, as described below in several
68162         changelogs dated today.
68163
68164         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
68165         (O_DIRECTORY): Remove; not needed here, since "." must be
68166         a directory.  All uses removed.
68167         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
68168         universal on Suns, and we also need to test for IRIX.
68169         Revamp code to use 'if' rather than '#if'.
68170         Avoid unnecessary comparison of cwd->desc to 0.
68171
68172         * lib/utimens.c (futimens): Robustify the previous patch, by checking
68173         for known valid error numbers rather than observed invalid ones.
68174
68175 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68176
68177         * modules/ullong_max: New file.
68178
68179         * modules/chdir-long, modules/openat: New files.
68180         * modules/save-cwd (Depends-on): Depend on chdir-long.
68181         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
68182
68183 2005-01-18  Jim Meyering  <jim@meyering.net>
68184
68185         Merge from coreutils.
68186         * m4/chdir-long.m4, m4/openat.m4: New files.
68187         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
68188         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
68189         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
68190         is sane and DOES follow symlinks.  Besides, testing 20 different
68191         systems found no broken chown implementations.
68192         Prompted by a change in rsync's copy of this macro.
68193         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
68194
68195         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
68196
68197         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
68198         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
68199         NULL-means-set-to-current-time semantics.
68200         Remove temporary file immediately, rather than waiting
68201         for configure's at-exit trap code to do it.
68202
68203 2005-01-18  Jim Meyering  <jim@meyering.net>
68204
68205         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68206
68207         * lib/utimens.c (futimens): Account for the fact that futimes
68208         can also fail with errno == ENOSYS or errno == ENOENT.
68209         Patch from Dmitry V. Levin.
68210
68211         Change the name of the robust chdir function from chdir to chdir_long.
68212         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
68213         (restore_cwd): Use chdir_long, not chdir.
68214         * lib/chdir-long.c: Renamed from chdir.c.
68215         * lib/chdir-long.h: Renamed from chdir.h.
68216         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
68217         Hurd.
68218
68219 2005-01-18  Bruno Haible  <bruno@clisp.org>
68220
68221         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
68222         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
68223         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
68224         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
68225         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
68226         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
68227         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
68228         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
68229         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
68230         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
68231         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
68232         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
68233         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
68234         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
68235         Use an all-permissive copyright notice, recommended by RMS.
68236
68237 2005-01-18  Bob Proulx  <bob@proulx.com>
68238
68239         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
68240         simplify offsetof() macro construct to avoid compile failure with
68241         native HP-UX 11.0 ANSI C compiler.
68242
68243 2005-01-17  Bruno Haible  <bruno@clisp.org>
68244
68245         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
68246         redundant because stpncpy.m4 takes care of it.
68247
68248 2005-01-17  Bruno Haible  <bruno@clisp.org>
68249
68250         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
68251
68252 2005-01-17  Bruno Haible  <bruno@clisp.org>
68253
68254         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
68255         used.
68256
68257 2005-01-17  Bruno Haible  <bruno@clisp.org>
68258
68259         * lib/fwriteerror.h (fwriteerror): Change specification to include
68260         fclose.
68261         * lib/fwriteerror.c: Include <stdbool.h>.
68262         (fwriteerror): At the end, close the file stream. Record whether
68263         stdout was already closed.
68264
68265 2005-01-17  Bruno Haible  <bruno@clisp.org>
68266
68267         * lib/execute.c (environ): Declare if needed.
68268         * lib/pipe.c (environ): Likewise.
68269         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
68270
68271 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68272
68273         * modules/argp: Depend on vsnprintf
68274
68275 2005-01-10  Jim Meyering  <jim@meyering.net>
68276
68277         * modules/closeout (Depends-on): Add atexit.
68278
68279 2005-01-06  Bruno Haible  <bruno@clisp.org>
68280
68281         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
68282
68283 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68284
68285         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
68286         definitions to be after all include files, to avoid collisions.
68287         Problem reported by Bob Proulx.
68288
68289 2005-01-04  Jim Meyering  <jim@meyering.net>
68290
68291         Changes imported from coreutils.
68292         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
68293         as the mkstemp template, use a temporary directory and an
68294         8.3-friendly template to avoid trouble on systems like DJGPP.
68295         Reported by Juan M. Guerrero via Stepan Kasal.
68296         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
68297         close. Remove the temporary directory right away, rather than waiting
68298         for configure's at-exit trap code to do it.
68299         Suggestion from Stepan Kasal.
68300
68301 2005-01-01  Simon Josefsson  <jas@extundo.com>
68302
68303         * gnulib-tool: Print #include directives when --import'ing.
68304
68305 2004-12-28  Simon Josefsson  <jas@extundo.com>
68306
68307         * tests/test-base64.c: Include required header files.  Remove
68308         unused variables.
68309
68310 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68311
68312         * modules/error (Depends-on): Remove gettext.
68313
68314 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68315
68316         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
68317         not needed.  This removes a dependency on the gettext module.
68318         [defined _LIBC]: Do not include <libintl.h>; not needed.
68319
68320 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68321
68322         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
68323         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
68324
68325 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68326
68327         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
68328         HAVE_DECL_STRTOLD.
68329
68330 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68331
68332         * modules/getdate (Depends-on): Remove alloca-opt.
68333
68334 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68335
68336         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
68337
68338 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68339
68340         * lib/argp-parse.c: Include <stddef.h>.
68341         (alignof, alignto): New macros.
68342         (parser_init): Don't assume that void * is aligned sufficiently
68343         for struct option.
68344
68345         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
68346         need to extend the stack.
68347         (YYINITDEPTH): New macro, so that the initial stack isn't overly
68348         large.
68349
68350 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68351
68352         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
68353
68354 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68355
68356         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
68357         (2004-10-24) change.  Apparently this was a false alarm.
68358
68359         * modules/getdate: Depend on alloca-opt, not alloca.
68360
68361 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68362
68363         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
68364         Remove now-obsolete comment about AIX.
68365         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
68366         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
68367         (YYMAXDEPTH): New macro.
68368
68369 2004-12-18  Simon Josefsson  <jas@extundo.com>
68370
68371         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
68372
68373 2004-12-18  Bruno Haible  <bruno@clisp.org>
68374
68375         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
68376
68377 2004-12-18  Bruno Haible  <bruno@clisp.org>
68378
68379         * lib/fatal-signal.c (fatal_signals): Make non-const.
68380         (init_fatal_signals): New function.
68381         (uninstall_handlers, install_handlers): Ignore signals that were set to
68382         SIG_IGN.
68383         (at_fatal_signal): Call init_fatal_signals.
68384         (init_fatal_signal_set): Likewise. Ignore signals that were set to
68385         SIG_IGN.
68386         Reported by Paul Eggert.
68387
68388 2004-12-18  Bruno Haible  <bruno@clisp.org>
68389
68390         * doc/alloca.texi: New file.
68391         * doc/alloca-opt.texi: New file.
68392
68393 2004-12-17  Jim Meyering  <jim@meyering.net>
68394
68395         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
68396         Otherwise, install-sh could exit with improper exit status when
68397         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
68398
68399 2004-12-16  Simon Josefsson  <jas@extundo.com>
68400
68401         * tests/test-base64.c: Add license.
68402
68403 2004-12-15  Stepan Kasal  <address@hidden>
68404
68405         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
68406
68407 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
68408
68409         * modules/getcwd (Files): Add m4/d-ino.m4.
68410         Suggested by Mark D. Baushke.
68411
68412 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68413
68414         * lib/getdate.y (textint): New member "negative".
68415         (time_zone_hhmm): New function.
68416         Expect 14 shift-reduce conflicts, not 13.
68417         (o_colon_minutes): New rule.
68418         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
68419         (yylex): Set the "negative" member of signed numbers.
68420
68421 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68422
68423         * doc/getdate.texi (Time of day items, Time zone items):
68424         Describe new formats +00:00, UTC+00:00.
68425
68426 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68427
68428         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
68429         spurious "-l"s.  Problem reported by Stepan Kasal.
68430
68431 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
68432
68433         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
68434         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
68435
68436 2004-12-04  Simon Josefsson  <jas@extundo.com>
68437
68438         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
68439         Vandoorselaere <yoann@prelude-ids.org>.
68440
68441 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68442
68443         Changes imported from coreutils.
68444         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
68445         exist.
68446         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
68447
68448 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68449
68450         Changes imported from coreutils.
68451         * lib/hard-locale.c: Assume <locale.h> exists.
68452         Include "strdup.h".
68453         (GLIBC_VERSION): New macro.
68454         (hard_locale): Assume setlocale exists.
68455         Rewrite to avoid #ifdef.
68456         Use strdup rather than malloc + strcpy.
68457         * lib/human.c: Assume <locale.h> exists.
68458         (human_readable): Assume localeconv exists.
68459
68460 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68461
68462         * modules/hard-locale (Depends-on): Add strdup.
68463
68464 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68465
68466         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
68467         convert T2, not T.  (Imported from libc.)
68468
68469 2004-11-30  Simon Josefsson  <jas@extundo.com>
68470
68471         * modules/restrict (License): Change to LGPL.
68472
68473 2004-11-30  Simon Josefsson  <jas@extundo.com>
68474
68475         * m4/restrict.m4: Add copyright and copying conditions.
68476
68477 2004-11-30  Simon Josefsson  <jas@extundo.com>
68478
68479         * m4/base64.m4: New file.
68480
68481 2004-11-30  Simon Josefsson  <jas@extundo.com>
68482
68483         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
68484         base64.
68485
68486         * tests/test-base64.c: New file.
68487
68488         * modules/base64: New file.
68489
68490 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68491
68492         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
68493         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
68494
68495         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
68496
68497 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68498
68499         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
68500         (__getcwd.c): Don't restore errno; glibc doesn't.
68501         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
68502         first, falling back to our code only if its results look suspicious.
68503         Ensure that the resulting buffer is only as large as necessary.
68504
68505         * lib/readutmp.c: Include readutmp.h first.
68506         Include <errno.h>, since readutmp.h no longer does that.
68507         * lib/readutmp.h: Don't include <errno.h>,
68508         <sys/param.h>, <time.h>; not needed to establish interface.
68509         (errno): Remove decl.
68510         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
68511         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
68512         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
68513
68514 2004-11-28  Simon Josefsson  <jas@extundo.com>
68515
68516         * lib/base64.h, base64.c: New file.
68517
68518 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68519
68520         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
68521
68522 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68523
68524         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
68525         (Depends-on): Remove pathmax, same.  Add mempcpy.
68526         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
68527         (Makefile.am): Append getcwd.h to lib_SOURCES.
68528         (Include): Add getcwd.h.
68529         (Maintainer): Change from Jim Meyering to "all, glibc",
68530         since getdate now uses intended-for-glibc code.
68531         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
68532         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
68533
68534 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68535
68536         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
68537         HP's ANSI C compiler.
68538         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
68539         Declaring int functions causes warnings on some modern systems and
68540         shouldn't be needed to compile on ancient ones.
68541         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
68542         defined.
68543
68544         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
68545         with the following changes.
68546         (__set_errno): Parenthesize properly.
68547         Include <stdbool.h>.
68548         (MIN, MAX, MATCHING_INO): New macros.
68549         (__getcwd): Define with prototype, not K&R form.
68550         Use heuristics to allocate default buffer on stack if possible.
68551         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
68552         behavior, and to avoid the PATH_MAX limit when computing
68553         ../../../../...
68554         Use MATCHING_INO to compare inode number to file.
68555         Check for arithmetic overflow in size calculations.
68556         Fix bug in reallocation of dot array that caused getcwd to fail
68557         on directories nested deeper than 75.
68558         Be more careful about saving errno on error.
68559         Do not use realloc; use only free+malloc, as this is a bit
68560         more flexible and avoids a needless copy operation.
68561         Do not inspect st_dev and st_ino for symbolic links; POSIX
68562         doesn't specify the latter.
68563         Check for closedir errors.
68564         Avoid needless casts.
68565         Use "#ifdef weak_alias" around weak_alias, to be like other
68566         glibc code.
68567         The following changes to getcwd.c have effect only when used in
68568         gnulib; they have no effect inside glibc proper.
68569         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
68570         as alloca isn't used.
68571         (alloca, __alloca): Likewise.
68572         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
68573         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
68574         unconditionally, as gnulib assumes C89 or better.
68575         Do not include <sys/param.h>.
68576         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
68577         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
68578         better.
68579         (NULL) [!defined NULL]: Remove; we assume C89 or better.
68580         Include <dirent.h> in a way that is compatible with modern Autoconf.
68581         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
68582         New macros, if not already defined.
68583         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
68584         Use "_LIBC", not "defined _LIBC", for consistency.
68585         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
68586         a mempcpy module.
68587         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
68588         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
68589         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
68590         credit only to Jim Meyering and adjust the copyright dates.
68591         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
68592         <stdlib.h>, <unistd.h>, "pathmax.h".
68593         Instead, include "xgetcwd.h" (first) and "getcwd.h".
68594         (INITIAL_BUFFER_SIZE): Remove.
68595         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
68596
68597 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68598
68599         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
68600         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
68601         Use the _ONCE methods, for efficiency.
68602         Check for fcntl.h.  In test program, include <errno.h>
68603         and <fcntl.h> if available.  Remove old K&R cruft from
68604         test program.  Check for common errors in GNU/Linux,
68605         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
68606         don't do AC_LIBOBJ, as that's getcwd.m4's job.
68607         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
68608         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
68609         name accordingly.
68610         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
68611         accommodate new getcwd.c.
68612         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
68613         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
68614         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
68615         that's all we need now.
68616
68617 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68618
68619         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
68620         argp-parse.c depends on getopt internals, that means we should
68621         always use our getopt, to be on the safe side.
68622         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
68623         order not to spoil the result of an eventual previous invocation
68624         of gl_GETOPT_SUBSTITUTE.
68625
68626 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68627
68628         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
68629         redefinition warnings. To avoid them, include the defines
68630         in `#if !defined __need_getopt ... #endif'. The only place
68631         where __getopt_argv_const is used is in definitions
68632         of getopt_long and getopt_long_only below, which are as well
68633         protected by `#ifndef __need_getopt'.
68634         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
68635         __need_getopt after including <stdio.h> and <unistd.h> These
68636         headers might have defined it.
68637
68638 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68639
68640         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
68641
68642 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68643
68644         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
68645         (futimens): New function, which uses futimes if available.
68646         (futimens, utimens): Support timespec==NULL, with same semantics
68647         as utime and utimens.
68648         * lib/utimens.h (futimens): New decl.
68649
68650 2004-11-23  Jim Meyering  <jim@meyering.net>
68651
68652         * lib/getopt_.h: Remove trailing blanks.
68653
68654 2004-11-23  Jim Meyering  <jim@meyering.net>
68655
68656         * lib/__fpending.c: Add comment.
68657
68658 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
68659
68660         * modules/canonicalize (Depends-on): Add xreadlink.
68661         Problem reported by James Youngman.
68662
68663 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68664
68665         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
68666         New macros.
68667         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
68668         optopt): Use them instead of invoking ## directly; otherwise, the
68669         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
68670
68671 2004-11-19  Bruno Haible  <bruno@clisp.org>
68672
68673         * lib/strtok_r.c: Move comments from here...
68674         * lib/strtok_r.h: ... to here.
68675
68676 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68677
68678         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
68679         implementations that mishandle size_t overflow.
68680
68681 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68682
68683         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
68684         might fail.  Problem reported by Yoann Vandoorselaere.
68685         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
68686         implementations that mishandle size_t overflow.
68687
68688 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68689
68690         * modules/canon-host (Depends-on): Add strdup.
68691
68692 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68693
68694         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
68695
68696 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68697
68698         * lib/canon-host.c: Include "strdup.h".
68699         (canon_host): Use getaddrinfo if available, so that IPv6 works.
68700         Use strdup instead of malloc/strcpy to duplicate strings.
68701
68702         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
68703         (human_space_before_unit): New constant.
68704         * lib/human.c (human_readable): Support it.
68705
68706         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
68707         (xgetcwd): Set errno correctly when failing.
68708         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
68709         the failure is actually due to a PATH_MAX problem.
68710
68711         Further getopt changes to make it more likely that glibc will
68712         buy the changes back.
68713         * lib/getopt.c (POSIXLY_CORRECT): New constant.
68714         (getopt): Use it, so to preserve glibc semantic
68715         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
68716         when compiling for libc.
68717         * lib/getopt_.h (__getopt_argv_const): Bring it back.
68718         (getopt_long, getopt_long_only): Use it.
68719
68720         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68721         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
68722         (getopt): Argv is now char * const *, as per standard.
68723         (_getopt_internal_r, _getopt_internal): Argv is now char **,
68724         not char *__getopt_argv_const *.
68725         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68726         _getopt_long_only_r): Likewise.
68727         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
68728         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68729         _getopt_long_r, _getopt_long_only_r): Likewise.
68730         * lib/getopt_.h (__getopt_argv_const): Remove.
68731         (getopt): Argv is now char * const *, as per standard.
68732
68733         * lib/getdate.y (tORDINAL): New token.
68734         (day, relunit): Allow it for relative times.
68735         (relative_time_table): Use tORDINAL for ordinals.
68736
68737 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68738
68739         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
68740         Document that "second" isn't allowed as an ordinal number.
68741
68742 2004-11-16  Jim Meyering  <jim@meyering.net>
68743
68744         * modules/closeout (Depends-on): Add fpending.
68745
68746 2004-11-15  Jim Meyering  <jim@meyering.net>
68747
68748         * lib/closeout.c: Include "__fpending.h" once again.
68749         Include <stdbool.h>.
68750         (close_stdout): Don't fail just because stdout was closed initially,
68751         since some programs don't write to stdout in the normal course of
68752         operation (other than --version and --help), and we don't want this
68753         function to make e.g. `touch file >&-' fail.
68754         But do fail if it was closed and someone has tried to write to it.
68755         E.g., `printf foo >&-' must fail.
68756
68757 2004-11-13  Jim Meyering  <jim@meyering.net>
68758
68759         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
68760
68761 2004-11-12  Simon Josefsson  <jas@extundo.com>
68762
68763         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
68764         small doc fix is still pending.
68765
68766 2004-11-11  Simon Josefsson  <jas@extundo.com>
68767
68768         * modules/strtok_r: New file.
68769
68770         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68771         strtok_r.
68772
68773 2004-11-11  Simon Josefsson  <jas@extundo.com>
68774
68775         * m4/strtok_r.m4: New file.
68776
68777         * m4/getopt.m4: Replace opterr.
68778
68779 2004-11-11  Simon Josefsson  <jas@extundo.com>
68780
68781         * lib/strtok_r.h, strtok_r.c: New file.
68782
68783 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68784
68785         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
68786         of replacing opterr, getopt, etc.  This should handle the
68787         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
68788
68789 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68790
68791         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
68792         we can stop lying to compilers about the constness of argv when we
68793         are compiled outside glibc.
68794         (getopt, getopt_long, getopt_long_only): Use it.
68795         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68796         _getopt_internal, getopt): Likewise.
68797         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68798         _getopt_long_only_r): Likewise.
68799         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68800         _getopt_long_r, _getopt_long_only_r): Likewise.
68801
68802         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
68803         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
68804         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
68805         the other external symbols.
68806         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
68807         declaration, since the above renaming now works around collisions.
68808
68809 2004-11-11  Jim Meyering  <jim@meyering.net>
68810
68811         * lib/linebreak.c: Remove trailing blanks.
68812         * lib/alloca_.h: Likewise.
68813         * lib/acosl.c: Likewise.
68814         * lib/euidaccess.c: Likewise.
68815         * lib/allocsa.h: Likewise.
68816
68817 2004-11-10  Simon Josefsson  <jas@extundo.com>
68818
68819         * m4/getaddrinfo.m4: New file.
68820
68821 2004-11-10  Simon Josefsson  <jas@extundo.com>
68822
68823         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
68824
68825 2004-11-10  Simon Josefsson  <jas@extundo.com>
68826
68827         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68828         getaddrinfo.
68829
68830         * modules/getaddrinfo: New file.
68831
68832 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68833
68834         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
68835
68836 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68837
68838         * lib/mktime.c (SHR): New macro, which is a portable
68839         substitute for >> that should work even on Crays.
68840         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
68841         Problem reported by Mark D. Baushke in
68842         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
68843         * lib/getdate.y (SHR): Likewise.
68844         (tm_diff): Use it.
68845         * lib/strftime.c (SHR): Likewise.
68846         (tm_diff): Use it.
68847         * lib/quotearg.c (struct quoting_options): Use unsigned int for
68848         quote_these_too, so that right shifts are well defined.  All uses
68849         changed.
68850
68851 2004-11-10  Jim Meyering  <jim@meyering.net>
68852
68853         Ensure that no close failure goes unreported.
68854         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
68855         return early when it seems there's nothing to flush.
68856         Don't include __fpending.h.
68857
68858 2004-11-10  Jim Meyering  <jim@meyering.net>
68859
68860         * modules/closeout (Depends-on): Remove fpending.
68861
68862 2004-11-10  Jim Meyering  <jim@meyering.net>
68863
68864         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
68865
68866 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68867
68868         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
68869         gl_FUNC_STRFTIME.
68870         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
68871         and AC_REQUIRE when possible, to avoid duplicate checks.
68872         Check for <wchar.h>.
68873
68874 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68875
68876         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
68877
68878 2004-11-09  Bruno Haible  <bruno@clisp.org>
68879
68880         * m4/sockpfaf.m4: New file.
68881
68882 2004-11-05  Bruno Haible  <bruno@clisp.org>
68883
68884         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
68885         Reported by Mark D. Baushke <mdb@cvshome.org>.
68886
68887 2004-11-04  Bruno Haible  <bruno@clisp.org>
68888
68889         2004-09-11  Bruno Haible  <bruno@clisp.org>
68890                 * allocsa.valgrind: New file.
68891         2004-02-06  Bruno Haible  <bruno@clisp.org>
68892                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
68893                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
68894                 Reported by Christopher Seip <chris.seip@hp.com>.
68895
68896 2004-11-04  Bruno Haible  <bruno@clisp.org>
68897
68898         * modules/allocsa (Files): Add lib/allocsa.valgrind.
68899         (Makefile.am): Distribute it.
68900
68901 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68902
68903         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
68904         with errno == ERANGE if the buffer is too small.
68905         Problem reported by Mark D. Baushke.
68906
68907 2004-11-03  Albert Chin  <china@thewrittenword.com>
68908             Paul Eggert  <eggert@cs.ucla.edu>
68909
68910         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
68911         equivalent, substitute $ac_type for equivalent type rather than
68912         blindly using uint32_t *always* which won't work if uint32_t is not
68913         available.  Define _UINT32_T to work around typedef of uint32_t if
68914         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
68915         2.5.1.
68916
68917 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68918
68919         * m4/jm-macros.m4: Sync from coreutils.
68920         (gl_MACROS): Check for mbrlen, for pathchk.
68921         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68922
68923 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68924
68925         * lib/xreadlink.c (MAXSIZE): New macro.
68926         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
68927         size does not exceed MAXSIZE.  Avoid cast.
68928         As suggested by Mark D. Baushke in
68929         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
68930         if readlink fails with buffer size just under MAXSIZE, try again
68931         with MAXSIZE.
68932
68933 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68934
68935         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
68936
68937 2004-11-02  Derek R. Price  <derek@ximbiot.com>
68938         and  Paul Eggert  <eggert@cs.ucla.edu>
68939
68940         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
68941         (get_date): Overparenthesize to avoid GCC warning.
68942
68943 2004-11-02  Bruno Haible  <bruno@clisp.org>
68944
68945         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
68946         returns void.
68947
68948 2004-11-02  Bruno Haible  <bruno@clisp.org>
68949
68950         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
68951         function returns void.
68952
68953 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68954
68955         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
68956         fflush_unlocked, flockfile, funlockfile, funlockfile,
68957         fputs_unlocked, putc_unlocked.
68958
68959 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68960
68961         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68962         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
68963         already declared.
68964
68965 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68966
68967         * modules/getdate (Files): Add doc/getdate.texi.
68968         (Depends-on): Add setenv, xalloc.
68969
68970 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68971
68972         * lib/getdate.y: Add support for TZ="foo" within a date string.
68973         Fix some bugs near time_t boundaries.  Reject dates with
68974         out-of-range components, e.g., "Sept 31".
68975         Include <stdlib.h>, "setenv.h", "xalloc.h".
68976         (ISDIGIT_LOCALE): Remove; unused.
68977         Note that the TZ and time functions used here are not reentrant.
68978         (mktime_ok, get_tz): New functions.
68979         (TZBUFSIZE): New constant.
68980         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
68981         This requires that we sometimes generate our own TZ="XXX..." setting.
68982
68983 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68984
68985         * doc/getdate.texi: New file, from coreutils with modifications for
68986         the new TZ parsing.
68987
68988 2004-10-27  Derek R. Price  <derek@ximbiot.com>
68989
68990         * lib/mktime.c (not_equal_tm): Remove redundant check.
68991
68992 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68993
68994         * modules/regex (lib_SOURCES): Add regex.c.
68995         Reported by James Youngman in
68996         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
68997
68998 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68999
69000         * lib/getdate.y: Use Bison 1.875 features, and some minor
69001         code cleanups.  This change does not affect semantics.
69002         Don't include <stdlib.h>; no longer needed.
69003         Don't include unlocked-io.h; only the "#if TEST" code uses
69004         stdio, and performance isn't crucial there.
69005         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
69006         Bison 1.875 features as described below.
69007         All uses of "PC." replaced by "pc->".
69008         (YYSTYPE): Add a forward declaration.
69009         (yylex, yyerror): Use full prototypes in forward decls.
69010         Use "%pure-parser" rather than obsolescent "%pure_parser".
69011         Use %parse-param and %lex-param instead of obsolescent
69012         YYPARSE_PARAM and YYLEX_PARAM.
69013         (meridian_table, month_and_day_table, time_units_table,
69014         relative_time_table, time_zone_table, military_table,
69015         lookup_zone, lookup_word, get_date):
69016         Use NULL instead of 0 where appropriate.
69017         (to_hour): Avoid abort (), to avoid a dependency on
69018         stdlib.h.
69019         (yyerror, yylex): Now accepts parser_control * arg.
69020         (main) [TEST]: Use '\0' rather than 0 for char.
69021
69022 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69023
69024         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
69025
69026 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69027
69028         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
69029         It's now the caller's responsibility to handle the case where
69030         !HAVE_GETPAGESIZE && !defined getpagesize.
69031
69032         * lib/mktime.c (leapyear): Arg is long int, not int.
69033
69034 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
69035
69036         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
69037
69038 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69039
69040         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
69041         missing.  Problem reported by James Youngman.
69042
69043 2004-10-16  Simon Josefsson  <jas@extundo.com>
69044
69045         * gnulib-tool: Fix comments.  Fix parse problem.
69046         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
69047
69048 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
69049
69050         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
69051         implementation of getopt_long.  Problem reported by Alexander Taler in:
69052         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
69053
69054 2004-10-15  Bruno Haible  <bruno@clisp.org>
69055
69056         * gnulib-tool: Untabify. Initialize supplied_libname.
69057         (func_usage): More homogenous output.
69058         (func_modules_transitive_closure, func_modules_to_filelist,
69059         func_emit_lib_Makefile_am): New functions.
69060         (func_import): New function, extracted from big case statement. Use
69061         func_get_license, func_modules_transitive_closure,
69062         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
69063         opt_lgpl. Don't use test -a, as it's not portable.
69064         (func_create_testdir): Use func_modules_transitive_closure,
69065         func_modules_to_filelist, func_emit_lib_Makefile_am.
69066
69067 2004-10-15  Bruno Haible  <bruno@clisp.org>
69068
69069         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
69070
69071 2004-10-15  Bruno Haible  <bruno@clisp.org>
69072
69073         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
69074         the portions belonging to each module.
69075         Suggested by Derek Robert Price <derek@ximbiot.com>.
69076
69077 2004-10-12  Simon Josefsson  <jas@extundo.com>
69078
69079         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69080         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
69081         to real functions.
69082
69083 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69084
69085         * modules/vsnprintf: New file.
69086
69087 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69088
69089         * m4/vsnprintf.m4: New file.
69090
69091 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69092
69093         * lib/vsnprintf.h: New file.
69094         * lib/vsnprintf.c: New file.
69095
69096 2004-10-11  Bruno Haible  <bruno@clisp.org>
69097
69098         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
69099         vsnprintf.
69100
69101 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69102
69103         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
69104
69105 2004-10-07  Bruno Haible  <bruno@clisp.org>
69106
69107         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
69108         fits into the provided buffer.
69109
69110 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69111
69112         * lib/diacrit.c, diacrit.h: Add GPL notice.
69113
69114         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
69115         notice.
69116         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
69117         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
69118         This avoids a potential constant-folding bug.
69119
69120 2004-10-05  Bruno Haible  <bruno@clisp.org>
69121
69122         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
69123         for the declaration of strsep.
69124
69125 2004-10-05  Bruno Haible  <bruno@clisp.org>
69126
69127         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
69128
69129 2004-10-04  Simon Josefsson  <jas@extundo.com>
69130
69131         * modules/memmem: New file.
69132         * tests/test-memmem.c: New file.
69133         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
69134
69135 2004-10-04  Simon Josefsson  <jas@extundo.com>
69136
69137         * m4/memmem.m4: New file.
69138
69139 2004-10-04  Simon Josefsson  <jas@extundo.com>
69140
69141         * lib/memmem.h: New file.
69142         * lib/memmem.c: New file, taken from glibc.
69143
69144 2004-10-04  Simon Josefsson  <jas@extundo.com>
69145
69146         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
69147         '#ifdef USE_UNLOCKED_IO'.
69148
69149 2004-10-04  Simon Josefsson  <jas@extundo.com>
69150
69151         * config/srclist.txt: Add memmem from glibc.
69152
69153 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69154
69155         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
69156
69157         * modules/argmatch, modules/argp, modules/closeout, modules/error,
69158         modules/exclude, modules/getdate, modules/getline,
69159         modules/getndelim2, modules/getpass, modules/getpass-gnu,
69160         modules/getusershell, modules/linebuffer, modules/md5,
69161         modules/mountlist, modules/posixtm, modules/readtokens,
69162         modules/readutmp, modules/regex, modules/sha1,
69163         modules/version-etc, modules/yesno:
69164         Remove dependency on unlocked-io.
69165
69166 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69167
69168         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
69169
69170         * m4/unlocked-io.m4: Add copyright notice.
69171         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
69172
69173 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69174
69175         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
69176         * lib/xmalloc.c (xmemdup): Likewise.
69177         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
69178         XFREE): Remove these long-obsolescent macros.
69179         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
69180         * lib/xstrdup.c: Remove.
69181
69182         * lib/regex.c (re_comp): Cast gettext return value to char *,
69183         Problem reported by Martin Neitzel via Mark D. Baushke.
69184
69185 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69186
69187         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
69188         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
69189         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
69190         regex.c, sha1.c, version-etc.c, yesno.c:
69191         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
69192         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
69193         the includer's responsibility.
69194
69195         Sync from coreutils.
69196
69197         * lib/modechange.c (mode_compile): Don't decrement a pointer that
69198         points to the start of a string, as the C Standard says the
69199         resulting behavior is undefined.
69200
69201         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
69202         simple -> simple_backups, numbered_existing ->
69203         numbered_existing_backups, numbered -> numbered_backups
69204         to avoid shadowing problems.  All uses changed.
69205         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
69206         * lib/backupfile.c (check_extension, numbered_backup):
69207         Rename locals to avoid shadowing 'basename'.
69208         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
69209         once.
69210
69211         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
69212         * lib/.cvsignore: Add getopt.h.
69213
69214 2004-10-04  Bruno Haible  <bruno@clisp.org>
69215
69216         * modules/README: New file.
69217         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
69218         not a module.
69219
69220 2004-10-02  Jim Meyering  <jim@meyering.net>
69221
69222         * lib/dirfd.h, getpagesize.h: Add copyright notice.
69223
69224 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69225
69226         * modules/strsep: New file.
69227
69228 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69229
69230         * m4/strsep.m4: New file.
69231
69232 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69233
69234         * lib/strsep.h: New file.
69235         * lib/strsep.c: New file.
69236
69237 2004-10-01  Simon Josefsson  <jas@extundo.com>
69238
69239         * lib/snprintf.c (snprintf): Handle size==0.
69240
69241 2004-10-01  Simon Josefsson  <jas@extundo.com>
69242             Bruno Haible  <bruno@clisp.org>
69243
69244         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
69245         (snprintf): Declare 'args'.
69246
69247 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
69248
69249         * lib/snprintf.c: Remove comments as to why each header is needed.
69250
69251 2004-10-01  Bruno Haible  <bruno@clisp.org>
69252
69253         * MODULES.html.sh: Add strsep.
69254
69255 2004-09-30  Simon Josefsson  <jas@extundo.com>
69256
69257         * modules/snprintf: New file.
69258
69259 2004-09-30  Simon Josefsson  <jas@extundo.com>
69260
69261         * m4/snprintf.m4: New file.
69262
69263 2004-09-30  Simon Josefsson  <jas@extundo.com>
69264
69265         * lib/snprintf.h, lib/snprintf.c: New files.
69266
69267 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69268
69269         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
69270         (hol_entry_help): Never translate an empty string.
69271         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
69272         * lib/argp.h (OPTION_NO_TRANS): New option.
69273
69274 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69275
69276         * modules/argp (Maintainer): Replace Simon Josefsson
69277         by Sergey Poznyakoff.
69278
69279 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69280
69281         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
69282         changes merged back into glibc.
69283
69284 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69285
69286         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
69287
69288 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69289
69290         * lib/xvasprintf.c: Include xalloc.h.
69291         (xvasprintf): Use xalloc_die, not xmalloc_die.
69292
69293 2004-09-29  Bruno Haible  <bruno@clisp.org>
69294
69295         * modules/alloca-opt: New file, derived from modules/alloca.
69296         * modules/allocsa: Depend on alloca-opt instead of alloca.
69297         * modules/setenv: Likewise.
69298         * modules/vasnprintf: Likewise.
69299         * MODULES.html.sh: Add alloca-opt.
69300
69301 2004-09-28  Simon Josefsson  <jas@extundo.com>
69302
69303         * gnulib-tool: New parameter --lgpl, to asseert that modules are
69304         LGPL, and to replace license template from GPL to LGPL.
69305
69306 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69307
69308         * modules/dummy: Change license to LGPL.
69309
69310 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69311
69312         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
69313
69314 2004-09-24  Simon Josefsson  <jas@extundo.com>
69315
69316         * modules/minmax (License): Change from GPL to LGPL.
69317
69318 2004-09-23  Simon Josefsson  <jas@extundo.com>
69319
69320         * gnulib-tool (--import): Typo.
69321
69322 2004-09-23  Simon Josefsson  <jas@extundo.com>
69323
69324         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
69325
69326 2004-09-22  Bruno Haible  <bruno@clisp.org>
69327
69328         * modules/*: Add 'License' field.
69329         * gnulib-tool: Accept --extract-license option.
69330         (func_get_license): New function.
69331
69332 2004-09-21  Bruno Haible  <bruno@clisp.org>
69333
69334         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
69335         Reported by Simon Josefsson.
69336
69337 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69338
69339         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
69340         gl_AC_TYPE_LONG_LONG.
69341
69342 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69343
69344         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
69345
69346 2004-09-18  Simon Josefsson  <jas@extundo.com>
69347         and  Paul Eggert  <eggert@cs.ucla.edu>
69348
69349         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
69350         calls with autoreconf.  Define GL_LIB.
69351
69352 2004-09-14  Karl Berry  <karl@gnu.org>
69353
69354         * config/srclist.txt: unsync setenv.c, sigh.
69355
69356 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69357
69358         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
69359         Problem reported by Bruno Haible in:
69360         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
69361
69362 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69363
69364         * config/srclist.txt: Comment out argp-pvh.c.
69365
69366 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
69367
69368         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
69369         in case some system header has #define'd it.  Problem reported by
69370         Soeren D. Schulze in
69371         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
69372
69373 2004-09-09  Karl Berry  <karl@gnu.org>
69374
69375         * regex.[ch]: delete from the root.  These were supposed to be
69376                 synced with emacs cvs, but this has not happened for about
69377                 a year, and anyway nothing else uses emacs regex.[ch].
69378                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
69379                 lib/regex[.ch] is untouched.
69380
69381 2004-09-09  Bruno Haible  <bruno@clisp.org>
69382
69383         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
69384
69385 2004-09-09  Bruno Haible  <bruno@clisp.org>
69386
69387         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
69388         modifications.
69389         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
69390
69391 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69392
69393         * modules/xvasprintf: New file.
69394         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
69395
69396 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69397
69398         * lib/xvasprintf.h: New file.
69399         * lib/xvasprintf.c: New file.
69400         * lib/xasprintf.c: New file.
69401
69402 2004-09-08  Bruno Haible  <bruno@clisp.org>
69403
69404         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
69405
69406 2004-09-08  Bruno Haible  <bruno@clisp.org>
69407
69408         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
69409         length is > INT_MAX.
69410         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
69411         more.
69412
69413 2004-09-08  Bruno Haible  <bruno@clisp.org>
69414
69415         * lib/stdint_.h: New file, taken from GNU clisp.
69416
69417 2004-09-08  Bruno Haible  <bruno@clisp.org>
69418             Oskar Liljeblad  <oskar@osk.mine.nu>
69419
69420         * modules/stdint: New file.
69421         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
69422
69423 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69424
69425         Import from coreutils.
69426         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
69427         strings on unbounded length.  alloca's performance benefits aren't
69428         that important here.
69429         (V_STRDUP): Remove.
69430         (parse_with_separator): New function, with most of the internals
69431         of the old parse_user_spec.  Allow user to omit both user and group,
69432         for compatibility with FreeBSD.
69433         Clone only the user name, not the entire spec.
69434         Do not set *uid, *gid unless entirely successful.
69435         Avoid memory leak in some failing cases.
69436         Fix regression for USER.GROUP reported by Dmitry V. Levin in
69437         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
69438         (parse_user_spec): Rewrite to use parse_with_separator.
69439
69440 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69441
69442         * modules/userspec: Don't depend on alloca.
69443
69444 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69445
69446         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
69447
69448 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69449
69450         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
69451         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
69452         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
69453
69454 2004-08-16  Simon Josefsson  <jas@extundo.com>
69455
69456         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
69457         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
69458         Add --dry-run for --import.
69459         Let user provided command line parameters override configure.ac
69460         settings.
69461
69462 2004-08-12  Simon Josefsson  <jas@extundo.com>
69463
69464         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
69465         as discussed with Paul Eggert in threads rooted at
69466         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
69467         and
69468         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
69469         Before, the test was empty, and relied on ELIDE_CODE in source
69470         code.)
69471         (gl_PREREQ_GETOPT): New macro.
69472         (gl_GETOPT): Use them.
69473
69474 2004-08-12  Simon Josefsson  <jas@extundo.com>
69475
69476         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
69477         * lib/getopt_.h: Renamed from getopt.h.
69478
69479 2004-08-12  Simon Josefsson  <jas@extundo.com>
69480
69481         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
69482         Change default library name from libfoo to libgnu.
69483         Now, if you have a configure.ac that says:
69484                 gl_SOURCE_BASE(gl)
69485                 gl_M4_BASE(gl/m4)
69486                 gl_MODULES(error getopt etcetera)
69487                 gl_INIT
69488         you can import all you need by running:
69489                 ../gnulib/gnulib-tool --import
69490
69491         * modules/getopt (Files): Rename getopt.h to getopt_.h.
69492         (Makefile.am): Rewrite, use logic from argz.
69493         (Include): Use <getopt.h> instead of "getopt.h".
69494
69495 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69496
69497         * modules/argp (Files): Add m4/unlocked-io.m4.
69498         (Depends-on): Add extensions.
69499
69500 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69501
69502         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
69503         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
69504         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
69505         Check for program_invocation_name, program_invocation_short_name,
69506         flockfile, funlockfile, features.h, _getopt_long_only_r.
69507
69508 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69509
69510         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
69511         its complicated substitute.
69512         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
69513         and program_invocation_name.
69514         (__argp_basename) [!_LIBC]: Remove; the only use was
69515         replaced by its body.
69516         (__argp_short_program_name): Change condition from
69517         !defined __argp_short_program_name to
69518         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
69519         to match argp-namefrob.h.
69520         (__argp_failure): Don't assume strerror_r returns char *.
69521         * lib/argp-parse.c (N_): Define unconditionally.
69522         (argp_default_options): Fill out initializers with 0 to avoid
69523         gcc warnings.
69524
69525 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69526
69527         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
69528         getopt1.c.
69529
69530 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69531
69532         Merge from coreutils.
69533
69534         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
69535
69536         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
69537         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
69538
69539 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69540
69541         Merge from coreutils.
69542
69543         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
69544         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
69545         for Reliant Unix 5.43.
69546
69547         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
69548         (union fooround): Use uintmax_t, not long int.
69549         The rest is a merge from libc:
69550         [defined _LIBC]: Include <shlib-compat.h>.
69551         (_obstack) [defined _LIBC]: Remove after 2.3.4.
69552
69553         * lib/settime.c (settime): Recode to avoid warning with
69554         Sun Forte C 6U2.
69555
69556         * lib/strverscmp.c: Convert to UTF-8.
69557
69558 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69559
69560         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69561         m4/uintmax_t.m4.
69562
69563 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69564
69565         * modules/xalloc-die: New file.
69566         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
69567
69568         * modules/md5 (Files): Add m4/uint32_t.m4.
69569         * modules/sha1: Renamed from modules/sha.
69570         (Files):
69571         Rename lib/sha.h to lib/sha1.h.
69572         Rename lib/sha.c to lib/sha1.c.
69573         Rename m4/sha.m4 to m4/sha1.m4.
69574         (lib_SOURCES): Likewise.
69575         (configure.ac): Rename gl_SHA to gl_SHA1.
69576         (Include): sha.h -> sha1.h.
69577
69578 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69579
69580         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
69581         * m4/sha1.m4: Renamed from sha.m4.
69582         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
69583
69584 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69585
69586         * lib/obstack.h (obstack_empty_p):
69587         Don't assume that chunk->contents is suitably aligned.
69588         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
69589         Likewise. Problem reported by Benno in
69590         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
69591
69592         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
69593         readable.  This could be improved further but it'd take some work.
69594
69595 2004-08-08  Simon Josefsson  <jas@extundo.com>
69596
69597         * modules/xgethostname (Depends-on): Remove exit and error (not
69598         used).
69599
69600         * modules/getpass-gnu: Add getpass.h.
69601         (Depends-on): Add stdbool.
69602         * modules/getpass: Add getpass.h.
69603
69604 2004-08-08  Simon Josefsson  <jas@extundo.com>
69605
69606         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
69607         Check getpass declaration.
69608
69609 2004-08-08  Simon Josefsson  <jas@extundo.com>
69610
69611         * lib/xgethostname.c: Don't include error.h (not used).
69612
69613         * lib/getpass.h: Add.
69614         * lib/getpass.c: Include getpass.h first.
69615
69616 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
69617
69618         * lib/xalloc-die.c: New file.
69619         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
69620         All uses removed.
69621         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
69622         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
69623         xalloc-die.c.
69624         (_, N_, xalloc_die): Move to xalloc-die.c.
69625         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
69626         so that we needn't mess with xalloc_msg_memory_exhausted.
69627
69628         * lib/sha1.h: Renamed from sha.h.
69629         (SHA1_H): Renamed from _SHA_H.
69630         (sha1_ctx): Renamed from sha_ctx.
69631         (sha1_init_ctx): Renamed from sha_init_ctx.
69632         (sha1_process_block): Renamed from sha_process_block.
69633         (sha1_process_bytes): Renamed from sha_process_bytes.
69634         (sha1_finish_ctx): Renamed from sha_finish_ctx.
69635         (sha1_read_ctx): Renamed from sha_read_ctx.
69636         (sha1_stream): Renamed from sha_stream.
69637         (sha1_buffer): Renamed from sha_buffer.
69638         * lib/sha1.c: Likewise; renamed from sha.c.
69639         Do not include <sys/types.h>.
69640         Include <stddef.h> rather than <stdlib.h>.
69641
69642 2004-08-08  Bruno Haible  <bruno@clisp.org>
69643
69644         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
69645         FILESYSTEM_PREFIX_LEN.
69646         * lib/progreloc.c: Likewise.
69647         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
69648
69649 2004-08-06  Simon Josefsson  <jas@extundo.com>
69650
69651         * modules/progname (Depends-on): Don't depend on stdbool.
69652
69653 2004-08-06  Simon Josefsson  <jas@extundo.com>
69654
69655         * modules/getsubopt: New file.
69656         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69657         getsubopt.
69658
69659 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69660
69661         More merge from coreutils.
69662
69663         * m4/utimens.m4, m4/utimecmp.m4: New files.
69664         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
69665         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
69666         prereq.m4, sha.m4: Import changes from coreutils.
69667
69668 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69669
69670         More merge from coreutils.
69671         * modules/raise, modules/readtokens0, modules/utimens:
69672         * modules/utimecmp, module/xnanosleep: New files.
69673         * modules/strftime: Add lib/strftime.h.
69674         Change include from <time.h> to "strftime.h".
69675         * modules/yesno: Add lib/yesno.h.
69676         * modules/backupfile: Remove lib/addext.c.
69677         * modules/euidaccess: Add stat-macros.h.
69678         * modules/canonicalize, modules/euidaccess,
69679         modules/filemode, modules/lchown, modules/makepath,
69680         modules/rmdir, modules/stat: Likewise.
69681
69682 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69683
69684         Merge from tar.
69685         * lib/argp-help.c (make_hol, hol_append): Don't assume that
69686         SIZE_MAX is a valid preprocessor constant.
69687         (__argp_basename): Change from "#ifndef _LIBC"
69688         to "#ifndef __argp_short_program_name", so that
69689         we don't compile these functions for tar.
69690
69691         More merges from coreutils.
69692         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
69693         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
69694         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
69695         * lib/addext.c: Remove; no longer needed.
69696         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
69697         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
69698         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
69699         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
69700         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
69701         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
69702         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
69703         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
69704         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
69705         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69706         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
69707         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
69708         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
69709         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
69710         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
69711         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
69712         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
69713         Import changes from coreutils.
69714
69715 2004-08-05  Simon Josefsson  <jas@extundo.com>
69716
69717         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
69718
69719 2004-08-05  Simon Josefsson  <jas@extundo.com>
69720
69721         * m4/getsubopt.m4: New file.
69722
69723 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69724
69725         Merge from coreutils.
69726
69727         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
69728         * m4/getcwd-path-max.m4: New files.
69729
69730         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
69731         FILESYSTEM_PREFIX_LEN ->
69732         FILE_SYSTEM_PREFIX_LEN.
69733         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
69734         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
69735         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
69736         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
69737
69738         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
69739         prerequisite modules now handle the DOS stuff.
69740         Don't check for unistd.h.
69741
69742 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69743
69744         Merge from coreutils.
69745
69746         * lib/.gdb-history: Remove; this doesn't belong here.
69747
69748         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
69749         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
69750         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
69751         * lib/getcwd.c: New files.
69752
69753         * lib/dirname.h: Include <stdbool.h>.
69754         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
69755         for consistency with POSIX terminology.  All uses changed.
69756         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
69757         (strip_trailing_slashes): Use bool for booleans.
69758         * lib/stripslash.c (strip_trailing_slashes): Likewise.
69759
69760         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
69761         sometimes returns a positive errno value even when it succeeds.
69762         (print_errno_message) [!LIBC]: Fall back on strerror if
69763         __strerror_r fails.
69764
69765         * lib/path-concat.c (mempcpy): Don't define if a system header defines
69766         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
69767         (longest_relative_suffix): New function.
69768         (path_concat): Use it.  Assume first argument is not NULL.
69769         Port to DOS.  Omit redundant separators.
69770         Report an error instead of returning NULL.
69771         Use mempcpy instead of memcpy.
69772         (xpath_concat): Remove: not declared or used.
69773
69774         * lib/same.h: Include <stdbool.h>
69775         (same_name): Return bool, not int.
69776         * lib/same.c (same_name): Likewise.
69777         (errno): Don't declare; we assume C89 or better now.
69778
69779         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
69780         if not already defined.
69781
69782         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
69783         * lib/dup-safer.c (errno): Likewise.
69784
69785 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69786
69787         Merge from coreutils.
69788         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
69789         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
69790         * modules/path-concat: Don't depend on strdup.
69791
69792 2004-08-03  Simon Josefsson  <jas@extundo.com>
69793
69794         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
69795         * lib/progname.h: Don't include stdbool.h.
69796
69797 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69798
69799         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
69800         * MODULES.html.sh (func_all_modules): Remove fatal.
69801
69802 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69803
69804         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
69805
69806 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69807
69808         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
69809         working.
69810
69811 2004-08-02  Simon Josefsson  <jas@extundo.com>
69812
69813         * lib/getsubopt.h: New file, with comments from Bruno Haible.
69814         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
69815         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
69816
69817 2004-08-01  Simon Josefsson  <jas@extundo.com>
69818
69819         * lib/xgetdomainname.c: Include stdlib.h, for free().
69820
69821 2004-07-19  Bruno Haible  <bruno@clisp.org>
69822
69823         * MODULES.html.sh (func_all_modules): Add dummy.
69824
69825 2004-07-16  Simon Josefsson  <jas@extundo.com>
69826
69827         * modules/dummy: New file.
69828
69829 2004-07-16  Simon Josefsson  <jas@extundo.com>
69830
69831         * lib/dummy.c: New file.
69832
69833 2004-07-16  Bruno Haible  <bruno@clisp.org>
69834
69835         * lib/backupfile.h: Add extern "C" for C++.
69836         * lib/closeout.h: Likewise.
69837         * lib/copy-file.h: Likewise.
69838         * lib/findprog.h: Likewise.
69839         * lib/full-write.h: Likewise.
69840         * lib/pathname.h: Likewise.
69841         * lib/progname.h: Likewise.
69842         * lib/stpcpy.h: Likewise.
69843         * lib/stpncpy.h: Likewise.
69844         * lib/strcase.h: Likewise.
69845         * lib/strstr.h: Likewise.
69846         * lib/xalloc.h: Likewise.
69847
69848         * lib/mbswidth.h: Add extern "C" for C++.
69849         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
69850
69851 2004-07-13  Robert Millan  <robertmh@gnu.org>
69852
69853         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
69854
69855 2004-07-09  Simon Josefsson  <jas@extundo.com>
69856
69857         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
69858         failed without this.)
69859
69860 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69861
69862         * modules/chown (Files): Add lib/fchown-stub.c, since
69863         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
69864
69865 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69866
69867         * lib/fchown-stub.c: New file.
69868
69869 2004-06-24  Jim Meyering  <jim@meyering.net>
69870
69871         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
69872
69873 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69874
69875         * modules/argz: Omit "#include".
69876
69877         * MODULES.html.sh (func_all_modules): Add calloc, to match
69878         2004-06-01 addition of calloc module.
69879
69880 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69881
69882         * m4/argz.m4: New file, which is autoupdated from libtool.
69883
69884 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69885
69886         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
69887         libtool.
69888
69889 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69890
69891         * config/srclist-update: Don't insist on "USA." before the
69892         close-comment, as libtool omits the period and puts the */ on a
69893         separate line.
69894         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
69895         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
69896
69897 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
69898
69899         * modules/argz: New file.
69900         * MODULES.html.sh (func_all_modules): Add argz.
69901
69902 2004-06-12  Jim Meyering  <jim@meyering.net>
69903         and  Paul Eggert  <eggert@cs.ucla.edu>
69904
69905         * modules/hash (Files): Add lib/xalloc.h.
69906         * modules/pipe (Depends-on): Add wait-process.
69907         * modules/stat (Depends-on): Add xalloc.
69908         * modules/userspec (Files): Add lib/userspec.h.
69909         * modules/xstrto
69910
69911         Upgrade from gettext-0.13.
69912         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
69913         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
69914         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
69915
69916 2004-06-10  Jim Meyering  <jim@meyering.net>
69917
69918         * lib/calloc.c: New file.
69919
69920 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69921
69922         * lib/getdate.y (yylex): Allow space between sign and number.
69923         Problem reported by Dan Jacobson.
69924
69925 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69926
69927         Merge from coreutils CVS.
69928
69929         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
69930         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
69931         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
69932         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
69933         xstrtol.m4: Fix copyright date and/or serial number.
69934
69935         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
69936         See if we need an fchown replacement.
69937         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
69938         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
69939         and use the replacement function if we detect either defect.
69940
69941         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
69942         gl_UTIMECMP.
69943
69944 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69945         and  Jim Meyering  <jim@meyering.net>
69946
69947         Merge from coreutils CVS.
69948
69949         * lib/stat-macros.h: New file, with contents from file-type.h
69950         and coreutils' system.h.
69951         * lib/file-type.c: Include "stat-macros.h".
69952         * lib/file-type.h (file_type): Move all macro definitions to new file,
69953         stat-macros.h.
69954
69955         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
69956         Wrap old code with this conditional.
69957         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
69958         function that does not dereference symlinks.
69959         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
69960
69961         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
69962         dependency problems.
69963         (xreadlink): Accept new arg SIZE, for efficiency.
69964         All decls and uses changed.
69965         * lib/xreadlink.h: Include <stddef.h>, for size_t.
69966
69967         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
69968         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
69969
69970         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
69971         sysexits.h.
69972
69973 2004-06-01  Jim Meyering  <jim@meyering.net>
69974
69975         * m4/calloc.m4: New file.
69976
69977 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
69978
69979         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
69980         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
69981         Also, fix a typo in a diagnostic.
69982
69983 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69984
69985         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
69986         or AC_FUNC_REALLOC.
69987
69988 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69989
69990         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
69991         macros to be defined.
69992         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
69993         the allocator returns NULL because the requested size is zero.
69994
69995 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69996
69997         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
69998         var.  Add comment explaining why libc still defines it.  This
69999         merges the following patch from glibc:
70000         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
70001
70002 2004-05-20  Andreas Schwab  <schwab@suse.de>
70003
70004         * m4/free.m4: Replace free if it not known to work, not the other
70005         way round.
70006
70007 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70008
70009         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
70010         present in glibc since revision 1.1 of this file.
70011         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
70012         obstack_alignment_mask, obstack_alloc, obstack_base,
70013         obstack_blank, obstack_blank_fast, obstack_chunk_size,
70014         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
70015         obstack_grow0, obstack_init, obstack_int_grow,
70016         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
70017         obstack_next_free, obstack_object_size, obstack_ptr_grow,
70018         obstack_ptr_grow_fast, obstack_room): Remove declarations of
70019         nonexistent functions.
70020
70021 2004-05-18  Karl Berry  <karl@gnu.org>
70022
70023         * config/srclist.txt: break link for vasnprintf.c.
70024
70025 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70026
70027         Port obstack to the AS/400, where pointers are 16 bytes wide and
70028         you cannot cast an integer to a valid pointer.  This patch is
70029         currently waiting to be integrated into glibc; see
70030         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
70031
70032         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
70033         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
70034         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
70035         (struct obstack): temp member is now a union of a pointer and
70036         an integer, instead of an integer.  All integer uses changed.
70037         This does not affect the physical layout of struct obstack,
70038         except on hosts (like the AS/400) where the size or alignment of
70039         void * is greater than that of ptrdiff_t.
70040         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
70041         __STDC__)]: Store temporary in pointer member of union, not
70042         integer member.
70043         * lib/obstack.c: Include <stddef.h>, for offsetof.
70044         (struct fooalign): Remove; it doesn't need a name.
70045         (union fooround): Change double to long double, and add void *.
70046         (DEFAULT_ALIGNMENT): Use offsetof to compute.
70047         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
70048         not a macro.  Hence the values are always int; so remove all
70049         casts-to-int in uses.
70050
70051 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70052
70053         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
70054         we can get this patch merged into glibc.
70055
70056 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70057             Paul Eggert  <eggert@cs.ucla.edu>
70058
70059         * m4/argp: Depend on alloca.
70060
70061 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70062             Paul Eggert  <eggert@cs.ucla.edu>
70063
70064         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
70065         freecoding.
70066
70067 2004-05-17  Bruno Haible  <bruno@clisp.org>
70068
70069         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
70070         precision that consists of a '.' followed by an empty digit string.
70071         Patch by Tor Lillqvist <tml@iki.fi>.
70072
70073 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70074
70075         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
70076         for backward compatibility with older code.  We need our own
70077         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
70078         it under some other name, and our alloca.h will define it.
70079
70080 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70081             Derek Price  <derek@ximbiot.com>
70082
70083         * lib/alloca.c: Include <alloca.h>, to get our interface.
70084         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
70085         include <alloca.h> first.  Use C89 prototype for alloca; this
70086         requires including <stddef.h> for size_t.  Use extern "C" if C++.
70087         Use #elif for simplicity, since we can assume C89 now.
70088         Don't try to source the system alloca.h since it will not be found
70089         and to prevent recursively including its replacement.
70090         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
70091         * lib/regex.c: Likewise.
70092
70093 2004-05-16  Derek Price  <derek@ximbiot.com>
70094             Paul Eggert  <eggert@cs.ucla.edu>
70095
70096         getline cleanup.  This changes the getndelim2 API: both order of
70097         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
70098         no delimiter).
70099
70100         * lib/getline.c: Don't include stddef.h or stdio.h, since our
70101         interface does that.
70102         (getline): Always use getdelim, so that we don't have two
70103         copies of this code.
70104         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
70105         if available.
70106         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
70107         (GETNDELIM2_MAXIMUM): New macro.
70108         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
70109         instead of the old practice of delim2==0.  All callers changed.
70110         Return -1 on overflow, instead of returning junk.
70111         Do not set *linesize unless allocation succeeds.
70112         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
70113         that we include sys/types.h.
70114         * lib/getnline.h: Likewise.
70115         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
70116         (getndelim2): Reorder arguments.
70117         * lib/getnline.c (getnline, getndelim):
70118         Don't discard the NMAX argument.
70119         (getnline): Invoke getndelim, to avoid code duplication.
70120         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
70121         of (size_t) -1 by callers of the getnline family.
70122
70123 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70124
70125         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
70126         Check for gettimeofday.
70127         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
70128         Check for settimeofday, stime.
70129
70130 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70131
70132         * lib/nanosleep.c (suspended): Change its type from int to
70133         sig_atomic_t volatile.
70134         (first_call): Make it private to rpl_nanosleep, and have it
70135         be zero initially as that's a bit faster.
70136         (my_usleep): Round up fractional times instead of truncating them,
70137         as this is the usual meaning for 'sleep'.
70138
70139         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
70140         doesn't work.
70141         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
70142         (ENOSYS): Define if not defined.
70143         (settime): Fall back on stime if it exists and settimeofday fails.
70144         But don't bother with fallbacks if a method fails with errno == EPERM.
70145
70146 2004-05-11  Jim Meyering  <jim@meyering.net>
70147
70148         Prior to this change, the save_cwd caller required read access to the
70149         current directory on most systems (ones with the fchdir function).
70150
70151         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
70152         fails, try write-only, and finally, resort to using xgetcwd.
70153
70154 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70155
70156         * lib/obstack.c, obstack.h: Import changes from libc.
70157
70158 2004-04-28  Bruno Haible  <bruno@clisp.org>
70159
70160         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
70161         also implicitly appends .exe to executables.
70162         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
70163         accepts Windows pathnames.
70164         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70165         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70166         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70167         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70168         Reported by Derek Robert Price <derek@ximbiot.com>.
70169
70170 2004-04-21  Karl Berry  <karl@gnu.org>
70171
70172         * config/srclist.txt (localcharset.c): break sync.
70173
70174 2004-04-20  Paul Eggert  <eggert@twinsun.com>
70175
70176         * m4/host-os.m4: Add a copyright notice.
70177
70178 2004-04-20  Jim Meyering  <jim@meyering.net>
70179
70180         Change UTILS_ to gl_ in AC_DEFINE'd names.
70181         Change utils_- and jm_-prefixed variables, too.
70182         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
70183         UTILS_FUNC_MKDIR_TRAILING_SLASH.
70184         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
70185
70186         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
70187         Don't emit trailing blanks.
70188         Also rename jm_-prefixed variables to have gl_ prefix.
70189
70190         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
70191         Also rename jm_-prefixed variables to have gl_ prefix.
70192
70193         * m4/jm-macros.m4: Reflect the renamings.
70194         * m4/prereq.m4: Likewise.
70195
70196 2004-04-20  Jim Meyering  <jim@meyering.net>
70197
70198         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
70199         memory.
70200
70201 2004-04-20  Jim Meyering  <jim@meyering.net>
70202             Bruno Haible  <bruno@clisp.org>
70203
70204         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
70205         memory when realloc fails.
70206
70207 2004-04-19  Jim Meyering  <jim@meyering.net>
70208
70209         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
70210         now that readutmp.c may call `free (0)'.
70211
70212 2004-04-19  Bruno Haible  <bruno@clisp.org>
70213
70214         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
70215         * m4/inttypes_h.m4: Likewise.
70216         * m4/stdint_h.m4: Likewise.
70217         * m4/intmax_t.m4: Likewise.
70218         * m4/uintmax_t.m4: Likewise.
70219
70220 2004-04-18  Jim Meyering  <jim@meyering.net>
70221
70222         * m4/prereq.m4: Don't forbid jm_ prefix.
70223
70224         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
70225         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
70226         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
70227         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
70228         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
70229         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
70230         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
70231         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
70232         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
70233         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
70234         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
70235         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
70236         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
70237         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
70238         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
70239         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
70240         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
70241         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
70242         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
70243
70244 2004-04-18  Jim Meyering  <jim@meyering.net>
70245
70246         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
70247         failure, don't leak memory and do call END_UTMP_ENT.
70248
70249 2004-04-16  Jim Meyering  <jim@meyering.net>
70250
70251         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
70252         coreutils' stat program.
70253         (gl_PREREQ): Don't require jm_PREREQ_STAT.
70254
70255 2004-04-11  Paul Eggert  <eggert@twinsun.com>
70256
70257         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
70258         C89.
70259         (CHAR_BIT): Remove, since we assume C89.
70260         Include <stdint.h> if available, as per current Autoconf CVS advice.
70261
70262 2004-03-31  Jim Meyering  <jim@meyering.net>
70263
70264         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
70265         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
70266         * m4/xalloc.m4: Likewise.
70267
70268 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70269
70270         Merge from coreutils.
70271
70272         * m4/inttostr.m4: New file.
70273         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
70274         Require AM_STDBOOL_H and gl_TIMESPEC instead.
70275         Require gl_CLOCK_TIME.
70276         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
70277
70278 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70279
70280         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
70281         not bool, to be more consistent with Unix conventions.
70282         Suggested by Bruno Haible.
70283
70284         Merge from coreutils.
70285
70286         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
70287         * lib/umaxtostr.c: New files.
70288
70289         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
70290         the usual <time.h> dance.
70291         (get_date): Change signature to support fractional time stamps.
70292         All callers changed.
70293         * lib/getdate.y: Include "getdate.h" first, as we can now
70294         assume C89 and don't need to worry about 'const'.
70295         Similarly, include "unlocked-io.h" near start, not in middle.
70296         Include <limits.h>.
70297         (textint.value): Use long int rather than int.
70298         (textint.digits): Use size_t rather than int.
70299         (BILLION, LOG10_BILLION): New constants.
70300         (parser_control): New member rel_ns.  Members day_ordinal,
70301         time_zone, month, day, hour, minutes, rel_year, rel_month,
70302         rel_day, rel_hour, rel_minutes, rel_seconds
70303         are now long int, not int.  Member seconds is now struct timespec,
70304         not int.  New member timespec_seen.  Members dates_seen, days_seen,
70305         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
70306         not int.
70307         (%union.intval): Now long int, not int.
70308         New member timespec.
70309         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
70310         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
70311         (spec): Now is a timespec or an item list.
70312         (timespec, items): New nonterminals.
70313         (time, rel, relunit, number, get_date):
70314         Add support for fractional seconds.
70315         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
70316         (gmtime, localtime, mktime): Remove decls; not needed with C89.
70317         (to_hour): First arg is now long int, not int.
70318         (to_year): Returns long int, not int.
70319         Don't treat year -70 like 70.
70320         (tm_diff): Returns long int, not int.
70321         (lookup_word): Use bool instead of int when appropriate.
70322         (yylex): Use size_t for count, not int.
70323         Detect overflow when parsing large integer constants.
70324         Add support for fractions.
70325         (get_date): Make pointers 'const' if possible.
70326         Use more-portable code to detect integer overflow.
70327         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
70328         Don't use ctime; it's not reliable if the year has >4 digits.
70329
70330         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
70331         This is for compatibility with BSD.
70332
70333         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
70334         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
70335         From coreutils' system.h.
70336
70337         * lib/userspec.c: Don't include "posixver.h".
70338         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
70339         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
70340         compatible extension.  Simplify code by removing a boolean int
70341         that was always nonzero if a string was nonnull.
70342
70343 2004-03-30  Jim Meyering  <jim@meyering.net>
70344
70345         Merge from coreutils.
70346
70347         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
70348         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
70349         on some systems one must include <grp.h> before it.
70350         Reported by Christian Krackowizer.
70351
70352 2004-03-30  Jim Meyering  <jim@meyering.net>
70353
70354         Merge from coreutils.
70355
70356         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
70357
70358         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
70359         an empty input stream.
70360
70361         * lib/readtokens.c: Include <stdbool.h>.
70362         (readtoken): Use `size_t' rather than int/long.
70363         All callers adjusted.
70364         Use `bool' rather than `int' where appropriate.
70365         Use memset rather than an explicit loop.
70366         Use x2nrealloc rather than xrealloc.
70367         Allow the use of `\0' as a delimiter.
70368         (readtokens): Likewise.
70369         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
70370
70371 2004-03-30  Jim Meyering  <jim@meyering.net>
70372
70373         * m4/realloc.m4: Remove file, since now it does no more than
70374         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
70375         the `configure.ac' section of module/realloc.
70376         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
70377
70378 2004-03-30  Bruno Haible  <bruno@clisp.org>
70379
70380         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
70381         nonnull.
70382
70383 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70384
70385         Merge changes to getloadavg.c from coreutils and Emacs.
70386
70387         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
70388         Define to an expression, not to the empty string.
70389         Include cloexec.h and xalloc.h.
70390         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
70391         Use set_cloexec_flag rather than rolling our own.
70392         * lib/cloexec.c, lib/cloexec.h: New files.
70393
70394 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70395
70396         * m4/cloexec.m4: New file.
70397
70398 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70399
70400         * lib/getopt.h: Sync with libc CVS.
70401
70402 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70403             Bruno Haible  <bruno@clisp.org>
70404
70405         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
70406         mbswidth.
70407
70408 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70409             Bruno Haible  <bruno@clisp.org>
70410
70411         * lib/mbswidth.h: Include <wchar.h> only if
70412         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
70413         <wchar.h>.
70414         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
70415
70416 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70417
70418         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
70419         Sync with libc CVS.
70420         * lib/getopt_int.h: New file, also synced from libc.
70421
70422 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70423
70424         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
70425         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
70426         Bring back getopt.c, getopt.h, getopt1.c.
70427
70428 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70429
70430         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
70431         All uses changed.  Check for sa_sigaction member; this fixes
70432         a bug first reported by Jason Andrade in
70433         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70434
70435 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70436
70437         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
70438         '#if' expressions.  Unlike the code it replaces, it does not
70439         depend on (defined _SC_PAGESIZE).  However, it does depend on
70440         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
70441         first reported by Jason Andrade in
70442         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70443
70444 2004-02-25  Simon Josefsson  <jas@extundo.com>
70445
70446         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
70447
70448 2004-02-25  Simon Josefsson  <jas@extundo.com>
70449
70450         * lib/strdup.h: New file.
70451         * lib/strdup.c: Include it.
70452         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
70453         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
70454
70455 2004-02-23  Karl Berry  <karl@gnu.org>
70456
70457         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
70458         (from fencepost.gnu.org:/gd/gnuorg).
70459
70460 2004-02-23  Karl Berry  <karl@gnu.org>
70461
70462         * config/srclistvars.sh (GNUORG) [karl]: redefine.
70463         * config/srclist.txt: add maintain/standards documents.
70464
70465 2004-02-18  Bruno Haible  <bruno@clisp.org>
70466
70467         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
70468         Reported by Derek Robert Price <derek@ximbiot.com>.
70469
70470 2004-02-16  Karl Berry  <karl@gnu.org>
70471
70472         * config/mkinstalldirs, install-sh: update from automake.
70473
70474 2004-02-06  Karl Berry  <karl@gnu.org>
70475
70476         * m4/po.m4: update from gettext 0.14.1.
70477
70478 2004-02-06  Karl Berry  <karl@gnu.org>
70479
70480         * lib/config.charset: update from gettext 0.14.1.
70481
70482 2004-02-05  Paul Eggert  <eggert@twinsun.com>
70483
70484         Add comments and code, prompted by suggestions from Bruno Haible
70485         for sh-quote.
70486         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
70487         describing the enum quoting_style values.
70488         * lib/quotearg.c (quotearg_alloc): New function.
70489         (quotearg_buffer_restyled): Treat lone { and } as special.
70490         Treat = as special.  Work around bug with older shells
70491         that "see" a '\' that is really the 2nd byte of a multibyte char.
70492         Quote empty string with shell_quoting_style.
70493
70494 2004-02-03  Bruno Haible  <bruno@clisp.org>
70495
70496         * m4/pipe.m4: New file, from GNU gettext.
70497
70498 2004-02-03  Bruno Haible  <bruno@clisp.org>
70499
70500         * lib/pipe.h: New file, from GNU gettext.
70501         * lib/pipe.c: New file, from GNU gettext.
70502
70503 2004-01-27  Bruno Haible  <bruno@clisp.org>
70504
70505         * m4/execute.m4: New file, from GNU gettext.
70506
70507 2004-01-27  Bruno Haible  <bruno@clisp.org>
70508
70509         * lib/execute.h: New file, from GNU gettext.
70510         * lib/execute.c: New file, from GNU gettext.
70511         * lib/w32spawn.h: New file, from GNU gettext.
70512
70513 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70514
70515         Merge from diffutils.
70516
70517         * lib/file-type.c (file_type): Add typed memory objects.
70518         * lib/file-type.h (S_TYPEISTMO): New macro.
70519
70520         * lib/c-stack.h (c_stack_action): Remove argv argument.
70521         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
70522         (die): Don't calculate message unless segv_action returns.
70523         (get_stack_location, min_address_from_argv, max_address_from_argv,
70524         volatile stack_base, volatile_stack_size): Remove.
70525         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
70526         that every segmentation violation is a stack overflow.  (Ouch!)
70527         See Debian bug 136249 (still outstanding) for more info about why
70528         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
70529
70530 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70531
70532         Exit-status fix from coreutils.
70533
70534         Use exit_failure consistently in place of EXIT_FAILURE,
70535         so that program exit statuses are consistent on failure.
70536
70537         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
70538         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
70539         * lib/argmatch.h: Comment fix to match the above.
70540         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
70541         Now a macro referring to exit_failure, instead of a separate
70542         variable.  Include "exitfail.h" to get it.
70543         * lib/xstrtol.h: Include "exitfail.h".
70544         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
70545
70546         * lib/long-options.c (parse_long_options): Use prototype
70547         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
70548         for clarity.
70549
70550 2004-01-21  Jim Meyering  <jim@meyering.net>
70551
70552         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
70553         so as not to conflict with a different-sized __mktime_internal
70554         function in GNU libc.
70555         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
70556         Problem building statically-linked `ls' reported by Michael Brunnbauer.
70557
70558 2004-01-20  Karl Berry  <karl@gnu.org>
70559
70560         * config/config.guess: update from config.
70561
70562         * config/srclistvars.sh: GNUWWWLICENSES for karl.
70563
70564 2004-01-20  Bruno Haible  <bruno@clisp.org>
70565
70566         Safer stack allocation.
70567         * lib/setenv.c: Include allocsa.h.
70568         (alloca): Remove fallback definition.
70569         (freea): Remove macro.
70570         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
70571         instead of freea.
70572
70573 2004-01-20  Bruno Haible  <bruno@clisp.org>
70574
70575         * m4/eealloc.m4: New file, from GNU gettext.
70576
70577 2004-01-20  Bruno Haible  <bruno@clisp.org>
70578
70579         * m4/allocsa.m4: New file, from GNU gettext.
70580
70581 2004-01-20  Bruno Haible  <bruno@clisp.org>
70582
70583         * lib/xallocsa.h: New file, from GNU gettext.
70584         * lib/xallocsa.c: New file, from GNU gettext.
70585
70586 2004-01-20  Bruno Haible  <bruno@clisp.org>
70587
70588         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
70589
70590 2004-01-20  Bruno Haible  <bruno@clisp.org>
70591
70592         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
70593         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
70594         specially.
70595
70596 2004-01-20  Bruno Haible  <bruno@clisp.org>
70597
70598         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
70599         patch.
70600
70601 2004-01-20  Bruno Haible  <bruno@clisp.org>
70602
70603         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
70604
70605 2004-01-20  Bruno Haible  <bruno@clisp.org>
70606
70607         * lib/eealloc.h: New file.
70608
70609 2004-01-20  Bruno Haible  <bruno@clisp.org>
70610
70611         * lib/binary-io.h: Avoid warnings on Cygwin.
70612
70613 2004-01-20  Bruno Haible  <bruno@clisp.org>
70614
70615         * lib/allocsa.h: New file, from GNU gettext.
70616         * lib/allocsa.c: New file, from GNU gettext.
70617
70618 2004-01-18  Karl Berry  <karl@gnu.org>
70619
70620         * doc/gpl.texi, doc/lgpl.texi: new files.
70621
70622 2004-01-18  Karl Berry  <karl@gnu.org>
70623
70624         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
70625         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
70626
70627 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70628
70629         Merge from coreutils.
70630
70631         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
70632         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
70633         (gl_DEFAULT_POSIX2_VERSION): Move
70634         the documentation from 'configure' into 'config.hin',
70635         so that 'configure --help' isn't burdened by it and
70636         we don't have to worry about its formatting there.
70637         Reword the documentation so that it's more succinct
70638         and can be run together into a single paragraph.
70639         * m4/same.m4 (gl_SAME): Check for pathconf.
70640
70641 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70642
70643         Merge from coreutils.
70644
70645         * lib/posixver.c: Include posixver.h.
70646
70647         * lib/same.c: Include <stdbool.h>, <limits.h>.
70648         (_POSIX_NAME_MAX): Define if not defined.
70649         (MIN): New macro.
70650         (same_name): If file names are silently truncated, report
70651         that the file names are the same if they are the same after
70652         the silent truncation.
70653
70654         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
70655         conversion function.
70656         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
70657         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
70658         longer needed.
70659
70660 2004-01-15  Jim Meyering  <jim@meyering.net>
70661
70662         Merge from coreutils.
70663
70664         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
70665         if no library is required.
70666         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
70667         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
70668         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
70669         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
70670         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
70671         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
70672         value, $ac_cv_search_crypt, if it's "none required".
70673         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
70674         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
70675         not gl_FUNC_GETLOADAVG.
70676         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
70677         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
70678
70679 2004-01-15  Jim Meyering  <jim@meyering.net>
70680
70681         Merge from coreutils.
70682
70683         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
70684         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
70685         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
70686
70687         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
70688         optional configure-time default.
70689
70690         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70691
70692         * lib/xreadlink.c (xreadlink): Correct outdated comment.
70693
70694 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
70695
70696         Merge from coreutils.
70697
70698         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
70699         value, $ac_cv_search_nanosleep, if it's "none required".
70700
70701 2004-01-14  Paul Eggert  <eggert@twinsun.com>
70702
70703         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
70704         with like-named macro in fnmatch.c.
70705         (EXT): Use an internal constant instead.
70706
70707         Merge fnmatch patches from glibc.
70708         * lib/fnmatch.c (mbsinit): Remove define.
70709         Add libc_hidden_ver (__fnmatch, fnmatch).
70710         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
70711         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
70712
70713 2004-01-14  Karl Berry  <karl@gnu.org>
70714
70715         * config/install-sh: update from automake.
70716
70717 2004-01-13  Karl Berry  <karl@gnu.org>
70718
70719         * config/install-sh: update from automake.
70720
70721 2004-01-09  Karl Berry  <karl@gnu.org>
70722
70723         * config/install-sh: update from automake.
70724
70725 2004-01-05  Karl Berry  <karl@gnu.org>
70726
70727         * config/config.{sub,guess}: update from config.
70728
70729 2003-12-31  Karl Berry  <karl@gnu.org>
70730
70731         * config/depcomp: update from automake.
70732
70733 2003-12-14  Karl Berry  <karl@gnu.org>
70734
70735         * lib/config.charset: update from gettext-runtime.
70736
70737 2003-12-03  Paul Eggert  <eggert@twinsun.com>
70738
70739         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
70740         Bug reported by Alfred M. Szmidt.
70741
70742 2003-12-03  Bruno Haible  <bruno@clisp.org>
70743
70744         * m4/gettext.m4: Upgrade from gettext-0.13.
70745         * m4/po.m4: Upgrade from gettext-0.13.
70746         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
70747         * m4/intmax.m4: New file, from gettext-0.13.
70748         * m4/printf-posix.m4: New file, from gettext-0.13.
70749
70750 2003-11-29  Karl Berry  <karl@gnu.org>
70751
70752         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
70753
70754 2003-11-25  Paul Eggert  <eggert@twinsun.com>
70755             Bruno Haible  <bruno@clisp.org>
70756
70757         * lib/printf-parse.h: Don't include sys/types.h.
70758         (ARG_NONE): New macro.
70759         (char_directive): Change type of *arg_index fields to size_t.
70760         * lib/printf-parse.c: Don't include sys/types.h.
70761         (SSIZE_MAX): Remove macro.
70762         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
70763         Remove unnecessary overflow check.
70764         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
70765         fields.
70766
70767 2003-11-25  Bruno Haible  <bruno@clisp.org>
70768
70769         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
70770
70771 2003-11-25  Bruno Haible  <bruno@clisp.org>
70772
70773         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
70774         gt_TYPE_SSIZE_T.
70775
70776 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70777
70778         * modules/alloca: Remove dependency on xalloc.
70779
70780 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70781
70782         * lib/alloca.c: Remove dependency on xalloc module.
70783         (xalloc_die): Remove.
70784         (memory_full) [!defined emacs]: New macro.
70785         [!defined emacs]: Don't include xalloc.h.
70786         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
70787         address arithmetic overflows.  Change datatypes a bit to avoid
70788         unnecessary casts.
70789
70790 2003-11-22  Jim Meyering  <jim@meyering.net>
70791
70792         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
70793         s/size/size_t/.
70794
70795 2003-11-21  Karl Berry  <karl@gnu.org>
70796
70797         * config/config.{sub,guess}: update from config.
70798
70799 2003-11-18  Karl Berry  <karl@gnu.org>
70800
70801         * config/config.{sub,guess}: update from config.
70802
70803         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
70804
70805 2003-11-17  Paul Eggert  <eggert@twinsun.com>
70806
70807         * README: Mention that S+T cannot overflow if S is the size of
70808         an existing object and T is sufficiently small.
70809
70810 2003-11-17  Jim Meyering  <jim@meyering.net>
70811
70812         On systems without utime and without a utimes function capable of
70813         dealing with a NULL struct utimbuf* argument, this utime replacement
70814         could -- in unusual circumstances -- leak a file descriptor.
70815         * lib/utime.c: Include <unistd.h> and <errno.h>.
70816         (utime_null): Be sure to close `fd' and to preserve errno.
70817         Reported by Geoff Collyer via Arnold Robbins.
70818
70819 2003-11-17  Bruno Haible  <bruno@clisp.org>
70820
70821         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
70822         (Depends-on): Add xsize.
70823
70824 2003-11-17  Bruno Haible  <bruno@clisp.org>
70825
70826         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
70827
70828 2003-11-17  Bruno Haible  <bruno@clisp.org>
70829
70830         * lib/vasnprintf.c (alloca): Remove fallback definition.
70831         (freea): Remove definition.
70832         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
70833         Reported by Paul Eggert.
70834
70835 2003-11-16  Paul Eggert  <eggert@twinsun.com>
70836             Bruno Haible  <bruno@clisp.org>
70837
70838         Protect against address arithmetic overflow.
70839         * lib/printf-args.h: Include stddef.h.
70840         (arguments): Change type of field 'count' to size_t.
70841         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
70842         'unsigned int' where appropriate.
70843         * lib/printf-parse.h: Include sys/types.h.
70844         (char_directive): Change type of *arg_index fields to ssize_t.
70845         (char_directives): Change type of fields 'count', max_*_length to
70846         size_t.
70847         * lib/printf-parse.c: Include sys/types.h and xsize.h.
70848         (SSIZE_MAX): Define fallback value.
70849         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
70850         instead of 'int' where appropriate. Check a_allocated, d_allocated
70851         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
70852         * lib/vasnprintf.c: Include xsize.h.
70853         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
70854         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
70855         overflow. Avoid wraparound when converting a width or precision from
70856         decimal to binary.
70857
70858 2003-11-16  Bruno Haible  <bruno@clisp.org>
70859
70860         Update from GNU gettext.
70861         * lib/printf-parse.c: Generalize to it can be compiled for wide
70862         strings.
70863         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
70864         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
70865         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
70866         SNPRINTF): New macros.
70867         Don't include <alloca.h> if the file is used inside libintl.
70868         (local_wcslen): New function, for Solaris 2.5.1.
70869         (VASNPRINTF): Use it instead of wcslen.
70870
70871 2003-11-16  Bruno Haible  <bruno@clisp.org>
70872
70873         * lib/xsize.h (xmax): New function.
70874         (xsum, xsum3, xsum4): Declare as "pure" functions.
70875
70876 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70877
70878         * modules/xalloc (Files): Undo latest change, since xalloc.h
70879         no longer needs SIZE_MAX or PTRDIFF_MAX.
70880
70881 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70882
70883         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
70884         gl_PTRDIFF_MAX.
70885
70886 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70887
70888         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
70889         "return", to pacify some unknown compiler.  Problem reported
70890         by Joerg Schilling.
70891
70892 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70893
70894         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
70895         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
70896         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
70897         heuristic is just as accurate as far as we know, and it removes a
70898         dependency on size_max.m4 and ptrdiff_max.m4.
70899
70900 2003-11-11  Bruno Haible  <bruno@clisp.org>
70901
70902         * modules/xsize (Files): Add m4/size_max.m4.
70903         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
70904
70905 2003-11-11  Bruno Haible  <bruno@clisp.org>
70906
70907         * m4/size_max.m4: New file.
70908         * m4/ptrdiff_max.m4: New file.
70909         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
70910         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
70911         (gl_XALLOC): Invoke it.
70912
70913 2003-11-11  Bruno Haible  <bruno@clisp.org>
70914
70915         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
70916         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
70917         defined.
70918
70919 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70920
70921         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70922         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
70923         rejected some allocations of exactly SIZE_MAX - 2 bytes.
70924         From Bruno Haible.
70925         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
70926         not (size_t) -1, since it's defined here.
70927
70928 2003-11-09  Karl Berry  <karl@gnu.org>
70929
70930         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
70931
70932 2003-11-06  Paul Eggert  <eggert@twinsun.com>
70933
70934         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
70935         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
70936         Reject sizes of exactly SIZE_MAX bytes.
70937         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
70938         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
70939
70940 2003-11-05  Bruno Haible  <bruno@clisp.org>
70941
70942         * lib/xsize.h: Include limits.h, to avoid a possible collision with
70943         SIZE_MAX defined in <limits.h> on Solaris.
70944
70945 2003-11-04  Jim Meyering  <jim@meyering.net>
70946
70947         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
70948         variable names, rather than @VAR@.
70949         * modules/poll: Likewise.
70950
70951 2003-11-04  Bruno Haible  <bruno@clisp.org>
70952
70953         * modules/xsize: New file.
70954         * modules/linebreak: Depend on xsize.
70955         * MODULES.html.sh (func_all_modules): Add xsize.
70956
70957 2003-11-04  Bruno Haible  <bruno@clisp.org>
70958
70959         * m4/xsize.m4: New file.
70960
70961 2003-11-04  Bruno Haible  <bruno@clisp.org>
70962
70963         * lib/xsize.h: New file.
70964         * lib/linebreak.c: Include xsize.h.
70965         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
70966         argument for overflow.
70967         Suggested by Paul Eggert.
70968
70969 2003-11-03  Karl Berry  <karl@gnu.org>
70970
70971         * config/config.{guess,sub}: update from config.
70972
70973 2003-11-03  Jim Meyering  <jim@meyering.net>
70974
70975         * modules/userspec (lib_SOURCES): Add userspec.h.
70976         (Include): Add "userspec.h".
70977         Improve description.
70978
70979 2003-11-03  Jim Meyering  <jim@meyering.net>
70980
70981         * lib/userspec.c: Include "userspec.h".
70982         * lib/userspec.h: New file.
70983
70984 2003-11-03  Bruno Haible  <bruno@clisp.org>
70985
70986         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
70987
70988 2003-11-03  Bruno Haible  <bruno@clisp.org>
70989
70990         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
70991         available, to avoid (extremely rare) race condition.
70992         Suggested by Paul Eggert.
70993
70994 2003-11-02  Karl Berry  <karl@gnu.org>
70995
70996         * config/srclist.txt (vasprintf.c): sync broken, sigh.
70997
70998 2003-10-31  Paul Eggert  <eggert@twinsun.com>
70999
71000         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
71001         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
71002         (read_filesystem_list): Set and use me_type_malloced.
71003         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
71004         whatever the type happens to be), for brevity and consistency.
71005         Check for size calculation overflow on Alphas running OSF/1.
71006
71007 2003-10-31  Jim Meyering  <jim@meyering.net>
71008
71009         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
71010
71011         * lib/linebuffer.c: Include <string.h> for declaration of memset.
71012
71013 2003-10-30  Paul Eggert  <eggert@twinsun.com>
71014             Bruno Haible  <bruno@clisp.org>
71015
71016         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
71017         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
71018
71019 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71020
71021         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
71022         netbsd*-gnu*.  Suggested by Robert Millan.
71023
71024 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71025
71026         * modules/group-member: Depend on stdbool.
71027
71028 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71029
71030         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
71031
71032 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71033
71034         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
71035         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
71036         after the 'gnu' in these cases.  This fixes some bugs in the
71037         previous change, and is based on suggestions by Robert Millan.
71038
71039 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71040
71041         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
71042         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
71043         no longer needed.
71044         * lib/quotearg.c (quotearg_n_options): Use it.
71045         * lib/group-member.c: Include <stdbool.h>.
71046         (free_group_info): Arg is now const *; don't free arg.
71047         (get_group_info): Now returns bool and accepts struct group_info *,
71048         rather than returning a malloc'ed struct group_info *.
71049         All uses changed.  Check for overflow in internal size calculation.
71050
71051         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
71052         rather than xmalloc/xrealloc.
71053         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
71054         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
71055         conformance bug: the old code used a pointer after freeing the
71056         storage that it addressed.
71057         * lib/hash.c (hash_initialize): Simplify the code by using
71058         xalloc_oversized rather than doing it by hand.
71059         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
71060         the buffer preserved.  Use free and xmalloc instead.
71061         * lib/quotearg.c (quotearg_n_options): Likewise.
71062         Use a simpler test for size overflow.  Don't use xalloc_oversized
71063         because unsigned int might be wider than size_t (!); this suggests
71064         that we should switch from unsigned int to size_t for slot numbers.
71065
71066 2003-10-28  Paul Eggert  <eggert@twinsun.com>
71067
71068         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
71069         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
71070         NetBSD kernels.  Requested by Richard Stallman.
71071
71072 2003-10-27  Paul Eggert  <eggert@twinsun.com>
71073
71074         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
71075         to allocate the returned structure.  Do not allocate a subarray,
71076         as x2nrealloc will do that.
71077         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
71078         instead of xnrealloc.
71079         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
71080
71081 2003-10-27  Bruno Haible  <bruno@clisp.org>
71082
71083         * lib/stdbool_.h: Better support for BeOS.
71084
71085 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71086
71087         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
71088         now uses inline.
71089
71090 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71091
71092         * lib/xalloc.h (xalloc_oversized): New static inline function, for
71093         callers that want to do their own size-overflow checking.  Include
71094         <stdbool.h>, since xalloc_oversized returns bool.
71095         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
71096         to use xalloc_oversized.
71097
71098         Add two functions x2realloc, x2nrealloc, for programs that grow
71099         arrays dynamically by doubling their sizes.
71100         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
71101         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
71102         New functions.
71103
71104         Port to C99 semantics for 'inline' of external functions.
71105         Bug reported by Bruno Haible.
71106         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
71107         with the old contents of xnmalloc.
71108         (xnmalloc, xmalloc): Use it.
71109         (xnrealloc_inline): New static inline function,
71110         with the old contents of xnrealloc.
71111         (xnrealloc, xrealloc): Use it.
71112
71113         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
71114         that.
71115
71116 2003-10-26  Karl Berry  <karl@gnu.org>
71117
71118         * config/srclist.txt (COPYING.DOC): no longer available from
71119         /gd/gnuorg; don't know where the ultimate source is.
71120
71121 2003-10-25  Paul Eggert  <eggert@twinsun.com>
71122
71123         Fix several address-calculation bugs in the hash modules,
71124         plus some minor code cleanup.
71125
71126         * lib/hash.h: Include <stdbool.h>, for bool.
71127         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
71128         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
71129         hash_get_n_entries, hash_get_max_bucket_length,
71130         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
71131         hash_rehash): Use size_t rather than unsigned.
71132         * lib/hash.c (struct hash_table, hash_get_n_buckets,
71133         hash_get_n_buckets_used, hash_get_n_entries,
71134         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
71135         hash_get_entries, hash_do_for_each, hash_string, is_prime,
71136         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
71137         Likewise.
71138         (SIZE_MAX): Define if not defined.
71139         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
71140         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
71141         hash_print):
71142         Use const * when possible.
71143         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
71144         (check_tuning): Fix bug: if tuning parameters were very close to
71145         0 or 1, rounding errors could have caused subscript violations.
71146         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
71147         (hash_initialize): Add 'fail:' label
71148         to free table and return NULL, and use it to simplify code.
71149         Use calloc rather than clearing the storage ourself.
71150         (hash_initialize, hash_rehash): Check for arithmetic overflow in
71151         buffer size calculations.
71152         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
71153         Include <stddef.h>, for size_t.
71154         * lib/hash-pjw.c (hash_pjw): Likewise.
71155         Switch to method described by Bruno Haible.
71156         Include <limits.h>, for CHAR_BIT.
71157         (SIZE_BITS): New macro.
71158
71159 2003-10-23  Paul Eggert  <eggert@twinsun.com>
71160
71161         * m4/getline.m4 (AM_FUNC_GETLINE):
71162         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
71163         hosts.  Problem reported by Derek Robert Price in
71164         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
71165         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
71166         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
71167
71168 2003-10-21  Paul Eggert  <eggert@twinsun.com>
71169
71170         * lib/getndelim2.c (getndelim2): When size calculation overflows,
71171         ceiling the allocation at NMAX bytes rather than silently
71172         discarding input bytes before NMAX is reached.  This makes
71173         a difference only if NMAX exceeds SIZE_MAX / 2.
71174
71175         * lib/obstack.c: Merge from glibc.
71176         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
71177         Add libc_hidden_def (_obstack_newchunk).
71178         (_obstack_free) [! defined _LIBC]: Remove.
71179         [defined _LIBC]: Make a strong alias from obstack_free, rather than
71180         a clone of the function body.
71181         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
71182         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
71183
71184         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
71185         glibc.
71186         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
71187         arg to memcpy.
71188
71189         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
71190         (obstack_ptr_grow_fast, obstack_int_grow_fast):
71191         Don't use lvalue casts, as GCC plans to remove support for them
71192         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
71193         was also present in the non-GCC version, indicating that this
71194         code had always been buggy and had never been widely used.
71195         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
71196         Use the fast variant of each macro, rather than copying the
71197         definiens of the fast variant; that way, we'll be more likely to
71198         catch future bugs in the fast variants.
71199
71200 2003-10-20  Bruno Haible  <bruno@clisp.org>
71201
71202         * modules/wait-process: New file.
71203         * MODULES.html.sh (func_all_modules): Add wait-process.
71204
71205 2003-10-20  Bruno Haible  <bruno@clisp.org>
71206
71207         * m4/wait-process.m4: New file.
71208
71209 2003-10-20  Bruno Haible  <bruno@clisp.org>
71210
71211         * lib/wait-process.h: New file, from GNU gettext.
71212         * lib/wait-process.c: New file, from GNU gettext.
71213
71214 2003-10-19  Jim Meyering  <jim@meyering.net>
71215
71216         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
71217         HPUX 10.20.
71218
71219 2003-10-18  Karl Berry  <karl@gnu.org>
71220
71221         * config/config.guess: update from config.
71222
71223 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71224
71225         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
71226         (getgroups): First arg is int, not size_t.
71227         Don't let 'free' mangle errno.
71228
71229 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71230
71231         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
71232
71233 2003-10-16  Karl Berry  <karl@gnu.org>
71234
71235         * config/config.{guess,sub}: update from config.
71236
71237 2003-10-16  Jim Meyering  <jim@meyering.net>
71238
71239         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
71240         memcpy.
71241
71242 2003-10-15  Paul Eggert  <eggert@twinsun.com>
71243
71244         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
71245         (SIZE_MAX): Remove.
71246         (new_exclude, add_exclude_file): Initial size no longer needs to
71247         be a power of 2.
71248         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
71249         our own address arithmetic overflow checking.
71250
71251         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
71252         (fnmatch): Do not alloca more than 2000 wide characters;
71253         instead, use malloc for large buffers.
71254         Check for address arithmetic overflow, and return -1
71255         with errno set to ENOMEM in that case.
71256         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
71257         (NEW_PATTERN): Do not alloca more than 8000 bytes;
71258         instead, return -1.  Check for address arithmetic overflow.
71259
71260 2003-10-14  Paul Eggert  <eggert@twinsun.com>
71261
71262         Handle invalid suffixes and overflow independently, so that
71263         callers can treat them independently as needed.  Fix some bugs in
71264         suffix handling, e.g., "100k@" was not diagnosed as an invalid
71265         suffix for a human-readable blocksize.  The major caller-visible
71266         change is the addition of a new
71267         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
71268         that both overflow and suffix chars were found.
71269
71270         * lib/human.c (humblock): Don't check separately for invalid suffix
71271         char; that is xstrtoumax's job (now that its bug is fixed).
71272         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
71273         INTMAX_MAX]: New macros.
71274         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
71275         TYPE_MAXIMUM): New macros.
71276         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
71277         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
71278         if overflow occurs, as it's what __strtol does and it's more useful
71279         in practice.
71280         (__xstrtol): If __strtol reports some error other than ERANGE,
71281         reflect it to the caller as LONGINT_INVALID.  If it reports
71282         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
71283         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
71284         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
71285         value.
71286         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
71287         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
71288         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
71289         [defined UINTMAX_MAX]: New macros.
71290
71291 2003-10-14  Bruno Haible  <bruno@clisp.org>
71292
71293         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
71294
71295 2003-10-14  Bruno Haible  <bruno@clisp.org>
71296
71297         * m4/sig_atomic_t: New file, from GNU gettext.
71298         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
71299
71300 2003-10-14  Bruno Haible  <bruno@clisp.org>
71301
71302         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
71303         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
71304         Also use volatile where needed.
71305
71306 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71307
71308         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
71309         Change maintainer from Bruno Haible to 'all'.
71310
71311 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71312
71313         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
71314
71315 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71316
71317         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
71318         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
71319         and define in terms of the other primitives.
71320         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
71321         (SIZE_MAX): Define if not already defined.
71322         (array_size_overflow): New function.
71323         (xalloc_die): Abort instead of exiting if 'error' returns.
71324         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
71325         (xmalloc, xrealloc): Use them.
71326         (xcalloc): Check for address arithmetic overflow.
71327         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
71328         a bit faster than strcpy.
71329
71330 2003-10-10  Simon Josefsson  <jas@extundo.com>
71331
71332         * modules/argp (Depends-on): Add restrict and strcase.
71333
71334 2003-10-10  Simon Josefsson  <jas@extundo.com>
71335
71336         * m4/argp.m4: Add AC_C_INLINE.
71337
71338 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71339
71340         Merge getpass from libc, plus a few fixes.
71341
71342         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
71343         Include <stdbool.h>.
71344         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
71345         __fsetlocking to empty.
71346         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
71347         do include <bits/libc-lock.h>.
71348         Do not include <fcntl.h>; not needed.
71349         [_LIBC]: Include <wchar.h>.
71350         (NOTCANCEL_MODE): New macro.
71351         (flockfile, funlockfile) [_LIBC]: New macros.
71352         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
71353         [!_LIBC]: New macros.
71354         (call_fclose): New function.
71355         (getpass): Use it.  Save tty stream separately; this simplifies the
71356         code and makes it more reliable if stdin happens to equal stdout.
71357         Invoke __fsetlocking on tty.
71358         Handle thread cancellation if needed.
71359         Namespace cleanup (use __tcgetattr, __getline).
71360         Use bool for Booleans.
71361         [USE_IN_LIBIO]: Handle wide streams.
71362         [!_LIBC]: Unconditionally do the fseek, since we don't know what
71363         stream might go where.
71364
71365         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
71366         doesn't have to include <stdio.h> before us.
71367         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
71368         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
71369         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
71370         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
71371         if not declared, so that we can use getpass.c code from libc without
71372         rewriting it.
71373         (flockfile, ftrylockfile, funlockfile): New macros.
71374
71375 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71376
71377         * modules/getpass: Depend on stdbool.
71378
71379 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71380
71381         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
71382
71383 2003-10-07  Karl Berry  <karl@gnu.org>
71384
71385         * config/config.{guess,sub}: update from config.
71386
71387 2003-10-06  Jim Meyering  <jim@meyering.net>
71388             Bruno Haible  <bruno@clisp.org>
71389
71390         This lets translators provide better translations for the
71391         "Written by ..." part of --version output.
71392         * lib/version-etc.h: Include stdarg.h.
71393         (version_etc_copyright): Declare as readonly.
71394         (version_etc): Make this function variadic with a NULL-terminated list
71395         of author name strings.
71396         (version_etc_va): New declaration.
71397         * lib/version-etc.c: Include stdarg.h, stdlib.h.
71398         (version_etc_copyright): Declare as readonly.
71399         (version_etc_va): New function. Provide a different translatable string
71400         for each possible number of authors < 10. Abbreviate when there are 10
71401         authors or more.
71402         (version_etc): Make this function variadic. Call version_etc_va.
71403         Suggestion from Gary V. Vaughan.
71404
71405         * lib/long-options.h (parse_long_options): Change prototype: the
71406         authors string is moved to the end and becomes variadic.
71407         * lib/long-options.c: Include stdarg.h.
71408         (parse_long_options): Make this function variadic, too.
71409         Call version_etc_va, not version_etc.
71410
71411 2003-10-06  Bruno Haible  <bruno@clisp.org>
71412
71413         * modules/version-etc-2: Remove file.
71414         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
71415
71416 2003-10-06  Bruno Haible  <bruno@clisp.org>
71417
71418         * modules/fatal-signal: New file.
71419         * MODULES.html.sh (func_all_modules): Add fatal-signal.
71420
71421 2003-10-06  Bruno Haible  <bruno@clisp.org>
71422
71423         * m4/fatal-signal.m4: New file.
71424         * m4/signalblocking.m4: New file, from GNU gettext.
71425
71426 2003-10-06  Bruno Haible  <bruno@clisp.org>
71427
71428         * lib/version-etc-2.h: Remove file.
71429         * lib/version-etc-2.c: Remove file.
71430
71431 2003-10-06  Bruno Haible  <bruno@clisp.org>
71432
71433         * lib/fatal-signal.h: New file, from GNU gettext.
71434         * lib/fatal-signal.c: New file, from GNU gettext.
71435
71436 2003-10-05  Paul Eggert  <eggert@twinsun.com>
71437
71438         * README: Rework advice for preventing empty .o files.
71439         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
71440         not <sys/types.h>.
71441
71442 2003-10-04  Karl Berry  <karl@gnu.org>
71443
71444         * lib/argp*: update from libc.
71445
71446 2003-10-04  Karl Berry  <karl@gnu.org>
71447
71448         * config/config.{guess,sub}: update from config.
71449
71450 2003-10-02  Bruno Haible  <bruno@clisp.org>
71451
71452         * modules/lchown (Include): Add lchown.h.
71453         * modules/time_r (Include): Use "..." syntax.
71454         * modules/xgetdomainname (Include): Add xgetdomainname.h.
71455
71456 2003-10-01  Simon Josefsson  <jas@extundo.com>
71457
71458         * MODULES.html.sh (func_all_modules): Move gethostname from section
71459         'based on' to section 'lacking' POSIX:2001.
71460
71461 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
71462
71463         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
71464         to output mode on the same stream.
71465
71466 2003-09-29  Paul Eggert  <eggert@twinsun.com>
71467
71468         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
71469         Fix arg typo in previous patch.
71470
71471 2003-09-28  Jim Meyering  <jim@meyering.net>
71472
71473         * lib/error.c: Correct cpp indentation.
71474
71475 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71476
71477         * modules/free: New file.
71478
71479 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71480
71481         * m4/free.m4: New file.
71482
71483 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71484
71485         * lib/minmax.h (MIN, MAX)
71486         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
71487         Omit the special code that used __typeof__, since we worry that
71488         it could be more trouble than it's worth.  See:
71489         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
71490         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
71491
71492         * lib/free.c: New file.
71493
71494 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
71495
71496         Trivial fixes to Makefile.am parts of module listings.
71497         * modules/strstr: Append strstr.h to lib_SOURCES.
71498         * modules/strcase: Likewise, for strcase.h.
71499
71500 2003-09-27  Karl Berry  <karl@gnu.org>
71501
71502         * config/mkinstalldirs: update from automake.
71503
71504 2003-09-26  Paul Eggert  <eggert@twinsun.com>
71505
71506         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
71507         (error_tail): Do not loop, reallocating temporary buffer, since
71508         the output cannot contain more wide characters than the input
71509         contains bytes, the size must be big enough already.  This avoids
71510         one potential size overflow calculation.  Check for size overflow
71511         when calculating temporary buffer size.  Free temporary buffer
71512         when done, if it was allocated with malloc; this plugs a memory
71513         leak.  Remove casts from void * to pointers, that are no longer
71514         needed now that we're assuming C89 or better.
71515
71516         Merge error changes from glibc.
71517
71518         * lib/error.c, error.h: Update copyright notice header to match glibc.
71519         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
71520         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
71521         Disable cancellation while printing error.
71522         * lib/error.h: Prepend __ to parameter names.
71523
71524 2003-09-26  Jim Meyering  <jim@meyering.net>
71525
71526         * lib/error.c (error_tail): Move some declarations
71527         into inner scope where the local variables are used.
71528
71529 2003-09-26  Bruno Haible  <bruno@clisp.org>
71530
71531         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
71532         stpncpy().
71533         Don't define stpncpy through config.h; it's now done through stpncpy.h.
71534
71535 2003-09-26  Bruno Haible  <bruno@clisp.org>
71536
71537         * lib/stpncpy.h (gnu_stpncpy): New declaration.
71538         (stpncpy): Define as alias for gnu_stpncpy.
71539         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
71540
71541 2003-09-25  Simon Josefsson  <jas@extundo.com>
71542
71543         * lib/xgetdomainname.h: New file.
71544         * lib/xgetdomainname.c: New file.
71545
71546 2003-09-25  Simon Josefsson  <jas@extundo.com>
71547             Bruno Haible  <bruno@clisp.org>
71548
71549         * modules/getdomainname: New file.
71550         * modules/xgetdomainname: New file.
71551         * MODULES.html.sh (func_all_modules): Add getdomainname,
71552         xgetdomainname.
71553
71554 2003-09-25  Simon Josefsson  <jas@extundo.com>
71555             Bruno Haible  <bruno@clisp.org>
71556
71557         * m4/getdomainname.m4: New file.
71558
71559 2003-09-25  Simon Josefsson  <jas@extundo.com>
71560             Bruno Haible  <bruno@clisp.org>
71561
71562         * lib/getdomainname.h: New file.
71563         * lib/getdomainname.c: New file.
71564
71565 2003-09-25  Karl Berry  <karl@gnu.org>
71566
71567         * lib/argp-fmtstream.c, argp-help.c: update from libc.
71568
71569 2003-09-25  Karl Berry  <karl@gnu.org>
71570
71571         * config/install-sh: update from automake.
71572
71573 2003-09-25  Bruno Haible  <bruno@clisp.org>
71574
71575         * modules/version-etc-2: New file, from modules/version-etc with
71576         modifications.
71577         * MODULES.html.sh (func_all_modules): Add version-etc-2.
71578
71579 2003-09-25  Bruno Haible  <bruno@clisp.org>
71580
71581         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
71582         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
71583
71584 2003-09-24  Simon Josefsson  <jas@extundo.com>
71585
71586         * modules/xgethostname: Add xgethostname.h.
71587
71588 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71589
71590         * lib/linebuffer.c (freebuffer): Don't free the argument, just
71591         the buffer associated with the argument.  Bug reported by
71592         Simon Josefsson.
71593
71594 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71595
71596         * README: Document assumptions that 'int' is at least 32 bits
71597         wide, that integer arithmetic is 2's complement without overflow,
71598         that there are no holes in integer values, that adding sizes of
71599         two nonoverlapping objects can't overflow, and that all-bits-zero
71600         yields scalar zero.  Fix spelling and capitalization typos.
71601
71602 2003-09-19  Karl Berry  <karl@gnu.org>
71603
71604         * lib/argp.h: update from libc.
71605
71606 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71607
71608         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
71609         to avoid spurious warnings like "AC_RUN_IFELSE was called before
71610         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
71611
71612 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71613
71614         * gnulib-tool: Use "test -h", not "test -L", for portability
71615         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
71616         (tags_regexp): Remove, since \| doesn't conform to POSIX.
71617         (sed_extract_prog): Issue s commands one-by-one, rather than
71618         using \| in one s command.
71619
71620 2003-09-16  Paul Eggert  <eggert@twinsun.com>
71621
71622         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
71623         input error, instead of returning NULL the next time we are called
71624         (and therefore losing track of errno).
71625
71626 2003-09-16  Bruno Haible  <bruno@clisp.org>
71627
71628         * gnulib-tool (func_create_testdir): Warn about duplicated
71629         dependencies.
71630
71631 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71632
71633         * modules/argmatch, modules/fatal, modules/obstack,
71634         modules/xalloc, modules/xgethostname: Sort dependencies by
71635         importance, not alphabetically.
71636
71637 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71638
71639         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
71640         fails, so that the caller gets the proper errno.
71641
71642         * lib/readutmp.c (read_utmp): Likewise.
71643         Check for fstat error.  Close stream and free storage
71644         when failing.
71645
71646 2003-09-14  Karl Berry  <karl@gnu.org>
71647
71648         * config/srclist.txt (strdup.c): disable for c89 changes.
71649
71650 2003-09-14  Jim Meyering  <jim@meyering.net>
71651
71652         * lib/getloadavg.c: Correct cpp indentation.
71653         * lib/strdup.c: Likewise.
71654         * lib/vasnprintf.c: Likewise.
71655
71656 2003-09-14  Bruno Haible  <bruno@clisp.org>
71657
71658         * modules/fwriteerror: New file.
71659         * MODULES.html.sh (func_all_modules): Add fwriteerror.
71660
71661 2003-09-14  Bruno Haible  <bruno@clisp.org>
71662
71663         * lib/fwriteerror.h: New file.
71664         * lib/fwriteerror.c: New file.
71665
71666 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71667
71668         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
71669         modules/xgethostname, modules/xalloc: Depend on exit.
71670
71671 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71672
71673         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
71674
71675         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
71676         and AC_MINIX, too, so that their extensions are available.
71677
71678         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
71679         This macro has been superseded by gl_BACKUPFILE.
71680
71681         More patches to assume C89 or better.
71682
71683         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
71684
71685         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
71686         unconditionally.
71687         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
71688         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
71689         Include <string.h>, <stdlib.h> unconditionally.
71690         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
71691         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
71692         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
71693         headers or for string.h.
71694         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
71695         or strtoul.
71696
71697         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
71698         headers.
71699         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
71700         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71701         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
71702         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
71703         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71704         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
71705         memcpy, memset.
71706         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
71707         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
71708         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
71709         strtol.
71710         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
71711         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
71712         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
71713         strtoul.
71714
71715 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71716
71717         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
71718         * lib/obstack.c [!defined _LIBC]: Likewise.
71719         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
71720         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
71721         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
71722
71723         More changes to assume C89 or better.
71724
71725         * lib/error.c (error_tail): Assume vprintf.
71726
71727         * lib/argmatch.c (getenv): Remove decl.
71728         * lib/progreloc.c (get_full_program_name): Define via prototype.
71729         * lib/setenv.c (clearenv): Likewise.
71730         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
71731         needed.
71732         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
71733         (malloc, memcpy): Remove decls.
71734         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
71735         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
71736         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71737         (memcpy): Remove macro.
71738         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
71739         (__P): Remove.  All uses removed.
71740         (PTR): Remove.  All uses changed to void *.
71741         (CHAR_BIT, NULL): Remove.
71742         (spaces, zeros, memset_space, memset_zero)
71743         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
71744         Remove.
71745         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
71746         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
71747         Define with prototype.
71748         Remove now-unnecessary prototype decl.
71749         (extra_args_spec): Assume ANSI C.  All uses changed.
71750         (extra_args_spec_iso): Remove.
71751         (my_strftime, emacs_strftimeu): Define via prototype.
71752         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
71753         unconditionally.
71754         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
71755         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
71756         (strtoul, strtol): Remove decls.
71757         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
71758         LONG_MAX): Remove.
71759         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71760         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
71761         (LOCALE_PARAM_PROTO): New macro.
71762         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
71763         (INTERNAL (strtol), strtol): Define with a prototype.
71764         (PARAMS): Remove.  All uses removed.
71765         * lib/tempname.c: Include <string.h> unconditionally.
71766         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
71767         * lib/xgethostname.c (main): Define with a prototype.
71768         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
71769         Include <stdlib.h> unconditionally.
71770         (calloc, malloc, realloc, free): Remove decls.
71771         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
71772         Include <stdlib.h> unconditionally.  Sort include file names.
71773         (strtod): Remove.
71774         (xstrtod): Define with a prototype.
71775         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
71776         (strtol, strtoul): Remove decls.
71777
71778 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71779
71780         More patches to assume C89 or better.
71781         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
71782         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
71783         string.h, memchr, STDC_HEADERS.
71784
71785 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71786
71787         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
71788         Include <stdlib.h>, <string.h> unconditionally.
71789         Remove now-unnecessary cast to char *.
71790         * lib/strnlen.c: Include <string.h> unconditionally.
71791         * lib/yesno.c (yesno): Define with a prototype.
71792
71793 2003-09-11  Bruno Haible  <bruno@clisp.org>
71794
71795         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
71796
71797 2003-09-10  Jim Meyering  <jim@meyering.net>
71798
71799         * lib/error.c: Correct indentation of cpp directives.
71800
71801 2003-09-10  Bruno Haible  <bruno@clisp.org>
71802
71803         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
71804         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
71805         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
71806         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
71807         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
71808         <stdlib.h> and <string.h> checks.
71809         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
71810         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
71811
71812 2003-09-10  Bruno Haible  <bruno@clisp.org>
71813
71814         * lib/strcspn.c: Include <string.h> unconditionally.
71815         * lib/strpbrk.c: Include <string.h> unconditionally.
71816         * lib/strstr.c: Include <string.h> unconditionally.
71817         * lib/unicodeio.c: Include <string.h> unconditionally.
71818         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
71819         * lib/unsetenv.c: Likewise.
71820         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
71821         * lib/yesno.c: Include <stdlib.h> unconditionally.
71822         (rpmatch): Add prototype.
71823
71824 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71825
71826         More patches to assume C89 or better.
71827         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
71828         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
71829         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
71830         or for string.h.
71831         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
71832         stdlib.h.
71833         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
71834         C headers.
71835         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
71836         string.h.
71837         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
71838         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
71839         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
71840         or for string.h.
71841         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
71842         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
71843         C headers.
71844         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
71845         memcpy.
71846         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
71847         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
71848         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
71849         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
71850         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
71851         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
71852         string.h, free.
71853         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
71854         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
71855         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
71856         C headers, or for string.h.
71857         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
71858         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
71859         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
71860         headers, memory.h, stdlib.h, string.h, strings.h.
71861         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
71862         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
71863         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
71864         strchr.
71865         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
71866         headers, memory.h, string.h.
71867         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
71868         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
71869         free.
71870         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
71871         headers.
71872         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
71873         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
71874         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
71875         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
71876         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
71877
71878 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71879
71880         More K&R removal.
71881
71882         * lib/acosl.c (main): Use a prototype.
71883         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
71884         tanl.c: Likewise.
71885
71886         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
71887
71888         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
71889         (getopt, etopt_long, getopt_long_only, _getopt_internal)
71890         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
71891         with a prototype.
71892         * lib/getopt.c (const): Remove macro.
71893         Include <string.h> unconditionally.
71894         (my_index): Remove; all uses changed to strchr.
71895         (strlen): Remove decl.
71896         (exchange): Remove forward decl; no longer needed.
71897         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
71898         Define with prototype.
71899         * lib/getopt1.c (const): Remove macro.
71900         (getopt_long, getopt_long_only, main): Define with prototype.
71901
71902         * lib/getugroups.c: Include <string.h> unconditionally.
71903
71904         * lib/getusershell.c: Include <stdlib.h> unconditionally.
71905         (getusershell, setusershell, endusershell, readname, main):
71906         Define with prototypes.
71907
71908         * lib/group-member.c: Include group-member.h first.
71909         Include <stdlib.h> unconditionally.
71910
71911         * lib/hard-locale.c: Include hard-locale.h first.
71912         Include <stdlib.h>, <string.h> unconditionally.
71913
71914         * lib/hash.c (free, malloc): Remove decls.
71915         Include <stdlib.h> unconditionally.
71916
71917         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
71918         (getenv): Do not declare.
71919
71920         * lib/idcache.c: Include <string.h> unconditionally.
71921
71922         * lib/long-options.c: Include long-options.h first, to test interface.
71923         Include <stdlib.h> unconditionally.
71924
71925         * lib/makepath.c: Include makepath.h first, to test interface.
71926         Include <stdlib.h> and <string.h> unconditionally.
71927
71928         * lib/linebuffer.c: Include <stdlib.h>.
71929         (free): Remove decl.
71930
71931         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
71932         stddef.h. rpl_malloc returns void *, not char *.
71933         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
71934         prototype.
71935
71936         * lib/md5.h: Include <limits.h> unconditionally.
71937         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
71938         (__P): Remove; all uses removed.
71939         * lib/md5.c: Include "md5.h" first.
71940         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
71941         md5_buffer, md5_process_bytes, md5_process_block):
71942         Define with prototypes.
71943         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
71944         * lib/sha.c: Include "sha.h" first.
71945         Include <stdlib.h>, <string.h> unconditionally.
71946
71947         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
71948         * lib/memcmp.c (__ptr_t): Likewise.
71949         * lib/memrchr.c (__ptr_t): Likewise.
71950         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
71951         Include <string.h> unconditionally.
71952         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
71953         * lib/memchr.c: Include <stdlib.h> unconditionally.
71954         * lib/memchr.c (LONG_MAX): Remove.
71955         * lib/memrchr.c (LONG_MAX): Likewise.
71956         * lib/memchr.c (__memchr): Define via a prototype.
71957         * lib/memrchr.c (__memrchr): Likewise.
71958         * lib/memcmp.c (__P): Remove, and remove all uses.
71959         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
71960         Remove forward decls; no longer needed.
71961         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
71962         Use types required by C89 in prototype.
71963
71964         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
71965         * lib/savedir.c: Likewise.
71966         * lib/mkdir.c (free): Remove decl.
71967         * lib/rmdir.c (rmdir): Define with a prototype.
71968         * lib/savedir.c: Include savedir.h first, to test interface.
71969
71970         * lib/mktime.c (STDC_HEADERS): Remove.
71971         Include <stdlib.h>, <string.h> unconditionally.
71972
71973         * lib/modechange.c: Include <stdlib.h> unconditionally.
71974         (malloc): Remove decl.
71975
71976         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
71977         (free): Remove decl.
71978
71979         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
71980         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
71981         (This type really should be intptr_t, but that's a C99ism.)
71982         (_obstack_memcpy): Remove: all uses changed to memcpy.
71983         Include <string.h> unconditionally.
71984         (struct obstack): Assume __STDC__ for types of members
71985         chunkfun, freefun, extra_arg.
71986         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
71987         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
71988         obstack_begin, obstack_specify_allocation,
71989         obstack_specify_allocation_with_arg, obstack_chunkfun,
71990         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
71991         Remove unprototyped decls and the macros that use them.
71992         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
71993         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
71994         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
71995         (defined __STDC__ && __STDC__)]:
71996         Remove nonprototyped code.
71997         Include <stdlib.h> unconditionally.
71998         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
71999         _obstack_allocated_p, _obstack_free, obstack_free,
72000         _obstack_memory_used, print_and_abort):
72001         Define using prototypes.
72002         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
72003         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
72004         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
72005         obstack_next_free, obstack_object_size, obstack_room) [0]:
72006         Remove unused, unprototyped code.
72007
72008         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
72009
72010         * lib/physmem.c (physmem_total, physmem_available, main): Define
72011         with prototypes.
72012
72013         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
72014         (main): Define with a prototype.
72015
72016         * lib/posixver.c (getenv): Remove decl.
72017
72018         * lib/putenv.c (malloc): Returns void *, not char *.
72019         Include <string.h> unconditionally.
72020         (strchr, memcpy, NULL): Do not define.
72021
72022         * lib/readtokens.c: Include readtokens.h first, to test interface.
72023         Include <stdlib.h>, <string.h> unconditionally.
72024         (init_tokenbuffer): Define with a prototype.
72025
72026         * lib/regex.c (PARAMS): Remove.  All uses removed.
72027         All uses of _RE_ARGS removed, too.
72028         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72029         unconditionally.
72030         (bzero): Assume memset exists.
72031         (memcmp, memcpy, NULL): Remove.
72032         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
72033         char, or assignments to local vars of type signed char.
72034         (init_syntax_once, PREFIX(extract_number_and_incr),
72035         PREFIX(print_partial_compiled_pattern),
72036         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
72037         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
72038         PREFIX(regex_grow_registers), PREFIX(regex_compile),
72039         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
72040         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
72041         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
72042         wcs_compile_range, byte_compile_range, truncate_wchar,
72043         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
72044         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
72045         count_mbs_length, wcs_re_match_2_internal,
72046         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
72047         PREFIX(alt_match_null_string_p),
72048         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
72049         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
72050         regfree, PREFIX(extract_number)): Define with prototype.  Remove
72051         now-unnecessary declaration, if any.
72052         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
72053         regcomp, regexec):
72054         Remove now-unnecessary casts among pointer types.
72055         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
72056
72057         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
72058         (free): Remove decl.
72059
72060         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
72061
72062         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
72063         (free): Remove decl.
72064
72065         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
72066         * lib/xgetcwd.c: Likewise.
72067
72068         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
72069         (free): Remove decl.
72070
72071         * lib/strchrnul.c (strchrnul): Define with a prototype.
72072         Fix bug: c_in was not converted to char before searching.
72073
72074         The following changes are not K&R related:
72075
72076         * lib/group-member.h: Include <sys/types.h>, so that this file is
72077         self-contained.
72078         * lib/makepath.h: Likewise.
72079
72080         * lib/getusershell.c (readname, default_index, line_size, readname):
72081         Use size_t, not int, for sizes.
72082         (readname): If the size overflows, report an error instead of
72083         looping forever.
72084
72085 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72086
72087         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
72088         libc.
72089
72090 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72091
72092         * README: New section: portability guidelines.
72093
72094 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72095
72096         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
72097         C89 spec.
72098
72099 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72100
72101         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
72102
72103 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72104
72105         Assume C89 or better; remove K&R cruft.
72106         A few of these changes were first proposed by Derek Robert Price
72107         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
72108
72109         * lib/addext.c: Include <string.h> unconditionally.
72110         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
72111         Don't declare getenv or malloc.
72112
72113         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
72114         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
72115         (NULL): Remove.
72116         (find_stack_direction, alloca): Use prototypes.
72117
72118         * lib/atexit.c (atexit): Define using a prototype.
72119
72120         * lib/basename.c, dirname.c, stripslash.c:
72121         Include <string.h> unconditionally.
72122
72123         * lib/bcopy.c: Include <stddef.h>.
72124         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
72125
72126         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
72127
72128         * lib/error.h (error, error_at_line, error_print_progname)
72129         [! (defined (__STDC__) && __STDC__)]: Remove decls.
72130         * lib/error.c: Include error.h first, to check interface.
72131         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72132         (VA_START): Remove; all uses changeed to va_start.
72133         (exit, strerror): Remove decls.
72134         (error_print_progname): Prototype uncondionally.
72135         Don't include <errno.h>; no longer needed.
72136         (private_strerror): Remove.
72137         (error_tail): Always define.
72138         (error, error_at_line): Assume C89 or better; always use prototypes.
72139         * lib/fatal.c: Include "fatal.h" first, to test interface.
72140         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72141         (VA_START): Remove; all uses changed to va_start.
72142         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
72143         this case.
72144         (exit): Remove decl.
72145         (fatal): Prototype unconditionally.  Assume va_start works.
72146         Abort at end, to pacify gcc.
72147
72148         * lib/euidaccess.c (main): Define with a prototype.
72149
72150         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
72151
72152         * lib/exitfail.c: Include <stdlib.h> unconditionally.
72153
72154         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
72155         prototypes.
72156         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
72157         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
72158         (getenv): Remove decl.
72159         (fnmatch): Define using a prototype.
72160         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
72161         (FCT): Define using a prototype.
72162
72163         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
72164
72165         * lib/gethostname.c: Include <stddef.h>.
72166         (gethostname): Define with prototype.  Length is size_t, not int.
72167
72168 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72169
72170         Assume C89 or better; remove K&R cruft.
72171         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
72172         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
72173         string.h, getenv, malloc.
72174         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
72175         headers.
72176         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
72177         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
72178         do not check for strerror.
72179         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
72180         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
72181         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
72182         do not check for doprnt or vprintf.
72183         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
72184         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
72185
72186 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72187
72188         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
72189         getversion.c should have been removed then, but was accidentally
72190         preserved.
72191
72192         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
72193         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
72194
72195 2003-09-08  Karl Berry  <karl@gnu.org>
72196
72197         * config/config.sub, config.guess, srclistvars.sh: update from savannah
72198                 config, forget about prep.
72199
72200         * config/depcomp, missing: update from automake.
72201
72202 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72203
72204         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
72205         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72206
72207 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72208
72209         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
72210         copy_tm_result.  Bug reported by Simon Josefsson in
72211         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72212
72213 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72214
72215         * m4/time_r.m4: New file.
72216         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
72217         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
72218         is. Check for timegm declaration.
72219         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
72220         Do not check for gmtime_r.
72221         Replace mktime if __mktime_internal does not exist and if mktime
72222         hasn't been replaced already.
72223
72224 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72225
72226         * lib/time_r.c, lib/time_r.h: New files.
72227
72228         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
72229         __localtime_r.
72230         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
72231         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
72232
72233         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
72234         __gmtime_r.
72235         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
72236         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
72237         Include <time_r.h>.
72238
72239         * lib/timegm.c: Switch to glibc implementation, with the following
72240         changes:
72241         [defined HAVE_CONFIG_H]: Include <config.h>.
72242         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
72243         (__mktime_internal) [!defined _LIBC]: New decl.
72244         (__gmtime_r) [!defined _LIBC]: New macro and function.
72245         (timegm): Use a prototype, since gnulib assumes C89.
72246         Do not bother declaring tmp to be const, as it's not really usefu.
72247         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
72248         (timegm): Declare only if HAVE_DECL_TIMEGM.
72249
72250 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72251
72252         * MODULES.html.sh (func_all_modules): Add time_r.
72253         * modules/time_r: New file.
72254         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
72255         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
72256
72257 2003-09-03  Paul Eggert  <eggert@twinsun.com>
72258
72259         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
72260         Bug reported by Lute Kamstra in
72261         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
72262
72263         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
72264         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
72265         course with correspondingly smaller numbers for tomorrow and
72266         yesterday.  From Tadayoshi Funaba.  Originally installed into
72267         sh-utils on 1999-08-07, but the patch got lost (I guess during the
72268         coreutils merge?).
72269
72270 2003-08-31  Simon Josefsson  <jas@extundo.com>
72271
72272         * modules/timegm: New file.
72273         * MODULES.html.sh (func_all_modules): Add timegm.
72274
72275 2003-08-31  Simon Josefsson  <jas@extundo.com>
72276
72277         * m4/timegm.m4: New file.
72278
72279 2003-08-31  Simon Josefsson  <jas@extundo.com>
72280
72281         * lib/timegm.h: New file.
72282         * lib/timegm.c: New file.  Based on
72283         wget-1.8.2/src/http.c:mktime_from_utc.
72284
72285 2003-08-31  Karl Berry  <karl@gnu.org>
72286
72287         * lib/argp.h: update from libc.
72288
72289 2003-08-28  Bruno Haible  <bruno@clisp.org>
72290
72291         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
72292         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
72293         followed by '#define fnmatch fnmatch_posix' gives an error.
72294
72295 2003-08-28  Bruno Haible  <bruno@clisp.org>
72296
72297         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
72298         warning on QNX, which defines O_BINARY to 000000.
72299
72300 2003-08-27  Jim Meyering  <jim@meyering.net>
72301
72302         * m4/mkstemp.m4: Require that the system mkstemp be able to create
72303         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
72304         would fail after 32.  Reported by Danny Levinson.  Details here:
72305         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
72306
72307 2003-08-24  Bruno Haible  <bruno@clisp.org>
72308
72309         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
72310         MSVC7 <stdio.h> is included later.
72311
72312 2003-08-22  Simon Josefsson  <jas@extundo.com>
72313
72314         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
72315
72316 2003-08-20  Karl Berry  <karl@gnu.org>
72317
72318         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
72319
72320 2003-08-20  Bruno Haible  <bruno@clisp.org>
72321
72322         * modules/progname: New file.
72323         * MODULES.html.sh (func_all_modules): Add progname.
72324
72325 2003-08-20  Bruno Haible  <bruno@clisp.org>
72326
72327         * lib/progname.h: New file, from GNU gettext.
72328         * lib/progname.c: New file, from GNU gettext.
72329         * lib/progreloc.c: New file, from GNU gettext.
72330
72331 2003-08-19  Jim Meyering  <jim@meyering.net>
72332
72333         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
72334         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
72335
72336 2003-08-19  Bruno Haible  <bruno@clisp.org>
72337
72338         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
72339         more.
72340
72341 2003-08-19  Bruno Haible  <bruno@clisp.org>
72342
72343         * lib/xstrdup.c: Assume <string.h> exists.
72344
72345 2003-08-18  Paul Eggert  <eggert@twinsun.com>
72346
72347         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
72348         in makefile rules.
72349
72350 2003-08-18  Jim Meyering  <jim@meyering.net>
72351
72352         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
72353         * m4/lib-ld.m4: Likewise.
72354
72355 2003-08-18  Jim Meyering  <jim@meyering.net>
72356
72357         * lib/setenv.h: Indent nested cpp directive.
72358         * lib/vasnprintf.c: Remove trailing blanks.
72359
72360 2003-08-17  Simon Josefsson  <jas@extundo.com>
72361
72362         * modules/xstrndup: New file.
72363         * MODULES.html.sh (func_all_modules): Add xstrndup.
72364
72365 2003-08-17  Simon Josefsson  <jas@extundo.com>
72366
72367         * modules/argp: Fix autoconf macro name. Add more dependencies.
72368
72369 2003-08-17  Simon Josefsson  <jas@extundo.com>
72370
72371         * m4/xstrndup.m4: New file.
72372
72373 2003-08-17  Simon Josefsson  <jas@extundo.com>
72374
72375         * m4/argp.m4: New file.
72376
72377 2003-08-17  Simon Josefsson  <jas@extundo.com>
72378             Bruno Haible  <bruno@clisp.org>
72379
72380         * lib/xstrndup.h: New file.
72381         * lib/xstrndup.c: New file.
72382
72383 2003-08-17  Bruno Haible  <bruno@clisp.org>
72384
72385         * modules/strndup (Files, Include): Add lib/strndup.h.
72386
72387 2003-08-17  Bruno Haible  <bruno@clisp.org>
72388
72389         * modules/euidaccess (Files): Add lib/euidaccess.h.
72390
72391 2003-08-17  Bruno Haible  <bruno@clisp.org>
72392
72393         * lib/strndup.h: New file.
72394
72395 2003-08-17  Bruno Haible  <bruno@clisp.org>
72396
72397         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
72398         like AC_GNU_SOURCE.
72399         * modules/extensions (configure.ac): Comment out the invocation of
72400         gl_USE_SYSTEM_EXTENSIONS.
72401
72402 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72403
72404         Merges from coreutils, etc.
72405         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
72406         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
72407         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
72408         fixing a typo.
72409         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
72410         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
72411
72412 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72413
72414         Document merge from coreutils.
72415         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
72416         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
72417         * modules/utime: Add m4/utimes-null.m4.
72418
72419 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72420
72421         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
72422         space, undoing this 2003-08-12 change:
72423         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72424
72425 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72426
72427         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
72428         strtoul.c from libc, undoing this 2003-08-12 change:
72429         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72430
72431 2003-08-16  Jim Meyering  <jim@meyering.net>
72432
72433         Merges from coreutils.
72434         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
72435         prefix.  Adjust cache variables similarly.  Create 500 rather than
72436         just 300 files, to exercise bug on Darwin6.5, too.
72437         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
72438         $missing_dir.
72439         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
72440         AM_SYS_POSIX_TERMIOS.
72441         Reported by mkc@mathdogs.com.
72442         Also change use of $am_cv_sys_posix_termios
72443         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
72444         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
72445         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
72446         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
72447         in /proc/mounts until it finds one with matching device number.  This
72448         is unnecessary when the FILE argument *is* a mount point.  No stat call
72449         is necessary in that case.  So, disable the statvfs-testing code on
72450         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
72451         as RedHat bug# 84846.
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
72460         Merge from coreutils.
72461         * lib/xstrtoimax.c: #else #if -> #elif.
72462         * lib/xstrtoumax.c: Likewise.
72463
72464 2003-08-16  Jim Meyering  <jim@meyering.net>
72465
72466         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
72467         * m4/utimes.m4: Removed.
72468         * m4/utimes-null.m4: Renamed from utimes.m4.
72469
72470         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72471         to 1MB, so as not to render systems with no stack size limit (e.g.,
72472         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72473         Include <unistd.h>.  On some systems,
72474         it is required for the definition of _SC_PAGESIZE.
72475
72476 2003-08-16  Jim Meyering  <jim@meyering.net>
72477         and Paul Eggert  <eggert@cs.ucla.edu>
72478
72479         Merges from coreutils, etc.
72480
72481         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
72482         using the latest version from cvs.  This avoids problems with #line
72483         directives using a vendor (Sun) compiler.
72484         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
72485         Don't set GETGROUPS_LIB here; now it's
72486         done via getgroups.m4's wrapper function.
72487         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
72488         rather than just in sh-util/configure.in, so that the
72489         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
72490         same.
72491         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
72492         AC_FUNC_GETLOADAVG where to find getloadavg.c.
72493         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
72494         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
72495         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
72496         Remove code that is now done by the newly-required macros.
72497         Append $(EXEEXT) to DF_PROG.
72498         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
72499         Do not invoke or require the following here,
72500         since prereq.m4 or some gnulib .m4 now does this for us:
72501         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
72502         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
72503         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
72504         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
72505         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
72506         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
72507         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
72508         AC_FUNC_OBSTACK.
72509         Do not replace the following functions, as this is now the job
72510         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
72511         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
72512         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
72513         atexit getpass, strdup, getpagesize.
72514         Replace 'raise'.
72515         Do not check for the following functions, as this is now the job
72516         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
72517         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
72518         setregid.
72519         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
72520         Check for sys/sysctl.h.
72521         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
72522         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
72523         of checking for ssize_t ourselves.
72524
72525         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
72526         Require every macro that gnulib/modules/* suggests for us.
72527         (jm_PREREQ_ADDEXT): New macro.
72528         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
72529         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
72530
72531         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
72532         (gl_PHYSMEM): Use it.
72533         Also check for `table' function.
72534         Check for new headers and functions.
72535         Add check for sys/sysmp.h.
72536         With suggestions from Kaveh Ghazi.
72537         Ignore headers that are present but cannot be compiled.  This
72538         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
72539         C 5.4.
72540
72541 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72542
72543         Document merge from coreutils.
72544         * modules/userspec: Depend on posixver.
72545         * modules/strftime: Depend on tzset.
72546
72547 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72548
72549         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
72550         rather than tab, after '#' in shell-script copyright notices.
72551         Suggested by Bruno Haible.
72552
72553 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72554
72555         * config/srclist-update: Use three spaces, rather than tab, after '#'
72556         in shell-script copyright notices.  Suggested by Bruno Haible.
72557         Remove unnecessary parenthesization in regular expression.
72558
72559 2003-08-15  Jim Meyering  <jim@meyering.net>
72560
72561         Merge from coreutils.
72562         * lib/xgethostname.c: Include <stdlib.h>.
72563         (xghostname): Don't exit for anything other than memory-related
72564         failure; just return NULL.
72565         * lib/userspec.c: Include "posixver.h".
72566         (parse_user_spec): Accept `.' as a separator only
72567         in pre-POSIX-200112 mode.
72568         * lib/strtoimax.c: Use #elif rather than #else #if.
72569         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
72570         Remove function, now that we can rely on a working tzset function.
72571         [!_LIBC]: Ensure that the required autoconf test has been run.
72572         [!defined _NL_CURRENT && HAVE_STRFTIME]:
72573         Use underlying_strftime for %r.
72574         * lib/sha.c: Merge in some clean-up and optimization changes from
72575         glibc.
72576         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
72577         Ensure that it is a multiple of 64.
72578         Rearrange loop exit tests so as to avoid performing an
72579         additional fread after encountering an error or EOF.
72580         * lib/realloc.c: Update copyright date.
72581
72582 2003-08-15  Jim Meyering  <jim@meyering.net>
72583         and Paul Eggert  <eggert@twinsun.com>
72584
72585         Merge from coreutils.
72586         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
72587         member but strut utmpx does not.  Needed for AIX 4.3.3.
72588         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
72589
72590 2003-08-15  Jim Meyering  <jim@meyering.net>
72591         and Paul Eggert  <eggert@cs.ucla.edu>
72592
72593         Merges from coreutils, etc.
72594         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
72595         Require gl_FUNC_TZSET_CLOBBER.
72596         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
72597         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
72598         members.
72599
72600 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72601
72602         Help the merge from coreutils.
72603         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
72604         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
72605         * m4/tzset.m4: Use it too.
72606
72607 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72608
72609         * modules/tzset: New file.
72610
72611 2003-08-14  Jim Meyering  <jim@meyering.net>
72612
72613         Merges from coreutils.
72614         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
72615         variable names, rather than @FNMATCH_H@.
72616         * modules/alloca: Likewise for $(ALLOCA_H).
72617
72618         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
72619         the three copies of the literal target, `fnmatch.h'.
72620         * modules/alloca (alloca.h): Likewise.
72621
72622 2003-08-14  Jim Meyering  <jim@meyering.net>
72623
72624         Merge from coreutils.
72625         * m4/tzset.m4: New file.
72626         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
72627         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
72628         otherwise, AIX 5.1 systems would end up using the latter.
72629         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
72630         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
72631         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
72632         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
72633
72634 2003-08-14  Jim Meyering  <jim@meyering.net>
72635
72636         Merge from coreutils.
72637         * lib/obstack.h: Whitespace changes.
72638         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
72639         and xcalloc return values.
72640         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
72641         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
72642         hang on OSF/1 5.1 for DIR on both local and remote file systems.
72643         Reported by (and fix confirmed by) Nelson H. F. Beebe.
72644         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72645         error from mntctl.
72646         Use mntctl's return value to drive the entry-processing loop, since
72647         we can't rely on the value of the vmt_length member in the last
72648         entry.  On some systems doing so could result in exhausting
72649         virtual memory.  Based in part on a patch from Mike Jetzer.
72650
72651 2003-08-14  Jim Meyering  <jim@meyering.net>
72652         and Paul Eggert  <eggert@twinsun.com>
72653
72654         Merges from coreutils, plus other fixes.
72655         * lib/physmem.c: Merge in portability changes from gcc/libiberty
72656         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
72657         for credits and details.  Thanks to Kaveh Ghazi for helping
72658         to keep these files in sync.
72659         (ARRAY_SIZE): Define it.
72660         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
72661         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
72662         (memcasecmp): Don't assume size_t fits in unsigned int.
72663         Remove casts and duplicate code.
72664         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
72665         (memcpy): Remove definition.
72666         Merge in some clean-up and optimization changes from glibc.
72667         [BLOCKSIZE]: Move definition to top of file.
72668         Ensure that it is a multiple of 64.
72669         Rearrange loop exit tests so as to avoid performing an
72670         additional fread after encountering an error or EOF.
72671         * lib/md5.h (md5_uintptr): Define.
72672         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
72673         return to the initial working directory.  Preserve errno
72674         for caller.
72675         * lib/idcache.c: Include "xalloc.h".
72676         (xmalloc, xrealloc): Remove decls.
72677         (getuser): Remove casts no longer required in C89.
72678         * lib/human.c: Include stdio.h, for sprintf.
72679         * lib/group-member.c: Include "xalloc.h".
72680         (xmalloc, xrealloc): Remove decls.
72681         (get_group_info): Remove casts no longer required in C89.
72682         * lib/getusershell.c (readname): Remove casts no longer required in
72683         C89.
72684         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
72685         * lib/getline.c: Whitespace fix, from coreutils.
72686
72687 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72688
72689         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
72690         Check for isascii.
72691
72692         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72693         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72694         Undo previous (whitespace-only) change.
72695
72696 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72697
72698         * lib/exclude.c: Include <ctype.h>
72699         (IN_CTYPE_DOMAIN): New macro.
72700         (is_space): New fn.
72701         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
72702         and empty lines.
72703
72704         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72705         Undo previous (whitespace-only) change.
72706
72707 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72708
72709         * config/srclist-update: Change update back to the old behavior,
72710         leaving whitespace alone.  Use one 'sed' command rather than a
72711         pipeline.
72712         (fixlicense): Now a variable, not a function.
72713         (remove_trailing_blanks): Remove.
72714         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
72715         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72716         Undo previous (whitespace-only) change.
72717
72718 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72719
72720         Merge from coreutils.
72721         * modules/euidaccess: Add lib_SOURCES, include for new
72722         file euidaccess.h
72723
72724 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72725
72726         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72727         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72728         Normalize leading white space and remove trailing white space.
72729
72730         Merge from coreutils
72731         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
72732
72733         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
72734         0.12.1.  These files are now being upgraded automatically by
72735         ../config/srclist-update.
72736
72737 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72738
72739         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72740         Normalize leading white space and remove trailing white space.
72741         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
72742         notice, as per ../config/srclist-update.
72743
72744         Merge from coreutils.
72745         * lib/euidaccess.h: New file.
72746         * lib/euidaccess.c: Include it.
72747         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
72748         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
72749         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
72750
72751 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72752
72753         * config/srclist-update: Add copyright notice.
72754         (remove_id_lines, remove_trailing_blanks): New constants.
72755         (fixfile): Use them to normalize spacing a bit in copied files.
72756         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72757         Normalize leading white space and remove trailing white space.
72758
72759         * config/texinfo.tex: Sync with texinfo.
72760
72761         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
72762         strtoul.c from libc, to merge coreutils whitespace changes.
72763
72764         * config/srclist.txt: Get the following m4 files from gettext:
72765         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
72766         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
72767         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
72768         wint_t.m4.
72769
72770 2003-08-12  Karl Berry  <karl@gnu.org>
72771
72772         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
72773         been made.
72774
72775 2003-08-11  Paul Eggert  <eggert@twinsun.com>
72776
72777         * modules/gnu-source, m4/gnu-source.m4:
72778         Remove; we're assuming Autoconf 2.54 or later now.
72779         Suggested by Bruno Haible.
72780         * MODULES.html.sh (func_all_modules): Remove gnu-source.
72781
72782 2003-08-11  Bruno Haible  <bruno@clisp.org>
72783
72784         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
72785
72786 2003-08-11  Bruno Haible  <bruno@clisp.org>
72787
72788         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
72789         (vasnprintf): Use it instead of wcslen.
72790
72791 2003-08-11  Bruno Haible  <bruno@clisp.org>
72792
72793         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
72794         value to ensure that _Bool promotes to int. Use #define for _Bool when
72795         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
72796
72797 2003-08-10  Karl Berry  <karl@gnu.org>
72798
72799         * lib/regex.h: update from libc (whitespace fix).
72800
72801 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72802
72803         Merge some files from coreutils.  These changes were
72804         originally made by Jim Meyering.
72805         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
72806         many older Unixes require this.
72807         * lib/alloca.c (alloca): Remove cast to argument of free;
72808         no longer needed in C89.
72809         * lib/alloca_.h, regex.h: Fix white space to match
72810         what GNU indent does.
72811
72812 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72813
72814         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
72815         apparently Emacs's Unicode mode got confused before my 2003-08-05
72816         checkin.
72817
72818 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72819
72820         * m4/extensions.m4: New file.
72821         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
72822         Require gl_USE_SYSTEM_EXTENSIONS.
72823         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
72824         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
72825
72826 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72827
72828         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
72829         * modules/extensions, modules/gnu-source: New files.
72830         * modules/timespec, modules/unlocked-io: Depend on extensions.
72831
72832 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72833
72834         * modules/restrict: New file.
72835         * MODULES.html.sh (func_all_modules): Add restrict.
72836         * modules/regex: Depend on restrict.
72837
72838 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72839
72840         * m4/restrict.m4: New file.
72841         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
72842
72843 2003-08-07  Bruno Haible  <bruno@clisp.org>
72844
72845         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
72846         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
72847
72848 2003-08-07  Bruno Haible  <bruno@clisp.org>
72849
72850         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
72851         makes the module 'getndelim2' compatible with the module 'getline'.
72852
72853 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72854
72855         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
72856         byte with "\201" to avoid glitches when editing that source file
72857         with multi-gnome-terminal.
72858
72859 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72860
72861         * lib/bumpalloc.h: Remove.
72862
72863 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72864
72865         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
72866         * modules/bumpalloc: Remove.
72867
72868 2003-08-04  Paul Eggert  <eggert@twinsun.com>
72869
72870         * lib/getloadavg.c: Change copyright notice and spacing to conform to
72871         GNU coding style.
72872
72873         Merge from coreutils.
72874         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
72875         1. From glibc.
72876         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
72877         from Karl Berry, implemented by Jim Meyering.
72878         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
72879         from Dmitry V. Levin.
72880         Remove anachronistic cast of xrealloc.
72881         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
72882         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
72883         type. Otherwise, it wouldn't compile with at least /bin/cc on
72884         ymp-cray-unicos9.0.2.X.
72885         Combine two mostly-identical uses of alloca into one.
72886         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
72887
72888 2003-08-04  Dave Love  <d.love@dl.ac.uk>
72889
72890         [From Emacs.]
72891
72892         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
72893         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
72894         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
72895         obsolete NLIST_NAME_UNION.
72896         [__GNU__]: Undef BSD and FSCALE.
72897         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
72898
72899 2003-08-03  Paul Eggert  <eggert@twinsun.com>
72900
72901         * lib/stdbool_.h (_Bool): Make it signed char, instead of
72902         an enum type, so that it's guaranteed to promote to int.  See:
72903         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
72904
72905 2003-08-03  Karl Berry  <karl@gnu.org>
72906
72907         * config/depcomp: update from automake.
72908
72909 2003-07-31  Paul Eggert  <eggert@twinsun.com>
72910
72911         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
72912         (strerror): Don't assume that a printable int fits in 14 bytes.
72913
72914 2003-07-31  Bruno Haible  <bruno@clisp.org>
72915
72916         * modules/getpass-gnu: New file.
72917         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
72918
72919 2003-07-31  Bruno Haible  <bruno@clisp.org>
72920
72921         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72922
72923 2003-07-24  Karl Berry  <karl@gnu.org>
72924
72925         * config/missing: update from automake.
72926
72927 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
72928             Bruno Haible  <bruno@clisp.org>
72929
72930         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
72931         * lib/getline.c (getline, getdelim): Likewise.
72932         Remove _GNU_SOURCE define; now it's defined in config.h through
72933         m4/getline.m4.
72934
72935 2003-07-23  Karl Berry  <karl@gnu.org>
72936
72937         * config/config.sub: update from prep.
72938
72939 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72940
72941         * modules/xalloc (Depends-on): Add exitfail.
72942         * modules/xmemcoll: Likewise.
72943
72944 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72945
72946         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
72947         over-parenthesization in macros.
72948
72949         Sync with coreutils.
72950
72951         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
72952         required by C99.
72953
72954         Use `exit_failure' for xalloc and xmemcoll instead of their own
72955         private exit-failure variables.
72956         * lib/xalloc.h (xalloc_exit_failure): Remove.
72957         * lib/xmalloc.c: Likewise.  Include exitfail.h.
72958         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
72959         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
72960         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
72961         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
72962
72963 2003-07-20  Jim Meyering  <jim@meyering.net>
72964
72965         * modules/closeout (Depends-on): Add exitfail.
72966         Suggestion from Bruno Haible.
72967
72968 2003-07-19  Karl Berry  <karl@gnu.org>
72969
72970         * config/config.sub: update from prep.
72971
72972 2003-07-18  Paul Eggert  <eggert@twinsun.com>
72973
72974         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
72975         Remove.
72976         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
72977         to test that it can stand by itself.  Include "exitfail.h".
72978         Clients should set exit_failure instead.
72979         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
72980
72981 2003-07-18  Bruno Haible  <bruno@clisp.org>
72982
72983         * modules/getndelim2: New file.
72984         * modules/getline: Share files with module getndelim2.
72985         * modules/getnline: Depend on getndelim2 instead of sharing files with
72986         it. Add getnline.c to lib_SOURCES.
72987         * MODULES.html.sh (func_all_modules): Add getndelim2.
72988
72989 2003-07-18  Bruno Haible  <bruno@clisp.org>
72990
72991         * m4/getndelim2.m4: New file.
72992         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
72993         invoke gl_PREREQ_GETNDELIM2.
72994         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
72995         gl_PREREQ_GETNDELIM2.
72996         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
72997         gl_GETNDELIM2.
72998
72999 2003-07-18  Bruno Haible  <bruno@clisp.org>
73000
73001         * lib/getndelim2.h: New file.
73002         * lib/getndelim2.c: Make into a module of its own. Include config.h,
73003         getndelim2.h.
73004         (getndelim2): Make non-static. Change return type to ssize_t.
73005         * lib/getline.h: Change argument names.
73006         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
73007         * lib/getnline.c: Include getndelim2.h.
73008
73009 2003-07-18  Andreas Schwab  <schwab@suse.de>
73010
73011         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
73012
73013 2003-07-17  Karl Berry  <karl@gnu.org>
73014
73015         * config/config.sub: update from prep.
73016
73017 2003-07-17  Bruno Haible  <bruno@clisp.org>
73018
73019         * modules/getnline: New file.
73020         * modules/getline: Add lib/getndelim2.c to source file list.
73021         * MODULES.html.sh (func_all_modules): Add getnline.
73022
73023 2003-07-17  Bruno Haible  <bruno@clisp.org>
73024
73025         * m4/getnline.m4: New file.
73026
73027 2003-07-17  Bruno Haible  <bruno@clisp.org>
73028
73029         * m4/Makefile.am.in: Remove file.
73030         * m4/Makefile.am: Remove file.
73031         * m4/Makefile.in: Remove file.
73032
73033 2003-07-17  Bruno Haible  <bruno@clisp.org>
73034
73035         * lib/getnline.h: New file.
73036         * lib/getnline.c: New file.
73037         * lib/getndelim2.c: New file, extracted from getline.c.
73038         (getndelim2): Renamed from getdelim2, with added nmax argument.
73039         * lib/getline.c: Include getndelim2.c.
73040         (getdelim2): Moved out to getndelim2.c.
73041         (getline, getdelim): Update.
73042
73043 2003-07-17  Bruno Haible  <bruno@clisp.org>
73044
73045         * lib/Makefile.am: Remove file.
73046         * lib/Makefile.in: Remove file.
73047
73048 2003-07-17  Bruno Haible  <bruno@clisp.org>
73049
73050         * configure.in: Remove file.
73051         * Makefile.in: Remove file.
73052
73053 2003-07-17  Bruno Haible  <bruno@clisp.org>
73054
73055         * MODULES.html.sh: Put the </BODY> right before </HTML>.
73056
73057 2003-07-16  Karl Berry  <karl@gnu.org>
73058
73059         * config/srclist-update: was running fixlicense twice, which caused
73060                 texinfo.tex to be nullified for some reason.  Simplify,
73061                 $gplsrc is no longer needed as far as I can see?
73062
73063 2003-07-16  Jim Meyering  <jim@meyering.net>
73064
73065         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
73066
73067 2003-07-15  Paul Eggert  <eggert@twinsun.com>
73068
73069         * config/srclist.txt: Get the following files from gettext-runtime/intl
73070         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
73071         ref-del.sin.  From Bruno Haible.
73072         * config/srclist-update (fixfile): Change grep pattern again, since the
73073         previous fix didn't work (there was another trailing $).  Use
73074         '[$]' to escape the $s.
73075
73076 2003-07-15  Karl Berry  <karl@gnu.org>
73077
73078         * lib/vasnprintf.c: update from gettext.
73079
73080 2003-07-15  Karl Berry  <karl@gnu.org>
73081
73082         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
73083         gets expanded when surrounded by '$'.
73084
73085 2003-07-15  Jim Meyering  <jim@meyering.net>
73086
73087         * modules/save-cwd: Don't depend on error.  From Derek Price.
73088
73089 2003-07-15  Jim Meyering  <jim@meyering.net>
73090
73091         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
73092
73093 2003-07-14  Simon Josefsson  <jas@extundo.com>
73094
73095         * modules/mempcpy: New file.
73096         * MODULES.html.sh (func_all_modules): Add mempcpy.
73097
73098 2003-07-14  Simon Josefsson  <jas@extundo.com>
73099
73100         * m4/mempcpy.m4: New file.
73101
73102 2003-07-14  Simon Josefsson  <jas@extundo.com>
73103
73104         * lib/mempcpy.h: New file.
73105         * lib/mempcpy.c: New file.
73106
73107 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73108
73109         * modules/getdate, modules/posixtm: Depend on mktime.
73110
73111 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73112
73113         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
73114         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
73115         unicodeio.c, unicodeio.h, unlocked-io.h:
73116         Switch from LGPL to GPL.
73117
73118 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73119
73120         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
73121         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
73122         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
73123         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
73124         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
73125         updated automatically by ../config/srclist-update.  This changes
73126         their license from LPGL to GPL.
73127
73128 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73129
73130         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
73131         assumed to refer to the root of the most recent stable gettext version.
73132         * config/srclistvars.sh: Add defaults for eggert.
73133         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
73134         Match "This program" as well as "The program".  This is needed
73135         for gettext.
73136
73137 2003-07-14  Jim Meyering  <jim@meyering.net>
73138
73139         Don't emit diagnostics.  Let callers do that.
73140         * lib/save-cwd.c: Don't include "error.h".
73141         (save_cwd): Don't call error.  Ensure that errno is valid
73142         when returning nonzero.
73143
73144         * lib/save-cwd.h (restore_cwd): Update prototype.
73145         * lib/save-cwd.c (restore_cwd): Remove two parameters.
73146         Simplify.  Don't call error upon failure.  Let callers do that.
73147         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
73148         when auditing is enabled.  But don't bother updating the #if.
73149
73150 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
73151
73152         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
73153         it breaks C++ compilation.
73154         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
73155
73156 2003-07-10  Simon Josefsson  <jas@extundo.com>
73157
73158         * modules/strchrnul (Makefile.am): Add strchrnul.h.
73159
73160 2003-07-10  Jim Meyering  <jim@meyering.net>
73161
73162         * m4/clock_time.m4: Remove trailing blank.
73163         * m4/intmax_t.m4: Likewise.
73164
73165 2003-07-10  Jim Meyering  <jim@meyering.net>
73166
73167         * lib/vasnprintf.c: Remove trailing blanks.
73168         Make cpp indentation consistent.
73169
73170 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73171
73172         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
73173         posixver.c, strftime.c, strnlen.c, strverscmp.c:
73174         Switch from LGPL to GPL.
73175
73176 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73177
73178         * config/srclist.txt: Sort sublists.  Add
73179         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
73180         that differ from gnulib for one reason or another; we'd like this list
73181         to be smaller but for now let's document what we have.
73182
73183 2003-07-08  Paul Eggert  <eggert@twinsun.com>
73184
73185         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
73186         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
73187         and sweeter "eval x=$x".
73188         * config/srclist.txt: Get lib/argp* from glibc.
73189
73190 2003-07-07  Paul Eggert  <eggert@twinsun.com>
73191
73192         * lib/mktime.c: Fix some boundary cases and remove need for floating
73193         point.
73194
73195         Issue a compile-time diagnostic if time_t is floating point, or if
73196         two's complement arithmetic is not in effect, or if arithmetic
73197         right shift does not propagate the sign.  These assumptions were
73198         all in the original code but they weren't checked.
73199
73200         (TIME_T_MIDPOINT, verify): New macros.
73201         (__isleap): Remove; it has integer overflow problems.
73202         (leapyear): New function, without those problems.
73203         (ydhms_tm_diff): Remove; splitting into two parts.
73204         (ydhms_diff): New function, containing the arithmetic part of
73205         the old ydhms_tm_diff function.  Issue a compile-time
73206         diagnostic if we are not using C99 integer division.
73207         Avoid casts when possible.
73208         (guess_time_tm): New function, containing the checking part of
73209         the old ydhms_tm_diff function.  Return the new value, rather than
73210         the difference between it and the old.  Accept a new argument T
73211         so that *T specifies the old value.  Check for overflow in the result.
73212
73213         (__mktime_internal): Use a time_t offset, not a long int offset.
73214         This undoes the 2003-06-04 change, which is no longer needed now
73215         that we have better overflow checking.
73216         (localtime_offset): Likewise.
73217
73218         (__mktime_internal): Avoid harmful overflow on hosts where time_t
73219         and long are 64-bit but int is only 32-bit.
73220         (ydhms_diff): Use long int to store year1 and yday1.
73221         Issue a compile-time diagnostic if long int is not wide enough.
73222
73223         (__mktime_internal): Use long int to store adjusted year and yday.
73224         Use plain C rather than preprocessor commands, if that doesn't
73225         affect efficiency.
73226         Check for overflow (and try to repair) after each probe
73227         rather than checking only at the very end.  This avoids some bugs
73228         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
73229         does not equal GMT offset at maximum time).
73230         Use integer to check for overflow rather than floating point; this
73231         is more portable to non-IEEE hosts, and is a tad faster.
73232         When we detect that we are oscillating between two values,
73233         don't check whether tm_isdst has the requested value, since
73234         we already know the answer.  When tm_isdst has the wrong value,
73235         use a different heuristic to find the right one, based on the
73236         extreme values actually observed in practice in tz2003a,
73237         rather than the (overly optimistic) "previous 3 calendar quarters".
73238
73239         (not_equal_tm, print_tm, check_result): Use "const T" rather than
73240         "T const" to accommodate glibc style.
73241         (check_result): Use less-confusing report format.  "long" -> "long int.
73242         (main): Likewise.
73243         Don't loop if the iteration overflows time_t.
73244         Allow a negative step in the iteration.
73245
73246 2003-07-06  Karl Berry  <karl@gnu.org>
73247
73248         * config/depcomp: update from automake.
73249         * config/config.sub: update from prep.
73250
73251 2003-07-03  Karl Berry  <karl@gnu.org>
73252
73253         * config/config.guess: update from prep.
73254
73255 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73256
73257         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
73258         xreadlink.c now includes it unconditionally.
73259
73260 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73261
73262         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
73263         having it depend on HAVE_SYS_TYPES_H.
73264
73265 2003-07-01  Bruno Haible  <bruno@clisp.org>
73266
73267         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
73268         <sys/types.h> should be sufficient.
73269         Reported by Paul Eggert.
73270
73271 2003-06-26  Karl Berry  <karl@gnu.org>
73272
73273         * config/depcomp: update from automake.
73274
73275 2003-06-26  Bruno Haible  <bruno@clisp.org>
73276
73277         * modules/human: Depend on module stdbool.
73278
73279 2003-06-25  Bruno Haible  <bruno@clisp.org>
73280
73281         * modules/readlink: New file.
73282         * modules/xreadlink: Depend on it.
73283         * MODULES.html.sh (func_all_modules): Add readlink.
73284
73285 2003-06-25  Bruno Haible  <bruno@clisp.org>
73286
73287         * m4/readlink.m4: New file.
73288
73289 2003-06-25  Bruno Haible  <bruno@clisp.org>
73290
73291         * lib/readlink.c: New file.
73292
73293 2003-06-22  Karl Berry  <karl@gnu.org>
73294
73295         * config/srclist.txt: update mkinstalldirs from automake.
73296         * config/mkinstalldirs: update.
73297
73298 2003-06-22  Bruno Haible  <bruno@clisp.org>
73299
73300         Portability to mingw32.
73301         * m4/ssize_t.m4: New file, from GNU gettext.
73302         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
73303         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
73304
73305 2003-06-22  Bruno Haible  <bruno@clisp.org>
73306
73307         * modules/safe-read: Add m4/ssize_t.m4.
73308         * modules/xreadlink: Add m4/ssize_t.m4.
73309
73310 2003-06-20  Bruno Haible  <bruno@clisp.org>
73311
73312         Assume C89, so PARAMS isn't needed.
73313         * lib/unicodeio.h (PARAMS): Remove.
73314         * lib/unicodeio.c: Don't use PARAMS.
73315
73316 2003-06-18  Karl Berry  <karl@gnu.org>
73317
73318         * config/config.{guess,sub}: update from prep.
73319
73320 2003-06-18  Jim Meyering  <jim@meyering.net>
73321
73322         Merge changes from coreutils.
73323         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
73324         Remove explicit declarations of xmalloc and realloc.
73325         Include xalloc.h.
73326         (read_utmp): Remove anachronistic cast of xmalloc.
73327
73328 2003-06-17  Paul Eggert  <eggert@twinsun.com>
73329
73330         Assume C89, so PARAMS isn't needed.
73331         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
73332         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
73333         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
73334         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
73335         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
73336         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
73337         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
73338         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
73339         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
73340         lib/xstrtod.h, lib/xstrtol.h: Likewise.
73341         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
73342         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
73343         no longer needed. Anyway, config.h should always be included before any
73344         other file.
73345
73346 2003-06-11  Simon Josefsson  <jas@extundo.com>
73347
73348         * modules/sysexits: New file.
73349         * MODULES.html.sh (func_all_modules): Add sysexits.
73350
73351 2003-06-11  Simon Josefsson  <jas@extundo.com>
73352
73353         * lib/sysexit_.h: New file.
73354
73355 2003-06-11  Derek Price  <derek@ximbiot.com>
73356
73357         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
73358         necessary.
73359
73360 2003-06-11  Bruno Haible  <bruno@clisp.org>
73361
73362         * m4/sysexits.m4: New file.
73363
73364 2003-06-10  Simon Josefsson  <jas@extundo.com>
73365
73366         * lib/argp.h: New file, from glibc.
73367         * lib/argp-ba.c: New file, from glibc.
73368         * lib/argp-eexst.c: New file, from glibc.
73369         * lib/argp-fmtstream.c: New file, from glibc.
73370         * lib/argp-fmtstream.h: New file, from glibc.
73371         * lib/argp-fs-xinl.c: New file, from glibc.
73372         * lib/argp-help.c: New file, from glibc.
73373         * lib/argp-namefrob.h: New file, from glibc.
73374         * lib/argp-parse.c: New file, from glibc.
73375         * lib/argp-pv.c: New file, from glibc.
73376         * lib/argp-pvh.c: New file, from glibc.
73377         * lib/argp-xinl.c: New file, from glibc.
73378
73379 2003-06-10  Simon Josefsson  <jas@extundo.com>
73380
73381         * modules/strchrnul: New file.
73382
73383 2003-06-10  Simon Josefsson  <jas@extundo.com>
73384
73385         * modules/argp: New file.
73386
73387 2003-06-10  Simon Josefsson  <jas@extundo.com>
73388
73389         * m4/strchrnul.m4: New file.
73390
73391 2003-06-10  Simon Josefsson  <jas@extundo.com>
73392
73393         * lib/strchrnul.h: New file.
73394         * lib/strchrnul.c: New file.
73395
73396 2003-06-10  Bruno Haible  <bruno@clisp.org>
73397
73398         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
73399
73400 2003-06-07  Karl Berry  <karl@gnu.org>
73401
73402         * config/config.{guess,sub}: update from prep.
73403
73404 2003-06-07  Jim Meyering  <jim@meyering.net>
73405
73406         * modules/strtod: Use $(...) notation, not @...@ for
73407         AC_REPLACE'd variables.
73408         * modules/localcharset: Likewise.
73409
73410 2003-06-07  Jim Meyering  <jim@meyering.net>
73411
73412         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
73413         in place of my name in the copyright comment.
73414         Remove definition and uses of __P.
73415
73416         From coreutils.
73417         * lib/stat.c: Don't declare xmalloc explicitly.
73418         Instead, include "xalloc.h".
73419         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
73420         xrealloc, and xcalloc return values.
73421         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
73422         Improve comment.
73423         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
73424
73425 2003-06-07  Bruno Haible  <bruno@clisp.org>
73426
73427         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
73428         avoid AC_CONFIG_LINKS.
73429         * modules/fnmatch (Makefile.am): Use explicit creation rule for
73430         fnmatch.h, to avoid AC_CONFIG_LINKS.
73431         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
73432
73433 2003-06-07  Bruno Haible  <bruno@clisp.org>
73434
73435         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
73436         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
73437         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73438         directory.
73439         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
73440         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73441         directory.
73442
73443 2003-06-06  Jim Meyering  <jim@meyering.net>
73444
73445         Merge from coreutils.
73446         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
73447         Consolidate declarations and initializations of *_base* locals.
73448
73449         Merge from coreutils.
73450         This avoids a core dump on systems without GNU putenv,
73451         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
73452         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
73453         (unsetenv): New static function, from GNU libc.
73454         (rpl_putenv): Use it.
73455
73456         * lib/modechange.c: Remove trailing blanks.
73457
73458         Merge from coreutils.
73459         * lib/fsusage.c: Remove declaration of statfs.
73460         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
73461
73462         * lib/posixtm.c: Include <stdbool.h> unconditionally.
73463
73464 2003-06-06  Jim Meyering  <jim@meyering.net>
73465
73466         * lib/stdbool_.h: Renamed from stdbool.h.in.
73467
73468 2003-06-06  Jim Meyering  <jim@meyering.net>
73469             Bruno Haible  <bruno@clisp.org>
73470
73471         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
73472         Adjust Makefile.am snippet not to redirect directly to target.
73473         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
73474
73475 2003-06-05  Paul Eggert  <eggert@twinsun.com>
73476
73477         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
73478         mismatch, look in future quarters as well as past.  This fixes a
73479         bug when processing fall-backwards gaps immediately after a long
73480         period of daylight-saving time.
73481
73482         * lib/mktime.c: Assume freestanding C89 or better.
73483         (HAVE_LIMITS_H): Remove.  Assume it's 1.
73484         (__P): Remove; not used.
73485         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
73486         (mktime, not_equal_tm, print_tm, check_result,
73487         main): Use prototypes.  Use const * where appropriate.
73488         (main): Fix typo in testing code that uncovered by above changes.
73489         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
73490
73491 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73492
73493         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
73494         locale.h, localeconv.  This merges changes from coreutils.
73495
73496         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
73497         It can be removed after the next Autoconf is released.
73498         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
73499         needed.
73500
73501 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73502
73503         * lib/mktime.c: Fix Debian bug 177940
73504         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
73505         (localtime_offset): Now long int, not time_t, because we want it
73506         to be guaranteed to be signed.  All uses changed.
73507         (__mktime_internal): If overflow would occur when adding offset,
73508         don't add it.
73509
73510         Merge 'human' changes from coreutils.  Rewrite to support
73511         locale-specific notations like thousands separators.
73512         * lib/human.c: Simplify authorship notice.
73513         Include human.h immediately after config.h.
73514         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
73515         <limits.h>: Do not include, since human.h does.
73516         (SIZE_MAX, UINTMAX_MAX): New macros.
73517         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
73518         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
73519         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
73520         (power_letter): Renamed from suffixes.
73521         (generate_suffix_backwards): Remove.
73522         (adjust_value): Now takes int style (because of human.h changes)
73523         and long double value (for greater precision on some platforms).
73524         (group_number): New function.
73525         (human_readable): Use it.  Use integer options, not enum.
73526         Put the options before the sizes in the arg list.
73527         Support all the new options.
73528         The old human_readable function has been removed;
73529         use inttostr.h instead.
73530         (human_readable, default_block_size, humblock):
73531         Use uintmax_t, not int, for block sizes.
73532         (human_readable_inexact, block_size_types): Remove.
73533         (block_size_opts): New constant.
73534         (human_options): Renamed from human_block_size, with new signature
73535         that allows block sizes up to UINTMAX_MAX.  All callers changed.
73536         * lib/human.h: Add copyright and authorship notice.
73537         Include <limits.h> and <stdbool.h> unconditionally.
73538         (PARAMS): Remove.  All uses removed.
73539         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
73540         (enum human_inexact_style): Remove tag; now a nameless enum.
73541         (human_floor, human_ceiling, human_round_to_even): Now have
73542         values 2, 0, 1 rather than -1, 1, 0.
73543         (human_group_digits, human_suppress_point_zero, human_autoscale,
73544         human_base_1024, human_SI, human_B): New constants.
73545         (human_readable_inexact, human_block_size): Remove.
73546         (human_readable): Size args are now uintmax_t, not int.
73547         (human_options): New decl.
73548
73549         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
73550         unnecessary now that we assume C89 or better.  This change
73551         imported from coreutils.
73552
73553         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73554         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
73555         in the 2003-05-30 sync from glibc.
73556
73557         .h files should stand alone, but we shouldn't include <sys/types.h>
73558         if we can get away with just <stddef.h>.
73559
73560         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
73561         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
73562         rather than <sys/types.h>, as we merely need size_t.
73563         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
73564         to get size_t.
73565         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
73566         Include <stdio.h>, to get FILE.
73567         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
73568         memcasecmp.h has included <stddef.h> and all we need is size_t.
73569         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
73570         our interface, instead of including <sys/types.h>
73571
73572 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73573
73574         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
73575         now, as glibc mktime is buggy on non-glibc systems.
73576
73577 2003-06-03  Karl Berry  <karl@gnu.org>
73578
73579         * config/config.sub: update from prep.
73580
73581 2003-06-02  Paul Eggert  <eggert@twinsun.com>
73582
73583         [from coreutils]
73584         Fix some minor time-related bugs with POSIX time arguments.
73585         Some valid time stamps were being rejected (notably -1, and
73586         time stamps before 1900 on 64-bit hosts).  And some invalid
73587         time stamps were being accepted, e.g. September 31.
73588
73589         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
73590         that we can return (time_t) -1 successfully.
73591         * lib/posixtm.c: Likewise.
73592         [HAVE_STDBOOL_H]: Include <stdbool.h>.
73593         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
73594         (t): Remove static var.
73595         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
73596         of static var.  All uses changed.
73597         (year): Do not reject years before 1900; they can occur with
73598         64-bit time_t.
73599         (posix_time_parse): Do not check for out-of-range components;
73600         that is now the caller's responsibility, since our checks were
73601         only approximations.
73602         (posixtime): Use mktime to check for out-of-range components,
73603         since it knows them exactly.
73604         If mktime returns (time_t) -1, check whether an error actually occurred
73605         by invoking localtime on -1.
73606         (main) [TEST_POSIXTIME]: Check for input data errors, and report
73607         posixtime failures better.
73608         Improve the test data (in comments only).
73609
73610 2003-06-02  Karl Berry  <karl@gnu.org>
73611
73612         * config/mkinstalldirs (version): new variable.
73613         (--version): new option.
73614         (usage): improve message.
73615
73616 2003-05-30  Karl Berry  <karl@gnu.org>
73617
73618         * lib/mktime.c: update from libc.
73619
73620 2003-05-30  Bruno Haible  <bruno@clisp.org>
73621
73622         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
73623         * config/config.rpath: Upgrade to gettext-0.12.1.
73624
73625 2003-05-30  Bruno Haible  <bruno@clisp.org>
73626
73627         * m4/gettext.m4: Upgrade to gettext-0.12.1.
73628         * m4/nls.m4: New file, from gettext-0.12.1.
73629         * m4/po.m4: New file, from gettext-0.12.1.
73630         * m4/progtest.m4: Upgrade to gettext-0.12.1.
73631
73632 2003-05-30  Bruno Haible  <bruno@clisp.org>
73633
73634         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
73635         * lib/localcharset.h: Likewise.
73636         * lib/localcharset.c: Likewise.
73637
73638 2003-05-29  Karl Berry  <karl@gnu.org>
73639
73640         * config/config.rpath: update from gettext.
73641
73642 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73643
73644         Assume the headers required for C89 freestanding compilers.
73645         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
73646         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
73647         * m4/human.m4 (gl_HUMAN): Likewise.
73648         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
73649         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
73650         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73651         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
73652         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73653         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
73654
73655 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73656
73657         Assume the headers required for C89 freestanding compilers.
73658         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
73659         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
73660         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
73661         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
73662         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
73663         define, since <limits.h> is guaranteed to do that.
73664         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
73665         * lib/exclude.c: Include <stdbool.h> unconditionally.
73666         * lib/tempname.c: Include <stddef.h> unconditionally.
73667         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
73668         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
73669         <stddef.h> does that.
73670         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
73671         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
73672         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
73673         needed.
73674         * lib/xstrtol.c: Likewise.
73675         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
73676         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
73677
73678         * lib/addext.c (addext): Use assignment rather than cast, to avoid
73679         warnings on some platforms.
73680
73681         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73682         arbitrarily.
73683
73684 2003-05-26  Jim Meyering  <jim@meyering.net>
73685
73686         Merge in a change from coreutils:
73687         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
73688         that is guaranteed to be `no'.  Use `no_such_member' to indicate
73689         that condition, rather than `-1' which is slightly misleading.
73690         Change the name of the cache variable to have the gl_ prefix.
73691         Prompted by a patch from Richard Dawe for DJGPP.
73692
73693 2003-05-24  Karl Berry  <karl@gnu.org>
73694
73695         * config/config.guess: update from prep.
73696
73697 2003-05-22  Karl Berry  <karl@gnu.org>
73698
73699         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
73700
73701 2003-05-20  Karl Berry  <karl@gnu.org>
73702
73703         * config/config.guess: update from prep.
73704
73705 2003-05-18  Karl Berry  <karl@gnu.org>
73706
73707         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
73708         might actually be set by the user.
73709
73710         * config/depcomp, install-sh, mdate-sh: update from automake.
73711
73712 2003-05-17  Bruno Haible  <bruno@clisp.org>
73713
73714         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
73715         invalid expansion for AC_EGREP_CPP.
73716         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
73717         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
73718         Suggested by Akim Demaille <akim@epita.fr> in
73719         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
73720
73721 2003-05-12  Jim Meyering  <jim@meyering.net>
73722
73723         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
73724         the space-padded-by-default conversion specifiers, %e, %k, %l.
73725
73726 2003-05-12  Bruno Haible  <bruno@clisp.org>
73727
73728         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
73729         the string is longer than 4 KB.
73730
73731 2003-05-11  Karl Berry  <karl@gnu.org>
73732
73733         * config/config.{guess,sub}: update from prep.
73734
73735 2003-05-09  Bruno Haible  <bruno@clisp.org>
73736
73737         * modules/error: Add m4/strerror_r.m4 to file list.
73738
73739 2003-05-03  Bruno Haible  <bruno@clisp.org>
73740
73741         Upgrade to Unicode-4.0.
73742         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
73743         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
73744         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
73745         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
73746         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
73747         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
73748         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
73749         Change width of U+E0100..U+E01EF from 1 to 0.
73750
73751 2003-04-25  Jim Meyering  <jim@meyering.net>
73752
73753         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
73754         of type size_t, not int.
73755
73756 2003-04-25  Bruno Haible  <bruno@clisp.org>
73757
73758         * lib/copy-file.c: Include <stddef.h>, for size_t.
73759
73760 2003-04-21  Paul Eggert  <eggert@twinsun.com>
73761
73762         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
73763         code which expansion is under static control.  Patch imported from
73764         Akim Demaille's patch to Bison; see
73765         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
73766
73767 2003-04-14  Bruno Haible  <bruno@clisp.org>
73768
73769         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
73770
73771 2003-04-11  Jim Meyering  <jim@meyering.net>
73772
73773         Merge changes from Coreutils.
73774
73775         2003-03-22  Jim Meyering  <jim@meyering.net>
73776
73777         * lib/strftime.c (widen): Cast alloca return value to proper type.
73778
73779         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
73780
73781         From GNU libc.
73782         * lib/strftime.c (my_strftime): Handle very large width
73783         specifications for numeric values correctly.  Improve checks for
73784         overflow.
73785
73786         2003-01-19  Jim Meyering  <jim@meyering.net>
73787
73788         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
73789         definitions.
73790         (nl_get_alt_digit) [! defined my_strftime]: Define.
73791         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
73792         _nl_get_alt_digit and _nl_get_walt_digit.
73793
73794         * lib/strftime.c (my_strftime): Merge in locale-related changes from
73795         libc. These changes have no effect outside of _LIBC.
73796
73797 2003-04-10  Bruno Haible  <bruno@clisp.org>
73798
73799         * modules/findprog: New file.
73800         * MODULES.html.sh (func_all_modules): Add it.
73801
73802 2003-04-10  Bruno Haible  <bruno@clisp.org>
73803
73804         * m4/findprog.m4: New file.
73805         * m4/eaccess.m4: New file.
73806
73807 2003-04-10  Bruno Haible  <bruno@clisp.org>
73808
73809         * lib/findprog.h: New file, from GNU gettext.
73810         * lib/findprog.c: New file, from GNU gettext.
73811
73812 2003-04-05  Jim Meyering  <jim@meyering.net>
73813
73814         Merge changes from Coreutils.
73815
73816         * lib/exclude.h (PARAMS): Remove definition and uses.
73817         * lib/exclude.c: Remove uses of `PARAMS'.
73818
73819         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
73820         Add test-cases for DOS filenames. Declare program_name.
73821         (main): Set up program_name.  Patch by Rich Dawe.
73822
73823         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73824         error from mntctl.
73825         Use mntctl's return value to drive the entry-processing loop, since
73826         we can't rely on the value of the vmt_length member in the last
73827         entry.  On some systems doing so could result in exhausting
73828         virtual memory.  Based in part on a patch from Mike Jetzer.
73829
73830 2003-04-04  Bruno Haible  <bruno@clisp.org>
73831
73832         * modules/linebreak: New file.
73833         * MODULES.html.sh (func_all_modules): Add it.
73834
73835 2003-04-04  Bruno Haible  <bruno@clisp.org>
73836
73837         * m4/linebreak.m4: New file.
73838
73839 2003-04-04  Bruno Haible  <bruno@clisp.org>
73840
73841         * lib/linebreak.h: New file, from GNU gettext.
73842         * lib/linebreak.c: New file, from GNU gettext with slight
73843         modifications.
73844         * lib/lbrkprop.h: New file, from GNU gettext.
73845
73846 2003-04-03  Bruno Haible  <bruno@clisp.org>
73847
73848         * modules/utf8-ucs4: New file.
73849         * modules/utf16-ucs4: New file.
73850         * modules/ucs4-utf8: New file.
73851         * modules/ucs4-utf16: New file.
73852         * MODULES.html.sh (func_all_modules): Add them.
73853
73854 2003-04-03  Bruno Haible  <bruno@clisp.org>
73855
73856         * m4/utf-ucs4.m4: New file.
73857         * m4/ucs4-utf.m4: New file.
73858
73859 2003-04-03  Bruno Haible  <bruno@clisp.org>
73860
73861         * lib/utf8-ucs4.h: New file, from GNU gettext.
73862         * lib/utf16-ucs4.h: New file, from GNU gettext.
73863         * lib/ucs4-utf8.h: New file, from GNU gettext.
73864         * lib/ucs4-utf16.h: New file, from GNU gettext.
73865
73866 2003-04-02  Bruno Haible  <bruno@clisp.org>
73867
73868         * modules/binary-io: New file.
73869         * MODULES.html.sh (func_all_modules): Add it.
73870
73871 2003-04-02  Bruno Haible  <bruno@clisp.org>
73872
73873         * lib/binary-io.h: New file, from GNU gettext.
73874
73875 2003-04-01  Bruno Haible  <bruno@clisp.org>
73876
73877         * modules/pathname: New file.
73878         * MODULES.html.sh (func_all_modules): Add it.
73879
73880 2003-04-01  Bruno Haible  <bruno@clisp.org>
73881
73882         * lib/pathname.h: New file, from GNU gettext.
73883         * lib/concatpath.c: New file, from GNU gettext.
73884
73885 2003-03-30  Bruno Haible  <bruno@clisp.org>
73886
73887         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
73888
73889 2003-03-30  Bruno Haible  <bruno@clisp.org>
73890
73891         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
73892         function chown() doesn't exist.
73893
73894 2003-03-28  Bruno Haible  <bruno@clisp.org>
73895
73896         * modules/copy-file: New file.
73897         * MODULES.html.sh (func_all_modules): Add it.
73898
73899 2003-03-28  Bruno Haible  <bruno@clisp.org>
73900
73901         * m4/copy-file.m4: New file.
73902
73903 2003-03-28  Bruno Haible  <bruno@clisp.org>
73904
73905         * lib/copy-file.h: New file, from GNU gettext.
73906         * lib/copy-file.c: New file, from GNU gettext.
73907
73908 2003-03-18  Jim Meyering  <jim@meyering.net>
73909
73910         * lib/quote.c (quote_n): Fix typo in comment.
73911
73912 2003-03-18  Bruno Haible  <bruno@clisp.org>
73913
73914         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
73915         checking.
73916         * m4/onceonly_2_57.m4: Likewise.
73917
73918 2003-03-17  Bruno Haible  <bruno@clisp.org>
73919
73920         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73921         (m4_quote): Remove macro.
73922         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
73923
73924 2003-03-14  Jim Meyering  <jim@meyering.net>
73925
73926         Merge changes from Coreutils.
73927         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
73928         to be const, in order to avoid warnings.
73929         (obstack_room): Likewise.
73930         (obstack_empty_p): Likewise.
73931
73932 2003-03-14  Bruno Haible  <bruno@clisp.org>
73933
73934         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
73935         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
73936
73937 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73938
73939         Merge changes from Bison.
73940         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
73941         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
73942         when compiling Bison 1.875's `bitset bset = obstack_alloc
73943         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
73944         * lib/hash.c: Include <stdbool.h> unconditionally.
73945
73946 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73947
73948         * m4/onceonly.m4 (m4_quote): New macro.
73949         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
73950         Quote AC_FOREACH variable-expansions properly.
73951
73952 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73953
73954         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
73955
73956 2003-03-09  Paul Eggert  <eggert@twinsun.com>
73957
73958         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
73959         Reported by Bruce Becker; see:
73960         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
73961
73962 2003-03-03  Paul Eggert  <eggert@twinsun.com>
73963             Bruno Haible  <bruno@clisp.org>
73964
73965         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
73966         Reported by John Hughes, see
73967         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
73968
73969 2003-02-20  Bruno Haible  <bruno@clisp.org>
73970
73971         * MODULES.html.sh (func_all_modules): Add poll.
73972
73973 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73974
73975         * modules/poll: New file.
73976
73977 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73978
73979         * lib/poll_.h: New file.
73980         * lib/poll.c: New file.
73981
73982 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73983
73984         * m4/poll.m4: New file.
73985
73986 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73987
73988         * modules/mathl: New file.
73989
73990 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73991
73992         * lib/mathl.h: New file.
73993         * lib/acosl.c: New file.
73994         * lib/asinl.c: New file.
73995         * lib/atanl.c: New file.
73996         * lib/ceill.c: New file.
73997         * lib/cosl.c: New file.
73998         * lib/expl.c: New file.
73999         * lib/floorl.c: New file.
74000         * lib/frexpl.c: New file.
74001         * lib/ldexpl.c: New file.
74002         * lib/logl.c: New file.
74003         * lib/sincosl.c: New file.
74004         * lib/sinl.c: New file.
74005         * lib/sqrtl.c: New file.
74006         * lib/tanl.c: New file.
74007         * lib/trigl.c: New file.
74008         * lib/trigl.h: New file.
74009
74010 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74011
74012         * m4/mathl.m4: New file.
74013
74014 2003-02-18  Bruno Haible  <bruno@clisp.org>
74015
74016         * MODULES.html.sh (func_all_modules): Add mathl.
74017
74018 2003-02-17  Bruno Haible  <bruno@clisp.org>
74019
74020         * modules/mkdtemp: New module.
74021         * MODULES.html.sh (func_all_modules): Add it.
74022
74023 2003-02-17  Bruno Haible  <bruno@clisp.org>
74024
74025         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
74026
74027 2003-02-17  Bruno Haible  <bruno@clisp.org>
74028
74029         * lib/mkdtemp.h: New file, from GNU gettext.
74030         * lib/mkdtemp.c: New file, from GNU gettext.
74031
74032 2003-02-02  Jim Meyering  <jim@meyering.net>
74033
74034         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
74035         e.g. glibc-2.2.93.
74036
74037 2003-01-31  Bruno Haible  <bruno@clisp.org>
74038
74039         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
74040         'rpl_rename'.
74041         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
74042         'rpl_strnlen'.
74043         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
74044         'rpl_strtod'.
74045         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
74046         'rpl_utime'.
74047
74048 2003-01-31  Bruno Haible  <bruno@clisp.org>
74049
74050         * lib/rename.c: #undef rename before defining rpl_rename.
74051         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
74052
74053 2003-01-30  Bruno Haible  <bruno@clisp.org>
74054
74055         * modules/vasnprintf, modules/vasprintf: New modules.
74056         * MODULES.html.sh (func_all_modules): Add them.
74057
74058 2003-01-30  Bruno Haible  <bruno@clisp.org>
74059
74060         * m4/signed.m4: New file, from GNU gettext.
74061         * m4/longdouble.m4: New file, from GNU gettext.
74062         * m4/wchar_t.m4: New file, from GNU gettext.
74063         * m4/wint_t.m4: New file, from GNU gettext.
74064         * m4/vasnprintf.m4: New file.
74065         * m4/vasprintf.m4: New file.
74066
74067 2003-01-30  Bruno Haible  <bruno@clisp.org>
74068
74069         * lib/printf-args.h: New file, from GNU gettext.
74070         * lib/printf-args.c: New file, from GNU gettext.
74071         * lib/printf-parse.h: New file, from GNU gettext.
74072         * lib/printf-parse.c: New file, from GNU gettext.
74073         * lib/vasnprintf.h: New file, from GNU gettext.
74074         * lib/vasnprintf.c: New file, from GNU gettext.
74075         * lib/asnprintf.c: New file, from GNU gettext.
74076         * lib/vasprintf.h: New file, from GNU gettext with modifications.
74077         * lib/vasprintf.c: New file, from GNU gettext.
74078         * lib/asprintf.c: New file, from GNU gettext.
74079
74080 2003-01-29  Bruno Haible  <bruno@clisp.org>
74081
74082         * modules/stpncpy: New module.
74083         * MODULES.html.sh (func_all_modules): Add it.
74084
74085 2003-01-29  Bruno Haible  <bruno@clisp.org>
74086
74087         * m4/stpncpy.m4: New file.
74088
74089 2003-01-29  Bruno Haible  <bruno@clisp.org>
74090
74091         * lib/stpncpy.h: New file, from GNU gettext with modifications.
74092         * lib/stpncpy.c: New file, from GNU gettext with modifications.
74093
74094 2003-01-28  Bruno Haible  <bruno@clisp.org>
74095
74096         * modules/c-ctype: New module.
74097         * MODULES.html.sh (func_all_modules): Add it.
74098
74099 2003-01-28  Bruno Haible  <bruno@clisp.org>
74100
74101         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
74102         Paul Eggert.
74103         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
74104         Paul Eggert.
74105
74106 2003-01-27  Bruno Haible  <bruno@clisp.org>
74107
74108         * modules/xsetenv: New module.
74109         * MODULES.html.sh (func_all_modules): Add it.
74110
74111 2003-01-27  Bruno Haible  <bruno@clisp.org>
74112
74113         * lib/xsetenv.h: New file, from GNU gettext.
74114         * lib/xsetenv.c: New file, from GNU gettext.
74115
74116 2003-01-23  Jim Meyering  <jim@meyering.net>
74117
74118         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
74119         from working on systems without dirfd (at least Irix and OSF1/Tru64).
74120
74121 2003-01-23  Bruno Haible  <bruno@clisp.org>
74122
74123         * modules/minmax: New module.
74124         * MODULES.html.sh (func_all_modules): Add it.
74125
74126 2003-01-23  Bruno Haible  <bruno@clisp.org>
74127
74128         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
74129         Eggert.
74130
74131 2003-01-22  Bruno Haible  <bruno@clisp.org>
74132
74133         * modules/exit: New module.
74134         * MODULES.html.sh (func_all_modules): Add it.
74135
74136 2003-01-22  Bruno Haible  <bruno@clisp.org>
74137
74138         * lib/exit.h: New file, from GNU gettext.
74139
74140 2003-01-19  Bruno Haible  <bruno@clisp.org>
74141
74142         * gnulib-tool: Recognize option --extract-maintainer.
74143         (func_get_maintainer): New function.
74144         * modules/*: Add Maintainer entry.
74145
74146 2003-01-16  Jim Meyering  <jim@meyering.net>
74147
74148         * m4/regex.m4: The `regex' struct is both input and output.
74149         Initialize it before each use.  Patch by Tim Waugh.
74150
74151 2003-01-16  Bruno Haible  <bruno@clisp.org>
74152
74153         * MODULES.html.sh: Add a table of contents. Add the module name as
74154         leftmost column. Add hyperlinks.
74155
74156 2003-01-15  Bruno Haible  <bruno@clisp.org>
74157
74158         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
74159
74160 2003-01-15  Bruno Haible  <bruno@clisp.org>
74161
74162         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
74163         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
74164         suffix.
74165
74166 2003-01-15  Bruno Haible  <bruno@clisp.org>
74167
74168         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
74169
74170 2003-01-15  Bruno Haible  <bruno@clisp.org>
74171
74172         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
74173         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
74174
74175 2003-01-14  Jim Meyering  <jim@meyering.net>
74176
74177         * lib/same.c (same_name): Tweak a comment.
74178
74179 2003-01-14  Bruno Haible  <bruno@clisp.org>
74180
74181         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
74182         when a string comparison is sufficient.
74183
74184 2003-01-14  Bruno Haible  <bruno@clisp.org>
74185
74186         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
74187         'unsigned int'.
74188
74189 2003-01-14  Bruno Haible  <bruno@clisp.org>
74190
74191         * lib/hash-pjw.c: Add comment about low quality of this function.
74192
74193 2003-01-13  Bruno Haible  <bruno@clisp.org>
74194
74195         * modules/stpcpy: Distribute lib/stpcpy.h.
74196         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
74197
74198 2003-01-13  Bruno Haible  <bruno@clisp.org>
74199
74200         * modules/*: Add a description.
74201         * modules/strpbrk: Fix Makefile.am snippet.
74202         * modules/strtoimax: Fix dependencies.
74203         * modules/strtoumax: Likewise.
74204
74205 2003-01-13  Bruno Haible  <bruno@clisp.org>
74206
74207         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
74208         * modules/alloca (Makefile.am): All object files depend on alloca.h.
74209         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
74210
74211 2003-01-13  Bruno Haible  <bruno@clisp.org>
74212
74213         * gnulib-tool (func_create_testdir): Store config/* files in the main
74214         directory.
74215         * config.rpath: Move to ...
74216         * config/config.rpath: ... here.
74217         * modules/gettext: Contains config/config.rpath, not config.rpath.
74218         * modules/iconv: Likewise.
74219
74220 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74221
74222         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74223         to avoid collisions with libcurses and libreadline.
74224
74225         * m4/getstr.m4: Remove.
74226         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
74227
74228 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74229
74230         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74231         to avoid collisions with libcurses and libreadline.
74232
74233         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
74234         * lib/getstr.h, getstr.c: Remove.
74235         * lib/getline.c: Include "getline.h", to check interface.
74236         Move body of old getstr.c here: this defines MIN_CHUNK and
74237         declares getdelim2, which is renamed from getstr.
74238         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
74239
74240         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
74241         All uses changed.
74242         * lib/linebuffer.h: Likewise.
74243         (readline): Remove backward-compatibility macro.
74244
74245 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74246
74247         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74248         to avoid collisions with libcurses and libreadline.
74249         * getstr: Remove.
74250         * MODULES.html.sh: Remove getstr.
74251         * modules/getline: Depend on unlocked-io, not getstr.
74252
74253 2003-01-12  Jim Meyering  <jim@meyering.net>
74254
74255         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
74256
74257 2003-01-10  Bruno Haible  <bruno@clisp.org>
74258
74259         * modules/alloca: Change Makefile.am requirements. Simplify Include
74260         requirements. Add lib/alloca_.h to file list.
74261
74262 2003-01-10  Bruno Haible  <bruno@clisp.org>
74263
74264         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
74265
74266 2003-01-10  Bruno Haible  <bruno@clisp.org>
74267
74268         * lib/alloca_.h: New file.
74269         * lib/getdate.y: Unconditionally include alloca.h.
74270         * lib/makepath.c: Likewise.
74271         * lib/setenv.c: Likewise.
74272         * lib/userspec.c: Likewise.
74273
74274 2003-01-09  Karl Berry  <karl@gnu.org>
74275
74276         * MODULES.html.sh: include `dirname $0` in PATH, to find
74277         gnulib-tool.
74278
74279 2003-01-09  Bruno Haible  <bruno@clisp.org>
74280
74281         * modules/stdbool: Change configure.ac, Makefile.am requirements.
74282         Simplify Include requirements. Add lib/stdbool.h.in to file list.
74283
74284 2003-01-09  Bruno Haible  <bruno@clisp.org>
74285
74286         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
74287
74288 2003-01-09  Bruno Haible  <bruno@clisp.org>
74289
74290         * lib/stdbool.h.in: New file.
74291
74292 2003-01-09  Bruno Haible  <bruno@clisp.org>
74293
74294         * gnulib-tool (func_all_modules): Ignore files ending in ~.
74295         * MODULES.html.sh: Likewise.
74296
74297 2003-01-08  Jim Meyering  <jim@meyering.net>
74298
74299         * lib/full-write.c: Undefine and define-away `const' after inclusion
74300         of errno.h, not before.  Suggestion from Bruno Haible.
74301
74302 2003-01-08  Bruno Haible  <bruno@clisp.org>
74303
74304         * modules/full-read: Depend on full-write.
74305
74306 2003-01-08  Bruno Haible  <bruno@clisp.org>
74307
74308         * lib/safe-read.c: Include specification header first, to ensure its
74309         selfcontainedness.
74310         * lib/full-write.c: Likewise.
74311
74312 2003-01-07  Jim Meyering  <jim@meyering.net>
74313
74314         * lib/full-write.c: Rework so that it may serve to define full_read,
74315         too.
74316         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
74317
74318 2003-01-07  Bruno Haible  <bruno@clisp.org>
74319
74320         * lib/strtoimax.c: Include <stdint.h> as an alternative to
74321         <inttypes.h>.
74322         * lib/xstrtol.h: Likewise.
74323         * lib/xstrtoimax.c: Likewise.
74324         * lib/xstrtoumax.c: Likewise.
74325         * lib/human.h: Likewise.
74326
74327         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
74328         on systems that have <inttypes.h> but not <stdint.h>.
74329
74330 2003-01-07  Bruno Haible  <bruno@clisp.org>
74331
74332         * MODULES.html.sh: Add copyright notice.
74333         (missed_files): Omit CVS directory entries.
74334         (func_module): Make it work with sed-3.02.
74335         * MODULES.txt: Remove file.
74336
74337 2003-01-06  Jim Meyering  <jim@meyering.net>
74338
74339         * lib/version-etc.c: Update year in translatable copyright string.
74340
74341 2003-01-03  Karl Berry  <karl@gnu.org>
74342
74343         * config/config.{guess,sub}: update from prep.
74344
74345 2003-01-02  Karl Berry  <karl@gnu.org>
74346
74347         * doc/COPYING.DOC: belatedly updated to 1.2.
74348
74349 2003-01-01  Karl Berry  <karl@gnu.org>
74350
74351         * gnulib-tool (func_verify_module): report module name $module in
74352         error message, not $1.
74353         * gnulib-tool (create-testdir): don't complain if destdir couldn't
74354         be created, only if it doesn't exist.
74355         * gnulib-tool (last_checkin_date): don't expand the $Date here.
74356
74357 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74358
74359         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
74360
74361 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74362
74363         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
74364         memcmp if strcoll doesn't work.
74365
74366 2002-12-31  Bruno Haible  <bruno@clisp.org>
74367
74368         * lib/utime.c (utime_null): No need to call ftruncate if the file was
74369         nonempty.
74370
74371 2002-12-31  Bruno Haible  <bruno@clisp.org>
74372
74373         * lib/memcoll.c (STRCOLL): New macro.
74374         (memcoll): Use it.
74375
74376 2002-12-31  Bruno Haible  <bruno@clisp.org>
74377
74378         * lib/localcharset.h: New file.
74379         * lib/localcharset.c: Include it.
74380         * lib/unicodeio.c: Likewise.
74381
74382 2002-12-31  Bruno Haible  <bruno@clisp.org>
74383
74384         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
74385         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
74386
74387 2002-12-31  Bruno Haible  <bruno@clisp.org>
74388
74389         * lib/getline.h: Include <stddef.h>, for size_t.
74390
74391         * lib/unicodeio.h: Include <stddef.h>, for size_t.
74392         * lib/unicodeio.c: Don't include <stddef.h>.
74393
74394 2002-12-31  Bruno Haible  <bruno@clisp.org>
74395
74396         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
74397         HAVE_TM_ZONE.
74398
74399 2002-12-24  Karl Berry  <karl@gnu.org>
74400
74401         * config/config.guess: update from prep.
74402
74403 2002-12-24  Bruno Haible  <bruno@clisp.org>
74404
74405         General infrasructure.
74406         * m4/README: Rewritten.
74407         * m4/onceonly.m4: New file.
74408         * m4/onceonly_2_57.m4: New file.
74409
74410         Module atexit.
74411         * m4/atexit.m4: New file.
74412
74413         Module strtod.
74414         * m4/strtod.m4: New file.
74415
74416         Module strtol.
74417         * m4/strtol.m4: New file.
74418
74419         Module strtoul.
74420         * m4/strtoul.m4: New file.
74421
74422         Module memchr.
74423         * m4/memchr.m4: New file.
74424
74425         Module memcmp.
74426         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
74427         (jm_FUNC_MEMCMP): Invoke it.
74428
74429         Module memcpy.
74430         * m4/memcpy.m4: New file.
74431
74432         Module memmove.
74433         * m4/memmove.m4: New file.
74434
74435         Module memset.
74436         * m4/memset.m4: New file.
74437
74438         Module strcspn.
74439         * m4/strcspn.m4: New file.
74440
74441         Module strpbrk.
74442         * m4/strpbrk.m4: New file.
74443
74444         Module strstr.
74445         * m4/strstr.m4: New file.
74446
74447         Module strerror.
74448         * m4/strerror.m4: New file.
74449
74450         Module mktime.
74451         * m4/mktime.m4: Renamed from jm-mktime.m4.
74452         (gl_PREREQ_MKTIME): New macro.
74453         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
74454
74455         Module malloc.
74456         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
74457         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
74458         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
74459
74460         Module realloc.
74461         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
74462         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
74463         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
74464
74465         Module strftime.
74466         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
74467         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
74468         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
74469         gl_TM_GMTOFF.
74470         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
74471
74472         Module xalloc.
74473         * m4/xalloc.m4: New file.
74474
74475         Module alloca.
74476         * m4/alloca.m4: New file.
74477
74478         Module putenv.
74479         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
74480         (jm_FUNC_PUTENV): Invoke it.
74481
74482         Module setenv.
74483         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
74484         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
74485         when invoked twice.
74486         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
74487         gt_FUNC_SETENV.
74488
74489         Module memrchr.
74490         * m4/memrchr.m4: New file.
74491
74492         Module stpcpy.
74493         * m4/stpcpy.m4: New file.
74494
74495         Module strcase.
74496         * m4/strcase.m4: New file.
74497
74498         Module strdup.
74499         * m4/strdup.m4: New file.
74500
74501         Module strnlen.
74502         * m4/strnlen.m4: New file.
74503
74504         Module strndup.
74505         * m4/strndup.m4: New file.
74506
74507         Module xstrtod.
74508         * m4/xstrtod.m4: New file.
74509
74510         Module xstrtol.
74511         * m4/xstrtol.m4: New file.
74512
74513         Module getdate.
74514         * m4/getdate.m4: New file.
74515
74516         Module unlocked-io.
74517         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
74518         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
74519         * m4/jm-glibc-io.m4n: Remove file.
74520
74521         Module long-options.
74522         * m4/long-options.m4: New file.
74523
74524         Module md5.
74525         * m4/md5.m4: New file.
74526
74527         Module sha.
74528         * m4/sha.m4: New file.
74529
74530         Module getstr.
74531         * m4/getstr.m4: New file.
74532
74533         Module getline.
74534         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
74535         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
74536         <sys/types.h>, for size_t. Use the function name gnu_getline, not
74537         simply getline. Infoke gl_PREREQ_GETLINE.
74538
74539         Module obstack.
74540         * m4/obstack.m4: New file.
74541
74542         Module hash.
74543         * m4/hash.m4: New file.
74544
74545         Module readtokens.
74546         * m4/readtokens.m4: New file.
74547
74548         Module strverscmp.
74549         * m4/strverscmp.m4: New file.
74550
74551         Module stdbool.
74552         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
74553         OSF/1.
74554
74555         Module strtoll.
74556         * m4/strtoll.m4: New file.
74557
74558         Module strtoull.
74559         * m4/strtoull.m4: New file.
74560
74561         Module strtoimax.
74562         * m4/strtoimax.m4: New file.
74563
74564         Module strtoumax.
74565         * m4/strtoumax.m4: New file.
74566
74567         Module xstrtoimax.
74568         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
74569         jm_AC_PREREQ_XSTRTOIMAX.
74570         Moved the strtol prerequisites to strtol.m4.
74571         Moved the strtoll prerequisites to strtoll.m4.
74572         Moved the strtoimax prerequisites to strtoimax.m4.
74573
74574         Module xstrtoumax.
74575         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
74576         jm_AC_PREREQ_XSTRTOUMAX.
74577         Moved the strtoul prerequisites to strtoul.m4.
74578         Moved the strtoull prerequisites to strtoull.m4.
74579         Moved the strtoumax prerequisites to strtoumax.m4.
74580
74581         Module chown.
74582         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
74583         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
74584
74585         Module dup2.
74586         * m4/dup2.m4: New file.
74587
74588         Module ftruncate.
74589         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
74590         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
74591
74592         Module getgroups.
74593         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
74594         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
74595
74596         Module gettimeofday.
74597         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
74598         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
74599         gl_PREREQ_GETTIMEOFDAY.
74600
74601         Module mkdir.
74602         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
74603         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
74604
74605         Module mkstemp.
74606         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
74607         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
74608         jm_AC_TYPE_UINTMAX_T.
74609         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
74610
74611         Module stat.
74612         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
74613         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
74614
74615         Module lstat.
74616         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
74617         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
74618
74619         Module timespec.
74620         * m4/timespec.m4 (gl_TIMESPEC): New macro.
74621         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
74622         * m4/st_mtim.m4: Indentation.
74623
74624         Module nanosleep.
74625         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
74626         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
74627         gl_PREREQ_NANOSLEEP.
74628
74629         Module regex.
74630         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
74631         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
74632         (gl_REGEX): New macro.
74633
74634         Module rename.
74635         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
74636         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
74637
74638         Module rmdir.
74639         * m4/rmdir.m4: New file.
74640
74641         Module utime.
74642         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
74643         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
74644         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
74645
74646         Module dirname.
74647         * m4/dirname.m4: New file.
74648
74649         Module getopt.
74650         * m4/getopt.m4: New file.
74651
74652         Module unistd-safer.
74653         * m4/unistd-safer.m4: New file.
74654
74655         Module fnmatch.
74656         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
74657         declaration.
74658         (gl_PREREQ_FNMATCH_EXTRA): New macro.
74659         (gl_FUNC_FNMATCH_POSIX): New macro.
74660         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
74661         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
74662         simply fnmatch.
74663
74664         Module exclude.
74665         * m4/exclude.m4: New file.
74666
74667         Module human.
74668         * m4/human.m4: New file.
74669
74670         Module acl.
74671         * m4/acl.m4: Nop.
74672
74673         Module backupfile.
74674         * m4/backupfile.m4: New file.
74675         * m4/d-ino.m4: Indentation.
74676
74677         Module fsusage.
74678         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
74679         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
74680         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
74681
74682         Module dirfd.
74683         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
74684         requirements.
74685
74686         Module euidaccess.
74687         * m4/euidaccess.m4: New file.
74688
74689         Module file-type.
74690         * m4/file-type.m4: New file.
74691
74692         Module fileblocks.
74693         * m4/fileblocks.m4: New file.
74694
74695         Module filemode.
74696         * m4/filemode.m4: New file.
74697
74698         Module isdir.
74699         * m4/isdir.m4: New file.
74700
74701         Module lchown.
74702         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
74703         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
74704
74705         Module makepath.
74706         * m4/makepath.m4: New file.
74707
74708         Module modechange.
74709         * m4/modechange.m4: New file.
74710
74711         Module mountlist.
74712         * m4/mountlist.m4: New file.
74713         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
74714         Indentation.
74715
74716         Module path-concat.
74717         * m4/path-concat.m4: New file.
74718
74719         Module pathmax.
74720         * m4/pathmax.m4: New file.
74721
74722         Module same.
74723         * m4/same.m4: New file.
74724
74725         Module save-cwd.
74726         * m4/save-cwd.m4: New file.
74727
74728         Module savedir.
74729         * m4/savedir.m4: New file.
74730
74731         Module xgetcwd.
74732         * m4/xgetcwd.m4: New file.
74733         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
74734
74735         Module xreadlink.
74736         * m4/xreadlink.m4: New file.
74737
74738         Module safe-read.
74739         * m4/safe-read.m4: New file.
74740
74741         Module safe-write.
74742         * m4/safe-write.m4: New file.
74743
74744         Module closeout.
74745         * m4/closeout.m4: New file.
74746
74747         Module stdio-safer.
74748         * m4/stdio-safer.m4: New file.
74749
74750         Module getpass.
74751         * m4/getpass.m4: New file.
74752
74753         Module getugroups.
74754         * m4/getugroups.m4: New file.
74755
74756         Module group-member.
74757         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
74758         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
74759
74760         Module idcache.
74761         * m4/idcache.m4: New file.
74762
74763         Module userspec.
74764         * m4/userspec.m4: New file.
74765
74766         Module gettime.
74767         * m4/clock_time.m4: New file.
74768         * m4/gettime.m4: New file.
74769
74770         Module settime.
74771         * m4/settime.m4: New file.
74772
74773         Module posixtm.
74774         * m4/posixtm.m4: New file.
74775
74776         Module gethostname.
74777         * m4/gethostname.m4: New file.
74778
74779         Module canon-host.
74780         * m4/canon-host.m4: New file.
74781
74782         Module gettext.
74783         * m4/codeset.m4: New file, from gettext-0.11.5.
74784         * m4/gettext.m4: New file, from gettext-0.11.5.
74785         * m4/glibc21.m4: New file, from gettext-0.11.5.
74786         * m4/iconv.m4: New file, from gettext-0.11.5.
74787         * m4/intdiv0.m4: New file, from gettext-0.11.5.
74788         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
74789         * m4/inttypes.m4: New file, from gettext-0.11.5.
74790         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
74791         * m4/isc-posix.m4: New file, from gettext-0.11.5.
74792         * m4/lcmessage.m4: New file, from gettext-0.11.5.
74793         * m4/lib-ld.m4: New file, from gettext-0.11.5.
74794         * m4/lib-link.m4: New file, from gettext-0.11.5.
74795         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
74796         * m4/progtest.m4: New file, from gettext-0.11.5.
74797         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
74798         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
74799         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
74800
74801         Module localcharset.
74802         * m4/localcharset.m4: New file.
74803
74804         Module hard-locale.
74805         * m4/hard-locale.m4: New file.
74806
74807         Module mbswidth.
74808         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
74809         onceonly macros.
74810         * m4/mbrtowc.m4: Add comment.
74811
74812         Module memcasecmp.
74813         * m4/memcasecmp.m4: New file.
74814
74815         Module memcoll.
74816         * m4/memcoll.m4: New file.
74817
74818         Module unicodeio.
74819         * m4/unicodeio.m4: New file.
74820
74821         Module rpmatch.
74822         * m4/rpmatch.m4: New file.
74823
74824         Module yesno.
74825         * m4/yesno.m4: New file.
74826
74827         Module exitfail.
74828         * m4/exitfail.m4: New file.
74829
74830         Module c-stack.
74831         * m4/c-stack.m4 (gl_C_STACK): New macro.
74832         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
74833
74834         Module error.
74835         * m4/error.m4 (gl_ERROR): New macro.
74836         (jm_PREREQ_ERROR): Use onceonly macros.
74837
74838         Module fatal.
74839         * m4/fatal.m4: New file.
74840
74841         Module getloadavg.
74842         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
74843         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
74844
74845         Module getpagesize.
74846         * m4/getpagesize.m4: New file.
74847
74848         Module getusershell.
74849         * m4/getusershell.m4: New file.
74850
74851         Module physmem.
74852         * m4/physmem.m4: New file.
74853
74854         Module posixver.
74855         * m4/posixver.m4: New file.
74856
74857         Module quotearg.
74858         * m4/quotearg.m4: New file.
74859
74860         Module quote.
74861         * m4/quote.m4: New file.
74862
74863         Module readutmp.
74864         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
74865
74866         Module sig2str.
74867         * m4/sig2str.m4: New file.
74868
74869         Other.
74870         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
74871         ulonglong.m4.
74872         * m4/intmax_t.m4: New file.
74873         * m4/d-type.m4: Indentation.
74874         * m4/jm-macros.m4: Update.
74875         * m4/prereq.m4 (jm_PREREQ): Update.
74876         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
74877         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
74878         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
74879         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
74880         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
74881         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
74882         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
74883         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
74884         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
74885         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
74886         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
74887         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
74888         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
74889         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
74890         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
74891         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
74892         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
74893         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
74894         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
74895
74896 2002-12-24  Bruno Haible  <bruno@clisp.org>
74897
74898         * MODULES.txt: Update according to m4/ changes.
74899
74900         Module gettext.
74901         * config.rpath: New file, from gettext-0.11.5.
74902
74903         * modules/*: New module descriptions.
74904         * gnulib-tool: New file.
74905         * MODULES.html.sh: New file.
74906
74907 2002-12-21  Karl Berry  <karl@gnu.org>
74908
74909         * doc/fdl.texi: update to version 1.2.
74910
74911 2002-12-19  Karl Berry  <karl@gnu.org>
74912
74913         * config/config.guess: update from prep.
74914
74915 2002-12-18  Bruno Haible  <bruno@clisp.org>
74916
74917         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
74918         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74919
74920 2002-12-17  Bruno Haible  <bruno@clisp.org>
74921
74922         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
74923         stdlib.h, string.h.
74924
74925 2002-12-17  Bruno Haible  <bruno@clisp.org>
74926
74927         * lib/canon-host.c (strdup): Remove unused declaration.
74928
74929         * lib/fsusage.c: Include full_read.h.
74930         (get_fs_usage): Use full_read instead of safe_read.
74931
74932         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
74933
74934 2002-12-12  Karl Berry  <karl@gnu.org>
74935
74936         * config/config.guess: update from prep.
74937
74938 2002-12-11  Bruno Haible  <bruno@clisp.org>
74939
74940         * m4/setenv.m4: New file, from gettext-0.11.5.
74941
74942 2002-12-11  Bruno Haible  <bruno@clisp.org>
74943
74944         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
74945         not unsetenv().
74946         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
74947         modifications:
74948
74949         2002-12-11  Bruno Haible  <bruno@clisp.org>
74950
74951                 * setenv.c (alloca): Fall back to malloc.
74952                 (freea): New macro.
74953                 (setenv): Use freea() to free memory allocated with alloca().
74954
74955         2002-11-13  Bruno Haible  <bruno@clisp.org>
74956
74957                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
74958                 function declarations.
74959                 * unsetenv.c (unsetenv): Likewise.
74960
74961         2002-03-04  Bruno Haible  <bruno@clisp.org>
74962
74963                 Portability to AIX 4.3.3.
74964                 * unsetenv.c: New file, extracted from setenv.c.
74965                 * setenv.c: Move the unsetenv() function to unsetenv.c.
74966
74967         2001-12-20  Bruno Haible  <bruno@clisp.org>
74968
74969                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
74970                 use malloc instead. For SunOS 4.
74971
74972         2001-12-11  Bruno Haible  <bruno@clisp.org>
74973
74974                 * setenv.c: Declare alloca.
74975                 (compar_fn_t): New typedef.
74976                 (KNOWN_VALUE, STORE_VALUE): Use it.
74977
74978         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
74979         setenv.h.
74980
74981 2002-12-10  Paul Eggert  <eggert@twinsun.com>
74982
74983         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
74984         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
74985         Choose values that are less likely to collide with system fnmatch
74986         options.
74987         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
74988         defined (e.g., a pure POSIX system).
74989         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
74990         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
74991
74992 2002-12-06  Paul Eggert  <eggert@twinsun.com>
74993
74994         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
74995         a pain in practice to deal with generated m4 files.  This change
74996         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
74997
74998         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
74999         and jm-glibc-io.m4, as they are no longer a special case.
75000         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
75001         kludge and the auto-generation stuff.  Check only whether the
75002         functions are declared, not whether they exist, since older hosts
75003         that don't declare the functions can't use the optimization anyway.
75004
75005 2002-12-06  Jim Meyering  <jim@meyering.net>
75006
75007         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
75008
75009         Merge in changes from libc's misc/error.c, in preparation
75010         for the merge of gnulib's changes back into libc.
75011
75012         * lib/error.c (_): Define only if not already defined.
75013         Move definition to follow all #include directives.
75014         Include unlocked-io.h only if !_LIBC.
75015         [_LIBC]: Include <libio/libioP.h>.
75016         [USE_IN_LIBIO]: Include <libio/iolibio.h>
75017         (fflush): Tweak definition to use INTUSE.
75018         (putc): Define.
75019
75020 2002-12-05  Paul Eggert  <eggert@twinsun.com>
75021
75022         * lib/alloca.c [defined emacs]: Include "lisp.h".
75023         (xalloc_die) [defined emacs]: New macro.
75024         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
75025         [! defined emacs]: Include <xalloc.h>.
75026         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
75027         (pointer): Typedef to POINTER_TYPE *.
75028         (malloc): Remove decl; we now always use xmalloc.
75029         (alloca): Use old-style definition, since Emacs needs this.
75030         Check for arithmetic overflow when computing combined size.
75031
75032 2002-12-04  Paul Eggert  <eggert@twinsun.com>
75033
75034         Do not generate unlocked-io.h automatically, since it's easier to
75035         maintain it by hand.
75036
75037         * lib/unlocked-io.h: New file, from GNU diffutils,
75038         but with proper copyright notice and attribution.
75039         * lib/gen-uio: Remove.
75040         * lib/Makefile.am: Add copyright notice.
75041         (libfetish_a_SOURCES): Add unlocked-io.h.
75042         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
75043         (DISTCLEANFILES, io_functions): Remove macros.
75044         (EXTRA_DIST): Remove gen_uio.
75045         (unlocked-io.h): Remove rule.
75046
75047 2002-12-04  Jim Meyering  <jim@meyering.net>
75048
75049         Reflect the fact that stat.c and lstat.c are no longer generated.
75050         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
75051         (DISTCLEANFILES): Likewise.
75052         (EXTRA_DIST): Likewise.
75053         (all_local): Don't depend on stat.c or lstat.c.
75054         (stat.c, lstat.c): Remove rules.
75055         (EXTRA_DIST): Remove xstat.in.
75056
75057         * lib/xstat.in: Remove file.  Contents moved into stat.c.
75058         * lib/stat.c: New file.  Contents mostly from xstat.in.
75059         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
75060         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
75061
75062         * lib/safe-read.c: Rework so that it may serve to define safe_write,
75063         too.
75064         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
75065
75066 2002-12-03  Jim Meyering  <jim@meyering.net>
75067
75068         * lib/safe-read.c, safe-write.c: Change variable names and comments,
75069         but not semantics, to minimize the differences between these two files.
75070         (safe_read): Change comment to mention SAFE_READ_ERROR.
75071
75072         * lib/safe-read.c (IS_EINTR): Define.
75073         (safe_read): Use IS_EINTR in place of in-function cpp directives.
75074
75075 2002-12-02  Jim Meyering  <jim@meyering.net>
75076
75077         * lib/safe-read.c (EINTR): Define.
75078         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75079         (INT_MAX): Provide fallback.
75080         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
75081
75082         * lib/safe-read.h (SAFE_READ_ERROR): Define.
75083
75084 2002-12-02  Bruno Haible  <bruno@clisp.org>
75085
75086         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
75087         Define, taken from safe-read.c.
75088         (INT_MAX): Provide fallback.
75089         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
75090         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
75091
75092         * lib/safe-read.c (EINTR): Remove definition.
75093         (safe_read): Don't use EINTR if it is absent.
75094
75095 2002-12-01  Jim Meyering  <jim@meyering.net>
75096
75097         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
75098         zero.
75099         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
75100
75101 2002-11-27  Paul Eggert  <eggert@twinsun.com>
75102
75103         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
75104         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
75105         with `if (! (value < limit)) abort ();', for readability.
75106
75107 2002-11-26  Karl Berry  <karl@gnu.org>
75108
75109         * lib/strdup.c: copy from libc again, with jim's ok.
75110         * lib/.cppi-disable: re-add strdup.c
75111
75112 2002-11-25  Karl Berry  <karl@gnu.org>
75113
75114         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
75115         instead of "strtol.c".
75116
75117 2002-11-25  Karl Berry  <karl@gnu.org>
75118
75119         * config/install-sh: update from automake for variable quoting, $0 in
75120         error msgs, etc.
75121
75122         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
75123         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
75124         entry.
75125
75126 2002-11-25  Jim Meyering  <jim@meyering.net>
75127
75128         * lib/mktime.c: Sync from libc, now that it has the latest fix.
75129
75130 2002-11-24  Karl Berry  <karl@gnu.org>
75131
75132         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
75133         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
75134
75135 2002-11-24  Jim Meyering  <jim@meyering.net>
75136
75137         Update from coreutils:
75138
75139         * lib/mktime.c: Merge in changes from libc.
75140
75141         Avoid a link-time failure on some Linux systems.
75142         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
75143         (otherwise).
75144         (__mon_yday): Declare with the STATIC attribute.
75145         (__mktime_internal): Likewise.
75146         Based on a report from Greg Schafer.
75147
75148 2002-11-23  Jim Meyering  <jim@meyering.net>
75149
75150         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
75151         Use `unsigned', not `int', as type of index.
75152
75153         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
75154
75155         * lib/fsusage.c: Remove unneeded parentheses around operands of
75156         `defined'.
75157
75158 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75159
75160         * lib/quotearg.h: Allow multiple inclusion by surrounding with
75161         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
75162         so that we can be included first.
75163         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
75164         * lib/quotearg.c: Include quotearg.h immediately after config.h.
75165         No need to include stddef.h or sys/types.h any more.
75166         Surround local include files with "", not "<>".
75167         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
75168         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
75169         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
75170         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
75171         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
75172         (ISPRINT): Remove; no longer needed now that we assume C89.
75173
75174         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
75175         Preserve errno.
75176
75177         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
75178         quotearg_char): Use SIZE_MAX rather than
75179         (size_t) -1 when we are talking about "infinity".
75180
75181         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
75182
75183 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75184
75185         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
75186         hint that one should use `if (! x) abort ();' rather than `assert
75187         (x);', and anyway it's one less thing to worry about configuring.
75188         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
75189         hash_rehash, hash_insert): Use abort rather than assert.
75190
75191 2002-11-22  Bruno Haible  <bruno@clisp.org>
75192
75193         * lib/safe-read.h: Assume C89. Add comments.
75194         (safe_read): Change return type to size_t.
75195         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
75196         byte counts > SSIZE_MAX correctly.
75197         * lib/safe-write.h: New file.
75198         * lib/safe-write.c: New file.
75199         * lib/full-read.h: New file.
75200         * lib/full-read.c: New file.
75201         * lib/full-write.h: Assume C89. Add comments.
75202         * lib/full-write.c: Include safe-write.h.
75203         (full_write): Rewritten to use safe_write.
75204         Suggested by Jim Meyering and Paul Eggert.
75205
75206 2002-11-21  Jim Meyering  <jim@meyering.net>
75207
75208         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
75209
75210         Merge in changes from the coreutils.
75211
75212         2002-09-25  Paul Eggert  <eggert@twinsun.com>
75213         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
75214         <stdint.h>.
75215         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
75216         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
75217         int.  Work more efficiently if X is the same width as uintmax_t.
75218         Do not compare X to -1, to avoid bogus compiler warning.
75219         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
75220         Don't assume that f_frsize and f_bsize are the same type.
75221
75222         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
75223         warning on FreeBSD.
75224
75225         * lib/makepath.c (make_path): Restore umask *before* creating the final
75226         component.
75227         (make_path): Minor reformatting.
75228
75229         * lib/xmalloc.c: Adjust to work with new autoconf macros,
75230         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
75231         HAVE_MALLOC/HAVE_REALLOC.
75232
75233         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
75234         dummy ones.  At least on GNU/Linux systems, `auto' means something
75235         else.
75236         From Michael Stone.
75237
75238 2002-11-21  Bruno Haible  <bruno@clisp.org>
75239
75240         Remove case insensitive option matching.
75241         * lib/argmatch.h (argcasematch): Remove declaration.
75242         (ARGCASEMATCH): Remove macro.
75243         (__xargmatch_internal): Remove case_sensitive argument.
75244         (XARGMATCH): Update.
75245         (XARGCASEMATCH): Remove macro.
75246         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
75247         case_sensitive argument.
75248         (argcasematch): Remove function.
75249         (__xargmatch_internal): Remove case_sensitive argument.
75250         (main): Use XARGMATCH instead of XARGCASEMATCH.
75251
75252         * lib/xmalloc.c: Change compile-time error message. Add comment about
75253         required autoconf version.
75254
75255 2002-11-20  Paul Eggert  <eggert@twinsun.com>
75256
75257         Merge argmatch cleanups from Bison.  Assume C89.
75258
75259         * lib/argmatch.c: Include config.h here, not in argmatch.h.
75260         Include stdlib.h, for EXIT_FAILURE.
75261         Always include <string.h>, since we assume C89.
75262         (EXIT_FAILURE): Remove pre-C89 bug workaround.
75263         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
75264         Include <stddef.h> instead, since it's all we need for size_t.
75265         (PARAMS): Remove.  All uses removed.
75266         (ARRAY_CARDINALITY): Do not bother to #undef.
75267         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
75268         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75269         Remove unnecessary parentheses.
75270         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75271         Insert necessary parentheses.
75272         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
75273         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
75274
75275 2002-11-19  Bruno Haible  <bruno@clisp.org>
75276
75277         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
75278         * lib/mbswidth.h: Include <stddef.h>, for size_t.
75279
75280         * lib/mbswidth.h (PARAMS): Remove macro.
75281         (mbswidth, mbsnwidth): Use ANSI C function declarations.
75282         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
75283
75284         * lib/gcd.h (PARAMS): Remove macro.
75285         (gcd): Use ANSI C function declarations.
75286         * lib/gcd.c (gcd): Likewise.
75287
75288 2002-11-15  Bruno Haible  <bruno@clisp.org>
75289
75290         * lib/strcspn.c: Include <stddef.h>.
75291         (strcspn): Use ANSI C function declaration. Change return type to
75292         size_t. Use NULL.
75293         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
75294         (strpbrk): Use NULL.
75295         * lib/strpbrk.h (PARAMS): Remove macro.
75296         (strpbrk): Use ANSI C function declaration.
75297         * lib/strstr.c: Don't include <sys/types.h>.
75298         * lib/strstr.h (PARAMS): Remove macro.
75299         (strstr): Use ANSI C function declarations.
75300
75301 2002-11-14  Karl Berry  <karl@gnu.org>
75302
75303         * config/mkinstalldirs: `do' on separate line, instead of
75304         `for var; do'.
75305
75306 2002-11-06  Bruno Haible  <bruno@clisp.org>
75307
75308         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
75309         * lib/gcd.c (gcd): Likewise.
75310
75311 2002-11-05  Bruno Haible  <bruno@clisp.org>
75312
75313         * lib/gcd.h: New file, from gettext-0.11.5.
75314         * lib/gcd.c: New file, from gettext-0.11.5.
75315
75316 2002-11-05  Bruno Haible  <bruno@clisp.org>
75317
75318         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75319         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75320         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75321         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75322
75323         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
75324         <libintl.h>.
75325         * lib/makepath.c: Include gettext.h instead of <locale.h> and
75326         <libintl.h>.
75327
75328         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
75329         * lib/human.c: Include gettext.h instead of <libintl.h>.
75330         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
75331         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
75332         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
75333         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
75334         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
75335         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
75336         (textdomain): Remove definition.
75337         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
75338
75339         * lib/long-options.c: Remove include of <libintl.h> and definition of
75340         _.
75341         * lib/same.c: Remove include of <libintl.h> and definition of _.
75342
75343 2002-11-04  Owen Taylor  <otaylor@redhat.com>
75344
75345         * lib/config.charset: A few additions for Solaris.
75346
75347 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75348
75349         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
75350         * lib/localcharset.c (locale_charset): Declare as extern "C".
75351
75352 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75353
75354         * lib/config.charset: msdos in uk_UA uses CP1125.
75355
75356 2002-11-04  Bruno Haible  <bruno@clisp.org>
75357
75358         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
75359         * lib/strcase.h: New file, from GNU gettext-0.11.5.
75360         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
75361         * lib/strstr.h: New file, from GNU gettext-0.11.5.
75362         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
75363
75364 2002-11-04  Bruno Haible  <bruno@clisp.org>
75365
75366         * lib/localcharset.c (locale_charset): Don't return an empty string.
75367
75368 2002-11-04  Bruno Haible  <bruno@clisp.org>
75369
75370         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
75371         aliases.
75372
75373 2002-11-04  Bruno Haible  <bruno@clisp.org>
75374
75375         * lib/config.charset: Update for newest glibc. Add canonical names
75376         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
75377
75378 2002-11-04  Bruno Haible  <bruno@clisp.org>
75379
75380         * lib/config.charset: Add support for NetBSD.
75381
75382 2002-11-04  Bruno Haible  <bruno@clisp.org>
75383
75384         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
75385
75386 2002-11-01  Bruno Haible  <bruno@clisp.org>
75387
75388         * configure.in: Add AC_CONFIG_AUX_DIR call.
75389         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
75390         test/Makefile.
75391         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
75392
75393 2002-09-28  Karl Berry  <karl@gnu.org>
75394
75395         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
75396         installed automake until the next release, since changes have been
75397         made.
75398
75399 2002-09-25  Karl Berry  <karl@gnu.org>
75400
75401         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
75402         * lib/getopt*: copy from libc/posix.
75403         * lib/gettext.h: copy from gettext.
75404         * lib/.cppi-disable: add strdup.c, gettext.h.
75405
75406 2002-09-25  Karl Berry  <karl@gnu.org>
75407
75408         * config/srclist.txt: enable gettext.h check.
75409         * config/config.{guess,sub}: update from prep.
75410         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
75411                 from automake 1.6.3.
75412         See srclist*.
75413
75414 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
75415
75416         * regex.c (PATFETCH): Remove the translating fetch.
75417         (PATFETCH_RAW): Rename to PATFETCH.
75418         (set_image_of_range): New fun.
75419         (SET_RANGE_TABLE_WORK_AREA): Use it.
75420         (regex_compile): Don't translate the pattern chars so eagerly.
75421         Only do it when inserting an `exactn' bytecode or when handling
75422         a char-range.
75423         (mutually_exclusive_p): Avoid empty statement.
75424
75425 2002-07-06  Jim Meyering  <meyering@lucent.com>
75426
75427         * m4/README: Don't mention Makefile.am.in.
75428         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
75429
75430 2002-07-01  Jim Meyering  <meyering@lucent.com>
75431
75432         * lib/c-stack.c: Include sys/time.h.
75433         From Volker Borchert.
75434
75435 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75436
75437         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
75438
75439 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75440
75441         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
75442         New macro.  Use it uniformly instead of
75443         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
75444         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
75445         reported by Vin Shelton.
75446
75447 2002-06-22  Paul Eggert  <eggert@twinsun.com>
75448
75449         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
75450         Do not assume SA_SIGINFO behavior.
75451         Bug reported by Jim Meyering on NetBSD 1.5.2.
75452
75453 2002-06-22  Jim Meyering  <meyering@lucent.com>
75454
75455         * m4/c-stack.m4: New file, from diffutils-2.8.2.
75456         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
75457
75458         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
75459         now that configure.ac uses AC_GNU_SOURCE.
75460         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
75461         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
75462
75463         Update to latest tools.  Suggestions from Paul Eggert.
75464         * m4/stdbool.m4: New file, from diffutils-2.8.2.
75465         * m4/gnu-source.m4: Update from diffutils-2.8.2.
75466         * m4/fnmatch.m4: Likewise.
75467         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
75468         to AC_HEADER_STDBOOL
75469
75470 2002-06-22  Jim Meyering  <meyering@lucent.com>
75471
75472         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
75473         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
75474
75475 2002-06-22  Jim Meyering  <meyering@lucent.com>
75476
75477         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
75478
75479         * lib/exitfail.c, exitfail.h: Likewise.
75480         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
75481
75482         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
75483         of fnmatch.h.
75484         (EXTRA_DIST): Add fnmatch_loop.c.
75485         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
75486
75487         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
75488         * lib/fnmatch.c: Update from diffutils-2.8.2.
75489         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
75490         * lib/fnmatch.h: Remove file.
75491
75492 2002-06-21  Jim Meyering  <meyering@lucent.com>
75493
75494         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
75495         * m4/mbrtowc.m4: Likewise.
75496
75497         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
75498         * m4/mbswidth.m4: Reflect name change:
75499         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
75500         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75501
75502         * m4/lib-link.m4: Update from gettext-0.11.2.
75503         * m4/gettext.m4: Likewise.
75504
75505         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
75506         From Alfred M. Szmidt.
75507
75508 2002-06-18  Paul Eggert  <eggert@twinsun.com>
75509
75510         * lib/file-type.h: Report an error if neither S_ISREG nor
75511         S_IFREG is defined, instead of using a test specific to glibc
75512         2.2.  This should be safe, since POSIX requires S_ISREG and
75513         Unix Version 7 had S_IFREG.  We don't need to check for
75514         <sys/types.h> since we don't use any symbols that it defines.
75515
75516 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
75517
75518         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
75519         $@-t, so that each temporary file name is unique and valid in the first
75520         8 characters, for operation under DOS.
75521
75522 2002-06-15  Paul Eggert  <eggert@twinsun.com>
75523
75524         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
75525
75526 2002-06-15  Jim Meyering  <meyering@lucent.com>
75527
75528         Work even with DJGPP 2.03, which lacks support for symlinks.
75529         From Richard Dawe.
75530         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
75531         is defined.
75532         * lib/lchown.c (S_ISLNK): Likewise.
75533
75534 2002-06-15  Jim Meyering  <meyering@lucent.com>
75535
75536         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
75537         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
75538         have been included before this file.
75539
75540 2002-06-14  Jim Meyering  <meyering@lucent.com>
75541
75542         * lib/file-type.h: Use the version from diffutils-2.8.2.
75543         * lib/file-type.c: Likewise.
75544
75545 2002-06-07  Jim Meyering  <meyering@lucent.com>
75546
75547         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
75548         They're needed at least for NetBSD 1.5.2.
75549         ($statxfs_includes): Include those same headers.
75550         ($statxfs_includes): Include sys/vfs.h if available.
75551         ($statxfs_includes): Likewise for sys/statvfs.h.
75552         Check for the following members in both structs statfs and statvfs:
75553         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
75554
75555 2002-06-01  Jim Meyering  <meyering@lucent.com>
75556
75557         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
75558         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
75559
75560 2002-05-28  Jim Meyering  <meyering@lucent.com>
75561
75562         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
75563         Reported by Volker Borchert.
75564
75565 2002-05-27  Jim Meyering  <meyering@lucent.com>
75566
75567         Fix a problem seen only on nonconforming systems whereby ls.c's
75568         use of localtime, and then of gettimeofday would cause trouble:
75569         the localtime call used to initialize rpl_gettimeofday's save
75570         mechanism would clobber ls's current local time information so
75571         that in any long listing the first file would always be listed
75572         with date 1970-01-01.  Analysis by Volker Borchert.
75573
75574         * lib/gettimeofday.c (localtime): Undefine.
75575         (rpl_localtime): New function.
75576
75577 2002-05-27  Jim Meyering  <meyering@lucent.com>
75578
75579         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
75580         localtime.
75581
75582         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
75583         use the replacement function; it wouldn't resolve at link time.
75584         Reported by Volker Borchert.
75585
75586 2002-05-22  Jim Meyering  <meyering@lucent.com>
75587
75588         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
75589         file-type.h.
75590         * lib/file-type.h: New file.
75591         * lib/file-type.c (file_type): New file/function.  Extracted from
75592         diffutils.
75593
75594 2002-04-30  Jim Meyering  <meyering@lucent.com>
75595
75596         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
75597
75598 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75599
75600         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
75601
75602 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75603
75604         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
75605         Do not check for alloca.h (no longer used) or stdbool.h (was never
75606         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
75607
75608 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75609
75610         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
75611
75612 2002-04-29  Jim Meyering  <meyering@lucent.com>
75613
75614         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
75615         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
75616         Use AC_FUNC_STRNLEN here instead.
75617
75618         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
75619         With autoconf-2.53a, it's part of AC_PROG_CC.
75620
75621 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75622
75623         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
75624         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
75625
75626 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75627
75628         * lib/sig2str.h, lib/sig2str.c: New files.
75629         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
75630
75631 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75632
75633         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
75634         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
75635         of 127, since 64 is the largest conceivable number for ancient
75636         nonstandard hosts.
75637         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
75638
75639 2002-04-28  Jim Meyering  <meyering@lucent.com>
75640
75641         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
75642
75643 2002-04-24  Jim Meyering  <meyering@lucent.com>
75644
75645         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
75646         (jm_PREREQ): Use it.
75647
75648         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
75649         mach/mach.h fcntl.h.
75650         Check for this function: setlocale.
75651
75652 2002-04-24  Jim Meyering  <meyering@lucent.com>
75653
75654         * lib/gettext.h: New file, from Gettext.
75655         * lib/Makefile.am (INCLUDES): Remove -I../intl.
75656         (libfetish_a_SOURCES): Add gettext.h.
75657
75658 2002-04-16  Jim Meyering  <meyering@lucent.com>
75659
75660         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
75661         ut_pid, ut_id, ut_exit.
75662
75663 2002-04-16  Jim Meyering  <meyering@lucent.com>
75664
75665         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
75666         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
75667         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
75668
75669 2002-04-12  Jim Meyering  <meyering@lucent.com>
75670
75671         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
75672         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
75673         existence of the getmntinfo function.  Needed for Darwin 5.3.
75674
75675         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
75676         This is necessary at least on Darwin 5.3.
75677
75678         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
75679         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
75680         strnlen.o in the library, and that makes some versions of ranlib
75681         object.
75682
75683 2002-04-12  Jim Meyering  <meyering@lucent.com>
75684
75685         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
75686
75687 2002-04-09  Jim Meyering  <meyering@lucent.com>
75688
75689         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
75690         to be more precise.  Rather than saying we're checking whether the
75691         function `works', say what we're testing.
75692         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
75693         Reported by Bruno Haible.
75694
75695 2002-03-10  Jim Meyering  <meyering@lucent.com>
75696
75697         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
75698         Suggestion from Santiago Vila.
75699
75700 2002-03-08  Jim Meyering  <meyering@lucent.com>
75701
75702         * lib/rename.c: Mention that this wrapper is needed also on
75703         mips-dec-ultrix4.4 systems.
75704
75705 2002-03-02  Jim Meyering  <meyering@lucent.com>
75706
75707         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
75708         not HAVE_CLOCK_SETTIME.
75709
75710 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75711
75712         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
75713         Check for clock_settime.
75714
75715 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75716
75717         * lib/nanosleep.h: Rename to....
75718         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
75719
75720         * lib/gettime.c: New file.
75721         * lib/settime.c: New file.
75722         * lib/stime.c: Remove.
75723
75724         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
75725         timespec.h.  Remove nanosleep.h.
75726
75727 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75728
75729         * m4/acl.m4: New file.
75730         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
75731         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
75732
75733 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75734
75735         * lib/acl.c, lib/acl.h: New files.
75736         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
75737
75738 2002-02-24  Jim Meyering  <meyering@lucent.com>
75739
75740         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
75741         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
75742         cause trouble.  Reported by Nelson Beebe.
75743
75744 2002-02-23  Paul Eggert  <eggert@twinsun.com>
75745
75746         * lib/path-concat.c (xpath_concat): Reorder code to pacify
75747         compilers that don't know that xalloc_die never returns.
75748
75749 2002-02-20  Jim Meyering  <meyering@lucent.com>
75750
75751         * lib/getdate.c: Regenerate using bison-1.33.
75752
75753 2002-02-17  Jim Meyering  <meyering@lucent.com>
75754
75755         * config/config.guess (main): Don't use `head -1'; it's no longer
75756         portable. Use `sed 1q' instead.
75757
75758 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
75759
75760         * m4/codeset.m4: Upgrade to gettext-0.11.
75761         * m4/gettext.m4: Upgrade to gettext-0.11.
75762         * m4/glibc21.m4: Upgrade to gettext-0.11.
75763         * m4/iconv.m4: Upgrade to gettext-0.11.
75764         * m4/isc-posix.m4: Upgrade to gettext-0.11.
75765         * m4/lcmessage.m4: Upgrade to gettext-0.11.
75766         * m4/lib-ld.m4: New file, from gettext-0.11.
75767         * m4/lib-link.m4: New file, from gettext-0.11.
75768         * m4/lib-prefix.m4: New file, from gettext-0.11.
75769         * m4/progtest.m4: Upgrade to gettext-0.11.
75770
75771 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75772
75773         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
75774         (jm_PREREQ): Use it.
75775
75776 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75777
75778         * lib/posixver.c, lib/posixver.h: New files.
75779         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75780
75781 2002-02-02  Paul Eggert  <eggert@twinsun.com>
75782             Bruno Haible  <bruno@clisp.org>
75783
75784         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
75785         (fwrite_success_callback): New declaration.
75786         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
75787         print_unicode_char. Call failure callback instead of error.
75788         (fwrite_success_callback): New function.
75789         (exit_failure_callback): New function.
75790         (fallback_failure_callback): New function.
75791         (print_unicode_char): Call unicode_to_mb.
75792
75793 2002-01-26  Jim Meyering  <meyering@lucent.com>
75794
75795         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
75796         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
75797
75798 2002-01-26  Jim Meyering  <meyering@lucent.com>
75799
75800         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
75801
75802 2002-01-22  Paul Eggert  <eggert@twinsun.com>
75803
75804         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
75805
75806 2002-01-22  Jim Meyering  <meyering@lucent.com>
75807
75808         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
75809         Otherwise, some versions of automake would omit the rule that makes
75810         Makefile from Makefile.in.
75811
75812 2002-01-21  Paul Eggert  <eggert@twinsun.com>
75813
75814         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
75815         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75816         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
75817         (memcoll): Set errno to zero if there is no error.
75818
75819         * lib/quotearg.c (quotearg_buffer_restyled):
75820         Fix bug with quoting buffers containing NUL when backslashing escapes.
75821         This bug was exposed by the other changes in this patch.
75822         (quotearg_n_options): New arg ARGSIZE.
75823         All callers changed.
75824         (quoting_options_from_style): New function.
75825         (quotearg_n_style): Use it.
75826         (quotearg_n_style_mem): New function.
75827
75828         * lib/quotearg.h (quotearg_n_style_mem): New function.
75829
75830 2002-01-19  Jim Meyering  <meyering@lucent.com>
75831
75832         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
75833         Remove useless quotes: DF_PROG="df".
75834         * m4/strnlen.m4: New file.
75835
75836 2002-01-16  Paul Eggert  <eggert@twinsun.com>
75837
75838         * lib/backupfile.c (ISDIGIT): Comment fix.
75839         * lib/getdate.y (ISDIGIT): Likewise.
75840         * lib/posixtm.c (ISDIGIT, year): Likewise.
75841         * lib/strverscmp.c (ISDIGIT): Likewise.
75842         * lib/userspec.c (ISDIGIT): Likewise.
75843
75844 2002-01-16  Jim Meyering  <meyering@lucent.com>
75845
75846         * lib/getdate.y: Add three semicolons, each just before a closing
75847         brace. Bison (as of version 1.31) no longer papers over that mistake.
75848
75849 2002-01-05  Jim Meyering  <meyering@lucent.com>
75850
75851         * lib/version-etc.c (version_etc_copyright): Update copyright year.
75852
75853 2001-12-19  Paul Eggert  <eggert@twinsun.com>
75854
75855         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
75856         not silently exit merely because the output buffer happens to
75857         have nothing pending.
75858
75859 2001-12-18  Paul Eggert  <eggert@twinsun.com>
75860
75861         See the big note in ../ChangeLog.
75862         * lib/human.c (suffixes): Prefer K to k for 1024.
75863         (generate_suffix_backwards): New function.
75864         (human_readable_inexact): Use it.
75865         * lib/xstrtol.c (__xstrtol): If there is no number but there
75866         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
75867         Accept 'K' as well as 'k'.
75868
75869 2001-12-15  Jim Meyering  <meyering@lucent.com>
75870
75871         * lib/regex.h (__restrict_arr): Update from libc.
75872
75873         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
75874         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
75875         (STREQ): Define.
75876
75877 2001-12-14  Jim Meyering  <meyering@lucent.com>
75878
75879         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
75880         Suggestion from Bruno Haible.
75881
75882 2001-12-10  Jim Meyering  <meyering@lucent.com>
75883
75884         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
75885         xrealloc, Instead, include "xalloc.h".
75886         (initbuffer): Don't cast xmalloc return value to char*.
75887         (readline): Reword comment.
75888         Don't cast xrealloc return value to char*
75889         Return NULL, not 0.
75890
75891 2001-12-09  Jim Meyering  <meyering@lucent.com>
75892
75893         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
75894         about `signed and unsigned type in conditional expression'.
75895         * lib/posixtm.c (posix_time_parse): Likewise.
75896
75897         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
75898
75899         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
75900         to avoid a pedantic warning.
75901
75902         * lib/getstr.c: Don't include assert.h.
75903         (getstr): Remove warning-evoking assertions.
75904         Return -1 if offset parameter is out of bounds.
75905         Change the type of a local from int to size_t.
75906
75907         * lib/strftime.c (my_strftime_localtime_r): Include this function
75908         definition in the `#if ! HAVE_TM_GMTOFF' block.
75909
75910         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
75911         Include xalloc.h instead.
75912
75913 2001-12-02  Jim Meyering  <meyering@lucent.com>
75914
75915         * lib/tempname.c: Don't declare getenv, thus reverting the change of
75916         2001-11-18.  It's no longer necessary, now that stdlib.h is always
75917         included.
75918
75919         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75920         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75921
75922 2001-11-30  Akim Demaille  <akim@epita.fr>
75923
75924         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
75925         before being defined.
75926
75927 2001-11-27  Paul Eggert  <eggert@twinsun.com>
75928
75929         * lib/quotearg.h (quotearg_n, quotearg_n_style):
75930         First arg is int, not unsigned.
75931         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
75932         (SIZE_MAX, UINT_MAX): New macros.
75933         (quotearg_n_options): Abort if N is negative.
75934         Avoid overflow check on hosts where size_t is 64 bits and int
75935         is 32 bits, as overflow is impossible there.
75936         Fix off-by-one typo that caused unnecessary reallocation.
75937
75938 2001-11-27  Jim Meyering  <meyering@lucent.com>
75939
75940         * lib/tempname.c: Merge with version from libc.
75941         * lib/regex.c: Likewise.
75942
75943         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
75944         systems for which STDC_HEADERS is 0, it was not included, resulting in
75945         a warning about an integer-to-pointer conversion problem with getenv.
75946         Reported by Volker Borchert.
75947
75948 2001-11-26  Jim Meyering  <meyering@lucent.com>
75949
75950         * lib/gtod.h: Remove file.
75951         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
75952         * lib/gettimeofday.c: Don't include gtod.h.
75953         (GTOD_init): Remove function.
75954         (rpl_gettimeofday): Do its job here instead, rather than aborting.
75955         Suggestion from Volker Borchert.
75956
75957 2001-11-23  Jim Meyering  <meyering@lucent.com>
75958
75959         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
75960         it.
75961         * lib/hash.c (struct hash_table): Define it here instead.
75962
75963 2001-11-22  Jim Meyering  <meyering@lucent.com>
75964
75965         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
75966
75967 2001-11-20  Jim Meyering  <meyering@lucent.com>
75968
75969         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
75970         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
75971
75972 2001-11-19  Jim Meyering  <meyering@lucent.com>
75973
75974         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
75975         directory.  Use "conftestXXXXXX" as the template.
75976         Suggestion from Paul Eggert.
75977
75978         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
75979         immediately, so the test doesn't mistakenly hit the max-open-files
75980         limit.
75981
75982 2001-11-18  Paul Eggert  <eggert@twinsun.com>
75983
75984         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
75985         (TEMPORARIES): New macro.
75986         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
75987         removes an artificial limitation (e.g. HP-UX 10.20, where
75988         TMP_MAX is 17576).
75989
75990 2001-11-18  Jim Meyering  <meyering@lucent.com>
75991
75992         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
75993
75994 2001-11-18  Jim Meyering  <meyering@lucent.com>
75995
75996         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
75997         on SunOS 4.
75998
75999         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
76000         files will be created before anything else.
76001
76002 2001-11-17  Paul Eggert  <eggert@twinsun.com>
76003
76004         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
76005         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
76006
76007 2001-11-17  Jim Meyering  <meyering@lucent.com>
76008
76009         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
76010         Prompted by a report from Bob Proulx.
76011
76012         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
76013         Instead, require UTILS_FUNC_MKSTEMP.
76014
76015 2001-11-17  Jim Meyering  <meyering@lucent.com>
76016
76017         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
76018         Now, that's done as part of AC_FUNC_STRTOD.
76019
76020 2001-11-17  Jim Meyering  <meyering@lucent.com>
76021
76022         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
76023         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
76024         rather than group writable.  Patch by Juan F. Codagnone.
76025
76026         * lib/readtokens.c: Remove explicit declarations of xmalloc and
76027         xrealloc, Instead, include "xalloc.h".
76028
76029         * lib/mountlist.c: Include unlocked-io.h after all system headers.
76030         Remove explicit declarations of xmalloc, xrealloc,
76031         and xstrdup.  Instead, include "xalloc.h".
76032
76033         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
76034         unlocked-io.h.
76035         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
76036         Likewise.
76037         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
76038
76039         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
76040         Reported by Padraig Brady.
76041
76042         * lib/mkstemp.c: #undef mkstemp.
76043         Include config.h.
76044         (rpl_mkstemp): Rename from mkstemp.
76045         Protoize.
76046
76047 2001-11-16  Jim Meyering  <meyering@lucent.com>
76048
76049         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
76050         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
76051         determine the amount of total physical memory, use pstat_getstatic.
76052         HPUX-11 doesn't define _SC_PHYS_PAGES.
76053         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
76054         If sysconf couldn't be used to determine the amount of available
76055         physical memory, use both pstat_getstatic and pstat_getdynamic.
76056         Based on a patch from Bob Proulx.
76057
76058 2001-11-10  Jim Meyering  <meyering@lucent.com>
76059
76060         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
76061         (jm_PREREQ): Use it.
76062
76063 2001-11-09  Jim Meyering  <meyering@lucent.com>
76064
76065         * m4/jm-macros.m4: Require autoconf-2.52f.
76066         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
76067         Use these AC_-prefixed names, not the AM_-prefixed ones.
76068
76069         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
76070
76071 2001-11-05  Jim Meyering  <meyering@lucent.com>
76072
76073         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
76074
76075 2001-11-04  Jim Meyering  <meyering@lucent.com>
76076
76077         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
76078         $DEFS.
76079
76080 2001-11-03  Jim Meyering  <meyering@lucent.com>
76081
76082         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
76083         of AC_DEFUN.
76084
76085         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
76086         know the name of the variable in the macro definition.
76087
76088 2001-11-03  Jim Meyering  <meyering@lucent.com>
76089
76090         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
76091         in argmatch_to_argument call.
76092
76093         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
76094         argument.
76095
76096         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
76097         e.g., a fault due to an attempt to free a NULL pointer.
76098
76099 2001-11-01  Jim Meyering  <meyering@lucent.com>
76100
76101         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
76102         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
76103
76104 2001-11-01  Jim Meyering  <meyering@lucent.com>
76105
76106         * lib/dirfd.c, lib/dirfd.h: New files.
76107         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
76108
76109         * lib/hash.c (hash_print) [TESTING]: Clean up.
76110
76111 2001-10-22  Paul Eggert  <eggert@twinsun.com>
76112
76113         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
76114         to avoid a warning if -Wall.
76115
76116 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
76117
76118         * README: New file
76119         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
76120         (per RMS's instructions, this is now the canonical source)
76121         * lgpl/, gpl/: New directories.
76122
76123 2001-10-21  Paul Eggert  <eggert@twinsun.com>
76124
76125         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
76126
76127 2001-10-21  Jim Meyering  <meyering@lucent.com>
76128
76129         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
76130         this code would end up calling gettext even in packages built
76131         with --disable-nls.
76132         * lib/getopt.c (_): Likewise.
76133         * lib/regex.c (_): Likewise.
76134
76135 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76136
76137         * m4/error.m4 (jm_PREREQ_ERROR):
76138         Do not invoke AC_CHECK_FUNCS with strerror_r, as
76139         AC_FUNC_STRERROR_R does that.
76140         Check for strerror declaration.
76141
76142         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
76143         are supposed to have them these days.
76144         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
76145         Merge changes from latest Autoconf CVS.
76146         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
76147         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
76148         POSIX decided to standardize on the int flavor of strerror_r.
76149
76150 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76151
76152         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
76153         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
76154         Use strerror_r that is only a macro, even if it is not a function.
76155         (strerror): Check for HAVE_DECL_STRERROR before declaring.
76156         (private_strerror): Use prototypes, not old-style function definition.
76157         (print_errno_message): New function.
76158         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
76159         char*-flavored one.
76160         (error_tail, error, error_at_line): Use it.
76161
76162 2001-10-11  Jim Meyering  <meyering@lucent.com>
76163
76164         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
76165         and quote_n (1, ... to avoid clobbering a buffer.
76166
76167 2001-10-05  Jim Meyering  <meyering@lucent.com>
76168
76169         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
76170         hash-pjw.h.
76171         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
76172         * lib/hash-pjw.h: New file.
76173
76174 2001-09-30  Jim Meyering  <meyering@lucent.com>
76175
76176         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
76177         `struct fsstat' has the `f_fstypename' member.
76178         Use that to define FS_TYPE, which is now used to make
76179         the getfsstat link test tighter.
76180
76181 2001-09-30  Jim Meyering  <meyering@lucent.com>
76182
76183         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
76184         Include <sys/ucred.h>, for Apple Darwin.
76185         Include sys/mount.h and sys/fs_types.h only if available.
76186         (FS_TYPE): Define.
76187         (read_filesystem_list): Use FS_TYPE.
76188
76189 2001-09-29  Paul Eggert  <eggert@twinsun.com>
76190
76191         * lib/exclude.c (excluded_filename): 0 -> false, since it's
76192         a boolean context.
76193
76194 2001-09-29  Jim Meyering  <meyering@lucent.com>
76195
76196         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76197         [one-argument getmntent function]): Include stdio.h before mntent.h.
76198         SunOS 4.1.x needs it for the declaration of `FILE'.
76199         Patch by Volker Borchert.
76200
76201         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76202         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
76203         sys/fs_types.h, and make the link-test for getfsstat guard #include
76204         directives with appropriate #if HAVE_*_H tests so that we can
76205         detect getfsstat on Apple Darwin1.3.7 systems.
76206         Reported by Nelson Beebe.
76207         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
76208
76209 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76210
76211         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76212         #defines strtoimax.  Also treat the other strto* functions
76213         like strtoimax.
76214
76215         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76216         Check for strtoul and strtoumax,
76217         as those declarations are made even in the signed case.
76218         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
76219         Likewise, for strtol and strtoimax.
76220
76221 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76222
76223         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76224         #defines strtoimax.  Also treat the other strto* functions
76225         like strtoimax.
76226
76227         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
76228         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
76229         (strtoimax, strtoumax): Do not declare if already defined as a macro.
76230
76231 2001-09-26  Jim Meyering  <meyering@lucent.com>
76232
76233         Most macros in unlocked-io.h had the wrong number of arguments.
76234         * lib/gen-uio: New script.
76235         (USE_UNLOCKED_IO): Define to 1 if not already defined.
76236         * lib/unlocked-io.hin: Remove file.
76237         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
76238         rather than trying to embed it here.
76239         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
76240         Reported by Padraig Brady.
76241
76242 2001-09-25  Volker Borchert  <bt@teknon.de>
76243
76244         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
76245         `result'.
76246
76247 2001-09-24  Jim Meyering  <meyering@lucent.com>
76248
76249         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
76250
76251 2001-09-23  Jim Meyering  <meyering@lucent.com>
76252
76253         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
76254         instead of the mere test for existence of mntent.h.  The latter
76255         would get a false-positive on AIX 3.4 systems.
76256         In the outer getmntent if-block, don't die if neither of the getmntent
76257         tests succeeds.  Instead, just fall through and continue with the
76258         remaining tests.
76259
76260 2001-09-23  Jim Meyering  <meyering@lucent.com>
76261
76262         * lib/mountlist.c: Remove useless parentheses in #if directives.
76263         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
76264         the deprecated MOUNTED symbol is no longer defined in mntent.h.
76265
76266 2001-09-22  Jim Meyering  <meyering@lucent.com>
76267
76268         * m4/gettext.m4: New file.  From gettext.
76269         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
76270         * m4/progtest.m4: Likewise
76271         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
76272         * m4/glibc21.m4: Likewise.
76273
76274         * m4/libintl.m4: Remove.  No longer used.
76275
76276 2001-09-22  Jim Meyering  <meyering@lucent.com>
76277
76278         * lib/localcharset.c: Update from latest gettext.
76279         * lib/config.charset: Likewise.
76280
76281 2001-09-20  Jim Meyering  <meyering@lucent.com>
76282
76283         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
76284         strtoimax.
76285         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
76286         strtoumax.
76287
76288 2001-09-20  Jim Meyering  <meyering@lucent.com>
76289
76290         * lib/xstrtol.c (strtoimax): Guard declaration with
76291         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
76292         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
76293         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
76294         (strtoumax): Likewise, for completeness (it wasn't necessary).
76295
76296 2001-09-17  Paul Eggert  <eggert@twinsun.com>
76297
76298         * lib/strtoimax.c (HAVE_LONG_LONG):
76299         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
76300         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
76301         to work around bug in IBM C compiler.
76302
76303 2001-09-17  Jim Meyering  <meyering@lucent.com>
76304
76305         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
76306         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
76307         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
76308         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
76309         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
76310         whenever the right hand side need not be expanded by the shell.
76311
76312 2001-09-16  Paul Eggert  <eggert@twinsun.com>
76313
76314         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
76315         library.  It's not correct, as some older glibcs are buggy.
76316         fnmatch wasn't fixed until glibc 2.2.
76317
76318         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
76319         special shell magic here.
76320
76321 2001-09-16  Jim Meyering  <meyering@lucent.com>
76322
76323         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
76324         * m4/jm-macros.m4: Require it.
76325
76326 2001-09-16  Jim Meyering  <meyering@lucent.com>
76327
76328         * lib/mkdir.c: New file.
76329
76330 2001-09-15  Jim Meyering  <meyering@lucent.com>
76331
76332         * m4/jm-macros.m4: Check for help2man.
76333
76334 2001-09-11  Jim Meyering  <meyering@lucent.com>
76335
76336         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
76337         The body, by Paul Eggert, was moved here from configure.in.
76338         * m4/jm-macros.m4: Require UTILS_HOST_OS.
76339
76340 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76341
76342         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
76343         (jm_PREREQ): Use it.
76344
76345 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76346
76347         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
76348         Use ssize_t, not int, to store result of readlink.
76349         Check for ssize_t overflow as well as size_t overflow,
76350         as POSIX says the result of readlink is implementation-defined
76351         when ssize_t overflows.
76352         Remove unnecessary cast to char*.
76353         Use free+malloc instead of realloc, as the storage doesn't need
76354         to be preserved and it's clearer and can be more efficient that way.
76355         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
76356         * lib/xreadlink.h (xreadlink): Update prototype.
76357
76358 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76359
76360         * lib/xgetcwd.c: Revert some of the previous change; intead,
76361         fix the HAVE_GETCWD_NULL code to behave more like the
76362         !HAVE_GETCWD_NULL code used to.
76363
76364         Include "xalloc.h".
76365         (xgetcwd): Do not return NULL when memory is exhausted; instead,
76366         invoke xalloc_die.
76367
76368 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76369
76370         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
76371         sys/param.h, as pathmax.h includes them.
76372
76373 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76374
76375         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
76376         (jm_PREREQ_XGETCWD): New macro.
76377
76378         * m4/getcwd.m4: New file.
76379
76380 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76381
76382         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
76383         like the HAVE_GETCWD_NULL code.
76384         Include pathmax.h if not HAVE_GETCWD.
76385         Do not include xalloc.h.
76386         (INITIAL_BUFFER_SIZE): New symbol.
76387         Do not use xmalloc / xrealloc, since the caller is responsible for
76388         handling errors.  Preserve errno around `free' during failure.
76389         Do not overrun buffer when using getwd.
76390
76391 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76392
76393         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
76394         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
76395         getcwd (NULL, 0).
76396
76397 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76398
76399         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
76400         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
76401         spotted by Jim Meyering.
76402
76403 2001-09-03  Jim Meyering  <meyering@lucent.com>
76404
76405         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
76406         failure.
76407
76408 2001-09-02  Jim Meyering  <meyering@lucent.com>
76409
76410         * lib/error.c: Update from GNU libc.
76411
76412 2001-09-01  Jim Meyering  <meyering@lucent.com>
76413
76414         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
76415         Used by df.
76416
76417 2001-09-01  Jim Meyering  <meyering@lucent.com>
76418
76419         * lib/xreadlink.c: New file.
76420         * lib/xreadlink.h: New file.
76421         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
76422         xreadlink.h.
76423
76424         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
76425         doesn't conflict with sparc Solaris 7's definition in
76426         /usr/include/sys/int_types.h.
76427
76428         * lib/exclude.c: Use `""', not `<>' to #include non-system header
76429         files.
76430         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
76431         and strncasecmp as r-values.  Unixware didn't have declarations.
76432
76433 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76434
76435         * lib/xstrtol.h: Add copyright notice.
76436         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
76437         LONGINT_INVALID_SUFFIX_CHAR.
76438
76439 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76440
76441         * lib/xstrtol.c (strtoimax): New decl.
76442
76443 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76444
76445         * lib/xgetcwd.c: Don't include pathmax.h.
76446         Include stdlib.h and unistd.h if available.
76447         Include xalloc.h.
76448         (xmalloc, xstrdup, free): Remove decls.
76449         (xgetcwd): Don't assume sizes fit in unsigned.
76450         Check for overflow when computing sizes.
76451         Simplify reallocation code.
76452
76453 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76454
76455         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
76456         a directory's st_size can have an arbitrary value, so the old
76457         usage could waste an arbitrary amount of memory.  All uses
76458         changed.
76459         * lib/savedir.h: Update prototype.
76460
76461 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76462
76463         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
76464
76465         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
76466         old strtoimax.c.
76467
76468         Also, make the following further changes to make this file's
76469         configuration more similar to that of strtol.c:
76470         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
76471         (strtoumax, uintmax_t, strtoull, strtol): Remove.
76472         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
76473         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
76474         changed to signed values.
76475
76476         And make the following changes as well:
76477         Fix copyright notice, as 1999 was missing.
76478         (verify): New macro.
76479         (strtoimax): Check sizes at compile-time, not run-time.
76480         Prefer strtol to strtoll if both work.
76481         (main): Remove; it was not that useful and was a pain to maintain.
76482
76483         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
76484
76485 2001-08-31  Jim Meyering  <meyering@lucent.com>
76486
76487         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
76488         Use an initial, malloc'd, buffer of length 128 rather than
76489         a statically allocated one of length 1024.
76490
76491 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76492
76493         Simplify code, partly by assuming autoconf 2.52 semantics.
76494
76495         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
76496
76497         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
76498         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
76499         All uses removed.
76500         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
76501         Move AC_REQUIRE to next-to-top level, to avoid confusion.
76502         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
76503         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
76504         jm_AC_HEADER_INTTYPES_H.
76505         * m4/jm-macros.m4 (jm_MACROS): Likewise.
76506
76507         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
76508
76509         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76510         Quote first arg of AC_DEFUN.
76511         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
76512         since they are needed to parse the include file even if we need
76513         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
76514         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
76515         but with opposite signedness.
76516
76517 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76518
76519         Merge 'exclude' changes from tar 1.13.22.
76520         This fixes one or two unlikely storage allocation overflow bugs,
76521         but doesn't change user-visible behavior otherwise.
76522
76523 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76524
76525         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
76526         (jm_PREREQ_EXCLUDE): New macro.
76527
76528 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76529
76530         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
76531         tm to be declared.
76532
76533 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76534
76535         * lib/hash.c: Remove '2001' from copyright notice.
76536
76537 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76538
76539         * lib/full-write.h: New file.
76540         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
76541         * lib/full-write.c: Correct credits, as cccp.c no longer
76542         exists and anyway it was so heavily changed from the old cccp
76543         code as to be unrecognizable.  Include full-write.h.
76544         (full_write): Return size_t, with short writes meaning failure.
76545         All callers changed.  This fixes a bug with large buffers
76546         on 64-bit hosts.
76547         * lib/utime.c: Include full-write.h.
76548
76549 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76550
76551         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
76552         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
76553         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
76554         Include if available.
76555         (<xalloc.h>): Include
76556         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
76557         (verify): New macro.  Use it to verify that EXCLUDE macros do not
76558         collide with FNM macros.
76559         (struct patopts): New struct.
76560         (struct exclude): Use it, as exclude patterns now come with options.
76561         (new_exclude): Support above changes.
76562         (new_exclude, add_exclude_file):
76563         Initial size must now be a power of two to simplify overflow checking.
76564         (free_exclude, fnmatch_no_wildcards): New function.
76565         (excluded_filename): No longer requires options arg, as the options
76566         are determined by add_exclude.  Now returns bool, not int.
76567         (excluded_filename, add_exclude):
76568         Add support for the fancy new exclusion options.
76569         (add_exclude, add_exclude_file): Now takes int options arg.
76570         Check for arithmetic overflow when computing sizes.
76571         (add_exclude_file): xrealloc might modify errno, so don't
76572         realloc until after errno might be used.
76573
76574         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
76575         New macros.
76576         (free_exclude): New decl.
76577         (add_exclude, add_exclude_file): Now takes int options arg.
76578         (excluded_filename): No longer requires options arg, as the options
76579         are determined by add_exclude.  Now returns bool, not int.
76580
76581 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76582
76583         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
76584
76585 2001-08-27  Jim Meyering  <meyering@lucent.com>
76586
76587         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
76588
76589         * lib/version-etc.c (N_): Remove definition.
76590         Revert most of last change.
76591         Instead, simply don't mark the `Copyright...' string for translation.
76592         Based on advice from Paul Eggert.
76593
76594         * lib/strtoxmax.c: Tweak comment.
76595
76596 2001-08-26  Jim Meyering  <meyering@lucent.com>
76597
76598         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
76599
76600         * m4/xstrtoimax.m4: New file.
76601         * m4/xstrtoumax.m4: Add comments explaining why we
76602         AC_REPLACE_FUNCS(strtol).
76603
76604 2001-08-26  Jim Meyering  <meyering@lucent.com>
76605
76606         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
76607         of copyright with `%s' so translators don't get an untranslated
76608         message in 2002.
76609         (COPYRIGHT_YEAR): Define.
76610         (version_etc): Use fprintf rather than fputs.
76611         Suggestion from Ulrich Drepper.
76612
76613         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
76614
76615         * lib/strtoll.c: New file, from GNU libc.
76616         * lib/xstrtoimax.c: New file.
76617
76618         * lib/xstrtol.h: Add xstrtoimax.
76619         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
76620         * lib/strtoimax.c: New file.  Likewise, but first define
76621         STRTOUXMAX_SIGNED.
76622
76623         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
76624         ...
76625         * lib/strtoxmax.c: ... then renamed to this.
76626
76627 2001-08-18  Paul Eggert  <eggert@twinsun.com>
76628
76629         * m4/inttypes.m4: Add AC_PREREQ(2.13).
76630         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
76631         (jm_AC_TYPE_INTMAX_T): New macro.
76632         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
76633
76634         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
76635
76636         * m4/longlong.m4: Renamed from ulonglong.m4.
76637         * m4/inttypes.m4: Renamed from inttypes_h.m4.
76638         * m4/uintmax_t.m4: Removed.
76639
76640 2001-08-13  Paul Eggert  <eggert@twinsun.com>
76641
76642         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
76643         Port to Solaris 8, where 'sed' requires a space after the 'r'
76644         command, and where sh dislikes "$/".  Clean up the spacing a bit.
76645         Redirect output to $tmp just once.
76646
76647 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
76648
76649         * lib/addext.c (<errno.h>): Include.
76650         (errno): Declare if not defined.
76651         (addext): Work correctly when pathconf returns -1 and leaves
76652         errno alone because there is no limit.  Also, work even if
76653         pathconf returns a value greater than SIZE_MAX.
76654
76655 2001-08-12  Jim Meyering  <meyering@lucent.com>
76656
76657         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
76658         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
76659         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
76660         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
76661         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
76662         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
76663         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
76664         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
76665         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
76666         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
76667         utime.m4, utimes.m4, xstrtoumax.m4:
76668         Quote the first argument in each use of AC_DEFUN.
76669
76670 2001-08-12  Jim Meyering  <meyering@lucent.com>
76671
76672         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
76673         Simply `return getcwd (NULL, 0);'.
76674         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
76675         Use 1300 as initial value for length, not PATH_MAX.
76676
76677         * lib/pathmax.h: Clean up cpp syntax.
76678
76679 2001-08-12  Jim Meyering  <meyering@lucent.com>
76680
76681         * lib/gettimeofday.c: New file.
76682         * lib/gtod.h: New file.
76683         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
76684
76685 2001-08-05  Jim Meyering  <meyering@lucent.com>
76686
76687         * m4/jm-macros.m4: Require autoconf-2.52.
76688
76689 2001-08-04  Jim Meyering  <meyering@lucent.com>
76690
76691         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
76692         stmt, to get in sync with glibc.
76693
76694 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76695
76696         The following changes are from gettext 0.10.39 as maintained by
76697         Bruno Haible.
76698
76699         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
76700         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
76701         with inverted sense.  All uses changed.
76702
76703         * lib/mbswidth.c: Don't include <limits.h>.
76704         Include <stdlib.h> and <string.h> unconditionally.
76705         (iswcntrl, mbsinit, ISCNTRL): New macros.
76706         (mbsnwidth): Use K&R style function declarations.
76707         Don't bother checking for MB_LEN_MAX == 1, since the compiler
76708         can optimize it when MB_CUR_MAX == 1.
76709         The width of control characters is zero, not 1.
76710
76711 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76712
76713         The following changes are from gettext 0.10.39 as maintained by
76714         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
76715
76716         * m4/codeset.m4: Upgrade to serial AM1.
76717         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
76718         all uses changed.  Quote first arg of AC_DEFUN.
76719         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
76720
76721         * m4/iconv.m4: Upgrade to serial AM2.
76722         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
76723         Add --with-libconv-prefix.
76724         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
76725         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
76726         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
76727         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
76728         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
76729
76730         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
76731         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
76732         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
76733         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
76734         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
76735         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
76736         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
76737         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
76738         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76739
76740         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
76741         string.h any more.
76742
76743         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
76744         not the default value.
76745
76746         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
76747         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
76748         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
76749         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
76750         Also check for iswcntrl, used for wcwidth fallback.
76751         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
76752         to Autoconf 2.13.
76753
76754 2001-08-03  Jim Meyering  <meyering@lucent.com>
76755
76756         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
76757         as it was in the original.  Reported by Paul Eggert.
76758
76759 2001-07-16  Jim Meyering  <meyering@lucent.com>
76760
76761         * m4/gettimeofday.m4: New file.
76762         Prompted by a report from Bernhard Baehr.
76763
76764 2001-07-15  Jim Meyering  <meyering@lucent.com>
76765
76766         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
76767         stuff. Now it's in ../Makefile.cfg.
76768
76769 2001-07-15  Jim Meyering  <meyering@lucent.com>
76770
76771         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
76772         (BUILT_SOURCES): Add unlocked-io.h.
76773         (io_functions): Define.
76774         (unlocked-io.h): New rule.
76775         (DISTCLEANFILES): Add unlocked-io.h.
76776         (all-local): Depend on unlocked-io.h, to ensure it is created.
76777
76778         * lib/unlocked-io.hin: New file
76779
76780         * lib/regex.c: Update from glibc.
76781
76782 2001-07-05  Jim Meyering  <meyering@lucent.com>
76783
76784         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
76785         recommendation.
76786         (libfetish_a_SOURCES): Put all .h files here instead.
76787         Remove a thus-exposed (better checks in automake) duplicate and
76788         two unnecessary .h files.
76789
76790 2001-07-04  Jim Meyering  <meyering@lucent.com>
76791
76792         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
76793         that generates jm-glibc-io.m4 so that it doesn't trigger any make
76794         distcheck failure.
76795
76796 2001-07-02  Jim Meyering  <meyering@lucent.com>
76797
76798         The following changes were prompted by suggestions from Bruno Haible.
76799
76800         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
76801         is now generated.
76802         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
76803         definition of EXTRA_DIST.
76804         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
76805         ensure that the generated file is created/updated whenever the list
76806         of $(unlocked_functions) is changed.
76807         (jm-glibc-io.m4): New rule.
76808         (unlocked-io.h): New rule -- currently unused.
76809
76810 2001-06-24  Jim Meyering  <meyering@lucent.com>
76811
76812         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
76813         unmatched right bracket, rather than kludging it with an extra,
76814         falsely-matching quote in a comment.  Patch by Akim Demaille.
76815
76816 2001-06-11  Jim Meyering  <meyering@lucent.com>
76817
76818         * lib/regex.c: Update from GNU libc.
76819
76820 2001-05-27  Jim Meyering  <meyering@lucent.com>
76821
76822         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
76823         Check for ut_type in struct utmp.
76824
76825 2001-05-27  Jim Meyering  <meyering@lucent.com>
76826
76827         * lib/readutmp.h (UT_TYPE): Define.
76828
76829 2001-05-24  Jim Meyering  <meyering@lucent.com>
76830
76831         * lib/argmatch.c: Include "quote.h".
76832         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
76833         quote function.  Reported by Göran Uddeborg.
76834
76835 2001-05-22  Jim Meyering  <meyering@lucent.com>
76836
76837         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
76838         now that we use the package-supplied version unconditionally.
76839         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
76840
76841 2001-05-21  Jim Meyering  <meyering@lucent.com>
76842
76843         * m4/regex.m4: Change a couple backticks to single quotes to avoid
76844         shell syntax errors.
76845
76846 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76847
76848         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
76849
76850 2001-05-20  Paul Eggert  <eggert@twinsun.com>
76851
76852         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
76853         Don't bother to check library strftime, since
76854         we'll be using our own my_strftime function anyway.
76855         Define my_strftime instead of strftime.
76856
76857 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
76858
76859         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
76860         which is not yet declared.
76861
76862 2001-05-15  Jim Meyering  <meyering@lucent.com>
76863
76864         * m4/regex.m4: Use proper quoting so brackets appear in the test
76865         program.
76866         Reported by, and with help from, Bruno Haible.
76867
76868 2001-05-13  Jim Meyering  <meyering@lucent.com>
76869
76870         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
76871         undefined.
76872
76873 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76874
76875         dirname code cleanup.  base_name now behaves more compatibly
76876         with POSIX basename when given file names that have trailing
76877         slashes, and similarly for dir_name.  Add new primitives
76878         base_len and dir_len.  Put the directory-name-related decls
76879         into dirname.h.
76880
76881         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
76882         * lib/backupfile.c (base_name): Likewise.
76883         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
76884         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
76885         * lib/makepath.c (strip_trailing_slashes): Likewise.
76886         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
76887         ISSLASH): Likewise.
76888         * lib/rename.c (strip_trailing_slashes): Likewise.
76889         * lib/same.c (base_name): Likewise.
76890         * lib/stripslash.c (ISSLASH): Likewise.
76891
76892         * lib/addext.c: Include <dirname.h> after size_t is defined.
76893         * lib/backupfile.c: Likewise.
76894
76895         * lib/addext.c (addext): Use base_len to trim redundant
76896         trailing slashes instead of doing it ourselves.
76897         But do not trim the last slash if it is not redundant.
76898
76899         * lib/backupfile.c (find_backup_file_name,
76900         max_backup_version): Use base_len instead of rolling it ourselves.
76901         Handle the case of "" and (on DOS) "C:" correctly.
76902
76903         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
76904         needed. Include <string.h>, <dirname.h>.
76905         (base_name): Allow file names ending in slashes, other than names
76906         that are all slashes.  In this case, return the basename followed
76907         by the slashes.  This is more general, and can be used in places
76908         where the original base_name purposely had an assertion failure.
76909         (base_len): New function.
76910
76911         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
76912         Do not include <assert.h>; no longer needed.
76913         Include xalloc.h.
76914         (memrchr): Remove decl.
76915         (dir_name_r): Remove.
76916         (dir_len): Renamed from dirlen.  All callers changed.
76917         Rewrite in terms of base_name, for simplicity and consistency.
76918         (dir_name): Never return NULL.  All callers changed.
76919         Do not include <stdlib.h> in test program; no longer needed.
76920         return 0; is fine for test program.
76921
76922         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
76923         New macros.
76924         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
76925
76926         * lib/path-concat.c (path_concat): Use base_len to compute
76927         base length, not strlen; this means we cannot rely on memcpy
76928         to null-terminate.
76929
76930         * lib/same.c (STREQ): Remove.
76931         (same_name): Handle the case where the basename ends in trailing '/'.
76932
76933         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
76934         a slash was stripped.  Do not strip the last slash after a
76935         file system prefix.
76936
76937 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76938
76939         * lib/Makefile.am (libfetish_a_SOURCES):
76940         Add strftime.c, since we now compile it on all hosts.
76941
76942         * lib/strftime.c (my_strftime):
76943         Define to nstrftime if emacs, but only if my_strftime is not defined.
76944         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
76945         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
76946         Add one more extra argument: a nanoseconds value.
76947         All uses changed.
76948         (ns): New macro.
76949         (my_strftime function): Add %N format.
76950         (emacs_strftimeu): Renamed from emacs_strftime,
76951         with extra ut argument.
76952
76953 2001-05-09  Paul Eggert  <eggert@twinsun.com>
76954
76955         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
76956
76957 2001-04-21  Jim Meyering  <meyering@lucent.com>
76958
76959         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
76960         doesn't interfere.
76961
76962 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76963
76964         * m4/ftruncate.m4: Check for chsize.
76965         Link with ftruncate.o unconditionally if ftruncate is missing.
76966         This was required when cross-compiling to i586-mingw32msvc.
76967
76968 2001-04-08  Jim Meyering  <meyering@lucent.com>
76969
76970         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
76971         recomputed; that's necessary when the offset spans a DST transition.
76972         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
76973
76974 2001-04-02  Jim Meyering  <meyering@lucent.com>
76975
76976         * lib/regex.h, regex.c: Update from GNU libc.
76977
76978 2001-03-24  Jim Meyering  <meyering@lucent.com>
76979
76980         * m4/jm-macros.m4: Require autoconf-2.49d.
76981
76982 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
76983
76984         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
76985
76986 2001-03-19  Paul Eggert  <eggert@twinsun.com>
76987
76988         * lib/version-etc.c (version_etc_copyright): Update to 2001.
76989
76990 2001-03-17  Jim Meyering  <meyering@lucent.com>
76991
76992         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
76993         now that the version in autoconf is equivalent.
76994         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
76995
76996         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
76997         Suggestion from Akim Demaille.
76998
76999         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
77000         (jm_PREREQ_TEMPNAME): New function.
77001
77002 2001-03-16  Paul Eggert  <eggert@twinsun.com>
77003
77004         * lib/tempname.c (uint64_t): Define to uintmax_t if
77005         not defined, and if UINT64_MAX is not defined.
77006         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
77007         Reported by John David Anglin.
77008
77009 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
77010
77011         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
77012         resolve alias if codeset is empty.
77013         * lib/config.charset (BeOS): Use wildcard syntax.
77014
77015 2001-03-13  Jim Meyering  <meyering@lucent.com>
77016
77017         * lib/path-concat.c (path_concat)
77018         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
77019         concatenating e.g., `C:' and `foo'.
77020         From Bruno Haible.
77021
77022 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77023
77024         * lib/localcharset.c (locale_charset): Don't use
77025         setlocale(LC_CTYPE,NULL). Don't return NULL.
77026         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
77027
77028 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77029
77030         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
77031         support for DOS/DJGPP.
77032
77033 2001-03-01  Paul Eggert  <eggert@twinsun.com>
77034
77035         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
77036         lacks mkstemp.  Compile our own tempname.c if we compile our own
77037         mkstemp.c, as mkstemp relies on tempname.
77038
77039 2001-03-01  Jim Meyering  <meyering@lucent.com>
77040
77041         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
77042         AH_VERBATIM really does output its argument verbatim.
77043
77044 2001-02-28  Paul Eggert  <eggert@twinsun.com>
77045
77046         * lib/Makefile.am (libfetish_a_SOURCES):
77047         Add dup-safer.c, fopen-safer.c.
77048         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
77049
77050         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
77051         * lib/unistd-safer.h: New files.
77052
77053 2001-02-25  Paul Eggert  <eggert@twinsun.com>
77054
77055         The mkstemp replacement is taken from glibc 2.2.2, with some
77056         portability fixes for use outside glibc, as follows:
77057
77058         * lib/tempname.c (struct_stat64): New macro.
77059         (direxists, __gen_tempname): Use it.
77060         This avoids a portability problem with Solaris 8.
77061
77062         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
77063         (<stddef.h>, <stdint.h>, <string.h>):
77064         Include only if STDC_HEADERS || _LIBC.
77065         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
77066         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
77067         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
77068         (__set_errno): Define this macro if <errno.h> doesn't.
77069         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
77070         Define these macros if <stdio.h> doesn't.
77071         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
77072         Define these macros if <sys/stat.h>
77073         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
77074         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
77075         __xstat64): Define if not _LIBC.
77076         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
77077         (__gen_tempname): Invoke gettimeofday only if
77078         HAVE_GETTIMEOFDAY || _LIBC;
77079         otherwise, fall back on plain "time".
77080         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
77081
77082         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
77083
77084         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
77085
77086 2001-02-18  Paul Eggert  <eggert@twinsun.com>
77087
77088         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
77089
77090 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77091
77092         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
77093         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
77094         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
77095         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77096
77097 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77098
77099         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
77100         Remove workaround macros for hosts that have mbrtowc but not
77101         mbstate_t, as we now insist on proper declarations for both
77102         before using mbrtowc.
77103
77104 2001-02-17  Jim Meyering  <meyering@lucent.com>
77105
77106         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
77107         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
77108         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
77109         UnixWare 7.1.1.
77110
77111         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
77112         rather than AC_CACHE_VAL.
77113
77114 2001-02-17  Jim Meyering  <meyering@lucent.com>
77115
77116         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
77117         around included file name.
77118
77119         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
77120
77121         * lib/strftime.c: Update from GNU libc (the only changes were to
77122         comments).
77123
77124 2001-02-17  Jim Meyering  <meyering@lucent.com>
77125
77126         * lib/regex.c: Update from libc.
77127
77128 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
77129
77130         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
77131         clash.
77132
77133 2001-02-16  Paul Eggert  <eggert@twinsun.com>
77134
77135         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
77136         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
77137         Reported by Mark Hounschell via Paul Eggert.
77138
77139 2001-02-07  Jim Meyering  <meyering@lucent.com>
77140
77141         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
77142
77143 2001-02-05  Jim Meyering  <meyering@lucent.com>
77144
77145         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
77146         it includes the patch required for `large file' support with at least
77147         HP-UX's 10.20 /bin/cc.
77148
77149 2001-02-03  Jim Meyering  <meyering@lucent.com>
77150
77151         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
77152         AS_IF, now that it works once again (mysteriously).
77153         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77154
77155 2001-01-30  Jim Meyering  <meyering@lucent.com>
77156
77157         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
77158         * m4/chown.m4: Rename conftestchown to conftest.chown.
77159         * m4/rename.m4: s/conftestdir/conftest.d1/ and
77160         s/conftestdir2/conftest.d2/.
77161         * m4/utimes.m4: s/conftestdata/conftest.data/
77162         Inspired by Pavel Roskin's change in autoconf.
77163
77164 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
77165
77166         * lib/config.charset: Update for FreeBSD 4.2.
77167
77168 2001-01-27  Jim Meyering  <meyering@lucent.com>
77169
77170         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
77171         a use of AS_IF.
77172         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77173
77174 2001-01-26  Jim Meyering  <meyering@lucent.com>
77175
77176         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
77177         quotearg.c includes it.
77178
77179 2001-01-26  Jim Meyering  <meyering@lucent.com>
77180
77181         * lib/quotearg.c: Include stddef.h.
77182         * lib/quote.c: Include stddef.h.
77183         Reported by Axel Kittenberger.
77184
77185         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
77186         line in double quotes so that it evokes a better diagnostic.
77187         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
77188         Reported by Axel Kittenberger.
77189
77190 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
77191
77192         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
77193         as if it was a `charset'.
77194
77195 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77196
77197         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
77198         has const.
77199
77200 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77201
77202         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
77203         to avoid a warning.  Add back 'const' to inptr.
77204
77205 2001-01-20  Jim Meyering  <meyering@lucent.com>
77206
77207         Be sure that headers are checked before used in code compiled
77208         for the type checks.
77209         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
77210         In place of that, invoke jm_CHECK_ALL_TYPES.
77211         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
77212         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
77213         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
77214         The check for ssize_t was mistakenly run before the test for unistd.h.
77215
77216         The configure-time check for stdbool.h was missing.
77217         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
77218         (jm_PREREQ_HASH): New function.
77219
77220 2001-01-17  Jim Meyering  <meyering@lucent.com>
77221
77222         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
77223         for autoconf-2.49c.
77224         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
77225
77226 2001-01-16  Jim Meyering  <meyering@lucent.com>
77227
77228         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
77229         From Bruno Haible.
77230
77231 2001-01-14  Jim Meyering  <meyering@lucent.com>
77232
77233         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
77234         foo and bar.  Create conftestdir/ in the script, not in the C code.
77235         Remove directories in the script, not in the C code.
77236         Remove conftestdir{,2} before trying to create the directory.
77237         Make the entire configure script fail if the mkdir fails.
77238
77239 2001-01-14  Jim Meyering  <meyering@lucent.com>
77240
77241         * lib/rename.c: New file.  From Volker Borchert.
77242         Include stdlib.h, string.h or strings.h, and xalloc.h.
77243         Use strip_trailing_slashes rather than open-coding it.
77244
77245 2001-01-03  Paul Eggert  <eggert@twinsun.com>
77246
77247         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
77248
77249 2001-01-03  Jim Meyering  <meyering@lucent.com>
77250
77251         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
77252         of local `inptr' to avoid warning with some system declarations of
77253         iconv.
77254
77255 2001-01-02  Volker Borchert  <bt@teknon.de>
77256
77257         * m4/rename.m4: New file.
77258         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
77259
77260 2001-01-01  Jim Meyering  <meyering@lucent.com>
77261
77262         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
77263         even on systems with utmpx.h.  It's necessary for the declaration of
77264         utmp's ut_user member.  Reported by Andreas Jaeger.
77265
77266         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
77267         available. They are required for the declarations of getgrgid and
77268         getpwuid resp.
77269         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
77270         Reported by Andreas Jaeger.
77271
77272 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
77273
77274         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
77275         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
77276         so `make install' also works in VPATH builds.
77277
77278 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
77279
77280         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
77281         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
77282         can be used in subdirectories.
77283
77284 2000-12-29  Paul Eggert  <eggert@twinsun.com>
77285
77286         * lib/modechange.c: Do not assume that mode_t uses the
77287         traditional octal encoding.  E.g. "chmod 1 FOO" should set
77288         the other-execute bit of FOO even if S_IXOTH != 1.
77289
77290         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
77291         WOTH, XOTH, ALLM): New macros.
77292         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
77293          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
77294         Use them.
77295         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
77296         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
77297         (mode_compile):
77298         No need to use uintmax_t; unsigned long is long enough.
77299         Don't bother to get suffix since we don't use it.
77300
77301 2000-12-26  Jim Meyering  <meyering@lucent.com>
77302
77303         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
77304         better with autoheader.
77305
77306 2000-12-24  Jim Meyering  <meyering@lucent.com>
77307
77308         * lib/hash.c (is_prime): Return explicit boolean values.
77309         (hash_get_first): Return NULL to appease Irix5.6's 89.
77310         Reported by Nelson Beebe.
77311
77312 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
77313
77314         * lib/localcharset.c (locale_charset): Add support for Win32.
77315
77316 2000-12-18  Paul Eggert  <eggert@twinsun.com>
77317
77318         * lib/physmem.h, lib/physmem.c: New files.
77319
77320         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
77321         (noinst_HEADERS): Add physmem.h.
77322
77323         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
77324         't' for compatibility with Solaris 8 sort.
77325
77326 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
77327
77328         * lib/config.charset: Add support for BeOS.
77329
77330 2000-12-17  Jim Meyering  <meyering@lucent.com>
77331
77332         * m4/dos.m4 (jm_AC_DOS): New file and macro.
77333         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
77334
77335 2000-12-16  Jim Meyering  <meyering@lucent.com>
77336
77337         This bug had a serious impact on chown: `chown N:M FILE' (for integer
77338         N and M) would have treated it like `chown N:N FILE'.
77339
77340         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
77341
77342 2000-12-16  Jim Meyering  <meyering@lucent.com>
77343
77344         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
77345         SHELLS_FILE to a file name that's useful on djgpp systems.
77346         Include stdlib.h.
77347         (ADDITIONAL_DEFAULT_SHELLS): Define.
77348         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
77349         Based mostly on a patch from Prashant TR.
77350
77351 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
77352
77353         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
77354         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
77355         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
77356
77357 2000-12-08  Andreas Schwab  <schwab@suse.de>
77358
77359         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
77360         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
77361
77362 2000-12-07  Jim Meyering  <meyering@lucent.com>
77363
77364         * lib/stripslash.c (ISSLASH): Define.
77365         (strip_trailing_slashes): Use ISSLASH rather than comparing against
77366         `/'.
77367         From Prashant TR.
77368
77369         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
77370         (dir_name_r): Declare this function as static.
77371         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
77372         manifest itself on a name containing a mix of slashes and
77373         backslashes.
77374         Make this function work with names starting with a DOS-style
77375         drive letter and colon prefix.
77376         (dir_name): Append `.' if necessary.
77377         Based mostly on patches from Prashant TR and Eli Zaretskii.
77378
77379         * lib/dirname.h (dir_name_r): Remove prototype.
77380
77381 2000-12-06  Paul Eggert  <eggert@twinsun.com>
77382
77383         * m4/off_t-format.m4: Remove this file.
77384         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
77385
77386 2000-12-06  Jim Meyering  <meyering@lucent.com>
77387
77388         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
77389         replacement strtoull, we may well need the replacement strtoul, too.
77390         Check for declarations of strtoul and strtoull.
77391         Check for strtol.  Mainly as a cue to cause automake to include
77392         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
77393         Check for limits.h -- strtol.c needs it.
77394
77395 2000-12-05  Jim Meyering  <meyering@lucent.com>
77396
77397         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
77398
77399 2000-12-04  Jim Meyering  <meyering@lucent.com>
77400
77401         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
77402         Also include memory.h, stdlib.h, unistd.h if appropriate.
77403         Reported by Andreas Jaeger (conflicting declaration of malloc).
77404
77405 2000-12-02  Jim Meyering  <meyering@lucent.com>
77406
77407         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
77408         * m4/jm-macros.m4 (jm_MACROS): require it.
77409
77410 2000-12-02  Jim Meyering  <meyering@lucent.com>
77411
77412         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
77413
77414 2000-12-01  Paul Eggert  <eggert@twinsun.com>
77415
77416         * lib/memrchr.c: Include <config.h> before any system include file.
77417
77418 2000-11-30  Jim Meyering  <meyering@lucent.com>
77419
77420         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
77421
77422 2000-11-30  Jim Meyering  <meyering@lucent.com>
77423
77424         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
77425
77426 2000-11-29  Paul Eggert  <eggert@twinsun.com>
77427
77428         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
77429
77430 2000-11-26  Jim Meyering  <meyering@lucent.com>
77431
77432         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
77433
77434 2000-11-22  Paul Eggert  <eggert@twinsun.com>
77435
77436         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
77437         size of (size_t) -1; it's not portable.
77438
77439 2000-11-17  Jim Meyering  <meyering@lucent.com>
77440
77441         * lib/strstr.c: Update from GNU libc.
77442
77443 2000-11-17  Akim Demaille  <akim@epita.fr>
77444
77445         * lib/obstack.h: Formatting changes.
77446         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
77447         prevent type checking.
77448         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
77449         cast the value to (void *): assigning a `foo *' to a `void *'
77450         variable is valid.
77451         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
77452
77453 2000-11-16  Jim Meyering  <meyering@lucent.com>
77454
77455         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
77456
77457 2000-11-11  Jim Meyering  <meyering@lucent.com>
77458
77459         * lib/error.c: Add a couple #includes, merging from GNU libc version.
77460
77461 2000-11-10  Jim Meyering  <meyering@lucent.com>
77462
77463         * lib/obstack.h: Update from GNU libc.
77464         * lib/obstack.c: Likewise.
77465
77466 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
77467
77468         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
77469
77470 2000-11-06  Paul Eggert  <eggert@twinsun.com>
77471
77472         * lib/getusershell.c (setusershell): Use rewind rather than
77473         fseek/fseeko, to avoid configuration hassles with fseeko.
77474         Don't bother opening SHELLS_FILE if shellstream is NULL;
77475         it's not necessary.
77476
77477 2000-11-05  Jim Meyering  <meyering@lucent.com>
77478
77479         * lib/makepath.h (make_dir): Declare.
77480         * lib/makepath.c (make_dir): Remove `static' attribute.
77481         Tweak a comment.
77482
77483 2000-11-04  Jim Meyering  <meyering@lucent.com>
77484
77485         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
77486
77487 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
77488
77489         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
77490         last one in a bucket, advance to the next bucket.
77491
77492 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
77493
77494         * lib/fnmatch.c: Do not comment out all the code if we are using
77495         the GNU C library, because in some cases we are replacing buggy
77496         code in the GNU C library itself.
77497
77498 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
77499
77500         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
77501         (regex_compile): Catch bogus \(\1\).
77502
77503 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77504
77505         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
77506         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
77507         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
77508
77509 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77510
77511         * lib/error.h, getline.h, modechange.h:
77512         Remove "2000" from Copyright line, as the file hasn't been
77513         changed this year other than in the copyright notice.
77514
77515         * lib/xalloc.h: Add "2000" to Copyright line, as this file
77516         was changed this year.
77517
77518 2000-10-29  Jim Meyering  <meyering@lucent.com>
77519
77520         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
77521         renaming.
77522         * m4/ls-mntd-fs.m4: Likewise
77523
77524 2000-10-29  Jim Meyering  <meyering@lucent.com>
77525
77526         * lib/xstat.in: Fix grammar in comment.
77527
77528 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
77529
77530         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
77531         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
77532         doesn't define __restrict_arr.
77533
77534 2000-10-28  Jim Meyering  <meyering@lucent.com>
77535
77536         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
77537         (jm_PREREQ_MEMCHR): New function.
77538
77539 2000-10-28  Jim Meyering  <meyering@lucent.com>
77540
77541         * lib/memchr.c: Update from libc.
77542         Adjust for portability:
77543         [HAVE_STDLIB_H]: Include stdlib.h.
77544         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
77545         Undef __memchr, too.
77546         [!weak_alias]: Define __memchr to memchr.
77547
77548         * lib/regex.c: Update from libc.
77549         * lib/regex.h: Likewise.
77550         * lib/getopt1.c: Likewise.
77551         * lib/memcmp.c: Likewise.
77552
77553         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
77554         Avoid using fseek, when possible -- it's broken by design.
77555         Patch by Ulrich Drepper.
77556
77557 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
77558
77559         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
77560         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
77561         Giving in to popular pressure to shut up the compiler with casts.
77562
77563 2000-10-26  Jim Meyering  <meyering@lucent.com>
77564
77565         * lib/strftime.c: Update from libc.
77566
77567 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
77568
77569         * regex.c: More `unsigned char' -> `re_char' changes.
77570         Also change several `int' into `re_wchar_t'.
77571         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
77572         (PUSH_FAILURE_POINTER): Don't cast any more.
77573         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
77574         We want GCC to complain, since this piece of code makes
77575         re_match non-reentrant, which *should* be fixed.
77576         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
77577         (EXTEND_BUFFER): Use RETALLOC.
77578         (SET_LIST_BIT): Don't cast.
77579         (re_wchar_t): New type.
77580         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
77581         that those two functions will always properly return.
77582         (IMMEDIATE_QUIT_CHECK): Cast to void.
77583         (analyse_first): Use recursion rather than an explicit stack.
77584         (re_compile_fastmap): Can't fail anymore.
77585         (re_search_2): Don't check re_compile_fastmap for failure.
77586         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
77587         Now also sets the new value (passed in a new argument).
77588         (re_match_2_internal): Use it.
77589         Also, use a new var `reg' of type size_t when looping through regs
77590         rather than reuse the inappropriate `mcnt'.
77591
77592 2000-10-25  Jim Meyering  <meyering@lucent.com>
77593
77594         * lib/obstack.c: Update from libc.
77595
77596 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
77597
77598         * regex.c (regex_compile): Change the way of handling a range from
77599         a char less than 256 to a char not less than 256.
77600
77601 2000-10-24  Andrew Innes  <andrewi@gnu.org>
77602
77603         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
77604         NT-Emacs only.
77605         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
77606         so that re_search functions only quit when callers expect them to.
77607
77608 2000-10-23  Jim Meyering  <meyering@lucent.com>
77609
77610         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
77611         wrong.  That set_locale call must not have any side effects.
77612         From Paul Eggert.
77613
77614 2000-10-22  Jim Meyering  <meyering@lucent.com>
77615
77616         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
77617         [CYCLIC]: Remove now-unused definition.
77618
77619         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
77620         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
77621         Suggestion from Ulrich Drepper.
77622
77623 2000-10-21  Jim Meyering  <meyering@lucent.com>
77624
77625         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
77626         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
77627         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
77628
77629 2000-10-21  Jim Meyering  <meyering@lucent.com>
77630
77631         * lib/dirname.c (memrchr): Declare if necessary.
77632         (dir_name): Remove the restriction that there be no
77633         trailing slashes.  Now, this code skips past them, effectively
77634         ignoring them.
77635         [TEST_DIRNAME] (main): New unit tests.
77636
77637         * lib/memrchr.c: New file from GNU libc.
77638         Undef __memrchr, too.
77639         [!weak_alias]: Define __memrchr to memrchr.
77640         Guard weak_alias use with `#ifdef weak_alias'.
77641
77642 2000-10-21  Jim Meyering  <meyering@lucent.com>
77643
77644         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
77645         (dir_name): Use dir_name_r.
77646         * lib/dirname.h (dir_name_r): Declare it.
77647
77648 2000-10-17  Jim Meyering  <meyering@lucent.com>
77649
77650         * lib/quote.h (PARAMS): Define and use.
77651         Reported by Akim Demaille.
77652
77653         * lib/getopt.c: Update from libc.
77654
77655 2000-10-16  Jim Meyering  <meyering@lucent.com>
77656
77657         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
77658         setlocale.
77659         From Jan Fedak.
77660
77661 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
77662
77663         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
77664
77665 2000-09-25  Jim Meyering  <meyering@lucent.com>
77666
77667         * lib/md5.h (rol): Define (from GnuPG).
77668
77669         * lib/sha.c: Give credit (GnuPG) where due.
77670         (M): Use rol rather than open-coding it.
77671         Add a FIXME comment.
77672
77673 2000-09-21  Jim Meyering  <meyering@lucent.com>
77674
77675         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
77676         Reported by Michael Stone.
77677
77678 2000-09-20  Jim Meyering  <meyering@lucent.com>
77679
77680         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
77681         (noinst_HEADERS): Add sha.h.
77682         Based on code from Scott G. Miller and from GnuPG.
77683
77684 2000-09-18  Jim Meyering  <meyering@lucent.com>
77685
77686         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
77687         LIBS. Otherwise, everyone ends up linking with -lelf for some
77688         configurations.
77689         Reported by Mike Stone.
77690
77691 2000-09-15  Jim Meyering  <meyering@lucent.com>
77692
77693         * lib/regex.c: Update from libc.
77694
77695 2000-09-10  Jim Meyering  <meyering@lucent.com>
77696
77697         * lib/getopt.c (_getopt_internal): Update from glibc.
77698
77699 2000-09-09  Jim Meyering  <meyering@lucent.com>
77700
77701         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
77702         think it should be used as a general replacement for isascii.
77703         * lib/fnmatch.c: Likewise.
77704         * lib/mbswidth.c: Likewise
77705         * lib/regex.c: Likewise.
77706
77707         Don't use atoi.
77708         * lib/userspec.c: Include sys/param.h and limits.h.
77709         Include xstrtol.h.
77710         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77711         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
77712         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
77713         UID, GID.  Check range.
77714
77715 2000-09-06  Jim Meyering  <meyering@lucent.com>
77716
77717         * lib/getopt.c (_getopt_internal): Update from glibc.
77718
77719 2000-08-30  Jim Meyering  <meyering@lucent.com>
77720
77721         * lib/strftime.c: Merge in changes from GNU libc.
77722
77723 2000-08-26  Jim Meyering  <meyering@lucent.com>
77724
77725         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
77726         * m4/fpending.m4: New file.
77727
77728 2000-08-26  Jim Meyering  <meyering@lucent.com>
77729
77730         * lib/closeout.c: Include "__fpending.h".
77731         (close_stdout_status): Return right away if there's nothing to flush.
77732
77733         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
77734         * lib/__fpending.c: New file.
77735         * lib/__fpending.h: New file.
77736
77737 2000-08-20  Jim Meyering  <meyering@lucent.com>
77738
77739         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
77740         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
77741         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
77742
77743 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
77744
77745         Improve fileutils installation on systems where running
77746         programs (like install) can't be unlinked.
77747         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
77748         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
77749
77750 2000-08-07  Paul Eggert  <eggert@twinsun.com>
77751
77752         Standardize on "memory exhausted" instead of "Memory exhausted"
77753         or "virtual memory exhausted".
77754         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
77755         "virtual memory exhausted".
77756         * lib/same.c (same_name): Invoke xalloc_die instead of printing
77757         our own message.
77758         * lib/userspec.c (parse_user_spec): Likewise.
77759         * lib/bumpalloc.h: comment fix
77760         * lib/same.c, userspec.c: Include xalloc.h.
77761
77762         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
77763         not char *const and pointing to a constant array.
77764         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
77765         (xrealloc): Comment fix.
77766
77767         * lib/userspec.c (parse_user_spec):
77768         Don't translate a message until just before returning,
77769         to avoid unnecessary translation.
77770
77771 2000-08-07  Jim Meyering  <meyering@lucent.com>
77772
77773         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
77774         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
77775         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
77776         getgroups.c, gethostname.c, getopt.h, group-member.c,
77777         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
77778         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
77779         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
77780         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
77781         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
77782         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
77783         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
77784         yesno.c: Back out Copyright date changes for each file with no change
77785         this year.  This eases coordination with other programs using the same
77786         source code modules.  From Paul Eggert.
77787
77788 2000-08-06  Paul Eggert  <eggert@twinsun.com>
77789
77790         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
77791         not char, for compatibility with glibc 2.1.3 strftime.c.
77792
77793 2000-08-03  Greg McGary  <greg@mcgary.org>
77794
77795         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
77796         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
77797         (EXTEND_BUFFER): Use them.
77798
77799 2000-08-01  Jim Meyering  <meyering@lucent.com>
77800
77801         * lib/dirname.c (ISSLASH): Define.
77802         (BACKSLASH_IS_PATH_SEPARATOR): Define.
77803         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
77804         both `\' and `/' may be use as path separators.
77805         Based on a patch from Prashant TR.
77806
77807 2000-07-31  Paul Eggert  <eggert@twinsun.com>
77808
77809         * lib/quotearg.c (quotearg_n_options): Don't make the initial
77810         slot vector a constant, since it might get modified.
77811
77812 2000-07-31  Jim Meyering  <meyering@lucent.com>
77813
77814         * lib/xmalloc.c: Use `virtual memory exhausted', not
77815         `Memory exhausted'.
77816         * lib/obstack.c (print_and_abort): Likewise.
77817
77818 2000-07-30  Paul Eggert  <eggert@twinsun.com>
77819
77820         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
77821         buffer, so that the caller can always quote one small
77822         component of a "memory exhausted" message in slot 0.
77823         From a suggestion by Jim Meyering.
77824
77825 2000-07-30  Jim Meyering  <meyering@lucent.com>
77826
77827         * lib/makepath.c (make_path): Quote the other instance, too.
77828
77829         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
77830         (STATIC_BUF_SIZE): Define.
77831         (quotearg_n_options): Use only statically allocated storage when
77832         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
77833         than STATIC_BUF_SIZE.
77834
77835 2000-07-29  Jim Meyering  <meyering@lucent.com>
77836
77837         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
77838         * lib/dirname.c (dir_name): Likewise.
77839
77840         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
77841         `/'.
77842
77843         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
77844         (dir_name): Assert that there are no trailing slashes.
77845
77846 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
77847
77848         * lib/mbswidth.h (mbswidth): Add a flags argument.
77849         (mbswidth): New declaration.
77850         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
77851         * lib/mbswidth.c (mbswidth): Add a flags argument.
77852         (mbsnwidth): New function.
77853
77854 2000-07-24  Jim Meyering  <meyering@lucent.com>
77855
77856         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
77857
77858 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77859
77860         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
77861
77862 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77863
77864         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
77865         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
77866         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
77867         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
77868         invoke multibyte primitives.
77869
77870 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77871
77872         * lib/quotearg.c:
77873         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
77874         so that mbstate_t is always defined.
77875
77876         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
77877         be 1 in at least one GCC installation, and this configuration
77878         error is likely to be common.  Ignoring MB_LEN_MAX hurts
77879         performance on hosts that have mbrtowc but have only unibyte
77880         locales, but I assume these hosts are rare.
77881
77882 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77883
77884         * lib/mbswidth.c (_XOPEN_SOURCE):
77885         Don't define; this causes problems on Solaris 7.
77886         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
77887
77888 2000-07-23  Jim Meyering  <meyering@lucent.com>
77889
77890         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
77891         too: getgrgid, getpwuid, getuid.
77892
77893 2000-07-23  Jim Meyering  <meyering@lucent.com>
77894
77895         * lib/basename.c (base_name): Add an assertion.
77896
77897 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
77898
77899         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
77900         shadow its mbsinit function.
77901
77902 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77903
77904         * lib/mbswidth.h: New file.
77905         * lib/mbswidth.c: New file.
77906         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
77907         (noinst_HEADERS): Add mbswidth.h.
77908
77909 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77910
77911         * lib/config.charset: Add support for FreeBSD. Improve support for
77912         HP-UX and IRIX 6.
77913
77914 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
77915
77916         * m4/mbswidth.m4: New file.
77917         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
77918
77919 2000-07-15  Jim Meyering  <meyering@lucent.com>
77920
77921         * lib/makepath.c: Include quote.h.
77922         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
77923         corresponding argument in a `quote (...)' call.
77924         Give better diagnostics.
77925
77926         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
77927         (noinst_HEADERS): Add quote.h.
77928
77929         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
77930         from tar's src/misc.c.
77931         * lib/quote.h: New file.  Prototypes for same.
77932
77933 2000-07-14  Paul Eggert  <eggert@twinsun.com>
77934
77935         From a suggestion by Bruno Haible.
77936         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
77937         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
77938         to decide whether to define the BeOS workaround macro;
77939         this adjusts to the change to AC_MBSTATE_T.
77940
77941 2000-07-14  Jim Meyering  <meyering@lucent.com>
77942
77943         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
77944         jm_AC_TYPE_UINTMAX_T.
77945
77946 2000-07-13  Paul Eggert  <eggert@twinsun.com>
77947
77948         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
77949
77950         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
77951         quotearg_buffer_restyled): Add support for
77952         clocale_quoting_style.  Undo previous change to
77953         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
77954         and "{RIGHT QUOTATION MARK}" msgids.
77955
77956 2000-07-10  Paul Eggert  <eggert@twinsun.com>
77957
77958         From a suggestion by Bruno Haible.
77959         * m4/mbstate_t.m4 (AC_MBSTATE_T):
77960         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
77961         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
77962         and mbstate_t, to a single-part test that simply defines mbstate_t.
77963         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
77964         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
77965
77966 2000-07-10  Jim Meyering  <meyering@lucent.com>
77967
77968         * m4/strerror_r.m4: Mirror the correction made in autoconf.
77969
77970         * m4/gnu-source.m4: Output to confdefs.h directly.
77971         Suggestion from Akim Demaille.
77972
77973 2000-07-09  Paul Eggert  <eggert@twinsun.com>
77974
77975         The old behavior of quoting `like this' doesn't look good with
77976         newer, ISO-style fonts.  See:
77977         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
77978
77979         Instead, quote "like this" by default.  Let the translator
77980         tailor the locale-specific quoting behavior by providing
77981         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
77982
77983         * lib/quotearg.c (N_): New macro.
77984         (gettext_default): New function.
77985         (quotearg_buffer_restyled): Use
77986         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
77987         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
77988
77989 2000-07-09  Jim Meyering  <meyering@lucent.com>
77990
77991         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
77992         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
77993
77994         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
77995         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
77996
77997 2000-07-09  Jim Meyering  <meyering@lucent.com>
77998
77999         * lib/Most files: Update copyright dates to include 2000.
78000
78001 2000-07-08  Jim Meyering  <meyering@lucent.com>
78002
78003         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
78004         if not defined.
78005         (xgethostname): Remove now-unnecessary #ifdef.
78006         Move declaration of `err' into loop where it's used.
78007
78008 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78009         and Bruno Haible  <haible@clisp.cons.org>
78010
78011         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
78012         only if the test for an object-type mbstate_t fails.  This
78013         prevents us from mistakenly reporting that mbstate_t is a
78014         system object type after we "#define mbstate_t int" to work
78015         around its lack.
78016
78017 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78018         and Bruno Haible  <haible@clisp.cons.org>
78019
78020         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
78021
78022 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78023
78024         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
78025         to strerror_r.
78026         Include <ctype.h> for use of isalpha.
78027
78028 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78029
78030         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
78031         by allocating a larger buffer. Test the gethostname return value for
78032         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
78033         returns an error and ENAMETOOLONG isn't defined.
78034
78035 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78036
78037         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
78038         dimension.
78039
78040 2000-07-04  Jim Meyering  <meyering@lucent.com>
78041
78042         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
78043         of the deprecated AC_CHECKING.
78044
78045 2000-07-04  Jim Meyering  <meyering@lucent.com>
78046
78047         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
78048         Reported by Bruno Haible.
78049
78050 2000-07-04  Jim Meyering  <meyering@lucent.com>
78051
78052         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
78053         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
78054         lacks mbrtowc.
78055
78056 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78057
78058         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
78059         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
78060
78061 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78062         and Bruno Haible  <haible@clisp.cons.org>
78063
78064         * lib/quotearg.c (mbrtowc):
78065         Assign to *pwc, and return 1 only if result is nonzero.
78066         (iswprint): Use ISPRINT when substituting our own mbrtowc.
78067
78068 2000-07-03  Jim Meyering  <meyering@lucent.com>
78069
78070         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
78071
78072 2000-07-03  Jim Meyering  <meyering@lucent.com>
78073
78074         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
78075         This is necessary to get a definition of e.g., UTMP_FILE on
78076         HP-UX 10.20.
78077         From Bob Proulx.
78078
78079 2000-07-02  Jim Meyering  <meyering@lucent.com>
78080
78081         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
78082
78083         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
78084         AC_LIBOBJ(function_name).
78085         * m4/chown.m4: Likewise.
78086         * m4/fnmatch.m4: Likewise.
78087         * m4/ftruncate.m4: Likewise.
78088         * m4/getgroups.m4: Likewise.
78089         * m4/getline.m4: Likewise.
78090         * m4/group-member.m4: Likewise.
78091         * m4/jm-macros.m4: Likewise.
78092         * m4/lstat.m4: Likewise.
78093         * m4/malloc.m4: Likewise.
78094         * m4/memcmp.m4: Likewise.
78095         * m4/nanosleep.m4: Likewise.
78096         * m4/putenv.m4: Likewise.
78097         * m4/realloc.m4: Likewise.
78098         * m4/regex.m4: Likewise.
78099         * m4/stat.m4: Likewise.
78100         * m4/strftime.m4: Likewise.
78101
78102 2000-07-02  Jim Meyering  <meyering@lucent.com>
78103
78104         * lib/quotearg.c (mbstate_t): Don't define here.
78105
78106 2000-07-02  Jim Meyering  <meyering@lucent.com>
78107
78108         * lib/nanosleep.c (SIGCONT): Define if not already defined.
78109
78110 2000-07-01  Jim Meyering  <meyering@lucent.com>
78111
78112         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
78113
78114 2000-07-01  Jim Meyering  <meyering@lucent.com>
78115
78116         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
78117         problem.
78118
78119 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78120
78121         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
78122         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
78123
78124 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78125
78126         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
78127         per change in ../m4/ls-mntd-fs.m4.
78128         (read_filesystem_list): Ignore symbolic links.
78129
78130 2000-06-29  Jim Meyering  <meyering@lucent.com>
78131
78132         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
78133         for declaration of strcmp.
78134
78135         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
78136
78137         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
78138         Avoid warning by casting result to `char *' to remove `const'.
78139
78140 2000-06-28  Jim Meyering  <meyering@lucent.com>
78141
78142         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
78143         included by quotearg.c, for which we perform this test.  From
78144         Bruno Haible.
78145
78146 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78147
78148         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
78149         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
78150         <utmpx.h> exists, put readutmp.o into LIBOBJS.
78151
78152 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78153
78154         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
78155
78156 2000-06-26  Paul Eggert  <eggert@twinsun.com>
78157
78158         savedir now sets errno on failure and invokes xmalloc to get memory.
78159         Fix a couple of other minor bugs while we're at it.
78160
78161         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
78162         (NAMLEN): Remove macro.
78163         (malloc, realloc): Remove decls.
78164         (stpcpy): Likewise.
78165         ("xalloc.h"): Include.
78166         (NAME_SIZE_DEFAULT): New macro.
78167         (savedir): Use xmalloc / xrealloc to allocate memory.
78168         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
78169         Skip "" directory entries.
78170         Use strlen to calculate directory entry length, since the old method
78171         is rarely used these days and isn't worth supporting.
78172         Don't use a pointer after freeing it.
78173         Check for integer overflow when calculating allocation size.
78174         Use memcpy to copy entries, instead of stpcpy.
78175         Set errno properly when returning NULL.
78176         Check for readdir error.
78177
78178 2000-06-26  Jim Meyering  <meyering@lucent.com>
78179
78180         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
78181
78182 2000-06-25  Jim Meyering  <meyering@lucent.com>
78183
78184         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
78185         Linux header bug when _XOPEN_SOURCE is defined to 500.
78186
78187 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78188
78189         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
78190         deficiency.
78191
78192 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78193
78194         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
78195         Include xalloc.h.
78196         Don't include <stdlib.h>.  Don't declare malloc, realloc.
78197
78198 2000-06-24  Jim Meyering  <meyering@lucent.com>
78199
78200         * m4/strerror_r.m4: Revive this file -- to try out an experimental
78201         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
78202         for which strerror does return char*, but which lacks a conveniently
78203         accessible declaration of the function.  If the compile-test says
78204         strerror_r doesn't work, then resort to a `run'-test that works on
78205         BeOS and segfaults on DEC Unix.
78206
78207 2000-06-24  Jim Meyering  <meyering@lucent.com>
78208
78209         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
78210
78211 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78212
78213         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
78214         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
78215
78216 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78217
78218         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
78219         (mbrtowc, mbstate_t): Define substitutes if
78220         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
78221         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
78222         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
78223
78224 2000-06-23  Jim Meyering  <meyering@lucent.com>
78225
78226         * m4/afs.m4: Add missing AC_MSG_RESULT.
78227         Reported by Bruno Haible.
78228
78229         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
78230         Suggestion from Bruno Haible.
78231
78232 2000-06-23  Jim Meyering  <meyering@lucent.com>
78233
78234         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
78235
78236 2000-06-21  Jim Meyering  <meyering@lucent.com>
78237
78238         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
78239
78240 2000-06-21  Jim Meyering  <meyering@lucent.com>
78241
78242         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
78243         (noinst_HEADERS): Add getstr.h.
78244
78245         * lib/getline.c (getstr): Move into a separate file.
78246         * lib/getstr.c (getstr): New file, extracted from getline.c, with
78247         the following changes: new parameter, delim2; both delim[12]
78248         parameters have type `int', not `char'.  The latter would lose
78249         with 8-bit delimiters.
78250         * lib/getstr.h: New file.
78251
78252 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78253
78254         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
78255         than 1024, return a memory chunk of least possible size, instead
78256         of size PATH_MAX + 2. In the loop, increment the size proportionally.
78257         Use free/xmalloc instead of xrealloc to avoid copying for very long
78258         paths.
78259
78260 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78261
78262         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
78263         the empty string.
78264
78265 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78266
78267         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
78268         address, not strdup.  Include <stdlib.h> and don't declare free().
78269
78270 2000-06-19  Jim Meyering  <meyering@lucent.com>
78271
78272         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
78273
78274 2000-06-18  Jim Meyering  <meyering@lucent.com>
78275
78276         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
78277
78278         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
78279         `checking whether...' message to be consistent with that of the
78280         lstat test.
78281
78282 2000-06-18  Jim Meyering  <meyering@lucent.com>
78283
78284         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
78285         Besides, these days every porting target provides a mkdir function.
78286
78287         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
78288         needed. (this snippet comes from src/system.h).
78289
78290 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
78291
78292         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
78293
78294 2000-06-15  Paul Eggert  <eggert@twinsun.com>
78295
78296         * lib/human.c (adjust_value): New function.
78297         (human_readable_inexact): Apply rounding style even when
78298         printing approximate values.
78299
78300 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78301
78302         * lib/human.c (human_readable_inexact): Allow an input block
78303         size that is not a multiple of the output block size, and vice versa.
78304         Reported by Piergiorgio Sartor.
78305
78306 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78307
78308         * lib/getdate.y (get_date): Apply relative times after time
78309         zone indicator, not before.  Reported by Todd A. Jacobs.
78310
78311 2000-06-13  Jim Meyering  <meyering@lucent.com>
78312
78313         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
78314
78315         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
78316
78317 2000-06-12  Paul Eggert  <eggert@twinsun.com>
78318
78319         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
78320
78321 2000-06-12  Jim Meyering  <meyering@lucent.com>
78322
78323         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
78324         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
78325         optional argument.
78326         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
78327         the optional argument, `lib'.
78328
78329 2000-06-08  Jim Meyering  <meyering@lucent.com>
78330
78331         * m4/largefile.m4: Remove file (now that it's part of autoconf).
78332
78333 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78334
78335         Rewrite largefile configuration so that we don't need to run
78336         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
78337         AC_CANONICAL_HOST in configure.in -- jmm]
78338
78339         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
78340         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
78341         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
78342         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
78343         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
78344         All uses changed.
78345         Instead of inspecting the output of getconf, try to compile the
78346         test program without and with the macro definition.
78347         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
78348         for getconf.  Instead, check for the needed flags by compiling
78349         test programs.
78350
78351 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78352
78353         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
78354
78355 2000-06-04  Jim Meyering  <meyering@lucent.com>
78356
78357         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
78358         SunOS 4.1.4 for which gid_t is an unsigned type.
78359
78360 2000-06-03  Jim Meyering  <meyering@lucent.com>
78361
78362         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
78363         now that autoconf requires that.
78364
78365         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
78366         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
78367         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
78368
78369 2000-06-03  Jim Meyering  <meyering@lucent.com>
78370
78371         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
78372
78373 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78374
78375         * m4/glibc21.m4: New file.
78376         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
78377
78378 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78379
78380         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
78381         newer, don't install charset.alias.
78382         * lib/config.charset: Change the Linux/glibc rules so they become empty
78383         on glibc-2.1 or newer.
78384
78385 2000-06-02  Jim Meyering  <meyering@lucent.com>
78386
78387         * lib/mountlist.c: Back out last change.  Instead, do this...
78388         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
78389         me_dummy member using the same `ignore'-testing code.
78390         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
78391         fs_type strings.
78392         From Mark D. Roth.
78393
78394 2000-05-29  Jim Meyering  <meyering@lucent.com>
78395
78396         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
78397         mounts with the `ignore' attribute.  Based on a patch from
78398         Mark D. Roth.
78399
78400 2000-05-28  Jim Meyering  <meyering@lucent.com>
78401
78402         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
78403         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78404         * m4/stat.m4: Likewise.
78405         * m4/lstat.m4: Likewise.
78406         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
78407
78408         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
78409         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
78410
78411 2000-05-26  Jim Meyering  <meyering@lucent.com>
78412
78413         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
78414
78415 2000-05-24  Jim Meyering  <meyering@lucent.com>
78416
78417         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
78418         autoconf requires that.
78419         * m4/lib-check.m4: Likewise.
78420         * m4/jm-macros.m4: Likewise.
78421         * m4/strftime.m4: Likewise.
78422
78423         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
78424         AC_CHECK_DECLS, now that autoconf requires that.
78425
78426 2000-05-22  Jim Meyering  <meyering@lucent.com>
78427
78428         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78429         * m4/lstat.m4: Likewise.
78430
78431 2000-05-22  Jim Meyering  <meyering@lucent.com>
78432
78433         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
78434
78435 2000-05-20  Jim Meyering  <meyering@lucent.com>
78436
78437         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
78438         (jm_PREREQ): Use it.
78439
78440 2000-05-18  Jim Meyering  <meyering@lucent.com>
78441
78442         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
78443         back, too, since it may have been modified by allocate_entry.
78444         (hash_delete): Rewrite to use neither the assignment operator
78445         nor the comma operator in an if-expression.
78446
78447 2000-05-15  Paul Eggert  <eggert@twinsun.com>
78448
78449         * lib/closeout.c:
78450         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
78451         Remove; no longer needed.
78452         "quotearg.h": Add include.
78453         (file_name): Do not bother to explicitly initialize to NULL; it's less
78454         efficient on some hosts.
78455         (close_stdout_status): Remove test as to whether stdout was already
78456         closed; it breaks for the case "echo x | sort >&-".
78457         Quote file name colons.
78458         Do not assume that _("write error") lacks format strings.
78459
78460 2000-05-15  Jim Meyering  <meyering@lucent.com>
78461
78462         * lib/version-etc.c (version_etc_copyright): Update the copyright
78463         string used in all --version output.
78464
78465 2000-05-14  Jim Meyering  <meyering@lucent.com>
78466
78467         * lib/closeout.c (close_stdout_set_file_name): New function.
78468         (close_stdout_status): Use new file-scoped global.
78469         Return right away if fstat says the stdout file descriptor is invalid.
78470         * lib/closeout.h (close_stdout_set_file_name): Declare.
78471
78472 2000-05-10  Jim Meyering  <meyering@lucent.com>
78473
78474         * lib/closeout.c [default_exit_status]: New file-scoped variable.
78475         (close_stdout_set_status): New function.
78476         * lib/closeout.h (close_stdout_set_status): Declare.
78477
78478 2000-05-09  Jim Meyering  <meyering@lucent.com>
78479
78480         * m4/gettext.m4: Rename this...
78481         * m4/libintl.m4: ...to this.
78482
78483 2000-05-08  Jim Meyering  <meyering@lucent.com>
78484
78485         * lib/long-options.c: Don't include closeout.h.
78486         (parse_long_options): Don't call close_stdout for --version.
78487
78488 2000-05-06  Paul Eggert  <eggert@twinsun.com>
78489
78490         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
78491         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
78492         2.1.3 bug.  This avoids a clash when files like regex.c define
78493         _GNU_SOURCE.
78494
78495 2000-05-06  Jim Meyering  <meyering@lucent.com>
78496
78497         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
78498         (AC_REPLACE_FUNCS): Add strnlen.
78499
78500         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
78501         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
78502
78503         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
78504         AC_SEARCH_LIBS call for nanosleep.
78505         (LIB_NANOSLEEP): Set and AC_SUBST.
78506
78507 2000-05-06  Jim Meyering  <meyering@lucent.com>
78508
78509         * lib/strnlen.c: Undefine __strnlen and strnlen.
78510         [!weak_alias]: Define __strnlen to strnlen.
78511
78512         * lib/atexit.c: New file, from libiberty.
78513
78514 2000-05-06  Jim Meyering  <meyering@lucent.com>
78515
78516         * lib/closeout.c (close_stdout_status): Also check for errors on the
78517         stderr stream.
78518
78519 2000-05-05  Jim Meyering  <meyering@lucent.com>
78520
78521         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
78522         AC_SEARCH_LIBS call for clock_gettime.
78523         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
78524
78525         * m4/search-libs.m4: Update from autoconf.
78526
78527         su doesn't work on Solaris 2.6.
78528         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
78529         <shadow.h>.  Reported by Dragos Harabor.
78530
78531 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
78532
78533         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
78534         memcpy instead of xmalloc, xrealloc, path_concat.
78535         (locale_charset): Treat empty environment variables as absent.
78536         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
78537
78538 2000-05-04  Jim Meyering  <meyering@lucent.com>
78539
78540         * lib/getopt.c: Update from glibc.
78541         * lib/obstack.c: Likewise.
78542         * lib/obstack.h: Likewise.
78543         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
78544         file
78545
78546         * lib/regex.h: Likewise.
78547         * lib/strndup.c: Likewise.
78548         * lib/strnlen.c: New file, from glibc.
78549
78550 2000-05-03  Jim Meyering  <meyering@lucent.com>
78551
78552         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
78553
78554 2000-05-02  Paul Eggert  <eggert@twinsun.com>
78555
78556         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
78557         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
78558         compile-time test, rather than inspecting host and OS, to
78559         decide whether to define _LARGEFILE_SOURCE.
78560
78561 2000-05-01  Jim Meyering  <meyering@lucent.com>
78562
78563         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
78564
78565         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
78566         Based on a patch from Bruno Haible.
78567
78568 2000-05-01  Jim Meyering  <meyering@lucent.com>
78569
78570         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
78571
78572 2000-04-29  Jim Meyering  <meyering@lucent.com>
78573
78574         * lib/path-concat.c: Declare strdup only if it's not defined.
78575         * lib/canon-host.c: Likewise.
78576
78577 2000-04-28  Jim Meyering  <meyering@lucent.com>
78578
78579         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
78580         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
78581         is included first, then limits.h is included by locale.h by libintl.h.
78582         From John David Anglin.
78583
78584 2000-04-25  Jim Meyering  <meyering@lucent.com>
78585
78586         * lib/makepath.c (S_IRWXUGO): Define.
78587         (make_path): Always perform explicit chmod if MODE specifies any
78588         of the `special' permission bits.  Prompted by a bug report against
78589         install from Mate Wierdl and Joost van Baal.
78590
78591 2000-04-18  Jim Meyering  <meyering@lucent.com>
78592
78593         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
78594         (jm_PREREQ): Use it.
78595
78596 2000-04-18  Jim Meyering  <meyering@lucent.com>
78597
78598         * lib/README: New file.
78599
78600         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
78601         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
78602
78603 2000-04-17  Jim Meyering  <meyering@lucent.com>
78604
78605         Get it right :-)
78606         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
78607         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
78608         Suggestion from Akim Demaille.
78609
78610 2000-04-17  Jim Meyering  <meyering@lucent.com>
78611
78612         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
78613         the definition of it to rpl_strftime also defined-away the system's
78614         declaration.
78615
78616 2000-04-15  Jim Meyering  <meyering@lucent.com>
78617
78618         Use `C' to denote so-called `contiguous' files, the same way
78619         that tar does.
78620         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
78621         (ftypelet): Use S_ISCTG.
78622         From Michael Deutschmann.
78623
78624 2000-04-14  Jim Meyering  <meyering@lucent.com>
78625
78626         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
78627         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
78628         clobbered.
78629
78630 2000-04-14  Jim Meyering  <meyering@lucent.com>
78631
78632         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
78633
78634 2000-04-13  Jim Meyering  <meyering@lucent.com>
78635
78636         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
78637         AH_VERBATIM to insert required #ifndef into config.h.in.
78638         Suggestion from Akim Demaille.
78639
78640 2000-04-12  Jim Meyering  <meyering@lucent.com>
78641
78642         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
78643         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
78644         Christian Krackowizer.
78645
78646         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
78647         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
78648         (AC_SYS_LARGEFILE): Require.
78649         (AM_C_PROTOTYPES): Require.
78650
78651 2000-04-08  Jim Meyering  <meyering@lucent.com>
78652
78653         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
78654         names don't conflict.  Reported by Eli Zaretskii.
78655
78656 2000-04-07  Jim Meyering  <meyering@lucent.com>
78657
78658         * lib/putenv.c: Move inclusion of errno.h so it follows that of
78659         sys/types.h, to work around system header problems on AIX 3.2.5.
78660         From Bruno Haible.
78661
78662 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
78663
78664         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
78665         bug.  Deal with the different error behavior of Irix iconv.
78666
78667 2000-04-05  Paul Eggert  <eggert@twinsun.com>
78668
78669         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
78670         IRIX if the installer said otherwise.
78671
78672 2000-04-05  Jim Meyering  <meyering@lucent.com>
78673
78674         Portability tweaks required for ultrix4.3.
78675         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
78676         (jm_CHECK_DECLS): Add getutent to the list of functions.
78677         (_jm_DECL_HEADERS): Add utmpx.h.
78678         From John David Anglin.
78679
78680         * m4/strftime.m4: Back out the 2000-04-02 change.
78681         Instead of that change, simply undefine putenv in the test program.
78682
78683 2000-04-05  Jim Meyering  <meyering@lucent.com>
78684
78685         Portability tweaks required for ultrix4.3.
78686         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
78687         getutent.
78688         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
78689         * lib/canon-host.c: Declare strdup.
78690         * lib/path-concat.c: Likewise.
78691         From John David Anglin.
78692
78693 2000-04-04  Jim Meyering  <meyering@lucent.com>
78694
78695         Be more DOS 8.3-friendly.
78696         * lib/ref-add.sin: Renamed from ref-add.sed.in.
78697         * lib/ref-del.sin: Renamed from ref-del.sed.in.
78698         * lib/Makefile.am: Reflect renaming.
78699         Reported by Eli Zaretskii.
78700
78701         Use a temporary file name that won't clash with `charset.alias'
78702         in the DOS 8.3 name space.
78703         * lib/Makefile.am (charset_tmp): Define.
78704         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
78705         (uninstall-local): Likewise.
78706         Reported by Eli Zaretskii.
78707
78708 2000-04-03  Jim Meyering  <meyering@lucent.com>
78709
78710         * m4/gettext.m4: Fix typo in comment.
78711
78712         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
78713         textutils/configure.in).  Suggestion from Paul Eggert.
78714         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
78715
78716 2000-04-02  Paul Eggert  <eggert@twinsun.com>
78717
78718         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
78719         variable in the shell rather than using putenv, which isn't
78720         portable.  This avoids the configure-time inter-test dependency
78721         on the potentially-renamed putenv function.
78722
78723 2000-03-30  Paul Eggert  <eggert@twinsun.com>
78724
78725         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
78726         before checking struct stat.st_blksize, so that
78727         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
78728
78729 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78730
78731         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
78732         since strftime.c uses HAVE_STRFTIME to decide whether to use
78733         the underlying strftime.
78734
78735 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78736
78737         * lib/time/strftime.c (my_strftime): Make sure we call the system
78738         strftime, not ourselves, when invoking the underlying strftime.
78739
78740 2000-03-24  Jim Meyering  <meyering@lucent.com>
78741
78742         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
78743         (charset_alias): Define.
78744         (install-exec-local): Factor out common code.
78745         (uninstall-local): Split lines longer than 80.
78746         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
78747         (SUFFIXES): Define.
78748         (.sed.in.sed): New rule.  Don't redirect directly to $@.
78749         (CLEANFILES): Add ref-add.sed and ref-del.sed.
78750
78751 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
78752
78753         * lib/config.charset: Output a line containing "Packages using this
78754         file".
78755         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
78756         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
78757         ref-del.sed): New rules.
78758
78759 2000-03-17  Jim Meyering  <meyering@lucent.com>
78760
78761         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
78762         Otherwise, include <strings.h>
78763
78764 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
78765
78766         * lib/unicodeio.c (utf8_wctomb): New function.
78767         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
78768         format instead of in UCS-4 with platform dependent endianness.
78769
78770 2000-03-10  Jim Meyering  <meyering@lucent.com>
78771
78772         * m4/lib-check.m4: Look for getspnam in -lgen, too.
78773         From Marco Franzen.
78774
78775 2000-03-07  Paul Eggert  <eggert@twinsun.com>
78776
78777         * lib/savedir.c (savedir): Work even if directory size is
78778         negative; this can happen with some screwy NFS configurations.
78779
78780 2000-03-06  Jim Meyering  <meyering@lucent.com>
78781
78782         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
78783         if it's NULL (because we ran out of memory).  From Bruno Haible.
78784
78785 2000-03-05  Jim Meyering  <meyering@lucent.com>
78786
78787         * lib/localcharset.c ("path-concat.h"): Include.
78788         (get_charset_aliases): Use path_concat instead of ANSI string
78789         concatenation.
78790
78791         * lib/unicodeio.h (PARAMS): Define.
78792         Use it to guard prototype.
78793
78794 2000-03-04  Jim Meyering  <meyering@lucent.com>
78795
78796         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
78797         for lib/localcharset.c.
78798
78799 2000-03-04  Jim Meyering  <meyering@lucent.com>
78800
78801         * lib/Makefile.am (install-exec-local): Create $(libdir) before
78802         installing into it.
78803         (uninstall-local): Uncomment this rule so `make distcheck' works
78804         once again.
78805
78806         * lib/unicodeio.c (<errno.h>): Include it.
78807         (errno): Declare if not defined.
78808
78809         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
78810
78811         * lib/config.charset: New version, incorporating remarks from a linux
78812         i18n mailing list.  From Bruno Haible.
78813
78814 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
78815
78816         * m4/codeset.m4: New file.
78817         * m4/iconv.m4: New file.
78818         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
78819
78820 2000-03-03  Jim Meyering  <meyering@lucent.com>
78821
78822         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
78823
78824 2000-03-02  Jim Meyering  <meyering@lucent.com>
78825
78826         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
78827         the messages come out on separate lines.
78828
78829         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
78830         rather than jm_CHECK_DECLARATIONS.
78831         * m4/decl.m4: Remove now-unused file.
78832
78833         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
78834         geteuid.
78835
78836 2000-03-02  Jim Meyering  <meyering@lucent.com>
78837
78838         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
78839
78840 2000-03-01  Jim Meyering  <meyering@lucent.com>
78841
78842         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
78843         * lib/unicodeio.c: Likewise.
78844
78845 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
78846
78847         * lib/config.charset: New file.
78848         * lib/localcharset.c: New file.
78849         * lib/unicodeio.h, lib/unicodeio.c: New files.
78850         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
78851         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
78852         (noinst_HEADERS): Add unicodeio.h.
78853         (all-local, install-exec-local, charset.alias): New targets.
78854
78855 2000-02-28  Paul Eggert  <eggert@twinsun.com>
78856
78857         * lib/quotearg.c (ALERT_CHAR): New macro.
78858         (quotearg_buffer_restyled): Use it.
78859
78860 2000-02-27  Jim Meyering  <meyering@lucent.com>
78861
78862         * m4/check-decl.m4: Add getenv to the list.
78863
78864 2000-02-27  Jim Meyering  <meyering@lucent.com>
78865
78866         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
78867         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
78868
78869         * lib/backupfile.c: Guard inclusion of stdlib.h with
78870         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
78871         Declare malloc if needed.
78872
78873         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
78874         `#ifndef HAVE_DECL..'
78875         now that autoconf always defines the HAVE_DECL_ symbols.
78876         * lib/human.c: Likewise.
78877         * lib/same.c: Likewise.
78878         * lib/strtoumax.c: Likewise.
78879
78880         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
78881         declaration check was not run.
78882         * lib/hash.c: Likewise.
78883         * lib/human.c: Likewise.
78884         * lib/same.c: Likewise.
78885         * lib/strtoumax.c: Likewise.
78886
78887         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
78888         `.', then first look up the entire `.'-containing string as a login
78889         name.
78890
78891 2000-02-23  Jim Meyering  <meyering@lucent.com>
78892
78893         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
78894         in place of my hack.
78895
78896 2000-02-18  Paul Eggert  <eggert@twinsun.com>
78897
78898         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
78899         (textint): New typedef.
78900         (parser_control): Member year changed from int to textint.
78901         All uses changed.
78902         (YYSTYPE): Removed; replaced by %union with int and textint members.
78903         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
78904         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
78905         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
78906         (tSNUMBER, tUNUMBER): Now of type <textintval>.
78907         (date, number, to_year): Use width of number in digits, not its value,
78908         to determine whether it's a 2-digit year, or a 2-digit time.
78909         (yylex): Store number of digits of numeric tokens.
78910         Reported by John Kendall.
78911
78912         (parser_control): Changed from struct parser_control to typedef (for
78913         consistency).  All uses changed.
78914
78915         (tID): Removed; not used.
78916         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
78917
78918 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78919
78920         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78921         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78922
78923 2000-02-12  Jim Meyering  <meyering@lucent.com>
78924
78925         * lib/userspec.c (ISDIGIT): Define it.
78926         (isdigit): Remove definition.
78927         (is_number): Use ISDIGIT, not isdigit.
78928         <libintl.h>: Include.
78929         (_ and N_): Define.
78930         (parse_user_spec): Mark translatable strings.
78931
78932 2000-02-10  Jim Meyering  <meyering@lucent.com>
78933
78934         With these changes, nanosleep.[ch] are finally enough like the other
78935         lib/* replacement files to compile on a few more losing systems.
78936
78937         * lib/nanosleep.h: Don't include config.h.
78938         Remove prototype from declaration of nanosleep.
78939         (PARAMS): Remove now-unneeded definition.
78940         * lib/nanosleep.c: #undef nanosleep.
78941         (rpl_nanosleep): Rename from nanosleep.
78942
78943 2000-02-10  Jim Meyering  <meyering@lucent.com>
78944
78945         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
78946         gnu_nanosleep to rpl_nanosleep.
78947
78948 2000-02-09  Jim Meyering  <meyering@lucent.com>
78949
78950         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
78951         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
78952
78953 2000-02-08  Akim Demaille  <akim@epita.fr>
78954
78955         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
78956         `[' and `]' and remove uses of `changequote'.
78957         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
78958         (AC_SYS_LARGEFILE): Likewise.
78959         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
78960         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
78961         of changequote.
78962         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
78963         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
78964         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
78965         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
78966
78967 2000-02-05  Jim Meyering  <meyering@lucent.com>
78968
78969         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
78970         Remove explicit use of AC_HEADER_TIME.  It is required by
78971         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
78972         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
78973         in autoconf whereby the expansion of the latter ended up preceding
78974         the expansion of its prerequisite, AC_HEADER_TIME.
78975         Reported by Volker Borchert.
78976
78977 2000-02-03  Jim Meyering  <meyering@lucent.com>
78978
78979         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
78980
78981 2000-02-03  Jim Meyering  <meyering@lucent.com>
78982
78983         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
78984         rather than with `#if HAVE_UTMPNAME'.
78985
78986 2000-02-02  Jim Meyering  <meyering@lucent.com>
78987
78988         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
78989         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
78990         Reported by Eli Zaretskii.
78991
78992 2000-02-01  Jim Meyering  <meyering@lucent.com>
78993
78994         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
78995
78996 2000-01-31  Jim Meyering  <meyering@lucent.com>
78997
78998         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
78999         functions.  Add the time.h and sys/time.h headers along with the
79000         AC_REQUIRE'ment of AC_HEADER_TIME.
79001
79002 2000-01-31  Jim Meyering  <meyering@lucent.com>
79003
79004         * lib/nanosleep.h (nanosleep): Guard declaration with
79005         `#if ! HAVE_DECL_NANOSLEEP'.
79006         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
79007         the declaration in that vendor's sys/timers.h.
79008         Reported by Christian Krackowizer.
79009
79010         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
79011         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
79012         (ISPRINT): Likewise.
79013         Reported by Tom Tromey.
79014
79015 2000-01-30  Jim Meyering  <meyering@lucent.com>
79016
79017         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
79018
79019         * m4/prereq.m4 (utmp_includes): Define.
79020         Check for ut_user and ut_name members in both struct utmpx
79021         and struct utmp.
79022
79023 2000-01-30  Jim Meyering  <meyering@lucent.com>
79024
79025         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
79026         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
79027         header files where only utmpx.ut_user is declared.
79028
79029         * lib/readutmp.h (UT_USER): Define.
79030
79031 2000-01-29  Jim Meyering  <meyering@lucent.com>
79032
79033         * m4/lib-check.m4: New file containing library-related checks from
79034         fileutils and sh-utils (textutils had none).
79035
79036 2000-01-28  Jim Meyering  <meyering@lucent.com>
79037
79038         * m4/perl.m4: Change format of warning message to look more like that
79039         from the missing script.  Suggestion from François Pinard.
79040
79041 2000-01-25  Jim Meyering  <meyering@lucent.com>
79042
79043         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
79044         well as time.h in the compile check.
79045         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
79046         Fix typo in cross-compiling case: s/yes/no/.
79047
79048 2000-01-23  Jim Meyering  <meyering@lucent.com>
79049
79050         * m4/jm-macros.m4: Move df-related tests here from
79051         fileutils/configure.in
79052
79053         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
79054         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
79055
79056         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
79057         s/space/ac_fsusage_space/.
79058         (jm_FILE_SYSTEM_USAGE): Take two parameters.
79059
79060         * m4/ftruncate.m4: New file (derived from part of
79061         fileutils/configure.in).
79062         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
79063         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
79064
79065         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
79066         AC_SUBST these here, rather than just in sh-util/configure.in, so
79067         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
79068         all the same.
79069         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
79070         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
79071         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
79072         (AC_SUBST(POW_LIBM)): Likewise.
79073         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
79074
79075 2000-01-23  Jim Meyering  <meyering@lucent.com>
79076
79077         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
79078         obstack.c.
79079
79080 2000-01-22  Jim Meyering  <meyering@lucent.com>
79081
79082         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
79083
79084         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
79085
79086         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
79087         configure.in
79088         (AC_CHECK_HEADERS): Likewise for sh-utils.
79089         (AC_CHECK_HEADERS): Likewise for textutils.
79090         Merge the three lists of headers.
79091
79092         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
79093         from fileutils' configure.in.
79094
79095         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
79096         code. Moved tests into their own function (_jm_DECL_HEADERS) in
79097         check-decl.m4.
79098
79099         * m4/check-decl.m4: Use #if rather than #ifdef.
79100         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
79101         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
79102         (_jm_DECL_HEADERS): Define new function.
79103         (jm_CHECK_DECLARATIONS): Require it.
79104
79105 2000-01-22  Jim Meyering  <meyering@lucent.com>
79106
79107         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
79108         [! HAVE_DECL_STRTOULL]: Declare strtoull.
79109         Required for some AIX systems.  Reported by Christian Krackowizer.
79110         [TESTING] (main): New function.
79111
79112         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
79113         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
79114         letters.
79115
79116         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
79117         iswprint.
79118
79119         * lib/strverscmp.c (ISDIGIT): Define.
79120         (strverscmp): Use ISDIGIT, not isdigit.
79121
79122 2000-01-19  Jim Meyering  <meyering@lucent.com>
79123
79124         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
79125         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
79126         defines `struct timespec' in <sys/time.h>
79127
79128         * m4/c-bs-a.m4: Remove uses of changequote altogether.
79129         Thanks to Akim for explaining.
79130
79131 2000-01-17  Paul Eggert  <eggert@twinsun.com>
79132
79133         * lib/nanosleep.c (nanosleep):
79134         Don't use SA_INTERRUPT to decide whether to call sigaction, as
79135         POSIX.1 doesn't require SA_INTERRUPT and some systems
79136         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
79137         it's been part of POSIX.1 since day 1 (in 1988).
79138
79139 2000-01-17  Jim Meyering  <meyering@lucent.com>
79140
79141         * lib/interlock: Remove unused file.  Reported by François Pinard.
79142
79143 2000-01-16  Paul Eggert  <eggert@twinsun.com>
79144
79145         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
79146         alert, backslash, formfeed, and vertical tab unnecessarily in
79147         shell quoting style.
79148
79149 2000-01-16  Jim Meyering  <meyering@lucent.com>
79150
79151         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
79152         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
79153         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
79154         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
79155
79156 2000-01-16  Jim Meyering  <meyering@lucent.com>
79157
79158         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
79159         because the latter didn't work.
79160
79161 2000-01-15  Jim Meyering  <meyering@lucent.com>
79162
79163         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
79164         (AC_REPLACE_FUNCS): Add memcpy and memset.
79165         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
79166         Add strpbrk.
79167         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
79168
79169 2000-01-12  Jim Meyering  <meyering@lucent.com>
79170
79171         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
79172         (jm_PREREQ): Use it.
79173         (jm_PREREQ_READUTMP): New macro.
79174         (jm_PREREQ): Use it.
79175
79176 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79177
79178         Quote multibyte characters correctly.
79179         * m4/c-bs-a.m4: New file.
79180         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
79181         (jm_PREREQ): Use it.
79182
79183 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79184
79185         * m4/uintmax_t.m4: Port to autoconf 2.13.
79186
79187 2000-01-08  Jim Meyering  <meyering@ascend.com>
79188
79189         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
79190         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
79191
79192 2000-01-04  Jim Meyering  <meyering@ascend.com>
79193
79194         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
79195         jm_STRUCT_DIRENT_D_TYPE.
79196         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
79197         jm_STRUCT_DIRENT_D_INO.
79198         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
79199         jm_STRUCT_UTIMBUF.
79200         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
79201         renamings.
79202         * m4/utime.m4: Likewise.
79203
79204         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
79205         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
79206
79207 2000-01-03  Paul Eggert  <eggert@twinsun.com>
79208
79209         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
79210         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
79211
79212 2000-01-02  Jim Meyering  <meyering@ascend.com>
79213
79214         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
79215         remember if this is necessary.
79216
79217 1999-12-26  Jim Meyering  <meyering@ascend.com>
79218
79219         * m4/jm-macros.m4: Use it here.
79220         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
79221
79222 1999-12-23  Jim Meyering  <meyering@ascend.com>
79223
79224         * m4/jm-macros.m4: Check for clock_gettime (moved from
79225         fileutils/configure.in)
79226         Check for gettimeofday.
79227
79228 1999-12-20  Jim Meyering  <meyering@ascend.com>
79229
79230         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
79231         autoconf-2.14a-1999-12-20.
79232
79233 1999-12-19  Jim Meyering  <meyering@ascend.com>
79234
79235         * m4/lstat-slash.m4: New file.
79236         * m4/jm-macros.m4: Use the new macro:
79237         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79238
79239 1999-12-07  Jim Meyering  <meyering@ascend.com>
79240
79241         * m4/perl.m4: Require that File::Compare be available, too.
79242         Too many systems seem to lack it.
79243
79244         * m4/strftime.m4: Add checks for most of the cpp macros tested in
79245         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
79246
79247 1999-11-18  Paul Eggert  <eggert@twinsun.com>
79248
79249         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
79250         problem with the QNX 4.25 shell, which doesn't propagate exit
79251         status of failed commands inside shell assignments.
79252
79253 1999-11-17  Jim Meyering  <meyering@ascend.com>
79254
79255         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
79256
79257 1999-11-07  Jim Meyering  <meyering@ascend.com>
79258
79259         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
79260
79261 1999-11-06  Jim Meyering  <meyering@ascend.com>
79262
79263         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
79264         * m4/jm-macros.m4 (jm_MACROS): Use it here.
79265
79266 1999-11-05  Jim Meyering  <meyering@ascend.com>
79267
79268         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
79269         configure.in of textutils, fileutils, and sh-utils into this one
79270         (shared between those packages) file.
79271         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
79272         AC_STRUCT_ST_BLKSIZE.
79273
79274 1999-11-03  Jim Meyering  <meyering@ascend.com>
79275
79276         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
79277         of AC_CHECK_TYPE checks includes unistd.h.
79278         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
79279         Suggestion from Akim Demaille.
79280
79281 1999-10-30  Jim Meyering  <meyering@ascend.com>
79282
79283         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
79284         m4-quoted string.
79285         * m4/ls-mntd-fs.m4: Likewise.
79286         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
79287         * m4/jm-winsz1.m4: Likewise.
79288
79289         * m4/const.m4: Remove file, since the fix made it into the experimental
79290         version of autoconf.
79291         * m4/mktime.m4: Likewise.
79292
79293         * m4/check-type.m4: Remove file, now that the latest version of
79294         AC_CHECK_TYPE takes a third arg to specify additional #includes.
79295
79296         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
79297         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
79298         AC_CHECK_TYPE.
79299
79300 1999-10-04  Jim Meyering  <meyering@ascend.com>
79301
79302         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
79303
79304 1999-09-22  Paul Eggert  <eggert@twinsun.com>
79305
79306         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
79307         2.95.1 bug with HP-UX 10.20.
79308
79309 1999-09-17  Jim Meyering  <meyering@ascend.com>
79310
79311         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
79312         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
79313         due to missing strdup (against sh-utils-2.0).
79314
79315 1999-08-29  Jim Meyering  <meyering@ascend.com>
79316
79317         * m4/jm-macros.m4: Require jm_BISON.
79318         * m4/bison.m4: New file.
79319
79320 1999-08-17  Paul Eggert  <eggert@twinsun.com>
79321
79322         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
79323         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
79324
79325 1999-08-05  Jim Meyering  <meyering@ascend.com>
79326
79327         * m4/getline.m4: Rename test file from conftestdata to conftest.data
79328         to avoid conflicts with `conftest' on 8+3 filesystems.
79329         Suggestion from Eli Zaretskii.
79330
79331 1999-08-04  Jim Meyering  <meyering@ascend.com>
79332
79333         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
79334         fileutils and sh-utils (textutils's getline test was inadequate).
79335         (AM_FUNC_GETLINE): Run this test.
79336         (AC_CHECK_FUNCS): Check for getdelim.
79337         Reported by Bob Proulx.
79338
79339 1999-08-02  Jim Meyering  <meyering@ascend.com>
79340
79341         * m4/jm-macros.m4: Add a comment.
79342
79343 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79344
79345         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
79346         <inttypes.h> defines strtoumax as a macro (and not as a
79347         function).
79348
79349 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79350
79351         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
79352         that we can shift, multiply and divide unsigned long long
79353         values; Ultrix cc can't do it.
79354
79355 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79356
79357         * m4/mktime.m4: New file, which is a preview of what should appear
79358         in the next public autoconf release.
79359
79360 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79361
79362         * m4/lfs.m4: Remove this file.
79363         * m4/largefile.m4: New file.  It contains the old contents of
79364         lfs.m4, except that all names with prefix AC_LFS have been
79365         changed to use the prefix AC_SYS_LARGEFILE instead, to be
79366         compatible with future autoconf versions.  Also, some minor m4
79367         quoting problems have been fixed.
79368
79369 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79370
79371         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
79372         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
79373         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
79374         and simplify the shell code.
79375
79376 1999-08-01  Jim Meyering  <meyering@ascend.com>
79377
79378         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
79379         m4.
79380
79381 1999-07-20  Jim Meyering  <meyering@ascend.com>
79382
79383         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
79384
79385 1999-07-15  Jim Meyering  <meyering@ascend.com>
79386
79387         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
79388
79389 1999-05-22  Jim Meyering  <meyering@ascend.com>
79390
79391         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
79392
79393 1999-05-20  Jim Meyering  <meyering@ascend.com>
79394
79395         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
79396         Add a colon after each `then' in case $4 is empty.
79397
79398 1999-05-16  Jim Meyering  <meyering@ascend.com>
79399
79400         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
79401
79402 1999-05-10  Jim Meyering  <meyering@ascend.com>
79403
79404         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
79405
79406         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
79407         AC_FUNC_MKTIME.
79408
79409 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
79410
79411         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
79412
79413 1999-05-04  Paul Eggert  <eggert@twinsun.com>
79414
79415         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
79416         not CPPFLAGS, so that linking works correctly in IRIX.
79417
79418 1999-04-30  Paul Eggert  <eggert@twinsun.com>
79419
79420         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
79421
79422 1999-04-20  Paul Eggert  <eggert@twinsun.com>
79423
79424         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
79425         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
79426         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
79427         jm_AC_TYPE_UNSIGNED_LONG_LONG.
79428         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
79429
79430         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
79431
79432 1999-04-20  Jim Meyering  <meyering@ascend.com>
79433
79434         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
79435         AC_REPLACE xstroull if necessary.  From Paul Eggert.
79436         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
79437
79438 1999-04-18  Jim Meyering  <meyering@ascend.com>
79439
79440         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
79441         * m4/jm-macros.m4: Use it.
79442
79443 1999-04-06  Jim Meyering  <meyering@ascend.com>
79444
79445         * m4/strftime.m4: Remove test for %f.
79446
79447 1999-03-29  Jim Meyering  <meyering@ascend.com>
79448
79449         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
79450         superset of the AC_TYPE_* checks in the textutils, fileutils,
79451         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
79452         AC_TYPE_PID_T.
79453
79454 1999-03-28  Jim Meyering  <meyering@ascend.com>
79455
79456         * m4/jm-macros.m4: Define GNU_PACKAGE here.
79457         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
79458         replaced e.g., in the *.sh files of the sh-utils.
79459
79460 1999-03-20  Jim Meyering  <meyering@ascend.com>
79461
79462         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
79463         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
79464         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
79465
79466 1999-03-19  Jim Meyering  <meyering@ascend.com>
79467
79468         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
79469
79470 1999-03-12  Jim Meyering  <meyering@ascend.com>
79471
79472         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
79473
79474 1999-03-07  Jim Meyering  <meyering@ascend.com>
79475
79476         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
79477         declared.
79478
79479 1999-02-17  Jim Meyering  <meyering@ascend.com>
79480
79481         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
79482         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
79483
79484 1999-02-07  Jim Meyering  <meyering@ascend.com>
79485
79486         * m4/group-member.m4: New file -- extracted from sh-utils'
79487         configure.in.
79488
79489         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
79490         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
79491
79492 1999-02-06  Jim Meyering  <meyering@ascend.com>
79493
79494         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
79495         * m4/fnmatch.m4: Likewise.
79496         * m4/getgroups.m4: Likewise.
79497         * m4/lstat.m4: Likewise.
79498         * m4/malloc.m4: Likewise.
79499         * m4/putenv.m4: Likewise.
79500         * m4/realloc.m4: Likewise.
79501         * m4/regex.m4: Likewise.
79502         * m4/stat.m4: Likewise.
79503         * m4/strftime.m4: Likewise.
79504         Suggestion from Alain Magloire.
79505
79506         * m4/chown.m4: Use `.$ac_objext', not `.o'.
79507         * m4/fnmatch.m4: Likewise.
79508         * m4/getgroups.m4: Likewise.
79509         * m4/getline.m4: Likewise.
79510         * m4/lstat.m4: Likewise.
79511         * m4/malloc.m4: Likewise.
79512         * m4/memcmp.m4: Likewise.
79513         * m4/putenv.m4: Likewise.
79514         * m4/realloc.m4: Likewise.
79515         * m4/regex.m4: Likewise.
79516         * m4/stat.m4: Likewise.
79517         * m4/strftime.m4: Likewise.
79518         Suggestion from Alain Magloire.
79519
79520         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
79521         an argument.
79522
79523         * m4/regex.m4: Add a run-time Test for proper operation of
79524         re_compile_pattern.
79525
79526 1999-01-31  Jim Meyering  <meyering@ascend.com>
79527
79528         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
79529
79530 1999-01-30  Jim Meyering  <meyering@ascend.com>
79531
79532         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
79533
79534         * m4/jm-mktime.m4: Make this a wrapper around the official
79535         AM_FUNC_MKTIME rather than my private copy, now that the official one
79536         is up to date.
79537         * m4/mktime.m4: Remove file.
79538
79539         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
79540         * m4/uptime.m4: Likewise.
79541         * m4/uintmax_t.m4: Likewise.
79542
79543 1999-01-28  Jim Meyering  <meyering@ascend.com>
79544
79545         * m4/jm-macros.m4: Use jm_AFS.
79546         * m4/afs.m4: New file (from fileutils' configure.in).
79547
79548         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
79549         * m4/chown.m4: Likewise.
79550         * m4/d-ino.m4: Likewise.
79551         * m4/d-type.m4: Likewise.
79552         * m4/fnmatch.m4: Likewise.
79553         * m4/getgroups.m4: Likewise.
79554         * m4/gettext.m4: Likewise.
79555         * m4/jm-mktime.m4: Likewise.
79556         * m4/jm-winsz2.m4: Likewise.
79557         * m4/lcmessage.m4: Likewise.
79558         * m4/ls-mntd-fs.m4: Likewise.
79559         * m4/malloc.m4: Likewise.
79560         * m4/memcmp.m4: Likewise.
79561         * m4/putenv.m4: Likewise.
79562         * m4/realloc.m4: Likewise.
79563         * m4/st_mtim.m4: Likewise.
79564         * m4/strftime.m4: Likewise.
79565
79566 1999-01-16  Jim Meyering  <meyering@ascend.com>
79567
79568         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
79569         (ARGMATCH_DIE_DECL): Define.
79570
79571 1999-01-12  Jim Meyering  <meyering@ascend.com>
79572
79573         * m4/Makefile.am.in: Rewrite to avoid using fmt.
79574         Reported by Lars Hecking.
79575
79576 1999-01-10  Jim Meyering  <meyering@ascend.com>
79577
79578         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
79579         gross kludge.
79580         * m4/inttypes_h.m4: Likewise.
79581         * m4/lstat.m4: Likewise.
79582         * m4/malloc.m4: Likewise.
79583         * m4/readdir.m4: Likewise.
79584         * m4/realloc.m4: Likewise.
79585         * m4/st_dm_mode.m4: Likewise.
79586         * m4/stat.m4: Likewise.
79587         * m4/utimbuf.m4: Likewise.
79588         * m4/utimes.m4: Likewise.
79589
79590         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
79591         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
79592         comments in config.h.in are meaningful.
79593
79594         * m4/jm-macros.m4: Require autoconf-2.13 here.
79595
79596         * m4/regex.m4: By default, don't use the included regex.c on systems
79597         with glibc 2.  Suggestion from Uli Drepper.
79598
79599 1999-01-02  Jim Meyering  <meyering@ascend.com>
79600
79601         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
79602
79603 1998-12-18  Jim Meyering  <meyering@ascend.com>
79604
79605         * m4/Makefile.am.in (Makefile.am): Simplify rule.
79606         Based on a suggestion from Lars Hecking.
79607
79608 1998-11-16  Paul Eggert  <eggert@twinsun.com>
79609
79610         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
79611
79612 1998-11-16  Jim Meyering  <meyering@ascend.com>
79613
79614         * m4/lfs.m4: Double-quote the `uname...` expression.
79615
79616 1998-11-14  Jim Meyering  <meyering@ascend.com>
79617
79618         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
79619         * m4/stat.m4: Likewise.
79620
79621 1998-11-03  Jim Meyering  <meyering@ascend.com>
79622
79623         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
79624         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
79625
79626 1998-10-18  Jim Meyering  <meyering@ascend.com>
79627
79628         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
79629
79630 1998-10-17  Jim Meyering  <meyering@ascend.com>
79631
79632         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
79633         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
79634         calls for those previously hard-coded headers.  Instead, take a new
79635         parameter.
79636         (jm_CHECK_DECLARATIONS): Reflect interface change.
79637         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
79638         (jm_CHECK_DECL_LOCALTIME_R): New macro.
79639
79640         * m4/mktime.m4: Test for spring-forward gap before long-running test.
79641
79642 1998-10-14  Jim Meyering  <meyering@ascend.com>
79643
79644         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
79645         instead of "TZ=America/Vancouver".  From Paul Eggert.
79646
79647 1998-10-11  Jim Meyering  <meyering@ascend.com>
79648
79649         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
79650         This adds a test for a recently added compatibility fix for mktime.c.
79651         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
79652
79653 1998-09-27  Jim Meyering  <meyering@ascend.com>
79654
79655         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
79656
79657         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
79658         ../configure.in, including a change from Gordon Matzigkeit to allow
79659         cross-compiling for the Hurd.
79660
79661         * m4/glibc.m4: New file/macro to test for the GNU C Library
79662         versions 1 and 2.  From Gordon Matzigkeit.
79663         Indent.
79664
79665 1998-09-21  Jim Meyering  <meyering@ascend.com>
79666
79667         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
79668
79669 1998-08-18  Paul Eggert  <eggert@twinsun.com>
79670
79671         Port nanosecond-resolution times to UnixWare 2.1.2 and
79672         pedantic Solaris 2.6.
79673
79674         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
79675         AC_STRUCT_ST_MTIM.
79676         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
79677         Generate name of ns member, instead of just 1 or undef.
79678         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
79679
79680 1998-08-15  Jim Meyering  <meyering@ascend.com>
79681
79682         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
79683         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
79684         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
79685         instead of jm_TYPE_SSIZE_T.
79686
79687 1998-08-12  Jim Meyering  <meyering@ascend.com>
79688
79689         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
79690
79691 1998-08-02  Jim Meyering  <meyering@ascend.com>
79692
79693         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
79694         in acconfig.h manually.
79695
79696 1998-07-31  Paul Eggert  <eggert@twinsun.com>
79697
79698         * m4/st_mtim.m4: New file.
79699
79700 1998-07-28  Jim Meyering  <meyering@ascend.com>
79701
79702         * m4/utimes.m4: Undef stat.
79703
79704 1998-07-25  Jim Meyering  <meyering@ascend.com>
79705
79706         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
79707         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
79708
79709 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
79710
79711         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
79712         uid and gid actually remain unchanged.
79713
79714 1998-07-07  Jim Meyering  <meyering@ascend.com>
79715
79716         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
79717
79718 1998-07-04  Jim Meyering  <meyering@ascend.com>
79719
79720         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
79721         to prove that this macro can be used in packages without regex.c.
79722
79723 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
79724
79725         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
79726         is to be used.
79727
79728 1998-07-03  Jim Meyering  <meyering@ascend.com>
79729
79730         * m4/gettext.m4: Add -lintl if it's found to be necessary.
79731
79732         * m4/gettext.m4: New file -- from gettext-0.10.35.
79733         * m4/lcmessage.m4: Likewise.
79734         * m4/progtest.m4: Likewise.
79735
79736         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
79737         * m4/jm-macros.m4: Require the new macro.
79738
79739 1998-06-29  Jim Meyering  <meyering@ascend.com>
79740
79741         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
79742         for the definition of NGROUPS (used in a system header included
79743         by sys/mount.h).
79744
79745 1998-06-28  Jim Meyering  <meyering@ascend.com>
79746
79747         * m4/ls-mntd-fs.m4: New file.
79748         * m4/fstypename.m4: New file.
79749
79750         * m4/jm-macros.m4: Require the new macro.
79751         * m4/jm-glibc-io.m4: New file.
79752
79753 1998-05-19  Jim Meyering  <meyering@ascend.com>
79754
79755         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
79756         * m4/lchown.m4: New file.
79757
79758         * m4/Makefile.am.in: New file.
79759         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
79760
79761 1998-05-14  Jim Meyering  <meyering@ascend.com>
79762
79763         * m4/Makefile.am (EXTRA_DIST): Add them.
79764         * m4/jm-macros.m4: New file.
79765         * m4/utimbuf.m4: New file.
79766
79767 1998-05-12  Jim Meyering  <meyering@ascend.com>
79768
79769         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
79770
79771 1998-05-11  Jim Meyering  <meyering@ascend.com>
79772
79773         * m4/isc-posix.m4: New file.
79774
79775 1998-05-10  Jim Meyering  <meyering@ascend.com>
79776
79777         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
79778
79779 1998-05-09  Jim Meyering  <meyering@ascend.com>
79780
79781         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
79782         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
79783         with automake.
79784
79785         * m4/ssize_t.m4: New file.
79786         * m4/mktime.m4: Remove file -- the new automake has this now.
79787
79788 1998-04-26  Jim Meyering  <meyering@ascend.com>
79789
79790         * m4/assert.m4: New file.
79791         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
79792
79793 1998-04-05  Jim Meyering  <meyering@ascend.com>
79794
79795         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
79796         (jm_PREREQ): Use it here.
79797
79798 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
79799
79800         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
79801         in acconfig.h.
79802
79803 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
79804
79805         * m4/prereq.m4: New file.
79806         * m4/error.m4: New file.
79807         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
79808
79809 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
79810
79811         * m4/getline.m4: Don't set am_cv_func_working_getline before the
79812         cache-check for the same variable -- that defeated the purpose of
79813         the test; the test program was never run.  This was a problem only
79814         on systems with losing getline functions -- HP-UX 10.20 is one.
79815         Reported by Bjorn Helgaas.
79816
79817 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
79818
79819         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
79820
79821 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
79822
79823         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
79824
79825         * m4/const.m4: New file.  Use an initializer in this declaration
79826         typedef int charset[2]; const charset x;
79827         Reported by Bob Glickstein.
79828
79829 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
79830
79831         * m4/chown.m4: Fix reversed types on -1 args to chown.
79832         From Kaveh Ghazi.
79833
79834 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
79835
79836         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
79837         Add lseek and memchr.
79838
79839         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
79840         T.E.Dickey <dickey@clark.net> said that some older preprocessors
79841         have a 20-character limit on names.
79842
79843 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
79844
79845         * m4/inttypes_h.m4: New file.
79846         * m4/uintmax_t.m4: New file.
79847         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
79848
79849
79850         -----
79851
79852         Local Variables:
79853         coding: utf-8
79854         End:
79855
79856         Copyright (C) 1997-2011 Free Software Foundation, Inc.
79857
79858         Copying and distribution of this file, with or without
79859         modification, are permitted provided the copyright notice
79860         and this notice are preserved.